Ubuntu 16.04 LTS : Issues and Solutions

Post Reply
droider
Posts: 58
Joined: Fri Sep 06, 2013 7:28 am
languages_spoken: english
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Ubuntu 16.04 LTS : Issues and Solutions

Post by droider »

I am still on the rock solid odroid-X Hardkernel kindly released the 16.04 for the X board, and I lapped it up eagerly to get the latest Kodi. I have a few issues I am hoping to get some help on.


Issue 1

I do not want the GUI login/Mate desktop, so I disabled it at startup. I use 'xinit /usr/local/bin/kodi' to start Kodi. This works fine if I run it as root. However, as odroid user, I was getting error about not able to access /dev/tty0 ; interwebs told me to install http://unix.stackexchange.com/questions ... -one-liner xserver-xorg-legacy and configure Xwrapper.config to allow everyone to run X. Now while X doesn't complain, Kodi keeps crashing at starup with the following message in the crash log

Code: Select all

01:21:30 T:2997007104  NOTICE: PulseAudio: Opened device Default in pcm mode with Buffersize 300 ms
01:21:30 T:2997014528  NOTICE: Running database version Addons20
01:21:30 T:2997014528  NOTICE: ADDONS: Using repository repository.xbmc.org
01:21:30 T:2997014528  NOTICE: Checking resolution 16
01:21:30 T:2997014528   ERROR: failed to initialize egl display
Elsewhere on this forum, there is a mention to uncomment m_bpp to be set to 32 in boot.ini, but the X boot.ini doesn't have any of those lines, and furtheremore if I run as root, I do not have the issue with Kodi crashing, so I am guessing this is a permission issue. Any suggestions on how to get it working?


Issue 2

In Kodi, the Peripherals menu is disabled, so I am unable to get cec working. I installed libcec3 but still no luck. I am using ubuntu-16.04-mate-odroid-x-20160920.img.xz image.

droider
Posts: 58
Joined: Fri Sep 06, 2013 7:28 am
languages_spoken: english
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by droider »

Issue 1 : It seems to be a more widespread problem with 16.04, not a odroid/ordoid-X specific problem. https://bugs.launchpad.net/ubuntu/+sour ... ug/1562219

Issue 2: Elsewhere in this site, it is mentioned that if cec-client --list-devices returns a NONE, then it means CEC is not available in the kernel. Curiously, it also mentions that if /dev/CEC is present, then it means that CEC is available. With 16.04 LTS image, if I run cec-client --list-devices I get the following

Code: Select all

root@odroid:~# cec-client --list-devices
libCEC version: 3.0.1, compiled on Linux-3.2.0-95-highbank ... , features: P8_USB, P8_detect, randr
Found devices: NONE
but /dev/CEC is present!!

I recall CEC is baked into the kernel, so lsmod probably will not show anything that hints at CEC

Code: Select all

root@odroid:~# lsmod
Module                  Size  Used by
rfcomm                 31784  0
bluetooth             198134  3 rfcomm
cpufreq_userspace       2252  0
cpufreq_ondemand        5273  1
cpufreq_powersave        885  0
cpufreq_conservative     4285  0
smsc95xx               19090  0
usbnet                 19480  1 smsc95xx
sg                     23467  0
vfat                    9124  1
fat                    49103  1 vfat
gpio_keys               7062  0
ipv6                  269303  36
autofs4                22349  2
dmesg has the following for cec

Code: Select all

root@odroid:~#  dmesg |grep -i cec
[    0.213793] s5p_hdmi_cec_set_platdata()
[    7.036273] cec: Probe start
[    7.036276] s5p_cec_probe: pdata=e71290c0
[    7.036300] s5p_cec_mem_probe(): mapped cec_base to f0096000, size 0x1000
[    7.036481] cec: Requesting irq 146 for s5p-cec
[    7.036520] cec: probe successful
[42372.726954] s5p_cec_open
[42372.727314] s5p_cec_release, hdmi_on=1
[42372.727639] s5p_cec_open
[42372.727927] s5p_cec_read, 80 bytes
[42374.236234] s5p_cec_release, hdmi_on=1
[42378.800485] s5p_cec_open
[42378.801739] s5p_cec_read, 131072 bytes
[42380.369178] s5p_cec_release, hdmi_on=1

User avatar
odroid
Site Admin
Posts: 38212
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2068 times
Been thanked: 1238 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by odroid »

Did the CEC work on Ubuntu 14.04 with Kodi 15?

droider
Posts: 58
Joined: Fri Sep 06, 2013 7:28 am
languages_spoken: english
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by droider »

odroid wrote:Did the CEC work on Ubuntu 14.04 with Kodi 15?
I never upgraded to Kodi 15 (or even 14, i think), it worked with Gotham.

mdrjr
Site Admin
Posts: 11796
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 42 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by mdrjr »

Are you using any modification on boot.ini ?

droider
Posts: 58
Joined: Fri Sep 06, 2013 7:28 am
languages_spoken: english
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by droider »

No. I haven't touched boot.ini , here it is

Code: Select all

root@odroid:~# cat /media/boot/boot.ini
ODROID4412-UBOOT-CONFIG

# U-Boot Configuration
setenv initrd_high "0xffffffff"
setenv fdt_high "0xffffffff"

# --- Screen Configuration for HDMI --- #
# ---------------------------------------
# Uncomment only ONE line! Leave all commented for automatic selection.
# Uncomment only the setenv line!
# ---------------------------------------
# 1920x1080 (1080P) with monitor provided EDID information. (1080p-edid)
# setenv videoconfig "video=HDMI-A-1:1920x1080@60"
# -----------------------------------------------
# 1920x1080 (1080P) without monitor data using generic information (1080p-noedid)
# setenv videoconfig "drm_kms_helper.edid_firmware=edid/1920x1080.bin"
# -----------------------------------------------
# 1280x720 (720P) with monitor provided EDID information. (720p-edid)
# setenv videoconfig "video=HDMI-A-1:1280x720@60"
# -----------------------------------------------
# 1280x720 (720P) without monitor data using generic information (720p-noedid)
# setenv videoconfig "drm_kms_helper.edid_firmware=edid/1280x720.bin"
# -----------------------------------------------
# 1024x768 without monitor data using generic information
# setenv videoconfig "drm_kms_helper.edid_firmware=edid/1024x768.bin"
# -----------------------------------------------


# Load kernel and initramfs
fatload mmc 0:1 0x40008000 zImage
fatload mmc 0:1 0x42000000 uInitrd

# boot arguments
setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro mem=2047M ${videoconfig}"

# boot the board
bootm 0x40008000 0x42000000
The boot.ini claims there is 2GB memory, if my memory (pun intended) serves right, odroid-X has only 1GB onboard memory. Oddly the system seems to go with thinking there is 2GB memory

Code: Select all

from top command:
KiB Mem :  2071476 total,    86932 free,  1399544 used,   585000 buff/cache
KiB Swap:        0 total,        0 free,        0 used.   624064 avail Mem
and from cat /proc/meminfo

Code: Select all

MemTotal:        2071476 kB
MemFree:           98112 kB
Buffers:           16172 kB
Cached:           529972 kB
SwapCached:            0 kB
Active:           365932 kB
Inactive:         432512 kB
Active(anon):     255120 kB
Inactive(anon):    21084 kB
Active(file):     110812 kB
Inactive(file):   411428 kB
Unevictable:           0 kB
Mlocked:               0 kB
HighTotal:       1317888 kB
HighFree:           3876 kB
LowTotal:         753588 kB
LowFree:           94236 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                20 kB
Writeback:             0 kB
AnonPages:        252300 kB
Mapped:            56048 kB
Shmem:             23904 kB
Slab:              25472 kB
SReclaimable:      14652 kB
SUnreclaim:        10820 kB
KernelStack:        1456 kB
PageTables:         2644 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1035736 kB
Committed_AS:     978864 kB
VmallocTotal:     245760 kB
VmallocUsed:        2860 kB
VmallocChunk:     105276 kB

mdrjr
Site Admin
Posts: 11796
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 42 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by mdrjr »

To fix the 2GB issue just change bootargs line on boot.ini to mem=1023M
:)

droider
Posts: 58
Joined: Fri Sep 06, 2013 7:28 am
languages_spoken: english
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by droider »

Additional issue: The board keeps droping network connectivity. After a period of time I am no longer able to SSH, SMB or access some of the HTTP ports.

mdrjr
Site Admin
Posts: 11796
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 42 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by mdrjr »

Any logs on the network issue? Is it link drop or something else ?


I'm collecting those issues to address this on a newer image

droider
Posts: 58
Joined: Fri Sep 06, 2013 7:28 am
languages_spoken: english
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by droider »

I will try looking at the logs to see if something pops out. Is there anything particular I should be looking for? I noticed the issue when putty would fail to connect claiming "software caused connection abort", it was intermittent initially. But it ended up being more permanent after I did apt update/upgrade. One of the internet theories on these issue is lack of memory/swap I need to check later if swap is enabled.

WillB
Posts: 13
Joined: Thu Apr 25, 2013 3:28 am
languages_spoken: Dutch, English
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by WillB »

Any news on this?
Is there a better image available?
I would like to update from 14.04, but after I read this thread, I don't think I will.

Maybe I should buy a new Odroid, but my Odroid-X is still running so smoothly :D .
The only thing is that the kernel, OS and software is not updated as much.

mdrjr
Site Admin
Posts: 11796
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 42 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by mdrjr »

Hold on the update.. I'm working in addressing some of the issues to release a new image soon :)

lucabelluccini
Posts: 31
Joined: Mon Feb 25, 2013 8:03 am
languages_spoken: english
ODROIDs: X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by lucabelluccini »

Great job on releasing such a new ubuntu version.

Is gpu acceleration enabled?
I tried to run glxgear and it show an error about exynos_dri.so cannot be loaded.

User avatar
odroid
Site Admin
Posts: 38212
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2068 times
Been thanked: 1238 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by odroid »

You should run "es2gears" since ODROID boards support only OpenGL-ES not OpenGL (except for glshim).

WillB
Posts: 13
Joined: Thu Apr 25, 2013 3:28 am
languages_spoken: Dutch, English
ODROIDs: Odroid-X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by WillB »

mdrjr wrote:Hold on the update.. I'm working in addressing some of the issues to release a new image soon :)
all right, awesome!
thanks so much.
I'll be checking back here for any news.

lucabelluccini
Posts: 31
Joined: Mon Feb 25, 2013 8:03 am
languages_spoken: english
ODROIDs: X
Has thanked: 0
Been thanked: 0
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by lucabelluccini »

Hello,
any update on this?

Any chance to get a fairly stable image even just to run headless stuff (e.g. docker)?

User avatar
odroid
Site Admin
Posts: 38212
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 2068 times
Been thanked: 1238 times
Contact:

Re: Ubuntu 16.04 LTS : Issues and Solutions

Post by odroid »

Did you try this image? It should be okay if you don't use any wireless connection.
http://odroid.in/ubuntu_16.04lts/
file name : ubuntu_16.04lts/ubuntu-16.04-mate-odroid-x-20160920.img

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 2 guests