[FINALUPDATE] XU Ubuntu 16.04 mediacenter [11/08/2018]

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

[FINALUPDATE] XU Ubuntu 16.04 mediacenter [11/08/2018]

Unread post by memeka » Mon Mar 10, 2014 5:36 pm

Release notes:

v. 11082018

viewtopic.php?f=61&t=4073&start=150#p231329

v. 30032015

!!! As Odroid-XU has been deprecated for a while already, this is the final release for XU Ubuntu Trusty Dev Center !!!
* image now is for 16GB sd/emmc!
* updated to Ubuntu 14.04.02
* boots into Kodi 14.2 final (/etc/init upstart script)
* custom kernel based on 3.4.106 (this is final 3.4 kernel, HK last kernel was 3.4.103) with Android pre-req and SPI pins enabled (git source available, for those curious)
* pulse-audio removed, kernel patched for stable ALSA operation
* installed boblight, with default configuration for 50 LEDs, and /etc/init startup script (currently disabled, can be enabled by renaming to .conf)
* updated java to oracle jdk8u33
* updated kodi to 14.2 final (git source + patches + builds to .deb packages)
* updated libcec to 2.2.0 (git source + builds to .deb package), patched for HDMI CEC environment variable, set by default to HDMI-1 in /etc/environment
* patched SDL1.2 and removed all X11 parts to trim-down kodi dependencies (source + builds to .deb packages)
* updated libhybris (git source + builds to .deb packages)
* libshairplay (git source + patches + builds to .deb package)
* added rtl8191su kernel module code (source + module installed in kernel)
* added xbmc-pvr-addons (git source) + addons compiled into .zip that can be installed into kodi (zip files available in the src/deb folder)
* disabled android-media-server and android-service-manager services (required for hybris media decoding; but kodi currently uses native MFC decoder)

MUST-DO after writing image to emmc/sd card:
* resize partition
* change ssh private keys

User/password:
* root/odroid
* odroid/odroid
UART console enabled, but auto-login disabled!

v. 30082014

Download link: http://oph.mdrjr.net/memeka/xu-trusty-d ... 014.img.xz (1GB)
MD5 sums:
MD5 (xu-trusty-dev_ceneter-30082014.img.xz) = dbcd8d8f94fd854554b504a79aaf2cc1
MD5 (xu-trusty-dev_ceneter-30082014.img) = 2027716a4ad7cfae8ae8e77e87ba646c

* updated to Ubuntu 14.04.01
* boots into XBMC 13.2 final
* kernel 3.4.103 custom config (with enabled Android prerequisites)
* known issue: pulseaudio locks up when shutting down

v. 10032014

Download link: http://oph.mdrjr.net/memeka/xu-trusty-o ... 014.img.xz, mirror: https://db.tt/6bCkJf2O
MD5 sums:
f25c12358213395afa13bbba72b4bcb2 xu-trusty-odroid-10032014.img.xz
d6481330064c3a5792ab8d49fa5d1a17 xu-trusty-odroid-10032014.img

* Ubuntu 14.04 Trusty Tahr (development branch) CORE rootfs from http://cdimage.ubuntu.com/ubuntu-core/daily/current/
* Kernel 3.4.76 (HEAD 88727487c1ed7a73f9c8233484a00de1b1cf7adc) custom config (with enabled Android prerequisites)
* installed Android files in /system and symlinked /vendor to /system/vendor
* installed Android /etc/media_codecs.xml
* set up Android services /etc/init/android-service-manager.conf and /etc/init/android-media-server.conf (scripts by hgblob)
* copied newer MFC firmware in /lib/firmware
* enabled all repositories in /etc/apt/sources.list
* set up UART console ttySAC2 in /etc/securetty and /etc/init/ttySAC2.conf
* commented out v4l_id in /lib/udev/rules.d/60-persistent-v4l.rules to resolve errors when booting
* commented out plymouth splash in /etc/init/plymouth-splash.conf to resolve errors when booting (ubuntu specific)
* uninstalled ureadahead to resolve errors when booting (ubuntu specific)
* set up fsck on boot in /etc/default/rcS
* configure ALSA settings in /etc/asound.conf (not working great, pulseaudio should give better result)
* set up mount paths in /etc/fstab; symlink /boot to /media/boot
* installed sun java jdk 1.8 (b132 from 03/03/2014) in /usr/lib/jvm/jdk1.8.0 and set up alternatives for java and javac
* installed libhybris from ubuntu sources with custom patches (see /root/libhybris/compile.sh a tutorial)
* set up EGL_PLATFORM=hwcomposer for libhybris in /etc/environment
* installed libcec (source in /root/libcec, installed in /usr/local)
* installed all packages required to compile XBMC
* compiled and installed XBMC Gotham Beta 2 10/03/2014 in /root/xbmc (installed in /usr/local)
* installed kernel source from HK repository in /root/odroidxu-3.4.y (git HEAD 88727487c1ed7a73f9c8233484a00de1b1cf7adc)
* compiled and installed kernel and modules (3.4.76)
* root password: odroid, no other user created

To update xbmc and kernel, you can just go in /root/xbmc and /root/odroidxu-3.4.6, git pull origin, compile and install.
Enjoy!

* patch for libmedia1: hybris/media/media.c

Code: Select all

// Media Codecs
HYBRIS_IMPLEMENT_FUNCTION1(media, MediaCodecDelegate,
    media_codec_create_by_codec_name, const char*);
+ HYBRIS_IMPLEMENT_FUNCTION1(media, MediaCodecDelegate,
+    media_codec_create_by_codec_type, const char*);
HYBRIS_IMPLEMENT_VOID_FUNCTION1(media, media_codec_delegate_destroy,
    MediaCodecDelegate);
* patch for libhybris: hybris/egl/platforms/hwcomposer/hwcomposer_window.cpp

Code: Select all

    while (!m_frontBuf)
    {
           pthread_cond_wait(&_cond, &_mutex);
    }

+   if (m_frontBuf->busy != 2) {
+       pthread_mutex_unlock(&_mutex);
+       return;
+   }

    assert(m_frontBuf->busy == 2);
Last edited by memeka on Sat Aug 11, 2018 9:33 am, edited 13 times in total.

chiren
Posts: 9
Joined: Tue Feb 25, 2014 1:57 pm
languages_spoken: english
ODROIDs: U3,XU-lite
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by chiren » Wed Mar 12, 2014 6:05 pm

did it support x11 app 3d acceleration?

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Wed Mar 12, 2014 8:25 pm

no XU image currently has that.
and this image does not even have X11 installed, just a bare minimum of packages.

chiren
Posts: 9
Joined: Tue Feb 25, 2014 1:57 pm
languages_spoken: english
ODROIDs: U3,XU-lite
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by chiren » Wed Mar 12, 2014 11:35 pm

memeka wrote:no XU image currently has that.
and this image does not even have X11 installed, just a bare minimum of packages.
Oh no! When could I possibly get it?

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Thu Mar 13, 2014 6:48 am

There is work to add x11 3d acceleration, but it's not done yet.
follow the status of the 3.13 kernel.

Jhinta
Posts: 82
Joined: Thu Sep 19, 2013 5:07 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by Jhinta » Mon Mar 17, 2014 3:39 am

memeka wrote:There is work to add x11 3d acceleration, but it's not done yet.
follow the status of the 3.13 kernel.
how to fix the constand mac change?

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Mon Mar 17, 2014 7:13 am

i think you can search the forums for this, you can create a file in /etc/ with a fixed mac address.

marc
Posts: 7
Joined: Mon Mar 10, 2014 11:17 pm
languages_spoken: english
ODROIDs: odroid-xu
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by marc » Mon Mar 17, 2014 8:56 pm

memeka wrote:There is work to add x11 3d acceleration, but it's not done yet.
follow the status of the 3.13 kernel.
Are you talking about this thread http://forum.odroid.com/viewtopic.php?f=64&t=3802?

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Tue Mar 18, 2014 7:41 am

that's one of them

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by temptemp » Tue Mar 25, 2014 9:08 pm

thanks :)

Can I access via SSH ?

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Wed Mar 26, 2014 7:01 am

yes, SSH is enabled.

silverman
Posts: 55
Joined: Wed Mar 26, 2014 6:18 am
languages_spoken: english
ODROIDs: XU Lite
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by silverman » Thu Mar 27, 2014 3:38 am

Hi,
I can boot into it, have the blue LED flashing.
I cant connect via SSH. When i connect from a linux distro, i get

ssh root@192.168.0.17
Read from socket failed: Connection reset by peer


Any idea why this would happen?

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: AW: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/20

Unread post by temptemp » Thu Mar 27, 2014 5:09 am

silverman wrote:Hi,
I can boot into it, have the blue LED flashing.
I cant connect via SSH. When i connect from a linux distro, i get

ssh root@192.168.0.17
Read from socket failed: Connection reset by peer


Any idea why this would happen?
Same here....;)

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Thu Mar 27, 2014 6:37 am

I'll try reflashing the image and testing it when i get home.
Are you sure you are using the right IP?
From what I remember, sometimes it's mounting "/" in ro mode - maybe it's because of this.
Any of you have UART?

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by temptemp » Thu Mar 27, 2014 1:57 pm

Thanks :)
No, I haven't, sorry.

Gesendet von meinem HTC Sensation XE with Beats Audio Z715e mit Tapatalk

silverman
Posts: 55
Joined: Wed Mar 26, 2014 6:18 am
languages_spoken: english
ODROIDs: XU Lite
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by silverman » Thu Mar 27, 2014 3:44 pm

thanks. No UART for me either

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Fri Mar 28, 2014 8:04 am

I did not have the chance to look yet, moving house and my odroid is still in boxes. will have to look probably next week :(

Necrum
Posts: 35
Joined: Fri Dec 20, 2013 1:54 am
languages_spoken: spanish, english
ODROIDs: ODROID-XU
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by Necrum » Wed Apr 02, 2014 12:41 pm

This is what i've got using SSH:
xubuntu@xubuntu:~$ ssh -v root@192.168.1.7
OpenSSH_6.2p2 Ubuntu-6, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to 192.168.1.7 [192.168.1.7] port 22.
debug1: Connection established.
debug1: identity file /home/xubuntu/.ssh/id_rsa type -1
debug1: identity file /home/xubuntu/.ssh/id_rsa-cert type -1
debug1: identity file /home/xubuntu/.ssh/id_dsa type -1
debug1: identity file /home/xubuntu/.ssh/id_dsa-cert type -1
debug1: identity file /home/xubuntu/.ssh/id_ecdsa type -1
debug1: identity file /home/xubuntu/.ssh/id_ecdsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2p2 Ubuntu-6
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.5p1 Ubuntu-6
debug1: match: OpenSSH_6.5p1 Ubuntu-6 pat OpenSSH*
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
...and sadly, I don't have UART.

catalinii
Posts: 55
Joined: Thu Jan 02, 2014 8:44 pm
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by catalinii » Mon Apr 07, 2014 9:41 pm

Hi,

i have fixed this by copying the content of /etc/ssh from a working ubuntu install to the image. I suppose the ssh certificates are missing this being the reason of the ssh connection failure.

I did not have a keyboard to be able to strace the ssh process to see the real reason of failure.

Thanks

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by temptemp » Sun Apr 13, 2014 8:46 pm

It's still not working on my odroid....I also tried to fix it like catalinii but with No success

Gesendet von meinem HTC Sensation XE with Beats Audio Z715e mit Tapatalk

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: AW: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/20

Unread post by temptemp » Wed Apr 16, 2014 2:03 pm

catalinii wrote:Hi,

i have fixed this by copying the content of /etc/ssh from a working ubuntu install to the image. I suppose the ssh certificates are missing this being the reason of the ssh connection failure.

I did not have a keyboard to be able to strace the ssh process to see the real reason of failure.

Thanks
Can You upload your fixed image somewhere? Thanks

Gesendet von meinem HTC Sensation XE with Beats Audio Z715e mit Tapatalk

catalinii
Posts: 55
Joined: Thu Jan 02, 2014 8:44 pm
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by catalinii » Sat Apr 19, 2014 6:13 pm

My image is uploaded at:
https://shivanet.ro/tmp/xu-trusty-odroi ... 14.img.bz2

My changes are in /etc/ssh directory and adding a static mac address in /etc/network/interfaces to avoid mac address changes at reboot.

After installing the image, use the following commands to reset the sshd keys:

ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa
ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa
ssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -N '' -t ecdsa

And overwrite the old files when asked to.

Then restart the sshd daemon:
/etc/init.d/ssh restart

In /etc/rc.local I am adding the following line to start the xbmc:
nohup /bin/bash -c "DISPLAY=:0 /usr/local/lib/xbmc/xbmc.bin --standalone" &

However if I leave the XBMC started overnight, the OS crashes. If XBMC is not started everything is good.
Let me know if you see similar results.

Thanks

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Sat Apr 19, 2014 9:09 pm

thanks for uploading. i am on holiday so I did not touch my install in quite a long time :D

WhtKnight
Posts: 25
Joined: Mon Apr 21, 2014 10:50 pm
languages_spoken: english
ODROIDs: ODROID-XU+E, ODROID-XU3
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by WhtKnight » Tue Apr 22, 2014 9:10 am

I tried this one on both an eMMC and an SD card and neither of them initialised the HDMI display on either my TV or my monitor.

May I ask is there something I need to do prior to writing the image that I'm unaware of?

Sorry, this is all new to me and I'm basically brand new to Linux as well. I've just thrown myself in the deep end here and I'm struggling to get over the top of it all :)

This sounds like a good image for me, I'm trying to basically use the oDroid as a DLNA client for a media server I host in my office, so a clean build with the codecs and XBMC alone is perfect.

Cheers for your work and your help

oh btw, my monitor and TV can both handle 1080p.

catalinii
Posts: 55
Joined: Thu Jan 02, 2014 8:44 pm
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by catalinii » Tue Apr 22, 2014 10:51 am

Hi,

connect with ssh to the XU and run the command:
nohup /bin/bash -c "DISPLAY=:0 /usr/local/lib/xbmc/xbmc.bin --standalone" &

Thanks

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by temptemp » Tue Apr 22, 2014 1:28 pm

Is it also possible to Run a normal Desktop enviroment? Like lxde with xfc?! What changes are neccesary?
My goal is to switch between xbmc and 'normal Desktop' via ssh.

Thanks in Advanced

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Tue Apr 22, 2014 1:53 pm

there is another image that allows you to "switch", with some scripts... for convenience you can use that, or try and replicate the scripts;

for xbmc you can copy the command above in /etc/rc.local

WhtKnight
Posts: 25
Joined: Mon Apr 21, 2014 10:50 pm
languages_spoken: english
ODROIDs: ODROID-XU+E, ODROID-XU3
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by WhtKnight » Tue Apr 22, 2014 10:06 pm

Sorry mate, I've tried connecting via SSH and I'm not getting a response on that route either.

I can ping the unit though so it has booted ok, the red light is on and the blue flickers away happily.

Aside from that I'm afraid I can't give you any information as to a status of it to help fault find.

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: AW: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/20

Unread post by temptemp » Wed Apr 23, 2014 9:25 pm

memeka wrote:there is another image that allows you to "switch", with some scripts... for convenience you can use that, or try and replicate the scripts;

for xbmc you can copy the command above in /etc/rc.local
I haven't seen that can you post me the link? Thanks


I'm on holidays or at the beach so I will try it during the rain the next days....

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by temptemp » Sat Apr 26, 2014 6:26 pm

I can't type any command because I got a blank screen id I'm connected to a screen with HDMI.Where should I type the conmands you given?

SSH still not working..Can someone upload a image with a working SSH? Thanks

Gesendet von meinem HTC Sensation XE with Beats Audio Z715e mit Tapatalk

catalinii
Posts: 55
Joined: Thu Jan 02, 2014 8:44 pm
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by catalinii » Fri May 02, 2014 8:57 am

temptemp, WhtKnight,

both of you used the image I have uploaded and could not get SSH to start ?

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: AW: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/20

Unread post by temptemp » Sun May 04, 2014 4:22 pm

catalinii wrote:temptemp, WhtKnight,

both of you used the image I have uploaded and could not get SSH to start ?
My problem is that I don't know where I should type your commands because I haven't got any screen output...I typed them from a normal PC and the path was located to the SDCard but this didn't guide to a.functional SSH...and I also don't unterstand you first comment with the MAC adress...
Maybe it you help me a little bit it will do or maybe you can upload a image with SSH?!

Thanks a lot

catalinii
Posts: 55
Joined: Thu Jan 02, 2014 8:44 pm
languages_spoken: english
ODROIDs: Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by catalinii » Mon May 05, 2014 6:26 pm

The image I have provided should have the ssh listening on port 22 so you should be able to connect with putty or a similar tool...
after you login there (if you are able to do so), you should be able to run the commands...

temptemp
Posts: 87
Joined: Sat May 25, 2013 9:53 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by temptemp » Thu May 08, 2014 9:18 pm

catalinii wrote:The image I have provided should have the ssh listening on port 22 so you should be able to connect with putty or a similar tool...
after you login there (if you are able to do so), you should be able to run the commands...

Yes it works, thanks for your work :)

So the next steps to compile the latest xbmc is

Code: Select all

[1]git clone -b frodo git://github.com/xbmc/xbmc.git
[2]# fix samba4 libsmbclient.h location
sed -i -e 's:#include <libsmbclient.h>:#include <samba-4.0/libsmbclient.h>:' xbmc/filesystem/{SmbFile,SMBDirectory}.cpp
[3]./configure --enable-exynos5 --disable-x11 --enable-alsa --disable-pulse --disable-libcec --enable-neon --disable-debug --enable-optimizations --enable-ccache --enable-gles --enable-non-free --disable-gl --disable-vdpau --disable-vaapi --disable-crystalhd --disable-openmax --disable-joystick --disable-rsxs --disable-projectm --disable-fishbmc --disable-nfs --disable-afpclient --disable-dvdcss --disable-optical-drive --disable-libbluray --enable-texturepacker --with-platform=hybris --with-cpu=cortex-a15 FFMPEG_CFLAGS="-mfloat-abi=hard -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -ffast-math -mcpu=cortex-a15 -mtune=cortex-a15 -O3 -pipe -fstack-protector" CFLAGS="-mfloat-abi=hard -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -ffast-math -mcpu=cortex-a15 -mtune=cortex-a15 -O3 -pipe -fstack-protector
and then it should start with

Code: Select all

[4]nohup /bin/bash -c "DISPLAY=:0 /usr/local/lib/xbmc/xbmc.bin --standalone" &
is this correct?

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Fri May 16, 2014 2:40 pm

erm, you already have xbmc sources
plus, the official xbmc does not have support for odroid/exynos

silverman
Posts: 55
Joined: Wed Mar 26, 2014 6:18 am
languages_spoken: english
ODROIDs: XU Lite
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by silverman » Sun May 25, 2014 7:10 pm

Hello,
I'll try the new image, its downloading now.
I am also trying to compile XBMC with libcec. So if the above doesnt work (lack of support for exynos in official xbmc), please let me know how I could do that.

I have opened a new thread here - http://forum.odroid.com/viewtopic.php?f=61&t=5002, so that i dont hijack your topic :)

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Thu Jun 19, 2014 6:12 pm

To compile XBMC for the XU (updated to Gotham 13.2 alpha)

Code: Select all

git clone http://github.com/mihailescu2m/xbmc -b Gotham-mfc-XU xbmc-xu
cd xbmc-xu

./bootstrap
./configure --enable-codec=mfc --enable-alsa --disable-pulse --enable-airtunes --enable-airplay --enable-libcec --enable-neon --disable-debug --enable-optimizations --enable-ccache --enable-gles --disable-x11 --disable-gl --enable-non-free --disable-vdpau --disable-vaapi --disable-crystalhd --disable-openmax --disable-rsxs --disable-projectm --disable-fishbmc --disable-nfs --disable-afpclient --disable-dvdcss --disable-optical-drive --disable-libbluray --enable-texturepacker --enable-joystick --with-platform=hybris --with-cpu=cortex-a15 FFMPEG_CFLAGS="-mfloat-abi=hard -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -ffast-math -mcpu=cortex-a15 -mtune=cortex-a15 -O3 -pipe -fstack-protector" CFLAGS="-mfloat-abi=hard -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -ffast-math -mcpu=cortex-a15 -mtune=cortex-a15 -O3 -pipe -fstack-protector -DTARGET_HYBRIS=1 -I/usr/local/include/hybris" CXXFLAGS="-mfloat-abi=hard -mfpu=neon -ftree-vectorize -mvectorize-with-neon-quad -ffast-math -mcpu=cortex-a15 -mtune=cortex-a15 -O3 -pipe -fstack-protector -DTARGET_HYBRIS=1 -I/usr/local/include/hybris"
make -j5
sudo make install
this assumes you have all dev packages installed, libcec already installed, libhybris already installed and working (test_hwcomposer working), and that hybris headers are installed in /usr/local/include/hybris

in any case, this is what I run on my machine and xbmc is working.
Last edited by memeka on Tue Jun 24, 2014 10:15 am, edited 1 time in total.

Nuems
Posts: 129
Joined: Thu Sep 19, 2013 3:50 am
languages_spoken: english, german
ODROIDs: xu, c1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by Nuems » Tue Jun 24, 2014 2:44 am

@memeka:
Before I waste too much time reinventing the wheel: Do you set "--disable-nfs" because you don't need it or because it would somehow break compilation of this version?

Thanks in advance!

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Tue Jun 24, 2014 6:18 am

Nuems wrote:@memeka:
Before I waste too much time reinventing the wheel: Do you set "--disable-nfs" because you don't need it or because it would somehow break compilation of this version?

Thanks in advance!
because i don't need it :)
also because i dont need it i might not have the libraries installed

mrchlblng
Posts: 4
Joined: Sat Jul 12, 2014 6:48 pm
languages_spoken: english, french
ODROIDs: XU-lite + eMMc
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by mrchlblng » Mon Jul 14, 2014 12:03 am

@memeka thanks a lot for the very nice work!
I'm trying to compile xbmc from your fork and am having an issue. test_hwcompser runs fine:

Code: Select all

root@odroid-server:~/builds/xbmc-xu# test_hwcomposer 
width: 1280 height: 720
** gralloc_open 0xb6a3a27c status=Success
window 0x1afe4
OpenGL ES 2.0 build 1.10@2209507
But when configuring your branch I end up with

Code: Select all

checking for HYBRISEGL... no
configure: error: Could not find a required library. Please see the README for your platform.
I working from trusty server image, copied the /system from the trusty image you uploaded and read the whole Media Center ODROID-XU XBMC 12.2(16/11/13 MFC decoding!) thread without seeing this issue. Do you have an idea of what I missed?

EDIT: I just found a Fedora thread mentioning the issue. My pc file is also
/usr/lib/pkgconfig/hybris-egl-platform.pc but setting PKG_CONFIG_PATH when running ./configure doesn't solve the issue.
Looking at the content, I was also missing android-headers. I rsynced them from your image but it still doesn't work. I'm wondering if I missed some Android stuff

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Mon Jul 14, 2014 4:08 am

my image should have a compile script there...
PKG_CONFIG_PATH should be enought, maybe try also with -I flag for the include file path...

mrchlblng
Posts: 4
Joined: Sat Jul 12, 2014 6:48 pm
languages_spoken: english, french
ODROIDs: XU-lite + eMMc
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by mrchlblng » Mon Jul 14, 2014 7:48 am

I did not find any build script on your image but I would love to test it if you don't mind sharing it?
I started from scratch again with no more luck. I also tried building Oversun xbmc fork without more success (configure fails on libdvdcss...)

mrchlblng
Posts: 4
Joined: Sat Jul 12, 2014 6:48 pm
languages_spoken: english, french
ODROIDs: XU-lite + eMMc
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by mrchlblng » Sun Aug 03, 2014 8:04 pm

@memeka, any chance you could reupload a new clean xu image with xbmc and minimal packages?
I've been trying to set up some build scripts (https://github.com/mrchlblng/odroid-xu) to setup easily xbmc on an 'official' 14.04 ubuntu image but it always fails at some point (truth is I am not familiar enough with 3d acceleration state in linux). So I would really appreciate (and I'm pretty sure that would help others) if you could update this image when you have time!

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Sun Aug 03, 2014 8:33 pm

I'm planning to do this next week...

mrchlblng
Posts: 4
Joined: Sat Jul 12, 2014 6:48 pm
languages_spoken: english, french
ODROIDs: XU-lite + eMMc
Has thanked: 0
Been thanked: 0
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by mrchlblng » Mon Aug 04, 2014 1:05 am

looking forward to it! thanks a lot!

MastaG
Posts: 284
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 5 times
Been thanked: 2 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by MastaG » Mon Aug 04, 2014 4:15 pm

@memeka
I'm using the head of https://github.com/libhybris/libhybris.git on Fedora 21.
test_hwcomposer gives me:

Code: Select all

odroid@localhost bin]$ sudo ./test_hwcomposer 
[sudo] password for odroid: 
width: 1920 height: 1080
WARNING: virtual int HWComposerNativeWindow::setBufferCount(int): allocated only 0 buffers out of 2
OpenGL ES 2.0 build 1.10@2209507
I head the fan spinning up, but I get nothing on the screen, no window pops up.
Do I need to apply any patches, because the ones on your start post seems to be a bit outdated.

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Mon Aug 04, 2014 4:19 pm

I think you need to apply the patch for libhybris mentioned in the first post.

MastaG
Posts: 284
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 5 times
Been thanked: 2 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by MastaG » Mon Aug 04, 2014 4:24 pm

I know, but those patches are for a very old version of hybris.
The code has changed alot.

User avatar
memeka
Posts: 4339
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART
Has thanked: 1 time
Been thanked: 24 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by memeka » Mon Aug 04, 2014 4:29 pm

Yes it looks like.
Don't know what to tell you, since XBMC is using "unlockFrontBuffer" which currently I see was removed completely from libhybris...
Will have to investigate properly...
In the meantime you can use https://github.com/mihailescu2m/libhybris
it should be old enough...

MastaG
Posts: 284
Joined: Mon Aug 26, 2013 6:05 pm
languages_spoken: english
Has thanked: 5 times
Been thanked: 2 times
Contact:

Re: [New Image] Ubuntu 14.04 Trusty Dev Center [10/03/2014]

Unread post by MastaG » Mon Aug 04, 2014 8:42 pm

Thanks memeka!

I've compiled that libhybris instead with your patch applied.
It's build with the Android 4.2.2 headers.
I'm using the /system directory from your image.

I've also compiled the s5p-mfc-v6.5.bin (I believe this is the latest version) into the kernel (renamed to mfc_fw.bin), because Fedora 21 seems to have trouble loading it from /lib/firmware.
I think because the mfc modules are compiled into the kernel, the fw helper isn't ready yet when it tries to initialize during boot.

I'm not getting errors anymore:

Code: Select all

sudo ./test_hwcomposer 
width: 1920 height: 1080
OpenGL ES 2.0 build 1.10@2209507
However I'm at work so I cannot check the screen atm.

Btw, the test_hwcomposer binary only works as root.
Does that imply that xbmc will also need root privileges to run with hybris?

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 1 guest