OpenWrt Forum Archive

Topic: MT7628 : VFS: Cannot open root device "(null)" or unknown-block(0,0)

The content of this topic has been archived between 31 Mar 2018 and 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi, everyone!

The router uses MT7628+MT7610 solution, 32MB MX25L25635FMI SPI flash, openwrt_chaos_calmer_v15.05 sdk.
It failed to boot. Please help me.
The serial port prints information as follows:

----------------------------------------------------------------------------------------

[04020C09][04020C07]
DDR Calibration DQS reg = 00008485


U-Boot 1.1.3 (Apr 18 2016 - 16:33:25)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
flash manufacture id: c2, device id 20 19
find flash: MX25L25635E
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 18 2016  Time:16:33:25
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
0
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.27
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1138035 Bytes =  1.1 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 3.18.27 (wang@software) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48925) ) #1 Wed Aug 24 18:18:13 CST 2016
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00036a3a
[    0.000000] Readback ErrCtl register=00036a3a
[    0.000000] Memory: 28880K/32768K available (2513K kernel code, 126K rwdata, 516K rodata, 164K init, 186K bss, 3888K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 575MHz
[    0.000000] clocksource_of_init: no matching clocksources found
[    0.000000] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.100000] rt2880-pinmux pinctrl: invalid group "jtag" for function "gpio"
[    0.120000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.130000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.140000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.150000] Switched to clocksource MIPS
[    0.160000] NET: Registered protocol family 2
[    0.160000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.200000] TCP: reno registered
[    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] NET: Registered protocol family 1
[    0.240000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.280000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.310000] msgmni has been set to 56
[    0.310000] io scheduler noop registered
[    0.320000] io scheduler deadline registered (default)
[    0.330000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.350000] console [ttyS0] disabled
[    0.350000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.370000] console [ttyS0] enabled
[    0.370000] console [ttyS0] enabled
[    0.380000] bootconsole [early0] disabled
[    0.380000] bootconsole [early0] disabled
[    0.400000] spi-mt7621 10000b00.spi: sys_freq: 191666666
[    0.420000] m25p80 spi32766.0: found mx25l25635e, expected en25q64
[    0.430000] m25p80 spi32766.0: mx25l25635e (32768 Kbytes)
[    0.440000] m25p80 spi32766.0: using chunked io
[    0.450000] 4 ofpart partitions found on MTD device spi32766.0
[    0.460000] Creating 4 MTD partitions on "spi32766.0":
[    0.470000] 0x000000000000-0x000000030000 : "u-boot"
[    0.480000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.490000] 0x000000040000-0x000000050000 : "factory"
[    0.500000] 0x000000050000-0x000000800000 : "firmware"
[    0.570000] ralink_soc_eth 10100000.ethernet: generated random MAC address 2a:c9:c8:4e:c3:65
[    0.590000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.600000] mt7621_wdt 10000120.watchdog: Initialized
[    0.610000] TCP: cubic registered
[    0.620000] NET: Registered protocol family 17
[    0.630000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.650000] 8021q: 802.1Q VLAN Support v1.8
[    0.670000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.680000] Please append a correct "root=" boot option; here are the available partitions:
[    0.700000] 1f00             192 mtdblock0  (driver?)
[    0.710000] 1f01              64 mtdblock1  (driver?)
[    0.720000] 1f02              64 mtdblock2  (driver?)
[    0.730000] 1f03            7872 mtdblock3  (driver?)
[    0.740000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.740000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

(Last edited by liveonlinux on 11 Oct 2016, 09:34)

If I use another SPI flash,  S25FL064PIF instead of MX25L25635FMI,  the router can boot successfully. Serial port information as follows:

---------------------------------------------------------------------

[04020C09][04020C07]
DDR Calibration DQS reg = 00008485


U-Boot 1.1.3 (Apr 18 2016 - 16:33:25)

Board: Ralink APSoC DRAM:  64 MB
relocate_code Pointer at: 83fb8000
flash manufacture id: 1, device id 2 16
find flash: FL064AIF
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 4.3.0.0
--------------------------------------------
ASIC 7628_MP (Port5<->None)
DRAM component: 512 Mbits DDR, width 16
DRAM bus: 16 bit
Total memory: 64 MBytes
Flash component: SPI Flash
Date:Apr 18 2016  Time:16:33:25
============================================
icache: sets:512, ways:4, linesz:32 ,total:65536
dcache: sets:256, ways:4, linesz:32 ,total:32768

##### The CPU freq = 575 MHZ ####
estimate memory size =64 Mbytes
RESET MT7628 PHY!!!!!!
Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   7: Load Boot Loader code then write to Flash via Serial.
   9: Load Boot Loader code then write to Flash via TFTP.
0
   
3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-3.18.27
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1138035 Bytes =  1.1 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 64

Starting kernel ...

[    0.000000] Linux version 3.18.27 (wang@software) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r48925) ) #1 Wed Aug 24 18:18:13 CST 2016
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00036a3a
[    0.000000] Readback ErrCtl register=00036a3a
[    0.000000] Memory: 28880K/32768K available (2513K kernel code, 126K rwdata, 516K rodata, 164K init, 186K bss, 3888K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 575MHz
[    0.000000] clocksource_of_init: no matching clocksources found
[    0.000000] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.100000] rt2880-pinmux pinctrl: invalid group "jtag" for function "gpio"
[    0.120000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.130000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.140000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.150000] Switched to clocksource MIPS
[    0.160000] NET: Registered protocol family 2
[    0.160000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.200000] TCP: reno registered
[    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] NET: Registered protocol family 1
[    0.240000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.270000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.280000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.310000] msgmni has been set to 56
[    0.310000] io scheduler noop registered
[    0.320000] io scheduler deadline registered (default)
[    0.330000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.350000] console [ttyS0] disabled
[    0.350000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.370000] console [ttyS0] enabled
[    0.370000] console [ttyS0] enabled
[    0.380000] bootconsole [early0] disabled
[    0.380000] bootconsole [early0] disabled
[    0.400000] spi-mt7621 10000b00.spi: sys_freq: 191666666
[    0.420000] m25p80 spi32766.0: found s25sl064p, expected en25q64
[    0.430000] m25p80 spi32766.0: s25sl064p (8192 Kbytes)
[    0.440000] m25p80 spi32766.0: using chunked io
[    0.450000] 4 ofpart partitions found on MTD device spi32766.0
[    0.460000] Creating 4 MTD partitions on "spi32766.0":
[    0.470000] 0x000000000000-0x000000030000 : "u-boot"
[    0.480000] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.490000] 0x000000040000-0x000000050000 : "factory"
[    0.500000] 0x000000050000-0x000000800000 : "firmware"
[    0.540000] 2 uimage-fw partitions found on MTD device firmware
[    0.550000] 0x000000050000-0x000000165db3 : "kernel"
[    0.570000] 0x000000165db3-0x000000800000 : "rootfs"
[    0.580000] mtd: device 5 (rootfs) set to be root filesystem
[    0.590000] 1 squashfs-split partitions found on MTD device rootfs
[    0.600000] 0x0000002f0000-0x000000800000 : "rootfs_data"
[    0.620000] ralink_soc_eth 10100000.ethernet: generated random MAC address ca:55:69:cf:90:96
[    0.640000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.650000] mt7621_wdt 10000120.watchdog: Initialized
[    0.660000] TCP: cubic registered
[    0.670000] NET: Registered protocol family 17
[    0.680000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.700000] 8021q: 802.1Q VLAN Support v1.8
[    0.730000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.750000] Freeing unused kernel memory: 164K (80317000 - 80340000)
[    2.430000] init: Console is alive
[    2.440000] init: - watchdog -
[    3.550000] usbcore: registered new interface driver usbfs
[    3.560000] usbcore: registered new interface driver hub
[    3.570000] usbcore: registered new device driver usb
[    3.580000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.600000] ehci-platform: EHCI generic platform driver
[    3.620000] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.630000] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.640000] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.650000] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.670000] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.700000] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.710000] hub 1-0:1.0: USB hub found
[    3.720000] hub 1-0:1.0: 1 port detected
[    3.730000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.740000] ohci-platform: OHCI generic platform driver
[    3.750000] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.760000] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.780000] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.850000] hub 2-0:1.0: USB hub found
[    3.860000] hub 2-0:1.0: 1 port detected
[    4.450000] init: - preinit -
[    5.180000] rt305x-esw 10110000.esw: link changed 0x00
[    5.370000] random: mktemp urandom read with 8 bits of entropy available
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
[    8.680000] rt305x-esw 10110000.esw: link changed 0x04
[    8.760000] jffs2: notice: (305) 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.800000] mount_root: switching to jffs2 overlay
[    8.840000] procd: - early -
[    8.840000] procd: - watchdog -
[    9.630000] procd: - ubus -
[   10.640000] procd: - init -
Please press Enter to activate this console.
[   11.380000] NET: Registered protocol family 10
[   11.390000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.420000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.440000] nf_conntrack version 0.5.0 (453 buckets, 1812 max)
[   11.510000] xt_time: kernel timezone is -0000
[   11.530000] PPP generic driver version 2.4.2
[   11.540000] NET: Registered protocol family 24
[   14.330000] rt305x-esw 10110000.esw: link changed 0x00
[   16.180000] device eth0.1 entered promiscuous mode
[   16.190000] device eth0 entered promiscuous mode
[   16.250000] br-lan: port 1(eth0.1) entered forwarding state
[   16.260000] br-lan: port 1(eth0.1) entered forwarding state
[   18.160000] rt305x-esw 10110000.esw: link changed 0x04
[   18.260000] br-lan: port 1(eth0.1) entered forwarding state



BusyBox v1.23.2 (2016-08-24 18:14:10 CST) built-in shell (ash)

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
-----------------------------------------------------
CHAOS CALMER (Chaos Calmer, r48925)
-----------------------------------------------------
  * 1 1/2 oz Gin            Shake with a glassful
  * 1/4 oz Triple Sec       of broken ice and pour
  * 3/4 oz Lime Juice       unstrained into a goblet.
  * 1 1/2 oz Orange Juice
  * 1 tsp. Grenadine Syrup
-----------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/#
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 7E:98:E4:96:99:C2 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd69:ec65:2998::1/60 Scope:Global
          inet6 addr: fe80::7c98:e4ff:fe96:99c2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:103 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:15312 (14.9 KiB)  TX bytes:2672 (2.6 KiB)

eth0      Link encap:Ethernet  HWaddr CA:55:69:CF:90:96 
          inet6 addr: fe80::c855:69ff:fecf:9096/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:19905 (19.4 KiB)  TX bytes:10285 (10.0 KiB)
          Interrupt:5

eth0.1    Link encap:Ethernet  HWaddr CA:55:69:CF:90:96 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:111 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:17907 (17.4 KiB)  TX bytes:3761 (3.6 KiB)

eth0.2    Link encap:Ethernet  HWaddr 7E:98:E4:96:99:C3 
          inet6 addr: fe80::7c98:e4ff:fe96:99c3/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:23 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:4674 (4.5 KiB)

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:48 errors:0 dropped:0 overruns:0 frame:0
          TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:3936 (3.8 KiB)  TX bytes:3936 (3.8 KiB)

root@OpenWrt:/#

(Last edited by liveonlinux on 11 Oct 2016, 09:35)

The .config file for compiling openwrt is as follows:

-----------------------------------------------------------------------------

Automatically generated file; DO NOT EDIT.
# OpenWrt Configuration
#
CONFIG_MODULES=y
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_ppc44x is not set
# CONFIG_TARGET_realview is not set
# CONFIG_TARGET_arm64 is not set
# CONFIG_TARGET_sunxi is not set
# CONFIG_TARGET_ath25 is not set
# CONFIG_TARGET_ar71xx is not set
# CONFIG_TARGET_at91 is not set
# CONFIG_TARGET_brcm2708 is not set
# CONFIG_TARGET_bcm53xx is not set
# CONFIG_TARGET_brcm47xx is not set
# CONFIG_TARGET_brcm63xx is not set
# CONFIG_TARGET_netlogic is not set
# CONFIG_TARGET_cns3xxx is not set
# CONFIG_TARGET_octeon is not set
# CONFIG_TARGET_gemini is not set
# CONFIG_TARGET_mpc85xx is not set
# CONFIG_TARGET_imx6 is not set
# CONFIG_TARGET_mxs is not set
# CONFIG_TARGET_adm8668 is not set
# CONFIG_TARGET_adm5120 is not set
# CONFIG_TARGET_xburst is not set
# CONFIG_TARGET_ixp4xx is not set
# CONFIG_TARGET_lantiq is not set
# CONFIG_TARGET_malta is not set
# CONFIG_TARGET_mvebu is not set
# CONFIG_TARGET_kirkwood is not set
# CONFIG_TARGET_rb532 is not set
# CONFIG_TARGET_mcs814x is not set
# CONFIG_TARGET_oxnas is not set
# CONFIG_TARGET_au1000 is not set
CONFIG_TARGET_ramips=y
# CONFIG_TARGET_ar7 is not set
# CONFIG_TARGET_omap is not set
# CONFIG_TARGET_uml is not set
# CONFIG_TARGET_x86 is not set
# CONFIG_TARGET_ramips_rt305x is not set
# CONFIG_TARGET_ramips_mt7620 is not set
# CONFIG_TARGET_ramips_mt7621 is not set
CONFIG_TARGET_ramips_mt7628=y
# CONFIG_TARGET_ramips_mt7688 is not set
# CONFIG_TARGET_ramips_rt3883 is not set
# CONFIG_TARGET_ramips_rt288x is not set
CONFIG_TARGET_ramips_mt7628_Default=y
CONFIG_HAS_SUBTARGETS=y
CONFIG_TARGET_BOARD="ramips"
CONFIG_TARGET_ARCH_PACKAGES="ramips_24kec"
CONFIG_DEFAULT_TARGET_OPTIMIZATION="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kec -mdsp"
CONFIG_CPU_TYPE="24kec+dsp"
CONFIG_LINUX_3_18=y
CONFIG_DEFAULT_base-files=y
CONFIG_DEFAULT_busybox=y
CONFIG_DEFAULT_dnsmasq=y
CONFIG_DEFAULT_dropbear=y
CONFIG_DEFAULT_firewall=y
CONFIG_DEFAULT_fstools=y
CONFIG_DEFAULT_ip6tables=y
CONFIG_DEFAULT_iptables=y
CONFIG_DEFAULT_iwinfo=y
CONFIG_DEFAULT_kmod-gpio-button-hotplug=y
CONFIG_DEFAULT_kmod-leds-gpio=y
CONFIG_DEFAULT_kmod-ledtrig-usbdev=y
CONFIG_DEFAULT_kmod-nf-nathelper=y
CONFIG_DEFAULT_kmod-usb-core=y
CONFIG_DEFAULT_kmod-usb-ohci=y
CONFIG_DEFAULT_kmod-usb2=y
CONFIG_DEFAULT_libc=y
CONFIG_DEFAULT_libgcc=y
CONFIG_DEFAULT_mtd=y
CONFIG_DEFAULT_netifd=y
CONFIG_DEFAULT_odhcp6c=y
CONFIG_DEFAULT_odhcpd=y
CONFIG_DEFAULT_opkg=y
CONFIG_DEFAULT_ppp=y
CONFIG_DEFAULT_ppp-mod-pppoe=y
CONFIG_DEFAULT_swconfig=y
CONFIG_DEFAULT_uci=y
CONFIG_DEFAULT_wpad-mini=y
CONFIG_AUDIO_SUPPORT=y
CONFIG_GPIO_SUPPORT=y
CONFIG_PCI_SUPPORT=y
CONFIG_USB_SUPPORT=y
CONFIG_USES_DEVICETREE=y
CONFIG_USES_SQUASHFS=y
CONFIG_mipsel=y
CONFIG_ARCH="mipsel"

#
# Target Images
#
# CONFIG_TARGET_ROOTFS_INITRAMFS is not set
CONFIG_EXTERNAL_CPIO=""

#
# Root filesystem archives
#
# CONFIG_TARGET_ROOTFS_CPIOGZ is not set
# CONFIG_TARGET_ROOTFS_TARGZ is not set

#
# Root filesystem images
#
# CONFIG_TARGET_ROOTFS_EXT4FS is not set
# CONFIG_TARGET_ROOTFS_JFFS2 is not set
CONFIG_TARGET_ROOTFS_SQUASHFS=y
CONFIG_TARGET_SQUASHFS_BLOCK_SIZE=256
CONFIG_TARGET_UBIFS_FREE_SPACE_FIXUP=y
CONFIG_TARGET_UBIFS_JOURNAL_SIZE=""

#
# Image Options
#
CONFIG_TARGET_ROOTFS_INCLUDE_UIMAGE=y
CONFIG_TARGET_ROOTFS_INCLUDE_ZIMAGE=y
CONFIG_TARGET_ROOTFS_INCLUDE_FIT=y

#
# Global build settings
#
# CONFIG_ALL_KMODS is not set
# CONFIG_ALL is not set
CONFIG_SIGNED_PACKAGES=y

#
# General build options
#
# CONFIG_DISPLAY_SUPPORT is not set
CONFIG_BUILD_PATENTED=y
# CONFIG_BUILD_NLS is not set
CONFIG_SHADOW_PASSWORDS=y
# CONFIG_CLEAN_IPKG is not set
# CONFIG_COLLECT_KERNEL_DEBUG is not set

#
# Kernel build options
#
CONFIG_KERNEL_PRINTK=y
CONFIG_KERNEL_CRASHLOG=y
CONFIG_KERNEL_SWAP=y
CONFIG_KERNEL_DEBUG_FS=y
# CONFIG_KERNEL_PERF_EVENTS is not set
# CONFIG_KERNEL_PROFILING is not set
CONFIG_KERNEL_KALLSYMS=y
# CONFIG_KERNEL_FTRACE is not set
CONFIG_KERNEL_DEBUG_KERNEL=y
CONFIG_KERNEL_DEBUG_INFO=y
# CONFIG_KERNEL_DYNAMIC_DEBUG is not set
# CONFIG_KERNEL_KPROBES is not set
# CONFIG_KERNEL_AIO is not set
# CONFIG_KERNEL_DIRECT_IO is not set
# CONFIG_KERNEL_FHANDLE is not set
# CONFIG_KERNEL_FANOTIFY is not set
# CONFIG_KERNEL_BLK_DEV_BSG is not set
CONFIG_KERNEL_MAGIC_SYSRQ=y
CONFIG_KERNEL_COREDUMP=y
CONFIG_KERNEL_ELF_CORE=y
# CONFIG_KERNEL_PROVE_LOCKING is not set
CONFIG_KERNEL_PRINTK_TIME=y
# CONFIG_KERNEL_SLABINFO is not set
# CONFIG_KERNEL_PROC_PAGE_MONITOR is not set
# CONFIG_KERNEL_KEXEC is not set
# CONFIG_USE_RFKILL is not set
# CONFIG_USE_SPARSE is not set
# CONFIG_KERNEL_DEVTMPFS is not set
# CONFIG_KERNEL_CGROUPS is not set
# CONFIG_KERNEL_NAMESPACES is not set
# CONFIG_KERNEL_LXC_MISC is not set
# CONFIG_KERNEL_SECCOMP_FILTER is not set
# CONFIG_KERNEL_SECCOMP is not set



......

1. I changed the file: openwrt\target\linux\ramips\dts\MT7628.dts. But it's useless.

-------------------------------------------------------------------------


/include/ "mt7628an.dtsi"

/ {
    compatible = "mediatek,mt7628an-eval-board", "mediatek,mt7628an-soc";
    model = "Mediatek MT7628AN evaluation board";

    memory@0 {
        device_type = "memory";
        reg = <0x0 0x2000000>;
    };

    pinctrl {
        state_default: pinctrl0 {
            gpio {
                ralink,group = "i2c", "jtag";
                ralink,function = "gpio";
            };
        };
    };

    palmbus@10000000 {
        spi@b00 {
            status = "okay";

            m25p80@0 {
                #address-cells = <1>;
                #size-cells = <1>;
                compatible = "en25q64";
                reg = <0 0>;
                linux,modalias = "m25p80", "en25q64";
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;

                partition@0 {
                    label = "u-boot";
                    reg = <0x0 0x30000>;
                    read-only;
                };

                partition@30000 {
                    label = "u-boot-env";
                    reg = <0x30000 0x10000>;
                    read-only;
                };

                factory: partition@40000 {
                    label = "factory";
                    reg = <0x40000 0x10000>;
                    read-only;
                };

                partition@50000 {
                    label = "firmware";
                    reg = <0x50000 0x7b0000>;            <-----  change 7 to f, it's still failed to boot.
                };
            };
        };
    };
};




2. I change the file: openwrt\target\linux\ramips\dts\mt7628an.dtsi , add “ root=/dev/mtdblock3”, mtdblock0~3, the router is still not work. 

--------------------------------------------------------------

before:

chosen {
        bootargs = "console=ttyS0,57600";
    };


after:

chosen {
        bootargs = "console=ttyS0,57600 root=/dev/mtdblock3";
    };

Hi, elektroman,
I'm a new person to openwrt. Could you tell me what's wrong with the serial log? And I'm sorry, the article about Edimax BR 6478 V2 is hard for me.
You mean, LEDE is better than OpenWRT chaos calmer?
My router is K6512, it is nearly the same design as D-link DIR-816, both  AC750 router, MT7628+MT7610E chips.


elektroman wrote:

Hi
please use git sources for OpenWRT/LEDE

here are the steps for Edimax BR 6478 V2

please you new new "Device" name for support

liveonlinux wrote:

Hi, elektroman,
I'm a new person to openwrt. Could you tell me what's wrong with the serial log? And I'm sorry, the article about Edimax BR 6478 V2 is hard for me.
You mean, LEDE is better than OpenWRT chaos calmer?
My router is K6512, it is nearly the same design as D-link DIR-816, both  AC750 router, MT7628+MT7610E chips.

So is the both devices are almost the same, take the DIR 816 DTS as blueprint for your (new) K6512 DTS, so you can see the differences after (If there any)

You can search in the git source tree for the "build recipe" for the DIR-816, they are maybe some hints aka partition number for the MTD device or other magic numbers here

LEDE is the successor of OpenWRT, last update of OpenWRT git is around may this year, all devs moved to LEDE. Using SDK for a new device is a bad idea.

The best way (here) is to try and fail, use initramfs for target (in menuconfig).
Some hint running initramfs. disable "fail safe mode" in image creation.

FWIW:
I don't memorize all this stuff, I must search this all by my self.
But this "git" tool will help you a great deal ...
I know this is hard for a beginner, everybody know this.
And in the Edimax thread you will see my git tree and see what steps I've done.

Thank you for you advices! 
I will try it!  And I will use LEDE instead of chaos calmer.


elektroman wrote:
liveonlinux wrote:

Hi, elektroman,
I'm a new person to openwrt. Could you tell me what's wrong with the serial log? And I'm sorry, the article about Edimax BR 6478 V2 is hard for me.
You mean, LEDE is better than OpenWRT chaos calmer?
My router is K6512, it is nearly the same design as D-link DIR-816, both  AC750 router, MT7628+MT7610E chips.

So is the both devices are almost the same, take the DIR 816 DTS as blueprint for your (new) K6512 DTS, so you can see the differences after (If there any)

You can search in the git source tree for the "build recipe" for the DIR-816, they are maybe some hints aka partition number for the MTD device or other magic numbers here

LEDE is the successor of OpenWRT, last update of OpenWRT git is around may this year, all devs moved to LEDE. Using SDK for a new device is a bad idea.

The best way (here) is to try and fail, use initramfs for target (in menuconfig).
Some hint running initramfs. disable "fail safe mode" in image creation.

FWIW:
I don't memorize all this stuff, I must search this all by my self.
But this "git" tool will help you a great deal ...
I know this is hard for a beginner, everybody know this.
And in the Edimax thread you will see my git tree and see what steps I've done.

Hi, I download the lede code for mt7628: lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2.
It's compiled on ubuntu 15.04 (64 bits). There is an error as follows:

make[3]: Entering directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf'
cp -fpR /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf/* /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/
cp: cannot stat '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf/*': No such file or directory
Makefile:79: recipe for target '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.prepared_e712ac7d83c37ac3b99ac2fce6fb7d53' failed
make[3]: *** [/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.prepared_e712ac7d83c37ac3b99ac2fce6fb7d53] Error 1
make[3]: Leaving directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf'
package/Makefile:127: recipe for target 'package/feeds/base/perf/compile' failed
make[2]: *** [package/feeds/base/perf/compile] Error 2
make[2]: Leaving directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64'
package/Makefile:124: recipe for target '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/stamp/.package_compile' failed
make[1]: *** [/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64'
/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/include/toplevel.mk:187: recipe for target 'world' failed
make: *** [world] Error 2
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ ls /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf/
ls: cannot access /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf/: No such file or directory
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ ls /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/
perf-target-mipsel_24kc_musl-1.1.15
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ ls /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ ls /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf
Makefile  musl-compat.h  musl-include
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 

I use these command to compile:
./scripts/feeds update -a     
./scripts/feeds install -a
make menuconfig                       <-- keep default config
make V=s                                   <-- after long time, compiling failed.

I modified the feeds/base/package/devel/perf/Makefile.

define Build/Prepare
#       $(CP) $(LINUX_DIR)/tools/perf/* $(PKG_BUILD_DIR)/
endef

Then make again. There is another error:  cannot find the  Makefile.perf  file and stop compiling.
I download the tar from: https://downloads.lede-project.org/snap … ps/mt7628/
Is it right?


make[3]: Entering directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf'
#       cp -fpR /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf/* /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/
touch /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.prepared_e712ac7d83c37ac3b99ac2fce6fb7d53
rm -f /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/stamp/.perf_installed
(cd /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/./; if [ -x ./configure ]; then find /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/ -name config.guess | xargs -r chmod u+w; find /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/ -name config.guess | xargs -r -n1 cp --remove-destination /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/scripts/config.guess; find /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/ -name config.sub | xargs -r chmod u+w; find /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/ -name config.sub | xargs -r -n1 cp --remove-destination /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/scripts/config.sub; AR="mipsel-openwrt-linux-musl-gcc-ar" AS="ccache_cc -c -Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15:perf-target-mipsel_24kc_musl-1.1.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro" LD=mipsel-openwrt-linux-musl-ld NM="mipsel-openwrt-linux-musl-gcc-nm" CC="ccache_cc" GCC="ccache_cc" CXX="ccache_cxx" RANLIB="mipsel-openwrt-linux-musl-gcc-ranlib" STRIP=mipsel-openwrt-linux-musl-strip OBJCOPY=mipsel-openwrt-linux-musl-objcopy OBJDUMP=mipsel-openwrt-linux-musl-objdump SIZE=mipsel-openwrt-linux-musl-size CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15:perf-target-mipsel_24kc_musl-1.1.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CXXFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15:perf-target-mipsel_24kc_musl-1.1.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro " CPPFLAGS="-I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/usr/include -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/include -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/usr/include -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/include/fortify -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/include " LDFLAGS="-L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/usr/lib -L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/lib -L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/usr/lib -L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro "   ./configure --target=mipsel-openwrt-linux --host=mipsel-openwrt-linux --build=x86_64-linux-gnu --program-prefix="" --program-suffix="" --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/lib --sysconfdir=/etc --datadir=/usr/share --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --disable-nls   ; fi; )
rm -f /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.configured_*
touch /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.configured_yynyyyyy
ARCH="mips" NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 NO_LZMA=1 NO_BACKTRACE=1 NO_LIBNUMA=1 NO_GTK2=1 NO_LIBAUDIT=1 NO_LIBCRYPTO=1 CROSS_COMPILE="mipsel-openwrt-linux-musl-" CC="ccache_cc" LD="mipsel-openwrt-linux-musl-ld" CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -iremap /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15:perf-target-mipsel_24kc_musl-1.1.15 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/usr/include -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/include -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/usr/include -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/include/fortify -I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/include" LDFLAGS="-L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/usr/lib -L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/lib -L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/usr/lib -L/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/toolchain-mipsel_24kc_gcc-5.4.0_musl-1.1.15/lib -znow -zrelro" V='' WERROR=0 prefix=/usr EXTRA_CFLAGS="-I/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf/musl-include -include /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf/musl-compat.h -D__UCLIBC__" make   -C /home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15 -f Makefile.perf --no-print-directory
make[4]: Makefile.perf: No such file or directory
make[4]: *** No rule to make target 'Makefile.perf'.  Stop.
Makefile:79: recipe for target '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.built' failed
make[3]: *** [/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_mt7628/linux-4.4.25/tools/perf-target-mipsel_24kc_musl-1.1.15/.built] Error 2
make[3]: Leaving directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/feeds/base/package/devel/perf'
package/Makefile:127: recipe for target 'package/feeds/base/perf/compile' failed
make[2]: *** [package/feeds/base/perf/compile] Error 2
make[2]: Leaving directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64'
package/Makefile:124: recipe for target '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/stamp/.package_compile' failed
make[1]: *** [/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/staging_dir/target-mipsel_24kc_musl-1.1.15/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64'
/home/wangfeng/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64/include/toplevel.mk:187: recipe for target 'world' failed
make: *** [world] Error 2
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ find ./ -iname "Makefile.perf"
wangfeng@ubuntu:~/Desktop/lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64$ 

No, don't use the SDK !!
It's normally used for building a firmware, but you are (currently) far from this

Please enter this command into the shell

cd ~
git clone git://git.lede-project.org/source.git LEDE
cd ~/LEDE
./scripts/feeds update -a
./scripts/feeds install -a

This will setup the LEDE build enviroment in ~/LEDE

cp target/linux/ramips/dts/WRTNODE2P.dts target/linux/ramips/dts/K6512.dts

I  use the WRTNODE2P device here as a sample for the *new* DTS file from your board.
Add these lines to target/linux/ramips/image/mt7628.mk

define Device/k6512
  DTS :=  K6512
  IMAGE_SIZE := $(ralink_default_fw_size_8M)
  DEVICE_TITLE :=  K6512
  DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-ledtrig-usbdev
endef
TARGET_DEVICES += wrtnode2p

This is for your device with a 8MB flash, but (and this is a big but) with normal flash layout.
u-Boot, u-Boot-env, factory (with some info about wifi), and firmware.
firmware will parted up after boot into
kernel, rootfs and yffs2

Boot this *only* via TFTP
And test, some parts are missing leds, buttons and of course the correct flash layout.

Thank you,  elektroman!

I thought,  the lede source from git and web download page were the same. You mean,  they are different.

I get the git source code, and compile it.  This file download from LEDE web page:  lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2, must compiled on x86_64 ubuntu OS, but the git source code can be compiled on x86_32 ubuntu OS.

The compiling need very long time, and it's not finished. As so far, I find only this difference.


There is another question, which branch is tested ? I don't need the newest version, but the tested one.

lede_git/source$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
liveonlinux wrote:

Thank you,  elektroman!
I thought,  the lede source from git and web download page were the same. You mean,  they are different.

No completely,
but with the git sources you can track your own changes

And this is the main part of using git here.
oif you want to build for a existing device you can use the SDK

liveonlinux wrote:

I get the git source code, and compile it.  This file download from LEDE web page:  lede-sdk-ramips-mt7628_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.bz2, must compiled on x86_64 ubuntu OS, but the git source code can be compiled on x86_32 ubuntu OS.

Again not quite right.
with the git sources, you buidl your own toolchain for your target.
And it's completely irrelevant on which platform/arch.
You can build this also on your raspberrypi, if you have enough time.

liveonlinux wrote:

There is another question, which branch is tested ? I don't need the newest version, but the tested one.

lede_git/source$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/master

You have cloned the whole repository.
By definition "master" is upstream.
It depends and the view, if it's stable of testing.
In OpenWRT/LEDE terms this is testing and if you do

git branch -av

you will see all SHA1 hashes are the same.

remote/origin
are the branches from your "origin" repository your initially cloned from.
master
is your local.

I forgot to tell, please create a local branch you can work on with

git checkout -b router

with "router" as your local branch name.

Hi, elektroman,

1. I compiled the git lede code, and the router boot ok now.  The router is mt7628 + mt7610. The mt7628 is for 2.4GHz, and the mt7610 for 5GHz. Now the 2.4GHz is ok, but cannot find the 5GHz interface.

2. I copy the mt7628 dts/dtsi file from git lede code to chaos calmer openwrt code, but it's still failed to boot. I don't know why.

[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7628AN ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Mediatek MT7628AN evaluation board
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Writing ErrCtl register=00036a3a
[    0.000000] Readback ErrCtl register=00036a3a
[    0.000000] Memory: 28876K/32768K available (2513K kernel code, 126K rwdata, 516K rodata, 164K init, 186K bss, 3892K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 575MHz
[    0.000000] clocksource_of_init: no matching clocksources found
[    0.000000] Calibrating delay loop... 380.92 BogoMIPS (lpj=1904640)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.080000] pinctrl core: initialized pinctrl subsystem
[    0.090000] NET: Registered protocol family 16
[    0.100000] rt2880-pinmux pinctrl: invalid group "jtag" for function "gpio"
[    0.120000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.130000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.140000] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.150000] Switched to clocksource MIPS
[    0.160000] NET: Registered protocol family 2
[    0.160000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.180000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.190000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.200000] TCP: reno registered
[    0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.230000] NET: Registered protocol family 1
[    0.240000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.260000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.270000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.300000] msgmni has been set to 56
[    0.310000] io scheduler noop registered
[    0.320000] io scheduler deadline registered (default)
[    0.330000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.340000] console [ttyS0] disabled
[    0.350000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.370000] console [ttyS0] enabled
[    0.370000] console [ttyS0] enabled
[    0.380000] bootconsole [early0] disabled
[    0.380000] bootconsole [early0] disabled
[    0.400000] spi-mt7621 10000b00.spi: sys_freq: 191666666
[    0.420000] ralink_soc_eth 10100000.ethernet: generated random MAC address 5e:97:82:a8:97:47
[    0.440000] ralink_soc_eth 10100000.ethernet eth0: ralink at 0xb0100000, irq 5
[    0.460000] mt7621_wdt 10000120.watchdog: Initialized
[    0.470000] TCP: cubic registered
[    0.470000] NET: Registered protocol family 17
[    0.480000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.510000] 8021q: 802.1Q VLAN Support v1.8
[    0.520000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    0.530000] Please append a correct "root=" boot option; here are the available partitions:
[    0.550000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    0.550000] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   82.680000] random: nonblocking pool is initialized

Hi, elektroman, I find two broadcom chip router. One use the same design with netgear R6300v2, the other is same as netgear R7000.  I compiled the git lede source code for the two router, and I choose the config file for R6300v2 and R7000.

When I flashing the firmware for netgear products into my router,  the seiral print: TRX magic number error. I find that, the netgear's router firmware has a 58 bytes head more than my router, so I cut it off (use the dd command). Then flashing is ok.

But both router failed to boot.

Digital core power voltage set to 0.9375V
Decompressing...done


CFE version 6.37.14.62 (r436032) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Info: DDR frequency set from clkfreq=800,*400*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.62 (r436032)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x01791D54 (8985940)
Data:       0x00F4A3CC - 0x00F4A88C (1216)
BSS:        0x00F4A898 - 0x00F8FD54 (283836)
Heap:       0x00F8FD54 - 0x0178FD54 (8388608)
Stack:      0x0178FD54 - 0x01791D54 (8192)
Text:       0x00F00000 - 0x00F416F8 (268024)

Device eth0:  hwaddr 00-90-4C-0F-F4-6C, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Startup canceled
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> ^C
CFE> nvram erase
*** command status = 0
CFE> 
TRX file size = 6684672
Programming...done. 6684672 bytes written
Digital core power voltage set to 0.9375V
Decompressing...done


CFE version 6.37.14.62 (r436032) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Info: DDR frequency set from clkfreq=800,*400*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.62 (r436032)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x01791D54 (8985940)
Data:       0x00F4A3CC - 0x00F4A88C (1216)
BSS:        0x00F4A898 - 0x00F8FD54 (283836)
Heap:       0x00F8FD54 - 0x0178FD54 (8388608)
Stack:      0x0178FD54 - 0x01791D54 (8192)
Text:       0x00F00000 - 0x00F416F8 (268024)

Committing NVRAM...done
Waiting for reset button release...donDigital core power voltage set to 0.9375V
Decompressing...done


CFE version 6.37.14.62 (r436032) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Info: DDR frequency set from clkfreq=800,*400*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.62 (r436032)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x01791D54 (8985940)
Data:       0x00F4A3CC - 0x00F4A88C (1216)
BSS:        0x00F4A898 - 0x00F8FD54 (283836)
Heap:       0x00F8FD54 - 0x0178FD54 (8388608)
Stack:      0x0178FD54 - 0x01791D54 (8192)
Text:       0x00F00000 - 0x00F416F8 (268024)

Device eth0:  hwaddr 00-90-4C-0F-F4-6C, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:nflash0.os File: Options:(null)
Loading: .. 1539871 bytes read
Entry at 0x00008000
Closing network.
Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.27 (wangfeng@software) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1967) ) #0 SMP Mon Oct 24 20:52:44 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Netgear R6300 V2 (BCM4708)
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 11 pages/cpu @c6dce000 s12928 r8192 d23936 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65280
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 254748K/262144K available (3202K kernel code, 102K rwdata, 1208K rodata, 220K init, 280K bss, 7396K reserved, 0K cma-reserved, 131072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0456e44   (4412 kB)
[    0.000000]       .init : 0xc0457000 - 0xc048e000   ( 220 kB)
[    0.000000]       .data : 0xc048e000 - 0xc04a7b2c   ( 103 kB)
[    0.000000]        .bss : 0xc04a7b2c - 0xc04eddec   ( 281 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x0a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000015] sched_clock: 64 bits at 400MHz, resolution 2ns, wraps every 4398046511103ns
[    0.000039] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
[    0.000255] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[    0.090144] pid_max: default: 32768 minimum: 301
[    0.090235] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090792] CPU: Testing write buffer coherency: ok
[    0.091089] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091181] Setting up static identity map for 0x82a0 - 0x82d4
[    0.130139] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.130228] Brought up 2 CPUs
[    0.130249] SMP: Total of 2 processors activated (3188.32 BogoMIPS).
[    0.130259] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.130266] CPU: This may indicate a broken bootloader or firmware.
[    0.132571] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.132696] pinctrl core: initialized pinctrl subsystem
[    0.133182] NET: Registered protocol family 16
[    0.133956] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.162509] clocksource: Switched to clocksource arm_global_timer
[    0.163864] NET: Registered protocol family 2
[    0.164536] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.164569] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.164595] TCP: Hash tables configured (established 1024 bind 1024)
[    0.164692] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.164727] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.164971] NET: Registered protocol family 1
[    0.166253] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.166456] Crashlog allocated RAM at address 0x3f00000
[    0.172506] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.172541] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.174483] bounce: pool size: 64 pages
[    0.174510] io scheduler noop registered
[    0.174525] io scheduler deadline registered (default)
[    0.175048] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.175810] console [ttyS0] disabled
[    0.175871] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 6250000) is a 16550
[    0.607329] console [ttyS0] enabled
[    0.612470] nand: Could not find valid ONFI parameter page; aborting
[    0.618823] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.625179] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    0.630216] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.637769] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.647655] Scanning device for bad blocks
[    0.752255] Bad eraseblock 123 at 0x000000f60000
[    1.314718] Bad eraseblock 865 at 0x000006c20000
[    1.393633] Bad eraseblock 965 at 0x0000078a0000
[    1.442035] mtd_read error while parsing (offset: 0x0): -74
[    1.448041] mtd_read error while parsing (offset: 0x20000): -74
[    1.456032] mtd_read error while parsing (offset: 0x80000): -74
[    1.466141] random: nonblocking pool is initialized
[    1.476237] mtd_read error while parsing (offset: 0x200000): -74
[    1.482679] mtd_read error while parsing (offset: 0x220000): -74
[    1.489110] mtd_read error while parsing (offset: 0x240000): -74
[    1.495551] mtd_read error while parsing (offset: 0x260000): -74
[    1.501997] mtd_read error while parsing (offset: 0x280000): -74
[    1.508430] mtd_read error while parsing (offset: 0x2A0000): -74
[    1.514870] mtd_read error while parsing (offset: 0x2C0000): -74
[    1.521313] mtd_read error while parsing (offset: 0x2E0000): -74
[    1.527740] mtd_read error while parsing (offset: 0x300000): -74
[    1.534180] mtd_read error while parsing (offset: 0x320000): -74

...

[    7.562264] mtd_read error while parsing (offset: 0x7F60000): -74
[    7.568751] mtd_read error while parsing (offset: 0x7F80000): -74
[    7.575244] mtd_read error while parsing (offset: 0x7FA0000): -74
[    7.581739] mtd_read error while parsing (offset: 0x7FC0000): -74
[    7.588227] mtd_read error while parsing (offset: 0x7FE0000): -74
[    7.597346] libphy: Fixed MDIO Bus: probed
[    7.601564] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    7.607461] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x02
[    7.614489] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    7.623136] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    7.631943] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    7.639954] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.648413] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.656870] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.665318] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.673745] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.682348] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.690953] bcma: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.699574] bcma: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    7.709653] bcma: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    7.718083] bcma: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    7.726543] bcma: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    7.734825] bcma: bus0: Core 14 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    7.744234] bcma: bus0: Core 15 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    7.755025] bcma: bus0: Core 16 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    7.763130] bcma: bus0: Core 17 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    7.772789] bcma: bus0: Core 18 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    7.782255] bcma: bus0: Flash type not supported
[    7.788459] m25p80 spi32766.0: unrecognized JEDEC id bytes: ff, ff, ff
[    7.795213] m25p80 spi32766.0: using Read Manufacturer / Device ID command (0x90) returned ff ff
[    7.803995] m25p80: probe of spi32766.0 failed with error -2
[    7.810235] bgmac_bcma bcma0:3: Found PHY addr: 0
[    7.815011] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    7.821306] bgmac_bcma bcma0:3: Using random MAC: 56:84:cf:0a:5e:9a
[    7.829466] b53_common: found switch: BCM53011, rev 5
[    7.835453] bgmac_bcma bcma0:4: Found PHY addr: 0
[    7.840304] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    7.846574] bgmac_bcma bcma0:4: Using random MAC: 52:c4:a1:d7:ea:1f
[    7.854333] bgmac_bcma bcma0:5: Found PHY addr: 0
[    7.859119] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    7.865440] bgmac_bcma bcma0:5: Using random MAC: be:d9:aa:8a:83:83
[    7.873208] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    7.878453] bgmac_bcma: probe of bcma0:6 failed with error -524
[    7.990287] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    7.996548] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    8.003431] pcie_iproc_bcma bcma0:7: link: UP
[    8.008059] PCI: bus0: Fast back to back transfers disabled
[    8.013639] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.022137] PCI: bus1: Fast back to back transfers disabled
[    8.027754] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
[    8.034546] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    8.041846] pci 0000:00:00.0: PCI bridge to [bus 01]
[    8.046796] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
[    8.160272] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    8.166531] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    8.173409] pcie_iproc_bcma bcma0:8: link: UP
[    8.178037] PCI: bus0: Fast back to back transfers disabled
[    8.183616] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.192094] PCI: bus1: Fast back to back transfers disabled
[    8.197709] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
[    8.204500] pci 0001:01:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
[    8.211801] pci 0001:00:00.0: PCI bridge to [bus 01]
[    8.216744] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
[    8.330288] pcie_iproc_bcma bcma0:9: PCI host bridge to bus 0002:00
[    8.336539] pci_bus 0002:00: root bus resource [mem 0x48000000-0x4fffffff]
[    8.343410] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    8.349562] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    8.355551] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    8.362902] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    8.371880] bcma: bus0: Bus registered
[    8.375785] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    8.381469] bcma-pci-bridge 0000:01:00.0: enabling device (0140 -> 0142)
[    8.388179] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    8.395239] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    8.403757] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    8.412373] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    8.544268] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    8.590411] bcma: bus1: Bus registered
[    8.594219] pci 0001:00:00.0: enabling device (0140 -> 0142)
[    8.599866] bcma-pci-bridge 0001:01:00.0: enabling device (0140 -> 0142)
[    8.606598] bcma: bus2: Found chip with id 0x4360, rev 0x03 and package 0x01
[    8.613659] bcma: bus2: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2B, class 0x0)
[    8.622170] bcma: bus2: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2A, class 0x0)
[    8.630777] bcma: bus2: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x02, class 0x0)
[    8.639025] bcma: bus2: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x01, class 0x0)
[    8.647450] bcma: bus2: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x11, class 0x0)
[    8.687832] bcma: bus2: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    8.698786] bcma: bus2: Bus registered
[    8.703744] NET: Registered protocol family 10
[    8.709438] NET: Registered protocol family 17
[    8.714009] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    8.726595] 8021q: 802.1Q VLAN Support v1.8
[    8.730857] Registering SWP/SWPB emulation handler
[    8.738938] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.746455] Please append a correct "root=" boot option; here are the available partitions:
[    8.754797] 1f00          131072 mtdblock0  (driver?)
[    8.759836] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.768060] CPU1: stopping
[    8.770768] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.27 #0
[    8.776660] Hardware name: BCM5301X
[    8.780135] Backtrace: 
[    8.782606] [<c0017074>] (dump_backtrace) from [<c0017270>] (show_stack+0x18/0x1c)
[    8.790139]  r7:c7859f60 r6:00000000 r5:60000193 r4:00000000
[    8.795827] [<c0017258>] (show_stack) from [<c017d218>] (dump_stack+0x84/0xa4)
[    8.803024] [<c017d194>] (dump_stack) from [<c0018a58>] (handle_IPI+0xf4/0x19c)
[    8.810295]  r5:00000001 r4:c04a7ca8
[    8.813871] [<c0018964>] (handle_IPI) from [<c000948c>] (gic_handle_irq+0x80/0x9c)
[    8.821399]  r7:c049aeec r6:c7859f60 r5:c0490708 r4:c8802100
[    8.827067] [<c000940c>] (gic_handle_irq) from [<c000a074>] (__irq_svc+0x54/0x70)
[    8.834516] Exception stack(0xc7859f60 to 0xc7859fa8)
[    8.839550] 9f60: 00000000 000012ec c6dd9254 c000ae40 c048a224 c0490498 10c0387d c04a7cb0
[    8.847689] 9f80: 0000406a 413fc090 00000000 c7859fbc c7859fc0 c7859fb0 c0014560 c0014564
[    8.855822] 9fa0: 60000013 ffffffff
[    8.859292]  r9:413fc090 r8:0000406a r7:c7859f94 r6:ffffffff r5:60000013 r4:c0014564
[    8.867050] [<c0014530>] (arch_cpu_idle) from [<c004fc34>] (default_idle_call+0x30/0x34)
[    8.875104] [<c004fc04>] (default_idle_call) from [<c004fd68>] (cpu_startup_entry+0x130/0x194)
[    8.883674] [<c004fc38>] (cpu_startup_entry) from [<c0018764>] (secondary_start_kernel+0x10c/0x128)
[    8.892677] [<c0018658>] (secondary_start_kernel) from [<0000954c>] (0x954c)
[    8.899685]  r5:00000051 r4:0784006a
[    8.906260] Rebooting in 1 seconds..Digital core power voltage set to 0.9375V
Decompressing...done


CFE version 6.37.14.62 (r436032) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Info: DDR frequency set from clkfreq=800,*400*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.62 (r436032)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x01791D54 (8985940)
Data:       0x00F4A3CC - 0x00F4A88C (1216)
BSS:        0x00F4A898 - 0x00F8FD54 (283836)
Heap:       0x00F8FD54 - 0x0178FD54 (8388608)
Stack:      0x0178FD54 - 0x01791D54 (8192)
Text:       0x00F00000 - 0x00F416F8 (268024)

Device eth0:  hwaddr 00-90-4C-0F-F4-6C, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: 

And another router(same design as R7000):

Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.27 (wangfeng@software) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1967) ) #0 SMP Mon Oct 24 20:52:44 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Netgear R7000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
[    0.000000] PERCPU: Embedded 11 pages/cpu @c6dce000 s12928 r8192 d23936 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65280
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 254748K/262144K available (3202K kernel code, 102K rwdata, 1208K rodata, 220K init, 280K bss, 7396K reserved, 0K cma-reserved, 131072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0456e44   (4412 kB)
[    0.000000]       .init : 0xc0457000 - 0xc048e000   ( 220 kB)
[    0.000000]       .data : 0xc048e000 - 0xc04a7b2c   ( 103 kB)
[    0.000000]        .bss : 0xc04a7b2c - 0xc04eddec   ( 281 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x0a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000011] sched_clock: 64 bits at 500MHz, resolution 2ns, wraps every 4398046511103ns
[    0.000029] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0xe6a171a037, max_idle_ns: 881590485102 ns
[    0.000197] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
[    0.060107] pid_max: default: 32768 minimum: 301
[    0.060178] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060187] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060604] CPU: Testing write buffer coherency: ok
[    0.060817] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060886] Setting up static identity map for 0x82a0 - 0x82d4
[    0.120136] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.120204] Brought up 2 CPUs
[    0.120220] SMP: Total of 2 processors activated (3981.31 BogoMIPS).
[    0.120227] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.120232] CPU: This may indicate a broken bootloader or firmware.
[    0.122088] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122187] pinctrl core: initialized pinctrl subsystem
[    0.122550] NET: Registered protocol family 16
[    0.123125] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.151961] clocksource: Switched to clocksource arm_global_timer
[    0.152897] NET: Registered protocol family 2
[    0.153332] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.153354] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.153374] TCP: Hash tables configured (established 1024 bind 1024)
[    0.153424] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.153450] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.153612] NET: Registered protocol family 1
[    0.154435] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.154573] Crashlog allocated RAM at address 0x3f00000
[    0.158943] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.158968] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.160669] bounce: pool size: 64 pages
[    0.160690] io scheduler noop registered
[    0.160702] io scheduler deadline registered (default)
[    0.161097] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.161630] console [ttyS0] disabled
[    0.161676] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 7812500) is a 16550
[    0.608298] console [ttyS0] enabled
[    0.613066] nand: Could not find valid ONFI parameter page; aborting
[    0.619458] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.625852] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    0.630921] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.638520] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.648472] Scanning device for bad blocks
[    0.970547] Bad eraseblock 509 at 0x000003fa0000
[    1.286587] mtd_read error while parsing (offset: 0x0): -74
[    1.292558] mtd_read error while parsing (offset: 0x20000): -74
[    1.300176] mtd_read error while parsing (offset: 0x80000): -74
[    1.308856] random: nonblocking pool is initialized
[    1.318634] mtd_read error while parsing (offset: 0x200000): -74
[    1.325034] mtd_read error while parsing (offset: 0x220000): -74
[    1.331432] mtd_read error while parsing (offset: 0x240000): -74
[    1.337818] mtd_read error while parsing (offset: 0x260000): -74
[    1.344216] mtd_read error while parsing (offset: 0x280000): -74
[    1.350612] mtd_read error while parsing (offset: 0x2A0000): -74
[    1.357000] mtd_read error while parsing (offset: 0x2C0000): -74
[    1.363391] mtd_read error while parsing (offset: 0x2E0000): -74
[    1.369778] mtd_read error while parsing (offset: 0x300000): -74
[    1.376168] mtd_read error while parsing (offset: 0x320000): -74
[    1.382566] mtd_read error while parsing (offset: 0x340000): -74
[    1.388953] mtd_read error while parsing (offset: 0x360000): -74
[    1.395352] mtd_read error while parsing (offset: 0x380000): -74
[    1.401747] mtd_read error while parsing (offset: 0x3A0000): -74
[    1.408128] mtd_read error while parsing (offset: 0x3C0000): -74
[    1.414527] mtd_read error while parsing (offset: 0x3E0000): -74
[    1.420923] mtd_read error while parsing (offset: 0x400000): -74
[    1.427312] mtd_read error while parsing (offset: 0x420000): -74
[    1.433716] mtd_read error while parsing (offset: 0x440000): -74
[    1.440105] mtd_read error while parsing (offset: 0x460000): -74

I know the initramfs is a very importand tool for debugging. Can you tell me how to use it after compiling? Is there any initramfs example for broadcom chip router?

(Last edited by liveonlinux on 1 Nov 2016, 15:46)

liveonlinux wrote:

Hi, elektroman,

1. I compiled the git lede code, and the router boot ok now.  The router is mt7628 + mt7610. The mt7628 is for 2.4GHz, and the mt7610 for 5GHz. Now the 2.4GHz is ok, but cannot find the 5GHz interface.

2. I copy the mt7628 dts/dtsi file from git lede code to chaos calmer openwrt code, but it's still failed to boot. I don't know why.

This is the big thing why you should use git tool.

Take the change form step one and commit them with git.
https://git-scm.com/
https://www.youtube.com/watch?v=8oRjP8yj2Wo

For the 5GHz maybe they is a missing pcie entry in the DTS or missing eeprom entry.
check the files in target/linux/ramips/dts/
For the eeprom entry in the 5Ghz section use

hexdump -C $DEV

i.e with /dev/mtd2

search for patterns with
0x76 0x12
or
0x76 0x68
these are values form mt76x2_pci.c

Could you give me some advice? I don't know how to use the initramfs.

liveonlinux wrote:

And another router(same design as R7000):

Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.27 (wangfeng@software) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1967) ) #0 SMP Mon Oct 24 20:52:44 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
...

I know the initramfs is a very importand tool for debugging. Can you tell me how to use it after compiling? Is there any initramfs example for broadcom chip router?

The firmware compiled from lede git source code can run on netgear r6300v2. But 5GHz wireless SSID is none. I cannot find the interface when I use the ifconfig command.

The r6300v2 has 128MB nand flash, K9F1G08U0D, made by samsung. My BCM4708 router has same source design with r6300v2, but use Spansion 128MB nand flash S34ML01G100TFI00, instead of samsung one. I think this diffrence make my router failed to boot.

[    0.613066] nand: Could not find valid ONFI parameter page; aborting
[    0.619458] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.625852] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    0.630921] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.638520] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.648472] Scanning device for bad blocks
[    0.970547] Bad eraseblock 509 at 0x000003fa0000
[    1.286587] mtd_read error while parsing (offset: 0x0): -74
[    1.292558] mtd_read error while parsing (offset: 0x20000): -74
[    1.300176] mtd_read error while parsing (offset: 0x80000): -74

(Last edited by liveonlinux on 7 Nov 2016, 09:14)

Hi, elektroman,  when "make kernel_menuconfig",  I disable the "Seama firmware parser" and compile a new firmware. There is not "could not find valid ONFI parameter" print now. But still "mtd_read error while parsing" in this function:

static int bcm47xxpart_parse(struct mtd_info *master,
                 struct mtd_partition **pparts,
                 struct mtd_part_parser_data *data)
{
...

        /* Read beginning of the block */
        err = mtd_read(master, offset, BCM47XXPART_BYTES_TO_READ,
                   &bytes_read, (uint8_t *)buf);
        if (err && !mtd_is_bitflip(err)) {
            pr_err("mtd_read error while parsing (offset: 0x%X): %d\n",
                   offset, err);
            continue;
        }

...
}

After large times print, the router failed to boot. Maybe the driver is wrong?

About initramfs, I find this command: boot -tftp -elf 192.168.1.2:/brcm47xx/openwrt-brcm47xx-vmlinux.elf

I will try it.

On netgear r6300v2, I tried the boot by initramfs, but still failed.

CFE> boot -tftp -elf 192.168.1.2:/lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin
Loader:elf Filesys:tftp Dev:eth0 File:192.168.1.2:/lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin Options:(null)
Loading: Failed.
Could not load 192.168.1.2:/lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin: Loader is not available
*** command status = -35
CFE> boot -tftp -elf 192.168.1.2:lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin
Loader:elf Filesys:tftp Dev:eth0 File:192.168.1.2:lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin Options:(null)
Loading: Failed.
Could not load 192.168.1.2:lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin: Loader is not available
*** command status = -35
CFE> 
CFE> 
CFE> 
CFE> 
CFE> boot -tftp 192.168.1.2:lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:lede-bcm53xx-netgear-r6300-v2-initramfs-kernel.bin Options:(null)
Loading: ........... 262144 bytes read
Entry at 0x20000000
Closing network.
Starting program at 0x20000000

Error happens in : mtd->_read() .
Maybe lede doesn't support my nand flash?
If I want it support Spansion 128MB nand flash S34ML01G100TFI00, how to change the code?
Add something to nand_flash_ids[] ?


int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen,
         u_char *buf)
{
    int ret_code;
        ...
    /*
     * In the absence of an error, drivers return a non-negative integer
     * representing the maximum number of bitflips that were corrected on
     * any one ecc region (if applicable; zero otherwise).
     */
    ret_code = mtd->_read(mtd, from, len, retlen, buf);
    ...
   
}



liveonlinux wrote:

Hi, elektroman,  when "make kernel_menuconfig",  I disable the "Seama firmware parser" and compile a new firmware. There is not "could not find valid ONFI parameter" print now. But still "mtd_read error while parsing" in this function:

static int bcm47xxpart_parse(struct mtd_info *master,
                 struct mtd_partition **pparts,
                 struct mtd_part_parser_data *data)
{
...

        /* Read beginning of the block */
        err = mtd_read(master, offset, BCM47XXPART_BYTES_TO_READ,
                   &bytes_read, (uint8_t *)buf);
        if (err && !mtd_is_bitflip(err)) {
            pr_err("mtd_read error while parsing (offset: 0x%X): %d\n",
                   offset, err);
            continue;
        }

...
}

After large times print, the router failed to boot. Maybe the driver is wrong?

About initramfs, I find this command: boot -tftp -elf 192.168.1.2:/brcm47xx/openwrt-brcm47xx-vmlinux.elf

I will try it.

I debug the nand flash driver. I find that -74 stands for -EBADMSG error. After power on, the router call the nand_read(), and continue to call nand_do_read_ops()  function. Sometimes return ok, and sometimes return -EBADMSG. I don't know why.



static int nand_do_read_ops(struct mtd_info *mtd, loff_t from,
                struct mtd_oob_ops *ops)
{

...
    if (ecc_fail)
        return -EBADMSG;

...
}

[    0.618823] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.625179] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    0.630216] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.637769] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8

The nand flash ECC has some error? My friend tell me, my router use : 1-bit Hamming, 16B spare, 512B sector.
How to change the source code?

Hi

first of all, sometimes your are digging much to deep

liveonlinux wrote:

The nand flash ECC has some error? My friend tell me, my router use : 1-bit Hamming, 16B spare, 512B sector.
How to change the source code?

With the error ...
NAND Flash *is* broken by *design*
For the sector size 2048 is typical , 512 is the logical size
Read (if you want, but you don't need this)
https://en.wikipedia.org/wiki/BCH_code

liveonlinux wrote:

Error happens in : mtd->_read() .
Maybe lede doesn't support my nand flash?
If I want it support Spansion 128MB nand flash S34ML01G100TFI00, how to change the code?
Add something to nand_flash_ids[] ?

Normally not needed, most vendors are supported in vanilla kernel.
check your physical address.
Check you DTS file (please post)

And please
I can't distinguish between two (almost) identical devices in one thread.
And I do not begin with this king of sh*t, anyway
.. Sorry for that, but I must to be clear here

And you can't do it either, you are beginning to mess around

Thank you, elektroman!
My router is similar to netgear r6300v2 and asus rt68u router. So I compiled the lede code and get firmware for r6300v2 or asus rt68u. I flash the firmware to my router. In another word, I use the dts or physical address for these two types router. Is it a good idea for a new person(like me)? If this is OK, I will make my own dts file. I'm not 100% sure of difference between my router and r6300v2.

I know r6300v2, rt68u, and my router are BCM4708+ 4360 + 4331 solution, 128MB nand flash( 2KB/page ). They use the same broadcom hardware design. The lede firmware runs OK on r6300v2, but failed on my router.

You mean start address?

check your physical address.

Is it ?

Starting program at 0x00008000

My router also use 0x00008000 if I flash the broadcom sdk firmware.


The boot information on r6300v2 is as follows:

Decompressing...done

SHMOO VER 1.13

PKID07DC06011801080000000000001A103F01000000

S300402CF
00002350


RDLYW0 00000004

RDENW0 00000045

RDQSW0 

    0000000000111111111122222222223333333333444444444455555555556666
    0123456789012345678901234567890123456789012345678901234567890123
 00 ----++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 01 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 02 -------++++++++++++++++++++++++++++X++++++++++++++++++++++++++++
 03 -----+++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 04 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 05 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 06 -+++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 07 -------++++++++++++++++++++++++++++X++++++++++++++++++++++++++++
 08 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 09 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 10 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 11 ---------+++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 12 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 13 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 14 ----++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 15 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++


PW0 

    0000000000111111111122222222223333333333444444444455555555556666
    0123456789012345678901234567890123456789012345678901234567890123
 00 -+++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 01 ------+++++++++++++++++++++++++++++X++++++++++++++++++++++++++++
 02 ----++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 03 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 04 ++++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 05 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 06 ++++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 07 -----+++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 08 --+++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 09 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 10 -+++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 11 ------+++++++++++++++++++++++++++++X++++++++++++++++++++++++++++
 12 -+++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 13 -----+++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 14 --+++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 15 -----+++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++


NW0 

    0000000000111111111122222222223333333333444444444455555555556666
    0123456789012345678901234567890123456789012345678901234567890123
 00 ----++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 01 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 02 -------++++++++++++++++++++++++++++X++++++++++++++++++++++++++++
 03 -----+++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 04 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 05 ---------+++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 06 -+++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++
 07 -------++++++++++++++++++++++++++++X++++++++++++++++++++++++++++
 08 ----++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 09 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 10 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 11 ---------+++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 12 ---++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++
 13 --------++++++++++++++++++++++++++++X+++++++++++++++++++++++++++
 14 ----++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++
 15 ---------+++++++++++++++++++++++++++X+++++++++++++++++++++++++++


WRDQW0 

    0000000000111111111122222222223333333333444444444455555555556666
    0123456789012345678901234567890123456789012345678901234567890123
 00 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 01 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 02 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 03 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 04 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 05 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 06 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 07 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 08 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 09 --++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++-
 10 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 11 --++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++-
 12 +++++++++++++++++++++++++++++++X+++++++++++++++++++++++++++++++-
 13 -+++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++-
 14 -+++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++-
 15 --++++++++++++++++++++++++++++++X++++++++++++++++++++++++++++++-


WRDMW0 00000031
WRDMW0 00000031


ADDR

    0000000000111111111122222222223333333333444444444455555555556666
    0123456789012345678901234567890123456789012345678901234567890123
 00 +++++++++++++++++++++++++++++++X+++S++++++++++++++++++++++++++++

Decompressing...done


CFE for Foxconn Router R6300v2 version: v1.0.15
Build Date: Fri May 24 13:47:09 CST 2013 
Init Arena
Init Devs.
Boot up from NAND flash...
Boot partition size = 262144(0x40000)
DDR Clock: 533 MHz
Info: DDR frequency set from clkfreq=800,*533*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.30.163.2002 (r382208)
CPU type 0x0: 800MHz
Tot mem: 262144 KBytes

Device eth0:  hwaddr 00-FF-FF-FF-FF-FF, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Checking crc...Loader:raw Filesys:raw Dev:nflash0.os File: Options:(null)
Loading: .. 1539871 bytes read
Entry at 0x00008000
Closing network.
Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.27 (wangfeng@software) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1967) ) #0 SMP Mon Oct 24 20:52:44 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Netgear R6300 V2 (BCM4708)
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Hit pending asynchronous external abort (FSR=0x00001c06) during first unmask, this is most likely caused by a firmware/bootloader bug.
[    0.000000] PERCPU: Embedded 11 pages/cpu @c6dce000 s12928 r8192 d23936 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65280
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 254748K/262144K available (3202K kernel code, 102K rwdata, 1208K rodata, 220K init, 280K bss, 7396K reserved, 0K cma-reserved, 131072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0456e44   (4412 kB)
[    0.000000]       .init : 0xc0457000 - 0xc048e000   ( 220 kB)
[    0.000000]       .data : 0xc048e000 - 0xc04a7b2c   ( 103 kB)
[    0.000000]        .bss : 0xc04a7b2c - 0xc04eddec   ( 281 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x0a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000015] sched_clock: 64 bits at 400MHz, resolution 2ns, wraps every 4398046511103ns
[    0.000040] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
[    0.000254] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[    0.090143] pid_max: default: 32768 minimum: 301
[    0.090236] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090248] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090798] CPU: Testing write buffer coherency: ok
[    0.091105] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091202] Setting up static identity map for 0x82a0 - 0x82d4
[    0.130138] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.130227] Brought up 2 CPUs
[    0.130250] SMP: Total of 2 processors activated (3188.32 BogoMIPS).
[    0.130260] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.130266] CPU: This may indicate a broken bootloader or firmware.
[    0.132589] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.132715] pinctrl core: initialized pinctrl subsystem
[    0.133207] NET: Registered protocol family 16
[    0.133988] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.162541] clocksource: Switched to clocksource arm_global_timer
[    0.163916] NET: Registered protocol family 2
[    0.164584] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.164618] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.164643] TCP: Hash tables configured (established 1024 bind 1024)
[    0.164747] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.164795] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.165040] NET: Registered protocol family 1
[    0.166353] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.166562] Crashlog allocated RAM at address 0x3f00000
[    0.172918] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.172960] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.174921] bounce: pool size: 64 pages
[    0.174949] io scheduler noop registered
[    0.174965] io scheduler deadline registered (default)
[    0.175505] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.176256] console [ttyS0] disabled
[    0.176318] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 6250000) is a 16550
[    0.620917] console [ttyS0] enabled
[    0.625774] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    0.632155] nand: Samsung NAND 128MiB 3,3V 8-bit
[    0.636753] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.644323] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.654220] Scanning device for bad blocks
[    1.175724] Bad eraseblock 683 at 0x000005560000
[    1.444351] random: nonblocking pool is initialized
[    2.251905] 6 bcm47xxpart partitions found on MTD device brcmnand.0
[    2.258142] Creating 6 MTD partitions on "brcmnand.0":
[    2.263275] 0x000000000000-0x000000080000 : "boot"
[    2.269064] 0x000000080000-0x0000002a0000 : "nvram"
[    2.274901] 0x0000002a0000-0x000000380000 : "ML"
[    2.280467] 0x000000380000-0x000008000000 : "firmware"
[    2.287183] 0x00000038001c-0x000000780000 : "linux"
[    2.293060] 0x000000780000-0x000008000000 : "ubi"
[    2.299723] libphy: Fixed MDIO Bus: probed
[    2.303953] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    2.309864] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x02
[    2.316926] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    2.325581] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    2.334394] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    2.342413] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
[    2.350860] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
[    2.359298] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
[    2.367754] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x04, class 0x0)
[    2.376186] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    2.384791] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    2.393424] bcma: bus0: Core 9 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    2.403416] bcma: bus0: Core 10 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    2.411837] bcma: bus0: Core 11 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    2.420299] bcma: bus0: Core 12 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    2.428571] bcma: bus0: Core 13 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    2.437975] bcma: bus0: Core 14 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    2.448764] bcma: bus0: Core 15 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    2.456869] bcma: bus0: Core 16 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    2.466522] bcma: bus0: Core 17 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    2.475985] bcma: bus0: Flash type not supported
[    2.482243] m25p80 spi32766.0: unrecognized JEDEC id bytes: ff, ff, ff
[    2.488948] m25p80 spi32766.0: using Read Manufacturer / Device ID command (0x90) returned ff ff
[    2.497772] m25p80: probe of spi32766.0 failed with error -2
[    2.594044] bgmac_bcma bcma0:3: Found PHY addr: 30 (NOREGS)
[    2.599606] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    2.608602] b53_common: found switch: BCM53011, rev 2
[    2.614624] bgmac_bcma bcma0:4: Found PHY addr: 0
[    2.619333] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    2.627943] bgmac_bcma bcma0:5: Found PHY addr: 0
[    2.632718] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    2.639314] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    2.645609] bgmac_bcma bcma0:5: Using random MAC: e2:94:df:48:88:f3
[    2.653843] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    2.659085] bgmac_bcma: probe of bcma0:6 failed with error -524
[    2.770289] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    2.776551] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    2.783434] pcie_iproc_bcma bcma0:7: link: UP
[    2.788056] PCI: bus0: Fast back to back transfers disabled
[    2.793635] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.802132] PCI: bus1: Fast back to back transfers disabled
[    2.807749] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
[    2.814541] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    2.821841] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.826789] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
[    2.940267] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    2.946523] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    2.953403] pcie_iproc_bcma bcma0:8: link: UP
[    2.958005] PCI: bus0: Fast back to back transfers disabled
[    2.963584] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.972076] PCI: bus1: Fast back to back transfers disabled
[    2.977695] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
[    2.984489] pci 0001:01:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
[    2.991785] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.996730] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
[    3.005109] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    3.014084] bcma: bus0: Bus registered
[    3.017985] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    3.023658] bcma-pci-bridge 0000:01:00.0: enabling device (0140 -> 0142)
[    3.030385] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    3.037427] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    3.045944] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    3.054560] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    3.186481] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    3.330402] bcma: bus1: Bus registered
[    3.334223] pci 0001:00:00.0: enabling device (0140 -> 0142)
[    3.339873] bcma-pci-bridge 0001:01:00.0: enabling device (0140 -> 0142)
[    3.346612] bcma: bus2: Found chip with id 0x4360, rev 0x03 and package 0x01
[    3.353681] bcma: bus2: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2B, class 0x0)
[    3.362194] bcma: bus2: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2A, class 0x0)
[    3.370801] bcma: bus2: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x02, class 0x0)
[    3.379051] bcma: bus2: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x01, class 0x0)
[    3.387476] bcma: bus2: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x11, class 0x0)
[    3.427865] bcma: bus2: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    3.459176] bcma: bus2: Bus registered
[    3.464134] NET: Registered protocol family 10
[    3.469839] NET: Registered protocol family 17
[    3.474409] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.486988] 8021q: 802.1Q VLAN Support v1.8
[    3.491257] Registering SWP/SWPB emulation handler
[    3.498462] UBI: auto-attach mtd5
[    3.501672] ubi0: attaching mtd5
[    3.914024] ubi0: scanning is finished
[    3.945811] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 924 LEBs
[    3.953063] ubi0: attached mtd5 (name "ubi", size 120 MiB)
[    3.958529] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.965400] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.972163] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.979091] ubi0: good PEBs: 963, bad PEBs: 1, corrupted PEBs: 0
[    3.985079] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.992275] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 33275472
[    4.001199] ubi0: available PEBs: 0, total reserved PEBs: 963, PEBs reserved for bad PEB handling: 19
[    4.010400] ubi0: background thread "ubi_bgt0d" started, PID 326
[    4.011796] block ubiblock0_0: created from ubi0:0(rootfs)
[    4.011804] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    4.034852] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    4.042371] Freeing unused kernel memory: 220K (c0457000 - c048e000)
[    4.639996] init: Console is alive
[    4.643692] init: - watchdog -
[    5.177347] usbcore: registered new interface driver usbfs
[    5.183045] usbcore: registered new interface driver hub
[    5.188460] usbcore: registered new device driver usb
[    5.197185] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.204590] ehci-platform: EHCI generic platform driver
[    5.211674] ehci-platform 18021000.ehci: EHCI Host Controller
[    5.212419] bcm_ns_usb3 18105000.usb3-phy: Registered Broadcom Northstar USB 3.0 PHY driver
[    5.213840] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    5.214566] ohci-platform: OHCI generic platform driver
[    5.214782] ohci-platform 18022000.ohci: Generic Platform OHCI controller
[    5.214815] ohci-platform 18022000.ohci: new USB bus registered, assigned bus number 1
[    5.214972] ohci-platform 18022000.ohci: irq 28, io mem 0x18022000
[    5.258027] ehci-platform 18021000.ehci: new USB bus registered, assigned bus number 2
[    5.266105] ehci-platform 18021000.ehci: irq 28, io mem 0x18021000
[    5.275071] hub 1-0:1.0: USB hub found
[    5.279013] hub 1-0:1.0: 2 ports detected
[    5.289150] xhci-hcd 18023000.xhci: xHCI Host Controller
[    5.294551] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 3
[    5.302353] xhci-hcd 18023000.xhci: hcc params 0x02501164 hci version 0x100 quirks 0x01010010
[    5.302990] ehci-platform 18021000.ehci: USB 2.0 started, EHCI 1.00
[    5.303707] hub 2-0:1.0: USB hub found
[    5.303756] hub 2-0:1.0: 2 ports detected
[    5.324967] xhci-hcd 18023000.xhci: irq 29, io mem 0x18023000
[    5.331549] hub 3-0:1.0: USB hub found
[    5.335378] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    5.342772] xhci-hcd 18023000.xhci: xHCI Host Controller
[    5.348100] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 4
[    5.370322] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.379143] hub 4-0:1.0: USB hub found
[    5.383090] hub 4-0:1.0: 1 port detected
[    5.403213] init: - preinit -
[    7.518554] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    7.524578] IPv6: ADDRCONF(NETDEV_UP): eth0.1: link is not ready
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
[    8.620277] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[    8.627595] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.634180] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[   10.743312] UBIFS (ubi0:1): default file-system created
[   10.749575] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 473
[   10.831833] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   10.839644] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   10.849554] UBIFS (ubi0:1): FS size: 115929088 bytes (110 MiB, 913 LEBs), journal size 5840896 bytes (5 MiB, 46 LEBs)
[   10.860145] UBIFS (ubi0:1): reserved for root: 4952683 bytes (4836 KiB)
[   10.866733] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 65E39360-6CCE-4179-BCD2-67294FED1422, small LPT model
[   10.880299] mount_root: overlay filesystem has not been fully initialized yet
[   10.887996] mount_root: switching to ubifs overlay
[   10.896323] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.998570] procd: - early -
[   11.001668] procd: - watchdog -
[   11.620476] procd: - ubus -
[   11.681837] procd: - init -
Please press Enter to activate this console.
[   11.861680] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.875005] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   11.882608] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   11.891454] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.902105] nf_conntrack version 0.5.0 (3983 buckets, 15932 max)
[   12.012978] xt_time: kernel timezone is -0000
[   12.045654] PPP generic driver version 2.4.2
[   12.051417] NET: Registered protocol family 24
[   12.062114] b43-phy0: Broadcom 4331 WLAN found (core revision 29)
[   12.070207] b43-phy0: Found PHY: Analog 9, Type 7 (HT), Revision 1
[   12.076370] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2059, Revision 0, Version 1
[   12.090335] b43-phy1: Broadcom 4360 WLAN found (core revision 42)
[   12.100458] b43-phy1 ERROR: FOUND UNSUPPORTED PHY (Analog 12, Type 11 (AC), Revision 1)
[   12.108480] b43: probe of bcma2:1 failed with error -95
[   12.113838] Broadcom 43xx driver loaded [ Features: NL ]
[   17.868084] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   17.881819] device eth0.1 entered promiscuous mode
[   17.886627] device eth0 entered promiscuous mode
[   17.894572] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   17.931983] IPv6: ADDRCONF(NETDEV_UP): eth0.2: link is not ready
[   18.620220] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[   18.628235] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   18.650690] br-lan: port 1(eth0.1) entered forwarding state
[   18.656330] br-lan: port 1(eth0.1) entered forwarding state
[   18.662098] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.2: link becomes ready
[   18.671149] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   20.650164] br-lan: port 1(eth0.1) entered forwarding state



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

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (HEAD, r1967)
    \________\/    -----------------------------------------------------------

=== 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:/# 
root@lede:/# 
root@lede:/# 
root@lede:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:FF:FF:FF:FF:FF  
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fda4:bcf7:d61d::1/60 Scope:Global
          inet6 addr: fe80::2ff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:59 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3767 (3.6 KiB)  TX bytes:4043 (3.9 KiB)

eth0      Link encap:Ethernet  HWaddr 00:FF:FF:FF:FF:FF  
          inet6 addr: fe80::2ff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:82 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:7239 (7.0 KiB)  TX bytes:11914 (11.6 KiB)
          Interrupt:22 

eth0.1    Link encap:Ethernet  HWaddr 00:FF:FF:FF:FF:FF  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:71 errors:0 dropped:0 overruns:0 frame:0
          TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4407 (4.3 KiB)  TX bytes:4135 (4.0 KiB)

eth0.2    Link encap:Ethernet  HWaddr 00:FF:FF:FF:FF:FF  
          inet6 addr: fe80::2ff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:5595 (5.4 KiB)

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:32 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1 
          RX bytes:2192 (2.1 KiB)  TX bytes:2192 (2.1 KiB)

root@lede:/# 


My own router failed:

Decompressing...done


CFE version 6.37.14.62 (r436032) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Tue Jun 21 15:42:09 CST 2016 (li@software)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Info: DDR frequency set from clkfreq=800,*400*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.62 (r436032)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x01791D54 (8985940)
Data:       0x00F4A3CC - 0x00F4A88C (1216)
BSS:        0x00F4A898 - 0x00F8FD54 (283836)
Heap:       0x00F8FD54 - 0x0178FD54 (8388608)
Stack:      0x0178FD54 - 0x01791D54 (8192)
Text:       0x00F00000 - 0x00F416F8 (268024)

Committing NVRAM...done
Waiting for reset button release...donDigital core power voltage set to 0.9375V
Decompressing...done


CFE version 6.37.14.62 (r436032) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Tue Jun 21 15:42:09 CST 2016 (li@software)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Info: DDR frequency set from clkfreq=800,*400*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.14.62 (r436032)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes

CFE mem:    0x00F00000 - 0x01791D54 (8985940)
Data:       0x00F4A3CC - 0x00F4A88C (1216)
BSS:        0x00F4A898 - 0x00F8FD54 (283836)
Heap:       0x00F8FD54 - 0x0178FD54 (8388608)
Stack:      0x0178FD54 - 0x01791D54 (8192)
Text:       0x00F00000 - 0x00F416F8 (268024)

Device eth0:  hwaddr 00-90-4C-0F-F4-6C, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Loader:raw Filesys:raw Dev:nflash0.os File: Options:(null)
Loading: .. 1539871 bytes read
Entry at 0x00008000
Closing network.
Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.27 (wangfeng@software) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1967) ) #0 SMP Mon Oct 24 20:52:44 2016
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Netgear R6300 V2 (BCM4708)
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 11 pages/cpu @c6dce000 s12928 r8192 d23936 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65280
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 254748K/262144K available (3202K kernel code, 102K rwdata, 1208K rodata, 220K init, 280K bss, 7396K reserved, 0K cma-reserved, 131072K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0456e44   (4412 kB)
[    0.000000]       .init : 0xc0457000 - 0xc048e000   ( 220 kB)
[    0.000000]       .data : 0xc048e000 - 0xc04a7b2c   ( 103 kB)
[    0.000000]        .bss : 0xc04a7b2c - 0xc04eddec   ( 281 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x0a130000 -> 0x0a530000
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[    0.000000] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x7e530001
[    0.000015] sched_clock: 64 bits at 400MHz, resolution 2ns, wraps every 4398046511103ns
[    0.000039] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
[    0.000255] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[    0.090144] pid_max: default: 32768 minimum: 301
[    0.090235] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090792] CPU: Testing write buffer coherency: ok
[    0.091089] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091181] Setting up static identity map for 0x82a0 - 0x82d4
[    0.130139] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.130228] Brought up 2 CPUs
[    0.130249] SMP: Total of 2 processors activated (3188.32 BogoMIPS).
[    0.130259] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.130266] CPU: This may indicate a broken bootloader or firmware.
[    0.132571] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.132696] pinctrl core: initialized pinctrl subsystem
[    0.133182] NET: Registered protocol family 16
[    0.133956] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.162509] clocksource: Switched to clocksource arm_global_timer
[    0.163864] NET: Registered protocol family 2
[    0.164536] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.164569] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.164595] TCP: Hash tables configured (established 1024 bind 1024)
[    0.164692] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.164727] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.164971] NET: Registered protocol family 1
[    0.166253] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.166456] Crashlog allocated RAM at address 0x3f00000
[    0.172506] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.172541] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.174483] bounce: pool size: 64 pages
[    0.174510] io scheduler noop registered
[    0.174525] io scheduler deadline registered (default)
[    0.175048] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.175810] console [ttyS0] disabled
[    0.175871] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 6250000) is a 16550
[    0.607329] console [ttyS0] enabled
[    0.612470] nand: Could not find valid ONFI parameter page; aborting
[    0.618823] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.625179] nand: AMD/Spansion NAND 128MiB 3,3V 8-bit
[    0.630216] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.637769] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.647655] Scanning device for bad blocks
[    0.752255] Bad eraseblock 123 at 0x000000f60000
[    1.314718] Bad eraseblock 865 at 0x000006c20000
[    1.393633] Bad eraseblock 965 at 0x0000078a0000
[    1.442035] mtd_read error while parsing (offset: 0x0): -74
[    1.448041] mtd_read error while parsing (offset: 0x20000): -74
[    1.456032] mtd_read error while parsing (offset: 0x80000): -74
[    1.466141] random: nonblocking pool is initialized
[    1.476237] mtd_read error while parsing (offset: 0x200000): -74
[    1.482679] mtd_read error while parsing (offset: 0x220000): -74
[    1.489110] mtd_read error while parsing (offset: 0x240000): -74
[    1.495551] mtd_read error while parsing (offset: 0x260000): -74
[    1.501997] mtd_read error while parsing (offset: 0x280000): -74
[    1.508430] mtd_read error while parsing (offset: 0x2A0000): -74
[    1.514870] mtd_read error while parsing (offset: 0x2C0000): -74
[    1.521313] mtd_read error while parsing (offset: 0x2E0000): -74
[    1.527740] mtd_read error while parsing (offset: 0x300000): -74
[    1.534180] mtd_read error while parsing (offset: 0x320000): -74
[    1.540624] mtd_read error while parsing (offset: 0x340000): -74
[    1.547049] mtd_read error while parsing (offset: 0x360000): -74
[    1.553490] mtd_read error while parsing (offset: 0x380000): -74
[    1.559924] mtd_read error while parsing (offset: 0x3A0000): -74
[    1.566364] mtd_read error while parsing (offset: 0x3C0000): -74

。。。

[    7.542791] mtd_read error while parsing (offset: 0x7F00000): -74
[    7.549277] mtd_read error while parsing (offset: 0x7F20000): -74
[    7.555771] mtd_read error while parsing (offset: 0x7F40000): -74
[    7.562264] mtd_read error while parsing (offset: 0x7F60000): -74
[    7.568751] mtd_read error while parsing (offset: 0x7F80000): -74
[    7.575244] mtd_read error while parsing (offset: 0x7FA0000): -74
[    7.581739] mtd_read error while parsing (offset: 0x7FC0000): -74
[    7.588227] mtd_read error while parsing (offset: 0x7FE0000): -74
[    7.597346] libphy: Fixed MDIO Bus: probed
[    7.601564] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    7.607461] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x02
[    7.614489] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    7.623136] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    7.631943] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    7.639954] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.648413] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.656870] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.665318] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.673745] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.682348] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.690953] bcma: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.699574] bcma: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    7.709653] bcma: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    7.718083] bcma: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    7.726543] bcma: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    7.734825] bcma: bus0: Core 14 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    7.744234] bcma: bus0: Core 15 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    7.755025] bcma: bus0: Core 16 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    7.763130] bcma: bus0: Core 17 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    7.772789] bcma: bus0: Core 18 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    7.782255] bcma: bus0: Flash type not supported
[    7.788459] m25p80 spi32766.0: unrecognized JEDEC id bytes: ff, ff, ff
[    7.795213] m25p80 spi32766.0: using Read Manufacturer / Device ID command (0x90) returned ff ff
[    7.803995] m25p80: probe of spi32766.0 failed with error -2
[    7.810235] bgmac_bcma bcma0:3: Found PHY addr: 0
[    7.815011] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    7.821306] bgmac_bcma bcma0:3: Using random MAC: 56:84:cf:0a:5e:9a
[    7.829466] b53_common: found switch: BCM53011, rev 5
[    7.835453] bgmac_bcma bcma0:4: Found PHY addr: 0
[    7.840304] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    7.846574] bgmac_bcma bcma0:4: Using random MAC: 52:c4:a1:d7:ea:1f
[    7.854333] bgmac_bcma bcma0:5: Found PHY addr: 0
[    7.859119] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    7.865440] bgmac_bcma bcma0:5: Using random MAC: be:d9:aa:8a:83:83
[    7.873208] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    7.878453] bgmac_bcma: probe of bcma0:6 failed with error -524
[    7.990287] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    7.996548] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    8.003431] pcie_iproc_bcma bcma0:7: link: UP
[    8.008059] PCI: bus0: Fast back to back transfers disabled
[    8.013639] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.022137] PCI: bus1: Fast back to back transfers disabled
[    8.027754] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
[    8.034546] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    8.041846] pci 0000:00:00.0: PCI bridge to [bus 01]
[    8.046796] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
[    8.160272] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    8.166531] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    8.173409] pcie_iproc_bcma bcma0:8: link: UP
[    8.178037] PCI: bus0: Fast back to back transfers disabled
[    8.183616] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.192094] PCI: bus1: Fast back to back transfers disabled
[    8.197709] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
[    8.204500] pci 0001:01:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
[    8.211801] pci 0001:00:00.0: PCI bridge to [bus 01]
[    8.216744] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
[    8.330288] pcie_iproc_bcma bcma0:9: PCI host bridge to bus 0002:00
[    8.336539] pci_bus 0002:00: root bus resource [mem 0x48000000-0x4fffffff]
[    8.343410] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    8.349562] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    8.355551] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    8.362902] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    8.371880] bcma: bus0: Bus registered
[    8.375785] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    8.381469] bcma-pci-bridge 0000:01:00.0: enabling device (0140 -> 0142)
[    8.388179] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    8.395239] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    8.403757] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    8.412373] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    8.544268] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    8.590411] bcma: bus1: Bus registered
[    8.594219] pci 0001:00:00.0: enabling device (0140 -> 0142)
[    8.599866] bcma-pci-bridge 0001:01:00.0: enabling device (0140 -> 0142)
[    8.606598] bcma: bus2: Found chip with id 0x4360, rev 0x03 and package 0x01
[    8.613659] bcma: bus2: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2B, class 0x0)
[    8.622170] bcma: bus2: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2A, class 0x0)
[    8.630777] bcma: bus2: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x02, class 0x0)
[    8.639025] bcma: bus2: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x01, class 0x0)
[    8.647450] bcma: bus2: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x11, class 0x0)
[    8.687832] bcma: bus2: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    8.698786] bcma: bus2: Bus registered
[    8.703744] NET: Registered protocol family 10
[    8.709438] NET: Registered protocol family 17
[    8.714009] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    8.726595] 8021q: 802.1Q VLAN Support v1.8
[    8.730857] Registering SWP/SWPB emulation handler
[    8.738938] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.746455] Please append a correct "root=" boot option; here are the available partitions:
[    8.754797] 1f00          131072 mtdblock0  (driver?)
[    8.759836] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.768060] CPU1: stopping
[    8.770768] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.4.27 #0
[    8.776660] Hardware name: BCM5301X
[    8.780135] Backtrace: 
[    8.782606] [<c0017074>] (dump_backtrace) from [<c0017270>] (show_stack+0x18/0x1c)
[    8.790139]  r7:c7859f60 r6:00000000 r5:60000193 r4:00000000
[    8.795827] [<c0017258>] (show_stack) from [<c017d218>] (dump_stack+0x84/0xa4)
[    8.803024] [<c017d194>] (dump_stack) from [<c0018a58>] (handle_IPI+0xf4/0x19c)
[    8.810295]  r5:00000001 r4:c04a7ca8
[    8.813871] [<c0018964>] (handle_IPI) from [<c000948c>] (gic_handle_irq+0x80/0x9c)
[    8.821399]  r7:c049aeec r6:c7859f60 r5:c0490708 r4:c8802100
[    8.827067] [<c000940c>] (gic_handle_irq) from [<c000a074>] (__irq_svc+0x54/0x70)
[    8.834516] Exception stack(0xc7859f60 to 0xc7859fa8)
[    8.839550] 9f60: 00000000 000012ec c6dd9254 c000ae40 c048a224 c0490498 10c0387d c04a7cb0
[    8.847689] 9f80: 0000406a 413fc090 00000000 c7859fbc c7859fc0 c7859fb0 c0014560 c0014564
[    8.855822] 9fa0: 60000013 ffffffff
[    8.859292]  r9:413fc090 r8:0000406a r7:c7859f94 r6:ffffffff r5:60000013 r4:c0014564
[    8.867050] [<c0014530>] (arch_cpu_idle) from [<c004fc34>] (default_idle_call+0x30/0x34)
[    8.875104] [<c004fc04>] (default_idle_call) from [<c004fd68>] (cpu_startup_entry+0x130/0x194)
[    8.883674] [<c004fc38>] (cpu_startup_entry) from [<c0018764>] (secondary_start_kernel+0x10c/0x128)
[    8.892677] [<c0018658>] (secondary_start_kernel) from [<0000954c>] (0x954c)
[    8.899685]  r5:00000051 r4:0784006a
[    8.906260] Rebooting in 1 seconds..Digital core power voltage set to 0.9375V


I change the kernel config: support software BCH ECC, nand ECC SMart Media Byte Order.
But it still failed to boot.

I can see, brcmnand_read_by_pio() function returns  -74 when read oob data. Sometimes OK, and sometimes failed when nand_do_read_oob() called.



After flashing broadcom sdk firmware, my router print :

Northstar brcmnand NAND Flash Controller driver, Version 0.1 (c) Broadcom Inc. 2012
NAND device: Manufacturer ID: 0x01, Chip ID: 0xf1 (AMD NAND 128MiB 3,3V 8-bit)
Spare area=64 eccbytes 8, ecc bytes located at:
 14 15 30 31 46 47 62 63
Available 55 bytes at (off,len):
(1,13) (16,14) (32,14) (48,14) (0,0) (0,0) (0,0) (0,0) 
Scanning device for bad blocks

(Last edited by liveonlinux on 17 Nov 2016, 10:31)