Welcome! Log In Create A New Profile

Advanced

armada 370 (88f6710) mainline uboot support

Posted by wacke 
Re: armada 370 (88f6710) mainline uboot support
November 06, 2018 07:18PM
Hi wacke,

Sorry I was thinking out loud above :)

Yes, it is possible. I meant that I'm thinking I could test it on my NSA326 before postign the patch for you to test.

And the patch will be a little bit hackish, because it must be done at a much earlier time than when the kernel parses the DTB. But it will do the job!

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 06, 2018 07:25PM
bodhi Wrote:
-------------------------------------------------------
> Hi wacke,
>
> Sorry I was thinking out loud above :)
>
> Yes, it is possible. I meant that I'm thinking I
> could test it on my NSA326 before postign the
> patch for you to test.
>
> And the patch will be a little bit hackish,
> because it must be done at a much earlier time
> than when the kernel parses the DTB. But it will
> do the job!

Hi bodhi,
OK. Thanks for your work , waiting for your good news.
Re: armada 370 (88f6710) mainline uboot support
November 07, 2018 01:09PM
Hi wacke,

Any thought about this Armada 370 temp sensor topic?

https://forum.doozan.com/read.php?2,71644,72579#msg-72579

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 07, 2018 05:13PM
bodhi Wrote:
-------------------------------------------------------
> Hi wacke,
>
> Any thought about this Armada 370 temp sensor
> topic?
>
> https://forum.doozan.com/read.php?2,71644,72579#msg-72579

Hi, bodhi
My device is runing openwrt with kernel 4.14.xx, I'll try to build a 4.18+ kernel to see if my device will boot or not.
Or if you have the 4.18+ kernel for Debain, send it to me and I'll try to test it.Thanks.
Re: armada 370 (88f6710) mainline uboot support
November 07, 2018 05:33PM
Hi wacke,


-------------------------------------------------------
> bodhi Wrote:
> -------------------------------------------------------
> > Hi wacke,
> >
> > Any thought about this Armada 370 temp sensor
> > topic?
> >
> >
> https://forum.doozan.com/read.php?2,71644,72579#msg-72579
>
> Hi, bodhi
> My device is runing openwrt with kernel 4.14.xx,
> I'll try to build a 4.18+ kernel to see if my
> device will boot or not.
> Or if you have the 4.18+ kernel for Debain, send
> it to me and I'll try to test it.Tha


I already had kernel 4.18.5-mvebu-ld-1 out in the release thread for a couple months now.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 07, 2018 05:38PM
bodhi Wrote:
-------------------------------------------------------
> I already had kernel 4.18.5-mvebu-ld-1 out in the
> release thread for a couple months now.

OK,I'll test it later.
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 04:55AM
Hi bodhi,
I've update the kernel to 4.18.5-mvebu-ld-1,and my device was stuck at:

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
4465829 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      1970-01-01   0:14:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4465765 Bytes = 4.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Or there was something I misconfigured?
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 05:58AM
wacke,

>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.

> Or there was something I misconfigured?

Yes. Usually this is because your DTB is not embedded inside uImage. Or you meant to boot with separate DTB but your envs are not set up to do that.

If you're not sure, power up, interrupt u-boot and

printenv
boot

and then post the log here.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 06:23AM
Hi,bodhi
I've embedded the DTB to the uImage:
cd /boot
mv uImage uImage.orig
cp -a zImage-4.18.5-mvebu-tld-1  zImage.fdt
cat dts/armada-370-rtnasv3.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.18.5-mvebu-tld-1 -d zImage.fdt  uImage
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.18.5-mvebu-tld-1 -d initrd.img-4.18.5-mvebu-tld-1 uInitrd
any idea?
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 06:36AM
Hi wacke,

Yes. I saw the problem in your log. You need to adjust your u-boot envs to boot with uInitrd and add earlyprintk (to see the problem clearly because the kernel stopped outputing without earlyprintk).

Troubleshooting is quicker if you do the following:

Power up, interrupt u-boot and

printenv
boot
and then post the log here. So I can point out where the envs need adjustment.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 06:46AM
Hi bodhi,
uboot env:
BootROM 1.08
Booting from NAND flash
High speed PHY - Version: 2.1.2 (COM-PHY-V20) 
Update PEX Device ID 0x67100
High speed PHY - Ended Successfully
                                   DDR3 Training Sequence - Ver 4.5.0 
DDR3 Training Sequence - Ended Successfully 
Status = MV_OK
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12 (May 31 2014 - 19:07:19) RTNAS V3 2013_Q2.0

Board: RD-88F6710
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  1 GiB

Map:   Code:            0x3ff0f000:0x3ffa11f4
       BSS:             0x3ffef340
       Stack:           0x3fa0eef8
       Heap:            0x3fa0f000:0x3ff0f000

NAND:  4096 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 1048320, version 0x01
Bad block table found at page 1048064, version 0x01
nand_read_bbt: Bad block at 0x000005a00000
nand_read_bbt: Bad block at 0x000005b00000
PEX 0: Root Complex Interface, Detected Link X1, GEN 1.1
PEX 1: Root Complex Interface, Detected Link X1, GEN 1.1
start OpenWrtLinux..........
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII1 Switch module
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Not Marvell PHY id1 ffff id2 ffff
Net:   egiga1 [PRIME]
Press Ctrl+C to abort autoboot in 3 second
DDNAS: Recovery Button pressed: 0
Please input uboot password:
Please input uboot password:************ 
Marvell>> 
Marvell>> 
Marvell>> pri
CASset=min
MALLOC_len=5
OpenWrtLinux=yes
Synomachid=18
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 ubi.mtd=5 root=ubi0:rootfs ro rootfstype=ubifs
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read.e 0x2000000 0x1800000 0x400000 ; $console $mtdparts ;  bootm $loadaddr
bootcmd4=ide reset;ext2load ide 1:1 0x00800000 /boot/uImage;setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200;bootm 0x800000
bootdefault=bootcmd4
bootdelay=4
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=no
enaFPU=yes
enaWrAllo=no
eth1addr=00:50:43:02:00:00
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:02:02:00
ethmtu=1500
ethprime=egiga1
fileaddr=0
filesize=3D9371
image_name=uImage
initrd_name=uInitrd
ipaddr=192.168.1.200
loadaddr=0x02000000
loads_echo=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:4m(boot),4m(uboot_env),4m(kernel),64m(rootfs),-(rootfs_data)
mvNetConfig=mv_net_config1=2,(00:50:43:11:11:11,0:1:2:3)(00:50:43:11:11:12,4),mtu=1500
mv_pon_addr=00:50:43:00:00:02
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
rootpath=/srv/oneiric
sata_delay_reset=0
sata_dma_mode=yes
serverip=192.168.1.2
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
tftpboot=tftpboot openwrt-mvebu-cortexa9-armada-370-rtnasv3-initramfs-kernel.bin;bootm 0x2000000;
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=1
vxworks_en=no

Environment size: 1881/524284 bytes
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 03:31PM
Go ahead and boot like last time you tried, and post the rest of the log.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 05:00PM
Hi,bodhi
The rest log is stuck at "booting the kernel"
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
4465829 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      1970-01-01   0:07:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4465765 Bytes = 4.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Re: armada 370 (88f6710) mainline uboot support
November 08, 2018 05:10PM
To boot with uInitrd and also set earlyprintk (to see more boot log details).

setenv bootcmd4 'ide reset; ext2load ide 1:1 0x00800000 /boot/uImage; ext2load ide 1:1 0x2100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000 0x2100000

And then boot as usual

run bootcmd4

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 02:23AM
Hi bodhi,
The boot log:
Marvell>> setenv bootcmd4 'ide reset; ext2load ide 1:1 0x00800000 /boot/uImage; ext2load ide 1:1 0x2100000 /boot/uInitrd; setenv bootargs rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial; bootm 0x800000 0x2100000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...
Writing to Nand... done
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
4465829 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
7937269 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.18.5-mvebu-tld-1
   Created:      1970-01-01   0:07:01 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4465765 Bytes = 4.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-4.18.5-mvebu-tld-1
   Created:      1970-01-01   0:07:15 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7937205 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.5-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Thu Aug 30 22:19:21 PDT 2018
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: RTNAS V3
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial
[    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: 1017240K/1048576K available (9216K kernel code, 790K rwdata, 2304K rodata, 1024K init, 327K bss, 31336K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 791 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 328 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007894] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019406] Console: colour dummy device 80x30
[    0.023850] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034199] pid_max: default: 32768 minimum: 301
[    0.038979] Security Framework initialized
[    0.043139] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049747] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057523] CPU: Testing write buffer coherency: ok
[    0.062699] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118921] Setting up static identity map for 0x100000 - 0x100060
[    0.125392] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130660] mvebu-pmsu: Initializing Power Management Service Unit
[    0.136978] Hierarchical SRCU implementation.
[    0.178863] smp: Bringing up secondary CPUs ...
[    0.183384] smp: Brought up 1 node, 1 CPU
[    0.187375] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.193558] CPU: All CPU(s) started in SVC mode.
[    0.198956] devtmpfs: initialized
[    0.209017] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.217166] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.227244] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.233614] prandom: seed boundary self test passed
[    0.240788] prandom: 100 self tests passed
[    0.244867] pinctrl core: initialized pinctrl subsystem
[    0.251746] NET: Registered protocol family 16
[    0.256603] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.264714] audit: initializing netlink subsys (disabled)
[    0.271900] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.299055] cpuidle: using governor ladder
[    0.303212] cpuidle: using governor menu
[    0.307276] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.313263] detected buffer overflow in memcpy
[    0.317780] ------------[ cut here ]------------
[    0.322376] kernel BUG at lib/string.c:1052!
[    0.326626] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[    0.332430] Modules linked in:
[    0.335476] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.18.5-mvebu-tld-1 #1
[    0.342403] Hardware name: Marvell Armada 370/XP (Device Tree)
[    0.348216] PC is at fortify_panic+0x10/0x18
[    0.352466] LR is at fortify_panic+0x10/0x18
[    0.356715] pc : [<c095389c>]    lr : [<c095389c>]    psr: 60000013
[    0.362951] sp : ef085ec8  ip : 0000000a  fp : efffcd80
[    0.368150] r10: c0d6e27c  r9 : c0d5a828  r8 : 00000001
[    0.373351] r7 : f1022124  r6 : c0123744  r5 : f0870000  r4 : 00000014
[    0.379847] r3 : 1443843d  r2 : 1443843d  r1 : 00000001  r0 : 00000022
[    0.386343] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.393444] Control: 10c5387d  Table: 00004019  DAC: 00000051
[    0.399162] Process swapper/0 (pid: 1, stack limit = 0x(ptrval))
[    0.405140] Stack: (0xef085ec8 to 0xef086000)
[    0.409479] 5ec0:                   00000014 c0123470 c0ec5d50 ef7f1c70 c0d09cf8 c0e04d48
[    0.417621] 5ee0: 00000000 c0d09e70 ffffe000 c0ea6380 c0d09cf8 c0103624 00000000 ef085f00
[    0.425762] 5f00: 00000000 c0d00400 c0c3e9cc 00000116 00000003 00000003 00000000 c0c3ff84
[    0.433904] 5f20: 00000115 c0c3ff84 c0ea6380 efffcdb1 efffcdbd 1443843d 00000000 00000003
[    0.442045] 5f40: c0ec5880 1443843d 00000004 c0ec5880 ef084000 c0ea6380 c0e04d48 c0d01174
[    0.450187] 5f60: 00000003 00000003 00000000 c0d004bc 00000116 0000000c c0957f7c 1443843d
[    0.458328] 5f80: 00000000 00000000 c0957f7c 00000000 00000000 00000000 00000000 00000000
[    0.466469] 5fa0: 00000000 c0957f84 00000000 c01010e8 00000000 00000000 00000000 00000000
[    0.474609] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.482750] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    0.490903] [<c095389c>] (fortify_panic) from [<c0123470>] (mvebu_setup_boot_addr_wa+0x70/0xb0)
[    0.499574] [<c0123470>] (mvebu_setup_boot_addr_wa) from [<c0d09e70>] (mvebu_v7_cpu_pm_init+0x178/0x1dc)
[    0.509018] [<c0d09e70>] (mvebu_v7_cpu_pm_init) from [<c0103624>] (do_one_initcall+0xbc/0x264)
[    0.517593] [<c0103624>] (do_one_initcall) from [<c0d01174>] (kernel_init_freeable+0x294/0x3f0)
[    0.526255] [<c0d01174>] (kernel_init_freeable) from [<c0957f84>] (kernel_init+0x8/0x10c)
[    0.534397] [<c0957f84>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14/0x2c)
[    0.541929] Exception stack(0xef085fb0 to 0xef085ff8)
[    0.546957] 5fa0:                                     00000000 00000000 00000000 00000000
[    0.555097] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.563236] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    0.569823] Code: e1a01000 e59f0008 e92d4010 ebe0a4c2 (e7f001f2) 
[    0.575895] ---[ end trace ebe629b9fd95447e ]---
[    0.580607] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.580607] 
[    0.589707] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.589707]  ]---
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 02:59AM
wacke,

This is new to me!

This kernel panic seems to indicate that now the Armada 370 has some problem during that same cpu idle / cpu hotplug initialization.

On Armada 38x (Thecus N2350 and NAS326), these are disabled.

[    0.411678] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.419753] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling

Sorry, no idea how to overcome this. Other than disable it in kernel config so it is not invoked.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 11/09/2018 02:59AM by bodhi.
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 03:24AM
bodhi Wrote:
-------------------------------------------------------
> Sorry, no idea how to overcome this. Other than
> disable it in kernel config so it is not invoked.

Bodhi,
So how to disable the cpu idle in the kernel config?
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 08:08AM
Hi bodhi,
I've update the kernel to your linux-4.19.1-mvebu-tld-1 , and the boot log:

BootROM 1.08
Booting from NAND flash
High speed PHY - Version: 2.1.2 (COM-PHY-V20) 
Update PEX Device ID 0x67100
High speed PHY - Ended Successfully
                                   DDR3 Training Sequence - Ver 4.5.0 
DDR3 Training Sequence - Ended Successfully 
Status = MV_OK
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12 (May 31 2014 - 19:07:19) RTNAS V3 2013_Q2.0

Board: RD-88F6710
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  1 GiB

Map:   Code:            0x3ff0f000:0x3ffa11f4
       BSS:             0x3ffef340
       Stack:           0x3fa0eef8
       Heap:            0x3fa0f000:0x3ff0f000

NAND:  4096 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 1048320, version 0x01
Bad block table found at page 1048064, version 0x01
nand_read_bbt: Bad block at 0x000005a00000
nand_read_bbt: Bad block at 0x000005b00000
PEX 0: Root Complex Interface, Detected Link X1, GEN 1.1
PEX 1: Root Complex Interface, Detected Link X1, GEN 1.1
start OpenWrtLinux..........
FPU initialized to Run Fast Mode.
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII1 Switch module
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Not Marvell PHY id1 ffff id2 ffff
Net:   egiga1 [PRIME]
Press Ctrl+C to abort autoboot in 3 second
DDNAS: Recovery Button pressed: 0
Please input uboot password:
Please input uboot password:
Please input uboot password:************
Marvell>> 
Marvell>> 
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
4516429 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
7969338 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.19.1-mvebu-tld-1
   Created:      1970-01-01   0:11:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4516365 Bytes = 4.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-4.19.1-mvebu-tld-1
   Created:      1970-01-01   0:11:19 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7969274 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: RTNAS V3
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41932 r8192 d23604 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial
[    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: 1017208K/1048576K available (9216K kernel code, 794K rwdata, 2336K rodata, 1024K init, 328K bss, 31368K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 795 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 329 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007895] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019409] Console: colour dummy device 80x30
[    0.023861] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034210] pid_max: default: 32768 minimum: 301
[    0.038998] Security Framework initialized
[    0.043158] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049767] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057537] CPU: Testing write buffer coherency: ok
[    0.062713] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118918] Setting up static identity map for 0x100000 - 0x100060
[    0.125386] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130663] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148860] rcu: Hierarchical SRCU implementation.
[    0.188862] smp: Bringing up secondary CPUs ...
[    0.193383] smp: Brought up 1 node, 1 CPU
[    0.197376] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203560] CPU: All CPU(s) started in SVC mode.
[    0.208993] devtmpfs: initialized
[    0.219024] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227182] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237274] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243648] prandom: seed boundary self test passed
[    0.250943] prandom: 100 self tests passed
[    0.255025] pinctrl core: initialized pinctrl subsystem
[    0.261971] NET: Registered protocol family 16
[    0.266838] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.274967] audit: initializing netlink subsys (disabled)
[    0.282126] cpuidle: using governor ladder
[    0.286255] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.295076] cpuidle: using governor menu
[    0.299328] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.399939] vgaarb: loaded
[    0.402946] SCSI subsystem initialized
[    0.409456] usbcore: registered new interface driver usbfs
[    0.414973] usbcore: registered new interface driver hub
[    0.421554] usbcore: registered new device driver usb
[    0.427508] media: Linux media interface: v0.10
[    0.432778] videodev: Linux video capture interface: v2.00
[    0.438823] pps_core: LinuxPPS API ver. 1 registered
[    0.443998] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.453634] PTP clock support registered
[    0.460094] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.537243] VFS: Disk quotas dquot_6.6.0
[    0.541261] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.571507] NET: Registered protocol family 2
[    0.577088] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.585430] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.592780] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.599256] TCP: Hash tables configured (established 8192 bind 8192)
[    0.605798] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.611782] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.618340] NET: Registered protocol family 1
[    0.653493] RPC: Registered named UNIX socket transport module.
[    0.659390] RPC: Registered udp transport module.
[    0.664162] RPC: Registered tcp transport module.
[    0.668845] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.675491] Unpacking initramfs...
[    1.124314] Freeing initrd memory: 7784K
[    1.128412] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.135312] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.146397] Initialise system trusted keyrings
[    1.152116] Key type blacklist registered
[    1.156300] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.162930] zbud: loaded
[    1.176441] NFS: Registering the id_resolver key type
[    1.181710] Key type id_resolver registered
[    1.185877] Key type id_legacy registered
[    1.189879] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.196652] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.203277] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.210982] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.217576] orangefs_init: module version upstream loaded
[    1.229173] Key type asymmetric registered
[    1.233390] Asymmetric key parser 'x509' registered
[    1.238306] bounce: pool size: 64 pages
[    1.242376] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.249750] io scheduler noop registered
[    1.254047] io scheduler deadline registered
[    1.258334] io scheduler cfq registered (default)
[    1.265439] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver
[    1.278102] mvebu-gpio: probe of f1018180.gpio failed with error -2
[    1.286622] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.293889] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.299357] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.306534] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.314844] PCI: bus0: Fast back to back transfers disabled
[    1.320692] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.328677] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.337239] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.381141] PCI: bus1: Fast back to back transfers enabled
[    1.441126] PCI: bus2: Fast back to back transfers enabled
[    1.446677] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.453559] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf84fffff]
[    1.460430] pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf801ffff 64bit]
[    1.467719] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8020000-0xf802ffff pref]
[    1.474929] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.479877] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.486662] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf83fffff 64bit]
[    1.493961] pci 0000:02:00.0: BAR 0: error updating (0xf8200004 != 0xffffffff)
[    1.501169] pci 0000:02:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff)
[    1.508622] pci 0000:02:00.0: BAR 6: assigned [mem 0xf8400000-0xf840ffff pref]
[    1.515829] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.520792] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf84fffff]
[    1.527662] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.534024] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.541264] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.601209] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.608919] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.671205] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.827088] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.837322] console [ttyS0] disabled
[    1.862376] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.871544] console [ttyS0] enabled
[    1.871544] console [ttyS0] enabled
[    1.878551] bootconsole [earlycon0] disabled
[    1.878551] bootconsole [earlycon0] disabled
[    1.889470] sata_mv f10a0000.sata: slots 32 ports 2
[    1.907857] scsi host0: sata_mv
[    1.922003] scsi host1: sata_mv
[    1.925565] ata1: SATA max UDMA/133 irq 28
[    1.929688] ata2: SATA max UDMA/133 irq 28
[    1.935155] marvell-nfc f10d0000.nand: too many NAND chips: 7 (max = 4 CS)
[    1.942333] marvell-nfc: probe of f10d0000.nand failed with error -22
[    1.949921] libphy: Fixed MDIO Bus: probed
[    1.957384] libphy: orion_mdio_bus: probed
[    1.968811] mvneta f1074000.ethernet eth0: Using random mac address ba:b8:aa:f6:98:31
[    1.979093] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.986162] ehci-pci: EHCI PCI platform driver
[    1.991493] ehci-orion: EHCI orion driver
[    1.995721] orion-ehci f1050000.usb: EHCI Host Controller
[    2.001548] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1
[    2.009298] orion-ehci f1050000.usb: irq 25, io mem 0xf1050000
[    2.040127] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00
[    2.046348] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.054718] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.062021] usb usb1: Product: EHCI Host Controller
[    2.066925] usb usb1: Manufacturer: Linux 4.19.1-mvebu-tld-1 ehci_hcd
[    2.073415] usb usb1: SerialNumber: f1050000.usb
[    2.078855] hub 1-0:1.0: USB hub found
[    2.082937] hub 1-0:1.0: 1 port detected
[    2.087704] orion-ehci f1051000.usb: EHCI Host Controller
[    2.093495] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2
[    2.101440] orion-ehci f1051000.usb: irq 26, io mem 0xf1051000
[    2.130124] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00
[    2.136323] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.144660] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.151936] usb usb2: Product: EHCI Host Controller
[    2.156840] usb usb2: Manufacturer: Linux 4.19.1-mvebu-tld-1 ehci_hcd
[    2.163363] usb usb2: SerialNumber: f1051000.usb
[    2.168811] hub 2-0:1.0: USB hub found
[    2.172890] hub 2-0:1.0: 1 port detected
[    2.178351] usbcore: registered new interface driver usblp
[    2.184712] usbcore: registered new interface driver usb-storage
[    2.191926] mousedev: PS/2 mouse device common for all mice
[    2.273608] ata1: SATA link down (SStatus 0 SControl F300)
[    2.790122] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    2.798745] ata2.00: ATA-7: JMicron, 100415, max UDMA/133
[    2.804203] ata2.00: 7856128 sectors, multi 1: LBA48 
[    2.811705] ata2.00: configured for UDMA/133
[    2.826676] scsi 1:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[    2.836095] sd 1:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[    2.844823] sd 1:0:0:0: [sda] Write Protect is off
[    2.849770] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.861097]  sda: sda1 sda2
[    2.865702] sd 1:0:0:0: [sda] Attached SCSI disk
[    3.220126] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.226261] i2c /dev entries driver
[    3.260582] armada_thermal f1018300.thermal: Temperature sensor reading not valid
[    3.268111] thermal thermal_zone0: failed to read out thermal zone (-5)
[    3.275922] orion_wdt: Initial timeout 229 sec
[    3.284864] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.292680] hidraw: raw HID events driver (C) Jiri Kosina
[    3.299107] usbcore: registered new interface driver usbhid
[    3.305306] usbhid: USB HID core driver
[    3.309734] drop_monitor: Initializing network drop monitor service
[    3.316902] NET: Registered protocol family 10
[    3.332623] Segment Routing with IPv6
[    3.336384] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.344275] NET: Registered protocol family 17
[    3.348810] 8021q: 802.1Q VLAN Support v1.8
[    3.353641] Key type dns_resolver registered
[    3.358085] ThumbEE CPU extension supported.
[    3.362469] Registering SWP/SWPB emulation handler
[    3.368339] registered taskstats version 1
[    3.372887] Loading compiled-in X.509 certificates
[    3.377785] zswap: loaded using pool lzo/zbud
[    3.399919] Key type big_key registered
[    3.412168] Key type encrypted registered
[    3.418564] hctosys: unable to open rtc device (rtc0)
[    3.426425] Freeing unused kernel memory: 1024K
[    3.432799] Checked W+X mappings: passed, no W+X pages found
[    3.438491] Run /init as init process
Loading, please wait...
starting version 232
[    3.540971] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.548728] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.565252] random: udevadm: uninitialized urandom read (16 bytes read)
[    4.122509] mv88e6085 f1072004.mdio-mii:00: switch 0x1710 detected: Marvell 88E6171, revision 2
[    4.385749] libphy: mv88e6xxx SMI: probed
[    4.664261] mv88e6085 f1072004.mdio-mii:00 lan0 (uninitialized): PHY [mv88e6xxx-0:00] driver [Generic PHY]
[    4.710761] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6xxx-0:01] driver [Generic PHY]
[    4.753839] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6xxx-0:02] driver [Generic PHY]
[    4.795960] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6xxx-0:03] driver [Generic PHY]
[    4.838161] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xxx-0:04] driver [Generic PHY]
[    4.880047] DSA: tree 0 setup
Begin: Loading essential drivers ... done.

Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 30184/196608 files, 395583/786432 blocks
done.
[   15.833001] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.856807] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... 
done.
[   15.952771] random: fast init done
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   19.846384] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   20.189623] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   20.307848] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   20.408402] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   20.425722] cfg80211: failed to load regulatory.db
[   20.645995] ath10k_pci 0000:02:00.0: of_irq_parse_pci: failed with rc=134
[   20.657834] ath9k 0000:01:00.0: enabling device (0000 -> 0002)
[   20.730298] ath10k_pci 0000:02:00.0: Refused to change power state, currently in D3
[   20.924598] ath10k_pci 0000:02:00.0: failed to wake up device : -110
[   20.965376] ath10k_pci: probe of 0000:02:00.0 failed with error -110
[   21.208073] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xf1020000, irq=67
[   23.055970] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0
done.
[ ok ] Activating swap:.
[   24.288881] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   28.515563] mvneta f1074000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   28.524183] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   28.530272] mvneta f1074000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   28.538174] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] 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/

Listening on LPF/eth0/ba:b8:aa:f6:98:31
Sending on   LPF/eth0/ba:b8:aa:f6:98:31
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.116 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.116 on eth0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.116 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 21
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
Trying recorded lease 192.168.1.116
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2563 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2566 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:02:08 PST 1969 on ttyS0
Linux debian 4.19.1-mvebu-tld-1 #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018 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
RTNAS V3
Linux version 4.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
Debian 9.1
Wed Dec 31 16:02:05 PST 1969 up 2 minutes
root@debian:~# 
root@debian:~# 
root@debian:~# uname -a
Linux debian 4.19.1-mvebu-tld-1 #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018 armv7l GNU/Linux
root@debian:~#


[    3.260582] armada_thermal f1018300.thermal: Temperature sensor reading not valid

Seems that my device's sensor also not working...
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 10:20AM
There were a bunch of changes in July which seem to have broken things in the name of adding support for newer SoCs

It might have been this one but I'm not entirely sure:
https://github.com/torvalds/linux/commit/f7c2068a1728c1b2aed9416b071a3e2f8f887786#diff-b5e932bc729b070c9b8e17b642aeffae

I found a thread where it was being discussed:
https://patchwork.kernel.org/patch/10486613/

The dtsi for armada-38x was adjusted to account for this:
https://github.com/torvalds/linux/commit/568cc2f07c8ea5f71a0486464bd9703e4671045f#diff-6dccd1fec72d6153447441ecf6ae2ce7

I assume some sort of change needs to be made to the other armada dtsi's but that's a little over my head.
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 03:28PM
@wacke,

[    0.282126] cpuidle: using governor ladder
[    0.286255] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.295076] cpuidle: using governor menu

So looks like Armada 370 CPU Idle is working in the new kernel! you don't need to rebuild then. Or you can use my config for 4.19 as is and rebuild.

@1000001101000,

Regarding armada_thermal f1018300.thermal. Did it work OK in kernel 3.17 or earlier?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 09, 2018 10:17PM
Hi bodhi,
I've tried to modify the armada-370.dtsi:
			thermal: thermal@18300 {
				compatible = "marvell,armada370-thermal";
				reg = <0x18308 0x4
					0x18300 0x8>;
				status = "okay";
			};

And the boot log after modified:
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
4517446 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
7969338 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.19.1-mvebu-tld-1
   Created:      1970-01-01   0:03:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4517382 Bytes = 4.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-4.19.1-mvebu-tld-1
   Created:      1970-01-01   0:03:44 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7969274 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: RTNAS V3
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41932 r8192 d23604 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial
[    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: 1017200K/1048576K available (9216K kernel code, 794K rwdata, 2336K rodata, 1024K init, 328K bss, 31376K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 795 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 329 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007895] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019427] Console: colour dummy device 80x30
[    0.023879] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034227] pid_max: default: 32768 minimum: 301
[    0.039014] Security Framework initialized
[    0.043175] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049784] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057558] CPU: Testing write buffer coherency: ok
[    0.062738] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118919] Setting up static identity map for 0x100000 - 0x100060
[    0.125396] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130679] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148860] rcu: Hierarchical SRCU implementation.
[    0.188861] smp: Bringing up secondary CPUs ...
[    0.193383] smp: Brought up 1 node, 1 CPU
[    0.197376] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203559] CPU: All CPU(s) started in SVC mode.
[    0.208988] devtmpfs: initialized
[    0.219023] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227182] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237265] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243638] prandom: seed boundary self test passed
[    0.250933] prandom: 100 self tests passed
[    0.255015] pinctrl core: initialized pinctrl subsystem
[    0.261955] NET: Registered protocol family 16
[    0.266819] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.274953] audit: initializing netlink subsys (disabled)
[    0.282097] cpuidle: using governor ladder
[    0.286228] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.295062] cpuidle: using governor menu
[    0.299320] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.399937] vgaarb: loaded
[    0.402951] SCSI subsystem initialized
[    0.409463] usbcore: registered new interface driver usbfs
[    0.414971] usbcore: registered new interface driver hub
[    0.421556] usbcore: registered new device driver usb
[    0.427504] media: Linux media interface: v0.10
[    0.432779] videodev: Linux video capture interface: v2.00
[    0.439018] pps_core: LinuxPPS API ver. 1 registered
[    0.443965] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.453650] PTP clock support registered
[    0.460146] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.537125] VFS: Disk quotas dquot_6.6.0
[    0.541143] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.571574] NET: Registered protocol family 2
[    0.577163] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.585516] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.592860] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.599336] TCP: Hash tables configured (established 8192 bind 8192)
[    0.605877] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.611859] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.618416] NET: Registered protocol family 1
[    0.653578] RPC: Registered named UNIX socket transport module.
[    0.659475] RPC: Registered udp transport module.
[    0.664246] RPC: Registered tcp transport module.
[    0.668930] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.675575] Unpacking initramfs...
[    1.123347] Freeing initrd memory: 7784K
[    1.127445] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.134339] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.145422] Initialise system trusted keyrings
[    1.149892] Key type blacklist registered
[    1.155366] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.162023] zbud: loaded
[    1.175538] NFS: Registering the id_resolver key type
[    1.180807] Key type id_resolver registered
[    1.184975] Key type id_legacy registered
[    1.188977] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.195751] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.202377] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.210021] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.216820] orangefs_init: module version upstream loaded
[    1.228300] Key type asymmetric registered
[    1.232554] Asymmetric key parser 'x509' registered
[    1.237470] bounce: pool size: 64 pages
[    1.241538] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.248913] io scheduler noop registered
[    1.253200] io scheduler deadline registered
[    1.257488] io scheduler cfq registered (default)
[    1.264603] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver
[    1.277298] mvebu-gpio: probe of f1018180.gpio failed with error -2
[    1.285819] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.293100] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.298568] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.305747] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.314137] PCI: bus0: Fast back to back transfers disabled
[    1.319699] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.327977] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.336542] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.381257] PCI: bus1: Fast back to back transfers enabled
[    1.441242] PCI: bus2: Fast back to back transfers enabled
[    1.446794] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.453675] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf84fffff]
[    1.460546] pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf801ffff 64bit]
[    1.467834] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8020000-0xf802ffff pref]
[    1.475045] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.479993] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.486778] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf83fffff 64bit]
[    1.494076] pci 0000:02:00.0: BAR 0: error updating (0xf8200004 != 0xffffffff)
[    1.501284] pci 0000:02:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff)
[    1.508737] pci 0000:02:00.0: BAR 6: assigned [mem 0xf8400000-0xf840ffff pref]
[    1.515944] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.520906] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf84fffff]
[    1.527777] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.534153] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.541415] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.601296] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.609003] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.671239] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.831965] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.841980] console [ttyS0] disabled
[    1.866632] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.875825] console [ttyS0] enabled
[    1.875825] console [ttyS0] enabled
[    1.882889] bootconsole [earlycon0] disabled
[    1.882889] bootconsole [earlycon0] disabled
[    1.893824] sata_mv f10a0000.sata: slots 32 ports 2
[    1.912223] scsi host0: sata_mv
[    1.926320] scsi host1: sata_mv
[    1.929885] ata1: SATA max UDMA/133 irq 28
[    1.934301] ata2: SATA max UDMA/133 irq 28
[    1.939487] marvell-nfc f10d0000.nand: too many NAND chips: 7 (max = 4 CS)
[    1.946662] marvell-nfc: probe of f10d0000.nand failed with error -22
[    1.954374] libphy: Fixed MDIO Bus: probed
[    1.961845] libphy: orion_mdio_bus: probed
[    1.973648] mvneta f1074000.ethernet eth0: Using random mac address da:e1:2a:fb:12:8c
[    1.983766] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.991213] ehci-pci: EHCI PCI platform driver
[    1.995891] ehci-orion: EHCI orion driver
[    2.000110] orion-ehci f1050000.usb: EHCI Host Controller
[    2.006050] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1
[    2.013976] orion-ehci f1050000.usb: irq 25, io mem 0xf1050000
[    2.040180] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00
[    2.046401] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.054770] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.062073] usb usb1: Product: EHCI Host Controller
[    2.066978] usb usb1: Manufacturer: Linux 4.19.1-mvebu-tld-1 ehci_hcd
[    2.073470] usb usb1: SerialNumber: f1050000.usb
[    2.078881] hub 1-0:1.0: USB hub found
[    2.082976] hub 1-0:1.0: 1 port detected
[    2.087727] orion-ehci f1051000.usb: EHCI Host Controller
[    2.093529] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2
[    2.101454] orion-ehci f1051000.usb: irq 26, io mem 0xf1051000
[    2.130178] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00
[    2.136388] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.144726] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.152003] usb usb2: Product: EHCI Host Controller
[    2.156906] usb usb2: Manufacturer: Linux 4.19.1-mvebu-tld-1 ehci_hcd
[    2.163430] usb usb2: SerialNumber: f1051000.usb
[    2.168867] hub 2-0:1.0: USB hub found
[    2.172945] hub 2-0:1.0: 1 port detected
[    2.178410] usbcore: registered new interface driver usblp
[    2.184778] usbcore: registered new interface driver usb-storage
[    2.192604] mousedev: PS/2 mouse device common for all mice
[    2.274283] ata1: SATA link down (SStatus 0 SControl F300)
[    2.790175] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    2.798797] ata2.00: ATA-7: JMicron, 100415, max UDMA/133
[    2.804253] ata2.00: 7856128 sectors, multi 1: LBA48 
[    2.811753] ata2.00: configured for UDMA/133
[    2.826729] scsi 1:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[    2.836168] sd 1:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[    2.844888] sd 1:0:0:0: [sda] Write Protect is off
[    2.849834] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.861165]  sda: sda1 sda2
[    2.865764] sd 1:0:0:0: [sda] Attached SCSI disk
[    3.220178] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.226307] i2c /dev entries driver
[    3.361760] orion_wdt: Initial timeout 229 sec
[    3.371789] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.379602] hidraw: raw HID events driver (C) Jiri Kosina
[    3.386068] usbcore: registered new interface driver usbhid
[    3.392302] usbhid: USB HID core driver
[    3.396745] drop_monitor: Initializing network drop monitor service
[    3.403895] NET: Registered protocol family 10
[    3.419482] Segment Routing with IPv6
[    3.423421] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.431296] NET: Registered protocol family 17
[    3.435827] 8021q: 802.1Q VLAN Support v1.8
[    3.440071] Key type dns_resolver registered
[    3.445088] ThumbEE CPU extension supported.
[    3.449393] Registering SWP/SWPB emulation handler
[    3.455308] registered taskstats version 1
[    3.459431] Loading compiled-in X.509 certificates
[    3.464753] zswap: loaded using pool lzo/zbud
[    3.487032] Key type big_key registered
[    3.499069] Key type encrypted registered
[    3.506282] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    3.514035] hctosys: unable to open rtc device (rtc0)
[    3.521838] Freeing unused kernel memory: 1024K
[    3.528058] Checked W+X mappings: passed, no W+X pages found
[    3.533864] Run /init as init process
Loading, please wait...
starting version 232
[    3.637100] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.651014] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.658300] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.255470] mv88e6085 f1072004.mdio-mii:00: switch 0x1710 detected: Marvell 88E6171, revision 2
[    4.509458] libphy: mv88e6xxx SMI: probed
[    4.790450] mv88e6085 f1072004.mdio-mii:00 lan0 (uninitialized): PHY [mv88e6xxx-0:00] driver [Generic PHY]
[    4.835057] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6xxx-0:01] driver [Generic PHY]
[    4.880513] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6xxx-0:02] driver [Generic PHY]
[    4.925489] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6xxx-0:03] driver [Generic PHY]
[    4.970486] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xxx-0:04] driver [Generic PHY]
[    5.010575] DSA: tree 0 setup
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 30184/196608 files, 395631/786432 blocks
done.
[   15.963619] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.987394] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   16.083627] random: fast init done
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   20.172875] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   20.431974] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   20.522807] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   20.530328] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   20.539034] cfg80211: failed to load regulatory.db
[   20.896920] ath10k_pci 0000:02:00.0: of_irq_parse_pci: failed with rc=134
[   20.919860] ath9k 0000:01:00.0: enabling device (0000 -> 0002)
[   20.980383] ath10k_pci 0000:02:00.0: Refused to change power state, currently in D3
[   21.172679] ath10k_pci 0000:02:00.0: failed to wake up device : -110
[   21.210753] ath10k_pci: probe of 0000:02:00.0 failed with error -110
[   21.478032] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xf1020000, irq=69
[   23.395093] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0
done.
[ ok ] Activating swap:.
[   24.549062] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   28.779188] mvneta f1074000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   28.787714] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   28.793908] mvneta f1074000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   28.809502] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] 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/

Listening on LPF/eth0/da:e1:2a:fb:12:8c
Sending on   LPF/eth0/da:e1:2a:fb:12:8c
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.116 on eth0 to 255.255.255.255 port 67



DHCPREQUEST of 192.168.1.116 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
Trying recorded lease 192.168.1.116
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.

--- 192.168.1.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2589 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2592 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:02:36 PST 1969 on ttyS0
Linux debian 4.19.1-mvebu-tld-1 #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018 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
RTNAS V3
Linux version 4.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
Debian 9.1
Wed Dec 31 16:02:05 PST 1969 up 2 minutes

Seems that the thermal error was disappeard, but how to test the thermal is working or not?
Re: armada 370 (88f6710) mainline uboot support
November 10, 2018 09:45AM
@bodhi
Definitely in 4.16, I believe it worked in 4.17/4.18 but I'm not certain. My testing on those was mainly limited to figuring out why the debian versions wouldn't boot at all for me.

For the record this was because they enabled CONFIG_FORTIFY_SOURCE which triggered a panic at boot because of an underlying issue with MVEBU code:
https://salsa.debian.org/kernel-team/linux/commit/ab436fc35bfa2720b24b5bebb3af124822f3d7c2

The underlying issue was fixed in 4.19 which allowed it to start working again:
https://github.com/torvalds/linux/commit/d0d378ff451a66e486488eec842e507d28145813#diff-d07a2b4cbe526e396538e5cda9ddda3e

@wacke
As far as testing goes I usually just install lm-sensors and check the readings when the device is idle and when it's under heavy load.
Re: armada 370 (88f6710) mainline uboot support
November 10, 2018 10:16AM
@1000001101000
After modify the DTS, the hermal sensor still not working properly:
root@debian:~# cat /sys/class/thermal/thermal_zone*/temp                     
228065
The temp was always 228065 which was not correct....
Re: armada 370 (88f6710) mainline uboot support
November 10, 2018 12:45PM
In the change for armada-38x.dtsi the status register stayed the same:
https://github.com/torvalds/linux/commit/568cc2f07c8ea5f71a0486464bd9703e4671045f#diff-6dccd1fec72d6153447441ecf6ae2ce7

I wonder if either of these would work:
reg = <0x18300 0x4
0x18300 0x8>;

reg = <0x18300 0x4
0x18304 0x8>;

They both seem problematic to me for different reasons but this is a bit over my head afterall. Looking at the binding documentation it's not clear to me why the existing dtsi wouldn't still work unless there's a bug in the new code:
https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/thermal/armada-thermal.txt
Re: armada 370 (88f6710) mainline uboot support
November 10, 2018 04:31PM
I've never really paid attention to Armada Thermal, so not sure.

I will have to check my NAS326 and Thecus N2350 to see if they have sensor.

Thecus N2350

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Mon Nov 5 20:42:26 PST 2018
[    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

[    2.229353] armada_thermal f10e4078.thermal: Temperature sensor reading not valid
[    2.232079] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.238882] thermal thermal_zone0: failed to read out thermal zone (-5)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 10, 2018 08:14PM
1000001101000 Wrote:
-------------------------------------------------------
> I wonder if either of these would work:
> reg = <0x18300 0x4
> 0x18300 0x8>;
>
> reg = <0x18300 0x4
> 0x18304 0x8>;

@1000001101000
Actually I've tested both of those, for my device it did not work at all...
Re: armada 370 (88f6710) mainline uboot support
November 10, 2018 09:28PM
Hi bodhi,
Maybe the thermal driver should also modified?
See armada_thermal.c in kernel 4.19:
static const struct armada_thermal_data armada370_data = {
	.init = armada370_init,
	.is_valid_bit = BIT(9),
	.temp_shift = 10,
	.temp_mask = 0x1ff,
	.coef_b = 3153000000ULL,
	.coef_m = 10000000ULL,
	.coef_div = 13825,
	.syscon_status_off = 0x0,
	.syscon_control1_off = 0x4,
};

static const struct armada_thermal_data armada380_data = {
	.init = armada380_init,
	.is_valid_bit = BIT(10),
	.temp_shift = 0,
	.temp_mask = 0x3ff,
	.coef_b = 1172499100ULL,
	.coef_m = 2000096ULL,
	.coef_div = 4201,
	.inverted = true,
	.syscon_control0_off = 0x70,
	.syscon_control1_off = 0x74,
	.syscon_status_off = 0x78,
};
Re: armada 370 (88f6710) mainline uboot support
November 13, 2018 10:10PM
Hi wacke,


Here is the Dropbox dowload link.

armada_coherency_test_kernel.tar


md5sum
e0b0b75ab0ca6e58843fc35362b122b2

sha256sum
25cc3002da51aa4b831d40e57225f6d4768821ceb20728c56e8597e4dcb09d54


There is 1 file in this tarball:

Quote

zImage-4.19.1-mvebu-tld-2

This kernel does not actually try to enable Armada 370 IO Conherency yet. I need to see when Armada 370 disabled the coherency during boot, if it is at the time I expected it to be. The next test kernel will actually impement it.

The NAS326 (Armada 380) is activating cohenrency as far as I can see from the log

root@Nas326:~# dmesg | egrep -i '(smp|coheren)'
[    0.000000] Linux version 4.19.1-mvebu-tld-2 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #1 SMP PREEMPT Tue Nov 13 15:40:02 PST 2018
[    0.000000] IO Coherency - SMP - cachepolicy = CPOLICY_WRITEALLOC initial_pmd_value = PMD_SECT_S
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.081338] CPU: Testing write buffer coherency: ok
[    0.224949] smp: Bringing up secondary CPUs ...
[    0.229463] smp: Brought up 1 node, 1 CPU
[    0.233455] SMP: Total of 1 processors activated (1332.00 BogoMIPS).
[    0.301150] DMA: preallocated 256 KiB pool for atomic coherent allocations


.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 2 time(s). Last edit at 11/14/2018 02:24AM by bodhi.
Re: armada 370 (88f6710) mainline uboot support
November 14, 2018 02:25AM
Ok I've uploaded the zImage. You can just copy it to your rootfs and try it. If you are booting with uImage then append the DTB to this and make uImage.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: armada 370 (88f6710) mainline uboot support
November 14, 2018 05:16AM
bodhi Wrote:
-------------------------------------------------------
> Ok I've uploaded the zImage. You can just copy it
> to your rootfs and try it. If you are booting with
> uImage then append the DTB to this and make
> uImage.

Hi bodhi,
I've updated the test kernel, boot log:
Marvell>> run bootcmd4

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 1 @ 0 1:
Model: JMicron                                  Firm: 100415   Ser#: 00000000002E9       
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3836.0 MB = 3.7 GB (7856128 x 512)

Loading file "/boot/uImage" from ide device 1:1 (hdb1)
4514820 bytes read
Loading file "/boot/uInitrd" from ide device 1:1 (hdb1)
7967985 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.19.1-mvebu-tld-2
   Created:      1970-01-01   0:07:47 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4514756 Bytes = 4.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-4.19.2-mvebu-tld-1
   Created:      1970-01-01   0:08:00 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7967921 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.19.1-mvebu-tld-2 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #2 SMP PREEMPT Tue Nov 13 19:46:00 PST 2018
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: RTNAS V3
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41932 r8192 d23604 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: rootdelay=10 root=/dev/sda1 console=ttyS0,115200 earlyprintk=serial
[    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: 1017200K/1048576K available (9216K kernel code, 794K rwdata, 2336K rodata, 1024K init, 328K bss, 31376K 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 : 0x(ptrval) - 0x(ptrval)   (10208 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 795 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 329 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007894] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019426] Console: colour dummy device 80x30
[    0.023877] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034228] pid_max: default: 32768 minimum: 301
[    0.039012] Security Framework initialized
[    0.043172] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049781] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057557] CPU: Testing write buffer coherency: ok
[    0.062733] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118917] Setting up static identity map for 0x100000 - 0x100060
[    0.125389] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130668] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148858] rcu: Hierarchical SRCU implementation.
[    0.188860] smp: Bringing up secondary CPUs ...
[    0.193380] smp: Brought up 1 node, 1 CPU
[    0.197372] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203556] CPU: All CPU(s) started in SVC mode.
[    0.208981] devtmpfs: initialized
[    0.219020] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227175] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237259] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243631] prandom: seed boundary self test passed
[    0.250924] prandom: 100 self tests passed
[    0.255005] pinctrl core: initialized pinctrl subsystem
[    0.261947] NET: Registered protocol family 16
[    0.266813] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.274937] audit: initializing netlink subsys (disabled)
[    0.282123] cpuidle: using governor ladder
[    0.286252] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.295083] cpuidle: using governor menu
[    0.299340] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.409789] vgaarb: loaded
[    0.412789] SCSI subsystem initialized
[    0.419448] usbcore: registered new interface driver usbfs
[    0.424954] usbcore: registered new interface driver hub
[    0.431538] usbcore: registered new device driver usb
[    0.437466] media: Linux media interface: v0.10
[    0.442736] videodev: Linux video capture interface: v2.00
[    0.448784] pps_core: LinuxPPS API ver. 1 registered
[    0.454233] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.463612] PTP clock support registered
[    0.470238] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.547236] VFS: Disk quotas dquot_6.6.0
[    0.551259] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.581558] NET: Registered protocol family 2
[    0.587195] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.595526] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.602880] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.609356] TCP: Hash tables configured (established 8192 bind 8192)
[    0.615893] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.621877] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.628433] NET: Registered protocol family 1
[    0.663570] RPC: Registered named UNIX socket transport module.
[    0.669467] RPC: Registered udp transport module.
[    0.674236] RPC: Registered tcp transport module.
[    0.678919] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.685574] Unpacking initramfs...
[    1.133337] Freeing initrd memory: 7784K
[    1.137433] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.144350] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.155401] Initialise system trusted keyrings
[    1.159863] Key type blacklist registered
[    1.165331] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.171967] zbud: loaded
[    1.185468] NFS: Registering the id_resolver key type
[    1.190736] Key type id_resolver registered
[    1.194903] Key type id_legacy registered
[    1.198904] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.205675] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.212300] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.219939] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.226753] orangefs_init: module version upstream loaded
[    1.238235] Key type asymmetric registered
[    1.242490] Asymmetric key parser 'x509' registered
[    1.247407] bounce: pool size: 64 pages
[    1.251464] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.258837] io scheduler noop registered
[    1.263119] io scheduler deadline registered
[    1.267407] io scheduler cfq registered (default)
[    1.274531] armada-370-pinctrl f1018000.pin-ctrl: registered pinctrl driver
[    1.287217] mvebu-gpio: probe of f1018180.gpio failed with error -2
[    1.295744] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.303014] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.308481] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.315656] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.324016] PCI: bus0: Fast back to back transfers disabled
[    1.329578] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.337851] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.346421] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 7.876 Gb/s with 8 GT/s x1 link)
[    1.391353] PCI: bus1: Fast back to back transfers enabled
[    1.451310] PCI: bus2: Fast back to back transfers enabled
[    1.456861] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.463743] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf84fffff]
[    1.470614] pci 0000:01:00.0: BAR 0: assigned [mem 0xf8000000-0xf801ffff 64bit]
[    1.477903] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8020000-0xf802ffff pref]
[    1.485113] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.490062] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.496847] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf83fffff 64bit]
[    1.504145] pci 0000:02:00.0: BAR 0: error updating (0xf8200004 != 0xffffffff)
[    1.511353] pci 0000:02:00.0: BAR 0: error updating (high 0x000000 != 0xffffffff)
[    1.518806] pci 0000:02:00.0: BAR 6: assigned [mem 0xf8400000-0xf840ffff pref]
[    1.526013] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.530976] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf84fffff]
[    1.537844] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.544215] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.551471] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.611382] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.619094] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.681355] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.838245] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.848426] console [ttyS0] disabled
[    1.873500] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.882676] console [ttyS0] enabled
[    1.882676] console [ttyS0] enabled
[    1.889683] bootconsole [earlycon0] disabled
[    1.889683] bootconsole [earlycon0] disabled
[    1.900703] sata_mv f10a0000.sata: slots 32 ports 2
[    1.919023] scsi host0: sata_mv
[    1.933171] scsi host1: sata_mv
[    1.936743] ata1: SATA max UDMA/133 irq 28
[    1.941162] ata2: SATA max UDMA/133 irq 28
[    1.947318] libphy: Fixed MDIO Bus: probed
[    1.952322] libphy: orion_mdio_bus: probed
[    1.958537] mvneta f1074000.ethernet eth0: Using random mac address 8e:76:18:03:85:0c
[    1.967065] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.973782] ehci-pci: EHCI PCI platform driver
[    1.978324] ehci-orion: EHCI orion driver
[    1.982591] orion-ehci f1050000.usb: EHCI Host Controller
[    1.991250] orion-ehci f1050000.usb: new USB bus registered, assigned bus number 1
[    1.999009] orion-ehci f1050000.usb: irq 25, io mem 0xf1050000
[    2.030794] orion-ehci f1050000.usb: USB 2.0 started, EHCI 1.00
[    2.037038] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.045509] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.052826] usb usb1: Product: EHCI Host Controller
[    2.057731] usb usb1: Manufacturer: Linux 4.19.1-mvebu-tld-2 ehci_hcd
[    2.064303] usb usb1: SerialNumber: f1050000.usb
[    2.069757] hub 1-0:1.0: USB hub found
[    2.073848] hub 1-0:1.0: 1 port detected
[    2.078628] orion-ehci f1051000.usb: EHCI Host Controller
[    2.084416] orion-ehci f1051000.usb: new USB bus registered, assigned bus number 2
[    2.092273] orion-ehci f1051000.usb: irq 26, io mem 0xf1051000
[    2.120273] orion-ehci f1051000.usb: USB 2.0 started, EHCI 1.00
[    2.126475] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[    2.134812] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.142089] usb usb2: Product: EHCI Host Controller
[    2.146993] usb usb2: Manufacturer: Linux 4.19.1-mvebu-tld-2 ehci_hcd
[    2.153481] usb usb2: SerialNumber: f1051000.usb
[    2.158875] hub 2-0:1.0: USB hub found
[    2.162982] hub 2-0:1.0: 1 port detected
[    2.168468] usbcore: registered new interface driver usblp
[    2.174831] usbcore: registered new interface driver usb-storage
[    2.182637] mousedev: PS/2 mouse device common for all mice
[    2.274458] ata1: SATA link down (SStatus 0 SControl F300)
[    2.790266] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    2.798889] ata2.00: ATA-7: JMicron, 100415, max UDMA/133
[    2.804346] ata2.00: 7856128 sectors, multi 1: LBA48 
[    2.811846] ata2.00: configured for UDMA/133
[    2.826828] scsi 1:0:0:0: Direct-Access     ATA      JMicron          15   PQ: 0 ANSI: 5
[    2.836238] sd 1:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.75 GiB)
[    2.844951] sd 1:0:0:0: [sda] Write Protect is off
[    2.849895] sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    2.861250]  sda: sda1 sda2
[    2.865850] sd 1:0:0:0: [sda] Attached SCSI disk
[    3.220271] rtc-mv f1010300.rtc: internal RTC not ticking
[    3.226390] i2c /dev entries driver
[    3.260726] armada_thermal f1018300.thermal: Temperature sensor reading not valid
[    3.268255] thermal thermal_zone0: failed to read out thermal zone (-5)
[    3.276052] orion_wdt: Initial timeout 229 sec
[    3.285866] marvell-cesa f1090000.crypto: CESA device successfully registered
[    3.293708] hidraw: raw HID events driver (C) Jiri Kosina
[    3.300140] usbcore: registered new interface driver usbhid
[    3.306358] usbhid: USB HID core driver
[    3.310985] drop_monitor: Initializing network drop monitor service
[    3.317679] NET: Registered protocol family 10
[    3.333676] Segment Routing with IPv6
[    3.337436] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.345336] NET: Registered protocol family 17
[    3.349859] 8021q: 802.1Q VLAN Support v1.8
[    3.354757] Key type dns_resolver registered
[    3.359201] ThumbEE CPU extension supported.
[    3.363590] Registering SWP/SWPB emulation handler
[    3.369435] registered taskstats version 1
[    3.373978] Loading compiled-in X.509 certificates
[    3.378878] zswap: loaded using pool lzo/zbud
[    3.401219] Key type big_key registered
[    3.413281] Key type encrypted registered
[    3.420455] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    3.428004] hctosys: unable to open rtc device (rtc0)
[    3.435752] Freeing unused kernel memory: 1024K
[    3.442179] Checked W+X mappings: passed, no W+X pages found
[    3.447873] Run /init as init process
Loading, please wait...
starting version 232
[    3.550718] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.558449] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.575082] random: udevadm: uninitialized urandom read (16 bytes read)
[    4.159085] mv88e6085 f1072004.mdio-mii:00: switch 0x1710 detected: Marvell 88E6171, revision 2
[    4.419920] libphy: mv88e6xxx SMI: probed
[    4.702722] mv88e6085 f1072004.mdio-mii:00 lan0 (uninitialized): PHY [mv88e6xxx-0:00] driver [Generic PHY]
[    4.744253] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6xxx-0:01] driver [Generic PHY]
[    4.787648] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6xxx-0:02] driver [Generic PHY]
[    4.827659] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6xxx-0:03] driver [Generic PHY]
[    4.872694] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xxx-0:04] driver [Generic PHY]
[    4.914519] DSA: tree 0 setup
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 27937/196608 files, 518645/786432 blocks
done.
[   15.884122] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   15.907921] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   16.003512] random: fast init done
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   19.854309] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   20.410201] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   20.512914] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   20.520457] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[   20.529161] cfg80211: failed to load regulatory.db
[   20.989255] ath9k 0000:01:00.0: enabling device (0000 -> 0002)
[   20.997170] ath10k_pci 0000:02:00.0: of_irq_parse_pci: failed with rc=134
[   21.090399] ath10k_pci 0000:02:00.0: Refused to change power state, currently in D3
[   21.432891] ath10k_pci 0000:02:00.0: failed to wake up device : -110
[   21.500755] ath10k_pci: probe of 0000:02:00.0 failed with error -110
[   21.809599] ieee80211 phy1: Atheros AR9300 Rev:3 mem=0xf1020000, irq=68
[   23.681122] ath9k 0000:01:00.0 wlp1s0: renamed from wlan0
done.
[ ok ] Activating swap:.
[   24.932725] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files....
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   29.109989] mvneta f1074000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   29.118568] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   29.124754] mvneta f1074000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   29.140421] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   29.536500] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[   29.632244] br0: port 1(lan0) entered blocking state
[   29.647837] br0: port 1(lan0) entered disabled state
[   29.679798] device lan0 entered promiscuous mode
[   29.686074] device eth0 entered promiscuous mode
[   29.718002] mv88e6085 f1072004.mdio-mii:00 lan0: configuring for phy/gmii link mode
[   29.765458] br0: port 2(lan1) entered blocking state
[   29.778245] br0: port 2(lan1) entered disabled state
[   29.792134] device lan1 entered promiscuous mode
[   29.816971] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii link mode
[   29.876169] br0: port 3(lan2) entered blocking state
[   29.890509] br0: port 3(lan2) entered disabled state
[   29.898174] device lan2 entered promiscuous mode
[   29.929720] mv88e6085 f1072004.mdio-mii:00 lan2: configuring for phy/gmii link mode
[   29.973972] br0: port 4(lan3) entered blocking state
[   29.979068] br0: port 4(lan3) entered disabled state
[   29.986712] device lan3 entered promiscuous mode
[   30.000052] mv88e6085 f1072004.mdio-mii:00 lan3: configuring for phy/gmii link mode
[   30.019831] IPv6: ADDRCONF(NETDEV_UP): br0: link is not ready
[....] Configuring network interfaces...
Waiting for br0 to get ready (MAXWAIT is 32 seconds).
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/

Listening on LPF/br0/8e:76:18:03:85:0c
Sending on   LPF/br0/8e:76:18:03:85:0c
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.217 on br0 to 255.255.255.255 port 67
[   33.952196] mv88e6085 f1072004.mdio-mii:00 lan0: Link is Up - 1Gbps/Full - flow control off
[   33.960783] br0: port 1(lan0) entered blocking state
[   33.965792] br0: port 1(lan0) entered forwarding state
[   33.971737] IPv6: ADDRCONF(NETDEV_CHANGE): br0: link becomes ready
DHCPREQUEST of 192.168.1.217 on br0 to 255.255.255.255 port 67
DHCPREQUEST of 192.168.1.217 on br0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.217 from 192.168.1.1
bound to 192.168.1.217 -- renewal in 16692 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[....] Setting sensors limits...No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
No sensors found!
Make sure you loaded all the kernel drivers you need.
Try sensors-detect to find out which these are.
done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2786 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2789 (klogd)
. ok 
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Thu Jan  1 08:02:10 CST 1970 on ttyS0
Linux debian 4.19.1-mvebu-tld-2 #2 SMP PREEMPT Tue Nov 13 19:46:00 PST 2018 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
192.168.1.217
RTNAS V3
Linux version 4.19.1-mvebu-tld-2 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #2 SMP PREEMPT Tue Nov 13 19:46:00 PST 2018
Debian 9.1
Wed Nov 14 20:20:40 CST 2018 up

root@debian:~# dmesg | egrep -i '(smp|coheren)'
[    0.000000] Linux version 4.19.1-mvebu-tld-2 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9)) #2 SMP PREEMPT Tue Nov 13 19:46:00 PST 2018
[    0.057557] CPU: Testing write buffer coherency: ok
[    0.188860] smp: Bringing up secondary CPUs ...
[    0.193380] smp: Brought up 1 node, 1 CPU
[    0.197372] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.266813] DMA: preallocated 256 KiB pool for atomic coherent allocations
root@debian:~#



Edited 2 time(s). Last edit at 11/14/2018 05:22AM by wacke.
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: