Skip to content

[patch v6]layerscape: add 64b/32b target for ls1043ardb device#344

Closed
fsl-jyt wants to merge 1 commit intolede-project:masterfrom
fsl-jyt:patchv6
Closed

[patch v6]layerscape: add 64b/32b target for ls1043ardb device#344
fsl-jyt wants to merge 1 commit intolede-project:masterfrom
fsl-jyt:patchv6

Conversation

@fsl-jyt
Copy link
Contributor

@fsl-jyt fsl-jyt commented Sep 28, 2016

Add support for NXP layerscape ls1043ardb 64b/32b Dev board.

LS1043a is an SoC with 4x64-bit up to 1.6 GHz ARMv8 A53 cores.
ls1043ardb support features as: 2GB DDR4, 128MB NOR/512MB NAND, USB3.0, eSDHC,
I2C, GPIO, PCIe/Mini-PCIe, 6x1G/1x10G network port, etc.

64b/32b ls1043ardb target is using 4.4 kernel, and rcw/u-boot/fman images from
NXP QorIQ SDK release.

All of 4.4 kernel patches porting from SDK release or upstream.

QorIQ SDK ISOs can be downloaded from this location:
http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-processors:SDKLINUX

Signed-off-by: Yutang Jiang yutang.jiang@nxp.com

@fsl-jyt
Copy link
Contributor Author

fsl-jyt commented Sep 28, 2016

V6 patch update summary:
1.Dropping unnecessary USB_EHCI_FSL related patches.
2.Change BOARDNAME from "layerscape" to "NXP Layerscape"

@fsl-jyt
Copy link
Contributor Author

fsl-jyt commented Sep 28, 2016

A simple bootup log both 64b and 32b:

U-Boot 2016.012.0+ga9b437f (May 15 2016 - 11:01:10 +0800)

SoC: unknown (0x87920410)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 08100010 0a000000 00000000 00000000
00000010: 14550002 80004012 e0025000 c1002000
00000020: 00000000 00000000 00000000 00038800
00000030: 00000000 00001101 00000096 00000001
I2C: ready
Model: LS1043A RDB Board
Board: LS1043ARDB, boot from vBank 0
CPLD: V1.4
PCBA: V2.0
SERDES Reference Clocks:
SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ
DRAM: Initializing DDR....
Detected UDIMM Fixed DDR on board
2 GiB (DDR4, 32-bit, CL=11, ECC off)
SEC0: RNG instantiated
fsl-ppa: Bad firmware image (not a FIT image)
fsl-ppa: error (-22)
Not a microcode
fsl-ppa: Bad firmware image (not a FIT image)
Waking secondary cores to start from ffd0a000
All (4) cores are up.
Using SERDES1 Protocol: 5205 (0x1455)
Flash: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: disabled
PCIe2: Root Complex x1 gen1, regs @ 0x3500000
PCI:
01:00.0 - 168c:0030 - Network controller
PCIe2: Bus 00 - 01
PCIe3: Root Complex no link, regs @ 0x3600000
In: serial
Out: serial
Err: serial
SCSI: Error: SCSI Controller(s) 1B4B:9170 not found
Net: Fman1: Uploading microcode version 106.4.18
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1
Hit any key to stop autoboot: 0
=> pri
bank4boot=cpld reset altbank
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/ram0 earlycon=uart8250,0x21c0500,115200
bootcmd=run wrtboot
bootdelay=1
console=ttyAMA0,38400n8
eth1addr=00:e0:0c:00:77:01
eth2addr=00:e0:0c:00:77:02
eth3addr=00:e0:0c:00:77:03
eth4addr=00:e0:0c:00:77:04
eth5addr=00:e0:0c:00:77:05
eth6addr=00:e0:0c:00:77:06
ethact=FM1@DTSEC1
ethaddr=00:e0:0c:00:77:00
ethprime=e1000#0
fdt_high=0xffffffffffffffff
fdtaddr=8f000000
fdtcontroladdr=ffbc7738
fman_ucode=60300000
gatewayip=10.193.20.254
hwconfig=fsl_ddr:bank_intlv=auto
initrd_high=0xffffffffffffffff
ipaddr=10.193.20.234
kernel_addr=0x100000
kernel_load=0xa0000000
kernel_size=0x2800000
kernel_start=0x61100000
loadaddr=82000000
netmask=255.255.255.0
ramdisk_addr=0x800000
ramdisk_size=0x2000000
ramdiskaddr=88000000
scsidevs=0
serverip=10.192.208.142
stderr=serial
stdin=serial
stdout=serial
wrtboot=setenv bootargs root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware) && cp.b 60400000 $fdtaddr 100000 && cp.b 60500000 $loadaddr 500000 && bootm $loadaddr - $fdtaddr

Environment size: 1315/131068 bytes
=> run cpld reset altbank

Error: "cpld" not defined

=> cpld reset altbank?

U-Boot 2016.012.0+ga9b437f (May 15 2016 - 11:01:10 +0800)

SoC: unknown (0x87920410)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 08100010 0a000000 00000000 00000000
00000010: 14550002 80004012 e0025000 c1002000
00000020: 00000000 00000000 00000000 00038800
00000030: 00000000 00001101 00000096 00000001
I2C: ready
Model: LS1043A RDB Board
Board: LS1043ARDB, boot from vBank 4
CPLD: V1.4
PCBA: V2.0
SERDES Reference Clocks:
SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ
DRAM: Initializing DDR....
Detected UDIMM Fixed DDR on board
2 GiB (DDR4, 32-bit, CL=11, ECC off)
SEC0: RNG instantiated
fsl-ppa: Bad firmware image (not a FIT image)
fsl-ppa: error (-22)
Not a microcode
fsl-ppa: Bad firmware image (not a FIT image)
Waking secondary cores to start from ffd0a000
All (4) cores are up.
Using SERDES1 Protocol: 5205 (0x1455)
Flash: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: disabled
PCIe2: Root Complex x1 gen1, regs @ 0x3500000
PCI:
01:00.0 - 168c:0030 - Network controller
PCIe2: Bus 00 - 01
PCIe3: Root Complex no link, regs @ 0x3600000
In: serial
Out: serial
Err: serial
SCSI: Error: SCSI Controller(s) 1B4B:9170 not found
Net: Fman1: Uploading microcode version 106.4.18
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1
Hit any key to stop autoboot: 0
=> pri
baudrate=115200
bootargs=root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware)
bootcmd=cp.b $kernel_start $kernel_load $kernel_size && bootm $kernel_load
bootdelay=3
console=ttyAMA0,38400n8
eth1addr=00:e0:0c:00:77:01
eth2addr=00:e0:0c:00:77:02
eth3addr=00:e0:0c:00:77:03
eth4addr=00:e0:0c:00:77:04
eth5addr=00:e0:0c:00:77:05
eth6addr=00:e0:0c:00:77:06
ethact=FM1@DTSEC1
ethaddr=00:e0:0c:00:77:00
ethprime=e1000#0
fdt_high=0xffffffffffffffff
fdtaddr=8f000000
fdtcontroladdr=ffbc7738
fileaddr=a0000000
filesize=3c00000
fman_ucode=60300000
gatewayip=192.168.1.1
hwconfig=fsl_ddr:bank_intlv=auto
initrd_high=0xffffffffffffffff
ipaddr=10.193.20.234
kernel_addr=0x100000
kernel_load=0xa0000000
kernel_size=0x2800000
kernel_start=0x61100000
loadaddr=82000000
netmask=255.255.255.0
ramdisk_addr=0x800000
ramdisk_size=0x2000000
ramdiskaddr=88000000
scsidevs=0
serverip=10.192.208.142
stderr=serial
stdin=serial
stdout=serial
wrtboot=setenv bootargs root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware) && cp.b 60400000 $fdtaddr 100000 && cp.b 60500000 $loadaddr 500000 && bootm $loadaddr - $fdtaddr

Environment size: 1548/131068 bytes
=> setenv bootcmd run wrtboot
=> save
Saving Environment to Flash...
Un-Protected 1 sectors
Erasing Flash...
. done
Erased 1 sectors
Writing to Flash... 9....8....7....6....5....4....3....2....1....done
Protected 1 sectors
=> run wrtboot

Booting kernel from Legacy Image at 82000000 ...

Image Name: ARM64 LEDE Linux-4.4.21
Image Type: AArch64 Linux Kernel Image (gzip compressed)
Data Size: 3395989 Bytes = 3.2 MiB
Load Address: 80080000
Entry Point: 80080000
Verifying Checksum ... OK

Flattened Device Tree blob at 8f000000

Booting using the fdt blob at 0x8f000000
Uncompressing Kernel Image ... OK
Using Device Tree in place at 000000008f000000, end 000000008f0197c6
fsl-ppa: Bad firmware image (not a FIT image)
fsl-ppa: Bad firmware image (not a FIT image)

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.21 (jyt@BP) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1262+1) ) #0 SMP Wed Sep 28 15:20:57 2016
[ 0.000000] Boot CPU: AArch64 Processor [410fd034]
[ 0.000000] earlycon: Early serial console at MMIO 0x21c0500 (options '')
[ 0.000000] bootconsole [uart0] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] Reserved memory: initialized node qman-fqd, compatible id fsl,qman-fqd
[ 0.000000] Reserved memory: initialized node qman-pfdr, compatible id fsl,qman-pfdr
[ 0.000000] Reserved memory: initialized node bman-fbpr, compatible id fsl,bman-fbpr
[ 0.000000] PERCPU: Embedded 15 pages/cpu @ffffffc07fd8e000 s23808 r8192 d29440 u61440
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: enabling workaround for ARM erratum 845719
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 515592
[ 0.000000] Kernel command line: root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware)
[ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[ 0.000000] software IO TLB mem 0xf6200000-0xfa200000 mapped at [ffffffc076200000-ffffffc07a1fffff]
[ 0.000000] Memory: 1926700K/2095104K available (4994K kernel code, 314K rwdata, 2216K rodata, 272K init, 826K bss, 168404K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vmalloc : 0xffffff8000000000 - 0xffffffbdbfff0000 ( 246 GB)
[ 0.000000] vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
[ 0.000000] 0xffffffbdc0000000 - 0xffffffbdc1ff8000 ( 31 MB actual)
[ 0.000000] fixed : 0xffffffbffabfd000 - 0xffffffbffac00000 ( 12 KB)
[ 0.000000] PCI I/O : 0xffffffbffae00000 - 0xffffffbffbe00000 ( 16 MB)
[ 0.000000] modules : 0xffffffbffc000000 - 0xffffffc000000000 ( 64 MB)
[ 0.000000] memory : 0xffffffc000000000 - 0xffffffc07fe00000 ( 2046 MB)
[ 0.000000] .init : 0xffffffc00078d000 - 0xffffffc0007d1000 ( 272 KB)
[ 0.000000] .text : 0xffffffc000080000 - 0xffffffc00078c884 ( 7219 KB)
[ 0.000000] .data : 0xffffffc0007e2000 - 0xffffffc000830800 ( 314 KB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] CONFIG_RCU_FANOUT set to non-default value of 32
[ 0.000000] NR_IRQS:64 nr_irqs:64 0
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] Architected cp15 timer(s) running at 25.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[ 0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[ 0.008196] Console: colour dummy device 80x25
[ 0.012664] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[ 0.023069] pid_max: default: 32768 minimum: 301
[ 0.027738] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.034472] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.042019] EFI services will not be available.
[ 0.046589] ASID allocator initialised with 65536 entries
[ 0.052526] Detected VIPT I-cache on CPU1
[ 0.052544] CPU1: Booted secondary processor [410fd034]
[ 0.052661] Detected VIPT I-cache on CPU2
[ 0.052673] CPU2: Booted secondary processor [410fd034]
[ 0.052781] Detected VIPT I-cache on CPU3
[ 0.052794] CPU3: Booted secondary processor [410fd034]
[ 0.052814] Brought up 4 CPUs
[ 0.083585] SMP: Total of 4 processors activated.
[ 0.088306] CPU: All CPU(s) started at EL2
[ 0.092423] alternatives: patching kernel code
[ 0.099933] DMI not present or invalid.
[ 0.103894] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.113832] atomic64_test: passed
[ 0.117544] NET: Registered protocol family 16
[ 0.122532] fsl-mc bus type registered
[ 0.126347] MC object device driver fsl_mc_dprc registered
[ 0.131884] MC object device driver fsl_mc_allocator registered
[ 0.137876] Bman ver:0a02,02,01
[ 0.145340] qman-fqd addr 0xff000000 size 0x800000
[ 0.150154] qman-pfdr addr 0xfc000000 size 0x2000000
[ 0.155139] Qman ver:0a01,03,02,00
[ 0.158629] vdso: 2 pages (1 code @ ffffffc0007e9000, 1 data @ ffffffc0007e8000)
[ 0.166164] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.172325] Serial: AMBA PL011 UART driver
[ 0.216827] ACPI: Interpreter disabled.
[ 0.220897] SCSI subsystem initialized
[ 0.224884] usbcore: registered new interface driver usbfs
[ 0.230441] usbcore: registered new interface driver hub
[ 0.235800] usbcore: registered new device driver usb
[ 0.240982] dmi: Firmware registration failed.
[ 0.245470] bman-fbpr addr 0xfe000000 size 0x1000000
[ 0.250482] Bman err interrupt handler present
[ 0.255356] Bman portal initialised, cpu 0
[ 0.259532] Bman portal initialised, cpu 1
[ 0.263702] Bman portal initialised, cpu 2
[ 0.267878] Bman portal initialised, cpu 3
[ 0.271987] Bman portals initialised
[ 0.276442] Qman err interrupt handler present
[ 0.281208] QMan: Allocated lookup table at ffffff800016d000, entry count 131073
[ 0.289372] Qman portal initialised, cpu 0
[ 0.293942] Qman portal initialised, cpu 1
[ 0.298506] Qman portal initialised, cpu 2
[ 0.303070] Qman portal initialised, cpu 3
[ 0.307185] Qman portals initialised
[ 0.310861] Bman: BPID allocator includes range 32:32
[ 0.315970] Qman: FQID allocator includes range 256:256
[ 0.321219] Qman: FQID allocator includes range 32768:32768
[ 0.326857] Qman: CGRID allocator includes range 0:256
[ 0.332135] Qman: pool channel allocator includes range 1025:15
[ 0.338136] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 0.344206] fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller
[ 0.350768] fsl-ifc 1530000.ifc: IFC version 1.4, 8 banks
[ 0.356795] clocksource: Switched to clocksource arch_sys_counter
[ 0.363058] pnp: PnP ACPI: disabled
[ 0.369757] NET: Registered protocol family 2
[ 0.374426] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.381789] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[ 0.388633] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.395233] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.401298] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.407873] NET: Registered protocol family 1
[ 0.412374] RPC: Registered named UNIX socket transport module.
[ 0.418323] RPC: Registered udp transport module.
[ 0.423043] RPC: Registered tcp transport module.
[ 0.427767] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.434915] futex hash table entries: 1024 (order: 5, 131072 bytes)
[ 0.441285] No memory allocated for crashlog
[ 0.448837] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.455053] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.465082] fuse init (API version 7.23)
[ 0.469457] io scheduler noop registered (default)
[ 0.474884] PCI host bridge /soc/pcie@3500000 ranges:
[ 0.479969] IO 0x4800010000..0x480001ffff -> 0x00000000
[ 0.485480] MEM 0x4840000000..0x487fffffff -> 0x40000000
[ 0.491072] layerscape-pcie 3500000.pcie: PCI host bridge to bus 0000:00
[ 0.497809] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.503317] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.509529] pci_bus 0000:00: root bus resource [mem 0x4840000000-0x487fffffff](bus address [0x40000000-0x7fffffff])
[ 0.536847] pci 0000:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]
[ 0.544017] pci 0000:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]
[ 0.551193] pci 0000:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]
[ 0.558802] pci 0000:00:00.0: BAR 8: assigned [mem 0x4846000000-0x48460fffff]
[ 0.565973] pci 0000:01:00.0: BAR 0: assigned [mem 0x4846000000-0x484601ffff 64bit]
[ 0.573704] pci 0000:01:00.0: BAR 6: assigned [mem 0x4846020000-0x484602ffff pref]
[ 0.581312] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.586297] pci 0000:00:00.0: bridge window [mem 0x4846000000-0x48460fffff]
[ 0.593624] PCI host bridge /soc/pcie@3600000 ranges:
[ 0.598706] IO 0x5000010000..0x500001ffff -> 0x00000000
[ 0.604215] MEM 0x5040000000..0x507fffffff -> 0x40000000
[ 0.609783] layerscape-pcie 3600000.pcie: PCI host bridge to bus 0001:00
[ 0.616515] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 0.622028] pci_bus 0001:00: root bus resource [io 0x10000-0x1ffff](bus address [0x0000-0xffff])
[ 0.631034] pci_bus 0001:00: root bus resource [mem 0x5040000000-0x507fffffff](bus address [0x40000000-0x7fffffff])
[ 0.641742] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.649838] pci 0001:00:00.0: BAR 1: assigned [mem 0x5040000000-0x5043ffffff]
[ 0.657012] pci 0001:00:00.0: BAR 0: assigned [mem 0x5044000000-0x5044ffffff]
[ 0.664182] pci 0001:00:00.0: BAR 6: assigned [mem 0x5045000000-0x5045ffffff pref]
[ 0.671789] pci 0001:00:00.0: PCI bridge to [bus 01]
[ 0.676795] pcieport 0001:00:00.0: enabling device (0000 -> 0002)
[ 0.683351] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.690797] console [ttyS0] disabled
[ 0.694430] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 18, base_baud = 25000000) is a 16550A
[ 0.703276] console [ttyS0] enabled
[ 0.703276] console [ttyS0] enabled
[ 0.710253] bootconsole [uart0] disabled
[ 0.710253] bootconsole [uart0] disabled
[ 0.718251] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 18, base_baud = 25000000) is a 16550A
[ 0.727149] 21d0500.serial: ttyS2 at MMIO 0x21d0500 (irq = 19, base_baud = 25000000) is a 16550A
[ 0.736037] 21d0600.serial: ttyS3 at MMIO 0x21d0600 (irq = 19, base_baud = 25000000) is a 16550A
[ 0.745138] Unable to detect cache hierarchy from DT for CPU 0
[ 0.754278] brd: module loaded
[ 0.759323] loop: module loaded
[ 0.764004] 60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00227e
[ 0.774003] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.779141] Amd/Fujitsu Extended Query version 1.3.
[ 0.784182] number of CFI chips: 1
[ 0.787586] 9 cmdlinepart partitions found on MTD device 60000000.nor
[ 0.794014] Creating 9 MTD partitions on "60000000.nor":
[ 0.799320] 0x000000000000-0x000000100000 : "rcw"
[ 0.804293] 0x000000100000-0x000000200000 : "u-boot"
[ 0.809517] 0x000000200000-0x000000300000 : "u-boot-env"
[ 0.815074] 0x000000300000-0x000000400000 : "fman"
[ 0.820121] 0x000000400000-0x000000500000 : "dtb"
[ 0.825072] 0x000000500000-0x000000a00000 : "kernel"
[ 0.830287] 0x000000a00000-0x000004000000 : "rootfs"
[ 0.835507] mtd: device 6 (rootfs) set to be root filesystem
[ 0.841173] 1 squashfs-split partitions found on MTD device rootfs
[ 0.847348] 0x000000b20000-0x000004000000 : "rootfs_data"
[ 0.852998] 0x000004000000-0x000008000000 : "otherbank"
[ 0.858469] 0x000000400000-0x000004000000 : "firmware"
[ 0.864392] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
[ 0.870740] nand: Micron MT29F4G08ABBDAH4
[ 0.874740] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.882563] Bad block table found at page 262080, version 0x01
[ 0.888863] Bad block table found at page 262016, version 0x01
[ 0.895275] fsl,ifc-nand 7e800000.nand: IFC NAND device at 0x7e800000, bank 1
[ 0.902856] libphy: Fixed MDIO Bus: probed
[ 0.907062] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.913358] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.919839] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.924838] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.929843] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.934843] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.939845] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.944842] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.949846] libphy: Freescale XGMAC MDIO Bus: probed
[ 0.966501] Freescale FM module, FMD API version 21.1.0
[ 0.973416] Freescale FM Ports module
[ 0.977077] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 0.982982] fsl_mac 1ae0000.ethernet: FMan MEMAC
[ 0.987600] fsl_mac 1ae0000.ethernet: FMan MAC address: 00:e0:0c:00:77:00
[ 0.994665] fsl_mac 1ae2000.ethernet: FMan MEMAC
[ 0.999279] fsl_mac 1ae2000.ethernet: FMan MAC address: 00:e0:0c:00:77:01
[ 1.006106] fsl_mac 1ae4000.ethernet: FMan MEMAC
[ 1.010719] fsl_mac 1ae4000.ethernet: FMan MAC address: 00:e0:0c:00:77:02
[ 1.017550] fsl_mac 1ae6000.ethernet: FMan MEMAC
[ 1.022159] fsl_mac 1ae6000.ethernet: FMan MAC address: 00:e0:0c:00:77:03
[ 1.029227] fsl_mac 1ae8000.ethernet: FMan MEMAC
[ 1.033837] fsl_mac 1ae8000.ethernet: FMan MAC address: 00:e0:0c:00:77:04
[ 1.040910] fsl_mac 1aea000.ethernet: FMan MEMAC
[ 1.045520] fsl_mac 1aea000.ethernet: FMan MAC address: 00:e0:0c:00:77:05
[ 1.052351] fsl_mac 1af0000.ethernet: FMan MEMAC
[ 1.056964] fsl_mac 1af0000.ethernet: FMan MAC address: 00:e0:0c:00:77:06
[ 1.063821] fsl_dpa: FSL DPAA Ethernet driver
[ 1.069885] fsl_dpa: fsl_dpa: Probed interface eth0
[ 1.076266] fsl_dpa: fsl_dpa: Probed interface eth1
[ 1.083006] fsl_dpa: fsl_dpa: Probed interface eth2
[ 1.090101] fsl_dpa: fsl_dpa: Probed interface eth3
[ 1.097556] fsl_dpa: fsl_dpa: Probed interface eth4
[ 1.105371] fsl_dpa: fsl_dpa: Probed interface eth5
[ 1.113552] fsl_dpa: fsl_dpa: Probed interface eth6
[ 1.118486] fsl_advanced: FSL DPAA Advanced drivers:
[ 1.123441] fsl_proxy: FSL DPAA Proxy initialization driver
[ 1.129138] fsl_dpa_shared: FSL DPAA Shared Ethernet driver
[ 1.134789] fsl_dpa_macless: FSL DPAA MACless Ethernet driver
[ 1.140615] fsl_oh: FSL FMan Offline Parsing port driver
[ 1.146749] Freescale USDPAA process driver
[ 1.150925] fsl-usdpaa: no region found
[ 1.154751] Freescale USDPAA process IRQ driver
[ 1.159690] NET: Registered protocol family 10
[ 1.164805] NET: Registered protocol family 17
[ 1.169265] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.181865] 8021q: 802.1Q VLAN Support v1.8
[ 1.186405] fsl_generic: FSL DPAA Generic Ethernet driver
[ 1.192380] fdt: not creating '/sys/firmware/fdt': CRC check failed
[ 1.200296] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 1.207452] Freeing unused kernel memory: 272K (ffffffc00078d000 - ffffffc0007d1000)
[ 1.215195] Freeing alternatives memory: 48K (ffffffc0007d1000 - ffffffc0007dd000)
[ 1.559475] init: Console is alive
[ 1.683647] pps_core: LinuxPPS API ver. 1 registered
[ 1.688618] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 1.698049] PTP clock support registered
[ 2.304500] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.309997] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.317723] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 2.326431] xhci-hcd xhci-hcd.0.auto: irq 27, io mem 0x02f00000
[ 2.332597] hub 1-0:1.0: USB hub found
[ 2.336347] hub 1-0:1.0: 1 port detected
[ 2.340353] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.345831] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.353515] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.361800] hub 2-0:1.0: USB hub found
[ 2.365548] hub 2-0:1.0: 1 port detected
[ 2.369571] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.375051] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 2.382774] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 2.391481] xhci-hcd xhci-hcd.1.auto: irq 28, io mem 0x03000000
[ 2.397602] hub 3-0:1.0: USB hub found
[ 2.401350] hub 3-0:1.0: 1 port detected
[ 2.405343] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.410828] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 2.418499] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.426775] hub 4-0:1.0: USB hub found
[ 2.430529] hub 4-0:1.0: 1 port detected
[ 2.434549] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 2.440056] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 5
[ 2.447777] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 2.456479] xhci-hcd xhci-hcd.2.auto: irq 29, io mem 0x03100000
[ 2.462600] hub 5-0:1.0: USB hub found
[ 2.466347] hub 5-0:1.0: 1 port detected
[ 2.470363] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 2.475841] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 6
[ 2.483513] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.491801] hub 6-0:1.0: USB hub found
[ 2.495548] hub 6-0:1.0: 1 port detected
[ 2.501149] sdhci: Secure Digital Host Controller Interface driver
[ 2.507328] sdhci: Copyright(c) Pierre Ossman
[ 2.511878] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.518168] usbcore: registered new interface driver usb-storage
[ 2.525882] sdhci-esdhc 1560000.esdhc: No vmmc regulator found
[ 2.531716] sdhci-esdhc 1560000.esdhc: No vqmmc regulator found
[ 2.576802] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 2.593613] init: - preinit -
[ 2.673670] random: jshn: uninitialized urandom read (4 bytes read, 2 bits of entropy available)
[ 2.689793] random: jshn: uninitialized urandom read (4 bytes read, 2 bits of entropy available)
[ 2.786845] usb usb5-port1: over-current condition
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 2.816822] usb usb6-port1: over-current condition
[ 5.866625] jffs2: notice: (975) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 5.882476] mount_root: switching to jffs2 overlay
[ 5.889660] urandom-seed: Seeding with /etc/urandom.seed
[ 5.918392] procd: - early -
[ 6.537893] procd: - ubus -
[ 6.592699] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.603745] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.612714] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.621748] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.632805] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.641799] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.650795] random: ubusd: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 6.659823] procd: - init -
Please press Enter to activate this console.
[ 6.712370] i2c /dev entries driver
[ 6.716583] i2c i2c-0: IMX I2C adapter registered
[ 6.721289] i2c i2c-0: can't use DMA
[ 6.726415] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 6.732250] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 7.855342] random: jshn: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[ 8.177271] device eth0 entered promiscuous mode
[ 8.182638] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 44.620060] random: nonblocking pool is initialized

BusyBox v1.25.0 () built-in shell (ash)

 _________
/        /\      _    ___ ___  ___

/ LE / \ | | | | | __|
/ DE / \ | |
| || |) | |
/________/ LE \ |
|**|**/|_| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (HEAD, r1262+446)
_____
_/ -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password

in order to prevent unauthorized SSH logins.

root@lede:/# ifconfig
br-lan Link encap:Ethernet HWaddr 00:E0:0C:00:77:00
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd4c:18ac:19c0::1/60 Scope:Global
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 00:E0:0C:00:77:00
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1551 (1.5 KiB)
Memory:1ae0000-1ae0fff

eth1 Link encap:Ethernet HWaddr 00:E0:0C:00:77:01
inet addr:10.193.20.43 Bcast:10.193.20.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:cff:fe00:7701/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1351 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:105801 (103.3 KiB) TX bytes:7224 (7.0 KiB)
Memory:1ae2000-1ae2fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:632 (632.0 B) TX bytes:632 (632.0 B)

root@lede:/# ping 10.193.20.106
PING 10.193.20.106 (10.193.20.106): 56 data bytes
64 bytes from 10.193.20.106: seq=0 ttl=64 time=0.370 ms
64 bytes from 10.193.20.106: seq=1 ttl=64 time=0.176 ms
64 bytes from 10.193.20.106: seq=2 ttl=64 time=0.173 ms
^C
--- 10.193.20.106 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.173/0.239/0.370 ms
root@lede:/# i2cdetect 0
i2cdetect: WARNING! This program can confuse your I2C bus
Continue? [y/N] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: -- -- 52 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 69 -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@lede:/#
root@lede:/# [ 186.573180] mmc0: new high speed SD card at address b368
[ 186.578732] mmcblk0: mmc0:b368 SMI 1.87 GiB
[ 186.584370] mmcblk0: p1 p2 p3 p4

root@lede:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
root@lede:/# fdisk -l

Disk /dev/mmcblk0: 2006 MB, 2006974464 bytes
62 heads, 62 sectors/track, 1019 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes

    Device Boot      Start         End      Blocks  Id System

/dev/mmcblk0p1 1 250 480469 b Win95 FAT32
/dev/mmcblk0p2 251 500 480500 83 Linux
/dev/mmcblk0p3 501 750 480500 83 Linux
/dev/mmcblk0p4 751 1000 480500 83 Linux
root@lede:/# mount /dev/mmcblk0p4 /mnt
[ 214.391895] EXT4-fs (mmcblk0p4): couldn't mount as ext3 due to feature incompatibilities
[ 214.400676] EXT4-fs (mmcblk0p4): mounting ext2 file system using the ext4 subsystem
[ 214.412373] EXT4-fs (mmcblk0p4): warning: mounting fs with errors, running e2fsck is recommended
[ 214.722844] EXT4-fs (mmcblk0p4): mounted filesystem without journal. Opts: (null)
root@lede:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/mmcblk0p4 on /mnt type ext2 (rw,relatime,block_validity,barrier,user_xattr)
root@lede:/# ls -l /mnt
[ 222.436741] EXT4-fs error (device mmcblk0p4): ext4_lookup:1583: inode #2: comm ls: deleted inode referenced: 83641
ls: /mnt/bbb: No error information
-rw-r--r-- 1 root root 29 Dec 13 2008 b.txt
drwx------ 2 root root 12288 Dec 13 2008 lost+found
root@lede:/# mkdir /mnt/abc
root@lede:/# ls -l /mnt
[ 231.967200] EXT4-fs error (device mmcblk0p4): ext4_lookup:1583: inode #2: comm ls: deleted inode referenced: 83641
ls: /mnt/bbb: No error information
drwxr-xr-x 2 root root 1024 Sep 28 08:29 abc
-rw-r--r-- 1 root root 29 Dec 13 2008 b.txt
drwx------ 2 root root 12288 Dec 13 2008 lost+found
root@lede:/# umount /mnt
root@lede:/#
root@lede:/#
root@lede:/# [ 251.720703] mmc0: card b368 removed

root@lede:/#
root@lede:/# [ 542.825732] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 542.951285] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 542.957465] scsi host0: usb-storage 2-1:1.0
[ 544.020759] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[ 545.427424] sd 0:0:0:0: [sda] 30497664 512-byte logical blocks: (15.6 GB/14.5 GiB)
[ 545.435068] sd 0:0:0:0: [sda] Write Protect is off
[ 545.439953] sd 0:0:0:0: [sda] No Caching mode page found
[ 545.445255] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 545.475493] sda: sda1
[ 545.478734] sd 0:0:0:0: [sda] Attached SCSI removable disk

root@lede:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
root@lede:/# fdisk /dev/sda

The number of cylinders for this disk is set to 4310.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:

  1. software that runs at boot time (e.g., old versions of LILO)
  2. booting and partitioning software from other OSs
    (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 15.6 GB, 15614803968 bytes
122 heads, 58 sectors/track, 4310 cylinders
Units = cylinders of 7076 * 512 = 3622912 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 2 4311 15244800 c Win95 FAT32 (LBA)

Command (m for help): d
Selected partition 1

Command (m for help): p

Disk /dev/sda: 15.6 GB, 15614803968 bytes
122 heads, 58 sectors/track, 4310 cylinders
Units = cylinders of 7076 * 512 = 3622912 bytes

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-4310, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-4310, default 4310): 1

Command (m for help): p

Disk /dev/sda: 15.6 GB, 15614803968 bytes
122 heads, 58 sectors/track, 4310 cylinders
Units = cylinders of 7076 * 512 = 3622912 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 1 3509 83 Linux

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (2-4310, default 2): Using default value 2
Last cylinder or +size or +sizeM or +sizeK (2-4310, default 4310): Using default value 4310

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
[ 624.214565] sda: sda1 sda2
root@lede:/#
root@lede:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
root@lede:/# mkfs.ext2 /dev/sda1
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
880 inodes, 3509 blocks
175 blocks (5%) reserved for the super user
First data block=1
Maximum filesystem blocks=262144
1 block groups
8192 blocks per group, 8192 fragments per group
880 inodes per group
root@lede:/#
root@lede:/#
root@lede:/# mount /dev/sda1 /mnt
[ 650.733431] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[ 650.741604] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[ 650.768612] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
root@lede:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/sda1 on /mnt type ext2 (rw,relatime,block_validity,barrier,user_xattr)
root@lede:/# ls -l /mnt
drwxr-xr-x 2 root root 12288 Sep 28 08:36 lost+found
root@lede:/# mkdir /mnt/aaa
root@lede:/# date > /mnt/d.txt
root@lede:/# ls -l /mnt
drwxr-xr-x 2 root root 1024 Sep 28 08:36 aaa
-rw-r--r-- 1 root root 29 Sep 28 08:36 d.txt
drwxr-xr-x 2 root root 12288 Sep 28 08:36 lost+found
root@lede:/# cat /mnt/d.txt
Wed Sep 28 08:36:35 UTC 2016
root@lede:/#
root@lede:/#
root@lede:/# umount /mnt
root@lede:/#
root@lede:/#
root@lede:/# [ 684.679175] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 684.910524] usb 2-1: Device not responding to setup address.
[ 685.119144] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 685.429170] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 685.589175] usb 2-1: USB disconnect, device number 2

root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/# uname -a
Linux lede 4.4.21 #0 SMP Wed Sep 28 15:20:57 2016 aarch64 GNU/Linux
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/# reboot
root@lede:/# [ 928.121410] device eth0 left promiscuous mode
[ 928.125844] br-lan: port 1(eth0) entered disabled state
[ 928.151331] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 932.486773] reboot: Restarting system

U-Boot 2016.012.0+ga9b437f (May 15 2016 - 11:01:10 +0800)

SoC: unknown (0x87920410)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 08100010 0a000000 00000000 00000000
00000010: 14550002 80004012 e0025000 c1002000
00000020: 00000000 00000000 00000000 00038800
00000030: 00000000 00001101 00000096 00000001
I2C: ready
Model: LS1043A RDB Board
Board: LS1043ARDB, boot from vBank 0
CPLD: V1.4
PCBA: V2.0
SERDES Reference Clocks:
SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ
DRAM: Initializing DDR....
Detected UDIMM Fixed DDR on board
2 GiB (DDR4, 32-bit, CL=11, ECC off)
SEC0: RNG instantiated
fsl-ppa: Bad firmware image (not a FIT image)
fsl-ppa: error (-22)
Not a microcode
fsl-ppa: Bad firmware image (not a FIT image)
Waking secondary cores to start from ffd0a000
All (4) cores are up.
Using SERDES1 Protocol: 5205 (0x1455)
Flash: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: disabled
PCIe2: Root Complex x1 gen1, regs @ 0x3500000
PCI:
01:00.0 - 168c:0030 - Network controller
PCIe2: Bus 00 - 01
PCIe3: Root Complex no link, regs @ 0x3600000
In: serial
Out: serial
Err: serial
SCSI: Error: SCSI Controller(s) 1B4B:9170 not found
Net: Fman1: Uploading microcode version 106.4.18
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1
Hit any key to stop autoboot: 0
=> tftp a0000000 jyt/openwrt/ls1043/u-boot-dtb.bin-32b && protect off all && erase 64100000 +100000 && cp.b a0000000 64100000 $filesize
FM1@DTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
FM1@DTSEC1: No link.
Using FM1@DTSEC2 device
TFTP from server 10.192.208.142; our IP address is 10.193.20.234; sending through gateway 10.193.20.254
Filename 'jyt/openwrt/ls1043/u-boot-dtb.bin-32b'.
Load address: 0xa0000000
Loading: ###########################################
6.4 MiB/s
done
Bytes transferred = 620227 (976c3 hex)
Un-Protect Flash Bank # 1

........ done
Erased 8 sectors
Copy to Flash... 9....8....7....6....5....4....3....2....1....done
=> cpld reset altbank?

U-Boot 2016.01-08967-g87a4707 (Jul 07 2016 - 11:21:29 +0800)

SoC: unknown (0x87920410)
Clock Configuration:
CPU0(A53):1600 MHz CPU1(A53):1600 MHz CPU2(A53):1600 MHz
CPU3(A53):1600 MHz
Bus: 400 MHz DDR: 1600 MT/s FMAN: 500 MHz
Reset Configuration Word (RCW):
00000000: 08100010 0a000000 00000000 00000000
00000010: 14550002 80004012 e0025000 c1002000
00000020: 00000000 00000000 00000000 00038800
00000030: 00000000 00001101 00000096 00000001
I2C: ready
Model: LS1043A RDB Board
Board: LS1043ARDB, boot from vBank 4
CPLD: V1.4
PCBA: V2.0
SERDES Reference Clocks:
SD1_CLK1 = 156.25MHZ, SD1_CLK2 = 100.00MHZ
DRAM: Initializing DDR....
Detected UDIMM Fixed DDR on board
2 GiB (DDR4, 32-bit, CL=11, ECC off)
SEC0: RNG instantiated
Not a microcode
Waking secondary cores to start from ffd08000
All (4) cores are up.
Using SERDES1 Protocol: 5205 (0x1455)
Flash: 128 MiB
NAND: 512 MiB
MMC: FSL_SDHC: 0
EEPROM: NXID v1
PCIe1: disabled
PCIe2: Root Complex x1 gen1, regs @ 0x3500000
PCI:
01:00.0 - 168c:0030 - Network controller
PCIe2: Bus 00 - 01
PCIe3: Root Complex no link, regs @ 0x3600000
In: serial
Out: serial
Err: serial
SCSI: Error: SCSI Controller(s) 1B4B:9170 not found
Net: Fman1: Uploading microcode version 106.4.18
FM1@DTSEC1, FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@DTSEC5, FM1@DTSEC6, FM1@TGEC1
Hit any key to stop autoboot: 0
=> pri
baudrate=115200
bootargs=root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware)
bootcmd=run wrtboot
bootdelay=3
console=ttyAMA0,38400n8
eth1addr=00:e0:0c:00:77:01
eth2addr=00:e0:0c:00:77:02
eth3addr=00:e0:0c:00:77:03
eth4addr=00:e0:0c:00:77:04
eth5addr=00:e0:0c:00:77:05
eth6addr=00:e0:0c:00:77:06
ethact=FM1@DTSEC1
ethaddr=00:e0:0c:00:77:00
ethprime=e1000#0
fdt_high=0xffffffffffffffff
fdtaddr=8f000000
fdtcontroladdr=ffbc5738
fileaddr=a0000000
filesize=3c00000
fman_ucode=60300000
gatewayip=192.168.1.1
hwconfig=fsl_ddr:bank_intlv=auto
initrd_high=0xffffffffffffffff
ipaddr=10.193.20.234
kernel_addr=0x100000
kernel_load=0xa0000000
kernel_size=0x2800000
kernel_start=0x61100000
loadaddr=82000000
netmask=255.255.255.0
ramdisk_addr=0x800000
ramdisk_size=0x2000000
ramdiskaddr=88000000
scsidevs=0
serverip=10.192.208.142
stderr=serial
stdin=serial
stdout=serial
wrtboot=setenv bootargs root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware) && cp.b 60400000 $fdtaddr 100000 && cp.b 60500000 $loadaddr 500000 && bootm $loadaddr - $fdtaddr

Environment size: 1493/131068 bytes
=> tftp a0000000 jyt/openwrt/ls1043/lede-layerscape-32b-ls1043ardb-32bit-squashfs-firmware.bin && protect off all && erase 60400000 +3c00000 && cp.b a0000000 60400000 $filesize && run wrtboot
FM1@DTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
FM1@DTSEC1: No link.
Using FM1@DTSEC2 device
TFTP from server 10.192.208.142; our IP address is 10.193.20.234; sending through gateway 192.168.1.1
Filename 'jyt/openwrt/ls1043/lede-layerscape-32b-ls1043ardb-32bit-squashfs-firmware.bin'.
Load address: 0xa0000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################################
6.6 MiB/s
done
Bytes transferred = 62914560 (3c00000 hex)
Un-Protect Flash Bank # 1

................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ done
Erased 480 sectors
Copy to Flash... 9....8....7....6....5....4....3....2....1....done

Booting kernel from Legacy Image at 82000000 ...

Image Name: ARM LEDE Linux-4.4.21
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 2883845 Bytes = 2.8 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK

Flattened Device Tree blob at 8f000000

Booting using the fdt blob at 0x8f000000
Uncompressing Kernel Image ... OK
Using Device Tree in place at 000000008f000000, end 000000008f0197c6

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.21 (jyt@BP) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1262+1) ) #0 SMP Wed Sep 28 15:20:57 2016
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=30c5383d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: LS1043A RDB Board
[ 0.000000] Truncating RAM at 0x0000000080000000-0x00000000ffe00000 to -0x00000000f0000000
[ 0.000000] Consider using a HIGHMEM enabled kernel.
[ 0.000000] Reserved memory: initialized node qman-fqd, compatible id fsl,qman-fqd
[ 0.000000] Reserved memory: initialized node qman-pfdr, compatible id fsl,qman-pfdr
[ 0.000000] Reserved memory: initialized node bman-fbpr, compatible id fsl,bman-fbpr
[ 0.000000] Forcing write-allocate cache policy for SMP
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 12 pages/cpu @ef7af000 s19328 r8192 d21632 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 455168
[ 0.000000] Kernel command line: root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1M(rcw),1M(u-boot),1M(u-boot-env),1M(fman),1M(dtb),5M(kernel),54M(rootfs),64M(otherbank),60M@0x400000(firmware)
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes)
[ 0.000000] Inode-cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Memory: 1754504K/1835008K available (4391K kernel code, 163K rwdata, 1572K rodata, 272K init, 471K bss, 80504K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0x80000000 - 0xf0000000 (1792 MB)
[ 0.000000] modules : 0x7f000000 - 0x80000000 ( 16 MB)
[ 0.000000] .text : 0x80008000 - 0x805db00c (5965 kB)
[ 0.000000] .init : 0x805dc000 - 0x80620000 ( 272 kB)
[ 0.000000] .data : 0x80620000 - 0x80648c08 ( 164 kB)
[ 0.000000] .bss : 0x80648c08 - 0x806bebb8 ( 472 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] GIC: Using split EOI/Deactivate mode
[ 0.000000] Architected cp15 timer(s) running at 25.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c40939b5, max_idle_ns: 440795202646 ns
[ 0.000002] sched_clock: 56 bits at 25MHz, resolution 40ns, wraps every 4398046511100ns
[ 0.000008] Switching to timer-based delay loop, resolution 40ns
[ 0.000711] Console: colour dummy device 80x30
[ 0.000725] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[ 0.000732] pid_max: default: 32768 minimum: 301
[ 0.000770] Mount-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000775] Mountpoint-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.001026] CPU: Testing write buffer coherency: ok
[ 0.001152] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001171] Setting up static identity map for 0x800082c0 - 0x800082f4
[ 0.001758] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.001993] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.002223] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.002244] Brought up 4 CPUs
[ 0.002253] SMP: Total of 4 processors activated (200.00 BogoMIPS).
[ 0.002257] CPU: All CPU(s) started in HYP mode.
[ 0.002260] CPU: Virtualization extensions available.
[ 0.005630] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.005712] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.005758] pinctrl core: initialized pinctrl subsystem
[ 0.006053] NET: Registered protocol family 16
[ 0.006211] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.006457] Bman ver:0a02,02,01
[ 0.009294] qman-fqd addr 0xef800000 size 0x800000
[ 0.009298] qman-pfdr addr 0xec000000 size 0x2000000
[ 0.009303] Qman ver:0a01,03,02,00
[ 0.040415] SCSI subsystem initialized
[ 0.040556] usbcore: registered new interface driver usbfs
[ 0.040588] usbcore: registered new interface driver hub
[ 0.040615] usbcore: registered new device driver usb
[ 0.040661] pps_core: LinuxPPS API ver. 1 registered
[ 0.040664] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.040683] PTP clock support registered
[ 0.040734] bman-fbpr addr 0xee000000 size 0x1000000
[ 0.040763] Bman err interrupt handler present
[ 0.041166] Bman portal initialised, cpu 0
[ 0.041217] Bman portal initialised, cpu 1
[ 0.041267] Bman portal initialised, cpu 2
[ 0.041319] Bman portal initialised, cpu 3
[ 0.041323] Bman portals initialised
[ 0.042369] Qman err interrupt handler present
[ 0.043188] Qman portal initialised, cpu 0
[ 0.043633] Qman portal initialised, cpu 1
[ 0.044078] Qman portal initialised, cpu 2
[ 0.044520] Qman portal initialised, cpu 3
[ 0.044524] Qman portals initialised
[ 0.044637] Bman: BPID allocator includes range 32:32
[ 0.044688] Qman: FQID allocator includes range 256:256
[ 0.044693] Qman: FQID allocator includes range 32768:32768
[ 0.044749] Qman: CGRID allocator includes range 0:256
[ 0.044880] Qman: pool channel allocator includes range 1025:15
[ 0.044951] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 0.044993] fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller
[ 0.045004] fsl-ifc 1530000.ifc: IFC version 1.4, 8 banks
[ 0.045567] clocksource: Switched to clocksource arch_sys_counter
[ 0.047850] NET: Registered protocol family 2
[ 0.048124] TCP established hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.048203] TCP bind hash table entries: 16384 (order: 5, 131072 bytes)
[ 0.048340] TCP: Hash tables configured (established 16384 bind 16384)
[ 0.048369] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.048402] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[ 0.048497] NET: Registered protocol family 1
[ 0.049056] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.049118] No memory allocated for crashlog
[ 0.052447] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.052456] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.053039] io scheduler noop registered
[ 0.053045] io scheduler deadline registered (default)
[ 0.053672] PCI host bridge /soc/pcie@3500000 ranges:
[ 0.053686] IO 0x4800010000..0x480001ffff -> 0x00000000
[ 0.053693] MEM 0x4840000000..0x487fffffff -> 0x40000000
[ 0.053778] layerscape-pcie 3500000.pcie: PCI host bridge to bus 0000:00
[ 0.053786] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.053794] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.053802] pci_bus 0000:00: root bus resource [mem 0x4840000000-0x487fffffff](bus address [0x40000000-0x7fffffff])
[ 0.053973] PCI: bus0: Fast back to back transfers disabled
[ 0.075613] PCI: bus1: Fast back to back transfers disabled
[ 0.075677] pci 0000:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]
[ 0.075686] pci 0000:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]
[ 0.075693] pci 0000:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]
[ 0.075700] pci 0000:00:00.0: BAR 8: assigned [mem 0x4846000000-0x48460fffff]
[ 0.075708] pci 0000:01:00.0: BAR 0: assigned [mem 0x4846000000-0x484601ffff 64bit]
[ 0.075751] pci 0000:01:00.0: BAR 6: assigned [mem 0x4846020000-0x484602ffff pref]
[ 0.075757] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.075764] pci 0000:00:00.0: bridge window [mem 0x4846000000-0x48460fffff]
[ 0.075944] PCI host bridge /soc/pcie@3600000 ranges:
[ 0.075954] IO 0x5000010000..0x500001ffff -> 0x00000000
[ 0.075961] MEM 0x5040000000..0x507fffffff -> 0x40000000
[ 0.076030] layerscape-pcie 3600000.pcie: PCI host bridge to bus 0001:00
[ 0.076036] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 0.076043] pci_bus 0001:00: root bus resource [io 0x10000-0x1ffff](bus address [0x0000-0xffff])
[ 0.076050] pci_bus 0001:00: root bus resource [mem 0x5040000000-0x507fffffff](bus address [0x40000000-0x7fffffff])
[ 0.076202] PCI: bus0: Fast back to back transfers disabled
[ 0.076209] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.076256] PCI: bus1: Fast back to back transfers enabled
[ 0.076313] pci 0001:00:00.0: BAR 1: assigned [mem 0x5040000000-0x5043ffffff]
[ 0.076320] pci 0001:00:00.0: BAR 0: assigned [mem 0x5044000000-0x5044ffffff]
[ 0.076328] pci 0001:00:00.0: BAR 6: assigned [mem 0x5045000000-0x5045ffffff pref]
[ 0.076334] pci 0001:00:00.0: PCI bridge to [bus 01]
[ 0.076358] pcieport 0001:00:00.0: enabling device (0140 -> 0142)
[ 0.076602] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.077993] console [ttyS0] disabled
[ 0.078011] 21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 33, base_baud = 25000000) is a 16550A
[ 0.921413] console [ttyS0] enabled
[ 0.925038] 21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 33, base_baud = 25000000) is a 16550A
[ 0.933956] 21d0500.serial: ttyS2 at MMIO 0x21d0500 (irq = 34, base_baud = 25000000) is a 16550A
[ 0.942874] 21d0600.serial: ttyS3 at MMIO 0x21d0600 (irq = 34, base_baud = 25000000) is a 16550A
[ 0.955740] brd: module loaded
[ 0.961067] loop: module loaded
[ 0.965272] 60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00227e
[ 0.975275] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.980416] Amd/Fujitsu Extended Query version 1.3.
[ 0.985458] number of CFI chips: 1
[ 0.988866] 9 cmdlinepart partitions found on MTD device 60000000.nor
[ 0.995295] Creating 9 MTD partitions on "60000000.nor":
[ 1.000603] 0x000000000000-0x000000100000 : "rcw"
[ 1.005651] 0x000000100000-0x000000200000 : "u-boot"
[ 1.010928] 0x000000200000-0x000000300000 : "u-boot-env"
[ 1.016569] 0x000000300000-0x000000400000 : "fman"
[ 1.021677] 0x000000400000-0x000000500000 : "dtb"
[ 1.026669] 0x000000500000-0x000000a00000 : "kernel"
[ 1.031914] 0x000000a00000-0x000004000000 : "rootfs"
[ 1.037168] mtd: device 6 (rootfs) set to be root filesystem
[ 1.042829] 1 squashfs-split partitions found on MTD device rootfs
[ 1.049008] 0x000000b00000-0x000004000000 : "rootfs_data"
[ 1.054704] 0x000004000000-0x000008000000 : "otherbank"
[ 1.060231] 0x000000400000-0x000004000000 : "firmware"
[ 1.066250] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xac
[ 1.072592] nand: Micron MT29F4G08ABBDAH4
[ 1.076596] nand: 512 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 1.084404] Bad block table found at page 262080, version 0x01
[ 1.090692] Bad block table found at page 262016, version 0x01
[ 1.097179] fsl,ifc-nand 7e800000.nand: IFC NAND device at 0x7e800000, bank 1
[ 1.104792] libphy: Fixed MDIO Bus: probed
[ 1.109514] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.115890] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.122382] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.127408] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.132415] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.137428] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.142436] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.147449] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.152456] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.169270] Freescale FM module, FMD API version 21.1.0
[ 1.176551] Freescale FM Ports module
[ 1.180206] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 1.186128] fsl_mac 1ae0000.ethernet: FMan MEMAC
[ 1.190741] fsl_mac 1ae0000.ethernet: FMan MAC address: 00:e0:0c:00:77:00
[ 1.197818] fsl_mac 1ae2000.ethernet: FMan MEMAC
[ 1.202428] fsl_mac 1ae2000.ethernet: FMan MAC address: 00:e0:0c:00:77:01
[ 1.209265] fsl_mac 1ae4000.ethernet: FMan MEMAC
[ 1.213876] fsl_mac 1ae4000.ethernet: FMan MAC address: 00:e0:0c:00:77:02
[ 1.220715] fsl_mac 1ae6000.ethernet: FMan MEMAC
[ 1.225325] fsl_mac 1ae6000.ethernet: FMan MAC address: 00:e0:0c:00:77:03
[ 1.232407] fsl_mac 1ae8000.ethernet: FMan MEMAC
[ 1.237023] fsl_mac 1ae8000.ethernet: FMan MAC address: 00:e0:0c:00:77:04
[ 1.244099] fsl_mac 1aea000.ethernet: FMan MEMAC
[ 1.248714] fsl_mac 1aea000.ethernet: FMan MAC address: 00:e0:0c:00:77:05
[ 1.255552] fsl_mac 1af0000.ethernet: FMan MEMAC
[ 1.260168] fsl_mac 1af0000.ethernet: FMan MAC address: 00:e0:0c:00:77:06
[ 1.267042] fsl_dpa: FSL DPAA Ethernet driver
[ 1.273017] fsl_dpa: fsl_dpa: Probed interface eth0
[ 1.278973] fsl_dpa: fsl_dpa: Probed interface eth1
[ 1.284941] fsl_dpa: fsl_dpa: Probed interface eth2
[ 1.290851] fsl_dpa: fsl_dpa: Probed interface eth3
[ 1.296771] fsl_dpa: fsl_dpa: Probed interface eth4
[ 1.302686] fsl_dpa: fsl_dpa: Probed interface eth5
[ 1.308622] fsl_dpa: fsl_dpa: Probed interface eth6
[ 1.313551] fsl_advanced: FSL DPAA Advanced drivers:
[ 1.318516] fsl_proxy: FSL DPAA Proxy initialization driver
[ 1.324210] fsl_dpa_shared: FSL DPAA Shared Ethernet driver
[ 1.329880] fsl_dpa_macless: FSL DPAA MACless Ethernet driver
[ 1.335720] fsl_oh: FSL FMan Offline Parsing port driver
[ 1.342094] Freescale USDPAA process driver
[ 1.346270] fsl-usdpaa: no region found
[ 1.350096] Freescale USDPAA process IRQ driver
[ 1.355144] NET: Registered protocol family 10
[ 1.360253] NET: Registered protocol family 17
[ 1.364708] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 1.377312] 8021q: 802.1Q VLAN Support v1.8
[ 1.381551] Registering SWP/SWPB emulation handler
[ 1.386680] fsl_generic: FSL DPAA Generic Ethernet driver
[ 1.392183] hctosys: unable to open rtc device (rtc0)
[ 1.397657] fdt: not creating '/sys/firmware/fdt': CRC check failed
[ 1.405572] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 1.412810] Freeing unused kernel memory: 272K (805dc000 - 80620000)
[ 1.730149] init: Console is alive
[ 2.433476] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.438973] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
[ 2.446701] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 2.455411] xhci-hcd xhci-hcd.0.auto: irq 42, io mem 0x02f00000
[ 2.461606] hub 1-0:1.0: USB hub found
[ 2.465357] hub 1-0:1.0: 1 port detected
[ 2.469388] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
[ 2.474867] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
[ 2.482545] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.490838] hub 2-0:1.0: USB hub found
[ 2.494587] hub 2-0:1.0: 1 port detected
[ 2.498624] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.504105] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 3
[ 2.511834] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 2.520542] xhci-hcd xhci-hcd.1.auto: irq 43, io mem 0x03000000
[ 2.526674] hub 3-0:1.0: USB hub found
[ 2.530423] hub 3-0:1.0: 1 port detected
[ 2.534430] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller
[ 2.539916] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 4
[ 2.547591] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.555889] hub 4-0:1.0: USB hub found
[ 2.559638] hub 4-0:1.0: 1 port detected
[ 2.563663] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 2.569153] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 5
[ 2.576879] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f66d hci version 0x100 quirks 0x00010010
[ 2.585586] xhci-hcd xhci-hcd.2.auto: irq 44, io mem 0x03100000
[ 2.591732] hub 5-0:1.0: USB hub found
[ 2.595482] hub 5-0:1.0: 1 port detected
[ 2.599505] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[ 2.604985] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 6
[ 2.612664] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[ 2.620963] hub 6-0:1.0: USB hub found
[ 2.624713] hub 6-0:1.0: 1 port detected
[ 2.630143] sdhci: Secure Digital Host Controller Interface driver
[ 2.636319] sdhci: Copyright(c) Pierre Ossman
[ 2.640856] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.647072] usbcore: registered new interface driver usb-storage
[ 2.654761] sdhci-esdhc 1560000.esdhc: No vmmc regulator found
[ 2.660591] sdhci-esdhc 1560000.esdhc: No vqmmc regulator found
[ 2.715575] mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA 64-bit
[ 2.725639] init: - preinit -
[ 2.815294] random: jshn: uninitialized urandom read (4 bytes read, 0 bits of entropy available)
[ 2.832581] random: jshn: uninitialized urandom read (4 bytes read, 0 bits of entropy available)
[ 2.915587] usb usb5-port1: over-current condition
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug[ 2.975601] usb usb6-port1: over-current condition
level
[ 6.027919] mount_root: no usable overlay filesystem found, using tmpfs overlay
[ 6.036163] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 6.081700] cpu 2: > WARNING (FM-Port) [CPU02, drivers/net/ethernet/freescale/sdk_fman/Peripherals/FM/Port/fm_port.c:3547 FM_PORT_Disable]:
[ 6.094133] cpu 2: FM-0-port-1g-TX-0: BMI or QMI is Busy. Port forced down[ 6.101004] cpu 2:
[ 6.117494] procd: - early -
[ 6.726104] procd: - ubus -
[ 6.785732] random: ubusd: uninitialized urandom read (4 bytes read, 3 bits of entropy available)
[ 6.794653] random: ubusd: uninitialized urandom read (4 bytes read, 3 bits of entropy available)
[ 6.803537] random: ubusd: uninitialized urandom read (4 bytes read, 3 bits of entropy available)
[ 6.812488] random: ubusd: uninitialized urandom read (4 bytes read, 3 bits of entropy available)
[ 6.821368] random: ubusd: uninitialized urandom read (4 bytes read, 4 bits of entropy available)
[ 6.830275] random: ubusd: uninitialized urandom read (4 bytes read, 4 bits of entropy available)
[ 6.839180] random: ubusd: uninitialized urandom read (4 bytes read, 4 bits of entropy available)
[ 6.848119] procd: - init -
Please press Enter to activate this console.
[ 6.882122] i2c /dev entries driver
[ 6.888567] i2c i2c-0: IMX I2C adapter registered
[ 6.893264] i2c i2c-0: can't use DMA
[ 6.898196] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 6.904018] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 7.950944] random: jshn: uninitialized urandom read (4 bytes read, 4 bits of entropy available)
[ 8.355270] jffs2: notice: (1301) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 8.427536] device eth0 entered promiscuous mode
[ 8.434935] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 8.854524] random: nonblocking pool is initialized

BusyBox v1.25.0 () built-in shell (ash)

 _________
/        /\      _    ___ ___  ___

/ LE / \ | | | | | __|
/ DE / \ | |
| || |) | |
/________/ LE \ |
|**|**/|_| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (HEAD, r1262+446)
_____
_/ -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password

in order to prevent unauthorized SSH logins.

root@lede:/# ifconfig
br-lan Link encap:Ethernet HWaddr 00:E0:0C:00:77:00
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd55:21e9:9304::1/60 Scope:Global
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

eth0 Link encap:Ethernet HWaddr 00:E0:0C:00:77:00
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1461 (1.4 KiB)
Memory:1ae0000-1ae0fff

eth1 Link encap:Ethernet HWaddr 00:E0:0C:00:77:01
inet addr:10.193.20.43 Bcast:10.193.20.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:cff:fe00:7701/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:344 errors:0 dropped:0 overruns:0 frame:0
TX packets:54 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27812 (27.1 KiB) TX bytes:8395 (8.1 KiB)
Memory:1ae2000-1ae2fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:632 (632.0 B) TX bytes:632 (632.0 B)

root@lede:/# ping 10.193.20.106
PING 10.193.20.106 (10.193.20.106): 56 data bytes
64 bytes from 10.193.20.106: seq=0 ttl=64 time=0.305 ms
64 bytes from 10.193.20.106: seq=1 ttl=64 time=0.776 ms
64 bytes from 10.193.20.106: seq=2 ttl=64 time=0.104 ms
^C
--- 10.193.20.106 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.104/0.395/0.776 ms
root@lede:/# i2cdetect 0
i2cdetect: WARNING! This program can confuse your I2C bus
Continue? [y/N] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- -- -- -- -- -- -- -- 4c -- -- --
50: -- -- 52 53 -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 69 -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@lede:/#
root@lede:/#
root@lede:/# [ 70.945539] usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd
[ 71.074746] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 71.082942] scsi host0: usb-storage 2-1:1.0
[ 72.150452] scsi 0:0:0:0: Direct-Access Kingston DataTraveler 3.0 PMAP PQ: 0 ANSI: 6
[ 73.356978] sd 0:0:0:0: [sda] 30497664 512-byte logical blocks: (15.6 GB/14.5 GiB)
[ 73.364627] sd 0:0:0:0: [sda] Write Protect is off
[ 73.369517] sd 0:0:0:0: [sda] No Caching mode page found
[ 73.374821] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 73.405034] sda: sda1 sda2
[ 73.408660] sd 0:0:0:0: [sda] Attached SCSI removable disk

root@lede:/# mount
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,nosuid,nodev,noexec,noatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime)
tmpfs on /tmp/root type tmpfs (rw,noatime,mode=755)
tmpfs on /dev type tmpfs (rw,nosuid,relatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600)
debugfs on /sys/kernel/debug type debugfs (rw,noatime)
/dev/mtdblock7 on /overlay type jffs2 (rw,noatime)
overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work)
root@lede:/# mount /dev/sda1 /mnt
[ 89.097448] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[ 89.105812] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[ 89.115812] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
root@lede:/# ls -l /mnt
drwxr-xr-x 2 root root 1024 Sep 28 08:36 aaa
-rw-r--r-- 1 root root 29 Sep 28 08:36 d.txt
drwxr-xr-x 2 root root 12288 Sep 28 08:36 lost+found
root@lede:/# cat /mnt/d.txt
Wed Sep 28 08:36:35 UTC 2016
root@lede:/# mkdir /mnt/bbb
root@lede:/# ls -l /mnt
drwxr-xr-x 2 root root 1024 Sep 28 08:36 aaa
drwxr-xr-x 2 root root 1024 Sep 28 08:45 bbb
-rw-r--r-- 1 root root 29 Sep 28 08:36 d.txt
drwxr-xr-x 2 root root 12288 Sep 28 08:36 lost+found
root@lede:/# umount /mnt
root@lede:/#
root@lede:/#
root@lede:/# [ 110.037710] usb 2-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 110.181343] usb 2-1: USB disconnect, device number 2

root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/# [ 120.511807] mmc0: new high speed SD card at address b368
[ 120.517334] mmcblk0: mmc0:b368 SMI 1.87 GiB
[ 120.522913] mmcblk0: p1 p2 p3 p4

root@lede:/# fdisk -l

Disk /dev/mmcblk0: 2006 MB, 2006974464 bytes
62 heads, 62 sectors/track, 1019 cylinders
Units = cylinders of 3844 * 512 = 1968128 bytes

    Device Boot      Start         End      Blocks  Id System

/dev/mmcblk0p1 1 250 480469 b Win95 FAT32
/dev/mmcblk0p2 251 500 480500 83 Linux
/dev/mmcblk0p3 501 750 480500 83 Linux
/dev/mmcblk0p4 751 1000 480500 83 Linux
root@lede:/# mount /dev/mmcblk0p4 /mnt
[ 135.827796] EXT4-fs (mmcblk0p4): couldn't mount as ext3 due to feature incompatibilities
[ 135.836695] EXT4-fs (mmcblk0p4): mounting ext2 file system using the ext4 subsystem
[ 135.848765] EXT4-fs (mmcblk0p4): warning: mounting fs with errors, running e2fsck is recommended
[ 135.862008] EXT4-fs (mmcblk0p4): mounted filesystem without journal. Opts: (null)
root@lede:/# ls -l /mnt
[ 138.222370] EXT4-fs error (device mmcblk0p4): ext4_lookup:1583: inode #2: comm ls: deleted inode referenced: 83641
ls: /mnt/bbb: No error information
-rw-r--r-- 1 root root 29 Dec 13 2008 b.txt
drwx------ 2 root root 12288 Dec 13 2008 lost+found
root@lede:/# mkdir /mnt/abc
root@lede:/# ls -l /mnt
[ 148.114988] EXT4-fs error (device mmcblk0p4): ext4_lookup:1583: inode #2: comm ls: deleted inode referenced: 83641
ls: /mnt/bbb: No error information
drwxr-xr-x 2 root root 1024 Sep 28 08:46 abc
-rw-r--r-- 1 root root 29 Dec 13 2008 b.txt
drwx------ 2 root root 12288 Dec 13 2008 lost+found
root@lede:/# umount /mnt
root@lede:/#
root@lede:/#
root@lede:/# [ 156.518564] mmc0: card b368 removed

root@lede:/#
root@lede:/#
root@lede:/#
root@lede:/# uname -a
Linux lede 4.4.21 #0 SMP Wed Sep 28 15:20:57 2016 armv7l GNU/Linux
root@lede:/#
root@lede:/# cat /proc/interrupts
CPU0 CPU1 CPU2 CPU3
16: 0 0 0 0 GICv2 29 Edge arch_timer
17: 16925 16933 16934 16934 GICv2 30 Edge arch_timer
26: 9 0 0 0 GICv2 75 Level fsl-ifc
27: 7016 0 0 0 GICv2 94 Level mmc0
28: 0 0 0 0 GICv2 77 Level bman-err, qman-err, fman-err
29: 0 0 0 0 GICv2 76 Level fman
32: 119 0 0 0 GICv2 88 Level 2180000.i2c
33: 1177 0 0 0 GICv2 86 Level serial
42: 145 0 0 0 GICv2 92 Level xhci-hcd:usb1
43: 0 0 0 0 GICv2 93 Level xhci-hcd:usb3
44: 1 0 0 0 GICv2 95 Level xhci-hcd:usb5
60: 0 0 0 2471856 GICv2 214 Level QMan portal 3
61: 0 0 2445733 0 GICv2 216 Level QMan portal 2
62: 0 2462282 0 0 GICv2 218 Level QMan portal 1
63: 2316534 0 0 0 GICv2 220 Level QMan portal 0
69: 0 0 0 0 GICv2 215 Level BMan portal 3
70: 0 0 0 0 GICv2 217 Level BMan portal 2
71: 0 0 0 0 GICv2 219 Level BMan portal 1
72: 0 0 0 0 GICv2 221 Level BMan portal 0
74: 0 0 0 0 MSI 0 Edge aerdrv
76: 0 0 0 0 MSI 134217728 Edge aerdrv
IPI0: 0 0 0 0 CPU wakeup interrupts
IPI1: 0 0 0 0 Timer broadcast interrupts
IPI2: 1055 1782 5038 1849 Rescheduling interrupts
IPI3: 3 3 5 5 Function call interrupts
IPI4: 123 125 160 635 Single function call interrupts
IPI5: 0 0 0 0 CPU stop interrupts
IPI6: 0 0 0 0 IRQ work interrupts
IPI7: 0 0 0 0 completion interrupts
Err: 0
root@lede:/#
root@lede:/#

CONFIG_EXTCON=y
CONFIG_FEC=y
# CONFIG_FSL_QMAN_FQ_LOOKUP is not set
CONFIG_FTRACE=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed

CONFIG_VFP=y
CONFIG_VFPv3=y
CONFIG_VMSPLIT_2G=y
# CONFIG_VMSPLIT_3G is not set
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two lines should probably be removed as well.

CONFIG_EFI_RUNTIME_WRAPPERS=y
CONFIG_EFI_STUB=y
# CONFIG_EFI_VARS is not set
CONFIG_FB=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does 64b enable framebuffer and 32b doesn't?

CONFIG_FSL_MC_BUS=y
CONFIG_FSL_QMAN_FQ_LOOKUP=y
CONFIG_FS_MBCACHE=y
CONFIG_FUSE_FS=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed.

# CONFIG_HPET is not set
CONFIG_HW_RANDOM=y
CONFIG_HW_RANDOM_VIRTIO=y
CONFIG_IKCONFIG=y
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed

endef

define Device/Default
FILESYSTEMS := squashfs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Device/* templates should be space-indented, not tab-indented.

DEVICE_VARS += DEVICE_DTS

ifeq ($(SUBTARGET),64b)
define Device/ls1043ardb-64bit
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about dropping the -64bit and -32bit suffixes from the Device name and getting rid of some code duplication that way.

FIRMWARE_SIZE := 61440k

DEVICE_TITLE := ls1043ardb 64bit
DEVICE_PACKAGES += kmod-e1000e
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add this to the target DEFAULT_PACKAGES if all devices need it anyway

I2C_IMX_MODULES:= \
CONFIG_I2C_IMX:drivers/i2c/busses/i2c-imx

define KernelPackage/i2c-imx
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can simplify all this by enabling i2c and sdhci in the kernel config and dropping modules.mk entirely


ARCH:=aarch64
BOARDNAME:=layerscape 64b boards
CFLAGS:=-Os -pipe -fno-caller-saves
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be removed

Add support for NXP layerscape ls1043ardb 64b/32b Dev board.

LS1043a is an SoC with 4x64-bit up to 1.6 GHz ARMv8 A53 cores.
ls1043ardb support features as: 2GB DDR4, 128MB NOR/512MB NAND, USB3.0, eSDHC,
I2C, GPIO, PCIe/Mini-PCIe, 6x1G/1x10G network port, etc.

64b/32b ls1043ardb target is using 4.4 kernel, and rcw/u-boot/fman images from
NXP QorIQ SDK release.

All of 4.4 kernel patches porting from SDK release or upstream.

QorIQ SDK ISOs can be downloaded from this location:
http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-processors:SDKLINUX

Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
@fsl-jyt
Copy link
Contributor Author

fsl-jyt commented Sep 29, 2016

Hi nbd168,

Thank you for review my patch!
Summary of requested changes:

  1.   I will remove that unnecessary config options according to nbd168’s suggestion. While I porting ls1043 support to openwrt/lede, the 64b default config originate from SDK2.0 release, it have a very large kernel config, and the 32b default config reference a imx6 target kernel config. Then minimum them and extract the common config options, some unfamiliar options are left behind. Thank you nbd168 for pointing them out.
    
  2.   Try to remove “base-files/etc/inittab” and validate login.
    
  3.   Enable “multi-core squashfs decompression” option.
    
  4.   I will try to $(IMAGE_ROOTFS) to replace directly refer to root.squashfs.
    
  5.   In general, flash always first erase then write. I imagine that filling the blank area with 0xff can save one time operation while user first write flash. I will study how to using the generic pad-to template.
    
  6.   Change “Device/* templates” from tab-indented to space-indented.
    
  7.   Move kmod-e1000e to DEFAULT_PACKAGES: our test team using a e1000e card to validate the PCIE function of ls1043, so I temporary add it to DEVICE_PACKAGES, it shouldn’t as a default packages indeed.
    
  8.   Enabling i2c and sdhci in the kernel config and dropping modules.mk entirely -- I will move them to kernel config.
    
  9.   mk_firmware really doing too much, “dropping the -64bit and -32bit suffixes” and “getting rid of some code duplication” also need consideration. I would like to work with the next phase to solve these problems together, while now phase only deal with question1-8. Please look at the problems I’m facing in the next phase.
    

I’m trying to make a full flash image -- merge rcw/uboot/fman/dtb/kernel/rfs to one openwrt/lede firmware, and in 64bit mode already success. But in 32bit mode, the 32bit kernel need be boot by a u-boot.bin which compiled in 64bit mode, the 32bit mode toolchain cannot compile 64bit uboot. Furthermore, the ls1043 uboot have a same config file both in 64bit and 32bit, while ls1012 uboot have different config file in 64bit/32bit mode, I’m also work on porting ls1012 support into openwrt/lede based on ls1043 work. I think of a ugly method to solve the uboot problem temporary, but there is no attempt to do it. I need take more time to try and optimize code, so the next phase work maybe have longer time interval.

10.1 – 10.7 is the china’s National Day and I’m on PTO(9.30 – 10.7), sorry for cannot reply timely.

Thanks & Best Regards
Jiang Yutang

From: nbd168 [mailto:notifications@github.com]
Sent: Wednesday, September 28, 2016 6:05 PM
To: lede-project/source
Cc: Y.T. Jiang; Author
Subject: Re: [lede-project/source] [patch v6]layerscape: add 64b/32b target for ls1043ardb device (#344)

@nbd168 requested changes on this pull request.


In target/linux/layerscape/32b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+# CONFIG_CPU_THERMAL is not set

+CONFIG_CPU_TLB_V7=y

+CONFIG_CPU_V7=y

+CONFIG_CRYPTO_DEFLATE=y

+CONFIG_CRYPTO_LZO=y

+CONFIG_CRYPTO_XZ=y

+CONFIG_DEBUG_IMX_UART_PORT=1

+CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"

+# CONFIG_DEBUG_UART_8250 is not set

+# CONFIG_DEBUG_USER is not set

+CONFIG_EDAC_ATOMIC_SCRUB=y

+# CONFIG_ENABLE_DEFAULT_TRACERS is not set

+CONFIG_EXTCON=y

+CONFIG_FEC=y

+# CONFIG_FSL_QMAN_FQ_LOOKUP is not set

+CONFIG_FTRACE=y

This should be removed


In target/linux/layerscape/32b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+# CONFIG_SOC_VF610 is not set

+# CONFIG_SPI_IMX is not set

+CONFIG_SRAM=y

+CONFIG_SWP_EMULATE=y

+CONFIG_SYS_SUPPORTS_APM_EMULATION=y

+CONFIG_THERMAL_WRITABLE_TRIPS=y

+# CONFIG_THUMB2_KERNEL is not set

+CONFIG_TRACING_EVENTS_GPIO=y

+CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"

+# CONFIG_USB_IMX21_HCD is not set

+CONFIG_USE_OF=y

+CONFIG_VECTORS_BASE=0xffff0000

+CONFIG_VFP=y

+CONFIG_VFPv3=y

+CONFIG_VMSPLIT_2G=y

+# CONFIG_VMSPLIT_3G is not set

These two lines should probably be removed as well.


In target/linux/layerscape/64b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+CONFIG_CUSE=y

+CONFIG_DEBUG_INFO=y

+CONFIG_DEFAULT_IOSCHED="noop"

+CONFIG_DEFAULT_NOOP=y

+CONFIG_DMI=y

+CONFIG_DMIID=y

+# CONFIG_DMI_SYSFS is not set

+CONFIG_EFI=y

+# CONFIG_EFIVAR_FS is not set

+CONFIG_EFI_ARMSTUB=y

+CONFIG_EFI_ESRT=y

+CONFIG_EFI_PARAMS_FROM_FDT=y

+CONFIG_EFI_RUNTIME_WRAPPERS=y

+CONFIG_EFI_STUB=y

+# CONFIG_EFI_VARS is not set

+CONFIG_FB=y

Why does 64b enable framebuffer and 32b doesn't?


In target/linux/layerscape/64b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+CONFIG_EFI_ESRT=y

+CONFIG_EFI_PARAMS_FROM_FDT=y

+CONFIG_EFI_RUNTIME_WRAPPERS=y

+CONFIG_EFI_STUB=y

+# CONFIG_EFI_VARS is not set

+CONFIG_FB=y

+CONFIG_FB_ARMCLCD=y

+CONFIG_FB_CFB_COPYAREA=y

+CONFIG_FB_CFB_FILLRECT=y

+CONFIG_FB_CFB_IMAGEBLIT=y

+CONFIG_FB_CMDLINE=y

+CONFIG_FB_MODE_HELPERS=y

+CONFIG_FSL_MC_BUS=y

+CONFIG_FSL_QMAN_FQ_LOOKUP=y

+CONFIG_FS_MBCACHE=y

+CONFIG_FUSE_FS=y

This should be removed.


In target/linux/layerscape/64b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+CONFIG_GENERIC_TIME_VSYSCALL=y

+CONFIG_GPIO_ACPI=y

+# CONFIG_GPIO_AMDPT is not set

+# CONFIG_GPIO_XGENE is not set

+CONFIG_GRACE_PERIOD=y

+CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y

+CONFIG_HAVE_ARCH_KASAN=y

+CONFIG_HAVE_CMPXCHG_DOUBLE=y

+CONFIG_HAVE_CMPXCHG_LOCAL=y

+CONFIG_HAVE_DEBUG_BUGVERBOSE=y

+CONFIG_HAVE_MEMORY_PRESENT=y

+CONFIG_HAVE_PATA_PLATFORM=y

+# CONFIG_HPET is not set

+CONFIG_HW_RANDOM=y

+CONFIG_HW_RANDOM_VIRTIO=y

+CONFIG_IKCONFIG=y

This should be removed


In target/linux/layerscape/base-files/etc/inittabhttps://github.com//pull/344#pullrequestreview-1900794:

@@ -0,0 +1,6 @@

+::sysinit:/etc/init.d/rcS S boot

+::shutdown:/etc/init.d/rcS K shutdown

+ttyS0::askfirst:/bin/ash --login

+tts/0::askfirst:/bin/ash --login

+ttyAMA0::askfirst:/bin/ash --login

+tty1::askfirst:/bin/ash --login

I think you can remove this file. /bin/ash --login is obsolete.


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y

+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y

+CONFIG_ARCH_HAS_SG_CHAIN=y

+CONFIG_ARCH_HAS_TICK_BROADCAST=y

+CONFIG_ARCH_LAYERSCAPE=y

+CONFIG_ARCH_PHYS_ADDR_T_64BIT=y

+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y

+CONFIG_ARCH_SUSPEND_POSSIBLE=y

+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y

+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y

+CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y

+CONFIG_ARM_ARCH_TIMER=y

+CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y

+CONFIG_ARM_GIC=y

+CONFIG_BLK_DEV_LOOP=y

+CONFIG_BLK_DEV_RAM=y

This should probably be removed


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_REGMAP=y

+CONFIG_REGMAP_MMIO=y

+CONFIG_RFS_ACCEL=y

+CONFIG_RPS=y

+CONFIG_RWSEM_SPIN_ON_OWNER=y

+CONFIG_RWSEM_XCHGADD_ALGORITHM=y

+CONFIG_SCHED_HRTICK=y

+# CONFIG_SCHED_INFO is not set

+CONFIG_SCSI=y

+CONFIG_SERIAL_8250_FSL=y

+CONFIG_SERIAL_OF_PLATFORM=y

+CONFIG_SMP=y

+CONFIG_SPARSE_IRQ=y

+# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set

+CONFIG_SQUASHFS_DECOMP_SINGLE=y

+CONFIG_SQUASHFS_ZLIB=y

This should be removed.


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_REALTEK_PHY=y

+CONFIG_REGMAP=y

+CONFIG_REGMAP_MMIO=y

+CONFIG_RFS_ACCEL=y

+CONFIG_RPS=y

+CONFIG_RWSEM_SPIN_ON_OWNER=y

+CONFIG_RWSEM_XCHGADD_ALGORITHM=y

+CONFIG_SCHED_HRTICK=y

+# CONFIG_SCHED_INFO is not set

+CONFIG_SCSI=y

+CONFIG_SERIAL_8250_FSL=y

+CONFIG_SERIAL_OF_PLATFORM=y

+CONFIG_SMP=y

+CONFIG_SPARSE_IRQ=y

+# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set

+CONFIG_SQUASHFS_DECOMP_SINGLE=y

Why disable multi-core squashfs decompression?


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_SQUASHFS_ZLIB=y

+CONFIG_SRCU=y

+CONFIG_SWIOTLB=y

+CONFIG_SYS_SUPPORTS_HUGETLBFS=y

+CONFIG_THERMAL=y

+CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y

+CONFIG_THERMAL_GOV_STEP_WISE=y

+CONFIG_THERMAL_OF=y

+CONFIG_TICK_CPU_ACCOUNTING=y

+CONFIG_TREE_RCU=y

+CONFIG_USB_SUPPORT=y

+CONFIG_USB=y

+CONFIG_VITESSE_PHY=y

+CONFIG_XPS=y

+CONFIG_ZLIB_INFLATE=y

+CONFIG_DEVTMPFS=y

This should be removed


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+include $(TOPDIR)/rules.mk

+include $(INCLUDE_DIR)/image.mk

+define Build/mk_firmware

  •  $(call Image/BuildDTB,$(DTS_DIR)/$(word 1,$(1)).dts,$(DTS_DIR)/$(word 1,$(1)).dtb)
    
  •  dd if=/dev/zero bs=$(word 2,$(1)) count=1 | sed 's/\x00/\xff/g' > $(DTS_DIR)/$(word 1,$(1)).dtb.par
    
  •  dd if=$(DTS_DIR)/$(word 1,$(1)).dtb of=$(DTS_DIR)/$(word 1,$(1)).dtb.par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 3,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par
    
  •  dd if=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX) of=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 4,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/root.squashfs.$(word 5,$(1)).par
    
  •  dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs.$(word 5,$(1)).par conv=notrunc
    
  •  cat $(DTS_DIR)/$(word 1,$(1)).dtb.par $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par $(KDIR)/root.squashfs.$(word 5,$(1)).par > $@
    

+endef

mk_firmware is doing too much stuff at once, also it should never refer to something like root.squashfs directly.
Does the padding really need to be with 0xff? If not, you could use the generic pad-to template.
If you need 0xff, then maybe you should make a build template that adds a file and pads it.
To get the rootfs filename, you can refer to $(IMAGE_ROOTFS)


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+define Build/mk_firmware

  •  $(call Image/BuildDTB,$(DTS_DIR)/$(word 1,$(1)).dts,$(DTS_DIR)/$(word 1,$(1)).dtb)
    
  •  dd if=/dev/zero bs=$(word 2,$(1)) count=1 | sed 's/\x00/\xff/g' > $(DTS_DIR)/$(word 1,$(1)).dtb.par
    
  •  dd if=$(DTS_DIR)/$(word 1,$(1)).dtb of=$(DTS_DIR)/$(word 1,$(1)).dtb.par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 3,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par
    
  •  dd if=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX) of=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 4,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/root.squashfs.$(word 5,$(1)).par
    
  •  dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs.$(word 5,$(1)).par conv=notrunc
    
  •  cat $(DTS_DIR)/$(word 1,$(1)).dtb.par $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par $(KDIR)/root.squashfs.$(word 5,$(1)).par > $@
    

+endef

+define Device/Default

  •  FILESYSTEMS := squashfs
    

Device/* templates should be space-indented, not tab-indented.


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+endef

+define Device/Default

  •  FILESYSTEMS := squashfs
    
  •  KERNEL := kernel-bin | gzip | uImage gzip
    
  •  DEVICE_DTS :=
    
  •  PROFILES = Default $$(DEVICE_NAME)
    
  •  IMAGES = firmware.bin
    
  •  IMAGE/firmware.bin = mk_firmware $$(DEVICE_DTS) $$(DTB_PARTITION_SIZE) \
    
  •         $$(KERNEL_PARTITION_SIZE) $$(SQUASHFS_PARTITION_SIZE) $(1) $$$$(FIRMWARE_SIZE)
    

+endef

+DEVICE_VARS += DEVICE_DTS

+ifeq ($(SUBTARGET),64b)

+define Device/ls1043ardb-64bit

How about dropping the -64bit and -32bit suffixes from the Device name and getting rid of some code duplication that way.


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+endef

+DEVICE_VARS += DEVICE_DTS

+ifeq ($(SUBTARGET),64b)

+define Device/ls1043ardb-64bit

  •  KERNEL_LOADADDR = 0x80080000
    
  •  KERNEL_ENTRY_POINT = 0x80080000
    
  •  DEVICE_DTS = freescale/fsl-ls1043a-rdb
    
  •  DTB_PARTITION_SIZE := 1024k
    
  •  KERNEL_PARTITION_SIZE := 5120k
    
  •  SQUASHFS_PARTITION_SIZE := 55296k
    
  •  FIRMWARE_SIZE := 61440k
    
  •  DEVICE_TITLE := ls1043ardb 64bit
    
  •  DEVICE_PACKAGES += kmod-e1000e
    

You can add this to the target DEFAULT_PACKAGES if all devices need it anyway


In target/linux/layerscape/modules.mkhttps://github.com//pull/344#pullrequestreview-1900794:

@@ -0,0 +1,37 @@

+#

+# Copyright (C) Jiang Yutang <yutang.jiang@nxp.commailto:yutang.jiang@nxp.com>

+#

+# This is free software, licensed under the GNU General Public License v2.

+# See /LICENSE for more information.

+#

+I2C_IMX_MODULES:= \

  • CONFIG_I2C_IMX:drivers/i2c/busses/i2c-imx

+define KernelPackage/i2c-imx

You can simplify all this by enabling i2c and sdhci in the kernel config and dropping modules.mk entirely


In target/linux/layerscape/64b/target.mkhttps://github.com//pull/344#pullrequestreview-1900794:

@@ -0,0 +1,15 @@

+#

+# Copyright (C) 2016 Jiang Yutang <yutang.jiang@nxp.commailto:yutang.jiang@nxp.com>

+#

+# This is free software, licensed under the GNU General Public License v2.

+# See /LICENSE for more information.

+#

+ARCH:=aarch64

+BOARDNAME:=layerscape 64b boards

+CFLAGS:=-Os -pipe -fno-caller-saves

This should be removed


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//pull/344#pullrequestreview-1900794, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APKzf31QdpJGzxR1nZK7Z_XdjLQm7Zk9ks5qujuygaJpZM4KIk0G.

@nbd168
Copy link
Contributor

nbd168 commented Sep 29, 2016

Regarding the mk_firmware template, please at least fix the reference to the rootfs image. You can deal with the rest of the rework later.

@fsl-jyt
Copy link
Contributor Author

fsl-jyt commented Oct 16, 2016

Hi nbd168,

I update the patch and pull a new requests(#417), please check and review, thanks!
#417

V7 patch update summary:

  1. According to nbd168’s suggestion, remove some unnecessary config options except for one:

In target/linux/layerscape/64b/target.mk:
+CFLAGS:=-Os -pipe -fno-caller-saves
This should be removed
If remove it, will lead the libnl-tiny-0.1 arise compile error. So reserve it.

  1. Remove “base-files/etc/inittab”.
  2. Enable “multi-core squashfs decompression” option.
  3. Using $(IMAGE_ROOTFS) to replace directly refer to root.squashfs
  4. Using the generic pad-to template.
  5. Change “Device/* templates” from tab-indented to space-indented.
  6. Remove the kmod-e1000e from DEVICE_PACKAGES.
  7. Enabling i2c and sdhci in the kernel config and dropping the modules.mk
  8. Remove the mk_firmware and getting rid of some 64bit/32bit code duplication , using Build/append- template to re-structure the firmware.bin.
  9. Introduce the rcw/uboot/fman package, and merge rcw/uboot/fman/dtb/kernel/rfs to a entire flash image firmware for lede.

Thanks & Best Regards
Jiang Yutang

From: Y.T. Jiang
Sent: Thursday, September 29, 2016 4:28 PM
To: 'lede-project/source'; lede-project/source
Cc: Author
Subject: RE: [lede-project/source] [patch v6]layerscape: add 64b/32b target for ls1043ardb device (#344)

Hi nbd168,

Thank you for review my patch!
Summary of requested changes:

  1.   I will remove that unnecessary config options according to nbd168’s suggestion. While I porting ls1043 support to openwrt/lede, the 64b default config originate from SDK2.0 release, it have a very large kernel config, and the 32b default config reference a imx6 target kernel config. Then minimum them and extract the common config options, some unfamiliar options are left behind. Thank you nbd168 for pointing them out.
    
  2.   Try to remove “base-files/etc/inittab” and validate login.
    
  3.   Enable “multi-core squashfs decompression” option.
    
  4.   I will try to $(IMAGE_ROOTFS) to replace directly refer to root.squashfs.
    
  5.   In general, flash always first erase then write. I imagine that filling the blank area with 0xff can save one time operation while user first write flash. I will study how to using the generic pad-to template.
    
  6.   Change “Device/* templates” from tab-indented to space-indented.
    
  7.   Move kmod-e1000e to DEFAULT_PACKAGES: our test team using a e1000e card to validate the PCIE function of ls1043, so I temporary add it to DEVICE_PACKAGES, it shouldn’t as a default packages indeed.
    
  8.   Enabling i2c and sdhci in the kernel config and dropping modules.mk entirely -- I will move them to kernel config.
    
  9.   mk_firmware really doing too much, “dropping the -64bit and -32bit suffixes” and “getting rid of some code duplication” also need consideration. I would like to work with the next phase to solve these problems together, while now phase only deal with question1-8. Please look at the problems I’m facing in the next phase.
    

I’m trying to make a full flash image -- merge rcw/uboot/fman/dtb/kernel/rfs to one openwrt/lede firmware, and in 64bit mode already success. But in 32bit mode, the 32bit kernel need be boot by a u-boot.bin which compiled in 64bit mode, the 32bit mode toolchain cannot compile 64bit uboot. Furthermore, the ls1043 uboot have a same config file both in 64bit and 32bit, while ls1012 uboot have different config file in 64bit/32bit mode, I’m also work on porting ls1012 support into openwrt/lede based on ls1043 work. I think of a ugly method to solve the uboot problem temporary, but there is no attempt to do it. I need take more time to try and optimize code, so the next phase work maybe have longer time interval.

10.1 – 10.7 is the china’s National Day and I’m on PTO(9.30 – 10.7), sorry for cannot reply timely.

Thanks & Best Regards
Jiang Yutang

From: nbd168 [mailto:notifications@github.com]
Sent: Wednesday, September 28, 2016 6:05 PM
To: lede-project/source
Cc: Y.T. Jiang; Author
Subject: Re: [lede-project/source] [patch v6]layerscape: add 64b/32b target for ls1043ardb device (#344)

@nbd168 requested changes on this pull request.


In target/linux/layerscape/32b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+# CONFIG_CPU_THERMAL is not set

+CONFIG_CPU_TLB_V7=y

+CONFIG_CPU_V7=y

+CONFIG_CRYPTO_DEFLATE=y

+CONFIG_CRYPTO_LZO=y

+CONFIG_CRYPTO_XZ=y

+CONFIG_DEBUG_IMX_UART_PORT=1

+CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"

+# CONFIG_DEBUG_UART_8250 is not set

+# CONFIG_DEBUG_USER is not set

+CONFIG_EDAC_ATOMIC_SCRUB=y

+# CONFIG_ENABLE_DEFAULT_TRACERS is not set

+CONFIG_EXTCON=y

+CONFIG_FEC=y

+# CONFIG_FSL_QMAN_FQ_LOOKUP is not set

+CONFIG_FTRACE=y

This should be removed


In target/linux/layerscape/32b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+# CONFIG_SOC_VF610 is not set

+# CONFIG_SPI_IMX is not set

+CONFIG_SRAM=y

+CONFIG_SWP_EMULATE=y

+CONFIG_SYS_SUPPORTS_APM_EMULATION=y

+CONFIG_THERMAL_WRITABLE_TRIPS=y

+# CONFIG_THUMB2_KERNEL is not set

+CONFIG_TRACING_EVENTS_GPIO=y

+CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"

+# CONFIG_USB_IMX21_HCD is not set

+CONFIG_USE_OF=y

+CONFIG_VECTORS_BASE=0xffff0000

+CONFIG_VFP=y

+CONFIG_VFPv3=y

+CONFIG_VMSPLIT_2G=y

+# CONFIG_VMSPLIT_3G is not set

These two lines should probably be removed as well.


In target/linux/layerscape/64b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+CONFIG_CUSE=y

+CONFIG_DEBUG_INFO=y

+CONFIG_DEFAULT_IOSCHED="noop"

+CONFIG_DEFAULT_NOOP=y

+CONFIG_DMI=y

+CONFIG_DMIID=y

+# CONFIG_DMI_SYSFS is not set

+CONFIG_EFI=y

+# CONFIG_EFIVAR_FS is not set

+CONFIG_EFI_ARMSTUB=y

+CONFIG_EFI_ESRT=y

+CONFIG_EFI_PARAMS_FROM_FDT=y

+CONFIG_EFI_RUNTIME_WRAPPERS=y

+CONFIG_EFI_STUB=y

+# CONFIG_EFI_VARS is not set

+CONFIG_FB=y

Why does 64b enable framebuffer and 32b doesn't?


In target/linux/layerscape/64b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+CONFIG_EFI_ESRT=y

+CONFIG_EFI_PARAMS_FROM_FDT=y

+CONFIG_EFI_RUNTIME_WRAPPERS=y

+CONFIG_EFI_STUB=y

+# CONFIG_EFI_VARS is not set

+CONFIG_FB=y

+CONFIG_FB_ARMCLCD=y

+CONFIG_FB_CFB_COPYAREA=y

+CONFIG_FB_CFB_FILLRECT=y

+CONFIG_FB_CFB_IMAGEBLIT=y

+CONFIG_FB_CMDLINE=y

+CONFIG_FB_MODE_HELPERS=y

+CONFIG_FSL_MC_BUS=y

+CONFIG_FSL_QMAN_FQ_LOOKUP=y

+CONFIG_FS_MBCACHE=y

+CONFIG_FUSE_FS=y

This should be removed.


In target/linux/layerscape/64b/config-defaulthttps://github.com//pull/344#pullrequestreview-1900794:

+CONFIG_GENERIC_TIME_VSYSCALL=y

+CONFIG_GPIO_ACPI=y

+# CONFIG_GPIO_AMDPT is not set

+# CONFIG_GPIO_XGENE is not set

+CONFIG_GRACE_PERIOD=y

+CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y

+CONFIG_HAVE_ARCH_KASAN=y

+CONFIG_HAVE_CMPXCHG_DOUBLE=y

+CONFIG_HAVE_CMPXCHG_LOCAL=y

+CONFIG_HAVE_DEBUG_BUGVERBOSE=y

+CONFIG_HAVE_MEMORY_PRESENT=y

+CONFIG_HAVE_PATA_PLATFORM=y

+# CONFIG_HPET is not set

+CONFIG_HW_RANDOM=y

+CONFIG_HW_RANDOM_VIRTIO=y

+CONFIG_IKCONFIG=y

This should be removed


In target/linux/layerscape/base-files/etc/inittabhttps://github.com//pull/344#pullrequestreview-1900794:

@@ -0,0 +1,6 @@

+::sysinit:/etc/init.d/rcS S boot

+::shutdown:/etc/init.d/rcS K shutdown

+ttyS0::askfirst:/bin/ash --login

+tts/0::askfirst:/bin/ash --login

+ttyAMA0::askfirst:/bin/ash --login

+tty1::askfirst:/bin/ash --login

I think you can remove this file. /bin/ash --login is obsolete.


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_ARCH_HAS_ELF_RANDOMIZE=y

+CONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y

+CONFIG_ARCH_HAS_SG_CHAIN=y

+CONFIG_ARCH_HAS_TICK_BROADCAST=y

+CONFIG_ARCH_LAYERSCAPE=y

+CONFIG_ARCH_PHYS_ADDR_T_64BIT=y

+CONFIG_ARCH_SUPPORTS_ATOMIC_RMW=y

+CONFIG_ARCH_SUSPEND_POSSIBLE=y

+CONFIG_ARCH_USE_CMPXCHG_LOCKREF=y

+CONFIG_ARCH_WANT_GENERAL_HUGETLB=y

+CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y

+CONFIG_ARM_ARCH_TIMER=y

+CONFIG_ARM_ARCH_TIMER_EVTSTREAM=y

+CONFIG_ARM_GIC=y

+CONFIG_BLK_DEV_LOOP=y

+CONFIG_BLK_DEV_RAM=y

This should probably be removed


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_REGMAP=y

+CONFIG_REGMAP_MMIO=y

+CONFIG_RFS_ACCEL=y

+CONFIG_RPS=y

+CONFIG_RWSEM_SPIN_ON_OWNER=y

+CONFIG_RWSEM_XCHGADD_ALGORITHM=y

+CONFIG_SCHED_HRTICK=y

+# CONFIG_SCHED_INFO is not set

+CONFIG_SCSI=y

+CONFIG_SERIAL_8250_FSL=y

+CONFIG_SERIAL_OF_PLATFORM=y

+CONFIG_SMP=y

+CONFIG_SPARSE_IRQ=y

+# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set

+CONFIG_SQUASHFS_DECOMP_SINGLE=y

+CONFIG_SQUASHFS_ZLIB=y

This should be removed.


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_REALTEK_PHY=y

+CONFIG_REGMAP=y

+CONFIG_REGMAP_MMIO=y

+CONFIG_RFS_ACCEL=y

+CONFIG_RPS=y

+CONFIG_RWSEM_SPIN_ON_OWNER=y

+CONFIG_RWSEM_XCHGADD_ALGORITHM=y

+CONFIG_SCHED_HRTICK=y

+# CONFIG_SCHED_INFO is not set

+CONFIG_SCSI=y

+CONFIG_SERIAL_8250_FSL=y

+CONFIG_SERIAL_OF_PLATFORM=y

+CONFIG_SMP=y

+CONFIG_SPARSE_IRQ=y

+# CONFIG_SQUASHFS_DECOMP_MULTI_PERCPU is not set

+CONFIG_SQUASHFS_DECOMP_SINGLE=y

Why disable multi-core squashfs decompression?


In target/linux/layerscape/config-4.4#344 (review):

+CONFIG_SQUASHFS_ZLIB=y

+CONFIG_SRCU=y

+CONFIG_SWIOTLB=y

+CONFIG_SYS_SUPPORTS_HUGETLBFS=y

+CONFIG_THERMAL=y

+CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y

+CONFIG_THERMAL_GOV_STEP_WISE=y

+CONFIG_THERMAL_OF=y

+CONFIG_TICK_CPU_ACCOUNTING=y

+CONFIG_TREE_RCU=y

+CONFIG_USB_SUPPORT=y

+CONFIG_USB=y

+CONFIG_VITESSE_PHY=y

+CONFIG_XPS=y

+CONFIG_ZLIB_INFLATE=y

+CONFIG_DEVTMPFS=y

This should be removed


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+include $(TOPDIR)/rules.mk

+include $(INCLUDE_DIR)/image.mk

+define Build/mk_firmware

  •  $(call Image/BuildDTB,$(DTS_DIR)/$(word 1,$(1)).dts,$(DTS_DIR)/$(word 1,$(1)).dtb)
    
  •  dd if=/dev/zero bs=$(word 2,$(1)) count=1 | sed 's/\x00/\xff/g' > $(DTS_DIR)/$(word 1,$(1)).dtb.par
    
  •  dd if=$(DTS_DIR)/$(word 1,$(1)).dtb of=$(DTS_DIR)/$(word 1,$(1)).dtb.par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 3,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par
    
  •  dd if=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX) of=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 4,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/root.squashfs.$(word 5,$(1)).par
    
  •  dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs.$(word 5,$(1)).par conv=notrunc
    
  •  cat $(DTS_DIR)/$(word 1,$(1)).dtb.par $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par $(KDIR)/root.squashfs.$(word 5,$(1)).par > $@
    

+endef

mk_firmware is doing too much stuff at once, also it should never refer to something like root.squashfs directly.
Does the padding really need to be with 0xff? If not, you could use the generic pad-to template.
If you need 0xff, then maybe you should make a build template that adds a file and pads it.
To get the rootfs filename, you can refer to $(IMAGE_ROOTFS)


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+define Build/mk_firmware

  •  $(call Image/BuildDTB,$(DTS_DIR)/$(word 1,$(1)).dts,$(DTS_DIR)/$(word 1,$(1)).dtb)
    
  •  dd if=/dev/zero bs=$(word 2,$(1)) count=1 | sed 's/\x00/\xff/g' > $(DTS_DIR)/$(word 1,$(1)).dtb.par
    
  •  dd if=$(DTS_DIR)/$(word 1,$(1)).dtb of=$(DTS_DIR)/$(word 1,$(1)).dtb.par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 3,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par
    
  •  dd if=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX) of=$(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par conv=notrunc
    
  •  dd if=/dev/zero bs=$(word 4,$(1)) count=1 | sed 's/\x00/\xff/g' > $(KDIR)/root.squashfs.$(word 5,$(1)).par
    
  •  dd if=$(KDIR)/root.squashfs of=$(KDIR)/root.squashfs.$(word 5,$(1)).par conv=notrunc
    
  •  cat $(DTS_DIR)/$(word 1,$(1)).dtb.par $(KDIR)/$(word 5,$(1))$(KERNEL_SUFFIX).par $(KDIR)/root.squashfs.$(word 5,$(1)).par > $@
    

+endef

+define Device/Default

  •  FILESYSTEMS := squashfs
    

Device/* templates should be space-indented, not tab-indented.


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+endef

+define Device/Default

  •  FILESYSTEMS := squashfs
    
  •  KERNEL := kernel-bin | gzip | uImage gzip
    
  •  DEVICE_DTS :=
    
  •  PROFILES = Default $$(DEVICE_NAME)
    
  •  IMAGES = firmware.bin
    
  •  IMAGE/firmware.bin = mk_firmware $$(DEVICE_DTS) $$(DTB_PARTITION_SIZE) \
    
  •         $$(KERNEL_PARTITION_SIZE) $$(SQUASHFS_PARTITION_SIZE) $(1) $$$$(FIRMWARE_SIZE)
    

+endef

+DEVICE_VARS += DEVICE_DTS

+ifeq ($(SUBTARGET),64b)

+define Device/ls1043ardb-64bit

How about dropping the -64bit and -32bit suffixes from the Device name and getting rid of some code duplication that way.


In target/linux/layerscape/image/Makefilehttps://github.com//pull/344#pullrequestreview-1900794:

+endef

+DEVICE_VARS += DEVICE_DTS

+ifeq ($(SUBTARGET),64b)

+define Device/ls1043ardb-64bit

  •  KERNEL_LOADADDR = 0x80080000
    
  •  KERNEL_ENTRY_POINT = 0x80080000
    
  •  DEVICE_DTS = freescale/fsl-ls1043a-rdb
    
  •  DTB_PARTITION_SIZE := 1024k
    
  •  KERNEL_PARTITION_SIZE := 5120k
    
  •  SQUASHFS_PARTITION_SIZE := 55296k
    
  •  FIRMWARE_SIZE := 61440k
    
  •  DEVICE_TITLE := ls1043ardb 64bit
    
  •  DEVICE_PACKAGES += kmod-e1000e
    

You can add this to the target DEFAULT_PACKAGES if all devices need it anyway


In target/linux/layerscape/modules.mkhttps://github.com//pull/344#pullrequestreview-1900794:

@@ -0,0 +1,37 @@

+#

+# Copyright (C) Jiang Yutang <yutang.jiang@nxp.commailto:yutang.jiang@nxp.com>

+#

+# This is free software, licensed under the GNU General Public License v2.

+# See /LICENSE for more information.

+#

+I2C_IMX_MODULES:= \

  • CONFIG_I2C_IMX:drivers/i2c/busses/i2c-imx

+define KernelPackage/i2c-imx

You can simplify all this by enabling i2c and sdhci in the kernel config and dropping modules.mk entirely


In target/linux/layerscape/64b/target.mkhttps://github.com//pull/344#pullrequestreview-1900794:

@@ -0,0 +1,15 @@

+#

+# Copyright (C) 2016 Jiang Yutang <yutang.jiang@nxp.commailto:yutang.jiang@nxp.com>

+#

+# This is free software, licensed under the GNU General Public License v2.

+# See /LICENSE for more information.

+#

+ARCH:=aarch64

+BOARDNAME:=layerscape 64b boards

+CFLAGS:=-Os -pipe -fno-caller-saves

This should be removed


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com//pull/344#pullrequestreview-1900794, or mute the threadhttps://github.com/notifications/unsubscribe-auth/APKzf31QdpJGzxR1nZK7Z_XdjLQm7Zk9ks5qujuygaJpZM4KIk0G.

@mkresin
Copy link
Contributor

mkresin commented Oct 16, 2016

Superseded by #417

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants