[OS] Debian Jessie

rncwnd
Posts: 34
Joined: Tue Apr 11, 2017 11:18 pm
languages_spoken: english, german
ODROIDs: XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by rncwnd » Wed Oct 18, 2017 10:59 pm

Great. Thank you!

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Thu Oct 19, 2017 12:47 am

Hi,

I just bought a XU4 Odroid. Then, I decided to give a try to this distribution in order to get a minimal Debian image.
I don't need any Desktop, just a ssh connection to it.
I installed the image on a 16GB eMMC, and I pluged in an external USB3 Hard Drive (WD Red 4 TB).
Everything is just fine but:
I have a very bad transfer rate with this device.
Here are my results:

From my Desktop computer to the eMMC Card on the XU4:
Read
https://www.dropbox.com/s/furn2tp3qwvqj ... C.png?dl=0
Write
https://www.dropbox.com/s/9w3gzpjrl0gom ... C.png?dl=0

From my Desktop computer to the external HD on the XU4:
Read
https://www.dropbox.com/s/crbbkbd5upxlh ... D.png?dl=0
Write
https://www.dropbox.com/s/341451o6eda3j ... D.png?dl=0

As you can see, I'm unable to have more than 40MB/s. This is about 3 times the Fast Ethernet, so I'm pretty sure this has nothing to do with my Gigabit Ethernet which is able to give me more than 100MB/s between my 2 desktop computers.
So I'm a bit surprised because the eMMC card is supposed to maintain around 100MB/s in read mode. 40 MB/s in write mode seems to be ok.
And regarding my external hard drive, I have the same conlusion.

So, is there anything special to modify in the configuration of the system in order to improve drastically the R/W performances?

Thanks for any help.

Ludwig

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: [OS] Debian Jessie

Post by meveric » Thu Oct 19, 2017 4:04 am

Normally there shouldn't be.
Check that the CPU governor runs in performance mode.
There are some optimizations for interrupt handling using only high performance cpu cores but that's about it.. it should be more something in the higher regions, like the difference between 90MB/sec or 105MB/sec or something, but not around 40~70MB/sec.
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.

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Thu Oct 19, 2017 7:00 am

Hi meveric, thanks for your reply.
Here is the kernel I'm running:
Linux odroid-jessie 3.10.106+ #1 SMP PREEMPT Sun Sep 24 09:20:43 CEST 2017 armv7l GNU/Linux

I have just checked that the CPU governor runs in performance mode.
I ran the command "ethtool eth0" and it is confirmed thatis have Gigabit activated…

Code: Select all

odroid-jessie:~/# ethtool eth0
Settings for eth0:
	Supported ports: [ MII ]
	Supported link modes:   10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Supported pause frame use: No
	Supports auto-negotiation: Yes
	Advertised link modes:  10baseT/Half 10baseT/Full 
	                        100baseT/Half 100baseT/Full 
	                        1000baseT/Full 
	Advertised pause frame use: Symmetric Receive-only
	Advertised auto-negotiation: Yes
	Link partner advertised link modes:  10baseT/Half 10baseT/Full 
	                                     100baseT/Half 100baseT/Full 
	                                     1000baseT/Half 1000baseT/Full 
	Link partner advertised pause frame use: No
	Link partner advertised auto-negotiation: Yes
	Speed: 1000Mb/s
	Duplex: Full
	Port: MII
	PHYAD: 32
	Transceiver: internal
	Auto-negotiation: on
	Supports Wake-on: pumbg
	Wake-on: g
	Current message level: 0x00007fff (32767)
			       drv probe link timer ifdown ifup rx_err tx_err tx_queued intr tx_done rx_status pktdata hw wol
	Link detected: yes
I also tried an scp command to my NAS QNAP (gigabit also), and it's a real mess there… Only 10MB/s when I'm able to reach 90MB/s between my NAS and my Desktop?!…
I have better results with my Odroid C2 running Ubuntu at this time…
I really don't see the point.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Thu Oct 19, 2017 12:55 pm

scp without any tweaks should go up to 40MB/s. With simpler cyphers it can go up to 50MB/s

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Thu Oct 19, 2017 7:52 pm

That's why I was wondering if there is something wrong with my configuration. Is there any settings rot adjust?
If not, I'll have to give a try with the official minimal Ubuntu image in order to compare the transfer rates.

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 7:19 am

Really strange…
I decided to try another image, then I chose DietPi because I used to work on it on my RPi2.
I have the same bad result, but istead of the eMMC card, I tried on an SD-Card, that could explain.
Then, I migrated the rootfs on my external USB3 hard drive (cf: http://dietpi.com/phpbb/viewtopic.php?f=15&t=396)…
Here are the results:

Code: Select all

root@DietPi:/# dd if=/dev/zero of=/mnt/usb_1/truc bs=4K count=102400
102400+0 enregistrements lus
102400+0 enregistrements écrits
419430400 octets (419 MB) copiés, 3,55408 s, 118 MB/s
root@DietPi:/# scp XServe@192.168.1.11:~/Desktop/U.xz U.xz
Password:
U.xz                                                                                                100%  280MB  40.0MB/s   00:07    
root@DietPi:/# scp U.xz XServe@192.168.1.11:~/Desktop/V.xz
Password:
U.xz                                                                                                100%  280MB  40.0MB/s   00:07 
As you can see, the Hard Drive is able to write at 118MB/s with dd, but I only have 40MB/s at transfer rates to/from my Desktop?!…
So, this is not a Linux image problem, but an Odroid malfunction.
Any idea?

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: [OS] Debian Jessie

Post by odroid » Fri Oct 20, 2017 8:28 am

Can you try below commands to check the USB HDD performance again?

Code: Select all

Write command
dd if=/dev/zero of=test oflag=direct bs=8M count=64
Read command 
dd if=test of=/dev/null iflag=direct bs=8M
It is also worth to measure the network performance with iperf.

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 9:07 am

Code: Select all

root@DietPi:~# dd if=/dev/zero of=test oflag=direct bs=8M count=64
64+0 enregistrements lus
64+0 enregistrements écrits
536870912 octets (537 MB) copiés, 3,0791 s, 174 MB/s
root@DietPi:~# dd if=test of=/dev/null iflag=direct bs=8M
64+0 enregistrements lus
64+0 enregistrements écrits
536870912 octets (537 MB) copiés, 3,53424 s, 152 MB/s
Could you give me details about iperf?!…

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 9:12 am

And the results on the eMMC Card…

Code: Select all

root@DietPi:/mnt/e139ce78-9841-40fe-8823-96a304a09859# dd if=/dev/zero of=/mnt/e139ce78-9841-40fe-8823-96a304a09859/test oflag=direct bs=8M count=64
64+0 enregistrements lus
64+0 enregistrements écrits
536870912 octets (537 MB) copiés, 15,3871 s, 34,9 MB/s
root@DietPi:/mnt/e139ce78-9841-40fe-8823-96a304a09859# dd if=/mnt/e139ce78-9841-40fe-8823-96a304a09859/test of=/dev/null iflag=direct bs=8M
64+0 enregistrements lus
64+0 enregistrements écrits
536870912 octets (537 MB) copiés, 2,83226 s, 190 MB/s
So the eMMC Card is really good in Read mode, and I should be able to "scp" in a better rate to my Desktop?!…

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: [OS] Debian Jessie

Post by odroid » Fri Oct 20, 2017 9:16 am

Try the iperf test first. If iperf result is over 800mbps, "scp" could be a root cause.
Test command
Server mode : iperf -s
Client Mode : iperf -c [ip address] -P 10 -W 32k

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 9:24 am

Odroid as a server:

Code: Select all

root@DietPi:/mnt/e139ce78-9841-40fe-8823-96a304a09859# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38836
[  6] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38840
[  7] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38842
[  5] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38838
[  9] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38844
[  8] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38846
[ 10] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38848
[ 11] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38850
[ 12] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38852
[ 13] local 192.168.1.19 port 5001 connected with 192.168.1.35 port 38854
[ ID] Interval       Transfer     Bandwidth
[ 13]  0.0-10.1 sec  61.8 MBytes  51.2 Mbits/sec
[  9]  0.0-10.2 sec  99.0 MBytes  81.8 Mbits/sec
[  8]  0.0-10.2 sec  90.5 MBytes  74.8 Mbits/sec
[ 12]  0.0-10.2 sec  64.8 MBytes  53.5 Mbits/sec
[  6]  0.0-10.2 sec  82.4 MBytes  67.9 Mbits/sec
[  7]  0.0-10.2 sec   100 MBytes  82.6 Mbits/sec
[  5]  0.0-10.2 sec  39.4 MBytes  32.5 Mbits/sec
[ 11]  0.0-10.2 sec  78.4 MBytes  64.7 Mbits/sec
[  4]  0.0-10.2 sec  55.9 MBytes  46.1 Mbits/sec
[ 10]  0.0-10.2 sec  92.2 MBytes  76.1 Mbits/sec
[SUM]  0.0-10.2 sec   764 MBytes   630 Mbits/sec
Brix Linux Mint:

Code: Select all

tanguy@tanguy-GB-BSi3A-6100 ~ $ iperf -c 192.168.1.19 -P 10 -W 32k
The -W option is not available in this release
iperf: ignoring extra argument -- 32k
------------------------------------------------------------
Client connecting to 192.168.1.19, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 12] local 192.168.1.35 port 38854 connected with 192.168.1.19 port 5001
[  4] local 192.168.1.35 port 38838 connected with 192.168.1.19 port 5001
[  5] local 192.168.1.35 port 38840 connected with 192.168.1.19 port 5001
[  6] local 192.168.1.35 port 38842 connected with 192.168.1.19 port 5001
[  8] local 192.168.1.35 port 38846 connected with 192.168.1.19 port 5001
[  9] local 192.168.1.35 port 38848 connected with 192.168.1.19 port 5001
[  7] local 192.168.1.35 port 38844 connected with 192.168.1.19 port 5001
[ 10] local 192.168.1.35 port 38850 connected with 192.168.1.19 port 5001
[  3] local 192.168.1.35 port 38836 connected with 192.168.1.19 port 5001
[ 11] local 192.168.1.35 port 38852 connected with 192.168.1.19 port 5001
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-10.0 sec  82.4 MBytes  69.1 Mbits/sec
[  4]  0.0-10.0 sec  39.4 MBytes  33.0 Mbits/sec
[ 12]  0.0-10.0 sec  61.8 MBytes  51.7 Mbits/sec
[  8]  0.0-10.0 sec  90.5 MBytes  75.8 Mbits/sec
[  7]  0.0-10.0 sec  99.0 MBytes  82.9 Mbits/sec
[ 11]  0.0-10.0 sec  64.8 MBytes  54.2 Mbits/sec
[  3]  0.0-10.0 sec  55.9 MBytes  46.7 Mbits/sec
[  6]  0.0-10.0 sec   100 MBytes  83.7 Mbits/sec
[ 10]  0.0-10.0 sec  78.4 MBytes  65.4 Mbits/sec
[  9]  0.0-10.1 sec  92.2 MBytes  77.0 Mbits/sec
[SUM]  0.0-10.1 sec   764 MBytes   638 Mbits/ses

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: [OS] Debian Jessie

Post by odroid » Fri Oct 20, 2017 9:26 am

Which kernel version do you use with DietPi?
We could get over 900mbs on Kernel 4.9.

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 9:27 am

Linux DietPi 3.10.106+ #1 SMP PREEMPT Sun Sep 24 09:20:43 CEST 2017 armv7l GNU/Linux

I don't know how to change that?!…

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 10:08 am

Also tried on two Desktop computers on the same network, Linux and OS X machines:
Here are the results:

Code: Select all

Mac-mini-de-James:~ Matt$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55470
[  5] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55472
[  6] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55474
[  7] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55476
[  8] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55478
[  9] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55480
[ 10] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55482
[ 11] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55484
[ 12] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55486
[ 13] local 192.168.1.11 port 5001 connected with 192.168.1.35 port 55488
[  4]  0.0-10.1 sec  99.1 MBytes  82.4 Mbits/sec
[  5]  0.0-10.1 sec   110 MBytes  91.5 Mbits/sec
[  8]  0.0-10.1 sec   110 MBytes  91.9 Mbits/sec
[  9]  0.0-10.1 sec   110 MBytes  91.7 Mbits/sec
[ 12]  0.0-10.1 sec   107 MBytes  89.3 Mbits/sec
[  7]  0.0-10.1 sec   126 MBytes   105 Mbits/sec
[ 11]  0.0-10.1 sec   108 MBytes  89.7 Mbits/sec
[ 13]  0.0-10.1 sec   110 MBytes  91.7 Mbits/sec
[  6]  0.0-10.1 sec   122 MBytes   101 Mbits/sec
[ 10]  0.0-10.1 sec   122 MBytes   101 Mbits/sec
[SUM]  0.0-10.1 sec  1.10 GBytes   934 Mbits/sec
The bandwidth is approximately the maximum for a gigabit network, so I don't think there is any trouble on it?!…

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

Re: [OS] Debian Jessie

Post by memeka » Fri Oct 20, 2017 10:54 am

@Ludwig

use samba to copy files
scp is "secure copy" => it will calculate hashes for packets when sending them over the network which will slow down the speed...

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 11:04 am

No, I won't, because I don't have any M$ machine on my network.
I only want to use NFS, AFP, SCP, RSYNC and SSH connections…

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

Re: [OS] Debian Jessie

Post by memeka » Fri Oct 20, 2017 11:37 am

@Ludwig

it's wrong thinking samba is windows.
apple actually dropped AFP support and it's using now samba because it was more efficient: http://appleinsider.com/articles/13/06/ ... -mavericks

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: [OS] Debian Jessie

Post by odroid » Fri Oct 20, 2017 11:40 am

NFS needs around 50% of CPU usage in Samba.
So I recommend NFS instead of Samba if you don't use M$ OS.

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 11:46 am

For sure, I know they are going to abandon Afp, but I don't need Smb.
The idea is to backup my NAS so I don't really need any file sharing. Just admin access to my server and SCP is the easiest way, and also SSHFS that I'll have to try tomorrow…
I'm really disappointed with the bad transfer rates of the XU-4, especially with NFS when I mount a share folder on my MacMini.
And how could you explain the bad transfer rate when I copy a file from the eMMC Card to the USB3 hard drive locally?!…
Odroid
NFS needs around 50% of CPU usage in Samba.
So I recommend NFS instead of Samba if you don't use M$ OS
Also a reason why I don't like SMB…

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: [OS] Debian Jessie

Post by odroid » Fri Oct 20, 2017 12:05 pm

Something is wrong in your configuration.
We could get around 110MB/sec transfer speed even with Samba.
Image
Create a new thread and we will help you since this thread was made only for Debian Jessie OS update information.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Fri Oct 20, 2017 2:28 pm

@Ludwig: check out february's Odroid Magazine NAS article. There are configuration options for NFS/Samba and also tweaks and tests for ssh/scp. With weaker cyphers in ssh you can get up to 50MB/s - and this is because encryption is done on a single cpu core. If you do paralel transfers and distribute encryption on different cores you might get a better overall transfer rate.

Ludwig
Posts: 22
Joined: Wed Oct 18, 2017 2:17 am
languages_spoken: english
ODROIDs: Odroid XU-4
Odroid C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by Ludwig » Fri Oct 20, 2017 7:20 pm

@Odroid
Thanks for help, I understand you want me to open a new thread but I had the same bad results with this Debian Jessie configuration on my eMMC Card, so I'm afraid it is related to my Odroid hardware, not software…
So do you really want me to create a new post?

@mad_ady
I found your article (https://magazine.odroid.com/wp-content/ ... pdf#page=8), I will have a look…
Last edited by Ludwig on Thu Oct 26, 2017 5:12 am, edited 1 time in total.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Upgrade Kernel

Post by marcavatar » Tue Oct 24, 2017 8:11 pm

Hi, I installed debian with kernel 3.1, I wanted to know how to update the kernel and install the 4.9. Is there a tutorial? Thank you.

User avatar
odroid
Site Admin
Posts: 34586
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 812 times
Been thanked: 704 times
Contact:

Re: [OS] Debian Jessie

Post by odroid » Tue Oct 24, 2017 8:21 pm

Ludwig wrote:@Odroid
Thanks for help, I understand you want me to open a new thread but I had the same bad results with this Debian Jessie configuration on my eMMC Card, so I'm afraid it is related to my Odroid hardware, not software…
So do you really want me to create a new post?
Yes, I believe you have to check the USB IRQ affinity settings to have a better network driver performance.

tmihai20
Posts: 227
Joined: Mon Nov 07, 2016 10:56 pm
languages_spoken: english, french, italian, romanian
ODROIDs: XU4, Go, H2, N2 (4GB)
Location: Romania
Has thanked: 34 times
Been thanked: 9 times
Contact:

Re: Upgrade Kernel

Post by tmihai20 » Tue Oct 24, 2017 8:22 pm

marcavatar wrote:Hi, I installed debian with kernel 3.1, I wanted to know how to update the kernel and install the 4.9. Is there a tutorial? Thank you.
Yes, there is. Check this topic, but backup everything first viewtopic.php?f=146&t=27521. I would also not configure it too much and just try to update the kernel.
Riddle me this, riddle me that
Who is afraid of the big, black bat?
I write (in Romanian mostly) on a blog (see my profile)

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: Upgrade Kernel

Post by meveric » Tue Oct 24, 2017 8:55 pm

tmihai20 wrote:
marcavatar wrote:Hi, I installed debian with kernel 3.1, I wanted to know how to update the kernel and install the 4.9. Is there a tutorial? Thank you.
Yes, there is. Check this topic, but backup everything first viewtopic.php?f=146&t=27521. I would also not configure it too much and just try to update the kernel.
Please do NOT follow this guide!!!!!

This is for Ubuntu only and totally unnecessary on my Debian images.
On my Debian images you only need to make sure you have the latest updates installed and then install Kernel 4.9:

Code: Select all

apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get install linux-image-4.9-armhf-odroid-xu3 linux-headers-4.9-armhf-odroid-xu3
That's all..
Headers are not required.
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.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Wed Oct 25, 2017 2:38 am

Thanks, I'll try tonight.

asms
Posts: 8
Joined: Wed Dec 02, 2015 12:50 am
languages_spoken: english
ODROIDs: C1+, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by asms » Wed Oct 25, 2017 11:36 am

hi meveric,
today i updated to 4.9 kernel using

Code: Select all

apt-get update && apt-get upgrade && apt-get dist-upgrade
apt-get install linux-image-4.9-armhf-odroid-xu3 linux-headers-4.9-armhf-odroid-xu3
but after a reboot i cant connect to network. the ethernet light glows amber on XU4.
ifconfig -a just gives a loopback adapter.
/etc/network/interfaces has

Code: Select all

source-directory /etc/network/interfaces.d
allow-hotplug eth0
iface eth0 inet dhcp
uname -r shows 4.9.58+

can you please help me to understand what i did wrong?
thanks
asms

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: [OS] Debian Jessie

Post by meveric » Wed Oct 25, 2017 1:42 pm

my guess is that the new "uboot" is not correctly in place and for that the board doesn't load the correct dtb file.
but that's easy to fix.
open /boot/boot.ini and search for this section:

Code: Select all

# Load kernel, initrd and dtb in that sequence
fatload mmc 0:1 0x40008000 zImage
fatload mmc 0:1 0x42000000 uInitrd
if test "${board_name}" = "xu4"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3l"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3-lite.dtb; setenv fdtloaded "true"; fi
#failsafe
if test "${fdtloaded}" != "true"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; fi
change it to:

Code: Select all

# Load kernel, initrd and dtb in that sequence
fatload mmc 0:1 0x40008000 zImage
fatload mmc 0:1 0x42000000 uInitrd
if test "${board_name}" = "xu4"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3.dtb; setenv fdtloaded "true"; fi
if test "${board_name}" = "xu3l"; then fatload mmc 0:1 0x44000000 exynos5422-odroidxu3-lite.dtb; setenv fdtloaded "true"; fi
#force xu4
fatload mmc 0:1 0x44000000 exynos5422-odroidxu4.dtb
safe and reboot and network should work again.

My guess is that the uboot was not flashed correctly and with that the variable board_name is not set.
Normally this can be fixed by reinstalling uboot. If you want to FIX the issue let me know and we can try debugging, if you're fine with the force of the xu4.dtb than that's enough as well :)
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.

asms
Posts: 8
Joined: Wed Dec 02, 2015 12:50 am
languages_spoken: english
ODROIDs: C1+, XU4
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by asms » Wed Oct 25, 2017 8:18 pm

thanks meveric. that worked. you are a genious :-)

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Wed Oct 25, 2017 10:11 pm

Thanks I've updated and works everything, now I would like to use the system as a server and use my multimedia harddisk with code installed on a c2 odroid, I'm following this guide, https://translate.google.com/translate?hl=en&sl = en & tl = en & u = https% 3A% 2F% 2Fforum.odroid.com% 2Fviewtopic.php% 3Ft% 3D25424 & year = 2 & sandbox = 1, I arrived at AUTOFS I installed everything, but then it is not clear how to enter the parameters, it is not very clear for a beginner like me, i did it with nfs service and everything works but i wanted to put it on AUTOFS to mount and disassemble the hard drives automatically since with the previous system I had to restart the nfs service via SSH so I could load and see hard drives on KODI.
Do you have any simple tutorials to watch? Thank you.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Wed Oct 25, 2017 10:35 pm

I'm guessing you're referring to this? viewtopic.php?t=25424
Assuming that you want to mount your NFS shares on /media/nfs/share1, /media/nfs/share2, etc, you would configure autofs like this:

Code: Select all

$ sudo vi /etc/auto.master
# add at the end your mountpoint
/media/nfs /etc/auto.nfs --timeout 20
Then create /etc/auto.nfs with the following content:

Code: Select all

$ sudo vi /etc/auto.nfs
music   -hard,intr,nodev,nosuid,users,vers=3,rsize=131072,wsize=131072,namlen=255,timeo=60,proto=tcp,rw                192.168.1.5:/media/wdc/storage/Music
downloads   -hard,intr,nodev,nosuid,users,vers=3,rsize=131072,wsize=131072,namlen=255,timeo=60,proto=tcp,rw                192.168.1.5:/media/wdc/storage/Download
The syntax is - directory, mount options, target (which you can get with showmount -e nfs_server_ip).
After this you restart autofs (sudo service autofs restart) and if you do

Code: Select all

$ ls -l /media/nfs
$ ls -l /media/nfs/music
... it should mount and access your NFS share.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Thu Oct 26, 2017 4:53 am

Hi, thank you for the answer, I tried it and it works on the ssh terminal, it loads the external disk files and it looks at the folders, but then when i go to Code in NFS i see the folders but it does not open anything to me.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Thu Oct 26, 2017 5:08 am

You will have to check permissions. On the odroid you're running as user odroid with uid 1001. The files on the nas will have other owners and rights. Make sure directories are r-x by others and also files are r-- by others.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Thu Oct 26, 2017 5:43 am

I was able to see the folder by inserting the word (no_root_squash) on sudo nano / etc / exports but then I tried to see if I can load the folder again but i can not load the hard disk again I can see it, I have to restart the service, then point and head. Where am I wrong?

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: [OS] Debian Jessie

Post by meveric » Thu Oct 26, 2017 6:52 am

mad_ady wrote:You will have to check permissions. On the odroid you're running as user odroid with uid 1001. The files on the nas will have other owners and rights. Make sure directories are r-x by others and also files are r-- by others.
uid should be 1000 as it is the first user on the system, IF you actually create a user with the name "odroid" the Image only comes with root user.
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.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Fri Oct 27, 2017 2:25 am

Hi, I tried and tried but the only system to have the folders present on KODI is restarting from terminal with "service nfs-kernel-server restart" otherwise the file folders will not appear. I do not understand where I am wrong or does AUTOFS serve me else? I thought it would be useful to avoid every time I start an external HD to restart the nfs-kernel-server service.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Fri Oct 27, 2017 2:35 pm

Sorry, @meveric is right. 1001 is the uid of the custom user I'm using.
@marcavatar: For how long can you access the share after you've restarted the server? Do you shutdown the server while the client is still accessing files?
You can search for open files on the share with sudo lsof | grep /media/nfs

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Fri Oct 27, 2017 5:39 pm

I only have an external hard drive attached to the server in this case DEBIAN on odroid xu4 while the client is a cdo odroid where I installed LibreELEC KODI, the problem is that to see the external hard disk drives on the Code every time I turn on the external hard disk, Hard disk I have to restart the nfs-kernel server via terminal command, i wanted to know if it was possible to have folders automatically when i boot the hard disk without having to run the nfs-kernel server every time i tried it with autofs but i did not understand well what to do, it looks active on my minipc but does not do what I thought.

User avatar
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Fri Oct 27, 2017 5:45 pm

So - let me get this straight. Your Odroid XU4 which has the external hard drive is still powered on but you turn on/off only the disk? How is the disk mounted on the Odroid XU4? Autofs or manual?

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Fri Oct 27, 2017 6:59 pm

The external drive when I turn it on then appears on the desktop automatically on the Odroid xu4 server where I installed Debian, but then when I have to share it with the client in this case the other device a odroid c2 where I installed LibreElec Code I have to restart the server via terminal nfs kernel otherwise I do not see the folder contained in the hard disk.

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: [OS] Debian Jessie

Post by meveric » Fri Oct 27, 2017 7:54 pm

You should try linking the Harddrive inside an empty folder and use NFS to share the folder.
HDD off -> you share a empty folder
HDD on -> you see your stuff inside that folder.
That way you wouldn't need to restart nfs cause you always share the folder anyway.
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.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Fri Oct 27, 2017 8:23 pm

How do I connect my hard drive to an empty folder? What command should I use?

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: [OS] Debian Jessie

Post by meveric » Fri Oct 27, 2017 8:28 pm

for example:

Code: Select all

mkdir /srv/shared_folders
ln -s /media/odroid/<UUID-OR-NAME-OF-HDD> /srv/shared_folders/HDD
afterwards you configure NFS to share the shared_folders folder.
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
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Fri Oct 27, 2017 8:33 pm

Not sure if NFS would follow links. I guess by default they will be exposed as symlinks on the client.
One other way to do it would be to use autofs to mount your disks on xu4 and share /media/disks instead (assuming you mount the partitions inside /media/disks/partition1, etc).

Edit: no, wait - that won't work. NFS won't export the contents of the mountpoints under it...

User avatar
meveric
Posts: 11085
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, H2 (J4105), GoA, C4
Has thanked: 42 times
Been thanked: 384 times
Contact:

Re: [OS] Debian Jessie

Post by meveric » Fri Oct 27, 2017 8:45 pm

@mad_ady is right symlinks won't work.
Only thing that would work are binds.
And you don't want them in fstab, as they are not permanent.
Only solution I could think of, is a udev rule, that watches the system if the HDD is mounted/connected, and if so starts the bind command.
Something similar to this: https://www.axllent.org/docs/view/auto- ... b-storage/
(Similar to how autofs works I guess)
But the setup would be the same, share a folder that ALWAYS exists, but add the folder for your HDD only if active inside that folder.
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
mad_ady
Posts: 8151
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 567 times
Been thanked: 403 times
Contact:

Re: [OS] Debian Jessie

Post by mad_ady » Sat Oct 28, 2017 2:57 pm

@marcavatar: we should start a new thread about this since it's not debian specific. I think I actually have the same problem on my setup but it only happens on boot since it seems nfs starts exporting the shares before autofs mounts them and I need to restart nfs-mountd.
I was going to look into it anyway.

marcavatar
Posts: 77
Joined: Mon Feb 15, 2016 2:24 am
languages_spoken: italian
ODROIDs: Odroid C1+
Has thanked: 0
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by marcavatar » Tue Oct 31, 2017 4:39 am

I also think it depends on a delay in editing, I tried and tried but sincerely the only system to recognize the folder is restarting the nfs server with the command "service nfs-kernel-server restart" at that point magically reappears the folders with files. I have no idea what to do, at this point it suits when you need to start a folder in particular restart the server, I thought there was a system to avoid this thing but around I found nothing and anyway it's all very complicated by one that uses Windows as a main system.

trohn_javolta
Posts: 74
Joined: Fri Nov 03, 2017 6:16 am
languages_spoken: english, german
ODROIDs: none (plans for XU4)
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [OS] Debian Jessie

Post by trohn_javolta » Fri Nov 03, 2017 10:22 pm

Hello I have 2 questions, first one may be a bit stupid:

Are there any disadvantages that go along using your build in comparison to the others?

Reading through the first post I only found this one for me: ...Kodi is only available for X11...
I don't need any desktop environment but I want to keep the option open to use kodi. Would installing X11 mean a loss in performance?

Currently I have a hummingboard i2eX and run armbian. I made very good experiences with it and I guess I'm more comfortable with debian...maybe the minimal ubuntu image also works good for me, i don't know.
What I know is that armbian is out of question here, on the website in XU4 part it states:
  • eMMC install is broken,
    USB 3.0 sometimes doesn’t work.
I plan to use eMMC Module.


Also, does Cloudshell2 "work" with your image or are there any known issues?

I plan to use XU4 + Cloudshell2 as a NAS+homeserver combination, runing dl/torrent servers like transmission, nzbget, jdownloader2 | managers like sickrage,radarr,htpcmanager and also unrar at a decent decompressing speed would be nice.
I think adding Kodi would be too much to ask here, it's not necessary but I want to try it.

I have no experience with open media vault, maybe it's also good for me....only concerning Kodi I read that the open media vault image doesn't support hw decoding in Kodi.

Your build does, right?
I wonder: What happens if I want to playback a x265 encoded video file in Kodi? XU4 doesn't have hevc/x265 hw decoding capabilities right?
Does it play the file and automatically use software decoding? On another thread I read that the XU4 can playback 1080p x265 encoded videos smooth because of its good specs.
10 bit is a whole other story I guess..

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 1 guest