Welcome! Log In Create A New Profile

Advanced

Debian on wrt1200ac

Posted by fsonnlei 
Debian on wrt1200ac
July 31, 2019 01:16PM
Hi all.

Recently I installed Debian mvebu on my wrt1200ac.
Using dts from https://github.com/Chadster766/McDebian/tree/master/linux-4.19.12/arch/arm/boot/dts and kernel / rootfs 5.1.7 from bodhi (thanks!), I successfully booted and ran the OS. Almost everything works: ethernet switch, wifi (mwlwifi compiled as module), cpu speed, etc.

However the kernel reports less memory than other OSs:
              total        used        free      shared  buff/cache   available
Mem:         376032       62060      107272        1448      206700      258396
Swap:             0           0           0

The router has 512mb ram. OpenWRT and mcdebian (https://github.com/Chadster766/McDebian) reports full ram capacity.

Any ideas?

Regards
fsonnlei
Re: Debian on wrt1200ac
July 31, 2019 04:19PM
Hi,

Starting point is a full serial log, from uboot init through loading of the kernel + with a openwrt boot as well. It's possible WRT is doing platform specific tricks, but hard to know without the log.
Re: Debian on wrt1200ac
July 31, 2019 04:37PM
Thanks. Attached files:
- fw_printenv from Debian Bodhi
- dmesg from Debian Bodhi
- dmesg from OpenWRT

Best,
fsonnlei
Attachments:
open | download - printenv.txt (4 KB)
open | download - dmesg_bodhi.txt (42.4 KB)
open | download - dmesg_openwrt.txt (34.4 KB)
Re: Debian on wrt1200ac
July 31, 2019 04:45PM
uboot.txt
Attachments:
open | download - uboot.txt (5.5 KB)
Re: Debian on wrt1200ac
August 01, 2019 12:20AM
fsonnlei,

> Recently I installed Debian mvebu on my
> wrt1200ac.
> Using dts from
> https://github.com/Chadster766/McDebian/tree/master/linux-4.19.12/arch/arm/boot/dts
> and kernel / rootfs 5.1.7 from bodhi (thanks!),

Please describe how did you use the DTS from Chadster766 Github. Did you append the DTB to uImage? or did you use bootz? and where is that DTB come from?

And the log files you've posted made it difficult for me to figure out! you should do this instead:

- With serial console connected, power up, interrupt u-boot at countdown.
- Enter the envs you need to do to boot Debian.

- Print the envs
printenv

- And boot
boot

Let it boot all the way to Debian prompt.

And then capture the entire serial console log and post here (in code tag), don't attach log files.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on wrt1200ac
August 01, 2019 12:47AM
I'm no expert, but I think the dts is doing something odd, in the dmesg it has;

OF: fdt: Ignoring memory range 0x0 - 0x8000000

When booting Bodhi's kernel, but not the OpenWRT kernel. Bodhi's then has less memory pages set up, perhaps due to this range being ignored.

Which of those DTS' did you use?
Re: Debian on wrt1200ac
August 01, 2019 12:55AM
Quote

OF: fdt: Ignoring memory range 0x0 - 0x8000000

That's what my questions above are driving at. In the chain of DTS includes, somewhere there is a problem. I need to know how the DTB was created to find the wrong memory definition.

But first, the serial log should show the whole picture.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on wrt1200ac
August 03, 2019 01:48PM
Hi all.

Your questions pointed me in the right, I think, direction.


I started from scratch, just using Bodhi's linux-5.1.7-mvebu and stock kernel 5.1.7 (kernel.org).

uboot:

U-Boot 2013.01 (Mar 27 2015 - 16:55:31) Marvell version: 2014_T3.0p6

Boot version : v2.0.13

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:                    0x1fea9000:0x1ff7632c
       BSS:                     0x1ffef6b4
       Stack:                   0x1f9a8f20
       Heap:                    0x1f9a9000:0x1fea9000
raise: Signal # 8 caught
U-ENV offset == 0x200000
raise: Signal # 8 caught
U-ENV offset == 0x200000
       U-Boot Environment:      0x00200000:0x00220000 (NAND)

NAND:  128 MiB
MMC:   mv_sdh: 0
DEVINFO offset == 0x900000
U-ENV offset == 0x200000
U-ENV offset == 0x200000
S-ENV offset == 0x240000


#### auto_recovery ####
[u_env] get auto_recovery == yes
[u_env] get auto_recovery == yes
[u_env] get boot_part == 1
[u_env] get boot_part_ready == 3
auto_recovery enabled:1, boot_part:1, boot_part_ready:3

S-ENV offset == 0x240000
[boot_count_read] block:0x240000, size:128KB, records:64
[boot_count_read_record] boot_count:3, next_record:33

[auto_recovery_init] BOOT_COUNT_TO_RECOVERY
[boot_count_write] erase:0, auto_recovery->block_offset:0x240000 offset=0x250800

Updating boot_count ...
[boot_count_write] offset:0x250800 , length:2048
done

PCI-e 0 (IF 0 - bus 0) Root Complex Interface, Detected Link X1, GEN 2.0
PCI-e 1 (IF 1 - bus 1) Root Complex Interface, Detected Link X1, GEN 1.1
USB2.0 0: Host Mode
USB3.0 1: Host Mode
USB3.0 0: Host Mode
Board configuration detected:
mvEthE6171SwitchBasicInit init
Net:
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
| egiga1 |   SGMII   |     0x00     |
egiga0 [PRIME], egiga1
Saving Environment to NAND...
U-ENV offset == 0x200000
Erasing Nand...
Writing to Nand... U-ENV offset == 0x200000
U-ENV offset == 0x200000
done
#### auto_recovery:2 ####
auto_recovery_check changes bootcmd: run altnandboot
Hit any key to stop autoboot:  0
Marvell>>


Booting Bodhi's linux-5.1.7-mvebu (including wrt1200ac DTB):

Marvell>> setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1
Marvell>> dhcp
Marvell>> tftpboot 0x02000000 wrt/test/zImage
Marvell>> tftpboot 0x2900000 wrt/test/uInitrd
Marvell>> tftpboot 0x1000000 wrt/test/armada-385-linksys-caiman.dtb
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 0x2900000 0x1000000

# uname -a
Linux roshi 5.1.7-mvebu-tld-1 #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019 armv7l GNU/Linux


# dmesg |grep fdt
[Sat Aug  3 14:19:54 2019] OF: fdt: Machine model: Linksys WRT1200AC

# free
              total        used        free      shared  buff/cache   available
Mem:           506M         44M        392M        237K         68M        412M


# dmesg |grep -i rtc
[Sat Aug  3 14:19:56 2019] armada38x-rtc f10a3800.rtc: registered as rtc0
[Sat Aug  3 14:19:56 2019] armada38x-rtc f10a3800.rtc: setting system clock to 2019-08-03T18:18:57 UTC (1564856337)


# cat /proc/mtd
dev:    size   erasesize  name


# cat /proc/cmdline
console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1



Using stock kernel (with Bodhi's .config and patches, but stock DTB)

Marvell>> setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1
Marvell>> dhcp
Marvell>> tftpboot 0x02000000 wrt/test/zImage
Marvell>> tftpboot 0x2900000 wrt/test/uInitrd
Marvell>> tftpboot 0x1000000 wrt/test/armada-385-linksys-caiman-kernel.dtb
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 0x2900000 0x1000000


# uname -a
Linux roshi 5.1.7-mvebu-tld-1 #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019 armv7l GNU/Linux


# dmesg |grep fdt
[Sat Aug  3 14:25:28 2019] OF: fdt: Machine model: Linksys WRT1200AC


# free
              total        used        free      shared  buff/cache   available
Mem:           506M         44M        392M        237K         68M        412M


# dmesg |grep -i rtc
[Sat Aug  3 14:25:30 2019] hctosys: unable to open rtc device (rtc0)

# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00020000 "u-boot"
mtd1: 00040000 00020000 "u_env"
mtd2: 00040000 00020000 "s_env"
mtd3: 00100000 00020000 "devinfo"
mtd4: 02800000 00020000 "kernel1"
mtd5: 02200000 00020000 "rootfs1"
mtd6: 02800000 00020000 "kernel2"
mtd7: 02200000 00020000 "rootfs2"
mtd8: 02600000 00020000 "syscfg"
mtd9: 00680000 00020000 "unused_area"



# cat /proc/cmdline
console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1

So, full ram amount is detected, but as you can see I've access to RTC and /proc/mtd in different terms if I use Bodhi's or Stock kernel DTB definition.
To get the stock DTB, I downloaded kernel from www.kernel.org and did copy the .config file, make oldconfig, make prepare, make dtbs

I review Kernel stock DTB and i saw a strange line regarding rtc:
status = "disabled";

That line wasn't present in Bodhi's DTB (decompiled using DTC).
So i took stock kernel and delete the "disabled" line, compiled it with "make dtbs" and... voila!
Apparently everything is working: full memory, rtc detected, /proc/mtd looks ok, etc.

Thanks
fsonnlei
Re: Debian on wrt1200ac
August 03, 2019 06:39PM
Congrats!
Re: Debian on wrt1200ac
August 04, 2019 12:00AM
fsonnlei,

Quote

Apparently everything is working: full memory, rtc detected, /proc/mtd looks ok, etc.

Cool!

Quote

Booting Bodhi's linux-5.1.7-mvebu (including wrt1200ac DTB):

Marvell>> setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1
Marvell>> dhcp
Marvell>> tftpboot 0x02000000 wrt/test/zImage
Marvell>> tftpboot 0x2900000 wrt/test/uInitrd
Marvell>> tftpboot 0x1000000 wrt/test/armada-385-linksys-caiman.dtb
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 0x2900000 0x1000000

# uname -a
Linux roshi 5.1.7-mvebu-tld-1 #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019 armv7l GNU/Linux


# dmesg |grep fdt
[Sat Aug 3 14:19:54 2019] OF: fdt: Machine model: Linksys WRT1200AC

# free
total used free shared buff/cache available
Mem: 506M 44M 392M 237K 68M 412M


# dmesg |grep -i rtc
[Sat Aug 3 14:19:56 2019] armada38x-rtc f10a3800.rtc: registered as rtc0
[Sat Aug 3 14:19:56 2019] armada38x-rtc f10a3800.rtc: setting system clock to 2019-08-03T18:18:57 UTC (1564856337)


# cat /proc/mtd
dev: size erasesize name


# cat /proc/cmdline
console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1


So the bottom line is you can run my released kernel and see 512MB RAM?

It seems mtd definition needs some adjustment. Other than this issue, is there any other problem running linux-5.1.7-mvebu-tld-1?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on wrt1200ac
August 04, 2019 04:49PM
Yes, your kernel is working ok, thank you.
So far the mtd definition and access to leds (/sys/class/leds) needs some adjustments.

Best
fsonnlei
Re: Debian on wrt1200ac
August 22, 2019 06:24AM
fsonnlei,


Let's try if we can see the MTD definition.

Quote

Booting Bodhi's linux-5.1.7-mvebu (including wrt1200ac DTB):

Marvell>> setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1
Marvell>> dhcp
Marvell>> tftpboot 0x02000000 wrt/test/zImage
Marvell>> tftpboot 0x2900000 wrt/test/uInitrd
Marvell>> tftpboot 0x1000000 wrt/test/armada-385-linksys-caiman.dtb
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 0x2900000 0x1000000

Try this additional env

setenv mtdparts 'mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg)'

And after you've booted into Debian, get the list of LEDS in /sys/class:

ls -l /sys/class/leds

Please post the entire serial console log here (in code tags).

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



Edited 2 time(s). Last edit at 08/22/2019 06:28AM by bodhi.
Re: Debian on wrt1200ac
August 24, 2019 03:15PM
Hi Bodhi.

Thanks for look at this. Here you go:

Marvell>> setenv mtdparts 'mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg)'
Marvell>> run debian
BOOTP broadcast 1
DHCP client bound to address 192.168.1.112
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/zImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################################
         5.2 MiB/s
done
Bytes transferred = 4661552 (472130 hex)
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/uInitrd'.
Load address: 0x2900000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################
         6.3 MiB/s
done
Bytes transferred = 7991206 (79efa6 hex)
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/my.dtb'.
Load address: 0x1000000
Loading: ##
         4.4 MiB/s
done
Bytes transferred = 18516 (4854 hex)
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-5.1.7-mvebu-tld-1
   Created:      2019-07-31   4:34:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7991142 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 1f208000, end 1f9a6f66 ... OK
   Loading Device Tree to 00ff8000, end 00fff853 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.1.7-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Linksys WRT1200AC
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x78/0x4dc with crng_init=0
[    0.000000][    T0] percpu: Embedded 18 pages/cpu s41932 r8192 d23604 u73728
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 497256K/524288K available (9216K kernel code, 826K rwdata, 2388K rodata, 1024K init, 332K bss, 27032K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000007][    T0] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008678][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020378][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027201][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034916][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046987][    T0] Console: colour dummy device 80x30
[    0.052126][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.063393][    T0] pid_max: default: 32768 minimum: 301
[    0.068798][    T0] LSM: Security Framework initializing
[    0.074141][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081429][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089539][    T0] *** VALIDATE proc ***
[    0.093634][    T0] *** VALIDATE cgroup1 ***
[    0.097898][    T0] *** VALIDATE cgroup2 ***
[    0.102185][    T0] CPU: Testing write buffer coherency: ok
[    0.107751][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113604][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177052][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183995][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189941][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207027][    T1] rcu: Hierarchical SRCU implementation.
[    0.247026][    T1] smp: Bringing up secondary CPUs ...
[    0.307099][    T1] Booting CPU 1
[    0.310572][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310576][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322709][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327506][    T1] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.334526][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340429][    T1] devtmpfs: initialized
[    0.346932][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.355564][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.366064][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.372956][    T1] prandom: seed boundary self test passed
[    0.380082][    T1] prandom: 100 self tests passed
[    0.384854][    T1] pinctrl core: initialized pinctrl subsystem
[    0.391619][    T1] NET: Registered protocol family 16
[    0.397453][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.405429][    T1] audit: initializing netlink subsys (disabled)
[    0.412262][   T33] audit: type=2000 audit(0.380:1): state=initialized audit_enabled=0 res=1
[    0.420728][    T1] cpuidle: using governor ladder
[    0.425514][    T1] cpuidle: using governor menu
[    0.430343][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.439022][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.445674][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.454438][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.479318][    T1] vgaarb: loaded
[    0.483002][    T1] SCSI subsystem initialized
[    0.487993][    T1] usbcore: registered new interface driver usbfs
[    0.494219][    T1] usbcore: registered new interface driver hub
[    0.500295][    T1] usbcore: registered new device driver usb
[    0.506484][    T1] media: Linux media interface: v0.10
[    0.511763][    T1] videodev: Linux video capture interface: v2.00
[    0.518756][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.524394][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.534262][    T1] PTP clock support registered
[    0.539916][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.033178][    T1] VFS: Disk quotas dquot_6.6.0
[    1.037831][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.053524][    T1] NET: Registered protocol family 2
[    1.058976][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    1.067329][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.075075][    T1] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.082223][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.089291][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.095814][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.102886][    T1] NET: Registered protocol family 1
[    1.108234][    T1] RPC: Registered named UNIX socket transport module.
[    1.114838][    T1] RPC: Registered udp transport module.
[    1.120224][    T1] RPC: Registered tcp transport module.
[    1.125600][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.132828][    T1] Unpacking initramfs...
[    1.443619][    T1] Freeing initrd memory: 7804K
[    1.448401][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.455874][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.466375][    T1] Initialise system trusted keyrings
[    1.471565][    T1] Key type blacklist registered
[    1.476333][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.483531][    T1] zbud: loaded
[    1.487325][    T1] NFS: Registering the id_resolver key type
[    1.493074][    T1] Key type id_resolver registered
[    1.497931][    T1] Key type id_legacy registered
[    1.502632][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.510006][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.517163][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.525245][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.532460][    T1] orangefs_init: module version upstream loaded
[    1.597609][    T1] Key type asymmetric registered
[    1.602405][    T1] Asymmetric key parser 'x509' registered
[    1.608035][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.617875][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.627862][    T1] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.634509][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.640676][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.648216][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.656701][    T1] PCI: bus0: Fast back to back transfers disabled
[    1.662972][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.671661][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.680790][    T1] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.721015][    T1] PCI: bus1: Fast back to back transfers disabled
[    1.727617][    T1] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.742258][    T1] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.781009][    T1] PCI: bus2: Fast back to back transfers disabled
[    1.787294][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe01fffff]
[    1.794851][    T1] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0200000-0xe03fffff]
[    1.802402][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    1.810296][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0500000-0xe05007ff pref]
[    1.818186][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit pref]
[    1.826605][    T1] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0100000-0xe01fffff 64bit pref]
[    1.835022][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.840668][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe01fffff]
[    1.848127][    T1] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    1.856544][    T1] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0300000-0xe03fffff 64bit pref]
[    1.864961][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.870605][    T1] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe03fffff]
[    1.878111][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.884941][    T1] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.892240][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.950405][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.958699][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.020384][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.076847][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.085402][    T1] printk: console [ttyS0] disabled
[    2.110491][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    2.120156][    T1] printk: console [ttyS0] enabled
[    2.120156][    T1] printk: console [ttyS0] enabled
[    2.129972][    T1] printk: bootconsole [earlycon0] disabled
[    2.129972][    T1] printk: bootconsole [earlycon0] disabled
[    2.142648][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.152468][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.162759][    T1] scsi host0: ahci-mvebu
[    2.167235][    T1] scsi host1: ahci-mvebu
[    2.171613][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    2.180285][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    2.189860][    T1] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    2.196966][    T1] nand: AMD/Spansion S34ML01G2
[    2.201618][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.210291][    T1] Bad block table found at page 65472, version 0x01
[    2.217418][    T1] Bad block table found at page 65408, version 0x01
[    2.224270][    T1] 10 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.231626][    T1] Creating 10 MTD partitions on "pxa3xx_nand-0":
[    2.237840][    T1] 0x000000000000-0x000000200000 : "uboot"
[    2.244206][    T1] 0x000000200000-0x000000240000 : "u_env"
[    2.250515][    T1] 0x000000240000-0x000000280000 : "s_env"
[    2.256789][    T1] 0x000000900000-0x000000a00000 : "devinfo"
[    2.263269][    T1] 0x000000a00000-0x000003200000 : "kernel"
[    2.269678][    T1] 0x000001000000-0x000003200000 : "rootfs"
[    2.276130][    T1] 0x000003200000-0x000005a00000 : "alt_kernel"
[    2.282933][    T1] 0x000003800000-0x000005a00000 : "alt_rootfs"
[    2.289702][    T1] 0x000000a00000-0x000005a00000 : "ubifs"
[    2.296169][    T1] 0x000005a00000-0x000008000000 : "syscfg"
[    2.303543][    T1] libphy: Fixed MDIO Bus: probed
[    2.308807][    T1] libphy: orion_mdio_bus: probed
[    2.314082][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    2.323992][    T1] mvneta f1070000.ethernet eth0: Using hardware mac address c0:56:27:6d:20:a7
[    2.334407][    T1] mvneta f1034000.ethernet eth1: Using random mac address 46:95:a0:52:73:5d
[    2.343249][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.350539][    T1] ehci-pci: EHCI PCI platform driver
[    2.355744][    T1] ehci-orion: EHCI orion driver
[    2.360615][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    2.366754][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.375139][    T1] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    2.419926][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.426712][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.01
[    2.435737][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.443706][    T1] usb usb1: Product: EHCI Host Controller
[    2.449309][    T1] usb usb1: Manufacturer: Linux 5.1.7-mvebu-tld-1 ehci_hcd
[    2.456401][    T1] usb usb1: SerialNumber: f1058000.usb
[    2.462074][    T1] hub 1-0:1.0: USB hub found
[    2.466564][    T1] hub 1-0:1.0: 1 port detected
[    2.471957][    T1] usbcore: registered new interface driver usblp
[    2.478214][    T1] usbcore: registered new interface driver usb-storage
[    2.485179][    T1] mousedev: PS/2 mouse device common for all mice
[    2.492182][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    2.498581][    T1] i2c /dev entries driver
[    2.505368][    T1] orion_wdt: Initial timeout 171 sec
[    2.521429][ T1185] ata1: SATA link down (SStatus 0 SControl 300)
[    2.539002][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.547150][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    2.553633][    T1] usbcore: registered new interface driver usbhid
[    2.559958][    T1] usbhid: USB HID core driver
[    2.564855][    T1] drop_monitor: Initializing network drop monitor service
[    2.572080][    T1] IPv6: Loaded, but administratively disabled, reboot required to enable
[    2.581222][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.588275][    T1] NET: Registered protocol family 17
[    2.593570][    T1] 8021q: 802.1Q VLAN Support v1.8
[    2.598504][    T1] Key type dns_resolver registered
[    2.603694][    T1] ThumbEE CPU extension supported.
[    2.608688][    T1] Registering SWP/SWPB emulation handler
[    2.614707][    T1] registered taskstats version 1
[    2.619525][    T1] Loading compiled-in X.509 certificates
[    2.625101][    T1] zswap: loaded using pool lzo/zbud
[    2.641189][    T1] Key type big_key registered
[    2.650911][    T1] Key type encrypted registered
[    2.657406][    T5] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.663489][    T5] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    2.671824][    T5] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.681839][    T5] xhci-hcd f10f8000.usb3: irq 44, io mem 0xf10f8000
[    2.688520][    T5] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.01
[    2.689935][ T1189] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    2.697542][    T5] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.712435][    T5] usb usb2: Product: xHCI Host Controller
[    2.718044][    T5] usb usb2: Manufacturer: Linux 5.1.7-mvebu-tld-1 xhci-hcd
[    2.725142][    T5] usb usb2: SerialNumber: f10f8000.usb3
[    2.730778][ T1189] ata2.15: Port Multiplier 1.1, 0x197b:0x2352 r0, 2 ports, feat 0x0/0x0
[    2.730929][    T5] hub 2-0:1.0: USB hub found
[    2.739078][ T1189] ata2.15: Asynchronous notification not supported, hotplug won't work on fan-out ports. Use warm-plug instead.
[    2.743584][    T5] hub 2-0:1.0: 1 port detected
[    2.758132][ T1189] ahci-mvebu f10a8000.sata: FBS is enabled
[    2.760267][    T5] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.771621][    T5] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    2.779869][    T5] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    2.787072][ T1189] ata2.00: hard resetting link
[    2.787113][    T5] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.800684][    T5] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.01
[    2.809697][    T5] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.817674][    T5] usb usb3: Product: xHCI Host Controller
[    2.823293][    T5] usb usb3: Manufacturer: Linux 5.1.7-mvebu-tld-1 xhci-hcd
[    2.830392][    T5] usb usb3: SerialNumber: f10f8000.usb3
[    2.836139][    T5] hub 3-0:1.0: USB hub found
[    2.840648][    T5] hub 3-0:1.0: 1 port detected
[    2.846103][    T1] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.853814][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2019-08-24T20:09:01 UTC (1566677341)
[    3.162356][ T1189] ata2.00: SATA link down (SStatus 113 SControl 113)
[    3.168964][ T1189] ata2.01: hard resetting link
[    3.502337][ T1189] ata2.01: SATA link down (SStatus 123 SControl 123)
[    3.509653][ T1189] ata2.00: ATA-8: TOSHIBA DT01ACA100, MS2OA750, max UDMA/133
[    3.516930][ T1189] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32)
[    3.525003][ T1189] ata2.00: configured for UDMA/133
[    3.530761][ T1189] ata2.01: ATA-8: Hitachi HDT721010SLA360, ST6OA31B, max UDMA/133
[    3.538460][ T1189] ata2.01: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32)
[    3.546666][ T1189] ata2.01: configured for UDMA/133
[    3.551716][ T1189] ata2: EH complete
[    3.555668][    T7] scsi 1:0:0:0: Direct-Access     ATA      TOSHIBA DT01ACA1 A750 PQ: 0 ANSI: 5
[    3.565198][  T237] sd 1:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    3.565211][    T7] scsi 1:1:0:0: Direct-Access     ATA      Hitachi HDT72101 A31B PQ: 0 ANSI: 5
[    3.573685][  T237] sd 1:0:0:0: [sda] 4096-byte physical blocks
[    3.588714][   T35] sd 1:1:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    3.597182][   T35] sd 1:1:0:0: [sdb] Write Protect is off
[    3.599983][  T237] sd 1:0:0:0: [sda] Write Protect is off
[    3.608264][  T237] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.608279][   T35] sd 1:1:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.661361][   T35]  sdb: sdb1 sdb2 sdb3
[    3.663737][  T237]  sda: sda1 sda2 sda3
[    3.666319][   T35] sd 1:1:0:0: [sdb] Attached SCSI removable disk
[    3.676353][  T237] sd 1:0:0:0: [sda] Attached SCSI removable disk
[    3.684187][    T1] Freeing unused kernel memory: 1024K
[    3.720319][    T1] Checked W+X mappings: passed, no W+X pages found
[    3.726709][    T1] Run /init as init process
Loading, please wait...
starting version 232
[    3.776867][ T1543] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.780747][ T1544] random: udevadm: uninitialized urandom read (16 bytes read)
[    3.785087][ T1543] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    4.058889][ T1546] mv88e6085 f1072004.mdio-mii:00: switch 0x1760 detected: Marvell 88E6176, revision 1
[    4.249782][ T1546] libphy: mv88e6xxx SMI: probed
[    4.510074][ T1546] mv88e6085 f1072004.mdio-mii:00 lan4 (uninitialized): PHY [mv88e6xxx-0:00] driver [Marvell 88E1540]
[    4.523756][ T1546] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6xxx-0:01] driver [Marvell 88E1540]
[    4.537261][ T1546] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6xxx-0:02] driver [Marvell 88E1540]
[    4.550748][ T1546] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6xxx-0:03] driver [Marvell 88E1540]
[    4.564233][ T1546] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xxx-0:04] driver [Marvell 88E1540]
[    4.579842][ T1546] 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
[   14.695114][    C0] random: fast init done
[/sbin/fsck.ext4 (1) -- /dev/sdb1] fsck.ext4 -a -C0 /dev/sdb1
WRT: clean, 48903/393216 files, 674154/1572864 blocks
done.
[   14.770806][ T1596] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'trunks'...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...[   16.442189][ T1806] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   16.498333][ T1806] sd 1:1:0:0: Attached scsi generic sg1 type 0
[   16.589103][ T1829] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   16.622708][ T1829] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   16.824530][ T1804] mwlwifi: no symbol version for module_layout
[   16.832723][ T1829] mwlwifi: loading out-of-tree module taints kernel.
[   16.844466][ T1829] <<Marvell Mac80211 Wireless PCIE Network Driver version 10.3.8.0-20181210>>
[   17.104698][ T1959] md0: detected capacity change from 0 to 1986179104768
[   17.920379][ T1829] ieee80211 phy0: device node: pcie@1,0
[   17.944640][ T1829] ieee80211 phy0: firmware version: 0x702091a
[   17.968682][ T1829] ieee80211 phy0: firmware region code: 0
[   18.036138][ T1829] ieee80211 phy0: 2G enabled, 5G enabled
[   18.041701][ T1829] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[   19.029949][ T1829] ieee80211 phy1: device node: pcie@2,0
[   19.054251][ T1829] ieee80211 phy1: firmware version: 0x702091a
[   19.078351][ T1829] ieee80211 phy1: firmware region code: 0
[   19.117362][ T1829] ieee80211 phy1: 2G enabled, 5G enabled
[   19.122919][ T1829] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   19.160799][ T1828] mwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
[   19.190687][ T1806] mwlwifi 0000:02:00.0 wlp2s0: renamed from wlan1
done.
[....] Activating swap:swapon: [   19.509446][ T2150] Adding 524284k swap on /dev/sdb2.  Priority:-2 extents:1 across:524284k FS
/dev/sdb2: found signature [page[   19.520225][ T2150] Adding 524284k swap on /dev/sda2.  Priority:-3 extents:1 across:524284k FS
size=4096, signature=swap]
swapon: /dev/sdb2: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /dev/sdb2
swapon: /dev/sda2: found signature [pagesize=4096, signature=swap]
swapon: /dev/sda2: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /dev/sda2
. ok
[   19.607875][ T2174] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:swapon: /dev/sdb2: already active -- ignored
swapon: /dev/sda2: already active -- ignored
done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=WRT is mounted
UUID="61d3400b-2508-4e9c-8591-c67cefbdc418" is not mounted
[/sbin/fsck.jfs (1) -- /exports] fsck.jfs -y /dev/md0
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 8/24/2019 16:09:09
Using default parameter: -p
The current device is:  /dev/md0
Block size in bytes:  4096
Filesystem size in blocks:  484907008
**Phase 0 - Replay Journal Log
Filesystem is clean.
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.[   20.101039][    C0] random: crng init done
[   20.105164][    C0] random: 7 urandom warning(s) missed due to ratelimiting
.
[info] Loading kernel module mv88e6xxx.
[info] Loading kernel module tmp421.
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[   20.518517][ T2487] JFS: nTxBlock = 3953, nTxLock = 31630
[ ok ] Will now mount local filesystems:.
[....] Will now activate swapfile swap:swapon: /dev/sdb2: already active -- ignored
swapon: /dev/sda2: already active -- ignored
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   21.190300][ T2736] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   21.198869][   T16] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   21.273411][ T2776] mvneta f1034000.ethernet eth1: configuring for fixed/sgmii link mode
[   21.281703][    T5] mvneta f1034000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   21.483094][ T2821] device eth1 entered promiscuous mode
[   21.488539][ T2821] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii link mode
[   21.501968][ T2821] 8021q: adding VLAN 0 to HW filter on device lan1
[....] 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/lan1/c0:56:27:6d:20:a7
Sending on   LPF/lan1/c0:56:27:6d:20:a7
Sending on   Socket/fallback
DHCPDISCOVER on lan1 to 255.255.255.255 port 67 interval 3
[   24.669990][    T5] mv88e6085 f1072004.mdio-mii:00 lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   31.762646][ T2879] mv88e6085 f1072004.mdio-mii:00 lan2: configuring for phy/gmii link mode
[   31.776088][ T2879] 8021q: adding VLAN 0 to HW filter on device lan2
[   31.847489][ T2917] mv88e6085 f1072004.mdio-mii:00 lan3: configuring for phy/gmii link mode
[   31.862531][ T2917] 8021q: adding VLAN 0 to HW filter on device lan3
[   31.934196][ T2955] mv88e6085 f1072004.mdio-mii:00 lan4: configuring for phy/gmii link mode
[   31.949690][ T2955] 8021q: adding VLAN 0 to HW filter on device lan4
[   32.021830][ T2993] mv88e6085 f1072004.mdio-mii:00 wan: configuring for phy/gmii link mode
[   32.037278][ T2993] 8021q: adding VLAN 0 to HW filter on device wan
DHCPDISCOVER on lan1 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on lan1 to 255.255.255.255 port 67 interval 14
DHCPREQUEST of 192.168.1.112 on lan1 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.112 from 192.168.1.2
DHCPACK of 192.168.1.112 from 192.168.1.2
bound to 192.168.1.112 -- renewal in 10543 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up ALSA...done (none loaded).
[ ok ] Setting sensors limits...done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting Squeezebox client: squeezelite.
[ ok ] Starting enhanced syslogd: rsyslogd.
[   33.217905][ T3307] NFSD: starting 90-second grace period (net f0000039)
[ ok ] Exporting directories for NFS kernel daemon....
[....] Starting NFS kernel daemon: nfsd mountdrpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
. ok
[ ok ] Starting MD monitoring service: mdadm --monitor.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting automount....
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting S.M.A.R.T. daemon: smartd.
[ ok ] Starting NTP server: ntpd.
[....] Running local boot scripts (/etc/rc.local)

Debian GNU/Linux 9 trunks ttyS0

trunks login:


$ ls -l /sys/class/leds
total 0
lrwxrwxrwx 1 root root 0 Aug 24 16:11 caiman:white:power -> ../../devices/platform/gpio-leds/leds/caiman:white:power
lrwxrwxrwx 1 root root 0 Aug 24 16:11 caiman:white:sata -> ../../devices/platform/gpio-leds/leds/caiman:white:sata


$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00020000 "uboot"
mtd1: 00040000 00020000 "u_env"
mtd2: 00040000 00020000 "s_env"
mtd3: 00100000 00020000 "devinfo"
mtd4: 02800000 00020000 "kernel"
mtd5: 02200000 00020000 "rootfs"
mtd6: 02800000 00020000 "alt_kernel"
mtd7: 02200000 00020000 "alt_rootfs"
mtd8: 05000000 00020000 "ubifs"
mtd9: 02600000 00020000 "syscfg"


$ cat /proc/cmdline
console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1


Thanks
fsonnlei
Re: Debian on wrt1200ac
August 24, 2019 05:25PM
fsonnlei,


> $ cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00200000 00020000 "uboot"
> mtd1: 00040000 00020000 "u_env"
> mtd2: 00040000 00020000 "s_env"
> mtd3: 00100000 00020000 "devinfo"
> mtd4: 02800000 00020000 "kernel"
> mtd5: 02200000 00020000 "rootfs"
> mtd6: 02800000 00020000 "alt_kernel"
> mtd7: 02200000 00020000 "alt_rootfs"
> mtd8: 05000000 00020000 "ubifs"
> mtd9: 02600000 00020000 "syscfg"


Cool! that works quite well.

To access u-boot envs in Debian, there is further setup needed. We'll come back to that later (if you are interested in explore this further).


About LEDs

lrwxrwxrwx 1 root root 0 Aug 24 16:11 caiman:white:power -> ../../devices/platform/gpio-leds/leds/caiman:white:power
lrwxrwxrwx 1 root root 0 Aug 24 16:11 caiman:white:sata -> ../../devices/platform/gpio-leds/leds/caiman:white:sata

In the released rootfs /etc/rc.local, I had some example setting the LEDS. For this box, to turn on/off the LEDS, you would do this.

You can test them using the echo command in the shell first, and then after seeing it works, add the full logic in /etc/rc.local.

# turn on system LED

if [ -d /sys/class/leds/caiman:white:power ]; then
   echo default-on  > /sys/class/leds/caiman:white:power/trigger
fi


# turn on HDD LED trigger to see it flashing during disk read/write

if [ -d /sys/class/leds/caiman:white:sata ]; then
   echo ide-disk1  > /sys/class/leds/caiman:white:sata/trigger
fi

====

I'll add this box to the supported list for the MVEBU kernel. Thanks for a great job testing and bringing up this box!

I've noticed you are using a different DTB. Was that modified from the mainline version?

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



Edited 2 time(s). Last edit at 08/24/2019 05:31PM by bodhi.
Re: Debian on wrt1200ac
August 25, 2019 11:56AM
Hi Bodhi.

Regarding the different DTB file, please see my previous post.

Following is the log for booting with your kernel 5.1.7 and the DTB included (not "my.dtb").

Marvell>> setenv mtdparts  'mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg)'
Marvell>> setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1                          Marvell>> dhcp
BOOTP broadcast 1
DHCP client bound to address 192.168.1.112
Marvell>> tftpboot 0x02000000 wrt/test/zImage
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/zImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################################
         6.3 MiB/s
done
Bytes transferred = 4661552 (472130 hex)
Marvell>> tftpboot 0x2900000 wrt/test/uInitrd
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/uInitrd'.
Load address: 0x2900000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################
         6.5 MiB/s
done
Bytes transferred = 7991206 (79efa6 hex)
Marvell>> tftpboot 0x1000000 wrt/test/armada-385-linksys-caiman.dtb
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/armada-385-linksys-caiman.dtb'.
Load address: 0x1000000
Loading: ##
         1005.9 KiB/s
done
Bytes transferred = 18540 (486c hex)
Marvell>> setenv fdt_skip_update yes
Marvell>> bootz 0x02000000 0x2900000 0x1000000
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-5.1.7-mvebu-tld-1
   Created:      2019-07-31   4:34:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7991142 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 1f208000, end 1f9a6f66 ... OK
   Loading Device Tree to 00ff8000, end 00fff86b ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.1.7-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Linksys WRT1200AC
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x78/0x4dc with crng_init=0
[    0.000000][    T0] percpu: Embedded 18 pages/cpu s41932 r8192 d23604 u73728
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 497256K/524288K available (9216K kernel code, 826K rwdata, 2388K rodata, 1024K init, 332K bss, 27032K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000008][    T0] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008679][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020380][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027203][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034919][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046992][    T0] Console: colour dummy device 80x30
[    0.052130][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.063397][    T0] pid_max: default: 32768 minimum: 301
[    0.068804][    T0] LSM: Security Framework initializing
[    0.074146][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081434][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089544][    T0] *** VALIDATE proc ***
[    0.093639][    T0] *** VALIDATE cgroup1 ***
[    0.097902][    T0] *** VALIDATE cgroup2 ***
[    0.102188][    T0] CPU: Testing write buffer coherency: ok
[    0.107754][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113607][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177054][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183997][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189943][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207028][    T1] rcu: Hierarchical SRCU implementation.
[    0.247027][    T1] smp: Bringing up secondary CPUs ...
[    0.307102][    T1] Booting CPU 1
[    0.310575][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310579][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322712][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327509][    T1] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.334528][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340429][    T1] devtmpfs: initialized
[    0.346941][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.355572][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.366073][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.372966][    T1] prandom: seed boundary self test passed
[    0.380092][    T1] prandom: 100 self tests passed
[    0.384863][    T1] pinctrl core: initialized pinctrl subsystem
[    0.391632][    T1] NET: Registered protocol family 16
[    0.397465][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.405442][    T1] audit: initializing netlink subsys (disabled)
[    0.412297][   T33] audit: type=2000 audit(0.380:1): state=initialized audit_enabled=0 res=1
[    0.420764][    T1] cpuidle: using governor ladder
[    0.425551][    T1] cpuidle: using governor menu
[    0.430381][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.439060][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.445713][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.454476][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.479064][    T1] vgaarb: loaded
[    0.482762][    T1] SCSI subsystem initialized
[    0.487761][    T1] usbcore: registered new interface driver usbfs
[    0.493994][    T1] usbcore: registered new interface driver hub
[    0.500070][    T1] usbcore: registered new device driver usb
[    0.506263][    T1] media: Linux media interface: v0.10
[    0.511539][    T1] videodev: Linux video capture interface: v2.00
[    0.518533][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.524171][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.534032][    T1] PTP clock support registered
[    0.539685][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.033214][    T1] VFS: Disk quotas dquot_6.6.0
[    1.037869][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.053547][    T1] NET: Registered protocol family 2
[    1.058998][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    1.067353][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.075098][    T1] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.082247][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.089315][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.095839][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.102921][    T1] NET: Registered protocol family 1
[    1.108267][    T1] RPC: Registered named UNIX socket transport module.
[    1.114872][    T1] RPC: Registered udp transport module.
[    1.120257][    T1] RPC: Registered tcp transport module.
[    1.125633][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.132862][    T1] Unpacking initramfs...
[    1.442247][    T1] Freeing initrd memory: 7804K
[    1.447029][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.454511][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.464993][    T1] Initialise system trusted keyrings
[    1.470182][    T1] Key type blacklist registered
[    1.474955][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.482153][    T1] zbud: loaded
[    1.485953][    T1] NFS: Registering the id_resolver key type
[    1.491703][    T1] Key type id_resolver registered
[    1.496561][    T1] Key type id_legacy registered
[    1.501261][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.508627][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.515793][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.523878][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.531085][    T1] orangefs_init: module version upstream loaded
[    1.596139][    T1] Key type asymmetric registered
[    1.600968][    T1] Asymmetric key parser 'x509' registered
[    1.606602][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.616393][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.626411][    T1] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.633026][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.639184][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.646772][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.655256][    T1] PCI: bus0: Fast back to back transfers disabled
[    1.661527][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.670217][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.679339][    T1] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.710789][    T1] PCI: bus1: Fast back to back transfers disabled
[    1.717388][    T1] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.732027][    T1] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.770785][    T1] PCI: bus2: Fast back to back transfers disabled
[    1.777069][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe01fffff]
[    1.784627][    T1] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0200000-0xe03fffff]
[    1.792178][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    1.800072][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0500000-0xe05007ff pref]
[    1.807963][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit pref]
[    1.816381][    T1] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0100000-0xe01fffff 64bit pref]
[    1.824798][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.830444][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe01fffff]
[    1.837903][    T1] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    1.846321][    T1] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0300000-0xe03fffff 64bit pref]
[    1.854737][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.860381][    T1] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe03fffff]
[    1.867895][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.874727][    T1] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.882023][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.940173][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.948460][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.010159][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.065774][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.074367][    T1] printk: console [ttyS0] disabled
[    2.099408][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    2.109095][    T1] printk: console [ttyS0] enabled
[    2.109095][    T1] printk: console [ttyS0] enabled
[    2.118910][    T1] printk: bootconsole [earlycon0] disabled
[    2.118910][    T1] printk: bootconsole [earlycon0] disabled
[    2.131558][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.141381][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.151680][    T1] scsi host0: ahci-mvebu
[    2.156187][    T1] scsi host1: ahci-mvebu
[    2.160571][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    2.169232][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    2.178783][    T1] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    2.185889][    T1] nand: AMD/Spansion S34ML01G2
[    2.190541][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.199207][    T1] Bad block table found at page 65472, version 0x01
[    2.206343][    T1] Bad block table found at page 65408, version 0x01
[    2.213189][    T1] 10 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.220543][    T1] Creating 10 MTD partitions on "pxa3xx_nand-0":
[    2.226756][    T1] 0x000000000000-0x000000200000 : "uboot"
[    2.233115][    T1] 0x000000200000-0x000000240000 : "u_env"
[    2.239392][    T1] 0x000000240000-0x000000280000 : "s_env"
[    2.245686][    T1] 0x000000900000-0x000000a00000 : "devinfo"
[    2.252152][    T1] 0x000000a00000-0x000003200000 : "kernel"
[    2.258572][    T1] 0x000001000000-0x000003200000 : "rootfs"
[    2.265003][    T1] 0x000003200000-0x000005a00000 : "alt_kernel"
[    2.271783][    T1] 0x000003800000-0x000005a00000 : "alt_rootfs"
[    2.278544][    T1] 0x000000a00000-0x000005a00000 : "ubifs"
[    2.285017][    T1] 0x000005a00000-0x000008000000 : "syscfg"
[    2.292375][    T1] libphy: Fixed MDIO Bus: probed
[    2.297646][    T1] libphy: orion_mdio_bus: probed
[    2.302922][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    2.312822][    T1] mvneta f1070000.ethernet eth0: Using hardware mac address c0:56:27:6d:20:a7
[    2.323241][    T1] mvneta f1034000.ethernet eth1: Using random mac address 32:a0:44:6a:29:19
[    2.332073][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.339349][    T1] ehci-pci: EHCI PCI platform driver
[    2.344570][    T1] ehci-orion: EHCI orion driver
[    2.349428][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    2.355577][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.363961][    T1] orion-ehci f1058000.usb: irq 38, io mem 0xf1058000
[    2.399696][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.406479][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.01
[    2.415504][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.423478][    T1] usb usb1: Product: EHCI Host Controller
[    2.429080][    T1] usb usb1: Manufacturer: Linux 5.1.7-mvebu-tld-1 ehci_hcd
[    2.436173][    T1] usb usb1: SerialNumber: f1058000.usb
[    2.441857][    T1] hub 1-0:1.0: USB hub found
[    2.446346][    T1] hub 1-0:1.0: 1 port detected
[    2.451721][    T1] usbcore: registered new interface driver usblp
[    2.457982][    T1] usbcore: registered new interface driver usb-storage
[    2.464941][    T1] mousedev: PS/2 mouse device common for all mice
[    2.471589][    T1] i2c /dev entries driver
[    2.478370][    T1] orion_wdt: Initial timeout 171 sec
[    2.501142][ T1184] ata1: SATA link down (SStatus 0 SControl 300)
[    2.512209][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.520335][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    2.526800][    T1] usbcore: registered new interface driver usbhid
[    2.533145][    T1] usbhid: USB HID core driver
[    2.538038][    T1] drop_monitor: Initializing network drop monitor service
[    2.545269][    T1] IPv6: Loaded, but administratively disabled, reboot required to enable
[    2.553601][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.561441][    T1] NET: Registered protocol family 17
[    2.566704][    T1] 8021q: 802.1Q VLAN Support v1.8
[    2.571652][    T1] Key type dns_resolver registered
[    2.576824][    T1] ThumbEE CPU extension supported.
[    2.581840][    T1] Registering SWP/SWPB emulation handler
[    2.587844][    T1] registered taskstats version 1
[    2.592678][    T1] Loading compiled-in X.509 certificates
[    2.598238][    T1] zswap: loaded using pool lzo/zbud
[    2.614165][    T1] Key type big_key registered
[    2.623918][    T1] Key type encrypted registered
[    2.630455][    T5] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.636510][    T5] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    2.644841][    T5] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.654851][    T5] xhci-hcd f10f8000.usb3: irq 43, io mem 0xf10f8000
[    2.661539][    T5] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.01
[    2.670563][    T5] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.678523][    T5] usb usb2: Product: xHCI Host Controller
[    2.684159][    T5] usb usb2: Manufacturer: Linux 5.1.7-mvebu-tld-1 xhci-hcd
[    2.691256][    T5] usb usb2: SerialNumber: f10f8000.usb3
[    2.697045][    T5] hub 2-0:1.0: USB hub found
[    2.701554][    T5] hub 2-0:1.0: 1 port detected
[    2.706396][    T5] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.712458][    T5] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    2.720700][    T5] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    2.727915][    T5] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.736836][    T5] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.01
[    2.745857][    T5] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.753822][    T5] usb usb3: Product: xHCI Host Controller
[    2.759425][    T5] usb usb3: Manufacturer: Linux 5.1.7-mvebu-tld-1 xhci-hcd
[    2.766516][    T5] usb usb3: SerialNumber: f10f8000.usb3
[    2.772222][    T5] hub 3-0:1.0: USB hub found
[    2.776710][    T5] hub 3-0:1.0: 1 port detected
[    2.782163][    T1] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.789763][    T1] hctosys: unable to open rtc device (rtc0)
[   12.189700][ T1188] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   12.196917][ T1188] ata2.15: Port Multiplier 1.1, 0x197b:0x2352 r0, 2 ports, feat 0x0/0x0
[   12.205153][ T1188] ata2.15: Asynchronous notification not supported, hotplug won't work on fan-out ports. Use warm-plug instead.
[   12.219855][ T1188] ahci-mvebu f10a8000.sata: FBS is enabled
[   12.225682][ T1188] ata2.00: hard resetting link
[   12.562130][ T1188] ata2.00: SATA link down (SStatus 113 SControl 113)
[   12.568733][ T1188] ata2.01: hard resetting link
[   12.902113][ T1188] ata2.01: SATA link down (SStatus 123 SControl 123)
[   12.909421][ T1188] ata2.00: ATA-8: TOSHIBA DT01ACA100, MS2OA750, max UDMA/133
[   12.916695][ T1188] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32)
[   12.924769][ T1188] ata2.00: configured for UDMA/133
[   12.930527][ T1188] ata2.01: ATA-8: Hitachi HDT721010SLA360, ST6OA31B, max UDMA/133
[   12.938225][ T1188] ata2.01: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32)
[   12.946430][ T1188] ata2.01: configured for UDMA/133
[   12.951480][ T1188] ata2: EH complete
[   12.965501][  T240] scsi 1:0:0:0: Direct-Access     ATA      TOSHIBA DT01ACA1 A750 PQ: 0 ANSI: 5
[   12.974936][    T7] sd 1:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   12.983832][  T240] scsi 1:1:0:0: Direct-Access     ATA      Hitachi HDT72101 A31B PQ: 0 ANSI: 5
[   12.992693][    T7] sd 1:0:0:0: [sda] 4096-byte physical blocks
[   12.998678][    T7] sd 1:0:0:0: [sda] Write Protect is off
[   13.004525][   T20] sd 1:1:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   13.013020][    T7] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.022857][   T20] sd 1:1:0:0: [sdb] Write Protect is off
[   13.028422][   T20] sd 1:1:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.068467][   T20]  sdb: sdb1 sdb2 sdb3
[   13.073479][   T20] sd 1:1:0:0: [sdb] Attached SCSI removable disk
[   13.076905][    T7]  sda: sda1 sda2 sda3
[   13.084589][    T7] sd 1:0:0:0: [sda] Attached SCSI removable disk
[   13.092439][    T1] Freeing unused kernel memory: 1024K
[   13.140102][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.146493][    T1] Run /init as init process
Loading, please wait...
starting version 232
[   13.196807][ T1541] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   13.200667][ T1542] random: udevadm: uninitialized urandom read (16 bytes read)
[   13.205047][ T1541] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   13.473050][ T1550] mv88e6085 f1072004.mdio-mii:00: switch 0x1760 detected: Marvell 88E6176, revision 1
[   13.649606][ T1550] libphy: mv88e6xxx SMI: probed
[   13.858477][ T1550] mv88e6085 f1072004.mdio-mii:00 lan4 (uninitialized): PHY [mv88e6xxx-0:00] driver [Marvell 88E1540]
[   13.873141][ T1550] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6xxx-0:01] driver [Marvell 88E1540]
[   13.887204][ T1550] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6xxx-0:02] driver [Marvell 88E1540]
[   13.901575][ T1550] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6xxx-0:03] driver [Marvell 88E1540]
[   13.915661][ T1550] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xxx-0:04] driver [Marvell 88E1540]
[   13.931312][ T1550] 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
[   24.100650][    C0] random: fast init done
[/sbin/fsck.ext4 (1) -- /dev/sdb1] fsck.ext4 -a -C0 /dev/sdb1
WRT: clean, 48912/393216 files, 673594/1572864 blocks
done.
[   24.167856][ T1594] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'trunks'...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...[   25.796492][ T1806] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   25.817533][ T1806] sd 1:1:0:0: Attached scsi generic sg1 type 0
[   25.972935][ T1809] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   25.998195][ T1809] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   26.191613][ T1805] mwlwifi: no symbol version for module_layout
[   26.198828][ T1809] mwlwifi: loading out-of-tree module taints kernel.
[   26.206611][ T1805] mwlwifi: loading out-of-tree module taints kernel.
[   26.217216][ T1809] <<Marvell Mac80211 Wireless PCIE Network Driver version 10.3.8.0-20181210>>
[   26.503108][ T1957] md0: detected capacity change from 0 to 1986179104768
[   27.308055][ T1809] ieee80211 phy0: device node: pcie@1,0
[   27.332331][ T1809] ieee80211 phy0: firmware version: 0x702091a
[   27.356348][ T1809] ieee80211 phy0: firmware region code: 0
[   27.434608][ T1809] ieee80211 phy0: 2G enabled, 5G enabled
[   27.440163][ T1809] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[   28.429721][ T1809] ieee80211 phy1: device node: pcie@2,0
[   28.453744][ T1809] ieee80211 phy1: firmware version: 0x702091a
[   28.477772][ T1809] ieee80211 phy1: firmware region code: 0
[   28.516780][ T1809] ieee80211 phy1: 2G enabled, 5G enabled
[   28.522334][ T1809] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   28.559154][ T1801] mwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
[   28.599908][ T1809] mwlwifi 0000:02:00.0 wlp2s0: renamed from wlan1
done.
[....] Activating swap:swapon: [   28.933242][ T2146] Adding 524284k swap on /dev/sdb2.  Priority:-2 extents:1 across:524284k FS
/dev/sdb2: found signature [page[   28.943959][ T2146] Adding 524284k swap on /dev/sda2.  Priority:-3 extents:1 across:524284k FS
size=4096, signature=swap]
swapon: /dev/sdb2: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /dev/sdb2
swapon: /dev/sda2: found signature [pagesize=4096, signature=swap]
swapon: /dev/sda2: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /dev/sda2
. ok
[   29.031668][ T2170] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:swapon: /dev/sdb2: already active -- ignored
swapon: /dev/sda2: already active -- ignored
done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=WRT is mounted
UUID="61d3400b-2508-4e9c-8591-c67cefbdc418" is not mounted
[/sbi[   29.451382][    C1] random: crng init done
n/fsck.jfs (1) -[   29.456637][    C1] random: 7 urandom warning(s) missed due to ratelimiting
- /exports] fsck.jfs -y /dev/md0
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 12/31/1969 21:00:29
Using default parameter: -p
The current device is:  /dev/md0
Block size in bytes:  4096
Filesystem size in blocks:  484907008
**Phase 0 - Replay Journal Log
Filesystem is clean.
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[info] Loading kernel module mv88e6xxx.
[info] Loading kernel module tmp421.
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[   30.034837][ T2483] JFS: nTxBlock = 3953, nTxLock = 31630
[ ok ] Will now mount local filesystems:.
[....] Will now activate swapfile swap:swapon: /dev/sdb2: already active -- ignored
swapon: /dev/sda2: already active -- ignored
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   30.714189][ T2732] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   30.722710][ T1453] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   30.796594][ T2771] mvneta f1034000.ethernet eth1: configuring for fixed/sgmii link mode
[   30.804882][   T23] mvneta f1034000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   31.015409][ T2816] device eth1 entered promiscuous mode
[   31.020893][ T2816] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii link mode
[   31.034318][ T2816] 8021q: adding VLAN 0 to HW filter on device lan1
[....] 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/lan1/c0:56:27:6d:20:a7
Sending on   LPF/lan1/c0:56:27:6d:20:a7
Sending on   Socket/fallback
DHCPREQUEST of 192.168.1.112 on lan1 to 255.255.255.255 port 67
[   34.573898][ T1453] mv88e6085 f1072004.mdio-mii:00 lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   36.105453][ T2873] mv88e6085 f1072004.mdio-mii:00 lan2: configuring for phy/gmii link mode
[   36.120988][ T2873] 8021q: adding VLAN 0 to HW filter on device lan2
[   36.192477][ T2911] mv88e6085 f1072004.mdio-mii:00 lan3: configuring for phy/gmii link mode
[   36.207990][ T2911] 8021q: adding VLAN 0 to HW filter on device lan3
[   36.280410][ T2949] mv88e6085 f1072004.mdio-mii:00 lan4: configuring for phy/gmii link mode
[   36.295879][ T2949] 8021q: adding VLAN 0 to HW filter on device lan4
[   36.367425][ T2987] mv88e6085 f1072004.mdio-mii:00 wan: configuring for phy/gmii link mode
[   36.382259][ T2987] 8021q: adding VLAN 0 to HW filter on device wan
DHCPREQUEST of 192.168.1.112 on lan1 to 255.255.255.255 port 67
DHCPACK of 192.168.1.112 from 192.168.1.2
bound to 192.168.1.112 -- renewal in 10800 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up ALSA...done (none loaded).
[ ok ] Setting sensors limits...done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting Squeezebox client: squeezelite.
[ ok ] Starting enhanced syslogd: rsyslogd[ T3301] NFSD: starting 90-second grace period (net f0000039)
[?25h.
[ ok ] Exporting directories for NFS kernel daemon....
[....] Starting NFS kernel daemon: nfsd mountdrpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
. ok
[ ok ] Starting MD monitoring service: mdadm --monitor.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting automount....
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting S.M.A.R.T. daemon: smartd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 trunks ttyS0

trunks login:


$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00020000 "uboot"
mtd1: 00040000 00020000 "u_env"
mtd2: 00040000 00020000 "s_env"
mtd3: 00100000 00020000 "devinfo"
mtd4: 02800000 00020000 "kernel"
mtd5: 02200000 00020000 "rootfs"
mtd6: 02800000 00020000 "alt_kernel"
mtd7: 02200000 00020000 "alt_rootfs"
mtd8: 05000000 00020000 "ubifs"
mtd9: 02600000 00020000 "syscfg"

$ dmesg |grep rtc
[Sun Aug 25 12:49:00 2019] hctosys: unable to open rtc device (rtc0)

$ ls -l /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 Aug 25 12:50 caiman:white:power -> ../../devices/platform/gpio-leds/leds/caiman:white:power
lrwxrwxrwx 1 root root 0 Aug 25 12:50 caiman:white:sata -> ../../devices/platform/gpio-leds/leds/caiman:white:sata


$ free
              total        used        free      shared  buff/cache   available
Mem:           506M        101M        296M        241K        108M        353M
Swap:          1.0G          0B        1.0G

Now I can see the full mtd devices, but no RTC.
For the moment I'll keep using "my.dtb" definition. Let me know if you want me to test something else. Happy to do it.

Best
fsonnlei
Re: Debian on wrt1200ac
August 25, 2019 06:25PM
I'm confused! RTC apparently is working as your post above said.

# uname -a
Linux roshi 5.1.7-mvebu-tld-1 #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019 armv7l GNU/Linux


# dmesg |grep fdt
[Sat Aug  3 14:19:54 2019] OF: fdt: Machine model: Linksys WRT1200AC

# free
              total        used        free      shared  buff/cache   available
Mem:           506M         44M        392M        237K         68M        412M


# dmesg |grep -i rtc
[Sat Aug  3 14:19:56 2019] armada38x-rtc f10a3800.rtc: registered as rtc0
[Sat Aug  3 14:19:56 2019] armada38x-rtc f10a3800.rtc: setting system clock to 2019-08-03T18:18:57 UTC (1564856337)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on wrt1200ac
August 25, 2019 08:54PM
Well, as described here: https://forum.doozan.com/read.php?2,87709,87844#msg-87844, if I use "my.dtb" file I can access the RTC, mtd partitions and full ram.
If i use armada-385-linksys-caiman.dtb, I can't access the RTC.

When I said stock linux and dtb, I mean kernel downloaded from kernel.org

Hope it helps.
fsonnlei
Re: Debian on wrt1200ac
August 26, 2019 12:57AM
fsonnlei,

> When I said stock linux and dtb, I mean kernel
> downloaded from kernel.org

I think you meant to say mainline kernel. We usually use "stock kernel" to mean the kernel in the box FW.

> If i use armada-385-linksys-caiman.dtb, I can't
> access the RTC.

Yes. It makes sense that is the behavior using the current armada-385-linksys-caiman.dtb from kernel 5.2.9 mainline. RTC is not turned on in this DTS. And it is set to disabled by default in the Linksys include:

grep -3 rtc /usr/src/linux-5.2.9-mvebu/arch/arm/boot/dts/armada-385-linksys.dtsi
	usb-phy = <&usb3_1_phy>;
};

&rtc {
	/* No crystal connected to the internal RTC */
	status = "disabled";
};



It seems there are 2 different flavors of this WRT1200ac box (V1 and V2).

It is easy to patch the DTS to produce one that has RTC enabled. But I wonder which version do you have? V1 or V2?

Here is the Wikidevi page:
https://wikidevi.com/wiki/Linksys_WRT1200AC_v2

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



Edited 2 time(s). Last edit at 08/26/2019 01:02AM by bodhi.
Re: Debian on wrt1200ac
August 26, 2019 04:01PM
Please try this new armada-385-linksys-caiman.dtb.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-linksys-caiman.dtb (18.1 KB)
open | download - armada-385-linksys-caiman.dts (2.4 KB)
Re: Debian on wrt1200ac
September 02, 2019 06:30PM
Hi Bodhi.

Sorry for the delay (busy week) and for the confusion regarding stock vs mainline kernel.

My box is WRT1200AC v1. Testing the new dtb:

Hit any key to stop autoboot:  0
Marvell>> setenv mtdparts  mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg); setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1; dhcp; tftpboot 0x02000000 wrt/test/zImage; tftpboot 0x2900000 wrt/test/uInitrd; tftpboot 0x1000000 wrt/test/armada-385-linksys-caiman-bodhi.dtb; setenv fdt_skip_update yes; bootz 0x02000000 0x2900000 0x1000000
BOOTP broadcast 1
DHCP client bound to address 192.168.1.112
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/zImage'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########################################################
         6.5 MiB/s
done
Bytes transferred = 4661552 (472130 hex)
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/uInitrd'.
Load address: 0x2900000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################
         6.3 MiB/s
done
Bytes transferred = 7991206 (79efa6 hex)
Using egiga0 device
TFTP from server 192.168.1.100; our IP address is 192.168.1.112
Filename 'wrt/test/armada-385-linksys-caiman-bodhi.dtb'.
Load address: 0x1000000
Loading: ##
         4.4 MiB/s
done
Bytes transferred = 18580 (4894 hex)
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-5.1.7-mvebu-tld-1
   Created:      2019-07-31   4:34:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7991142 Bytes = 7.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 1f208000, end 1f9a6f66 ... OK
   Loading Device Tree to 00ff8000, end 00fff893 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.1.7-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #1 SMP PREEMPT Sat Jun 8 20:04:26 PDT 2019
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Linksys WRT1200AC
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] random: get_random_bytes called from start_kernel+0x78/0x4dc with crng_init=0
[    0.000000][    T0] percpu: Embedded 18 pages/cpu s41932 r8192 d23604 u73728
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Memory: 497256K/524288K available (9216K kernel code, 826K rwdata, 2388K rodata, 1024K init, 332K bss, 27032K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000007][    T0] sched_clock: 64 bits at 666MHz, resolution 1ns, wraps every 4398046511103ns
[    0.008678][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x999999d70a, max_idle_ns: 440795225152 ns
[    0.020379][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.027202][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.034919][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.046991][    T0] Console: colour dummy device 80x30
[    0.052130][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1332.00 BogoMIPS (lpj=6660000)
[    0.063397][    T0] pid_max: default: 32768 minimum: 301
[    0.068802][    T0] LSM: Security Framework initializing
[    0.074145][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.081433][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.089544][    T0] *** VALIDATE proc ***
[    0.093639][    T0] *** VALIDATE cgroup1 ***
[    0.097901][    T0] *** VALIDATE cgroup2 ***
[    0.102187][    T0] CPU: Testing write buffer coherency: ok
[    0.107753][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.113607][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.177054][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.183997][    T1] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.189942][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.207028][    T1] rcu: Hierarchical SRCU implementation.
[    0.247027][    T1] smp: Bringing up secondary CPUs ...
[    0.307099][    T1] Booting CPU 1
[    0.310572][    T0] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.310576][    T0] CPU1: Spectre v2: using BPIALL workaround
[    0.322710][    T1] smp: Brought up 1 node, 2 CPUs
[    0.327506][    T1] SMP: Total of 2 processors activated (2664.00 BogoMIPS).
[    0.334526][    T1] CPU: All CPU(s) started in SVC mode.
[    0.340425][    T1] devtmpfs: initialized
[    0.346930][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.355574][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.366076][    T1] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.372969][    T1] prandom: seed boundary self test passed
[    0.380095][    T1] prandom: 100 self tests passed
[    0.384867][    T1] pinctrl core: initialized pinctrl subsystem
[    0.391636][    T1] NET: Registered protocol family 16
[    0.397468][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.405442][    T1] audit: initializing netlink subsys (disabled)
[    0.412257][   T33] audit: type=2000 audit(0.380:1): state=initialized audit_enabled=0 res=1
[    0.420723][    T1] cpuidle: using governor ladder
[    0.425508][    T1] cpuidle: using governor menu
[    0.430341][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.439019][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.445673][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.454435][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.487678][    T1] vgaarb: loaded
[    0.491356][    T1] SCSI subsystem initialized
[    0.496306][    T1] usbcore: registered new interface driver usbfs
[    0.502548][    T1] usbcore: registered new interface driver hub
[    0.508626][    T1] usbcore: registered new device driver usb
[    0.514841][    T1] media: Linux media interface: v0.10
[    0.520765][    T1] videodev: Linux video capture interface: v2.00
[    0.527154][    T1] pps_core: LinuxPPS API ver. 1 registered
[    0.532790][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.542640][    T1] PTP clock support registered
[    0.548279][    T1] clocksource: Switched to clocksource arm_global_timer
[    1.041619][    T1] VFS: Disk quotas dquot_6.6.0
[    1.046274][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.062038][    T1] NET: Registered protocol family 2
[    1.067489][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    1.075840][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    1.083585][    T1] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    1.090734][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    1.097802][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    1.104328][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    1.111405][    T1] NET: Registered protocol family 1
[    1.116751][    T1] RPC: Registered named UNIX socket transport module.
[    1.123361][    T1] RPC: Registered udp transport module.
[    1.128748][    T1] RPC: Registered tcp transport module.
[    1.134124][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.141374][    T1] Unpacking initramfs...
[    1.452271][    T1] Freeing initrd memory: 7804K
[    1.457059][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.464532][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.475012][    T1] Initialise system trusted keyrings
[    1.480204][    T1] Key type blacklist registered
[    1.484969][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.492167][    T1] zbud: loaded
[    1.495958][    T1] NFS: Registering the id_resolver key type
[    1.501711][    T1] Key type id_resolver registered
[    1.506568][    T1] Key type id_legacy registered
[    1.511272][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.518646][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.525807][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.533886][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.541098][    T1] orangefs_init: module version upstream loaded
[    1.605771][    T1] Key type asymmetric registered
[    1.610566][    T1] Asymmetric key parser 'x509' registered
[    1.616199][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    1.626040][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.636057][    T1] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    1.642704][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.648872][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.656412][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.664887][    T1] PCI: bus0: Fast back to back transfers disabled
[    1.671158][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.679847][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.688974][    T1] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.729375][    T1] PCI: bus1: Fast back to back transfers disabled
[    1.735977][    T1] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.750617][    T1] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.789373][    T1] PCI: bus2: Fast back to back transfers disabled
[    1.795657][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe01fffff]
[    1.803214][    T1] pci 0000:00:02.0: BAR 14: assigned [mem 0xe0200000-0xe03fffff]
[    1.810765][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0400000-0xe04007ff pref]
[    1.818659][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xe0500000-0xe05007ff pref]
[    1.826549][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe00fffff 64bit pref]
[    1.834968][    T1] pci 0000:01:00.0: BAR 2: assigned [mem 0xe0100000-0xe01fffff 64bit pref]
[    1.843385][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.849031][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe01fffff]
[    1.856490][    T1] pci 0000:02:00.0: BAR 0: assigned [mem 0xe0200000-0xe02fffff 64bit pref]
[    1.864908][    T1] pci 0000:02:00.0: BAR 2: assigned [mem 0xe0300000-0xe03fffff 64bit pref]
[    1.873324][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.878969][    T1] pci 0000:00:02.0:   bridge window [mem 0xe0200000-0xe03fffff]
[    1.886476][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    1.893308][    T1] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.900607][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.958770][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.967063][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.028751][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    2.086191][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.094767][    T1] printk: console [ttyS0] disabled
[    2.119866][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 12500000) is a 16550A
[    2.129527][    T1] printk: console [ttyS0] enabled
[    2.129527][    T1] printk: console [ttyS0] enabled
[    2.139352][    T1] printk: bootconsole [earlycon0] disabled
[    2.139352][    T1] printk: bootconsole [earlycon0] disabled
[    2.151993][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    2.161809][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    2.172104][    T1] scsi host0: ahci-mvebu
[    2.176581][    T1] scsi host1: ahci-mvebu
[    2.180958][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    2.189632][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43
[    2.199215][    T1] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    2.206303][    T1] nand: AMD/Spansion S34ML01G2
[    2.210965][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.219638][    T1] Bad block table found at page 65472, version 0x01
[    2.226765][    T1] Bad block table found at page 65408, version 0x01
[    2.233617][    T1] 10 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.240972][    T1] Creating 10 MTD partitions on "pxa3xx_nand-0":
[    2.247186][    T1] 0x000000000000-0x000000200000 : "uboot"
[    2.253541][    T1] 0x000000200000-0x000000240000 : "u_env"
[    2.259840][    T1] 0x000000240000-0x000000280000 : "s_env"
[    2.266129][    T1] 0x000000900000-0x000000a00000 : "devinfo"
[    2.272593][    T1] 0x000000a00000-0x000003200000 : "kernel"
[    2.279033][    T1] 0x000001000000-0x000003200000 : "rootfs"
[    2.285458][    T1] 0x000003200000-0x000005a00000 : "alt_kernel"
[    2.292252][    T1] 0x000003800000-0x000005a00000 : "alt_rootfs"
[    2.299058][    T1] 0x000000a00000-0x000005a00000 : "ubifs"
[    2.305512][    T1] 0x000005a00000-0x000008000000 : "syscfg"
[    2.312924][    T1] libphy: Fixed MDIO Bus: probed
[    2.318203][    T1] libphy: orion_mdio_bus: probed
[    2.323564][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    2.333471][    T1] mvneta f1070000.ethernet eth0: Using hardware mac address c0:56:27:6d:20:a7
[    2.343893][    T1] mvneta f1034000.ethernet eth1: Using random mac address 0a:f4:b7:1c:d2:fc
[    2.352733][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.360025][    T1] ehci-pci: EHCI PCI platform driver
[    2.365231][    T1] ehci-orion: EHCI orion driver
[    2.370100][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    2.376239][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    2.384625][    T1] orion-ehci f1058000.usb: irq 39, io mem 0xf1058000
[    2.428317][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    2.435101][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.01
[    2.444124][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.452090][    T1] usb usb1: Product: EHCI Host Controller
[    2.457693][    T1] usb usb1: Manufacturer: Linux 5.1.7-mvebu-tld-1 ehci_hcd
[    2.464784][    T1] usb usb1: SerialNumber: f1058000.usb
[    2.470452][    T1] hub 1-0:1.0: USB hub found
[    2.474940][    T1] hub 1-0:1.0: 1 port detected
[    2.480333][    T1] usbcore: registered new interface driver usblp
[    2.486589][    T1] usbcore: registered new interface driver usb-storage
[    2.493545][    T1] mousedev: PS/2 mouse device common for all mice
[    2.500552][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    2.506947][    T1] i2c /dev entries driver
[    2.513782][    T1] orion_wdt: Initial timeout 171 sec
[    2.529830][ T1185] ata1: SATA link down (SStatus 0 SControl 300)
[    2.547301][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.555442][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    2.561919][    T1] usbcore: registered new interface driver usbhid
[    2.568221][    T1] usbhid: USB HID core driver
[    2.573143][    T1] drop_monitor: Initializing network drop monitor service
[    2.580369][    T1] IPv6: Loaded, but administratively disabled, reboot required to enable
[    2.589707][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.596758][    T1] NET: Registered protocol family 17
[    2.602040][    T1] 8021q: 802.1Q VLAN Support v1.8
[    2.606975][    T1] Key type dns_resolver registered
[    2.612163][    T1] ThumbEE CPU extension supported.
[    2.617158][    T1] Registering SWP/SWPB emulation handler
[    2.623183][    T1] registered taskstats version 1
[    2.628000][    T1] Loading compiled-in X.509 certificates
[    2.633576][    T1] zswap: loaded using pool lzo/zbud
[    2.649482][    T1] Key type big_key registered
[    2.659125][    T1] Key type encrypted registered
[    2.665626][    T5] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.671704][    T5] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 2
[    2.680012][    T5] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    2.690022][    T5] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    2.696702][    T5] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.01
[    2.705725][    T5] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.713717][    T5] usb usb2: Product: xHCI Host Controller
[    2.719328][    T5] usb usb2: Manufacturer: Linux 5.1.7-mvebu-tld-1 xhci-hcd
[    2.726413][    T5] usb usb2: SerialNumber: f10f8000.usb3
[    2.732204][    T5] hub 2-0:1.0: USB hub found
[    2.736693][    T5] hub 2-0:1.0: 1 port detected
[    2.741557][    T5] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    2.747604][    T5] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    2.755865][    T5] xhci-hcd f10f8000.usb3: Host supports USB 3.0  SuperSpeed
[    2.763087][    T5] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.772002][    T5] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.01
[    2.781022][    T5] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.788993][    T5] usb usb3: Product: xHCI Host Controller
[    2.794594][    T5] usb usb3: Manufacturer: Linux 5.1.7-mvebu-tld-1 xhci-hcd
[    2.801686][    T5] usb usb3: SerialNumber: f10f8000.usb3
[    2.807401][    T5] hub 3-0:1.0: USB hub found
[    2.811903][    T5] hub 3-0:1.0: 1 port detected
[    2.817336][    T1] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.825045][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2019-09-02T23:19:15 UTC (1567466355)
[   12.218295][ T1189] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[   12.225518][ T1189] ata2.15: Port Multiplier 1.1, 0x197b:0x2352 r0, 2 ports, feat 0x0/0x0
[   12.233755][ T1189] ata2.15: Asynchronous notification not supported, hotplug won't work on fan-out ports. Use warm-plug instead.
[   12.248468][ T1189] ahci-mvebu f10a8000.sata: FBS is enabled
[   12.254299][ T1189] ata2.00: hard resetting link
[   12.590730][ T1189] ata2.00: SATA link down (SStatus 113 SControl 113)
[   12.597332][ T1189] ata2.01: hard resetting link
[   12.930713][ T1189] ata2.01: SATA link down (SStatus 123 SControl 123)
[   12.938026][ T1189] ata2.00: ATA-8: TOSHIBA DT01ACA100, MS2OA750, max UDMA/133
[   12.945300][ T1189] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32)
[   12.953363][ T1189] ata2.00: configured for UDMA/133
[   12.959120][ T1189] ata2.01: ATA-8: Hitachi HDT721010SLA360, ST6OA31B, max UDMA/133
[   12.966818][ T1189] ata2.01: 1953525168 sectors, multi 0: LBA48 NCQ (depth 32)
[   12.975022][ T1189] ata2.01: configured for UDMA/133
[   12.980067][ T1189] ata2: EH complete
[   12.984016][    T7] scsi 1:0:0:0: Direct-Access     ATA      TOSHIBA DT01ACA1 A750 PQ: 0 ANSI: 5
[   12.993575][  T233] sd 1:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   12.993599][    T7] scsi 1:1:0:0: Direct-Access     ATA      Hitachi HDT72101 A31B PQ: 0 ANSI: 5
[   13.002035][  T233] sd 1:0:0:0: [sda] 4096-byte physical blocks
[   13.017094][   T35] sd 1:1:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[   13.025567][   T35] sd 1:1:0:0: [sdb] Write Protect is off
[   13.028354][  T233] sd 1:0:0:0: [sda] Write Protect is off
[   13.036644][   T35] sd 1:1:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.036650][  T233] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.077104][   T35]  sdb: sdb1 sdb2 sdb3
[   13.082075][   T35] sd 1:1:0:0: [sdb] Attached SCSI removable disk
[   13.097007][  T233]  sda: sda1 sda2 sda3
[   13.101910][  T233] sd 1:0:0:0: [sda] Attached SCSI removable disk
[   13.109743][    T1] Freeing unused kernel memory: 1024K
[   13.158687][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.165076][    T1] Run /init as init process
Loading, please wait...
starting version 232
[   13.214705][ T1543] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   13.218687][ T1544] random: udevadm: uninitialized urandom read (16 bytes read)
[   13.222944][ T1543] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   13.509104][ T1547] mv88e6085 f1072004.mdio-mii:00: switch 0x1760 detected: Marvell 88E6176, revision 1
[   13.706890][ T1547] libphy: mv88e6xxx SMI: probed
[   13.954219][ T1547] mv88e6085 f1072004.mdio-mii:00 lan4 (uninitialized): PHY [mv88e6xxx-0:00] driver [Marvell 88E1540]
[   13.965752][ T1547] mv88e6085 f1072004.mdio-mii:00 lan3 (uninitialized): PHY [mv88e6xxx-0:01] driver [Marvell 88E1540]
[   13.979257][ T1547] mv88e6085 f1072004.mdio-mii:00 lan2 (uninitialized): PHY [mv88e6xxx-0:02] driver [Marvell 88E1540]
[   13.990684][ T1547] mv88e6085 f1072004.mdio-mii:00 lan1 (uninitialized): PHY [mv88e6xxx-0:03] driver [Marvell 88E1540]
[   14.004172][ T1547] mv88e6085 f1072004.mdio-mii:00 wan (uninitialized): PHY [mv88e6xxx-0:04] driver [Marvell 88E1540]
[   14.019817][ T1547] 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
[   24.136108][    C0] random: fast init done
[/sbin/fsck.ext4 (1) -- /dev/sdb1] fsck.ext4 -a -C0 /dev/sdb1
WRT: clean, 51924/393216 files, 788803/1572864 blocks
done.
[   24.210904][ T1595] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'trunks'...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...[   25.881532][ T1806] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   25.931603][ T1806] sd 1:1:0:0: Attached scsi generic sg1 type 0
[   25.994014][ T1808] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[   26.038963][ T1808] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[   26.265621][ T1808] mwlwifi: no symbol version for module_layout
[   26.274222][ T1801] mwlwifi: loading out-of-tree module taints kernel.
[   26.283078][ T1808] mwlwifi: loading out-of-tree module taints kernel.
[   26.301325][ T1801] <<Marvell Mac80211 Wireless PCIE Network Driver version 10.3.8.0-20181210>>
[   26.637238][ T1958] md0: detected capacity change from 0 to 1986179104768
[   27.358493][ T1801] ieee80211 phy0: device node: pcie@1,0
[   27.382758][ T1801] ieee80211 phy0: firmware version: 0x702091a
[   27.406790][ T1801] ieee80211 phy0: firmware region code: 0
[   27.485271][ T1801] ieee80211 phy0: 2G enabled, 5G enabled
[   27.490843][ T1801] ieee80211 phy0: 4 TX antennas, 4 RX antennas
[   28.482362][ T1801] ieee80211 phy1: device node: pcie@2,0
[   28.506656][ T1801] ieee80211 phy1: firmware version: 0x702091a
[   28.530684][ T1801] ieee80211 phy1: firmware region code: 0
[   28.569670][ T1801] ieee80211 phy1: 2G enabled, 5G enabled
[   28.575189][ T1801] ieee80211 phy1: 4 TX antennas, 4 RX antennas
[   28.609702][ T1802] mwlwifi 0000:01:00.0 wlp1s0: renamed from wlan0
[   28.658456][ T1807] mwlwifi 0000:02:00.0 wlp2s0: renamed from wlan1
done.
[....] Activating swap:swapon: [   28.991922][ T2149] Adding 524284k swap on /dev/sdb2.  Priority:-2 extents:1 across:524284k FS
/dev/sdb2: found signature [page[   29.002651][ T2149] Adding 524284k swap on /dev/sda2.  Priority:-3 extents:1 across:524284k FS
size=4096, signature=swap]
swapon: /dev/sdb2: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /dev/sdb2
swapon: /dev/sda2: found signature [pagesize=4096, signature=swap]
swapon: /dev/sda2: pagesize=4096, swapsize=536870912, devsize=536870912
swapon /dev/sda2
. ok
[   29.090349][ T2173] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:swapon: /dev/sdb2: already active -- ignored
swapon: /dev/sda2: already active -- ignored
done.
[info] Will now check all file systems.
[   29.433084][    C0] random: crng init done
[   29.437209][    C0] random: 7 urandom warning(s) missed due to ratelimiting
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=WRT is mounted
UUID="61d3400b-2508-4e9c-8591-c67cefbdc418" is not mounted
[/sbin/fsck.jfs (1) -- /exports] fsck.jfs -y /dev/md0
fsck.jfs version 1.1.15, 04-Mar-2011
processing started: 9/2/2019 19:19:25
Using default parameter: -p
The current device is:  /dev/md0
Block size in bytes:  4096
Filesystem size in blocks:  484907008
**Phase 0 - Replay Journal Log
Filesystem is clean.
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[info] Loading kernel module mv88e6xxx.
[info] Loading kernel module tmp421.
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[   30.059444][ T2487] JFS: nTxBlock = 3953, nTxLock = 31630
[ ok ] Will now mount local filesystems:.
[....] Will now activate swapfile swap:swapon: /dev/sdb2: already active -- ignored
swapon: /dev/sda2: already active -- ignored
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   30.773001][ T2736] mvneta f1070000.ethernet eth0: configuring for fixed/rgmii-id link mode
[   30.781628][   T16] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   30.855232][ T2776] mvneta f1034000.ethernet eth1: configuring for fixed/sgmii link mode
[   30.863535][    T5] mvneta f1034000.ethernet eth1: Link is Up - 1Gbps/Full - flow control off
[   31.065648][ T2821] device eth1 entered promiscuous mode
[   31.071144][ T2821] mv88e6085 f1072004.mdio-mii:00 lan1: configuring for phy/gmii link mode
[   31.086637][ T2821] 8021q: adding VLAN 0 to HW filter on device lan1
[....] 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/lan1/c0:56:27:6d:20:a7
Sending on   LPF/lan1/c0:56:27:6d:20:a7
Sending on   Socket/fallback
DHCPDISCOVER on lan1 to 255.255.255.255 port 67 interval 5
[   34.340362][    T5] mv88e6085 f1072004.mdio-mii:00 lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[   35.813842][ T2879] mv88e6085 f1072004.mdio-mii:00 lan2: configuring for phy/gmii link mode
[   35.828564][ T2879] 8021q: adding VLAN 0 to HW filter on device lan2
[   35.899840][ T2917] mv88e6085 f1072004.mdio-mii:00 lan3: configuring for phy/gmii link mode
[   35.915346][ T2917] 8021q: adding VLAN 0 to HW filter on device lan3
[   35.987604][ T2955] mv88e6085 f1072004.mdio-mii:00 lan4: configuring for phy/gmii link mode
[   36.001084][ T2955] 8021q: adding VLAN 0 to HW filter on device lan4
[   36.072828][ T2993] mv88e6085 f1072004.mdio-mii:00 wan: configuring for phy/gmii link mode
[   36.088257][ T2993] 8021q: adding VLAN 0 to HW filter on device wan
DHCPDISCOVER on lan1 to 255.255.255.255 port 67 interval 8
DHCPREQUEST of 192.168.1.112 on lan1 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.112 from 192.168.1.2
DHCPACK of 192.168.1.112 from 192.168.1.2
bound to 192.168.1.112 -- renewal in 8739 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting up ALSA...done (none loaded).
[ ok ] Setting sensors limits...done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting Squeezebox client: squeezelite.
[....] Starting enhanced syslogd: rsyslogd[   37.223252][ T3306] NFSD: starting 90-second grace period (net f0000039)
. ok
[ ok ] Exporting directories for NFS kernel daemon....
[....] Starting NFS kernel daemon: nfsd mountdrpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
rpc.mountd: svc_tli_create: could not open connection for udp6
rpc.mountd: svc_tli_create: could not open connection for tcp6
. ok
[ ok ] Starting MD monitoring service: mdadm --monitor.
[ ok ] Starting automount....
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting S.M.A.R.T. daemon: smartd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 trunks ttyS0

trunks login:

$ free
              total        used        free      shared  buff/cache   available
Mem:           506M        102M        294M        245K        109M        353M
Swap:          1.0G          0B        1.0G


$ dmesg |grep rtc
[Mon Sep  2 19:22:28 2019] armada38x-rtc f10a3800.rtc: registered as rtc0
[Mon Sep  2 19:22:28 2019] armada38x-rtc f10a3800.rtc: setting system clock to 2019-09-02T23:19:15 UTC (1567466355)


$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00020000 "uboot"
mtd1: 00040000 00020000 "u_env"
mtd2: 00040000 00020000 "s_env"
mtd3: 00100000 00020000 "devinfo"
mtd4: 02800000 00020000 "kernel"
mtd5: 02200000 00020000 "rootfs"
mtd6: 02800000 00020000 "alt_kernel"
mtd7: 02200000 00020000 "alt_rootfs"
mtd8: 05000000 00020000 "ubifs"
mtd9: 02600000 00020000 "syscfg"

$ cat /proc/cmdline
console=ttyS0,115200 init=/sbin/init root=LABEL=WRT rootdelay=10 mtdparts=pxa3xx_nand-0:2048K(uboot)ro,256K(u_env),256K(s_env),1m@9m(devinfo),40m@10m(kernel),34m@16m(rootfs),40m@50m(alt_kernel),34m@56m(alt_rootfs),80m@10m(ubifs),-@90m(syscfg) earlyprintk=serial ipv6.disable=1

$ ls -l /sys/class/leds/
total 0
lrwxrwxrwx 1 root root 0 Sep  2 19:24 caiman:white:power -> ../../devices/platform/gpio-leds/leds/caiman:white:power
lrwxrwxrwx 1 root root 0 Sep  2 19:24 caiman:white:sata -> ../../devices/platform/gpio-leds/leds/caiman:white:sata



I also tried your new 5.2.9 kernel, but I got this (with the new DTB):

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: invalid dtb and unrecognized/unsupported machine ID
  r1=0x00000210, r2=0x00ff8000
  r2[]=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
Available machine support:

ID (hex)        NAME
ffffffff        Generic DT based system
ffffffff        Marvell Berlin
ffffffff        Marvell Armada 39x (Device Tree)
ffffffff        Marvell Armada 380/385 (Device Tree)
ffffffff        Marvell Armada 375 (Device Tree)
ffffffff        Marvell Armada 370/XP (Device Tree)
ffffffff        Marvell Dove

Please check your kernel config and/or bootloader.

Thank you
fsonnlei
Re: Debian on wrt1200ac
September 02, 2019 07:40PM
fsonnlei,

> Sorry for the delay (busy week) and for the
> confusion regarding stock vs mainline kernel.

Not at all!

> My box is WRT1200AC v1. Testing the new
> dtb:

>
> $ dmesg |grep rtc
> [Mon Sep  2 19:22:28 2019] armada38x-rtc
> f10a3800.rtc: registered as rtc0
> [Mon Sep  2 19:22:28 2019] armada38x-rtc
> f10a3800.rtc: setting system clock to
> 2019-09-02T23:19:15 UTC (1567466355)
>

Cool! so to activate RTC, I will release a new version of the DTS in the next kernel and call it WRT1200AC v1.


Quote

> I also tried your new 5.2.9 kernel, but I got this
> (with the new DTB):

> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
>
> Error: invalid dtb and unrecognized/unsupported
> machine ID
> r1=0x00000210, r2=0x00ff8000
> r2[]=00 00 00 00 00 00 00 00 00 00 00 00 00 00
> 00 00
> Available machine support:
>
> ID (hex) NAME
> ffffffff Generic DT based system
> ffffffff Marvell Berlin
> ffffffff Marvell Armada 39x (Device Tree)
> ffffffff Marvell Armada 380/385 (Device
> Tree)
> ffffffff Marvell Armada 375 (Device Tree)
> ffffffff Marvell Armada 370/XP (Device
> Tree)
> ffffffff Marvell Dove
>
> Please check your kernel config and/or
> bootloader.
> [/code]


The error is because of the kernel image size was increased. See my release note:

Quote

Updated 20 Aug 2019:

Kernel linux-5.2.9-mvebu-tld-1 package has been uploaded.

New in this release:

- Keep MTD and NAND drivers as builtin kernel drivers (to overcome a mainline kernel regression for MTD and NAND).
- Pickup security patches from mainline.

Important Note for all boxes: The new kernel zImage has increased in size significantly that it will no longer work to be used in booting with the Marvell u-boot typically installed in these Armada boxes. To make it more resilient (avoid messing with u-boot envs again when the kernel image size increases), from this kernel version, we need to boot with uImage. Please see this post for an example how to adjust u-boot envs using the Thecus N2350

So you need to create the /boot/uImage and then adjust your u-boot envs:

Marvell>> setenv bootargs console=ttyS0,115200 init=/sbin/init root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial ipv6.disable=1
Marvell>> dhcp
Marvell>> tftpboot 0x02000000 wrt/test/uImage
Marvell>> tftpboot 0x2900000 wrt/test/uInitrd
Marvell>> setenv fdt_skip_update yes
Marvell>> bootm 0x02000000 0x2900000

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



Edited 1 time(s). Last edit at 09/03/2019 12:03AM by bodhi.
Re: Debian on wrt1200ac
September 02, 2019 07:54PM
Perfect!

$ uname -a
Linux trunks 5.2.9-mvebu-tld-1 #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019 armv7l GNU/Linux

Thank you
fsonnlei
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: