Welcome! Log In Create A New Profile

Advanced

Debian Installation on Thecus N2350 (Marvell Armada 385)

Posted by lordzahl 
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 21, 2018 04:50PM
Hello,

I've tried both (v5 and v6) and both them gives them same results as before, no matter if the disk is attached to any port.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 21, 2018 04:54PM
nailman23 Wrote:
-------------------------------------------------------
> Hello,
>
> I've tried both (v5 and v6) and both them gives
> them same results as before, no matter if the disk
> is attached to any port.

OK then there is something we are not seeing. I think I should add USB2 power in DTS, just in case. Update: Nope. I think it must have power always. There is no GPIO for USB2 enabled!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 03/21/2018 04:56PM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 21, 2018 05:20PM
Wonder why do we need these GPIOs:

static const unsigned char HDD0_ATTACH = 26;
static const unsigned char HDD1_ATTACH = 27;


Ah I think it is because these HDDs are hot-swapable.

This could cause some problems!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 3 time(s). Last edit at 03/21/2018 05:38PM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 22, 2018 03:09AM
Hi,

> OK then there is something we are not seeing. I
> think I should add USB2 power in DTS, just in
> case.
Update: Nope. I think it must
> have power always. There is no GPIO for USB2
> enabled!

Yes, we are missing something. Just so you know: The usb2 is different than the usb3 ports: It is actually internal and normally not reachable, if the enclosure of the box is not removed.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 22, 2018 03:12AM
bodhi Wrote:
-------------------------------------------------------
> Wonder why do we need these GPIOs:
>
>
> static const unsigned char HDD0_ATTACH = 26;
> static const unsigned char HDD1_ATTACH = 27;
>
>
>
> Ah I think it is because these HDDs are
> hot-swapable.
>
> This could cause some problems!

Maybe the HDD ports need to be powered up as well?
static const unsigned char HDD0_EN = 44;
static const unsigned char HDD1_EN = 45;
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 22, 2018 03:20AM
> Maybe the HDD ports need to be powered up as
> well?
>
> static const unsigned char HDD0_EN = 44;
> static const unsigned char HDD1_EN = 45;
>

These were already powered up in the DTS V6.

reg_sata0: regulator@3 {
                        compatible = "regulator-fixed";
                        regulator-name = "pwr_en_sata0";
                        regulator-min-microvolt = <12000000>;
                        regulator-max-microvolt = <12000000>;
                        enable-active-high;
                        regulator-boot-on;
                        gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
                };

                reg_5v_sata0: v5-sata0 {
                        compatible = "regulator-fixed";
                        regulator-name = "v5.0-sata0";
                        regulator-min-microvolt = <5000000>;
                        regulator-max-microvolt = <5000000>;
                        vin-supply = <&reg_sata0>;
                };

                reg_12v_sata0: v12-sata0 {
                        compatible = "regulator-fixed";
                        regulator-name = "v12.0-sata0";
                        regulator-min-microvolt = <12000000>;
                        regulator-max-microvolt = <12000000>;
                        vin-supply = <&reg_sata0>;
                };

                reg_sata1: regulator@4 {
                        regulator-name = "pwr_en_sata1";
                        compatible = "regulator-fixed";
                        regulator-min-microvolt = <12000000>;
                        regulator-max-microvolt = <12000000>;
                        enable-active-high;
                        regulator-boot-on;
                        gpio = <&gpio1 13 GPIO_ACTIVE_HIGH>;
                };

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 03/22/2018 03:22AM by bodhi.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 24, 2018 05:38PM
Let's try kwboot with these u-boot SPL.

See if you can consistently start the box with one of these 3 SPLs .

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - u-boot-spl-db-88f6820-gp-tld-1.bin (138.6 KB)
open | download - u-boot-spl-db-88f6820-amc-tld-1.bin (139.8 KB)
open | download - u-boot-spl-turris_omnia-tld-1.bin (144.5 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 25, 2018 06:28AM
Hi bodhi,

> Let's try kwboot with these u-boot SPL.
Ok, here we go. First one (i'll update if the others are done.)
[uboot]$ ../../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-db-88f6820-amc-tld-1.bin -q 0 -s 1
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  6 % [......................................................................]
 12 % [......................................................................]
 18 % [......................................................................]
 25 % [......................................................................]
 31 % [......................................................................]
 37 % [......................................................................]
 43 % [......................................................................]
 50 % [......................................................................]
 56 % [......................................................................]
 62 % [......................................................................]
 68 % [......................................................................]
 75 % [......................................................................]
 81 % [......................................................................]
 87 % [......................................................................]
 93 % [.....................................................................]
[Type Ctrl-\ + c to quit]
This was a lot faster than last time. But after that message - nothing.

The second one:
[uboot]$ ../../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-db-88f6820-gp-tld-1.bin -q 0 -s 1
[......]

The output was the same as in the first one. After that again nothing happened. By the way, starting the process was easy in both time. For the first image it worked right at the first boot up. For the second time i only needed three boot attempts.

edit2:
And again nothing (after the third boot):
[mjung@pollux uboot]$ ../../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-turris_omnia-tld-1.bin -q 0 -s 1
Sending boot message. Please reboot the target.../
BootROM - 1.73
Booting from SPI flash
-l

General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
|High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
\DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
\
Sending boot image...
  0 % [......................................................................]
  6 % [......................................................................]
 12 % [......................................................................]
 18 % [......................................................................]
 24 % [......................................................................]
 30 % [......................................................................]
 36 % [......................................................................]
 42 % [......................................................................]
 48 % [......................................................................]
 54 % [......................................................................]
 60 % [......................................................................]
 66 % [......................................................................]
 72 % [......................................................................]
 78 % [......................................................................]
 84 % [......................................................................]
 90 % [......................................................................]
 96 % [.....................................]
[Type Ctrl-\ + c to quit]



Edited 2 time(s). Last edit at 03/25/2018 07:12AM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 25, 2018 04:06PM
Hi Manuel,

That's encouraging! even it did not start the box. What we need to see is the handshake occur right away and the image loading finishes.

Quote

[uboot]$ ../../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-db-88f6820-amc-tld-1.bin -q 0 -s 1
Sending boot message. Please reboot the target...|
Sending boot image...
0 % [......................................................................]
6 % [......................................................................]
12 % [......................................................................]
18 % [......................................................................]
25 % [......................................................................]
31 % [......................................................................]
37 % [......................................................................]
43 % [......................................................................]
50 % [......................................................................]
56 % [......................................................................]
62 % [......................................................................]
68 % [......................................................................]
75 % [......................................................................]
81 % [......................................................................]
87 % [......................................................................]
93 % [.....................................................................]
[Type Ctrl-\ + c to quit]

How long this 1st took to load? did it start transfer right away? and did you wait a while to make sure it stuck?

[uboot]$ ../../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-db-88f6820-gp-tld-1.bin -q 0 -s 1
[......]

This 2nd image was one I hoped for the most :)

Quote

[mjung@pollux uboot]$ ../../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-turris_omnia-tld-1.bin -q 0 -s 1
Sending boot message. Please reboot the target.../
BootROM - 1.73
Booting from SPI flash
-l

<snip>

Sending boot image...
0 % [......................................................................]
6 % [......................................................................]

This 3rd one missed the handshake. It was odd that it eventually accepted the image!

So my conclusion is that we need to build the correct SPL. The Clearfog is another candidate, but I got linking error using u-boot-master. I will rebuild with 2017.07 to see if it is better.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 25, 2018 04:19PM
BTW, have you got repsonse about U-Boot GPL yet? that would definitely make kwboot this box much easier.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 25, 2018 06:07PM
Let's try kwboot with u-boot SPL for Clearfog. This image should be run with -p option.

kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-spl-clearfog-tld-1.kwb -q 0 -s 1 -p

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - u-boot-spl-clearfog-tld-1.kwb (527.8 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 26, 2018 09:12AM
Hi bodhi,

I did not take exact timings when trying to kwboot the first image. I think uploading the image took about 15min and i waited after that 30-60s for it to boot.

To be clear about the the attempt with the third image: I actually restarted the box three times. The first two times i did not work and this is where the normal boot up messages are from. After the third insertion of the power cable it started the transfer right away.

I will test the new u-boot-spl-clearfog-tld-1.kwb later today.
Cheers and thanks,
Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 26, 2018 11:08AM
Hi,

bodhi Wrote:
>
> kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b
> u-boot-spl-clearfog-tld-1.kwb -q 0 -s 1 -p
>

Ok, this one is interesting:
The timing works quite well, about 50% success chance.
The uploading only takes ~10s, but the last % i can see is ~25% and than the old output in the console is cleared and i get
kc�ks�kh�d����ctkl�hs����k�����{��kc
                                                   ���������kt�t
                                                                       kkc��kk��������������������������������������t�4+!+�����t�hg�
                                                           ���d�����k
                                                                                       ���t���������k+xmodem: Operation canceled

So something is wrong. Is your uploaded file complete and not broken?

Second observation LED5 (as named on pcb) is now orange. Normally it is off in uboot etc.

Third observation: If i listen to the serial console afterwards i get this:
kkkkkkkkkkk+kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
Slowly printing more 'k' at a rate of about 1/s.

Regarding the uboot gpl sources: I have not heard back from thecus yet. I will post here if that happens. @nailman23 maybe you could ask them about that too. Maybe that increases their motivation..
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 26, 2018 11:50PM
Check your image checksum

md5sum u-boot-spl-clearfog-tld-1.kwb
d9a8d444342fbf3fc1fcd74206460650  u-boot-spl-clearfog-tld-1.kwb

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 27, 2018 01:24AM
bodhi Wrote:

>
> md5sum u-boot-spl-clearfog-tld-1.kwb
> d9a8d444342fbf3fc1fcd74206460650 
> u-boot-spl-clearfog-tld-1.kwb
>

The md5sum is fine, so something else is still wrong.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 27, 2018 04:50PM
I build my own uboot image today from mainline u-boot:
export CROSS_COMPILE=arm-none-eabi-
make clearfog_defconfig

Booting the resulting *kwb file shows exactly the same result as the last one from bodhi - i guess you build it the same way?
I opened a new ticket at the thecus support to ask for uboot sources. Last time i answered the email about the GPL sources - hoping to directly reach the technical staff. But maybe that did not work. I don't really know how to configure u-boot from here or what i could try.
"make menuconfig" shows a lot of options.
Cheers, Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 27, 2018 05:18PM
Manuel,


Just now, I've noticed a typo in the v6 run posted in this post:

https://forum.doozan.com/read.php?2,50829,55134#msg-55134

Marvell>> setenv mtdparts 'mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'

[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env) earlyprintk=serial

Please try again without the extra space!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 01:38AM
Hi bodhi,

> Please try again without the extra space!

Here we go:


            

            

            

            
        
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 04:05AM
lordzahl Wrote:
-------------------------------------------------------
> Hi bodhi,
>
> > Please try again without the extra space!
>
> Here we go:

There seems to be a problem with your post. Nothing showed up inside the code tags.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 04:08AM
Hi,
Oh, sorry about that. I'll correct it, when i am home again, so you can check it.
But the result was negative. The boot up stopped at the same position.
- Manuel
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 05:16AM
Manuel,

Don't worry about it! I found some new info in various Armada DTS that I've overlooked before. Still look for possible improvement!

Will be back to this thread with new DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 05:55AM
OK here is the DTB V7 for testing.

I've corrected some SATA definition. Hopefully, if the kernel hang was because of SATA initialization then this should help us got pass that hurdle.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-thecus-n2350.v7.tar (40 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 12:33PM
Hi bodhi,

bodhi Wrote:
-------------------------------------------------------
> OK here is the DTB V7 for testing.
Thank you very much. Here we go, nice progress!

Using (from dts v6, but without the space mentioned a few posts before)
setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv dtbfilename armada-385-thecus-n2350.dtb
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
usb start
run usb_bootcmd

i get the log:
BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  0
Marvell>> setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> run usb_bootcmd
Booting from USB ...
4141288 bytes read in 519 ms (7.6 MiB/s)
18690 bytes read in 666 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff901 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db4848   ( 723 kB)
[    0.000000]        .bss : 0xc0dbbf1c - 0xc0e103c4   ( 338 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008075] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019169] Switching to timer-based delay loop, resolution 1ns
[    0.025385] Ignoring duplicate/late registration of read_current_timer delay
[    0.032494] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043962] Console: colour dummy device 80x30
[    0.048496] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059157] pid_max: default: 32768 minimum: 301
[    0.063949] Security Framework initialized
[    0.068178] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074854] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082476] CPU: Testing write buffer coherency: ok
[    0.087605] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125250] Setting up static identity map for 0x100000 - 0x100060
[    0.131597] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136947] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143278] Hierarchical SRCU implementation.
[    0.185220] smp: Bringing up secondary CPUs ...
[    0.235291] Booting CPU 1
[    0.238196] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238281] smp: Brought up 1 node, 2 CPUs
[    0.248194] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254605] CPU: All CPU(s) started in SVC mode.
[    0.260039] devtmpfs: initialized
[    0.266311] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274316] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284214] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290579] prandom: seed boundary self test passed
[    0.298054] prandom: 100 self tests passed
[    0.302220] pinctrl core: initialized pinctrl subsystem
[    0.308355] NET: Registered protocol family 16
[    0.313604] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321891] cpuidle: using governor ladder
[    0.326122] cpuidle: using governor menu
[    0.330279] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338349] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344407] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352570] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416829] vgaarb: loaded
[    0.419818] SCSI subsystem initialized
[    0.424404] usbcore: registered new interface driver usbfs
[    0.430110] usbcore: registered new interface driver hub
[    0.435582] usbcore: registered new device driver usb
[    0.441064] media: Linux media interface: v0.10
[    0.445732] Linux video capture interface: v2.00
[    0.451306] clocksource: Switched to clocksource arm_global_timer
[    0.510174] VFS: Disk quotas dquot_6.6.0
[    0.514262] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.527071] NET: Registered protocol family 2
[    0.531977] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.539134] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.545743] TCP: Hash tables configured (established 8192 bind 8192)
[    0.552233] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.558242] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.564860] NET: Registered protocol family 1
[    0.569579] RPC: Registered named UNIX socket transport module.
[    0.575585] RPC: Registered udp transport module.
[    0.580354] RPC: Registered tcp transport module.
[    0.585139] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.591907] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.598701] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.607771] audit: initializing netlink subsys (disabled)
[    0.613356] audit: type=2000 audit(0.579:1): state=initialized audit_enabled=0 res=1
[    0.613610] Initialise system trusted keyrings
[    0.613634] Key type blacklist registered
[    0.613731] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.621176] zbud: loaded
[    0.632069] NFS: Registering the id_resolver key type
[    0.632086] Key type id_resolver registered
[    0.632089] Key type id_legacy registered
[    0.632099] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.632102] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.632254] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.632584] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.632687] orangefs_init: module version upstream loaded
[    0.636337] Key type asymmetric registered
[    0.636341] Asymmetric key parser 'x509' registered
[    0.636379] bounce: pool size: 64 pages
[    0.636419] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.636423] io scheduler noop registered
[    0.636426] io scheduler deadline registered
[    0.636499] io scheduler cfq registered (default)
[    0.640667] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.642926] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.642934] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.642940] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.642945] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.643321] PCI: bus0: Fast back to back transfers disabled
[    0.643332] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.643345] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.643432] PCI: bus1: Fast back to back transfers enabled
[    0.643526] PCI: bus2: Fast back to back transfers enabled
[    0.643557] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.643567] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.644121] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.701887] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.702062] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.761879] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.823830] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.826153] console [ttyS0] disabled
[    0.860692] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.869761] console [ttyS0] enabled
[    0.869761] console [ttyS0] enabled
[    0.876997] bootconsole [earlycon0] disabled
[    0.876997] bootconsole [earlycon0] disabled
[    0.887064] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.896186] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.905903] scsi host0: ahci-mvebu
[    0.909632] scsi host1: ahci-mvebu
[    0.913294] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    0.921254] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43
[    0.930378] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.937931] pxa3xx-nand f10d0000.flash: invalid number of chip selects
[    0.946787] libphy: Fixed MDIO Bus: probed
[    0.951923] libphy: orion_mdio_bus: probed
[    0.956364] orion-mdio f1072004.mdio: Cannot register MDIO bus (-19)
[    0.963335] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    0.973600] mvneta f1070000.ethernet eth0: Using random mac address 36:ec:c8:5f:25:ca
[    0.984155] mvneta f1030000.ethernet eth1: Using random mac address de:70:12:d7:fd:11
[    0.992523] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.999101] ehci-pci: EHCI PCI platform driver
[    1.003669] ehci-orion: EHCI orion driver
[    1.007855] orion-ehci f1058000.usb: EHCI Host Controller
[    1.013323] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.021014] orion-ehci f1058000.usb: irq 39, io mem 0xf1058000
[    1.061319] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.067433] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.074273] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.081547] usb usb1: Product: EHCI Host Controller
[    1.086450] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.092933] usb usb1: SerialNumber: f1058000.usb
[    1.098039] hub 1-0:1.0: USB hub found
[    1.101850] hub 1-0:1.0: 1 port detected
[    1.106651] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.112023] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.119632] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.128250] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.134155] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.140981] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.148255] usb usb2: Product: xHCI Host Controller
[    1.153208] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.159683] usb usb2: SerialNumber: f10f0000.usb3
[    1.164844] hub 2-0:1.0: USB hub found
[    1.168642] hub 2-0:1.0: 1 port detected
[    1.172911] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.178260] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.185874] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.194109] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.200935] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.208208] usb usb3: Product: xHCI Host Controller
[    1.214011] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.220486] usb usb3: SerialNumber: f10f0000.usb3
[    1.225633] hub 3-0:1.0: USB hub found
[    1.229427] hub 3-0:1.0: 1 port detected
[    1.233849] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.239202] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.246827] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.252684] ata2: SATA link down (SStatus 0 SControl 300)
[    1.252728] ata1: SATA link down (SStatus 0 SControl 300)
[    1.266324] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.272222] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.279048] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.286378] usb usb4: Product: xHCI Host Controller
[    1.291283] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.297768] usb usb4: SerialNumber: f10f8000.usb3
[    1.302857] hub 4-0:1.0: USB hub found
[    1.306650] hub 4-0:1.0: 1 port detected
[    1.310831] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.316196] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.323797] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.332032] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.338858] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.346215] usb usb5: Product: xHCI Host Controller
[    1.351119] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.357605] usb usb5: SerialNumber: f10f8000.usb3
[    1.362663] hub 5-0:1.0: USB hub found
[    1.366454] hub 5-0:1.0: 1 port detected
[    1.370804] usbcore: registered new interface driver usblp
[    1.376435] usbcore: registered new interface driver usb-storage
[    1.382669] mousedev: PS/2 mouse device common for all mice
[    1.389129] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.397310] i2c /dev entries driver
[    1.412803] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.425726] orion_wdt: Initial timeout 171 sec
[    1.433158] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.440676] hidraw: raw HID events driver (C) Jiri Kosina
[    1.446477] usbcore: registered new interface driver usbhid
[    1.452114] usbhid: USB HID core driver
[    1.456428] drop_monitor: Initializing network drop monitor service
[    1.462791] Netfilter messages via NETLINK v0.30.
[    1.467531] ip_set: protocol 6
[    1.470862] NET: Registered protocol family 10
[    1.476289] Segment Routing with IPv6
[    1.480021] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.487053] NET: Registered protocol family 17
[    1.491581] 8021q: 802.1Q VLAN Support v1.8
[    1.495817] Key type dns_resolver registered
[    1.500232] ThumbEE CPU extension supported.
[    1.504548] Registering SWP/SWPB emulation handler
[    1.509897] registered taskstats version 1
[    1.514035] Loading compiled-in X.509 certificates
[    1.518906] zswap: loaded using pool lzo/zbud
[    1.524361] Key type big_key registered
[    1.528530] Key type encrypted registered
[    1.534515] v5.0-sata0: supplied by pwr_en_sata0
[    1.539194] v12.0-sata0: supplied by pwr_en_sata0
[    1.543972] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.551800] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.559157] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-28 17:30:44 UTC (1522258244)
[    1.568602] v5.0-sata1: supplied by pwr_en_sata1
[    1.573334] v12.0-sata1: supplied by pwr_en_sata1
[    1.578105] v5.0-sata0: disabling
[    1.581458] v12.0-sata0: disabling
[    1.584877] v5.0-sata1: disabling
[    1.588208] v12.0-sata1: disabling
[    1.592099] Waiting 10 sec before mounting root device...
[    1.721805] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.728547] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.735736] usb 2-1: Product: Cruzer Blade
[    1.739854] usb 2-1: Manufacturer: SanDisk
[    1.743983] usb 2-1: SerialNumber: 4C530103371128105004
[    1.749678] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.755982] scsi host2: usb-storage 2-1:1.0
[    2.832572] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.842718] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.851821] sd 2:0:0:0: [sda] Write Protect is off
[    2.856914] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.868322]  sda: sda1
[    2.871989] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.031447] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   12.039494] Please append a correct "root=" boot option; here are the available partitions:
[   12.047959] 0800        15633408 sda 
[   12.047963]  driver: sd
[   12.054117]   0801        15632384 sda1 943c1c49-01
[   12.054120] 
[   12.060520] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   12.068829] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.14.1-mvebu-tld-1 #1
[   12.075824] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.081792] [<c01169e4>] (unwind_backtrace) from [<c0111254>] (show_stack+0x10/0x14)
[   12.089584] [<c0111254>] (show_stack) from [<c08925fc>] (dump_stack+0x70/0x8c)
[   12.096849] [<c08925fc>] (dump_stack) from [<c01252c0>] (panic+0xc0/0x23c)
[   12.103765] [<c01252c0>] (panic) from [<c0c012b8>] (mount_block_root+0x1d8/0x24c)
[   12.111289] [<c0c012b8>] (mount_block_root) from [<c0c01420>] (mount_root+0xf4/0x11c)
[   12.119162] [<c0c01420>] (mount_root) from [<c0c0156c>] (prepare_namespace+0x124/0x184)
[   12.127210] [<c0c0156c>] (prepare_namespace) from [<c0c00e7c>] (kernel_init_freeable+0x1e8/0x23c)
[   12.136131] [<c0c00e7c>] (kernel_init_freeable) from [<c08a3f48>] (kernel_init+0x8/0x108)
[   12.144357] [<c08a3f48>] (kernel_init) from [<c010c6b0>] (ret_from_fork+0x14/0x24)
[   12.151971] CPU0: stopping
[   12.154696] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.14.1-mvebu-tld-1 #1
[   12.161692] Hardware name: Marvell Armada 380/385 (Device Tree)
[   12.167650] [<c01169e4>] (unwind_backtrace) from [<c0111254>] (show_stack+0x10/0x14)
[   12.175437] [<c0111254>] (show_stack) from [<c08925fc>] (dump_stack+0x70/0x8c)
[   12.182702] [<c08925fc>] (dump_stack) from [<c011474c>] (handle_IPI+0x150/0x3b0)
[   12.190140] [<c011474c>] (handle_IPI) from [<c0101524>] (gic_handle_irq+0x7c/0x98)
[   12.197752] [<c0101524>] (gic_handle_irq) from [<c0111e0c>] (__irq_svc+0x6c/0xa8)
[   12.205271] Exception stack(0xc0d01f48 to 0xc0d01f90)
[   12.210350] 1f40:                   00000001 00000000 00000000 c011ef80 00000000 00000000
[   12.218570] 1f60: c0d00000 c0d01fa0 c0d04d68 c0c56a28 00000000 00000000 00000001 c0d01f98
[   12.226789] 1f80: c010d7a4 c010d7a8 60000113 ffffffff
[   12.231870] [<c0111e0c>] (__irq_svc) from [<c010d7a8>] (arch_cpu_idle+0x2c/0x38)
[   12.239308] [<c010d7a8>] (arch_cpu_idle) from [<c015f704>] (do_idle+0xd8/0x1d0)
[   12.246658] [<c015f704>] (do_idle) from [<c015fa6c>] (cpu_startup_entry+0x18/0x1c)
[   12.254269] [<c015fa6c>] (cpu_startup_entry) from [<c0c00c28>] (start_kernel+0x33c/0x3a8)
[   12.262489] [<c0c00c28>] (start_kernel) from [<0000807c>] (0x807c)
[   12.268710] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)



Edited 1 time(s). Last edit at 03/28/2018 12:35PM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 01:17PM
Using
root=/dev/sda1
i can boot the system and login (over serial, not tried anything else yet)!
Can post the log at the moment, because it has some control characters in it. Have to find out how to stripe them..

edit: Here is the log. A network cable was/is connected, but there seems to be something wrong with the PHY setup (in the dts).


BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:0x3fed0000:0x3ff959e4
       BSS:0x3ffef104
       Stack:0x3f9bff20
       Heap:0x3f9c0000:0x3fed0000
       U-Boot Environment:0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3  0
Marvell>> setenv mtdparts 'mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sda1 rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> run usb_bootcmd
Booting from USB ...
4141288 bytes read in 457 ms (8.6 MiB/s)
18690 bytes read in 660 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff901 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 mtdparts=armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db4848   ( 723 kB)
[    0.000000]        .bss : 0xc0dbbf1c - 0xc0e103c4   ( 338 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008074] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019168] Switching to timer-based delay loop, resolution 1ns
[    0.025381] Ignoring duplicate/late registration of read_current_timer delay
[    0.032491] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043960] Console: colour dummy device 80x30
[    0.048494] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059156] pid_max: default: 32768 minimum: 301
[    0.063947] Security Framework initialized
[    0.068178] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074853] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082475] CPU: Testing write buffer coherency: ok
[    0.087602] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125247] Setting up static identity map for 0x100000 - 0x100060
[    0.131594] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136943] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143274] Hierarchical SRCU implementation.
[    0.185217] smp: Bringing up secondary CPUs ...
[    0.235288] Booting CPU 1
[    0.238192] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238277] smp: Brought up 1 node, 2 CPUs
[    0.248191] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254604] CPU: All CPU(s) started in SVC mode.
[    0.260035] devtmpfs: initialized
[    0.266285] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274293] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284190] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290555] prandom: seed boundary self test passed
[    0.298030] prandom: 100 self tests passed
[    0.302196] pinctrl core: initialized pinctrl subsystem
[    0.308331] NET: Registered protocol family 16
[    0.313579] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321857] cpuidle: using governor ladder
[    0.326090] cpuidle: using governor menu
[    0.330245] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338316] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344374] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352538] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416822] vgaarb: loaded
[    0.419808] SCSI subsystem initialized
[    0.424374] usbcore: registered new interface driver usbfs
[    0.430091] usbcore: registered new interface driver hub
[    0.435603] usbcore: registered new device driver usb
[    0.441078] media: Linux media interface: v0.10
[    0.445741] Linux video capture interface: v2.00
[    0.455425] clocksource: Switched to clocksource arm_global_timer
[    0.514373] VFS: Disk quotas dquot_6.6.0
[    0.518461] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.531276] NET: Registered protocol family 2
[    0.536186] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.543343] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.549954] TCP: Hash tables configured (established 8192 bind 8192)
[    0.556445] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.562453] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.569068] NET: Registered protocol family 1
[    0.573790] RPC: Registered named UNIX socket transport module.
[    0.579802] RPC: Registered udp transport module.
[    0.584571] RPC: Registered tcp transport module.
[    0.589356] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.596117] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.602912] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.611976] audit: initializing netlink subsys (disabled)
[    0.617560] audit: type=2000 audit(0.589:1): state=initialized audit_enabled=0 res=1
[    0.617813] Initialise system trusted keyrings
[    0.617838] Key type blacklist registered
[    0.617933] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.625381] zbud: loaded
[    0.636262] NFS: Registering the id_resolver key type
[    0.636272] Key type id_resolver registered
[    0.636275] Key type id_legacy registered
[    0.636285] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.636288] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.636437] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    0.636768] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.636870] orangefs_init: module version upstream loaded
[    0.640516] Key type asymmetric registered
[    0.640520] Asymmetric key parser 'x509' registered
[    0.640558] bounce: pool size: 64 pages
[    0.640597] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.640601] io scheduler noop registered
[    0.640604] io scheduler deadline registered
[    0.640676] io scheduler cfq registered (default)
[    0.644884] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.647155] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.647162] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.647168] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.647173] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.647553] PCI: bus0: Fast back to back transfers disabled
[    0.647565] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.647578] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.647665] PCI: bus1: Fast back to back transfers enabled
[    0.647758] PCI: bus2: Fast back to back transfers enabled
[    0.647789] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.647799] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.648347] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.706006] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.706183] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.765996] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.827728] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.829407] console [ttyS0] disabled
[    0.866121] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.875166] console [ttyS0] enabled
[    0.875166] console [ttyS0] enabled
[    0.882277] bootconsole [earlycon0] disabled
[    0.882277] bootconsole [earlycon0] disabled
[    0.892345] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.901472] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.911256] scsi host0: ahci-mvebu
[    0.914987] scsi host1: ahci-mvebu
[    0.918653] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    0.926627] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43
[    0.935746] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    0.943277] pxa3xx-nand f10d0000.flash: invalid number of chip selects
[    0.952114] libphy: Fixed MDIO Bus: probed
[    0.957244] libphy: orion_mdio_bus: probed
[    0.961679] orion-mdio f1072004.mdio: Cannot register MDIO bus (-19)
[    0.968644] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    0.978941] mvneta f1070000.ethernet eth0: Using random mac address 2e:cc:86:ec:08:72
[    0.989512] mvneta f1030000.ethernet eth1: Using random mac address a6:00:c8:41:5f:0b
[    0.997872] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.004448] ehci-pci: EHCI PCI platform driver
[    1.009019] ehci-orion: EHCI orion driver
[    1.013207] orion-ehci f1058000.usb: EHCI Host Controller
[    1.018673] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.026375] orion-ehci f1058000.usb: irq 39, io mem 0xf1058000
[    1.055446] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.061560] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.068405] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.075675] usb usb1: Product: EHCI Host Controller
[    1.080579] usb usb1: Manufacturer: Linux 4.14.1-mvebu-tld-1 ehci_hcd
[    1.087064] usb usb1: SerialNumber: f1058000.usb
[    1.092168] hub 1-0:1.0: USB hub found
[    1.095978] hub 1-0:1.0: 1 port detected
[    1.100786] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.106161] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.113769] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.122384] xhci-hcd f10f0000.usb3: irq 46, io mem 0xf10f0000
[    1.128287] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.135114] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.142414] usb usb2: Product: xHCI Host Controller
[    1.147332] usb usb2: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.153807] usb usb2: SerialNumber: f10f0000.usb3
[    1.158988] hub 2-0:1.0: USB hub found
[    1.162785] hub 2-0:1.0: 1 port detected
[    1.167054] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.172404] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.180013] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.188251] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.195076] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.202347] usb usb3: Product: xHCI Host Controller
[    1.207363] usb usb3: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.213838] usb usb3: SerialNumber: f10f0000.usb3
[    1.218983] hub 3-0:1.0: USB hub found
[    1.222767] hub 3-0:1.0: 1 port detected
[    1.227192] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.232545] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.240169] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.248786] xhci-hcd f10f8000.usb3: irq 47, io mem 0xf10f8000
[    1.254672] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.261511] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.266797] ata1: SATA link down (SStatus 0 SControl 300)
[    1.266831] ata2: SATA link down (SStatus 0 SControl 300)
[    1.279713] usb usb4: Product: xHCI Host Controller
[    1.284617] usb usb4: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.291105] usb usb4: SerialNumber: f10f8000.usb3
[    1.296191] hub 4-0:1.0: USB hub found
[    1.299984] hub 4-0:1.0: 1 port detected
[    1.304158] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.309525] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.317125] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.325347] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.332186] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.339542] usb usb5: Product: xHCI Host Controller
[    1.344446] usb usb5: Manufacturer: Linux 4.14.1-mvebu-tld-1 xhci-hcd
[    1.350934] usb usb5: SerialNumber: f10f8000.usb3
[    1.355989] hub 5-0:1.0: USB hub found
[    1.359780] hub 5-0:1.0: 1 port detected
[    1.364138] usbcore: registered new interface driver usblp
[    1.369766] usbcore: registered new interface driver usb-storage
[    1.375998] mousedev: PS/2 mouse device common for all mice
[    1.382455] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.390635] i2c /dev entries driver
[    1.406137] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    1.419056] orion_wdt: Initial timeout 171 sec
[    1.426491] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.434014] hidraw: raw HID events driver (C) Jiri Kosina
[    1.439810] usbcore: registered new interface driver usbhid
[    1.445448] usbhid: USB HID core driver
[    1.449754] drop_monitor: Initializing network drop monitor service
[    1.456115] Netfilter messages via NETLINK v0.30.
[    1.460855] ip_set: protocol 6
[    1.464184] NET: Registered protocol family 10
[    1.469601] Segment Routing with IPv6
[    1.473333] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    1.480382] NET: Registered protocol family 17
[    1.484891] 8021q: 802.1Q VLAN Support v1.8
[    1.489151] Key type dns_resolver registered
[    1.493567] ThumbEE CPU extension supported.
[    1.497877] Registering SWP/SWPB emulation handler
[    1.503229] registered taskstats version 1
[    1.507367] Loading compiled-in X.509 certificates
[    1.512238] zswap: loaded using pool lzo/zbud
[    1.517696] Key type big_key registered
[    1.521880] Key type encrypted registered
[    1.527857] v5.0-sata0: supplied by pwr_en_sata0
[    1.532537] v12.0-sata0: supplied by pwr_en_sata0
[    1.537312] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    1.545079] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    1.552453] armada38x-rtc f10a3800.rtc: setting system clock to 2018-03-28 19:01:27 UTC (1522263687)
[    1.561895] v5.0-sata1: supplied by pwr_en_sata1
[    1.566606] v12.0-sata1: supplied by pwr_en_sata1
[    1.571376] v5.0-sata0: disabling
[    1.574709] v12.0-sata0: disabling
[    1.578193] v5.0-sata1: disabling
[    1.581525] v12.0-sata1: disabling
[    1.585339] Waiting 10 sec before mounting root device...
[    1.715925] usb 2-1: New USB device found, idVendor=0781, idProduct=5567
[    1.722667] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.729856] usb 2-1: Product: Cruzer Blade
[    1.733976] usb 2-1: Manufacturer: SanDisk
[    1.738105] usb 2-1: SerialNumber: 4C530103371128105004
[    1.743786] usb-storage 2-1:1.0: USB Mass Storage device detected
[    1.750092] scsi host2: usb-storage 2-1:1.0
[    2.816584] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.26 PQ: 0 ANSI: 6
[    2.826026] sd 2:0:0:0: [sda] 31266816 512-byte logical blocks: (16.0 GB/14.9 GiB)
[    2.834604] sd 2:0:0:0: [sda] Write Protect is off
[    2.839730] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.851169]  sda: sda1
[    2.854858] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.016234] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   12.039016] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   12.046765] VFS: Mounted root (ext3 filesystem) readonly on device 8:1.
[   12.057163] devtmpfs: mounted
[   12.061028] Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel S.
ERROR: could not open /proc/stat: No such file or directory
findfs: unable to resolve 'LABEL=rootfs'
[....] Files under mount point '/run' will be hidden. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Synthesizing the initial hotplug events...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Waiting for /dev to be fully populated...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Setting hostname to 'debian'...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Activating swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   14.823872] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22027/977280 files, 239142/3907840 blocks
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[   15.012786] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[[36minfo[39;49m] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable.[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[....] Cleaning /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
 /tmp[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now mount local filesystems:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Will now activate swapfile swap:[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Checking minimum space in /tmp...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Setting kernel variables...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Initializing random number generator...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[   16.653264] mvneta f1070000.ethernet eth0: could not find the PHY
[   16.659512] mvneta f1070000.ethernet eth0: cannot probe MDIO bus
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: No such device
Listening on LPF/eth0/2e:cc:86:ec:08:72
Sending on   LPF/eth0/2e:cc:86:ec:08:72
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
send_packet: Network is down
dhclient.c:2315: Failed to send 300 byte long packet over eth0 interface.
receive_packet failed on eth0: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
send_packet: Network is down
dhclient.c:2315: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
dhclient.c:2315: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
send_packet: Network is down
dhclient.c:2315: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
send_packet: Network is down
dhclient.c:2315: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
send_packet: Network is down
dhclient.c:2315: Failed to send 300 byte long packet over eth0 interface.
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0cdone.
[....] Starting RPC port mapper daemon: rpcbind[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting NFS common utilities: statd idmapd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Cleaning up temporary files...[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
INIT: Entering runlevel: 2
[[36minfo[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2548 (syslogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Not starting NFS kernel daemon: no exports. ...[?25l[?1c7[1G[[33mwarn[39;49m8[?25h[?0c [33m(warning).[39;49m
[   79.415036] random: crng init done
[....] Starting NTP server: ntpd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting periodic command scheduler: cron[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting system message bus: dbus[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting OpenBSD Secure Shell server: sshd[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2547 (klogd)
[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.
[....] Running local boot scripts (/etc/rc.local)[?25l[?1c7[1G[[32m ok [39;49m8[?25h[?0c.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Mar 28 11:13:15 PDT 2018 on ttyS0
Linux debian 4.14.1-mvebu-tld-1 #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian
Thecus N2350
Linux version 4.14.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017
Debian 9.1
Wed Mar 28 12:03:37 PDT 2018 up 2 minutes
root@debian:~# ifconfig
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 2  bytes 140 (140.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 2  bytes 140 (140.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# ifconfig eth0 up
[  135.458954] mvneta f1070000.ethernet eth0: could not find the PHY
[  135.465090] mvneta f1070000.ethernet eth0: cannot probe MDIO bus
SIOCSIFFLAGS: No such device



Edited 1 time(s). Last edit at 03/28/2018 02:12PM by lordzahl.
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 02:18PM
Regarding the network problem.
The boot log shows
[    0.978941] mvneta f1070000.ethernet eth0: Using random mac address 2e:cc:86:ec:08:72
[    0.989512] mvneta f1030000.ethernet eth1: Using random mac address a6:00:c8:41:5f:0b
but the box has only one ethernet port.

Indeed your dts shows:
			ethernet@30000 {
				status = "okay";
				phy = <&phy1>;
				phy-mode = "rgmii-id";
				buffer-manager = <&bm>;
				bm,pool-long = <2>;
				bm,pool-short = <3>;
			};

			usb@58000 {
				status = "ok";
			};

			ethernet@70000 {
				status = "okay";
				phy = <&phy0>;
				phy-mode = "rgmii-id";
				buffer-manager = <&bm>;
				bm,pool-long = <0>;
				bm,pool-short = <1>;
			};

			mdio@72004 {
				phy0: ethernet-phy@0 {
					reg = <0>;
				};

				phy1: ethernet-phy@1 {
					reg = <1>;
				};
			};

Comparing this to the gpl dts:

			ethernet@70000 {
				status = "okay";
				phy = <&phy0>;
				phy-mode = "sgmii";
			};


			mdio {
				phy0: ethernet-phy@0 {
					reg = <1>;
				};
			};
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 03:23PM
Excellent!

Quote

Using (from dts v6, but without the space mentioned a few posts before)

Did you mean V7 tarball I've uploaded above? if not, please try V7 and post serial console log here.
https://forum.doozan.com/read.php?2,50829,55534#msg-55534

So far I'm happy with the kernel running shown in your log:
https://forum.doozan.com/read.php?2,50829,55564#msg-55564

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 03:34PM
> Did you mean V7 tarball I've uploaded above? if
> not, please try V7 and post serial console log
> here.
> https://forum.doozan.com/read.php?2,50829,55534#msg-55534

No, that was v7 already. I just was the only time you did not post bootcmds (which are of course still the same). I just referenced them for other people/future.

> So far I'm happy with the kernel running shown in
> your log:
> https://forum.doozan.com/read.php?2,50829,55564#msg-55564
Yeah me too!

And i have actually evolved and just build my first dtb file :). Of course only possible because of your nice dts files, tar ball with kernel patches, kernel config etc....
But i have fixed the ethernet issue and have network access!
root@debian:~# ping google.com
PING google.com(ham11s01-in-x0e.1e100.net (2a00:1450:4005:800::200e)) 56 data bytes
64 bytes from ham11s01-in-x0e.1e100.net (2a00:1450:4005:800::200e): icmp_seq=1 ttl=58 time=5.44 ms
64 bytes from ham11s01-in-x0e.1e100.net (2a00:1450:4005:800::200e): icmp_seq=2 ttl=58 time=4.55 ms
^C
--- google.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 4.553/5.000/5.447/0.447 ms

edit:
The best thing is: I can connect over ssh and don't have to have the serial cable plugged in anymore (well, still for booting atm..)



Edited 1 time(s). Last edit at 03/28/2018 03:36PM by lordzahl.
Attachments:
open | download - armada-385-thecus-n2350.dts (10.2 KB)
open | download - armada-385-thecus-n2350.dtb (18.1 KB)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 03:36PM
Quote

> Regarding the network problem.
> The boot log shows
>
> [    0.978941] mvneta f1070000.ethernet eth0:
> Using random mac address 2e:cc:86:ec:08:72
> [    0.989512] mvneta f1030000.ethernet eth1:
> Using random mac address a6:00:c8:41:5f:0b
>
> but the box has only one ethernet port.
>
> Indeed your dts shows:
>
> 			ethernet@30000 {
> 				status = "okay";
> 				phy = <&phy1>;
> 				phy-mode = "rgmii-id";
> 				buffer-manager = <&bm>;
> 				bm,pool-long = <2>;
> 				bm,pool-short = <3>;
> 			};
> 
> 			usb@58000 {
> 				status = "ok";
> 			};
> 
> 			ethernet@70000 {
> 				status = "okay";
> 				phy = <&phy0>;
> 				phy-mode = "rgmii-id";
> 				buffer-manager = <&bm>;
> 				bm,pool-long = <0>;
> 				bm,pool-short = <1>;
> 			};
> 
> 			mdio@72004 {
> 				phy0: ethernet-phy@0 {
> 					reg = <0>;
> 				};
> 
> 				phy1: ethernet-phy@1 {
> 					reg = <1>;
> 				};
> 			};
>
>
> Comparing this to the gpl dts:
>
>
> 			ethernet@70000 {
> 				status = "okay";
> 				phy = <&phy0>;
> 				phy-mode = "sgmii";
> 			};
> 
> 
> 			mdio {
> 				phy0: ethernet-phy@0 {
> 					reg = <1>;
> 				};
> 			};
> 


Right. Our current Thecus DTS still has some remnants of the Armada 388. Stock DTS was quite old so it has some misleading info in it.

Let me know what you used was ver7 or ver6 DTS above. I'll work on version 8 DTS after that.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 03:39PM
> No, that was v7 already. I just was the only time
> you did not post bootcmds (which are of course
> still the same). I just referenced them for other
> people/future.
>
> > So far I'm happy with the kernel running shown
> in
> > your log:
> >
> https://forum.doozan.com/read.php?2,50829,55564#msg-55564
> Yeah me too!
>
> And i have actually evolved and just build my
> first dtb file :). Of course only possible because
> of your nice dts files, tar ball with kernel
> patches, kernel config etc....
> But i have fixed the ethernet issue and have
> network access!

Very cool!

>
> root@debian:~# ping google.com
> PING google.com(ham11s01-in-x0e.1e100.net
> (2a00:1450:4005:800::200e)) 56 data bytes
> 64 bytes from ham11s01-in-x0e.1e100.net
> (2a00:1450:4005:800::200e): icmp_seq=1 ttl=58
> time=5.44 ms
> 64 bytes from ham11s01-in-x0e.1e100.net
> (2a00:1450:4005:800::200e): icmp_seq=2 ttl=58
> time=4.55 ms
> ^C
> --- google.com ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss,
> time 1001ms
> rtt min/avg/max/mdev = 4.553/5.000/5.447/0.447 ms
>
>
> edit:
> The best thing is: I can connect over ssh and
> don't have to have the serial cable plugged in
> anymore (well, still for booting atm..)

Excellent!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian Installation on Thecus N2350 (Marvell Armada 385)
March 28, 2018 03:48PM
Let's get our status in one post.

Please boot with version 7 and your ethernet cleanup version. Interrupt serial console and enter the envs, boot into Debian.

uname -a
mount
cat /proc/cpuinfo
ethtool eth0

And post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: