Made Openmediavault NAS with the N1

Moderators: mdrjr, odroid

Made Openmediavault NAS with the N1

Unread postby joerg » Sun Feb 18, 2018 3:27 am

I mounted the N1 into my Thermaltake miniITX case. Before, there was a passive cooled ASRock Q1900DC motherboard mounted that died some days ago. There was running nas4free on a 40GB SSD with two WD Red 3 TB discs.
Now the N1 is running the shipped Debian OS on the orange emmc. I installed Openmediavault to it. The two discs were formated with ufs, but i decided to go with btrfs now. Before repartitioning I backed up the whole data to a third disc.
I followed this link to install OMV: https://forum.openmediavault.org/index.php/Thread/21234-Install-OMV4-on-Debian-9-Stretch/
The first disc I formated from OMV web client with btrfs and then created the same shares as I had before. Then I restored the former backed up data to it.
After this I added the second disc from command line:
Code: Select all
btrfs device add /dev/sdb1 /srv/dev-disk-by-label-NEWDINO -f
btrfs fi balance start -mconvert=raid1,soft  /srv/dev-disk-by-label-NEWDINO
btrfs fi balance start -dconvert=raid1,soft  /srv/dev-disk-by-label-NEWDINO


Before mounting the N1 I had to add a wire to the 12V pin of the disc power supply connector:
IMG_20180217_065237.jpg
IMG_20180217_065237.jpg (420.86 KiB) Viewed 2552 times

Of course now the incoming voltage must be 12V and not more.

This shows the installation:
IMG_20180217_152730.jpg
IMG_20180217_152730.jpg (520.32 KiB) Viewed 2552 times


To connect the power led and the hdd led of the case, I made a small adapter with two 330 ohms resistors and connected it to the pins 30, 32, 34 and 36.
Before, I measured with the multimeter that the breakthrough voltage of the leds are about 2.65V, so it is not possible to connect them directly to a 3.0V gpio pin. With the resistor I measured about 3mA current, the leds are enough bright with it.
But on this kernel 4.4 there is no trigger for the disc activity. For now I used the mmc1 trigger for the hdd led.
Also the power button and the reset button of the case are not yet connected. My first thought was to solder wires to the on board buttons, but there might be also an other possibility. Need to look into this.

To build a nice and small NAS with the N1 there should be some redesign:
If the two sata connectors would be turned 180°, it could be used sata cable with 90° connector. Now it is not possible because the power connector disturbs.
The sata power connector also could be 90°angle one.
There should be a header to connect external power and reset buttons.

So far I am satisfied with the new NAS. What I have further to make, is an aluminum sheet to close the backside of the case.

[edit]
Changed device tree for the gpio-leds:
Code: Select all
   leds: gpio_leds {
      compatible = "gpio-leds";
      pinctrl-names = "led_pins";
      pinctrl-0 = <&led_pins>;

                heartbeat {
                        label = "blue:heartbeat";
                        gpios = <&gpio4 26 GPIO_ACTIVE_HIGH>;
                        linux,default-trigger = "heartbeat";
                };
                pwr {
                    gpios = <&gpio4 28 GPIO_ACTIVE_HIGH>;
                    default-state = "on";
                };
                hdd {
                    gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;
                    linux,default-trigger = "mmc1";
                };
   };   
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby odroid » Sun Feb 18, 2018 11:10 am

Good to hear the 12V wiring to the Molex connector activated the 3.5inch HDDs. :D

BTW, can you give me a link of the 90° connector for easier and clear understanding?
User avatar
odroid
Site Admin
 
Posts: 28718
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Sun Feb 18, 2018 7:40 pm

This was my first thought:
90°-Power-Connector.jpg
90°-Power-Connector.jpg (11.63 KiB) Viewed 2503 times

But I think it takes a lot of space.
On my died miniITX they used this mini 4 pin connectors together with a 2 x sata cable:
DSC_0868.JPG
DSC_0868.JPG (428.06 KiB) Viewed 2503 times

I saw also some mini molex 4-pin to sata power cable. Could be also a choice. (These mini molex that were used for floppy drives.)
I have no idea about the costs for a mass production. So please take it only as a suggestion.
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby odroid » Sun Feb 18, 2018 9:32 pm

Thank you for the picture of 4Pin FDD Floppy Female Power Cable.
We will check the availability with our suppliers.
User avatar
odroid
Site Admin
 
Posts: 28718
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Made Openmediavault NAS with the N1

Unread postby mad_ady » Mon Feb 19, 2018 3:23 am

How thick was the wire you soldered? Would the wire from a jumper cable from the tinkering kit do it in terms of thickness?
User avatar
mad_ady
 
Posts: 4598
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Mon Feb 19, 2018 5:40 am

I used this kind of painted wire that is used for coils. Diameter is 0.75 mm, would be about AWG 21. On my WD RED disks is written 12V: 0.45A, so two disks will consume about 1A. I think these tinkering wires are AWG 28 and they are at 1A at their maximum. I wouldn't choose them.
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby nspader » Mon Feb 19, 2018 10:36 pm

so is the N1 currently incapable of powering 2 3.5" drives?
nspader
 
Posts: 99
Joined: Fri Mar 11, 2016 1:41 am
languages_spoken: english
ODROIDs: Odroid-C2

Re: Made Openmediavault NAS with the N1

Unread postby mad_ady » Mon Feb 19, 2018 10:41 pm

The development boards shipped have a missing power wire. This will be fixed in the production run.
User avatar
mad_ady
 
Posts: 4598
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: Made Openmediavault NAS with the N1

Unread postby tkaiser » Tue Feb 20, 2018 4:12 am



Just for the record: This is no good idea since this generic install recipe misses almost everything what's important an slow ARM boards. Better follow always this recipe that takes care that you end up with optimal performance and flashmemory plugin enabled to reduce wear on the installation media (recommended with every type of flash media): https://forum.openmediavault.org/index. ... post166540

It's really just
Code: Select all
sudo apt install git
git clone https://github.com/armbian/config
sudo /bin/bash config/softy


The difference is explained here in detail: https://forum.armbian.com/topic/3953-pr ... ment=44097 (but of course now step 1) missing)
tkaiser
 
Posts: 404
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Tue Feb 20, 2018 4:27 am

Thanks, I havn't seen this. I will try it and report here.
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby tkaiser » Tue Feb 20, 2018 6:21 am

joerg wrote:I will try it and report here.


Maybe it's a better idea to wait for the below problems being resolved and settings improved before it's worth to report anything :)

We need to get rid of one ugly workaround (checksum offloading deactivated) and most probably we need to add a bunch of RTL8211F related patches and determine appropriate TX/RX delay settings: viewtopic.php?f=150&t=30126#p215659

And then appropriate IRQ affinity settings are missing for RK3399. The ones I currently use might provide top NAS performance once the above two issues are resolved but in the meantime I'm thinking about a daemon sitting in the background and analyzing /proc/interrupts output every minute to dynamically adjust a bunch of parameters since with N1 (or RK3399 in general) users are enabled to choose from a wide variety of storage options (2 x USB2, 2 x USB3, whatever is connected to the PCIe lanes).

My personal gain is to develop those settings that provide top NAS performance (110 MB/s in both directions) with lowest consumption possible. So I would even try to keep all the NAS stuff bound to the little cores. Still no idea whether this works since we need to resolve the two issues above first.
tkaiser
 
Posts: 404
Joined: Mon Nov 09, 2015 12:30 am
languages_spoken: english
ODROIDs: C1+, C2, XU4, HC1

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Wed Feb 21, 2018 11:57 pm

As I come back from work now the NAS was not online. I saw on the ethernet port the yellow led was continuously on. When I was looking why the link came up again.
Two days ago I compiled hd-idle and installed it as service. It's because OMV and hdparm can't spin down the WD Red disks.
The system was running nearly 3 days since last reboot. Here is the log, maybe someone has a hint for me?
Code: Select all
[83264.892551] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[90499.227211] rk_gmac-dwmac fe300000.ethernet eth0: Link is Down
[90504.242996] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[102749.230829] ------------[ cut here ]------------
[102749.235550] WARNING: at ffffff80080a0988 [verbose debug info unavailable]
[102749.242421] Modules linked in: btrfs xor zlib_deflate raid6_pq nls_cp936 vfat fat rock_gpiomem nfsd auth_rpcgss nfs_acl lockd grace sunrpc autofs4

[102749.257538] CPU: 1 PID: 12 Comm: migration/1 Not tainted 4.4.112 #2
[102749.263895] Hardware name: Hardkernel ODROID-N1 (DT)
[102749.268951] task: ffffffc0f289db00 task.stack: ffffffc0f28bc000
[102749.274966] PC is at __local_bh_enable_ip+0x38/0xb8
[102749.279932] LR is at _raw_spin_unlock_bh+0x30/0x3c
[102749.284809] pc : [<ffffff80080a0988>] lr : [<ffffff80087eb2c8>] pstate: 400001c5
[102749.292286] sp : ffffffc0f28bfb80
[102749.295690] x29: ffffffc0f28bfb80 x28: 0000000000000000
[102749.301110] x27: 0000000000000000 x26: 0000000000000005
[102749.306529] x25: 0000000000000005 x24: ffffff8008c077e0
[102749.311949] x23: ffffffc0f1fa6200 x22: ffffffc0ebbf2700
[102749.317366] x21: ffffff800880a620 x20: ffffff8008c1f978
[102749.322784] x19: 0000000000000200 x18: 0000000030d00800
[102749.328201] x17: 0000000000000000 x16: 0000000000000000
[102749.333618] x15: 0000000000000000 x14: ffffffc0f2898d00
[102749.339036] x13: 00000040ef31f000 x12: 0000000034d5d91d
[102749.344453] x11: 0000000000000000 x10: 0000000000000920
[102749.349871] x9 : ffffffc0f28bfd20 x8 : ffffffc0f289e480
[102749.355288] x7 : 0000000000000012 x6 : ffffffc000201e00
[102749.360706] x5 : ffffff800811f0d8 x4 : 0000000000000001
[102749.366123] x3 : 0000000000000001 x2 : 00000040ef31f000
[102749.371540] x1 : 0000000000000000 x0 : ffffff8008cdc6df
[102749.376959]
                PC: 0xffffff80080a0908:
[102749.382088] 0908  7218301f 540001c1 d53b4233 d50342df d00059c0 91000000 d538d081 b8a16800
[102749.390484] 0928  f0006321 91330021 d37ae400 b8606820 34000040 97ff817f d51b4233 f9400bf3
[102749.398879] 0948  a8c27bfd d65f03c0 a9be7bfd 910003fd f9000bf3 aa1e03e0 2a0103f3 d503201f
[102749.407273] 0968  d5384100 b9401000 72100c1f 54000120 900061e0 911b7c00 39400c01 350000e1
[102749.415667] 0988  d4210000 52800021 39000c01 14000003 d53b4220 373ffee0 d5384100 b9401001
[102749.424061] 09a8  b9401002 51000661 4b010041 b9001001 b9401000 7218301f 54000161 d538d081
[102749.432456] 09c8  d00059c0 91000000 b8a16800 f0006321 91330021 d37ae400 b8606820 34000040
[102749.440850] 09e8  97ffffc1 d5384101 b9401020 51000400 b9001020 f9400bf3 a8c27bfd d65f03c0
[102749.449245]
                LR: 0xffffff80087eb248:
[102749.454374] b248  aa1e03e0 d503201f aa1403e0 97e3f0b0 d51b4233 a94153f3 a8c27bfd d65f03c0
[102749.462768] b268  a9be7bfd 910003fd f9000bf3 aa0003f3 aa1e03e0 d503201f aa1303e0 97e3f0a4
[102749.471163] b288  d50342ff f9400bf3 a8c27bfd d65f03c0 a9be7bfd 910003fd a90153f3 aa1e03f3
[102749.479557] b2a8  aa0003f4 aa1e03e0 d503201f aa1403e0 97e3f097 aa1303e0 52804001 97e2d5a3
[102749.487951] b2c8  a94153f3 a8c27bfd d65f03c0 a9be7bfd 910003fd f9000bf3 aa0003f3 aa1e03e0
[102749.496345] b2e8  d503201f aa1303e0 97e3f0bd f9400bf3 a8c27bfd d65f03c0 a9be7bfd 910003fd
[102749.504739] b308  a90153f3 aa0003f4 aa1e03e0 d503201f d53b4233 d50342df aa1403e0 97e3f0b0
[102749.513133] b328  aa1303e0 a94153f3 a8c27bfd d65f03c0 a9be7bfd 910003fd f9000bf3 aa0003f3
[102749.521529]
                SP: 0xffffffc0f28bfb00:
[102749.526658] fb00  ebbf2700 ffffffc0 f1fa6200 ffffffc0 08c077e0 ffffff80 00000005 00000000
[102749.535052] fb20  00000005 00000000 00000000 00000000 00000000 00000000 f28bfb80 ffffffc0
[102749.543446] fb40  087eb2c8 ffffff80 f28bfb80 ffffffc0 080a0988 ffffff80 400001c5 00000000
[102749.551840] fb60  f1fa6218 ffffffc0 f1fa6200 ffffffc0 ffffffff ffffffff 08120ea0 ffffff80
[102749.560234] fb80  f28bfba0 ffffffc0 087eb2c8 ffffff80 08120ea8 ffffff80 ebbf2700 ffffffc0
[102749.568629] fba0  f28bfbc0 ffffffc0 08120ea8 ffffff80 08c1f978 ffffff80 f1fa6200 ffffffc0
[102749.577023] fbc0  f28bfbe0 ffffffc0 08125c40 ffffff80 08c06788 ffffff80 00000006 00000000
[102749.585418] fbe0  f28bfc20 ffffffc0 0809a4b8 ffffff80 ebbf2700 ffffffc0 ebbf2700 ffffffc0
[102749.593813]
                X0: 0xffffff8008cdc65f:
[102749.598942] c65c  ffffff80 08b5535c ffffff80 00000000 00000000 f2551ed0 ffffffc0 f2551de0
[102749.607336] c67c  ffffffc0 08148128 ffffff80 08932b70 ffffff80 087c0858 ffffff80 087beee4
[102749.615730] c69c  ffffff80 081483c4 ffffff80 08b54f94 ffffff80 00000000 00000000 f254df30
[102749.624125] c6bc  ffffffc0 f254df30 ffffffc0 08148128 ffffff80 00000000 00000000 00000000
[102749.632519] c6dc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.640913] c6fc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.649306] c71c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.657699] c73c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.666093] c75c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.674489]
                X5: 0xffffff800811f058:
[102749.679618] f058  f2fbd5b7 f8438ed3 f2fbd5b8 51000400 b9097020 f85e0675 d10082b5 91008260
[102749.688012] f078  eb16001f 54000141 d2802501 8b010280 97ff77a8 a94153f3 a9425bf5 a94363f7
[102749.696407] f098  f94023f9 a8c57bfd d65f03c0 a9410261 f9000420 f9000001 a9016277 a9420261
[102749.704801] f0b8  f9000420 f9000001 a9026277 f9400260 f9402401 b5000241 aa1303e0 940203b7
[102749.713196] f0d8  f94012a0 aa1503f3 d1008015 17ffffe4 91004020 f9800011 c85f7c02 d1000442
[102749.721590] f0f8  c803fc02 35ffffa3 d5033bbf b5fff8a2 f9400801 d63f0020 17ffffc2 97fffefb
[102749.729984] f118  17ffffee a9bd7bfd 910003fd a90153f3 a9025bf5 aa0003f4 aa1e03e0 d503201f
[102749.738378] f138  a940da95 f94002b5 eb1602bf 540000e1 f900069f f9000e9f a94153f3 a9425bf5
[102749.746773]
                X6: 0xffffffc000201d80:
[102749.751902] 1d80  f1cabb80 ffffffc0 00201e88 ffffffc0 00201c88 ffffffc0 f25a5da8 ffffffc0
[102749.760297] 1da0  f25a5d80 ffffffc0 08c2f1a0 ffffff80 f118e7f8 ffffffc0 00000001 00000007
[102749.768691] 1dc0  00200f00 ffffffc0 97ffffe1 a8c17bfd 17ffff4f 00000000 58000380 927cec1f
[102749.777085] 1de0  910003e0 940033b4 9100001f aa0003f2 940033b5 d2800000 94003e2f f9403e40
[102749.785480] 1e00  08be7370 ffffff80 40000000 00000000 00000005 00000000 00000040 00000040
[102749.793873] 1e20  00000000 0000001e 00000040 00000000 00000040 00000000 00000040 00000000
[102749.802268] 1e40  00000000 00000008 00000000 00000000 00000040 00000040 00000000 00000000
[102749.810662] 1e60  089fb3de ffffff80 00201f68 ffffffc0 00201d68 ffffffc0 00000000 00000000
[102749.819057]
                X8: 0xffffffc0f289e400:
[102749.824186] e400  00000000 00000000 00000000 00000000 00000000 00000000 00000001 00000000
[102749.832580] e420  f2898d00 ffffffc0 f289db00 ffffffc0 f2898d00 ffffffc0 f16f3b80 ffffffc0
[102749.840974] e440  08bda000 ffffff80 087e8104 ffffff80 f7f03080 ffffffc0 00000000 00000000
[102749.849369] e460  08808000 ffffff80 f289e0f8 ffffffc0 f28bfd20 ffffffc0 f28bfd20 ffffffc0
[102749.857763] e480  080856e0 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[102749.866157] e4a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.874550] e4c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.882946] e4e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.891341]
                X9: 0xffffffc0f28bfca0:
[102749.896470] fca0  00000001 00000005 f7f57080 ffffffc0 00000000 00000000 00000000 00000000
[102749.904864] fcc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.913257] fce0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.921651] fd00  f28bfdc0 ffffffc0 080bcb9c ffffff80 0037e580 ffffffc0 08c21ab0 ffffff80
[102749.930045] fd20  f289db00 ffffffc0 08bda000 ffffff80 08bda000 ffffff80 00000001 00000000
[102749.938439] fd40  f28bfda0 ffffffc0 087e8104 ffffff80 f28bfd80 ffffffc0 087eb128 ffffff80
[102749.946833] fd60  f28bfd80 ffffffc0 087eb258 ffffff80 00000140 00000000 08bda000 ffffff80
[102749.955228] fd80  f28bfda0 ffffffc0 0812ad30 ffffff80 00000001 00000000 f7eff1c8 ffffffc0
[102749.963624]
                X14: 0xffffffc0f2898c80:
[102749.968838] 8c80  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.977232] 8ca0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.985625] 8cc0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102749.994019] 8ce0  ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[102750.002413] 8d00  00000000 00000000 ffffffff ffffffff 00000000 00000000 00000000 00000000
[102750.010807] 8d20  f28a0000 ffffffc0 00000002 00200040 00000000 00000000 00000000 00000000
[102750.019201] 8d40  00000000 00000001 00000020 00000000 061b4816 00000001 efb0ce00 ffffffc0
[102750.027595] 8d60  00000001 00000001 00000078 00000078 00000078 00000000 088084c8 ffffff80
[102750.035992]
                X20: 0xffffff8008c1f8f8:
[102750.041206] f8f8  00000000 00000000 08c3b758 ffffff80 08c24918 ffffff80 08c1f870 ffffff80
[102750.049600] f918  0000005c 00000000 08c1f658 ffffff80 08c1f550 ffffff80 00000000 00000000
[102750.057994] f938  00000000 00000000 00000000 00000000 00000040 00000000 00000000 00000000
[102750.066388] f958  00000000 00000000 00000000 00000000 00000000 00000000 0000002d 00000000
[102750.074782] f978  0a330a33 dead4ead ffffffff 00000000 ffffffff ffffffff 0811f5e0 ffffff80
[102750.083176] f998  0811eaec ffffff80 0811eb30 ffffff80 0811eb84 ffffff80 00000000 00000000
[102750.091571] f9b8  00001000 00000000 00000000 00000000 0811f4ec ffffff80 00000000 00000000
[102750.099965] f9d8  0811f5e0 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[102750.108360]
                X21: 0xffffff800880a5a0:
[102750.113574] a5a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102750.121967] a5c0  00000000 00000000 00000000 00000000 0811c310 ffffff80 0811bd70 ffffff80
[102750.130362] a5e0  0811c2c0 ffffff80 0811bea0 ffffff80 08c20708 ffffff80 08c206f8 ffffff80
[102750.138756] a600  08c206e8 ffffff80 08c206d8 ffffff80 08c206c8 ffffff80 08c206b8 ffffff80
[102750.147150] a620  08c20d80 ffffff80 08c18498 ffffff80 08c1b470 ffffff80 08c40a10 ffffff80
[102750.155544] a640  08c20750 ffffff80 08cb6680 ffffff80 6f726763 615f7075 6d726464 6c69665f
[102750.163939] a660  00007365 00000000 08c20700 ffffff80 08c206f0 ffffff80 08c206e0 ffffff80
[102750.172333] a680  08c206d0 ffffff80 08c206c0 ffffff80 08c206b0 ffffff80 74617473 6b5f6369
[102750.180728]
                X22: 0xffffffc0ebbf2680:
[102750.185942] 2680  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102750.194335] 26a0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102750.202729] 26c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102750.211123] 26e0  ff96a598 ff97a598 ff97a597 ff97a597 ff98a597 ff98a597 ff98a597 ff98a597
[102750.219517] 2700  00000004 00000000 00000000 00000080 00000000 00000000 00000040 00000000
[102750.227911] 2720  75cf4000 ffffffc0 00000000 0040800c 00000000 00000000 00000000 00000000
[102750.236305] 2740  00000000 00000004 00000018 00000000 061b4505 00000001 773b5b00 ffffffc0
[102750.244699] 2760  00000004 00000000 00000078 00000078 00000078 00000000 08808590 ffffff80
[102750.253094]
                X23: 0xffffffc0f1fa6180:
[102750.258308] 6180  00000010 00000000 6474e552 00000004 00005b88 00000000 00015b88 00000000
[102750.266702] 61a0  00015b88 00000000 00000478 00000000 00000478 00000000 00000001 00000000
[102750.275096] 61c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102750.283490] 61e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[102750.291883] 6200  00000000 00000000 00000000 00000000 00000000 00000000 f1fa6218 ffffffc0
[102750.300278] 6220  f1fa6218 ffffffc0 f1fa6228 ffffffc0 f1fa6228 ffffffc0 f1fa6238 ffffffc0
[102750.308672] 6240  f1fa6238 ffffffc0 08d6ff90 ffffff80 08c20bc0 ffffff80 efb6ac00 ffffffc0
[102750.317066] 6260  f1cf2300 ffffffc0 de1c8500 ffffffc0 0036d600 ffffffc0 0036d6c0 ffffffc0
[102750.325461]
                X24: 0xffffff8008c07760:
[102750.330675] 7760  00000001 00000000 00000001 00000000 000003e8 00000000 f7f62700 ffffffc0
[102750.339069] 7780  00000015 00000000 f7f626c0 ffffffc0 00000001 00000000 00000060 00000000
[102750.347463] 77a0  00015000 00001000 00000001 00000000 f7f62740 ffffffc0 f7f62780 ffffffc0
[102750.355857] 77c0  00000006 00000000 00000005 00000010 f7f625c0 ffffffc0 f7ee4000 ffffffc0
[102750.364252] 77e0  ef30a000 00000040 ef31f000 00000040 ef334000 00000040 ef349000 00000040
[102750.372646] 7800  ef35e000 00000040 ef373000 00000040 00000000 00000000 00000000 00000000
[102750.381040] 7820  00000002 00000000 00002d06 00000000 00010000 00000000 000f7fff 00000000
[102750.389434] 7840  0001e3ab 00000000 00002000 00000000 00000000 0000fffa 00000000 00000000
[102750.397830]
                X29: 0xffffffc0f28bfb00:
[102750.403044] fb00  ebbf2700 ffffffc0 f1fa6200 ffffffc0 08c077e0 ffffff80 00000005 00000000
[102750.411439] fb20  00000005 00000000 00000000 00000000 00000000 00000000 f28bfb80 ffffffc0
[102750.419832] fb40  087eb2c8 ffffff80 f28bfb80 ffffffc0 080a0988 ffffff80 400001c5 00000000
[102750.428227] fb60  f1fa6218 ffffffc0 f1fa6200 ffffffc0 ffffffff ffffffff 08120ea0 ffffff80
[102750.436621] fb80  f28bfba0 ffffffc0 087eb2c8 ffffff80 08120ea8 ffffff80 ebbf2700 ffffffc0
[102750.445015] fba0  f28bfbc0 ffffffc0 08120ea8 ffffff80 08c1f978 ffffff80 f1fa6200 ffffffc0
[102750.453409] fbc0  f28bfbe0 ffffffc0 08125c40 ffffff80 08c06788 ffffff80 00000006 00000000
[102750.461803] fbe0  f28bfc20 ffffffc0 0809a4b8 ffffff80 ebbf2700 ffffffc0 ebbf2700 ffffffc0

[102750.471780] ---[ end trace fb792f318b575e32 ]---
[102750.476476] Call trace:
[102750.479013] Exception stack(0xffffffc0f28bf9b0 to 0xffffffc0f28bfae0)
[102750.485530] f9a0:                                   0000000000000200 0000008000000000
[102750.493432] f9c0: ffffffc0f28bfb80 ffffff80080a0988 ffffffc0f28bfa30 ffffff80080c5984
[102750.501334] f9e0: ffffffc0efb0ce00 ffffffc0e8af9c98 ffffffc0f7f07600 ffffffc0f7f07660
[102750.509246] fa00: ffffffc0f7f02880 0000000000000001 ffffff8008bda000 ffffff8008c077e0
[102750.517157] fa20: 0000000000000000 0000000000000000 ffffffc0f28bfa50 ffffff80080b0be4
[102750.525069] fa40: ffffffc0f28bfb40 ffffff80081a0164 ffffff8008cdc6df 0000000000000000
[102750.532981] fa60: 00000040ef31f000 0000000000000001 0000000000000001 ffffff800811f0d8
[102750.540882] fa80: ffffffc000201e00 0000000000000012 ffffffc0f289e480 ffffffc0f28bfd20
[102750.548794] faa0: 0000000000000920 0000000000000000 0000000034d5d91d 00000040ef31f000
[102750.556695] fac0: ffffffc0f2898d00 0000000000000000 0000000000000000 0000000000000000
[102750.564613] [<ffffff80080a0988>] __local_bh_enable_ip+0x38/0xb8
[102750.570614] [<ffffff80087eb2c8>] _raw_spin_unlock_bh+0x30/0x3c
[102750.576529] [<ffffff8008120ea8>] put_css_set+0x90/0x94
[102750.581746] [<ffffff8008125c40>] cgroup_free+0x60/0xa0
[102750.586963] [<ffffff800809a4b8>] __put_task_struct+0x48/0xd8
[102750.592710] [<ffffff80080d0898>] active_load_balance_cpu_stop+0x228/0x2a8
[102750.599578] [<ffffff800812b1a0>] cpu_stopper_thread+0x94/0x110
[102750.605494] [<ffffff80080bcb9c>] smpboot_thread_fn+0x170/0x174
[102750.611408] [<ffffff80080b8bb0>] kthread+0xdc/0xec
[102750.616286] [<ffffff8008082ef0>] ret_from_fork+0x10/0x20
[105807.664194] rk_gmac-dwmac fe300000.ethernet eth0: Link is Down
[168245.081431] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[185641.518507] rk_gmac-dwmac fe300000.ethernet eth0: Link is Down
[249783.325170] rockchip-vop ff900000.vop: [drm:vop_crtc_enable] Update mode to 1280*1024, close all win
[251914.548389] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[251918.588983] rockchip-vop ff900000.vop: [drm:vop_crtc_enable] Update mode to 1280*1024, close all win
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby rooted » Thu Feb 22, 2018 12:30 am

Have you done this?

Code: Select all
ethtool -K eth0 rx off tx off
User avatar
rooted
 
Posts: 5606
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Thu Feb 22, 2018 1:39 am

No, never worked with ethtool. I can try this and have to wait a day or two if it happens again.
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby rooted » Thu Feb 22, 2018 1:43 am

joerg wrote:No, never worked with ethtool. I can try this and have to wait a day or two if it happens again.
It's a known issue, this is the current workaround.

Related link:
viewtopic.php?p=215664#p215664

List of N1 quirks and tweaks:
viewtopic.php?p=215720#p215720
User avatar
rooted
 
Posts: 5606
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Fri Mar 02, 2018 10:23 pm

Just came back home from a journey and see that this workaround doesn't help.
From my Android devices I can't connect to the samba shares. The link comes up when I start my host PC that mounts the samba shares. Then it is also possible to see the samba shares on my Android devices.
As here it can be seen, the link goes down after about of 4h of inactivity.
Code: Select all
[151554.289596] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[165648.211374] rk_gmac-dwmac fe300000.ethernet eth0: Link is Down
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Mon Mar 05, 2018 4:44 pm

Here is another dmesg. I wasn't successful with putting 'dump_stack' in several functions, only the 'phy_print_status' reports. The behavior is the same if I disconnect the ethernet cable, the yellow led at the connector is on and the same messages. I don't assume that the problem comes from cable because if my host PC is on, I never see this over the whole day.
Both, the N1 and my host PC are connected to the same switch of dlink DGS-1005D. The switch is connected to a DSL router which manages also the wlan. My other devices are conneted via wlan or by cable to another dlink switch.
Code: Select all
[   65.262125] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[44008.158516] rk_gmac-dwmac fe300000.ethernet eth0: Link is Down
[44008.164372] CPU: 5 PID: 18141 Comm: kworker/u12:2 Not tainted 4.4.112 #7
[44008.171070] Hardware name: Hardkernel ODROID-N1 (DT)
[44008.176063] Workqueue: events_power_efficient phy_state_machine
[44008.182002] Call trace:
[44008.184469] [<ffffff80080888e8>] dump_backtrace+0x0/0x220
[44008.189874] [<ffffff8008088b2c>] show_stack+0x24/0x30
[44008.194929] [<ffffff80082d1d24>] dump_stack+0x9c/0xbc
[44008.199984] [<ffffff80084bb094>] phy_print_status+0x114/0x120
[44008.205735] [<ffffff80084c2e74>] stmmac_adjust_link+0x1dc/0x214
[44008.211661] [<ffffff80084bb8e4>] phy_state_machine+0x2b8/0x464
[44008.217502] [<ffffff80080b2c70>] process_one_work+0x210/0x380
[44008.223254] [<ffffff80080b3ae0>] worker_thread+0x284/0x3a4
[44008.228743] [<ffffff80080b8a18>] kthread+0xe0/0xe8
[44008.233544] [<ffffff8008082ef0>] ret_from_fork+0x10/0x20
[90191.555124] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby odroid » Mon Mar 05, 2018 6:04 pm

Thank you for the log.
We will try to reproduce the issue.
User avatar
odroid
Site Admin
 
Posts: 28718
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Thu Mar 08, 2018 7:02 pm

Shame on me!
I hope you guys not have spent so much time in this. :(
As so often the root cause sits in front of the machine. I was not aware that my switch was connected to a master/slave power strip and always was switched off as the host PC was switched off.
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby odroid » Thu Mar 08, 2018 8:35 pm

Thank you for the update.

We've run a very heavy DD and Curl test with two SATA storages and Gbit Ethernet around 40 hours on a N1 sample like this configuration.
viewtopic.php?f=97&t=29973&p=214756#p214756
So far so good even though we've observed a few times of link down/up issue.
We will run the same test a few more days to make sure the stability.
User avatar
odroid
Site Admin
 
Posts: 28718
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Made Openmediavault NAS with the N1

Unread postby elatllat » Thu Mar 08, 2018 11:37 pm

joerg wrote:...master/slave power strip...

Whenever I see those things I accidentally maliciously destroy them.
elatllat
 
Posts: 1047
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1

Re: Made Openmediavault NAS with the N1

Unread postby elatllat » Mon Apr 23, 2018 7:25 am

joerg wrote:...add a wire to the 12V pin...


Is there a 12v source that is controlled by the power button?.
elatllat
 
Posts: 1047
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1

Re: Made Openmediavault NAS with the N1

Unread postby joerg » Mon Apr 23, 2018 12:42 pm

No, the wire goes directly to the input power. So make sure that the incomming voltage is not more than 12V.
joerg
 
Posts: 804
Joined: Tue Apr 01, 2014 2:14 am
Location: Germany
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2

Re: Made Openmediavault NAS with the N1

Unread postby elatllat » Mon Apr 23, 2018 6:27 pm

Yah 12.45 volts.
The a mini connector would require much less force then the big old power plug that threatens to snap the board in half with every use.
elatllat
 
Posts: 1047
Joined: Tue Sep 01, 2015 8:54 am
languages_spoken: english
ODROIDs: XU4, N1


Return to Projects

Who is online

Users browsing this forum: No registered users and 1 guest