Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Moderators: mdrjr, odroid

Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sat Nov 30, 2013 4:49 am

Abandoned - Not working
Hint if you want to get it working search for systemd roll-back firmware loading or something like that.
Basically newer systemd's won't load the firmware

Name:
The Arch image with no name.

Features:
LXDE desktop with openbox window manager.
Chromium with working flash.
XBMC with libhybris HW decoding (mfc decoding also available as a pkg) Frodo as standard but can install Gotham.
ffmpeg with neon enabled.
vlc with neon enabled. (Bug see later)
Other small tweaks here and there that will come to me later !

Install:

Two ways:
My image or partly manually.

My Image:

Download the image
Code: Select all
wget http://odroidxu.leeharris.me.uk/xu/Arch_Linux_Hybris-0.1.img.xz


dd image to SD or emmc (tested on both). Image extracts to 3.6G so a 4G SD would just about do if you have to.
Code: Select all
xzcat Arch_Linux_Hybris-0.1.img.xz | dd of=/dev/sdX
Where sdX is the sdcard/emmc.

Once its finished (be patient, the write cache can take a while to clear) use gparted or similar to resize /dev/sdX2 to fill the available space.
User / Passwords
root/root
odroid/odroid
Edit I need to make a new image soon but if you want the system to be the same as 'partly manually' install do the following
Code: Select all
sudo pacman -Syu
sudo pacman -Sy pixman-neon chromium-pepper-flash-12 mesa mesa-libgl

Jump to next post

Partly manually
Follow the instructions at http://archlinuxarm.org/platforms/armv7/samsung/odroid-xu to get your basic Arch arm installed.
If using an emmc card (with an XU bootloder on it) you can skip steps 1-3

ssh in as root passwd:root (nmap can be handy to find it, hostname ALARM)
Code: Select all
nmap -sP 192.168.1.0/24


Then run the following commands

Update system
Code: Select all
pacman -Syu

Add my repo
Code: Select all
cat >> /etc/pacman.conf <<EOF
[odroidxu]
SigLevel = Never
Server = http://odroidxu.leeharris.me.uk/repo
EOF


Install packages
Code: Select all
pacman -Sy arj bash-completion chromium chromium-pepper-flash-12 ffmpeg-neon gpicview gvfs htop leafpad lhasa libfm libidn libpng-neon lxappearance lxappearance-obconf lxde-common lxde-icon-theme-mod lxinput lxlauncher lxmenu-data lxmusic lxpanel lxpolkit lxrandr lxsession lxshortcut lxtask lxterminal lzop menu-cache obconf openbox p7zip pavucontrol-gtk2 pcmanfm pixman-neon pulseaudio pulseaudio-alsa slim sudo unrar vlc-neon xarchiver-xz xbmc-libhybris-frodo-hyb xdg-su xf86-video-fbdev xorg-server xorg-xinit zip

Will be asked about a few packages

:: There are 7 providers available for ttf-font:
:: Repository extra
1) ttf-bitstream-vera 2) ttf-dejavu 3) ttf-freefont 4) ttf-linux-libertine
:: Repository community
5) ttf-droid 6) ttf-liberation 7) ttf-ubuntu-font-family
choose 2

:: linux-firmware-odroidxu and linux-firmware are in conflict. Remove linux-firmware? [y/N]Y
:: linux-odroid-xu-hybris and linux-odroid-xu are in conflict. Remove linux-odroid-xu? [y/N]Y


Bug in gtk2 pkg post install calls against a (mesa) library before its installed.
So
Code: Select all
/usr/bin/gtk-query-immodules-2.0 --update-cache

This next bit sets up various config files in /etc/skel to improve the Desktop and enable lxde but also edits other files to enable autologin, fix pulse, optimize makepkg.conf, add group wheel to sudoers. I'll add the full list of commands further down. Changed files are first copied to *.orig (except those under /etc/skel .xnitrc & .bashrc)
Code: Select all
pacman -Sy lxde-customizations


Enable slim dm
Code: Select all
systemctl enable slim


Next step optional . I like old style logs not just the journal logs
Code: Select all
pacman -Sy  syslog-ng
systemctl enable syslog-ng.service


Add users and groups
Code: Select all
groupadd -r pulse
groupadd -r pulse-access
useradd -r -d /run/pulse -g pulse -G audio pulse
useradd -m -g users -G audio,video,power,network,optical,storage,disk,wheel,pulse-access -s /bin/bash odroid


Delete package cache (optional, the internet is my package cache)
Code: Select all
pacman -Scc
Choose y & y

Set password
Code: Select all
passwd odroid

reboot

As promised this is what the post install of lxde-customisations does
post_install() {
grep "exec startlxde" /etc/skel/.xinitrc || echo "exec startlxde" >> /etc/skel/.xinitrc
grep "export EDITOR=nano" /etc/skel/.bashrc || echo "export EDITOR=nano" >> /etc/skel/.bashrc
[ ! -e /etc/sudoers.orig ] && cp /etc/sudoers /etc/sudoers.orig
sed -i -e 's:# %wheel ALL=(ALL) ALL:%wheel ALL=(ALL) ALL:' /etc/sudoers
[ ! -e /etc/makepkg.conf.orig ] && cp /etc/makepkg.conf /etc/makepkg.conf.orig
sed -i 's:CPPFLAGS="-D_FORTIFY_SOURCE=2":CPPFLAGS="":g' /etc/makepkg.conf
sed -i 's:CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4":CFLAGS="-O3 -pipe -mcpu=cortex-a15 -mfloat-abi=hard -mfpu=neon -ffast-math -ftree-vectorize -mvectorize-with-neon-quad -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2":g' /etc/makepkg.conf
sed -i 's:CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -O2 -pipe -fstack-protector --param=ssp-buffer-size=4":CXXFLAGS="-O3 -pipe -mcpu=cortex-a15 -mfloat-abi=hard -mfpu=neon -ffast-math -ftree-vectorize -mvectorize-with-neon-quad -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2":g' /etc/makepkg.conf
sed -i 's:#MAKEFLAGS="-j2":MAKEFLAGS="-j5":g' /etc/makepkg.conf
[ ! -e /etc/pulse/default.pa.orig ] && cp /etc/pulse/default.pa /etc/pulse/default.pa.orig
sed -i 's:load-module module-udev-detect$:load-module module-udev-detect tsched=0:g' /etc/pulse/default.pa
[ ! -e /etc/pulse/system.pa.orig ] && mv /etc/pulse/system.pa /etc/pulse/system.pa.orig
[ ! -L /etc/pulse/system.pa ] && ln -s /etc/pulse/default.pa /etc/pulse/system.pa
[ ! -e /etc/slim.conf.orig ] && cp /etc/slim.conf /etc/slim.conf.orig
sed -i 's:#default_user simone:default_user odroid:g' /etc/slim.conf
sed -i 's:#auto_login no:auto_login yes:g' /etc/slim.conf
}
Last edited by gripped on Mon Feb 16, 2015 11:38 am, edited 14 times in total.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sat Nov 30, 2013 4:50 am

VLC bug
I noticed a new version of VLC just before making the image and made a new package.
Unfortunatly vlc-neon now segfaults when started.
Work around install vlc , start vlc, close vlc, install vlc-neon.
Code: Select all
sudo pacman -S vlc
vlc
sudo pacman -S vlc-neon

now it works fine. (I'll make a new fixed image soon)

To do by installer
set locale if needed. https://wiki.archlinux.org/index.php/Locale
set timezone https://wiki.archlinux.org/index.php/Time#Time_zone
set X keyboard map https://wiki.archlinux.org/index.php/Keyboard_Configuration_in_Xorg#Using_setxkbmap
(you can set with setxkbmap in ~/.xsessionrc , currently set to us)

If you want to compile packages you need, at the least, to install base-devel
Code: Select all
pacman -S base-devel


Hints
When compiling PKGBUILD's or if using Yaourt to compile from AUR you will nearly always need the -A switch to ignore arch.
If you use the ABS (Arch Build System) it is a good idea to clone the ARM Arch Linux PKGBUILD's and copy them over the top every time you update the ABS tree. Some thing like.
Code: Select all
sudo abs
git clone https://github.com/archlinuxarm/PKGBUILDs.git
sudo cp -av PKGBUILDs/* /var/abs

As then if a PKGBUILD has been modified for ARM you'll be using it. (also the first ever time you run abs you have to run it twice)


Known issues
If you run XBMC you'll be asked for sudo (odroid) password and once given X will be killed and XBMC started. So make sure any thing needed is saved because all X programs will be killed without warning. When you leave xbmc a new X session will start. If I can improve this I will.
And see 'pacman -Syu upgrade breaks one of my modified packages' further down this post.

xbmc volume controls don't work with xbmc frodo. If you need to control the volume with xbmc (rather than your TV's remote) install Gotham
Code: Select all
sudo pacman -Sy xbmc-libhybris-gotham-hyb


Modified Packages in my repo
(Source PKGBUILDS https://github.com/gripped/odroidxu-pkgbuilds )

All the below have been compiled with these C(XX)FLAGS unless the package itself disables them
CFLAGS="-O3 -pipe -mcpu=cortex-a15 -mfloat-abi=hard -mfpu=neon -ffast-math -ftree-vectorize -mvectorize-with-neon-quad -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"

  • ffmpeg-neon - simply enabled neon
  • libhybris-hwcomposer-odroidxu - libhybris Bionic compatibility layer. Thanks hgblob
  • libpng-neon - simply enabled neon
  • linux-firmware-odroidxu - taken from an image on here, can't remember which. The standard one is missing some needed firmwares.
  • linux-odroid-xu-hybris - ARM Arch linux Kernel with additions to the config to enable Android logging needed by libhybris.
  • linux-odroid-xu-hybris-headers - headers for the kernel above
  • lxde-customizations - various config files for LXDE and other fixes mentioned earlier.
  • lxde-icon-theme-mod - the lxde icon theme, NuoveXT, has a black volume icon, can't be seen, so I replaced it with the volume icon from Faenza
  • vlc-neon - simply enabled neon
  • xbmc-libhybris-frodo-hyb - xbmc with libhybris windowing and libhybris hardware decoding . Thanks hgblob
  • xbmc-libhybris-frodo-mfc - xbmc with libhybris windowing and mfc hardware decoding . Thanks hgblob and oversun

The following packages were compiled from the AUR and added to my repo to aid installing the image manually
  • lhasa
  • pavucontrol-gtk2 (saves dragging in gtk3 as dependancy)
  • xarchiver-xz
  • xdg-su
If anyone has success or failure installing this please do let me know :)

pacman -Syu upgrade breaks one of my modified packages
With a rolling release like Arch when libraries a package depends on are upgraded then the package often needs rebuilding against the new libraries.
I do try to keep updating the packages but will sometime be behind.

You can do it yourselves though. Then you don't need to wait for me :)
Say your using xbmc-libhybris-frodo-hyb and and it stops working after a pacman upgrade

The below assumes you have the base-devel group installed. If not install it. You might have to install git as well.
Code: Select all
pacman -Sy base-devel


download the PKGBUILD's
Code: Select all
git clone https://github.com/gripped/odroidxu-pkgbuilds.git

change to the packages dir
Code: Select all
cd odroidxu-pkgbuilds/xbmc-libhybris-frodo-hyb

compile and build the package
Code: Select all
makepkg -As

Reinstall the package
Code: Select all
pacman -U NAME_OF_PACKAGE.pkg.tar.xz
Last edited by gripped on Sat May 03, 2014 6:56 am, edited 10 times in total.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby sert00 » Sat Nov 30, 2013 5:37 am

Gripped,very great thing!it's greatly appreciated!i'm using arch on Xu-E,i'll try this when finish downloading! :)
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 723
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sat Nov 30, 2013 7:10 am

Hope it works for you sert00. Do let me know :D
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby kibergus » Sun Dec 01, 2013 5:51 am

gripped, your image is compressed int-to tar.xz. xzcat would print tar archived image. So flowing command
Code: Select all
xzcat Arch_Linux_Hybris-0.1.tar.xz | dd of=/dev/sdX

would not create a bootable image. And adding bs=4M to dd dd arguments increases write speed.
kibergus
 
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sun Dec 01, 2013 7:17 am

Cheers kibergus. Schoolboy error will be fixed in a minute. Teaches me not to use gui tools without thinking about what I'm doing :oops:

IMHO dd blocksize may make a difference on fast devices but even at the default 512 the card / emmc is going to fall behind so I don't think that matters too much. But anyone is free to add what bs they choose if they know what they are doing. Which you do. I could be wrong but I'm not concerned enough to test the difference. And 512 feels sort of right as it matches the sector size. So I rarely change it unless using count or skip
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby kibergus » Sun Dec 01, 2013 9:01 pm

First of all I want to thank you very much for this image. This is the first linux image which plays video at leas as good as android images. It has xbmc-pvr-addons already packaged, so it can stream channels from my satellite receiver.
I've tried both native mfc and hybris decoders. Native decoder works better for me: it can open files that hybris decoder can't, especially 1080i video. But unfortunately it fails to decode them properly: some channels arereally choppy. And discovery channel looks surrealistic: I-frames are not decoded at all, so picture corrupts in quite a beautiful way. Problem is not within XBMC because MXPlayer under android has the same behavior.

Another hints. I was unable to switch performance governor by writing "performance" to /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor. But cpupower utility from following guide worked fine:
https://wiki.archlinux.org/index.php/CP ... cy_Scaling

One more thing which confuses me is CPU utilization during software video decoding. In vlc and mplayer I get only two cores loaded. In xbmc I get 4 cores loaded at 50%. I can't figure out what limits framerate.
IMHO dd blocksize may make a difference on fast devices but even at the default 512 the card / emmc is going to fall behind so I don't think that matters too much.

I'm flashing emmc from U2 with microsd adapter and I get 4 Mbs with default settings and 10 Mbs with larger block size. May be MBs, nit Mbs, I don't remember.
kibergus
 
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby sert00 » Sun Dec 01, 2013 11:02 pm

When i will be ready with that i'll leave a feecdback.sadly my xu doesn't boot with anything i dd to it..it's 2 days it's so.no hdmi display with arch,debian or lubuntu.
Boot-logs say it's unable to read the boot.scr,but my boot.ini is good.
I'll try this arch with boot.ini with touch lcd settings,if fails another time i'll try recover all my both emmc with xu bootloader with emmc-recovery-installer.
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 723
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sun Dec 01, 2013 11:45 pm

@sert00

Have you tried checking the boot switches ? I've had a couple of occasions where they seemed to be in the correct position for emmc but the XU was trying to boot from SD or visa versa. I moved the switch back and forth and then it was OK.

@Kibergus

Glad to hear it's of use.

With the performance governor using sudo echo won't work I think. You need to be in a true root terminal session or do it from a script as root. Could that be why ?

I have this service file at /usr/lib/systemd/system/rc.local.service
Code: Select all
[Unit]
Description=/etc/rc.local Compatibility
After=sshd.service

[Service]
Type=oneshot
ExecStart=/etc/rc.local
TimeoutSec=0
StandardInput=tty
RemainAfterExit=no

[Install]
WantedBy=multi-user.target


enabled with
Code: Select all
systemctrl enable rc.local.service

Then you can do it from /etc/rc,local.
Arch purists don't tend to like rc.local but I find it handy.

Not sure about the cores ? I see 4 cores being used in vlc. Mplayer I found to perform the worst out of vlc , xine and mplayer.
The best software player on the harder test files I've tried is ffplay , the ffmpeg player.
Last edited by gripped on Mon Dec 02, 2013 2:25 am, edited 2 times in total.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby robroy » Mon Dec 02, 2013 1:15 am

The best software player on the harder test files I've tried is ffplay , the ffmpeg player.

This has been my experience as well. IIRC, Xine is a wrapper for ffplay and should perform similarly.

Unfortunately, ffplay by itself isn't very user-friendly, as it requires memorizing keyboard shortcuts for full-screen, etc because of its lack of menus.

However, I've heard that ffplay can renders videos without using X, which would of course give the best performance of all.
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article) | Donate to support new ODROID community images and software
User avatar
robroy
 
Posts: 2875
Joined: Mon Feb 25, 2013 2:29 am
Location: San Francisco, California
languages_spoken: English
ODROIDs: 16 Odroids (Q2, X, X2 x 2, U2 x 3, U3 x 4, XU-E, XU3 x 3, C1) running Dream Machine, Quiet Giant, Kali, Particle, Whisper, Code Monkey, Smooth Groove and Pocket Rocket

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Mon Dec 02, 2013 2:37 am

robroyhall wrote:
The best software player on the harder test files I've tried is ffplay , the ffmpeg player.

This has been my experience as well. IIRC, Xine is a wrapper for ffplay and should perform similarly.

Yeah Xine works quite well but I find the GUI , No matter which skin, ugly and hard to navigate. Just my opinion.
Unfortunately, ffplay by itself isn't very user-friendly, as it requires memorizing keyboard shortcuts for full-screen, etc because of its lack of menus.

However, I've heard that ffplay can renders videos without using X, which would of course give the best performance of all.

I wouldn't have thought ffplay won't work without X on the XU as it is because we have no framebuffer console etc.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby robroy » Mon Dec 02, 2013 3:50 am

gripped wrote:I wouldn't have thought ffplay won't work without X on the XU as it is because we have no framebuffer console etc.

The U2/X2/X got a framebuffer console a few weeks ago, maybe the -XU is next?
Rob Roy, Editor-in-Chief of ODROID Magazine (submit an article) | Donate to support new ODROID community images and software
User avatar
robroy
 
Posts: 2875
Joined: Mon Feb 25, 2013 2:29 am
Location: San Francisco, California
languages_spoken: English
ODROIDs: 16 Odroids (Q2, X, X2 x 2, U2 x 3, U3 x 4, XU-E, XU3 x 3, C1) running Dream Machine, Quiet Giant, Kali, Particle, Whisper, Code Monkey, Smooth Groove and Pocket Rocket

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby sert00 » Tue Dec 03, 2013 5:24 am

gripped wrote:@sert00

Have you tried checking the boot switches ? I've had a couple of occasions where they seemed to be in the correct position for emmc but the XU was trying to boot from SD or visa versa. I moved the switch back and forth and then it was OK.

@Kibergus

Glad to hear it's of use.

With the performance governor using sudo echo won't work I think. You need to be in a true root terminal session or do it from a script as root. Could that be why ?

I have this service file at /usr/lib/systemd/system/rc.local.service
Code: Select all
[Unit]
Description=/etc/rc.local Compatibility
After=sshd.service

[Service]
Type=oneshot
ExecStart=/etc/rc.local
TimeoutSec=0
StandardInput=tty
RemainAfterExit=no

[Install]
WantedBy=multi-user.target


enabled with
Code: Select all
systemctrl enable rc.local.service

Then you can do it from /etc/rc,local.
Arch purists don't tend to like rc.local but I find it handy.

Not sure about the cores ? I see 4 cores being used in vlc. Mplayer I found to perform the worst out of vlc , xine and mplayer.
The best software player on the harder test files I've tried is ffplay , the ffmpeg player.


Hi!already checked this,and with my 64gb emmc with android it boots ok...probably i messed something in both my emmc with linux.I'm working so much these days,when i'll have another couple hours free i'll try to find the root cause.So bad,i really want to try this image!
cheers guys
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 723
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Tue Dec 03, 2013 10:11 am

Another thought. I messed up the first image I posted. If your still trying with that then either download and try the new one otherwise the first image needs extracting with tar -xJvf foo.img.tar.xz and then writing with dd (without xzcat).
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

change MAC address manually

Unread postby chanyufei » Sun Dec 08, 2013 1:53 pm

I tried to change the MAC address (I need to use a different registered one to connect to the university's network) using

Code: Select all
sudo ip link set dev eth0 down
sudo ip link set dev eth0 address xx:xx:xx:xx:xx:xx


But it returned the following error:

Code: Select all
RTNETLINK answers: Device or resource busy


I pull out the cable but problem didn't resolve. Any idea?
chanyufei
 
Posts: 23
Joined: Fri Oct 18, 2013 1:16 pm
languages_spoken: english
ODROIDs: odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby kibergus » Sun Dec 08, 2013 4:04 pm

MAC address is stored in /etc/smsc95xx_mac_addr. You can change it there.
kibergus
 
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby chanyufei » Sun Dec 08, 2013 6:28 pm

kibergus wrote:MAC address is stored in /etc/smsc95xx_mac_addr. You can change it there.


Thank you!
chanyufei
 
Posts: 23
Joined: Fri Oct 18, 2013 1:16 pm
languages_spoken: english
ODROIDs: odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby chanyufei » Sun Dec 08, 2013 6:50 pm

Another question, there is no sound for now although I can adjust the volume....I used

Code: Select all
setenv vout         "dvi"


in my boot.ini. Is it the possible reason?
chanyufei
 
Posts: 23
Joined: Fri Oct 18, 2013 1:16 pm
languages_spoken: english
ODROIDs: odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby odroid » Sun Dec 08, 2013 7:00 pm

The DVI output mode doesn't make any sound on the HDMI port.
You can use a phone jack on the XU.
User avatar
odroid
Site Admin
 
Posts: 8979
Joined: Fri Feb 22, 2013 11:14 pm
Location: Seoul Korea
languages_spoken: english
ODROIDs: ODROID

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby chanyufei » Sun Dec 08, 2013 7:13 pm

Thanks for the quick response, odroid. Yes, I am using the phone jack (connected to my speaker).

I just played a bit with "PulseAudio Volume Control". I found that I need to change the followings to make the sound work. In Output Devices/Port, change
Code: Select all
Speacker
to
Code: Select all
Headphones

And then in Configuration/Profile, I need to switch between Analog Stereo Duplex and Off several times to make sound work properly.
Sorry I know it's strange but I don't know what happened here, and it is now working.
chanyufei
 
Posts: 23
Joined: Fri Oct 18, 2013 1:16 pm
languages_spoken: english
ODROIDs: odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sun Dec 15, 2013 2:58 am

The naming of mesa-noegl and mesa-libgl was causing issues doing pacman upgrades.
I have changed the name of my mesa-libgl to mesa-libgl-noegl.

If you have installed the image you will need to do the following
or followed the manual instructions prior to me posting this you will need to do the following.

Code: Select all
sudo pacman -Rdd mesa-noegl mesa-libgl
sudo pacman -Sy mesa-libgl-noegl 
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby mozsaf » Fri Jan 10, 2014 6:56 am

Boyz, and congratulate everybody! This forum very good and useful for every Odroid topics. :)

I bought a first Odroid device in the last week, and I tested this Arch Linux image. Sorry, that I am beginner in the small board computers, but could you help me? How can I install the distribution to emmc? Because to the SD card install with "dd if=imgname of=/dev/sdc" was successful and boot it, but if I wrote the same command to emmc, the board cannot boot. Of course, I set a dip buttons to on+on.

The other question: is this linux OS and kernel tuning system? Or this XU device is very very well by factory state :)
mozsaf
 
Posts: 5
Joined: Fri Jan 10, 2014 6:43 am
languages_spoken: english, hungarian
ODROIDs: Odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Fri Jan 10, 2014 7:30 am

The emmc must have an XU bootloader on it.
Either it has another type of bootloader or the bootloader is corrupted.

In either case follow the instructions here to install the bootloader on the emmc

http://forum.odroid.com/viewtopic.php?f=60&t=2042

Then dd the Arch image again. (bootloader won't be overwritten. Its in a protected part of the emmc)


Second question I Don't really understand sorry
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby Apokalypz » Sat Jan 11, 2014 2:16 am

Just an FYI if you can't get your Arch booted on eMMC after restoring the boot loader. You have to edit the boot.ini in your /boot partition and comment out "run verify". It won't boot if it's not commented out.
Apokalypz
 
Posts: 128
Joined: Thu Dec 26, 2013 12:58 pm
Location: USA
languages_spoken: english
ODROIDs: • Odroid -XU
• Odroid-C1

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sat Jan 11, 2014 3:00 am

Apokalypz wrote:Just an FYI if you can't get your Arch booted on eMMC after restoring the boot loader. You have to edit the boot.ini in your /boot partition and comment out "run verify". It won't boot if it's not commented out.


Just checked and my boot.ini has 'run verify' and boots from the emmc fine ?

Worth a try though if having problems but it's not caused me any yet.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby raduab » Sun Jan 12, 2014 2:30 pm

I installed the packages manually from your repository, but I am unable to make the hdmi to show something on the display. Previoiusly I had a service running (exynos5-hwcomposer) from odroid, but now I don't know hot to set it up with the hybris kernel. Please advice. Thanks.

EDIT: Solved, I installed back the exynos-hwcomposer and started it.

However, I have another question: I have Enlightenment 17 installed as the window manager. When I coose to use OpenGL as the composite renderer, the screen blacks out and stays like this. I thought I'll be able to use hardware acceleration with hybris for Enlightenment. Any thoughts?
raduab
 
Posts: 2
Joined: Sun Jan 12, 2014 2:27 pm
languages_spoken: english
ODROIDs: ODROID-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby memeka » Sun Jan 12, 2014 2:55 pm

1) OpenGL and GLES are different - hybris provides GLES not GL
2) API through hybris is not exactly compatible, so code need to be rewritten for hybris. I believe Canonical is working on unity for hybris, but if it's not explicitly stated, things won't work with hybris. XBMC modules were rewritten by hgblob to work with hybris.
User avatar
memeka
 
Posts: 2450
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby raduab » Sun Jan 12, 2014 3:05 pm

I see, I didn't know the difference, now I do.

However, I think the first problem was not resolved, by installing and running exynos5-hwcomposer, as I'm not able to run vlc-neon either with it. I think that when I'm starting the exynos5-hwcomposer, it is not working with hybris.
raduab
 
Posts: 2
Joined: Sun Jan 12, 2014 2:27 pm
languages_spoken: english
ODROIDs: ODROID-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby memeka » Sun Jan 12, 2014 5:12 pm

exactly, hybris has its own compositor which is not working with X.
So it's either non accelerated X, or XBMC with android compositor.
User avatar
memeka
 
Posts: 2450
Joined: Mon May 20, 2013 10:22 am
languages_spoken: english
ODROIDs: XU rev2 + eMMC + UART
U3 + eMMC + IO Shield + UART

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sun Jan 12, 2014 8:25 pm

raduab wrote:I installed the packages manually from your repository, but I am unable to make the hdmi to show something on the display. Previoiusly I had a service running (exynos5-hwcomposer) from odroid, but now I don't know hot to set it up with the hybris kernel. Please advice. Thanks.

EDIT: Solved, I installed back the exynos-hwcomposer and started it.

However, I have another question: I have Enlightenment 17 installed as the window manager. When I coose to use OpenGL as the composite renderer, the screen blacks out and stays like this. I thought I'll be able to use hardware acceleration with hybris for Enlightenment. Any thoughts?


Yeah as memka points out there is no egl / gles support under Xwindows on the XU.
So no compositing can be done.

Take a look at the xbmc-standalone file my xbmc pkg's install
Code: Select all
#!/bin/bash
systemctl stop slim
systemctl stop exynos5-hwcomposer.service
[ -h /dev/log/events ] || android-logs
pgrep mediaserver || hybris-support
chmod 666 /dev/input/e* /dev/input/m*
pulseaudio  --system  --disallow-module-loading --disallow-exit -D
sudo -u odroid /usr/lib/xbmc/xbmc.bin --standalone
pkill pulseaudio
systemctl start slim
sleep 1
systemctl start exynos5-hwcomposer.service


This switches between X windows and XBMC. If you are using a Display Manager other than slim this would need altering to work.
Code: Select all
systemctl stop slim
.
.
.
systemctl start slim

I'm sure my xbmc-standalone could be done better but it works!

LXDE isn't very 'bling' but is lightweight and fairly well featured
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby mozsaf » Sun Jan 12, 2014 9:10 pm

gripped wrote:The emmc must have an XU bootloader on it.
Either it has another type of bootloader or the bootloader is corrupted.

In either case follow the instructions here to install the bootloader on the emmc

http://forum.odroid.com/viewtopic.php?f=60&t=2042

Then dd the Arch image again. (bootloader won't be overwritten. Its in a protected part of the emmc)


Second question I Don't really understand sorry




Thanks, It was successful! :)

The second question is, that is this Linux tuning system? So, the features and performance is going whith normaly or it use any tuning parameters. Sorry, my english is a litle bit wrong :(

Do you help me, how I can change the display resolution?
mozsaf
 
Posts: 5
Joined: Fri Jan 10, 2014 6:43 am
languages_spoken: english, hungarian
ODROIDs: Odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sun Jan 12, 2014 10:16 pm

mozsaf wrote:
Thanks, It was successful! :)

Cool :D
The second question is, that is this Linux tuning system? So, the features and performance is going whith normaly or it use any tuning parameters. Sorry, my english is a litle bit wrong :(


I think I understand. I have tuned it to get the best out of my XU but there is always more that could be achieved I suppose.
One thing I have done on my XU but is not in the image is to force the XU to only use the A15 (faster) cpu cores.
This is done by this command

Code: Select all
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Which has to be run from a root prompt (not sudo)

To make it permanent I choose to create a rc.local file with that command in it and a systemd service to run rc.local at boot
There is an explanation further back in this thread. http://forum.odroid.com/viewtopic.php?f=62&t=2898#p23804

Do you help me, how I can change the display resolution?


Done via /etc/boot.ini
I have only used 1920x1080 so haven't changed it myself.
If you look at the file it's quite well commented to see what to change. Make a backup , edit and reboot.
The choices of resolution on offer are limited. What resolution do you want?
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby mozsaf » Sun Jan 12, 2014 10:28 pm

Thanks gripped!

I use my XU two location, in office monitor with full HD (so no changes needed), and at home with monitor but it works 1600x900. But, I think is will be useful that the most resolution should be supported. For example, my colleague monitor's use 1440x900 and 1280x1024. The like XU and your system colletcion and want to buy more XU :)

And the other thing, can I enable consoles on the system? For example CTRL+ALT+F1, F2....

Thanks a lot :)
mozsaf
 
Posts: 5
Joined: Fri Jan 10, 2014 6:43 am
languages_spoken: english, hungarian
ODROIDs: Odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Sun Jan 12, 2014 11:29 pm

mozsaf wrote:Thanks gripped!

I use my XU two location, in office monitor with full HD (so no changes needed), and at home with monitor but it works 1600x900. But, I think is will be useful that the most resolution should be supported. For example, my colleague monitor's use 1440x900 and 1280x1024. The like XU and your system colletcion and want to buy more XU :)

Only 1280x720 and 1920x1080 are available via HDMI I think. Some screens may be able to upscale or downscale. Its a limitation of the SoC not the OS.
There is also Displayport output which I think can do more resolutions but I know little about it. Search the forum or start a new thread for that.
And the other thing, can I enable consoles on the system? For example CTRL+ALT+F1, F2....

No not at present. No Linux on the XU has this but it's being worked on I think
Thanks a lot :)


You're Welcome :D
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby mozsaf » Mon Jan 13, 2014 12:07 am

I see gripped, thank you!
mozsaf
 
Posts: 5
Joined: Fri Jan 10, 2014 6:43 am
languages_spoken: english, hungarian
ODROIDs: Odroid-XU

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby CP-Geek » Tue Jan 14, 2014 11:56 pm

Just got my 10" hardkernel lcd, blimks, lights up background etc, but no picture. biit,ini is 1280x800 lcd and i'm wondering what jave I missed?

Arch itself runs' fine.

What confuses me is this in dmesg:

Code: Select all
[    7.819478] S5P ACE Driver, (c) 2010 Samsung Electronics
[    7.831969] ACE: ecb-aes-s5p-ace
[    7.834424] ACE: cbc-aes-s5p-ace
[    7.837309] ACE: ctr-aes-s5p-ace
[    7.853735] ACE: sha1-s5p-ace
[    7.856930] ACE: sha256-s5p-ace
[    7.858593] ACE driver is initialized
[    7.895944] s5p-mipi-csis.2
[    7.895949] : s5pcsis_subdev_close
[    7.901876] [INFO]flite_subdev_close:605:
[    7.905190] [INFO]flite_subdev_close:605:
[    7.905825] s5p-mipi-csis.1
[    7.905831] : s5pcsis_subdev_close
[    7.919594] [INFO]flite_pipeline_prepare:700: me->name : exynos-fimc-lite.1
[    7.926874] [INFO]flite_subdev_close:605:
[    7.929784] [INFO]flite_pipeline_prepare:720: flite->pipeline.flite : 0x  (null)
[    7.932318] s5p-mipi-csis.0
[    7.932323] : s5pcsis_subdev_close
[    7.944927] [INFO]flite_pipeline_prepare:721: flite->pipeline.sensor : 0x  (null)
[    7.951018] [INFO]flite_pipeline_prepare:722: flite->pipeline.csis : 0x  (null)
[    7.959179] [ERROR]gsc_capture_open:705: gsc pipeline initialization failed

[    7.959207] [ERROR]gsc_capture_open:705: gsc pipeline initialization failed

[    7.959530] [ERROR]gsc_capture_open:705: gsc pipeline initialization failed

[    7.959961] [INFO]flite_pipeline_prepare:700: me->name : exynos-fimc-lite.0
[    7.959974] [INFO]flite_pipeline_prepare:720: flite->pipeline.flite : 0x  (null)
[    7.959985] [INFO]flite_pipeline_prepare:721: flite->pipeline.sensor : 0x  (null)
[    7.959996] [INFO]flite_pipeline_prepare:722: flite->pipeline.csis : 0x  (null)
[    7.960033] [INFO]flite_pipeline_prepare:700: me->name : exynos-fimc-lite.2
[    7.960045] [INFO]flite_pipeline_prepare:720: flite->pipeline.flite : 0x  (null)
[    7.960055] [INFO]flite_pipeline_prepare:721: flite->pipeline.sensor : 0x  (null)
[    7.960066] [INFO]flite_pipeline_prepare:722: flite->pipeline.csis : 0x  (null)
[    7.960093] [ERROR]flite_open:891: flite pipeline initialization failed

[    7.960571] [ERROR]flite_open:891: flite pipeline initialization failed

[    7.961013] [ERROR]gsc_capture_open:705: gsc pipeline initialization failed

[    8.066532] [ERROR]flite_open:891: flite pipeline initialization failed


So somethings wrong here?
CP-Geek
 
Posts: 17
Joined: Thu Jan 02, 2014 1:31 am
languages_spoken: english
ODROIDs: XU w. 10" LCD

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Wed Jan 15, 2014 12:37 am

My guess ,either missing firmware or something not enabled in kernel ?

There is a thread with the same errror
[ 7.959179] [ERROR]gsc_capture_open:705: gsc pipeline initialization failed


http://forum.odroid.com/viewtopic.php?f=63&t=2351
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby CP-Geek » Wed Jan 15, 2014 2:10 am

I assumed it was included for the hardkernel lcd in this release?

Need to poke around a little to see if it could be that simple reason.

I do have MFC-firmware s5p-mfc present, actually both s5p-mfc and s5p-mfc-v6.fw so I'm clueless again. THis is somewhat confusing, never ahd to do this kinda exersice to get a dsiplay to work :)
CP-Geek
 
Posts: 17
Joined: Thu Jan 02, 2014 1:31 am
languages_spoken: english
ODROIDs: XU w. 10" LCD

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby CP-Geek » Wed Jan 15, 2014 2:45 am

Heres pastebin of dmesg if it helps anyone to clarify this a bit.
CP-Geek
 
Posts: 17
Joined: Thu Jan 02, 2014 1:31 am
languages_spoken: english
ODROIDs: XU w. 10" LCD

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Wed Jan 15, 2014 2:53 am

CP-Geek wrote:I assumed it was included for the hardkernel lcd in this release?

Need to poke around a little to see if it could be that simple reason.

I do have MFC-firmware s5p-mfc present, actually both s5p-mfc and s5p-mfc-v6.fw so I'm clueless again. THis is somewhat confusing, never ahd to do this kinda exersice to get a dsiplay to work :)


It's not an official release. It uses the Kernel from Arch Arm modified for libhybris support and the firmware I took from another linux image on here because the Arch Arm (Alarm) firmware were missing some (mfc and something else). I should make more notes !
I only ever tested for HDMI @ 1920x1080 cos that's what I have.

The Alarm kernel builds from the hardkernel source but the kernel configs are quite different
Alarm config https://raw.github.com/archlinuxarm/PKGBUILDs/master/core/linux-odroid-xu/config
Hardkernel config https://raw.github.com/hardkernel/linux/odroidxu-3.4.y/arch/arm/configs/odroidxu_ubuntu_defconfig

I did try compiling and using the hardkernel kernel but there were a few Arch specific issues so I switched back to the Alarm one (I remember having a problem with the Slim login manager).

Try a diff between the two configs and you may see what's missing.
I'll have a look myself later if time presents itself.
If no-one else answers here I'd suggest starting a new thread and then the clever people will more likely see it :)

I tack this on to the end of the Alarm config.

Code: Select all
#
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ASHMEM=y
CONFIG_ANDROID_LOGGER=y
CONFIG_ANDROID_PERSISTENT_RAM=y
CONFIG_ANDROID_RAM_CONSOLE=y
# CONFIG_PERSISTENT_TRACER is not set
CONFIG_ANDROID_TIMED_OUTPUT=y
CONFIG_ANDROID_TIMED_GPIO=y
# CONFIG_ANDROID_LOW_MEMORY_KILLER is not set
# CONFIG_ANDROID_SWITCH is not set
CONFIG_ANDROID_INTF_ALARM_DEV=y
# CONFIG_PHONE is not set
# CONFIG_USB_WPAN_HCD is not set
CONFIG_CLKDEV_LOOKUP=y
Last edited by gripped on Wed Jan 15, 2014 11:11 pm, edited 1 time in total.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby sert00 » Wed Jan 15, 2014 10:59 pm

The lcd from hardkernel works out of the box guys with gripped's arch image.
You ned to have in the boot.ini:
proper rsolution matching ----- 1280x800
proper type of source selected -----lcd (in the place where there are lcd,dp,hdmi,dvi,you have to select lcd)
After all double check yours connectors,took me a while to understand why it didn't work.
2x Odroid-U2
Odroid-XU-E
Odroid-U3
Lcd touch panel 10.1"
2x Emmc 16gb
Emmc 8gb
Emmc 64gb
IO-board
IO-shield
Expansion board
Wifi dongle 2\3
Gigabit LAN
Sata3 HDDock
USB3.0 OTG Adapter
Smart Power
2x UART Module
BT dongle
User avatar
sert00
 
Posts: 723
Joined: Sun Feb 24, 2013 12:26 am
languages_spoken: english,italian
ODROIDs: 2*U2/XU-E/U3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Wed Jan 15, 2014 11:22 pm

Cheers for clearing that up sert00.

I knew someone clever would be along soon :)
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby UncleSlug » Thu Jan 16, 2014 1:38 pm

Doing the partly manual way it tells me that "lxde-customizations-1-1-armv7h.pkg.tar.xz is corrupted (invalid or corrupted package (checksum))". I tried it a couple of times to make sure it wasn't a dodgy one off.

Might be worth adding an xmbc systemd service thingy, and user account for if anyone wants to boot into xbmc instead of lxde?

From the non-libhybris xbmc package (.INSTALL):
Code: Select all
post_install() {
  [[ $(type -p gtk-update-icon-cache) ]] && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
  [[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
  getent group xbmc > /dev/null || groupadd xbmc
  getent passwd xbmc > /dev/null || useradd -m -d /var/lib/xbmc -g xbmc xbmc
  usermod -a -G xbmc,audio,video,power,network,optical,storage,disk xbmc
  chown -R 102:0 etc/polkit-1
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
  echo "You may want to remove xbmc user and group"
}


/usr/lib/systemd/system/xbmc.service
Code: Select all
[Unit]
Description = Starts instance of XBMC using xinit
After = remote-fs.target

[Service]
User = xbmc
Group = xbmc
Type = simple
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -l /run/lirc/lircd -- :0 -nolisten tcp
Restart = on-abort

[Install]
WantedBy = multi-user.target


Is there much difference between the hyb and mfc packages?
UncleSlug
 
Posts: 6
Joined: Wed Jan 15, 2014 3:37 pm
languages_spoken: english
ODROIDs: ODROID-XU Lite

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Thu Jan 16, 2014 7:39 pm

UncleSlug wrote:Doing the partly manual way it tells me that "lxde-customizations-1-1-armv7h.pkg.tar.xz is corrupted (invalid or corrupted package (checksum))". I tried it a couple of times to make sure it wasn't a dodgy one off.



Thanks for letting me know. Should be fixed now.


Might be worth adding an xmbc systemd service thingy, and user account for if anyone wants to boot into xbmc instead of lxde?

From the non-libhybris xbmc package (.INSTALL):
Code: Select all
post_install() {
  [[ $(type -p gtk-update-icon-cache) ]] && usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
  [[ $(type -p update-desktop-database) ]] && usr/bin/update-desktop-database -q usr/share/applications
  getent group xbmc > /dev/null || groupadd xbmc
  getent passwd xbmc > /dev/null || useradd -m -d /var/lib/xbmc -g xbmc xbmc
  usermod -a -G xbmc,audio,video,power,network,optical,storage,disk xbmc
  chown -R 102:0 etc/polkit-1
}

post_upgrade() {
  post_install $1
}

post_remove() {
  post_install $1
  echo "You may want to remove xbmc user and group"
}


/usr/lib/systemd/system/xbmc.service
Code: Select all
[Unit]
Description = Starts instance of XBMC using xinit
After = remote-fs.target

[Service]
User = xbmc
Group = xbmc
Type = simple
ExecStart = /usr/bin/xinit /usr/bin/xbmc-standalone -l /run/lirc/lircd -- :0 -nolisten tcp
Restart = on-abort

[Install]
WantedBy = multi-user.target


I'll look into doing this when I have some time.
The bits you quote are, to a degree, leftovers from the original PKGBUILD. It won't work as is.

You can add an autostart in /home/odroid/.config/autostart/

create the file xbmc.desktop with this in it
Code: Select all
[Desktop Entry]

Type=Application

Exec=/usr/bin/xbmc

Should start xbmc automatically, after X,


Is there much difference between the hyb and mfc packages?


Just the decoders. Hyb uses the android blobs to decode. mfc uses native code by oversun to decode. x264 only I think for mfc ?
/etc/media_codecs.xml shows the formats hyb can decode.
Anything that can't be decoded by hyb or mfc will fall back on ffmpeg (software). You can see which decoder xbmc is using by pressing 'O' during playback.
There is more explanation on this thread http://forum.odroid.com/viewtopic.php?f=61&t=2589
Depending on your media one might produce better results than the other. There's no way to change at runtime , its compiled in so I made a package for both. I use mfc

I admit there is much untidiness and fudge in my PKGBUILD's but my original aim was simply to get it working for myself (believe me I struggled).
Then I thought I'd share it as it might help others.
My intention has been to go back and tidy every thing up but I have not got round to it yet. One day ........
Last edited by gripped on Fri Jan 24, 2014 7:53 pm, edited 1 time in total.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby Sonic-Y3k » Tue Jan 21, 2014 2:16 am

Hi, i'm running into a problem with the max98090 audio driver.

While on 3.4.70-2-ARCH:
Code: Select all
[    4.784297] soc-audio soc-audio.0: ASoC machine Odroid-max98090 should use snd_soc_register_card()
[    4.792599] samsung-i2s samsung-i2s.0: EPLL rate = 400000000
[    4.797766] samsung-i2s samsung-i2s.0: SRP rate = 100000000
[    4.803313] samsung-i2s samsung-i2s.0: BUS rate = 50000000
[    4.831568] max98090 1-0010: MAX98090 REVID=0x43
[    4.849476] GACT probability NOT on
[    4.851531] Mirror/redirect action on
[    4.855133] u32 classifier
[    4.857848]     Actions configured


On 3.4.76-1-ARCH I get:
Code: Select all
[    4.739180] soc-audio soc-audio.0: ASoC machine Odroid-max98090 should use snd_soc_register_card()
[    9.764299] max98090 1-0010: Failed to reset codec: -5
[   14.769299] max98090 1-0010: Failed to read device revision: -1
[   14.773774] max98090 1-0010: asoc: failed to probe CODEC max98090.1-0010: -1
[   14.780856] asoc: failed to instantiate card Odroid-max98090: -1


Is anyone experiencing similar problems?!

Anyways, thanks for your work!

Greetings,
Sonic-Y3k
Sonic-Y3k
 
Posts: 18
Joined: Tue May 21, 2013 12:32 am
languages_spoken: english,german
ODROIDs: ODROID-U2
ODROID-XU Lite

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Tue Jan 21, 2014 3:47 am

I'll check

In case you need it the old packages (most, not all) are here http://odroidxu.leeharris.me.uk/repo/old/

Edited to add:

No its fine for me

Code: Select all
 
[    0.000000] Booting Linux on physical CPU 0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.4.76-1-ARCH (odroid@alarm) (gcc version 4.7.2 (GCC) ) #1 SMP PREEMPT Fri Jan 17 01:09:29 GMT 2014
.
.
.
[    4.649351] soc-audio soc-audio.0: ASoC machine Odroid-max98090 should use snd_soc_register_card()
[    4.657642] samsung-i2s samsung-i2s.0: EPLL rate = 400000000
[    4.662768] samsung-i2s samsung-i2s.0: SRP rate = 100000000
[    4.668320] samsung-i2s samsung-i2s.0: BUS rate = 50000000
[    4.697480] max98090 1-0010: MAX98090 REVID=0x43
[    4.705582] asoc: HiFi <-> samsung-i2s.0 mapping ok
[    4.709935] asoc: HiFi <-> samsung-i2s.0 mapping ok


I just reinstalled linux-odroid-xu-hybris to double check and all is fine.
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby Sonic-Y3k » Tue Jan 21, 2014 10:41 pm

I tried a third time, now everything works as expected. Thank you for checking!

Sonic-Y3k
Sonic-Y3k
 
Posts: 18
Joined: Tue May 21, 2013 12:32 am
languages_spoken: english,german
ODROIDs: ODROID-U2
ODROID-XU Lite

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Tue Jan 21, 2014 11:25 pm

Sonic-Y3k wrote:I tried a third time, now everything works as expected. Thank you for checking!

Sonic-Y3k

Your welcome :)
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby kibergus » Wed Jan 29, 2014 2:48 pm

I need a little help with arch linux. I want to mount NFS share on boot. I've installed nfs-utils and added to my /etf/fstab
Code: Select all
sat.home:/mnt/hdd                       /mnt/sat     nfs     bg,hard 0 0

If I type "mount /mnt/sat" share mounts as intended. But in never mounts during boot:
Code: Select all
Jan 01 03:45:59 alarm systemd[1]: mnt-sat.mount mount process exited, code=exited status=32
Jan 01 03:45:59 alarm systemd[1]: Failed to mount /mnt/sat.
Jan 01 03:45:59 alarm systemd[1]: Dependency failed for Remote File Systems.
Jan 01 03:45:59 alarm systemd[1]: Unit mnt-sat.mount entered failed state.

This happens because it is beeing mounted before network starts. I've tried adding _netdev option to explicetely tell systemd that network must be loaded first. Still no luck.
kibergus
 
Posts: 401
Joined: Sat Feb 23, 2013 11:23 pm
languages_spoken: english, russian
ODROIDs: U2 X2

Re: Arch Linux XU Image (LXDE, XBMC Libhybris, Flash, Neon)

Unread postby gripped » Wed Jan 29, 2014 10:26 pm

kibergus wrote:This happens because it is beeing mounted before network starts. I've tried adding _netdev option to explicetely tell systemd that network must be loaded first. Still no luck.


I struggled with this as well , _netdev didn't work. Mounting from rc.local din't work even after a long sleep. Calling scripts which looped checking for the existence of a file on one of the shares and doing mount -a if not there didn't work.
I still don't know why ? calling the scripts or rc.local from the command line did always work.

However to cut a long story short I got it working by replacing _netdev in fstab with
Code: Select all
auto,x-systemd.automount
gripped
 
Posts: 433
Joined: Tue May 21, 2013 11:34 pm
languages_spoken: english
ODROIDs: U2 XU U3 XU3

Next

Return to Other OS

Who is online

Users browsing this forum: No registered users and 2 guests