D-Link DIR-868L & DIR-880L Support

Hi,

I installed LEDE on my D-Link DIR-615G2 (which is actually the same as DIR-620A) and liked it a lot. I was disappointed when I found out that LEDE does not support the D-Link DIR868L and the DIR880L, which I happen to own.

In terms of hardware, both DIR868L and DIR880L is similar to the Asus RT-AC68U, which is supported by LEDE.

I recently downloaded the LEDE source and have been mucking around trying to build firmware image for both routers, using the Asus RT-AC68U build as my base. I managed to build images for both routers by amending a couple of Makefiles and creating the routers' .dts files.

I've read the LEDE Documentation that I should be able to test the build without actually having it written into the router's flash memory, by building an initramfs image and booting via TFTP upload? Unfortunately the details are quite sparse and I'm unsure how to do it without bricking the routers. If this is possible, it would save me the hassle of cracking open the router to recover it via serial console.

So here I am asking for some expert advice.

I must say the build process is excellent, compared to the mess over at the DD-WRT camp, so kudos to the devs who devised the build procedure.

Thanks.

Hi,

I built an image for the DIR-868L and flashed the device. It did boot up, somewhat, but did not get to the console. The console boot log pasted below.

Can anyone point out to me how to move forward?

Thanks.

dlink-dir-868l console boot log

SVN revision: 810
Decompressing...done

R 1.13
07DC06011801080000000000001A103F01000000

S300402A7
00002060

00000004
00000047
0000003100000031

SVN revision: 810
Decompressing...done
Found a ST compatible (Marconix) serial flash with 32 64KB blocks; total size 2MB


CFE version 6.30.163.18 (r377098) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Fri Mar  8 14:09:35 CST 2013 (tom_lin@RangeRover)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found a AMD NAND flash:
Total size:  128MB
Block size:  128KB
Page Size:   2048B
OOB Size:    64B
Sector size: 512B
Spare size:  16B
ECC level:   8-bit
Device ID: 0x01 0xf1 0x80 0x1d 0x01
DDR Clock: 533 MHz
Info: DDR frequency set from clkfreq=800,*533*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.30.163.18 (r377098)
CPU type 0x0: 800MHz
Tot mem: 262144 KBytes

CFE mem:    0x00F00000 - 0x01092CA4 (1649828)
Data:       0x00F5A758 - 0x00F5AC9C (1348)
BSS:        0x00F5ACA8 - 0x00F90CA4 (221180)
Heap:       0x00F90CA4 - 0x01090CA4 (1048576)
Stack:      0x01090CA4 - 0x01092CA4 (8192)
Text:       0x00F00000 - 0x00F4F474 (324724)
Boot:       0x01093000 - 0x010D3000
Reloc:      I:00000000 - D:00000000

Board Name: WRGAC02
SVN revision: 810
We disable the arp for self.
emergency web server running ...
We disable the arp for self.
Device eth0:  hwaddr 00-90-4C-XX-XX-XX, ipaddr 192.168.0.1, mask 255.255.255.0
        gateway not set, nameserver not set
[ALPHA] PRESS Ctrl-C TO ENTER EMERGENCY MODE ...
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Dest=00008000, source =02000000, filename=nflash1.trx
verify_seama: data=0x02000000, size=6291460
SEAMA ==========================================
  magic      : 5ea3a417
  meta size  : 36 bytes
  meta data  : dev=/dev/mtdblock/7
  meta data  : type=firmware
  meta data  :
  meta data  :
  image size : 6291396 bytes
verify_seama: signature=[(null)], type=[firmware]
  checksum   : 7D6CCCF8FE6727C623AB1E8272A8B3E8
  digest     : 7D6CCCF8FE6727C623AB1E8272A8B3E8
  Selected !!!
================================================
seama check OK!!
insize = 2097152, out size =8388608
uncompressed size = 1589678
lzma decompress success !
Closing network.
emergency web server closing ...
Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.40 (xxx@xxx) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4659-b87b473) ) #0 SMP Tue Aug 8 19:34:16 2017
[    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] OF: fdt:Machine model: D-Link DIR-868L (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 12 pages/cpu @c6ed8000 s17932 r8192 d23028 u49152
[    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: 254820K/262144K available (3448K kernel code, 105K rwdata, 900K rodata, 228K init, 293K bss, 7324K 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 - 0xc03662d0   (3449 kB)
[    0.000000]       .init : 0xc0449000 - 0xc0482000   ( 228 kB)
[    0.000000]       .data : 0xc0482000 - 0xc049c480   ( 106 kB)
[    0.000000]        .bss : 0xc049c480 - 0xc04e58a0   ( 294 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.000016] 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.000070] Switching to timer-based delay loop, resolution 2ns
[    0.000288] Calibrating delay loop (skipped), value calculated using timer frequency.. 800.00 BogoMIPS (lpj=4000000)
[    0.000304] pid_max: default: 32768 minimum: 301
[    0.000396] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000407] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000981] CPU: Testing write buffer coherency: ok
[    0.001290] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001349] Setting up static identity map for 0x82a0 - 0x82d4
[    0.003110] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.003223] Brought up 2 CPUs
[    0.003244] SMP: Total of 2 processors activated (1600.00 BogoMIPS).
[    0.003255] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.003261] CPU: This may indicate a broken bootloader or firmware.
[    0.005747] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005779] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.005918] pinctrl core: initialized pinctrl subsystem
[    0.006353] NET: Registered protocol family 16
[    0.007106] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.052588] clocksource: Switched to clocksource arm_global_timer
[    0.053916] NET: Registered protocol family 2
[    0.054571] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.054602] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.054628] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054698] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.054733] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.054923] NET: Registered protocol family 1
[    0.056226] Crashlog allocated RAM at address 0x3f00000
[    0.056744] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.061880] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.061904] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.064208] bounce: pool size: 64 pages
[    0.064227] io scheduler noop registered
[    0.064236] io scheduler deadline registered (default)
[    0.064906] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.065710] console [ttyS0] disabled
[    0.065776] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 6250000) is a 16550
[    0.528120] console [ttyS0] enabled
[    0.532935] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.539277] nand: AMD/Spansion S34ML01G2
[    0.543215] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.550788] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.560679] Scanning device for bad blocks
[    0.588088] random: fast init done
[    1.882880] mtd_read error while parsing (offset: 0x2000000): -74
[    1.889815] mtd_read error while parsing (offset: 0x2020000): -74
[    1.896755] mtd_read error while parsing (offset: 0x2040000): -74
[    1.903692] mtd_read error while parsing (offset: 0x2060000): -74
[    1.910619] mtd_read error while parsing (offset: 0x2080000): -74
[    1.917547] mtd_read error while parsing (offset: 0x20A0000): -74
[    1.924490] mtd_read error while parsing (offset: 0x20C0000): -74
[    1.931332] random: crng init done
[    1.934850] mtd_read error while parsing (offset: 0x20E0000): -74
[    1.941790] mtd_read error while parsing (offset: 0x2100000): -74
[    1.948720] mtd_read error while parsing (offset: 0x2120000): -74
[    1.955662] mtd_read error while parsing (offset: 0x2140000): -74
[    1.962597] mtd_read error while parsing (offset: 0x2160000): -74
[    1.969525] mtd_read error while parsing (offset: 0x2180000): -74
<deleted similar outputs>
[    7.199110] mtd_read error while parsing (offset: 0x7FE0000): -74
[    7.209012] libphy: Fixed MDIO Bus: probed
[    7.213267] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    7.219306] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x02
[    7.226347] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    7.235005] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    7.243829] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    7.251918] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.260465] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.268960] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.277476] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    7.285915] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.294538] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.303211] bcma: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    7.311866] bcma: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    7.321990] bcma: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    7.330471] bcma: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    7.338938] bcma: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    7.347251] bcma: bus0: Core 14 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    7.356681] bcma: bus0: Core 15 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    7.367485] bcma: bus0: Core 16 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    7.375665] bcma: bus0: Core 17 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    7.385338] bcma: bus0: Core 18 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    7.394807] bcma: bus0: Flash type not supported
[    7.401113] bgmac_bcma bcma0:3: Found PHY addr: 0
[    7.405815] bgmac_bcma bcma0:3: Invalid MAC addr: 00:00:00:00:00:00
[    7.412124] bgmac_bcma bcma0:3: Using random MAC: ea:49:5e:f6:fb:02
[    7.420350] b53_common: found switch: BCM53011, rev 5
[    7.426319] bgmac_bcma bcma0:4: Found PHY addr: 0
[    7.431088] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    7.437332] bgmac_bcma bcma0:4: Using random MAC: 72:10:ef:81:04:c7
[    7.445156] bgmac_bcma bcma0:5: Found PHY addr: 0
[    7.449860] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    7.456157] bgmac_bcma bcma0:5: Using random MAC: 8e:6a:cb:7f:7a:a0
[    7.463999] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    7.469243] bgmac_bcma: probe of bcma0:6 failed with error -524
[    7.590319] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    7.596579] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    7.603456] pcie_iproc_bcma bcma0:7: link: UP
[    7.608120] PCI: bus0: Fast back to back transfers disabled
[    7.613698] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.622201] PCI: bus1: Fast back to back transfers disabled
[    7.627810] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
[    7.634602] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    7.641901] pci 0000:00:00.0: PCI bridge to [bus 01]
[    7.646852] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
[    7.770303] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    7.776558] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    7.783433] pcie_iproc_bcma bcma0:8: link: UP
[    7.788064] PCI: bus0: Fast back to back transfers disabled
[    7.793642] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    7.802130] PCI: bus1: Fast back to back transfers disabled
[    7.807739] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
[    7.814533] pci 0001:01:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
[    7.821828] pci 0001:00:00.0: PCI bridge to [bus 01]
[    7.826780] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
[    7.950281] pcie_iproc_bcma bcma0:9: PCI host bridge to bus 0002:00
[    7.956535] pci_bus 0002:00: root bus resource [mem 0x48000000-0x4fffffff]
[    7.963408] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    7.969559] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    7.975548] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    7.984123] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    7.993119] bcma: bus0: Bus registered
[    7.997031] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    8.002714] bcma-pci-bridge 0000:01:00.0: enabling device (0140 -> 0142)
[    8.009423] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    8.016488] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    8.025007] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    8.033624] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    8.165569] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    8.210512] bcma: bus1: Bus registered
[    8.214331] pci 0001:00:00.0: enabling device (0140 -> 0142)
[    8.219975] bcma-pci-bridge 0001:01:00.0: enabling device (0140 -> 0142)
[    8.226722] bcma: bus2: Found chip with id 0x4360, rev 0x03 and package 0x01
[    8.233796] bcma: bus2: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2B, class 0x0)
[    8.242310] bcma: bus2: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2A, class 0x0)
[    8.250915] bcma: bus2: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x02, class 0x0)
[    8.259161] bcma: bus2: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x01, class 0x0)
[    8.267601] bcma: bus2: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x11, class 0x0)
[    8.308036] bcma: bus2: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    8.319082] bcma: bus2: Bus registered
[    8.323771] NET: Registered protocol family 10
[    8.329706] NET: Registered protocol family 17
[    8.334267] 8021q: 802.1Q VLAN Support v1.8
[    8.338502] Registering SWP/SWPB emulation handler
[    8.346188] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    8.353688] Please append a correct "root=" boot option; here are the available partitions:
[    8.362028] 1f00          131072 mtdblock0 [    8.366012]  (driver?)
[    8.368369] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    8.376595] CPU1: stopping
[    8.379298] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.40 #0
[    8.385183] Hardware name: BCM5301X
[    8.388649] Backtrace:
[    8.391121] [<c000d6e4>] (dump_backtrace) from [<c000d9a4>] (show_stack+0x18/0x1c)
[    8.398659]  r7:c785bf58 r6:00000000 r5:60000193 r4:00000000
[    8.404311] [<c000d98c>] (show_stack) from [<c0196d28>] (dump_stack+0x84/0xa4)
[    8.411508] [<c0196ca4>] (dump_stack) from [<c000ff9c>] (handle_IPI+0xd4/0x18c)
[    8.418778]  r5:00000001 r4:c049c6c8
[    8.422344] [<c000fec8>] (handle_IPI) from [<c0009498>] (gic_handle_irq+0x80/0x9c)
[    8.429875]  r7:c0490b88 r6:c785bf58 r5:c04852d8 r4:c8802100
[    8.435509] [<c0009418>] (gic_handle_irq) from [<c000e46c>] (__irq_svc+0x6c/0x90)
[    8.442952] Exception stack(0xc785bf58 to 0xc785bfa0)
[    8.447981] bf40:                                                       00000000 0000138c
[    8.456125] bf60: c6ee6274 c0016320 c785a000 c0484fe4 00000002 c0485034 0000406a 413fc090
[    8.464264] bf80: 00000000 c785bfb4 c785bfb8 c785bfa8 c000ae08 c000ae0c 60000013 ffffffff
[    8.472403]  r9:c785a000 r8:0000406a r7:c785bf8c r6:ffffffff r5:60000013 r4:c000ae0c
[    8.480113] [<c000add8>] (arch_cpu_idle) from [<c0365d14>] (default_idle_call+0x30/0x34)
[    8.488190] [<c0365ce4>] (default_idle_call) from [<c004d53c>] (cpu_startup_entry+0xc8/0x128)
[    8.496685] [<c004d474>] (cpu_startup_entry) from [<c000fca4>] (secondary_start_kernel+0x10c/0x12c)
[    8.505687]  r7:c049c6d0 r4:00000001
[    8.509254] [<c000fb98>] (secondary_start_kernel) from [<0000954c>] (0x954c)
[    8.516272]  r5:00000051 r4:0784406a
[    8.522556] Rebooting in 1 seconds..

Maybe @rmilecki could give you some pointers, he's got experience with plenty of this Broadcom platforms.

Failing that, you could always pop into IRC and poke some people.

Got a little bit further today. Not sure if it is due to NAND driver issue or incorrect partition mapping of the flash.

Anyone encounter similar issue and managed to resolve?

SVN revision: 810
Decompressing...done
Found a ST compatible (Marconix) serial flash with 32 64KB blocks; total size 2MB


CFE version 6.30.163.18 (r377098) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Fri Mar  8 14:09:35 CST 2013 (tom_lin@RangeRover)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found a AMD NAND flash:
Total size:  128MB
Block size:  128KB
Page Size:   2048B
OOB Size:    64B
Sector size: 512B
Spare size:  16B
ECC level:   8-bit
Device ID: 0x01 0xf1 0x80 0x1d 0x01
DDR Clock: 533 MHz
Info: DDR frequency set from clkfreq=800,*533*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.30.163.18 (r377098)
CPU type 0x0: 800MHz
Tot mem: 262144 KBytes

CFE mem:    0x00F00000 - 0x01092CA4 (1649828)
Data:       0x00F5A758 - 0x00F5AC9C (1348)
BSS:        0x00F5ACA8 - 0x00F90CA4 (221180)
Heap:       0x00F90CA4 - 0x01090CA4 (1048576)
Stack:      0x01090CA4 - 0x01092CA4 (8192)
Text:       0x00F00000 - 0x00F4F474 (324724)
Boot:       0x01093000 - 0x010D3000
Reloc:      I:00000000 - D:00000000

Board Name: WRGAC02
SVN revision: 810
We disable the arp for self.
emergency web server running ...
We disable the arp for self.
Device eth0:  hwaddr 00-90-4C-XX-XX-XX, ipaddr 192.168.0.1, mask 255.255.255.0
        gateway not set, nameserver not set
[ALPHA] PRESS Ctrl-C TO ENTER EMERGENCY MODE ...
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Dest=00008000, source =02000000, filename=nflash1.trx
verify_seama: data=0x02000000, size=6946820
SEAMA ==========================================
  magic      : 5ea3a417
  meta size  : 36 bytes
  meta data  : dev=/dev/mtdblock/7
  meta data  : type=firmware
  meta data  : 
  meta data  : 
  image size : 6946756 bytes
verify_seama: signature=[(null)], type=[firmware]
  checksum   : 56953D0B21D812419EDB3F7674D63C7A
  digest     : 56953D0B21D812419EDB3F7674D63C7A
  Selected !!!
================================================
seama check OK!!
insize = 2097152, out size =8388608
uncompressed size = 1615235
lzma decompress success !
Closing network.
emergency web server closing ...
Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.40 (xxx@xxx) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4659-b87b473) ) #0 SMP Tue Aug 8 19:34:16 2017
[    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] OF: fdt:Machine model: D-Link DIR-868L (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 12 pages/cpu @c6dd8000 s17932 r8192 d23028 u49152
[    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: 254740K/262144K available (3507K kernel code, 106K rwdata, 920K rodata, 228K init, 293K bss, 7404K 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 - 0xc03750b8   (3509 kB)
[    0.000000]       .init : 0xc045d000 - 0xc0496000   ( 228 kB)
[    0.000000]       .data : 0xc0496000 - 0xc04b0940   ( 107 kB)
[    0.000000]        .bss : 0xc04b0940 - 0xc04f9d60   ( 294 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 erratum 769419 enabled
[    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.000016] 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.000071] Switching to timer-based delay loop, resolution 2ns
[    0.000292] Calibrating delay loop (skipped), value calculated using timer frequency.. 800.00 BogoMIPS (lpj=4000000)
[    0.000309] pid_max: default: 32768 minimum: 301
[    0.000403] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000414] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000971] CPU: Testing write buffer coherency: ok
[    0.001274] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001327] Setting up static identity map for 0x82a0 - 0x82d4
[    0.003056] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.003159] Brought up 2 CPUs
[    0.003183] SMP: Total of 2 processors activated (1600.00 BogoMIPS).
[    0.003192] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.003198] CPU: This may indicate a broken bootloader or firmware.
[    0.005628] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005658] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.005801] pinctrl core: initialized pinctrl subsystem
[    0.006241] NET: Registered protocol family 16
[    0.007002] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.052543] clocksource: Switched to clocksource arm_global_timer
[    0.053968] NET: Registered protocol family 2
[    0.054659] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.054692] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.054718] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054791] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.054827] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.055032] NET: Registered protocol family 1
[    0.056066] Crashlog allocated RAM at address 0x3f00000
[    0.056693] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.061588] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.061610] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.064049] bounce: pool size: 64 pages
[    0.064068] io scheduler noop registered
[    0.064077] io scheduler deadline registered (default)
[    0.064716] bcm_ns_usb3 18105000.usb3-phy: Registered Broadcom Northstar USB 3.0 PHY driver
[    0.065336] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.066113] console [ttyS0] disabled
[    0.066180] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 6250000) is a 16550
[    0.540958] console [ttyS0] enabled
[    0.545928] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.552310] nand: AMD/Spansion S34ML01G2
[    0.556226] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.563793] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.573691] Scanning device for bad blocks
[    0.601199] random: fast init done
[    1.685955] 1 ofpart partitions found on MTD device brcmnand.0
[    1.691777] Creating 1 MTD partitions on "brcmnand.0":
[    1.696899] 0x000000000000-0x000006000000 : "firmware"
[    1.716247] 2 seama-fw partitions found on MTD device firmware
[    1.722098] 0x000000000040-0x000000400000 : "kernel"
[    1.728022] 0x000000400000-0x000006000000 : "ubi"
[    1.735782] libphy: Fixed MDIO Bus: probed
[    1.740063] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    1.746299] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x02
[    1.753360] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    1.762023] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    1.770851] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    1.778942] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.787464] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.795990] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.804516] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.812951] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    1.821582] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    1.830272] bcma: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    1.838911] bcma: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    1.849046] bcma: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    1.857533] bcma: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    1.866018] bcma: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    1.874324] bcma: bus0: Core 14 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    1.883751] bcma: bus0: Core 15 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    1.894555] bcma: bus0: Core 16 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    1.902716] bcma: bus0: Core 17 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    1.912388] bcma: bus0: Core 18 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    1.921850] bcma: bus0: Flash type not supported
[    1.928014] m25p80 spi32766.0: mx25l1606e (2048 Kbytes)
[    1.949185] 3 bcm47xxpart partitions found on MTD device spi32766.0
[    1.955450] Creating 3 MTD partitions on "spi32766.0":
[    1.960574] 0x000000000000-0x0000001e0000 : "boot"
[    1.966340] 0x0000001e0000-0x0000001f0000 : "nvram"
[    1.972224] 0x0000001f0000-0x000000200000 : "nvram"
[    2.093902] bgmac_bcma bcma0:3: Found PHY addr: 30 (NOREGS)
[    2.099469] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    2.108481] b53_common: found switch: BCM53011, rev 5
[    2.114491] bgmac_bcma bcma0:4: Found PHY addr: 0
[    2.119195] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    2.125744] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    2.132005] bgmac_bcma bcma0:4: Using random MAC: ee:5b:46:10:a7:7a
[    2.140406] bgmac_bcma bcma0:5: Found PHY addr: 0
[    2.145116] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    2.151681] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    2.157931] bgmac_bcma bcma0:5: Using random MAC: 7a:20:9c:6c:24:3b
[    2.166255] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    2.171559] bgmac_bcma: probe of bcma0:6 failed with error -524
[    2.290315] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    2.296569] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    2.303448] pcie_iproc_bcma bcma0:7: link: UP
[    2.308087] PCI: bus0: Fast back to back transfers disabled
[    2.313661] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.322169] PCI: bus1: Fast back to back transfers disabled
[    2.327781] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
[    2.334567] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    2.341868] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.346818] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
[    2.470302] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    2.476556] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    2.483434] pcie_iproc_bcma bcma0:8: link: UP
[    2.488071] PCI: bus0: Fast back to back transfers disabled
[    2.493650] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.502119] PCI: bus1: Fast back to back transfers disabled
[    2.507729] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
[    2.514521] pci 0001:01:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
[    2.521820] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.526771] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
[    2.650280] pcie_iproc_bcma bcma0:9: PCI host bridge to bus 0002:00
[    2.656538] pci_bus 0002:00: root bus resource [mem 0x48000000-0x4fffffff]
[    2.663407] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    2.669559] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    2.675544] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    2.684158] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    2.693135] bcma: bus0: Bus registered
[    2.697032] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    2.702719] bcma-pci-bridge 0000:01:00.0: enabling device (0140 -> 0142)
[    2.709432] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    2.716495] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    2.725008] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    2.733626] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    2.865573] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    3.030484] bcma: bus1: Bus registered
[    3.034295] pci 0001:00:00.0: enabling device (0140 -> 0142)
[    3.039942] bcma-pci-bridge 0001:01:00.0: enabling device (0140 -> 0142)
[    3.046697] bcma: bus2: Found chip with id 0x4360, rev 0x03 and package 0x01
[    3.053759] bcma: bus2: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2B, class 0x0)
[    3.062275] bcma: bus2: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2A, class 0x0)
[    3.070880] bcma: bus2: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x02, class 0x0)
[    3.079128] bcma: bus2: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x01, class 0x0)
[    3.087553] bcma: bus2: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x11, class 0x0)
[    3.127978] bcma: bus2: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    3.161972] bcma: bus2: Bus registered
[    3.166598] NET: Registered protocol family 10
[    3.172542] NET: Registered protocol family 17
[    3.177032] 8021q: 802.1Q VLAN Support v1.8
[    3.181343] Registering SWP/SWPB emulation handler
[    3.188370] UBI: auto-attach mtd2
[    3.191759] ubi0: attaching mtd2
[    3.296748] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 224:0, read only 64 bytes, retry
[    3.308882] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 224:0, read only 64 bytes, retry
[    3.321014] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 224:0, read only 64 bytes, retry
[    3.333126] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 224:0, read 64 bytes
[    3.343184] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.40 #0
[    3.349076] Hardware name: BCM5301X
[    3.352548] Backtrace: 
[    3.355007] [<c000d6ec>] (dump_backtrace) from [<c000d9ac>] (show_stack+0x18/0x1c)
[    3.362542]  r7:000000e0 r6:00000040 r5:60000013 r4:00000000
[    3.368195] [<c000d994>] (show_stack) from [<c0196ec8>] (dump_stack+0x84/0xa4)
[    3.375385] [<c0196e44>] (dump_stack) from [<c0243cfc>] (ubi_io_read+0x1dc/0x2b0)
[    3.382833]  r5:c7915000 r4:ffffffb6
[    3.386399] [<c0243b20>] (ubi_io_read) from [<c0244010>] (ubi_io_read_ec_hdr+0x74/0x20c)
[    3.394460]  r10:c7b26cc0 r9:00000000 r8:00000000 r7:000000e0 r6:c7915000 r5:c7a75000
[    3.402246]  r4:c7a75000
[    3.404779] [<c0243f9c>] (ubi_io_read_ec_hdr) from [<c0248a64>] (ubi_attach+0x1a8/0x11e8)
[    3.412923]  r10:c7b26cc0 r9:00000001 r8:00000000 r7:000000e0 r6:c7915000 r5:c7ac86c0
[    3.420709]  r4:c7a75000
[    3.423240] [<c02488bc>] (ubi_attach) from [<c023e6dc>] (ubi_attach_mtd_dev+0x614/0xaf8)
[    3.431292]  r10:00000000 r9:00000800 r8:00000840 r7:c7a45400 r6:00000000 r5:c7915000
[    3.439078]  r4:00000800
[    3.441613] [<c023e0c8>] (ubi_attach_mtd_dev) from [<c04746b0>] (ubi_init+0x1fc/0x2c0)
[    3.449497]  r10:00000000 r9:00000000 r8:c0498fc8 r7:c0490190 r6:c048b730 r5:c7839eb4
[    3.457283]  r4:c7a45400
[    3.459814] [<c04744b4>] (ubi_init) from [<c00098e0>] (do_one_initcall+0xc4/0x180)
[    3.467353]  r8:c0498fc8 r7:c0490190 r6:c0487838 r5:c04744b4 r4:00000007
[    3.474030] [<c000981c>] (do_one_initcall) from [<c045de34>] (kernel_init_freeable+0x128/0x1f0)
[    3.482691]  r9:c04b0940 r8:c04b0940 r7:c0490190 r6:c0487838 r5:0000003d r4:00000007
[    3.490408] [<c045dd0c>] (kernel_init_freeable) from [<c036fb28>] (kernel_init+0x10/0xfc)
[    3.498554]  r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c036fb18 r4:00000000
[    3.506261] [<c036fb18>] (kernel_init) from [<c000a538>] (ret_from_fork+0x14/0x3c)
[    3.513789]  r5:c036fb18 r4:00000000

Finally got to boot all the way into user land for the DIR-868L! Woo-hoo!

The .dts used to boot, as well as the boot log shown below:

/*
 * Broadcom BCM470X / BCM5301X ARM platform code.
 * DTS for D-Link DIR-868L
 *
 * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
 *
 * Permission to use, copy, modify, and/or distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
 */

/dts-v1/;

#include "bcm4708.dtsi"
#include "bcm5301x-nand-cs0-bch8.dtsi"
/ {
	compatible = "dlink,dir-868l", "brcm,bcm4708";
	model = "D-Link DIR-868L (BCM4708)";

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

	memory {
		reg = <0x00000000 0x08000000
                       0x88000000 0x08000000>;
	};

	nand: nand@18028000 {
		nandcs@0 {
			firmware@0x0 {
				label = "firmware";
				reg = <0x00000000 0x02000000>;
			};
		};
	};

	leds {
		compatible = "gpio-leds";

		power-amber {
			label = "bcm53xx:amber:power";
			gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
			linux,default-trigger = "default-on";
		};

		wan-amber {
			label = "bcm53xx:amber:wan";
			gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
		};

		power-green {
			label = "bcm53xx:gree:power";
			gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
		};

		wan-green {
			label = "bcm53xx:green:wan";
			gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
		};
	};

	gpio-keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;

		wps {
			label = "WPS";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
		};

		restart {
			label = "Reset";
			linux,code = <KEY_RESTART>;
			gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
		};
	};
};

&usb3 {
	vcc-gpio = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
};

&spi_nor {
	status = "okay";
};

&mdio {
	status = "okay";
};

==================
Serial console boot log:

SVN revision: 810
Decompressing...done

R 1.13
07DC06011801080000000000001A103F01000000

S3004029B
00001F50

00000004
00000046
0000003100000031

SVN revision: 810
Decompressing...done
Found a ST compatible (Marconix) serial flash with 32 64KB blocks; total size 2MB


CFE version 6.30.163.18 (r377098) based on BBP 1.0.37 for BCM947XX (32bit,SP,)
Build Date: Fri Mar  8 14:09:35 CST 2013 (tom_lin@RangeRover)
Copyright (C) 2000-2008 Broadcom Corporation.

Init Arena
Init Devs.
Boot partition size = 262144(0x40000)
Found a AMD NAND flash:
Total size:  128MB
Block size:  128KB
Page Size:   2048B
OOB Size:    64B
Sector size: 512B
Spare size:  16B
ECC level:   8-bit
Device ID: 0x01 0xf1 0x80 0x1d 0x01
DDR Clock: 533 MHz
Info: DDR frequency set from clkfreq=800,*533*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.30.163.18 (r377098)
CPU type 0x0: 800MHz
Tot mem: 262144 KBytes

CFE mem:    0x00F00000 - 0x01092CA4 (1649828)
Data:       0x00F5A758 - 0x00F5AC9C (1348)
BSS:        0x00F5ACA8 - 0x00F90CA4 (221180)
Heap:       0x00F90CA4 - 0x01090CA4 (1048576)
Stack:      0x01090CA4 - 0x01092CA4 (8192)
Text:       0x00F00000 - 0x00F4F474 (324724)
Boot:       0x01093000 - 0x010D3000
Reloc:      I:00000000 - D:00000000

Board Name: WRGAC02
SVN revision: 810
We disable the arp for self.
emergency web server running ...
We disable the arp for self.
Device eth0:  hwaddr E8-CC-18-XX-XX-XX, ipaddr 192.168.0.1, mask 255.255.255.0
        gateway not set, nameserver not set
[ALPHA] PRESS Ctrl-C TO ENTER EMERGENCY MODE ...
Loader:raw Filesys:tftp Dev:eth0 File:: Options:(null)
Loading: Failed.
Could not load :: Timeout occured
Dest=00008000, source =02000000, filename=nflash1.trx
verify_seama: data=0x02000000, size=6946820
SEAMA ==========================================
  magic      : 5ea3a417
  meta size  : 36 bytes
  meta data  : dev=/dev/mtdblock/7
  meta data  : type=firmware
  meta data  : 
  meta data  : 
  image size : 6946756 bytes
verify_seama: signature=[(null)], type=[firmware]
  checksum   : 5D85CFAE00A709668E84E6CFC277029D
  digest     : 5D85CFAE00A709668E84E6CFC277029D
  Selected !!!
================================================
seama check OK!!
insize = 2097152, out size =8388608
uncompressed size = 1615235
lzma decompress success !
Closing network.
emergency web server closing ...
Starting program at 0x00008000
Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.40 (xxx@dxxx) (gcc version 5.4.0 (LEDE GCC 5.4.0 r4659-b87b473) ) #0 SMP Tue Aug 8 19:34:16 2017
[    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] OF: fdt:Machine model: D-Link DIR-868L (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 12 pages/cpu @c6dd8000 s17932 r8192 d23028 u49152
[    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: 254740K/262144K available (3507K kernel code, 106K rwdata, 920K rodata, 228K init, 293K bss, 7404K 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 - 0xc03750b8   (3509 kB)
[    0.000000]       .init : 0xc045d000 - 0xc0496000   ( 228 kB)
[    0.000000]       .data : 0xc0496000 - 0xc04b0940   ( 107 kB)
[    0.000000]        .bss : 0xc04b0940 - 0xc04f9d60   ( 294 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 erratum 769419 enabled
[    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.000016] sched_clock: 64 bits at 400MHz, resolution 2ns, wraps every 4398046511103ns
[    0.000041] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x5c4093a7d1, max_idle_ns: 440795210635 ns
[    0.000071] Switching to timer-based delay loop, resolution 2ns
[    0.000285] Calibrating delay loop (skipped), value calculated using timer frequency.. 800.00 BogoMIPS (lpj=4000000)
[    0.000302] pid_max: default: 32768 minimum: 301
[    0.000398] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000409] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000972] CPU: Testing write buffer coherency: ok
[    0.001274] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.001331] Setting up static identity map for 0x82a0 - 0x82d4
[    0.003079] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.003187] Brought up 2 CPUs
[    0.003209] SMP: Total of 2 processors activated (1600.00 BogoMIPS).
[    0.003219] CPU: WARNING: CPU(s) started in wrong/inconsistent modes (primary CPU mode 0x13)
[    0.003225] CPU: This may indicate a broken bootloader or firmware.
[    0.005655] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005684] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.005825] pinctrl core: initialized pinctrl subsystem
[    0.006255] NET: Registered protocol family 16
[    0.007014] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.052600] clocksource: Switched to clocksource arm_global_timer
[    0.054026] NET: Registered protocol family 2
[    0.054701] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.054731] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.054757] TCP: Hash tables configured (established 1024 bind 1024)
[    0.054829] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.054864] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.055058] NET: Registered protocol family 1
[    0.056253] Crashlog allocated RAM at address 0x3f00000
[    0.056799] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    0.061710] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.061734] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.064030] bounce: pool size: 64 pages
[    0.064049] io scheduler noop registered
[    0.064058] io scheduler deadline registered (default)
[    0.064678] bcm_ns_usb3 18105000.usb3-phy: Registered Broadcom Northstar USB 3.0 PHY driver
[    0.065307] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.066136] console [ttyS0] disabled
[    0.066204] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 18, base_baud = 6250000) is a 16550
[    0.541005] console [ttyS0] enabled
[    0.545955] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xf1
[    0.552327] nand: AMD/Spansion S34ML01G2
[    0.556244] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.563816] iproc_nand 18028000.nand: detected 128MiB total, 128KiB blocks, 2KiB pages, 16B OOB, 8-bit, BCH-8
[    0.573710] Scanning device for bad blocks
[    0.601231] random: fast init done
[    1.686608] 1 ofpart partitions found on MTD device brcmnand.0
[    1.692437] Creating 1 MTD partitions on "brcmnand.0":
[    1.697557] 0x000000000000-0x000002000000 : "firmware"
[    1.716644] 2 seama-fw partitions found on MTD device firmware
[    1.722496] 0x000000000040-0x000000400000 : "kernel"
[    1.728437] 0x000000400000-0x000002000000 : "ubi"
[    1.735853] libphy: Fixed MDIO Bus: probed
[    1.740131] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
[    1.746379] bcma: bus0: Found chip with id 53010, rev 0x00 and package 0x02
[    1.753426] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2A, class 0x0)
[    1.762088] bcma: bus0: Core 1 found: Chipcommon B (manuf 0x4BF, id 0x50B, rev 0x01, class 0x0)
[    1.770910] bcma: bus0: Core 2 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, class 0x0)
[    1.779005] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.787537] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.796057] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.804587] bcma: bus0: Core 6 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 0x05, class 0x0)
[    1.813026] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    1.821649] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    1.830332] bcma: bus0: Core 9 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 0x01, class 0x0)
[    1.838975] bcma: bus0: Core 10 found: ARM Cortex A9 core (ihost) (manuf 0x4BF, id 0x510, rev 0x01, class 0x0)
[    1.849113] bcma: bus0: Core 11 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 0x01, class 0x0)
[    1.857602] bcma: bus0: Core 12 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 0x01, class 0x0)
[    1.866081] bcma: bus0: Core 13 found: SDIO3 (manuf 0x4BF, id 0x503, rev 0x01, class 0x0)
[    1.874385] bcma: bus0: Core 14 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 0x506, rev 0x01, class 0x0)
[    1.883814] bcma: bus0: Core 15 found: Denali DDR2/DDR3 memory controller (manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    1.894620] bcma: bus0: Core 16 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, class 0x0)
[    1.902784] bcma: bus0: Core 17 found: NAND flash controller (manuf 0x4BF, id 0x509, rev 0x01, class 0x0)
[    1.912460] bcma: bus0: Core 18 found: SPI flash controller (manuf 0x4BF, id 0x50A, rev 0x01, class 0x0)
[    1.921931] bcma: bus0: Flash type not supported
[    1.928089] m25p80 spi32766.0: mx25l1606e (2048 Kbytes)
[    1.949251] 3 bcm47xxpart partitions found on MTD device spi32766.0
[    1.955505] Creating 3 MTD partitions on "spi32766.0":
[    1.960637] 0x000000000000-0x0000001e0000 : "boot"
[    1.966442] 0x0000001e0000-0x0000001f0000 : "nvram"
[    1.972323] 0x0000001f0000-0x000000200000 : "nvram"
[    2.074498] bgmac_bcma bcma0:3: Found PHY addr: 30 (NOREGS)
[    2.080067] bgmac_bcma bcma0:3: Support for Roboswitch not implemented
[    2.089022] b53_common: found switch: BCM53011, rev 5
[    2.095035] bgmac_bcma bcma0:4: Found PHY addr: 0
[    2.099738] bgmac_bcma bcma0:4: Support for Roboswitch not implemented
[    2.106275] bgmac_bcma bcma0:4: Invalid MAC addr: 00:00:00:00:00:00
[    2.112532] bgmac_bcma bcma0:4: Using random MAC: 0e:b9:dd:f3:cc:44
[    2.120802] bgmac_bcma bcma0:5: Found PHY addr: 0
[    2.125505] bgmac_bcma bcma0:5: Support for Roboswitch not implemented
[    2.132066] bgmac_bcma bcma0:5: Invalid MAC addr: 00:00:00:00:00:00
[    2.138310] bgmac_bcma bcma0:5: Using random MAC: 5e:a9:97:34:7f:02
[    2.146570] bgmac_bcma bcma0:6: Unsupported core_unit 3
[    2.151883] bgmac_bcma: probe of bcma0:6 failed with error -524
[    2.270324] pcie_iproc_bcma bcma0:7: PCI host bridge to bus 0000:00
[    2.276580] pci_bus 0000:00: root bus resource [mem 0x08000000-0x0fffffff]
[    2.283458] pcie_iproc_bcma bcma0:7: link: UP
[    2.288094] PCI: bus0: Fast back to back transfers disabled
[    2.293674] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.302192] PCI: bus1: Fast back to back transfers disabled
[    2.307805] pci 0000:00:00.0: BAR 8: assigned [mem 0x08000000-0x080fffff]
[    2.314595] pci 0000:01:00.0: BAR 0: assigned [mem 0x08000000-0x08003fff 64bit]
[    2.321895] pci 0000:00:00.0: PCI bridge to [bus 01]
[    2.326844] pci 0000:00:00.0:   bridge window [mem 0x08000000-0x080fffff]
[    2.450319] pcie_iproc_bcma bcma0:8: PCI host bridge to bus 0001:00
[    2.456575] pci_bus 0001:00: root bus resource [mem 0x40000000-0x47ffffff]
[    2.463451] pcie_iproc_bcma bcma0:8: link: UP
[    2.468087] PCI: bus0: Fast back to back transfers disabled
[    2.473669] pci 0001:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    2.482141] PCI: bus1: Fast back to back transfers disabled
[    2.487748] pci 0001:00:00.0: BAR 8: assigned [mem 0x40000000-0x400fffff]
[    2.494538] pci 0001:01:00.0: BAR 0: assigned [mem 0x40000000-0x40007fff 64bit]
[    2.501838] pci 0001:00:00.0: PCI bridge to [bus 01]
[    2.506790] pci 0001:00:00.0:   bridge window [mem 0x40000000-0x400fffff]
[    2.630285] pcie_iproc_bcma bcma0:9: PCI host bridge to bus 0002:00
[    2.636537] pci_bus 0002:00: root bus resource [mem 0x48000000-0x4fffffff]
[    2.643408] pcie_iproc_bcma bcma0:9: PHY or data link is INACTIVE!
[    2.649560] pcie_iproc_bcma bcma0:9: no PCIe EP device detected
[    2.655546] pcie_iproc_bcma bcma0:9: PCIe controller setup failed
[    2.664167] bcm47xx-wdt bcm47xx-wdt.0: BCM47xx Watchdog Timer enabled (30 seconds, Software Timer)
[    2.673140] bcma: bus0: Bus registered
[    2.677044] pci 0000:00:00.0: enabling device (0140 -> 0142)
[    2.682732] bcma-pci-bridge 0000:01:00.0: enabling device (0140 -> 0142)
[    2.689449] bcma: bus1: Found chip with id 0x4331, rev 0x02 and package 0x08
[    2.696512] bcma: bus1: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0)
[    2.705028] bcma: bus1: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0)
[    2.713644] bcma: bus1: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0)
[    2.845583] bcma: bus1: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    2.990499] bcma: bus1: Bus registered
[    2.994313] pci 0001:00:00.0: enabling device (0140 -> 0142)
[    2.999958] bcma-pci-bridge 0001:01:00.0: enabling device (0140 -> 0142)
[    3.006713] bcma: bus2: Found chip with id 0x4360, rev 0x03 and package 0x01
[    3.013773] bcma: bus2: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x2B, class 0x0)
[    3.022287] bcma: bus2: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x2A, class 0x0)
[    3.030898] bcma: bus2: Core 2 found: ARM CR4 (manuf 0x4BF, id 0x83E, rev 0x02, class 0x0)
[    3.039146] bcma: bus2: Core 3 found: PCIe Gen2 (manuf 0x4BF, id 0x83C, rev 0x01, class 0x0)
[    3.047569] bcma: bus2: Core 4 found: USB 2.0 Device (manuf 0x4BF, id 0x81A, rev 0x11, class 0x0)
[    3.087994] bcma: bus2: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    3.118885] bcma: bus2: Bus registered
[    3.123549] NET: Registered protocol family 10
[    3.129445] NET: Registered protocol family 17
[    3.133997] 8021q: 802.1Q VLAN Support v1.8
[    3.138234] Registering SWP/SWPB emulation handler
[    3.145306] UBI: auto-attach mtd2
[    3.148638] ubi0: attaching mtd2
[    3.252873] ubi0: scanning is finished
[    3.286956] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 181 LEBs
[    3.294089] ubi0: attached mtd2 (name "ubi", size 28 MiB)
[    3.299470] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    3.306341] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    3.313106] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    3.320032] ubi0: good PEBs: 224, bad PEBs: 0, corrupted PEBs: 0
[    3.326021] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
[    3.333218] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 389068700
[    3.342227] ubi0: available PEBs: 0, total reserved PEBs: 224, PEBs reserved for bad PEB handling: 20
[    3.351431] ubi0: background thread "ubi_bgt0d" started, PID 377
[    3.358209] block ubiblock0_0: created from ubi0:0(rootfs)
[    3.363742] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[    3.382664] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[    3.390136] Freeing unused kernel memory: 228K (c045d000 - c0496000)
[    3.396544] This architecture does not have kernel memory protection.
[    3.532993] random: crng init done
[    3.974067] init: Console is alive
[    3.977853] init: - watchdog -
[    4.377987] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.426597] usbcore: registered new interface driver usbfs
[    4.432243] usbcore: registered new interface driver hub
[    4.437635] usbcore: registered new device driver usb
[    4.445990] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.453416] ehci-platform: EHCI generic platform driver
[    4.458919] ehci-platform 18021000.ehci: EHCI Host Controller
[    4.464749] ehci-platform 18021000.ehci: new USB bus registered, assigned bus number 1
[    4.472855] ehci-platform 18021000.ehci: irq 30, io mem 0x18021000
[    4.500202] ehci-platform 18021000.ehci: USB 2.0 started, EHCI 1.00
[    4.507188] hub 1-0:1.0: USB hub found
[    4.511028] hub 1-0:1.0: 2 ports detected
[    4.516922] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    4.523910] ohci-platform: OHCI generic platform driver
[    4.529371] ohci-platform 18022000.ohci: Generic Platform OHCI controller
[    4.536198] ohci-platform 18022000.ohci: new USB bus registered, assigned bus number 2
[    4.544237] ohci-platform 18022000.ohci: irq 30, io mem 0x18022000
[    4.625008] hub 2-0:1.0: USB hub found
[    4.628798] hub 2-0:1.0: 2 ports detected
[    4.637910] xhci-hcd 18023000.xhci: xHCI Host Controller
[    4.643285] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 3
[    4.651083] xhci-hcd 18023000.xhci: hcc params 0x02501164 hci version 0x100 quirks 0x20010010
[    4.659624] xhci-hcd 18023000.xhci: irq 31, io mem 0x18023000
[    4.666125] hub 3-0:1.0: USB hub found
[    4.669917] hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
[    4.677284] xhci-hcd 18023000.xhci: xHCI Host Controller
[    4.682623] xhci-hcd 18023000.xhci: new USB bus registered, assigned bus number 4
[    4.700299] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.709020] hub 4-0:1.0: USB hub found
[    4.712854] hub 4-0:1.0: 1 port detected
[    4.723526] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.743334] init: - preinit -
[    5.608779] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.614815] 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
[    6.700235] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[    6.707557] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    6.714132] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready
[    7.785616] UBIFS (ubi0:1): default file-system created
[    7.791909] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 530
[    7.872682] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[    7.880527] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    7.890409] UBIFS (ubi0:1): FS size: 21712896 bytes (20 MiB, 171 LEBs), journal size 1142784 bytes (1 MiB, 9 LEBs)
[    7.900719] UBIFS (ubi0:1): reserved for root: 1025553 bytes (1001 KiB)
[    7.907308] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 01ED6976-B13B-49D2-B204-870049E0D164, small LPT model
[    7.920912] mount_root: overlay filesystem has not been fully initialized yet
[    7.928625] mount_root: switching to ubifs overlay
[    7.943923] urandom-seed: Seed file not found (/etc/urandom.seed)
[    8.035817] procd: - early -
[    8.038766] procd: - watchdog -
[    8.663203] procd: - watchdog -
[    8.666585] procd: - ubus -
[    8.724551] procd: - init -
Please press Enter to activate this console.
[    8.883900] kmodloader: loading kernel modules from /etc/modules.d/*
[    8.893797] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    8.906904] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[    8.914913] Backport generated by backports.git backports-20160324-13-g24da7d3c
[    8.923867] ip_tables: (C) 2000-2006 Netfilter Core Team
[    8.934072] nf_conntrack version 0.5.0 (4096 buckets, 16384 max)
[    8.966449] xt_time: kernel timezone is -0000
[    8.985054] PPP generic driver version 2.4.2
[    8.990479] NET: Registered protocol family 24
[    9.001304] usbcore: registered new interface driver brcmfmac
[    9.009695] kmodloader: done loading kernel modules from /etc/modules.d/*
[   13.620400] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   13.626330] bgmac_bcma bcma0:3 eth0: Link is Up - 1Gbps/Full - flow control off
[   13.645947] br-lan: port 1(eth0.1) entered blocking state
[   13.651484] br-lan: port 1(eth0.1) entered disabled state
[   13.657308] device eth0.1 entered promiscuous mode
[   13.662175] device eth0 entered promiscuous mode
[   13.690287] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.736922] br-lan: port 1(eth0.1) entered blocking state
[   13.742414] br-lan: port 1(eth0.1) entered forwarding state




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

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

=== 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:/# lsmod

bcma_hcd                2001  0 
brcmfmac              176995  0 
brcmutil                4433  1 brcmfmac
cfg80211              217029  1 brcmfmac
compat                   731  2 brcmfmac,cfg80211
crc_ccitt               1067  1 ppp_async
ehci_hcd               31358  1 ehci_platform
ehci_platform           4332  0 
gpio_button_hotplug     6020  0 
ip_tables               9751  3 iptable_nat,iptable_mangle,iptable_filter
ip6_tables              9493  2 ip6table_mangle,ip6table_filter
ip6t_REJECT             1004  2 
ip6table_filter          830  1 
ip6table_mangle         1214  1 
ipt_MASQUERADE           818  1 
ipt_REJECT              1002  2 
iptable_filter           892  1 
iptable_mangle          1020  1 
iptable_nat             1105  1 
leds_gpio               2643  0 
ledtrig_usbport         2575  0 
mmc_block              22922  0 
mmc_core               78284  2 brcmfmac,mmc_block
nf_conntrack           57174  8 nf_conntrack_ipv6,xt_state,xt_conntrack,nf_nat_masquerade_ipv4,nf_conntrack_ipv4,nf_nat_ipv4,nf_nat,nf_conntrack_rtcache
nf_conntrack_ipv4       5251 10 
nf_conntrack_ipv6       5628  5 
nf_conntrack_rtcache    2642  0 
nf_defrag_ipv4           892  1 nf_conntrack_ipv4
nf_defrag_ipv6         12884  1 nf_conntrack_ipv6
nf_log_common           2319  2 nf_log_ipv4,nf_log_ipv6
nf_log_ipv4             3126  0 
nf_log_ipv6             3319  0 
nf_nat                  9916  4 xt_nat,nf_nat_redirect,nf_nat_masquerade_ipv4,nf_nat_ipv4
nf_nat_ipv4             3335  1 iptable_nat
nf_nat_masquerade_ipv4    1549  1 ipt_MASQUERADE
nf_nat_redirect          987  1 xt_REDIRECT
nf_reject_ipv4          1859  1 ipt_REJECT
nf_reject_ipv6          2120  1 ip6t_REJECT
nls_base                5142  1 usbcore
ohci_hcd               21563  1 ohci_platform
ohci_platform           3656  0 
ppp_async               6353  0 
ppp_generic            20720  3 pppoe,ppp_async,pppox
pppoe                   7863  0 
pppox                   1383  1 pppoe
slhc                    4050  1 ppp_generic
usb_common              2423  1 usbcore
usbcore               119794  9 brcmfmac,ledtrig_usbport,xhci_plat_hcd,xhci_pci,xhci_hcd,ohci_platform,ohci_hcd,ehci_platform,ehci_hcd
x_tables               11116 22 ipt_REJECT,ipt_MASQUERADE,xt_time,xt_tcpudp,xt_state,xt_nat,xt_multiport,xt_mark,xt_mac,xt_limit,xt_conntrack,xt_comment,xt_TCPMSS,xt_REDIRECT,xt_LOG,iptable_mangle,iptable_filter,ip_tables,ip6t_REJECT,ip6table_mangle,ip6table_filter,ip6_tables
xhci_hcd               78072  2 xhci_plat_hcd,xhci_pci
xhci_pci                2708  0 
xhci_plat_hcd           4866  0 
xt_LOG                   963  0 
xt_REDIRECT              949  0 
xt_TCPMSS               2664  2 
xt_comment               587125 
xt_conntrack            2456 14 
xt_limit                1165 20 
xt_mac                   711  0 
xt_mark                  800  0 
xt_multiport            1364  0 
xt_nat                  1437  0 
xt_state                 905  0 
xt_tcpudp               1880 10 
xt_time                 1702  0 
root@LEDE:/# 
root@LEDE:/# cat /proc/mtd

dev:    size   erasesize  name
mtd0: 02000000 00020000 "firmware"
mtd1: 003fffc0 00020000 "kernel"
mtd2: 01c00000 00020000 "ubi"
mtd3: 001e0000 00010000 "boot"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "nvram"
root@LEDE:/# 
root@LEDE:/#

Did you succeed also with DIR-880L? I prefer LEDE to DD-WRT but I'm not able to build firmware.

880L and 868L are essentially the same except for the wireless chipset. The issue is with the wireless chipset driver. Although I’m able to get LEDE booted up, the wireless interface is non-functional.

I’m trying to port dd-wrt’s closed source binary driver over to LEDE but progress is slow due to a lot of trial and errors.

Your only option for the 880L is still dd-wrt at the moment when it comes to third party firmware. I managed to hack a version of dd-wrt with up to date features and posted the download links in the dd-wrt Broadcom forum. You may want to try it out.

http://www.dd-wrt.com/phpBB2/viewtopic.php?t=311166&postdays=0&postorder=asc&start=0v

Download link here: https://app.box.com/s/b4v1s342ef2dpd52j02lqtuzi1oiipco

Avoid the build posted in the dd-wrt website as anything uploaded after r30432 will send your 880L into an infinite boot loop.

1 Like

I'm just starting out with LEDE, I've used DD-WRT for several years but I've been intrigued lately by projects like OpenWisp2 and LibreMesh which integrate with LEDE. I have an rt-ac68u and a DIR-868L and would like to put LEDE on them both, so a Google search brought me here! This looks like what I need. I already have the LEDE build environment set up, so would you recommend just placing this DTS file in the same directories as bcm4708-asus-rt-ac68u.dts, which are

/build_dir/target-arm_cortex-a9_musl-1.1.16_eabi/linux-bcm53xx/linux-4.4.107/arch/arm/boot/dts/
/build_dir/toolchain-arm_cortex-a9_gcc-5.4.0_musl-1.1.16_eabi/linux-4.4.107/arch/arm/boot/dts/

and then run make menuconfig to select the DIR-868l as a new target? Is that how this would work? Thanks for your help and for making this code available.

Other than the DTS file, you also need to amend a few config in order to add the 868 as a target. You can get a bootable image for the 868 but since there’re no working wireless chipset drivers for it, the image is not really useful, unless you’re going to use it as a managed switch.

Unfortunately I’m still not able to get the DD-WRT binary drivers to load in LEDE.

The only third party option for Broadcom based wireless routers using the BCM4360 chipset is still DD-WRT.

Ok, thanks for clearing that up. Hopefully there will be some movement on this in the future, for now I guess I'll keep this Advanced Tomato firmware on it. You saved me from several fruitless hours today.

I'm curious to know any progress on this topic. I'm interested in the development.

Unfortunately no progress from my side. It looks like a lot of work to make the wireless drivers from DD-WRT work with OpenWRT.

I'm also side-tracked trying to make the NSS cores work with the Netgear R7800 for OpenWRT ... so this project got sidelined :stuck_out_tongue:

To get more packages on the Broadcom SoCs I would suggest using a functional DD-WRT build cause they have good (proprietary) driver support for those and enhance the basic system with entware/optware. This will allow you to run additional packages similar (not the same) to adding packages to OpenWRT. I had a setup like that on a Netgear R7000 a few years ago and it works quite nicely.

I realize it’s not the same, but the only alternative at the moment would be to replace the Broadcom devices with something supported by OpenWRT using open source drivers.

Not to turn people away from OpenWRT, but sometimes you have to be realistic and practical about things.

If you suggest whatever you tried to make the wireless interface working, that will be helpful for future development.

Any opened supported driver for that wireless chipset. From the previous discussion able to understand platform reference is based on Asus router.

Hi, Quarky

I found you via google search and I hope you can give me a hand.

I am currently use Dlink DIR-868L (from my ISP starhub)I want to flash its firmware from original to DD-WRT. However, I tried files from DD-WRT websites (both from Router Database pages and the latest beta pages), it failed. No error msg reported. Just showed a msg that the upgrading is in process. pls do not off the power and wait.. but I waited for 5-30 minutes. still no change. I still could only visit 192.168.0.1. No page shown on 192.168.1.1.

And then I googled and found one advice from a forum. which mentioned used a specific version to flash, but failed again. When I scrolled the thread down, the author actually quoted your article and the file links. In ur post, u mentioned it needs to use a specific version file to flash the firmware. I downloaded it from ur Box network drive. However, even used the files to flash, it still failed. The same result.

I ever tried to use a win10 Thinkpad notebook (IE11)and a Mac Pro 2013 (safari) to do the flashing. all failed.

So, I got no clue what's wrong with it. Could you kindly take a look and give me some advise? To avoid missing your reply, You can email me to mynewshub@gmail.com other than replying here.

Thank you very much!!

@Jinming this link should useful for you.

https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1149069#1149069

You can use the latest builds from the DD-WRT for your DIR-868L. They have fixed the boot loop issue more than a year ago. Go straight to the latest version. Make sure to get the factory-to-ddwrt image first.

I'm not focusing on retrofitting DD-WRT's drivers into OpenWRT at the moment, so the only choice for Broadcom routers is DD-WRT if you need more functionalities as compared to stock firmware.

Hi, Quarky

Thank you very much! I read the thread you shared with me. It seems exactly the same situations i am facing.

I'll give a try this weekend and see if it works!

Thanks again!

Are there news to the situation performance with OpenWRT / ddwrt compared to OEM?