[OS] Debian Jessie

gseaman
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by gseaman » Sat Nov 12, 2016 2:38 am

gseaman wrote:Thank you!

Unfortunately, the new kernel did not work. The issue for c2play is being discussed here. Thanks again for your time.
Good news! c2play is now working on this image. After the new kernel, I also had to 'chmod a+rw /dev/fb0'. I am not sure if this is the correct and secure method, but it works.

Thanks for the kernel.

Galen

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sat Nov 12, 2016 6:38 am

lampoverde wrote:Hello everyone, I'm using the distro of this page, and I am very well because it is customizable, or needs' of aid are a noob and I have to enable the display 3.2-inch touchscreen connected to the serial. I followed the lead of this page http://odroid.com/dokuwiki/doku.php?id=en:c1_lcdshield but I can not make the change permanent. you have a distro with already implemented this display? I need to make a remote timer.

thanks to all the help
instead of using "modprobe" as said in set 1. Insert modules
put these lines in /etc/modules:

Code: Select all

echo "spicc" >> /etc/modules
echo "fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0" >> /etc/modules
that should be all to make it permanent.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

lampoverde
Posts: 6
Joined: Sat Nov 12, 2016 2:04 am
languages_spoken: italian
ODROIDs: c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by lampoverde » Sun Nov 13, 2016 4:42 pm

meveric wrote:
lampoverde wrote:Hello everyone, I'm using the distro of this page, and I am very well because it is customizable, or needs' of aid are a noob and I have to enable the display 3.2-inch touchscreen connected to the serial. I followed the lead of this page http://odroid.com/dokuwiki/doku.php?id=en:c1_lcdshield but I can not make the change permanent. you have a distro with already implemented this display? I need to make a remote timer.

thanks to all the help
instead of using "modprobe" as said in set 1. Insert modules
put these lines in /etc/modules:

Code: Select all

echo "spicc" >> /etc/modules
echo "fbtft_device name=odroidc_tft32 rotate=270 gpios=reset:116,dc:115 speed=32000000 cs=0" >> /etc/modules
that should be all to make it permanent.
Hello
I tried to do as you say, and to restart the status of the LCD screen remains black and hdmi monitor freezes in the upload list, I can only be accessed remotely via ssh, if I cancel the 99-odroidc-tftlcd.conf file. He takes to go the hdmi. most do not know how to do, you can help me, it's good distro already compiled. I found one for raspberry Gessy and it works, but on ODROID wrong. help

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sun Nov 13, 2016 5:46 pm

You said the LCD shield was already working, just that the changes were not permanent. This was the only manual step that did not survive a reboot from the guide.
Are you sure it was working before and that you did not miss any other step?
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

lampoverde
Posts: 6
Joined: Sat Nov 12, 2016 2:04 am
languages_spoken: italian
ODROIDs: c1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by lampoverde » Mon Nov 14, 2016 2:15 am

meveric wrote:You said the LCD shield was already working, just that the changes were not permanent. This was the only manual step that did not survive a reboot from the guide.
Are you sure it was working before and that you did not miss any other step?
then I'll explain:
I followed the steps from 1 to 3 and the LCD monitor 3.2-works, the problem is that when you reboot the ODROID no part more on LCD 3.2 and does not give me the images even on hdmi.
to restart it on hdmi I delete the file that is described in step 2 via ssh. if I want that starts lcd I have to re enter the procedure 1 and 3 by ssh terminal.

how can I do ? I can not understand what the problem is

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Nov 14, 2016 8:26 am

ok since step 2 is a permanent step that can't be the issue.
Step 1 I gave you the commands to make it permanent as well.
(please post the output of the command: cat /etc/modules here to verify that you did this step correctly)

So the only step that might be missing is the step 3 "startx". And if that's all that's missing you should be able to SSH into the system and just type startx, if that is working and the LCD display comes up correctly you can make that permanent as well by putting startx into /etc/rc.local (BEFORE the exit 0).
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by Fourdee » Mon Nov 28, 2016 3:43 am

Hi Meveric,

We had a user report an issue with Kodi http://dietpi.com/phpbb/viewtopic.php?f=11&t=896#p3974. It appears the issue is with the libump-odroid and mali450-odroid packages.

Looks like a rm command is causing the failed installation?
rm: missing operand

Code: Select all

root@DietPi:~# apt-get install aml-libs-odroid libump-odroid mali450-odroid xf86-video-mali-odroid
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  aml-libs-odroid libump-odroid mali450-odroid xf86-video-mali-odroid
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/728 kB of archives.
After this operation, 3,633 kB of additional disk space will be used.
Selecting previously unselected package aml-libs-odroid.
(Reading database ... 18534 files and directories currently installed.)
Preparing to unpack .../aml-libs-odroid_0.0.1-2+deb8_armhf.deb ...
Unpacking aml-libs-odroid (0.0.1-2+deb8) ...
Preparing to unpack .../libump-odroid_0.0.1-r6p2-01rel0-2+deb8_armhf.deb ...
rm: missing operand
Try 'rm --help' for more information.
dpkg: error processing archive /var/cache/apt/archives/libump-odroid_0.0.1-r6p2-01rel0-2+deb8_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Preparing to unpack .../mali450-odroid_20161007-r6p2-2_armhf.deb ...
rm: missing operand
Try 'rm --help' for more information.
dpkg: error processing archive /var/cache/apt/archives/mali450-odroid_20161007-r6p2-2_armhf.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1
Selecting previously unselected package xf86-video-mali-odroid.
Preparing to unpack .../xf86-video-mali-odroid_0.0.1-3+deb8_armhf.deb ...
Unpacking xf86-video-mali-odroid (0.0.1-3+deb8) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libump-odroid_0.0.1-r6p2-01rel0-2+deb8_armhf.deb
 /var/cache/apt/archives/mali450-odroid_20161007-r6p2-2_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@DietPi:~# echo 1 > test
root@DietPi:~# rm test
If you could take a look, i'd be grateful, thanks Meveric.
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Nov 28, 2016 5:01 am

yep I'll look into it
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Nov 28, 2016 4:29 pm

issue should be fixed, new packages are uploaded.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
Fourdee
Posts: 298
Joined: Fri Apr 03, 2015 5:01 am
languages_spoken: english
ODROIDs: C1 / C2 / XU4 + Cloudshell.
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by Fourdee » Mon Nov 28, 2016 9:25 pm

meveric wrote:issue should be fixed, new packages are uploaded.
Works a treat, thanks Meveric! :)
http://DietPi.com - Lightweight justice for your Odroid.
DietPi web hosting is powered by http://MyVirtualServer.com

DerekBuegel
Posts: 14
Joined: Sun Jul 13, 2014 12:40 am
languages_spoken: deutsch, google translator
ODROIDs: Odroid U3
Location: Deutschland
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by DerekBuegel » Sun Feb 05, 2017 12:06 am

Ich habe mir bei Ebay einen Odroid C1 ersteigert (Odroid C1+ REV 0.4).
Dabei war eine Speicherkarte mit Android, dieses läuft.

Nun habe ich Debian Jessie auf eine SD-Kartegeschrieben.

Code: Select all

dd bs=1M if=/home/odroid/Dokumente/Odroid_C1/Debian-Jessie-1.0-20160131-C1.img of=/dev/sda
Das Image fährt leider nicht hoch. Wo liegt mein Fehler?
Ich habe bereits zwei SD versucht und eine eMMC.
https://abload.de/img/img_20170204_155751rlqjw.jpg

MfG

I bought Ebay an Odroid C1 (Odroid C1 + REV 0.4).
It was a memory card with Android, this is running.

Now I have Debian Jessie written on an SD card.

Code: Select all

dd bs=1M if=/home/odroid/Dokumente/Odroid_C1/Debian-Jessie-1.0-20160131-C1.img of=/dev/sda[/ code]
The image unfortunately does not go up. Where is my mistake?
I have already tried two SD and an eMMC

DerekBuegel
Posts: 14
Joined: Sun Jul 13, 2014 12:40 am
languages_spoken: deutsch, google translator
ODROIDs: Odroid U3
Location: Deutschland
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by DerekBuegel » Sun Feb 05, 2017 10:33 pm

Die boot.ini habe ich narürlich angepasst.

Code: Select all

fdt set /sdhc/sd f_max   <40000000>
Hab noch mal eine andere SD-Karte bestellt (sandisk).

MfG

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Mon Feb 06, 2017 3:21 am

hi meveric,

After testing some config with Fourdee dietpi distrib., i'm trying to build my own config from scratch with yours.

I'd build a small integrated amplifier with an Odroid c1, a DAC Sabre ess9023, an amplifier board TAS5630 (2x300W) and a SMSP power supply, all in a 12x12x10 cm box :
Image
my goal was to remote my amplifier only with a smartphone, no screen, no keyboard, no mouse.

For now, i'm only using :
- squeezebox+squeezelite for local music and Internet radio.
- Deezer for Internet music streaming.

Installing LMS was easy with this tuto for RPI :
http://www.gerrelt.nl/RaspberryPi/wordp ... r-for-bbq/
I just have to install Alsa stuff, configure /etc/asound.conf with my DAC, install Perl and Perl-modules before.
The odroid C1 boot takes only 20s on a SD card : with dietpi distrib and the same config, it was 45s.
I'm using Squeezer Android app to remote squeezebox.
I'm using Handyssh app to remote some simple stuff like shutdown the Odroid C1.

To listen deezer, I need Chromium, pepperflash (from our repository).
I don't need a desktop but only a Xserver to run chromium :
-installing Xorg
-modifying ~/.xinitrc to :

Code: Select all

#!/bin/sh
exec chromium  www.deezer.fr
-runing startx, chromium +deezer launches : I don't care if the screen configuration is ugly cause i'm using deemote, a android app to remote deezer.

how to do that at C1 boot ?

I'd tryed to launch Xserver +chromium at boot with this script without success :

Code: Select all

nano /etc/init.d/xorg-chromium
contains

Code: Select all

#!/bin/sh
### BEGIN INIT INFO
# Provides:             xorg-chromium
# Required-Start:       $all
# Required-Stop:        $all
# Should-Start:         $all
# Should-Stop:          $all
# Default-Start:        2 3 4 5
# Default-Stop:         0 1 6
# Short-Description:    Startup script for Xserver+Chromium
# Description:         blablabla
### END INIT INFO
startx

Code: Select all

chmod 755 /etc/init.d/xorg-chromium

Code: Select all

 update-rc.d xorg-chromium defaults
what is wrong ?

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Mon Feb 06, 2017 11:48 pm

ok, i find a way to go :
modify ~/.bashrc
add "startx"
modify my ~/.xinitrc

Code: Select all

setxkbmap fr #azerty keyboard
exec chromium --start-fullscreen --disable-restore-session-state www.deezer.fr

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Tue Feb 07, 2017 4:32 am

DerekBuegel wrote:Ich habe mir bei Ebay einen Odroid C1 ersteigert (Odroid C1+ REV 0.4).
Dabei war eine Speicherkarte mit Android, dieses läuft.

Nun habe ich Debian Jessie auf eine SD-Kartegeschrieben.

Code: Select all

dd bs=1M if=/home/odroid/Dokumente/Odroid_C1/Debian-Jessie-1.0-20160131-C1.img of=/dev/sda
Das Image fährt leider nicht hoch. Wo liegt mein Fehler?
Ich habe bereits zwei SD versucht und eine eMMC.
https://abload.de/img/img_20170204_155751rlqjw.jpg

MfG

I bought Ebay an Odroid C1 (Odroid C1 + REV 0.4).
It was a memory card with Android, this is running.

Now I have Debian Jessie written on an SD card.

Code: Select all

dd bs=1M if=/home/odroid/Dokumente/Odroid_C1/Debian-Jessie-1.0-20160131-C1.img of=/dev/sda
The image unfortunately does not go up. Where is my mistake?
I have already tried two SD and an eMMC
DerekBuegel wrote:Die boot.ini habe ich narürlich angepasst.

Code: Select all

fdt set /sdhc/sd f_max   <40000000>
Hab noch mal eine andere SD-Karte bestellt (sandisk).

MfG
Das mit dem fdt set /sdhc/sd f_max <40000000> kannst Du Dir sparen, das bringt glaube ich eh nichts. Das C1 ist bekannt dafür Probleme mit diversen SD card Herstellern zu haben.
Am besten laufen SanDisk SD cards, vor allem SanDisk Ultra (und auch SanDisk Extreme).

------

Known issue with SD card vendors, best option is to use SanDisk Ultra (or SanDisk Extreme)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Tue Feb 07, 2017 4:53 am

robob wrote:ok, i find a way to go :
modify ~/.bashrc
add "startx"
modify my ~/.xinitrc

Code: Select all

setxkbmap fr #azerty keyboard
exec chromium --start-fullscreen --disable-restore-session-state www.deezer.fr
One way to do it, yes. There are several other ways.
For example using lightdm and /usr/share/xsessions/ here you can put a .desktop file that lunches what ever you want in their own xsession. For example you could probably put the chromium starter in there and preconfigure chromium to start that on boot.
Also you could probably just put it in .config/autostart if you want to start it on autologin.

But hey, you found a solution already. :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

RomaT
Posts: 206
Joined: Thu Oct 23, 2014 4:48 pm
languages_spoken: Russian
ODROIDs: -H2 rev.B, -XU3, -XU4, -C1, -C2, -W, -VU, CloudShell
Location: Perm, Russia
Has thanked: 4 times
Been thanked: 28 times
Contact:

Re: [OS] Debian Jessie

Unread post by RomaT » Tue Feb 07, 2017 6:22 pm

I liked how works the C1 with Debian Jessie (without desktop),
very convenient to use as a server SOHO,
I want try ODROID-C0, view of the presence battery, begs the question,
Which network cards are supported ? (straight away)
usb ethernet adapter ?
Last edited by RomaT on Tue Feb 07, 2017 6:35 pm, edited 1 time in total.

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Tue Feb 07, 2017 6:34 pm

Not sure, you probably have to check the config file in /boot/config-<Kernel-Version> to check what is activated.
When it comes to LAN I'm really not sure what will work. The USB LAN from HardKernel should work out of Box what other LAN adapters I don't know.

WLAN should work quite a lot, if they are not supported by default I have several DKMS modules for additional WLAN adapters.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

RomaT
Posts: 206
Joined: Thu Oct 23, 2014 4:48 pm
languages_spoken: Russian
ODROIDs: -H2 rev.B, -XU3, -XU4, -C1, -C2, -W, -VU, CloudShell
Location: Perm, Russia
Has thanked: 4 times
Been thanked: 28 times
Contact:

Re: [OS] Debian Jessie

Unread post by RomaT » Tue Feb 07, 2017 6:50 pm

Yes, I have the USB LAN from HardKernel

P.S.: then would be good to resume sale USB-LAN,
begin production of enclosures for C0, as the SOHO server

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Thu Feb 09, 2017 9:46 pm

hi,
I have a "audiophile" issue. :mrgreen:

Squeezelite and chromium +deezer are running fine now but the sound with squeezelite is crappy.

Looking for log file, when playing deezer (chromium-odroid +pepperflashplayer-odroid) wtiht a MP3 16bit/44100hz :

Code: Select all

root@odroid-jessie:~# cat /proc/asound/card1/pcm0p/sub0/hw_params
access: RW_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 2048
buffer_size: 8192
Everything seems good. But when I play a 16bit/44100hz with squeezelite :

Code: Select all

root@odroid-jessie:~# cat /proc/asound/card1/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 48000 (48000/1)
period_size: 1024
buffer_size: 16384
As you can see, Alsa resamples to 16 bit 48000hz and I suppose "MMAP_INTERLEAVED" shows it uses a mixer.
That's the squeezelite log :

Code: Select all

/usr/bin/squeezelite-armv6hf -o sysdefault:CARD=Audio -n MiniH -m 00:1e:06:a8:30:ad -s 127.0.0.1 -a 360:4:24_3:1 -f /var/log/squeezelite.log -d output=debug -C 5
[00:00:06.209622] output_init_alsa:873 init output
[00:00:06.210057] output_init_alsa:902 requested alsa_buffer: 360 alsa_period: 4 format: 24_3 mmap: 1
[00:00:06.210147] output_init_common:347 outputbuf size: 3528000
[00:00:06.210558] output_init_common:371 idle timeout: 5000
[00:00:06.278470] output_init_common:411 supported rates: 384000 352800 192000 176400 96000 88200 48000 44100 32000 24000 22500 16000 12000 11025 8000
[00:00:06.338733] output_init_alsa:928 memory locked
[00:00:06.339422] output_init_alsa:951 set output sched fifo rt: 45
[11:56:41.886077] output_flush:424 flush output buffer
[11:56:41.888216] output_flush:424 flush output buffer
[11:56:41.892201] set_volume:229 setting internal gain left: 65536 right: 65536
[12:03:13.567700] output_flush:424 flush output buffer
[12:03:13.638685] set_volume:229 setting internal gain left: 65536 right: 65536
[12:03:13.643389] set_volume:229 setting internal gain left: 65536 right: 65536
[12:03:13.727885] output_thread:621 open output device: sysdefault:CARD=Audio
[12:03:13.728171] alsa_open:338 opening device at: 44100
[12:03:13.734746] alsa_open:389 opened device sysdefault:CARD=Audio using format: S24_3LE sample rate: 44100 mmap: 1
[12:03:13.735241] alsa_open:468 buffer: 360 period: 4 -> buffer size: 3763 period size: 940
[12:03:13.804913] _output_frames:62 start buffer frames: 42671
[12:03:13.805059] _output_frames:147 track start sample rate: 44100 replay_gain: 0
[12:03:20.735240] set_volume:229 setting internal gain left: 0 right: 0
[12:03:26.004303] output_thread:738 disabling output
[12:22:59.374294] set_volume:229 setting internal gain left: 0 right: 0
[12:22:59.376277] set_volume:229 setting internal gain left: 65536 right: 65536
[12:22:59.414577] output_thread:621 open output device: sysdefault:CARD=Audio
[12:22:59.414726] alsa_open:338 opening device at: 44100
[12:22:59.421343] alsa_open:389 opened device sysdefault:CARD=Audio using format: S24_3LE sample rate: 44100 mmap: 1
[12:22:59.421782] alsa_open:468 buffer: 360 period: 4 -> buffer size: 3763 period size: 940
[12:23:09.435327] set_volume:229 setting internal gain left: 0 right: 0
[12:23:15.012177] output_thread:738 disabling output
As you can see, squeezelite opens at 44100 in S24-3LE (24 bit, that's fine to use numeric volume with 16 bit files). but Alsa plays 16/48khz. :(
output devices :

Code: Select all

root@odroid-jessie:~# /usr/bin/squeezelite-armv6hf -l
Output devices:
  null                           - Discard all samples (playback) or generate zero samples (capture)
  sysdefault:CARD=ODROIDHDMI     - ODROID-HDMI,  - Default Audio Device
  dmix:CARD=ODROIDHDMI,DEV=0     - ODROID-HDMI,  - Direct sample mixing device
  dsnoop:CARD=ODROIDHDMI,DEV=0   - ODROID-HDMI,  - Direct sample snooping device
  hw:CARD=ODROIDHDMI,DEV=0       - ODROID-HDMI,  - Direct hardware device without any conversions
  plughw:CARD=ODROIDHDMI,DEV=0   - ODROID-HDMI,  - Hardware device with all software conversions
  sysdefault:CARD=Audio          - SA9023 USB Audio, USB Audio - Default Audio Device
  front:CARD=Audio,DEV=0         - SA9023 USB Audio, USB Audio - Front speakers
  surround21:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
  surround40:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 4.0 Surround output to Front and Rear speakers
  surround41:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
  surround50:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
  surround51:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
  surround71:CARD=Audio,DEV=0    - SA9023 USB Audio, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
  iec958:CARD=Audio,DEV=0        - SA9023 USB Audio, USB Audio - IEC958 (S/PDIF) Digital Audio Output
  dmix:CARD=Audio,DEV=0          - SA9023 USB Audio, USB Audio - Direct sample mixing device
  dmix:CARD=Audio,DEV=1          - SA9023 USB Audio, USB Audio #1 - Direct sample mixing device
  dsnoop:CARD=Audio,DEV=0        - SA9023 USB Audio, USB Audio - Direct sample snooping device
  dsnoop:CARD=Audio,DEV=1        - SA9023 USB Audio, USB Audio #1 - Direct sample snooping device
  hw:CARD=Audio,DEV=0            - SA9023 USB Audio, USB Audio - Direct hardware device without any conversions
  hw:CARD=Audio,DEV=1            - SA9023 USB Audio, USB Audio #1 - Direct hardware device without any conversions
  plughw:CARD=Audio,DEV=0        - SA9023 USB Audio, USB Audio - Hardware device with all software conversions
  plughw:CARD=Audio,DEV=1        - SA9023 USB Audio, USB Audio #1 - Hardware device with all software conversions
"sysdefault:CARD=Audio" works
"dmix" and "hw" options crash the Odroid
"plughw" does nothing but the squeezelite log shows errors.
Trying to create an etc/asound.conf file with :

Code: Select all

pcm.!default{
type hw
card 1
}
didn't change anything.
Any help would be appreciated.

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Thu Feb 09, 2017 10:22 pm

it looks like the squeezelite -a parameter change nothing for alsa :
trying "-a 360:4:24_3:1" "-a 360:4:24_3:0" "-a 360:4::" "-a 360:::" give the same result in /proc/asound/card1/pcm0p/sub0/hw_params

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Sat Feb 11, 2017 12:08 am

is it possible to watch Netflix with Odroid C1 and Debian jessie ?
I'd tried this post : "How to watch Netflix on the ODROID-C1 without Android"
without success.
ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
ERROR:object_proxy.cc(583)] Failed to call method: org.freedesktop.UPower.EnumerateDevices

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sat Feb 11, 2017 2:12 am

robob wrote: ... <LOTS of TEXT>
44kHz ...
48kHz ...
...
Trying to create an etc/asound.conf file with :

Code: Select all

pcm.!default{
type hw
card 1
}
didn't change anything.
Any help would be appreciated.
Have you tried forcing 44kHz in asound.conf? We do this on the XU3/XU4

Code: Select all

cat /etc/asound.conf 
pcm.!default {
        type plug
        slave {
                pcm "hw:0,0"
                format S16_LE
                rate 44100
        }
}

ctl.!default {
        type hw
        card 0
}
Maybe it works for the C1 as well? Make sure you use the correct pcm and card settings (above is from XU4 and probably won't work like this on C1).. the C1 is rather picky.
robob wrote:is it possible to watch Netflix with Odroid C1 and Debian jessie ?
I'd tried this post : "How to watch Netflix on the ODROID-C1 without Android"
without success.
ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
ERROR:object_proxy.cc(583)] Failed to call method: org.freedesktop.UPower.EnumerateDevices
Never tried doing that... I wonder if there are better netflix addons for Kodi by now..
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Sat Feb 11, 2017 9:41 pm

Hi Meveric,
Thanks for your numerous responses. ;)
I don't think it's a alsa issue cause it's ok with Chromium : when I play youtube video I get 16/48000 audio playback, when I play deezer, 16/44100. Alsa simply uses pepperflashplayer sample rate.
I suppose my squeezeserver/squeezelite installation isn't the good one :
I used this tuto for RPI and got squeezeserver by :

Code: Select all

wget -O logitechmediaserver_all.deb $(wget -q -O - "http://www.mysqueezebox.com/update/?version=7.9.0&revision=1&geturl=1&os=deb")
dpkg -i logitechmediaserver_all.deb
Squeezelite :

Code: Select all

wget -O squeezelite-armv6hf http://ralph_irving.users.sourceforge.net/pico/squeezelite-armv6hf-noffmpeg
For chromium, it's yours :

Code: Select all

apt-get install chromium-browser-odroid
apt-get install pepperflash-odroid
any squeezestuf on your repository ?

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sat Feb 11, 2017 9:52 pm

Nope,
also chromium-browser-odroid is just a meta package which loads the package "chromium" instead.. It was made when I switched from Ubuntu sources to Debian sources of Chromium.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Sat Feb 11, 2017 9:56 pm

meveric wrote:
robob wrote:is it possible to watch Netflix with Odroid C1 and Debian jessie ?
I'd tried this post : "How to watch Netflix on the ODROID-C1 without Android"
without success.
ERROR:sandbox_linux.cc(343)] InitializeSandbox() called with multiple threads in process gpu-process.
ERROR:object_proxy.cc(583)] Failed to call method: org.freedesktop.UPower.EnumerateDevices
Never tried doing that... I wonder if there are better netflix addons for Kodi by now..
Yes, there is a Netflix plugin for kodi. I can also run the Android C1 distibution. For now, my config runs with only Samba, Squeezeserver/squeezelite, Xorg + chromium in fullscreen : I don't want a desktop neither Kodi.
Running Netflix is " the cherry on the cake", I try it just for fun (and understanding how debian/linux work) : the are numerous issues, hardware accélération, widevine problems,...

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sat Feb 11, 2017 11:32 pm

Chromium is not very stable and has only partial acceleration. Especially Video Acceleration is missing. While on other ODROIDs such as the XU4 or U3 this is not a big deal, the C1 has a too slow CPU to compensate for missing hardware acceleration. Even IF Netflix would work, I highly doubt you could play more then 480p, probably even less without lagging.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Mon Feb 20, 2017 2:35 am

Hi,

My sound issue is a Debian/Alsa problem with my Hifimediy DAC :

Code: Select all

 cat /proc/asound/card1/stream0
HiFimeDIY Audio SA9023 USB Audio at usb-lm1-1.3, full speed : USB Audio

Playback:
  Status: Stop
  Interface 3
    Altset 1
    Format: S16_LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 96000, 88200, 48000, 44100, 32000
  Interface 3
    Altset 2
    Format: S24_3LE
    Channels: 2
    Endpoint: 3 OUT (ASYNC)
    Rates: 96000, 88200, 48000, 44100, 32000
As you can see, this DAC can play S24_3LE audio file.
If I use aplay to play a 24/44100 file, the Odroid C1 crashes with a Kernel panic fault.

Code: Select all

 aplay -v -D hw:1,0 /home/musique/glop.wav
Playing WAVE '/home/musique/glop.wav' : Signed 24 bit Little Endian in 3bytes, Rate 44100 Hz, Stereo
Hardware PCM card 1 'SA9023 USB Audio' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S24_3LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 24
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 5513
  period_event : 0
  start_threshold  : 22050
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary     : 1445068800
  appl_ptr     : 0
  hw_ptr       : 0
There is some errors in syslog with the DAC : :?

Code: Select all

Feb 19 17:17:51 localhost kernel: [  281.360459@3] usb 1-1.3: device descriptor read/64, error -32
Feb 19 17:17:52 localhost kernel: [  281.613332@3] usb 1-1.3: config 1 has an invalid interface number: 3 but max is 2
Feb 19 17:17:52 localhost kernel: [  281.615273@3] usb 1-1.3: config 1 has an invalid interface number: 3 but max is 2
Feb 19 17:17:52 localhost kernel: [  281.622788@3] usb 1-1.3: config 1 has an invalid interface number: 3 but max is 2
Feb 19 17:17:52 localhost kernel: [  281.630267@3] usb 1-1.3: config 1 has an invalid interface number: 3 but max is 2
Feb 19 17:17:52 localhost kernel: [  281.637691@3] usb 1-1.3: config 1 has no interface number 2
Feb 19 17:17:52 localhost kernel: [  281.674994@3] input: HiFimeDIY Audio SA9023 USB Audio as /devices/lm1/usb1/1-1/1-1.3/1-1.3:1.0/input/input3
Feb 19 17:17:52 localhost kernel: [  281.679636@3] hid-generic 0003:262A:10E1.0003: input,hidraw2: USB HID v1.00 Device [HiFimeDIY Audio SA9023 USB Audio] on usb-lm1-1.3/input0
Feb 19 17:17:52 localhost kernel: [  281.755290@3] usbcore: registered new interface driver snd-usb-audio
any solutions to correct this ?

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Feb 20, 2017 9:05 am

I don't think this is a DAC by HardKernel, is it?
It's kinda hard to recreate or investigate if you don't have the same hardware.
If it is from HardKernel let me know which one it is, and I try to figure it out.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

robob
Posts: 31
Joined: Fri Jan 30, 2015 2:38 am
languages_spoken: French
ODROIDs: ODROID-C1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by robob » Tue Feb 21, 2017 2:40 am

it's not.
it's a Hifimediy USB DAC 2 async. USB reciever is a Savitech SA9023.
But I have another tiny USB DAC (HIFIMEDIY U2 async) and aIAM V200 amplifier, with a Cmedia USB reciever, that give the same issue (Kernel panic error with 24bit audio file).

An other full digital amplifier, the Alientek D8, is quite different with a XMOS USB receiver capable of 384khz sample rate

Code: Select all

cat /proc/asound/card1/stream0
ALIENTEK ALIENTEK FY1 USB Audio at usb-lm1-1.3, high speed : USB Audio

Playback:
  Status: Stop
  Interface 1
    Altset 1
    Format: S32_LE
    Channels: 2
    Endpoint: 1 OUT (ASYNC)
    Rates: 44100, 48000, 88200, 96000, 176400, 192000, 352800, 384000
    Data packet interval: 125 us
With this one i have no panic kernel error but playing a 16 or 24 or 32 bit audio file always gives the same error :

Code: Select all

aplay -v -D hw:1,0 /home/musique/glop16.wav
Playing WAVE '/home/musique/glop16.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1233: Sample format non available
Available formats:
- S32_LE
I think any USB DAC won't works properly with my config.
My opinion is I forgot to install something for ALSA to work properly. How to check that ?

User avatar
rooted
Posts: 6588
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 88 times
Been thanked: 17 times
Contact:

Re: [OS] Debian Jessie

Unread post by rooted » Tue Feb 21, 2017 4:05 am

meveric wrote: Never tried doing that... I wonder if there are better netflix addons for Kodi by now..
Not yet.

bluesman13
Posts: 11
Joined: Wed Dec 31, 2014 11:15 pm
languages_spoken: french, english
ODROIDs: odroid-c1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bluesman13 » Tue Mar 21, 2017 8:37 pm

Hello meveric,
I have an Ethernet Gigabit driver problem.
My device is an ODROID-C1, I have an Internet Box with Fiber (Downlod 900 Mbps, Upload 250 Mbps).
The access by internal network works fine, but the Internet Upload speed is clamped to 6 Mbps !
I made measurements using "iperf3" and the result is clear ! (see below)
Can you help me ?
In advance, thank you.
Ricardo.

=> odroidc1 UPLOAD - Internet
odroidc1-nas:~$ iperf3 -c ikoula.testdebit.info -i 2 -t 20
Connecting to host ikoula.testdebit.info, port 5201
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-20.00 sec 13.0 MBytes 5.43 Mbits/sec 102 sender
[ 4] 0.00-20.00 sec 12.9 MBytes 5.41 Mbits/sec receiver

=> odroidc1 DOWNLOAD - Internet
odroidc1-nas:~$ iperf3 -c ikoula.testdebit.info -R -i 2 -t 20
Connecting to host ikoula.testdebit.info, port 5201
Reverse mode, remote host ikoula.testdebit.info is sending
[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-20.00 sec 1.10 GBytes 473 Mbits/sec 5 sender
[ 4] 0.00-20.00 sec 1.10 GBytes 472 Mbits/sec receiver

=> odroidc1 DOWNLOAD - LAN desktop
odroidc1-nas:~$ iperf3 -c 192.168.1.56 -p 5202 -R -t 20
Connecting to host 192.168.1.56, port 5202
Reverse mode, remote host 192.168.1.56 is sending
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-20.00 sec 2.03 GBytes 870 Mbits/sec sender
[ 4] 0.00-20.00 sec 2.02 GBytes 868 Mbits/sec receiver
iperf Done.

=> odroidc1 UPLOAD - LAN desktop
odroidc1-nas:~$ iperf3 -s -p 5202
-----------------------------------------------------------
Server listening on 5202
-----------------------------------------------------------
[ ID] Interval Transfer Bandwidth Retr
[ 5] 0.00-20.00 sec 971 MBytes 407 Mbits/sec 0 sender
[ 5] 0.00-20.00 sec 971 MBytes 407 Mbits/sec receiver

bluesman13
Posts: 11
Joined: Wed Dec 31, 2014 11:15 pm
languages_spoken: french, english
ODROIDs: odroid-c1
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bluesman13 » Wed Mar 22, 2017 12:20 am

Hello,
My problem (bad Internet Upload speed ) is solved !
It came from my internet box !

gseaman
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by gseaman » Sun Mar 26, 2017 1:19 pm

I have done a re-install and setup mate for the desktop. I have also installed everything needed to build c2play. However, now it is not working. It builds fine, but once again "/dev/amstream_vbuf" is not present. It was solved last time with a kernel upgrade. However, I have the newest kernel. Any ideas on how I can get or enable this feature?

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sun Mar 26, 2017 9:15 pm

I have to check what Kernel version I have, I think I'm a little bit behind on the C1.

Edit:
I've just updated the Kernel: http://forum.odroid.com/viewtopic.php?p=184460#p184460
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

gseaman
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by gseaman » Mon Mar 27, 2017 1:21 am

Thanks!

gseaman
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by gseaman » Mon Mar 27, 2017 3:09 am

I've got everything working. Is it possible to get an updated libass5-0.13.1, so that users can get c2play working without getting this from the Ubuntu repo?

Also, this app needs /dev/input/event*, /dev/input/mouse0, /dev/input/mice, /dev/fb0, and /dev/am* set to +rw. Not all of these links are present when rc.local is read. What is the correct way these should be set so that c2play would just work?

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Mar 27, 2017 5:02 am

if your user is part of the "input" group it has access to everything in /dev/input
if your user is part of the video group it has access to /dev/fb0

Code: Select all

adduser odroid input
adduser odroid video
/dev/am* should be set over /etc/rc.local

Code: Select all

$ cat /etc/rc.local
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
chmod 666 /dev/am*

exit 0
You need to reboot the system before the changes are used though.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

gseaman
Posts: 87
Joined: Fri Jan 01, 2016 2:42 pm
languages_spoken: english
ODROIDs: c1+
Location: WA, USA
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by gseaman » Mon Mar 27, 2017 5:33 am

Thank you!

bcclsn
Posts: 100
Joined: Thu Mar 05, 2015 12:04 am
languages_spoken: italian
ODROIDs: Odroid C1
Location: Avellino, Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bcclsn » Sun Apr 02, 2017 6:24 pm

hi guys,

I have odrobian on my C1, but I want to format and install a fresh debian image. I saw that odrobian is out of date, so I should to install the maveric version of debian. firstly I have same questions:

1. I need a very minimal image of debian because I use only kodi... no DE, no gui, nothings! only kodi + ssh + ftp + samba and a bit of server (gui-less) applications
2. how I configure kodi in the best way?
3. what is the kodi version? if it is the 16.1, what provisions exist for updating to the 17.x?

thanks in advance :)

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sun Apr 02, 2017 10:04 pm

bcclsn wrote:1. I need a very minimal image of debian because I use only kodi... no DE, no gui, nothings! only kodi + ssh + ftp + samba and a bit of server (gui-less) applications
Since this is a server image, by default nothing much is installed, it's pretty much a blank image with a few things installed for convenient like, Kernel, Headers, mc, htop, ntp.
But nothing besides that, so you can install everything you need, but don't have a lot of crap preinstalled.
bcclsn wrote:2. how I configure kodi in the best way?
Kodi is a little bit tricky since I only provide a X11 version of it you need an X11 server no matter what, even if you don't need an entire DE installed you still have to start Kodi through X11.
I'm not sure there is an "easy" way to setup Kodi but there might be some help.
If you install "setup-odroid" that's a script collection I wrote (mainly for ODROID C2 but also for other ODROIDs) if you start it you should be able to choose "install Kodi" as an option.
It will install Kodi, GPU drivers and AML libraries required for decoding, as well as setting up different permissions in /etc/rc.local
It will not solve the requirement of X11 so you might have to add this manually.
bcclsn wrote:3. what is the kodi version? if it is the 16.1, what provisions exist for updating to the 17.x?

thanks in advance :)
Curently Kodi 16.1 is available.
I've been looking into Kodi 17.1 but it's very hard to get this to work on Debian Jessie, some requirements can not be fulfilled by Debian Jessie and I had to do a lot of backporting of packages.
I've got a version for ODROID C2, but it stops loading after the Logo of Kodi, I haven't tried the armhf version yet, although I've already compiled it, I haven't had the time to test it yet.
Mostly since I have to break existing installations to get the new to work. Some other programs might no longer work if you install Kodi 17 or more precisely when you install the new dependencies and there's no guarantee it will work at all.
Debian Jessie might simply not be fit for Kodi 17 and you may have to wait for Debian Stretch to make it happen.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

bcclsn
Posts: 100
Joined: Thu Mar 05, 2015 12:04 am
languages_spoken: italian
ODROIDs: Odroid C1
Location: Avellino, Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bcclsn » Sun Apr 02, 2017 11:15 pm

meveric wrote:
bcclsn wrote:1. I need a very minimal image of debian because I use only kodi... no DE, no gui, nothings! only kodi + ssh + ftp + samba and a bit of server (gui-less) applications
Since this is a server image, by default nothing much is installed, it's pretty much a blank image with a few things installed for convenient like, Kernel, Headers, mc, htop, ntp.
But nothing besides that, so you can install everything you need, but don't have a lot of crap preinstalled.
bcclsn wrote:2. how I configure kodi in the best way?
Kodi is a little bit tricky since I only provide a X11 version of it you need an X11 server no matter what, even if you don't need an entire DE installed you still have to start Kodi through X11.
I'm not sure there is an "easy" way to setup Kodi but there might be some help.
If you install "setup-odroid" that's a script collection I wrote (mainly for ODROID C2 but also for other ODROIDs) if you start it you should be able to choose "install Kodi" as an option.
It will install Kodi, GPU drivers and AML libraries required for decoding, as well as setting up different permissions in /etc/rc.local
It will not solve the requirement of X11 so you might have to add this manually.
bcclsn wrote:3. what is the kodi version? if it is the 16.1, what provisions exist for updating to the 17.x?

thanks in advance :)
Curently Kodi 16.1 is available.
I've been looking into Kodi 17.1 but it's very hard to get this to work on Debian Jessie, some requirements can not be fulfilled by Debian Jessie and I had to do a lot of backporting of packages.
I've got a version for ODROID C2, but it stops loading after the Logo of Kodi, I haven't tried the armhf version yet, although I've already compiled it, I haven't had the time to test it yet.
Mostly since I have to break existing installations to get the new to work. Some other programs might no longer work if you install Kodi 17 or more precisely when you install the new dependencies and there's no guarantee it will work at all.
Debian Jessie might simply not be fit for Kodi 17 and you may have to wait for Debian Stretch to make it happen.

okay, perfectly *__*

as for as kodi, I don't have any problems to install X11... the important is not install the DE :)

mmm... well... I'm still on kodi 16.1 :3

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Apr 03, 2017 12:58 am

I just checked on my 17.1 build.. as I said it breaks quite some stuff that was installed on my system, but nothing too serious.
This time I actually got to use Kodi, not as on the C2 where it did not work at all.
Still, the default theme was not working correctly. Some stuff where just BLACK and you couldn't see buttons and such.
I installed another theme and everything worked fine with that.
Still I'm not sure if it works correctly.. I can watch movies and such, but when I display infos about the playback it says it uses "unknown (SW)" as a decoder.
So I'm not sure if hardware decoding is actually working.
I tried on a XU4 on an ODROID-VU display so you don't really notice if hardware decoding is working or not. At 1280x800 the CPU is fast enough to decode any video even software decoded.
So currently I can't say if Kodi 17.1 is fully working or not.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

bcclsn
Posts: 100
Joined: Thu Mar 05, 2015 12:04 am
languages_spoken: italian
ODROIDs: Odroid C1
Location: Avellino, Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bcclsn » Mon Apr 03, 2017 6:19 am

meveric, can I change the repo of my odrobian with the repo of your debian image? I don't want to format... only change repo and update/upgrade all packages and distro.

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Mon Apr 03, 2017 2:57 pm

bcclsn wrote:meveric, can I change the repo of my odrobian with the repo of your debian image? I don't want to format... only change repo and update/upgrade all packages and distro.
That won't work.
odrobian used similar packages under different names... so you can't update, they will just conflict.
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

bcclsn
Posts: 100
Joined: Thu Mar 05, 2015 12:04 am
languages_spoken: italian
ODROIDs: Odroid C1
Location: Avellino, Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bcclsn » Mon Apr 03, 2017 7:03 pm

meveric wrote:
bcclsn wrote:meveric, can I change the repo of my odrobian with the repo of your debian image? I don't want to format... only change repo and update/upgrade all packages and distro.
That won't work.
odrobian used similar packages under different names... so you can't update, they will just conflict.
okay, thanks :)

edit.
meveric, sorry, I have another question about gpio pin and your debian image. I want to connect a 5V fan to the gpio pin using a bjt transistor + a python program and I want to control the start/stop of the fan with the cpu temperature.

is the raspberry gpio "settings" included in your distro?

if yes, I will use the same python program, written for the raspberry :)

bcclsn
Posts: 100
Joined: Thu Mar 05, 2015 12:04 am
languages_spoken: italian
ODROIDs: Odroid C1
Location: Avellino, Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bcclsn » Sun May 07, 2017 7:58 pm

hi meveric,

finally I installed your debian image, but unfortunately I have some problems to start kodi :(
I followed your wiki...

Code: Select all

apt-get update && apt-get upgrade && apt-get dist-upgrade

apt-get install xf86-video-mali-odroid libump-odroid mali450-odroid
then

Code: Select all

cd /etc/X11
wget http://oph.mdrjr.net/meveric/other/C1/xorg.conf
and

Code: Select all

apt-get install kodi-odroid
# install firmware required for hardware decoding in XBMC/Kodi
apt-get install aml-libs-odroid
# you also need to make amcodec devices available for Kodi
# you may want to add this line to /etc/rc.local
chmod 666 /dev/am*
I installed also "xorg" package, but nothing... kodi doesn't start :(

can you help/guide me? I don't want a full DE because I use only kodi from GUI and the rest from CLI

thanks in andvance!!!

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sun May 07, 2017 8:58 pm

how did you try to start Kodi? and what is the output when you started it?

Kodi is an X11 application so you NEED an X11 server to start it. Even if you want to run it from terminal.
So you need at least something like xinit or startx to run Kodi, else it won't work at all.
I never tried this, since I don't have use for a non-desktop solution with Kodi, but others already tried and confirmed it to work. Sadly I don't have the link how they did it.

bcclsn
Posts: 100
Joined: Thu Mar 05, 2015 12:04 am
languages_spoken: italian
ODROIDs: Odroid C1
Location: Avellino, Italy
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Unread post by bcclsn » Sun May 07, 2017 9:17 pm

yes, I use a .xinitrc located in my home

Code: Select all

exec kodi
but I tried also "xbmc", "ck-launch-session xbmc" and "ck-launch-session kodi" but nothing... I have the same error

this is the error log

Code: Select all

[  2080.765] 
X.Org X Server 1.16.4
Release Date: 2014-12-20
[  2080.765] X Protocol Version 11, Revision 0
[  2080.765] Build Operating System: Linux 3.16.0-0.bpo.4-armmp-lpae armv7l Debian
[  2080.766] Current Operating System: Linux dreamspark-jessie 3.10.104 #1 SMP PREEMPT Sun Mar 26 14:55:18 CEST 2017 armv7l
[  2080.766] Kernel command line: root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro console=tty0 console=ttyS0,115200n8 no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=1080p m_bpp=32 vout=hdmi disableuhs disablehpd=true monitor_onoff=false
[  2080.766] Build Date: 11 February 2015  01:18:06AM
[  2080.766] xorg-server 2:1.16.4-1 (http://www.debian.org/support) 
[  2080.766] Current version of pixman: 0.32.6
[  2080.766] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[  2080.767] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2080.767] (==) Log file: "/var/log/Xorg.2.log", Time: Sun May  7 12:10:12 2017
[  2080.768] (==) Using config file: "/etc/X11/xorg.conf"
[  2080.768] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[  2080.769] (==) No Layout section.  Using the first Screen section.
[  2080.769] (==) No screen section available. Using defaults.
[  2080.769] (**) |-->Screen "Default Screen Section" (0)
[  2080.769] (**) |   |-->Monitor "<default monitor>"
[  2080.770] (==) No device specified for screen "Default Screen Section".
	Using the first device section listed.
[  2080.770] (**) |   |-->Device "Mali-Fbdev"
[  2080.770] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[  2080.770] (**) Option "NoTrapSignals" "true"
[  2080.770] (**) Option "DontZap" "false"
[  2080.771] (**) Option "BlankTime" "0"
[  2080.771] (**) Option "StandbyTime" "0"
[  2080.771] (**) Option "SuspendTime" "0"
[  2080.771] (**) Option "OffTime" "0"
[  2080.771] (==) Automatically adding devices
[  2080.771] (==) Automatically enabling devices
[  2080.771] (==) Automatically adding GPU devices
[  2080.771] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[  2080.771] 	Entry deleted from font path.
[  2080.771] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[  2080.771] (==) ModulePath set to "/usr/lib/xorg/modules"
[  2080.771] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[  2080.771] (II) Loader magic: 0xb6f2ef18
[  2080.772] (II) Module ABI versions:
[  2080.772] 	X.Org ANSI C Emulation: 0.4
[  2080.772] 	X.Org Video Driver: 18.0
[  2080.772] 	X.Org XInput driver : 21.0
[  2080.772] 	X.Org Server Extension : 8.0
[  2080.773] (II) xfree86: Adding drm device (/dev/dri/card0)
[  2080.773] (EE) /dev/dri/card0: failed to set DRM interface version 1.4: Permission denied
[  2080.773] (II) xfree86: Adding drm device (/dev/dri/card1)
[  2080.773] (EE) /dev/dri/card1: failed to set DRM interface version 1.4: Permission denied
[  2080.773] (II) no primary bus or device found
[  2080.774] (II) LoadModule: "glx"
[  2080.774] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[  2080.784] (II) Module glx: vendor="X.Org Foundation"
[  2080.784] 	compiled for 1.16.4, module version = 1.0.0
[  2080.784] 	ABI class: X.Org Server Extension, version 8.0
[  2080.784] (==) AIGLX enabled
[  2080.784] (II) LoadModule: "mali"
[  2080.785] (II) Loading /usr/lib/xorg/modules/drivers/mali_drv.so
[  2080.791] (II) Module mali: vendor="X.Org Foundation"
[  2080.791] 	compiled for 1.16.4, module version = 0.4.2
[  2080.791] 	ABI class: X.Org Video Driver, version 18.0
[  2080.791] (EE) Error: MaliSetup
[  2080.791] (EE) Error: MaliIdentify
[  2080.791] (II) MALI: driver for Mali Framebuffer: mali
[  2080.791] (--) using VT number 9

[  2080.981] (WW) Falling back to old probe method for mali
[  2080.981] (EE) Error: MaliProbe
[  2080.981] (EE) Error: MaliHWProbe
[  2080.981] (II) MALI(0): using /dev/fb0

[  2080.981] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[  2080.981] (II) MALI(0): [MaliPreInit:1351]: Entering
[  2080.981] (II) MALI(0): [MaliGetRec:471]: Entering
[  2080.981] (II) MALI(0): [MaliHWInit:1133]: Entering
[  2080.981] (II) MALI(0): [MaliHWGetDepth:1165]: Entering
[  2080.981] (II) MALI(0): Creating default Display subsection in Screen section
	"Default Screen Section" for depth/fbbpp 24/32
[  2080.982] (==) MALI(0): Depth 24, (==) framebuffer bpp 32
[  2080.982] (==) MALI(0): RGB weight 888
[  2080.982] (==) MALI(0): Default visual is TrueColor
[  2080.982] (==) MALI(0): Using gamma correction (1.0, 1.0, 1.0)
[  2080.982] (II) MALI(0): [MaliHWGetVidmem:1183]: Entering
[  2080.982] (II) MALI(0): [MaliHWGetName:1191]: Entering
[  2080.982] (II) MALI(0): hardware: OSD FB (video memory: 24576kB)

[  2080.982] (**) MALI(0): Option "HWCursor" "false"
[  2080.982] (**) MALI(0): Option "SWCursor" "true"
[  2080.982] (**) MALI(0): Option "DRI2" "true"
[  2080.982] (**) MALI(0): Option "DRI2_PAGE_FLIP" "false"
[  2080.982] (**) MALI(0): Option "DRI2_WAIT_VSYNC" "false"
[  2080.982] (**) MALI(0): Option "UMP_CACHED" "true"
[  2080.982] (**) MALI(0): Option "UMP_LOCK" "false"
[  2080.983] (**) MALI(0): DRI Fullscreen page flip disabled. No support in config file
[  2080.983] (**) MALI(0): DRI Fullscreen page flip VSYNC disabled
[  2080.983] (**) MALI(0): Use cached UMP memory
[  2080.983] (**) MALI(0): Don't use umplock across processes
[  2081.051] (EE) MALI(0): [mali_drm_open_master:1326] Error: mali_drm_open_master DRM OPEN (fd: 0x8)

[  2081.051] (EE) MALI(0): [mali_drm_open_master:1337] Error: mali_drm_open_master DRM failed to interface version

[  2081.052] (EE) MALI(0): [MaliPreInit:1453] Error: Failed to be master of DRM!
[  2081.052] (II) UnloadModule: "mali"
[  2081.052] (EE) Screen(s) found, but none have a usable configuration.
[  2081.052] (EE) 
Fatal server error:
[  2081.052] (EE) no screens found(EE) 
[  2081.052] (EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
[  2081.053] (EE) Please also check the log file at "/var/log/Xorg.2.log" for additional information.
[  2081.053] (EE) 
[  2081.095] (EE) Server terminated with error (1). Closing log file.
anyway, if it is too difficult, I install a minimal DE and I start kodi from xinitrc, without log into the DE... it's okay

User avatar
meveric
Posts: 10391
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2
Has thanked: 15 times
Been thanked: 118 times
Contact:

Re: [OS] Debian Jessie

Unread post by meveric » Sun May 07, 2017 10:11 pm

As I said I never used Kodi over Terminal, so I really can't say what's missing.
Apparently you can get it to work like this: viewtopic.php?p=183098#p183098
So maybe you should just try:

Code: Select all

su odroid -c "/usr/bin/xinit /usr/bin/dbus-launch /usr/local/bin/kodi -- :0 -nolisten tcp vt7"

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest