Hello,
My Comtrend WAP-5813n version a bit differs from oficially supported and so problem arised (error - partitions extend beyond the end of device):
BCM96368 vs BCM96369
32MB RAM vs 64MB RAM
4MB flash vs 8MB flash
I'm new, but already know how to compile custom openwrt and to use serial connection using Putty. I created firmware using lede-imagebuilder-17.01.2-brcm63xx-smp.Linux-x86_64.tar.xz. I changed offsets in wap-5813n.dts according to other 4MB flash BCM63xx routers before compiling:
cfe@0 {
label = "CFE";
reg = <0x000000 0x010000>;
read-only;
};
linux@10000 {
label = "linux";
reg = <0x010000 0x3e0000>;
};
nvram@3f0000 {
label = "nvram";
reg = <0x3f0000 0x010000>;
And changed profile to 4MB in bcm63xx.mk
define Device/WAP-5813n
$(Device/bcm63xx)
DEVICE_TITLE := Comtrend WAP-5813n
DEVICE_DTS := wap-5813n
CFE_BOARD_ID := 96369R-1231N
CFE_CHIP_ID := 6368
FLASH_MB := 4
DEVICE_PACKAGES := \
$(B43_PACKAGES) $(USB2_PACKAGES)
endef
Here is LEDE 17.01.2 bootlog via serial connection:
CFE>
Flashing root file system and kernel at 0xb8010000: ......................................
*** Image flash done *** !
Resetting board...
CFE version 1.0.37-106.5-6 for BCM96368 (32bit,SP,BE)
Build Date: Thu Apr 29 17:22:55 CST 2010 (asdrick@rd5-linux)
Copyright (C) 2000-2009 Broadcom Corporation.
Parallel flash device: name MX29LV320AB, id 0x22a8 size 4096KB
Total Flash size: 4096K with 71 sectors
ethsw: found bcm53115!
Chip ID: BCM6369B2, MIPS: 400MHz
Main Thread: TP0
Total Memory: 33554432 bytes (32MB)
Boot Address: 0xb8000000
Board IP address : 192.168.1.1:ffffff00
Host IP address : 192.168.1.100
Gateway IP address :
Run from flash/host (f/h) : f
Default host run file name : vmlinux
Default host flash file name : bcm963xx_fs_kernel
Boot delay (0-9 seconds) : 1
Board Id (0-15) : 96369R-1231N
Number of MAC Addresses (1-32) : 5
Base MAC Address : 64:68:0c:c7:08:78
PSI Size (1-64) KBytes : 24
Enable Backup PSI [0|1] : 0
System Log Size (0-256) KBytes : 0
Main Thread Number [0|1] : 0
Serial Number : 0
Voice Board Configuration (0-19) : MVWG
*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 0
Booting from only image (0xb8010000) ...
Code Address: 0x80A00000, Entry Address: 0x80a00000
LZMA: Prossible old LZMA format, trying to decompress..
Decompression OK!
Entry at 0x80a00000
Closing network.
Disabling Switch ports.
Flushing Receive Buffers...
46 buffers found.
Closing DMA Channels.
Starting program at 0x80a00000
[ 0.000000] Linux version 4.4.71 (buildbot@builds-02.infra.lede-project.org) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3101-bce140e) ) #0 SMP Thu Jun 8 10:18:56 2017
[ 0.000000] Detected Broadcom 0x6368 CPU revision b2
[ 0.000000] CPU frequency is 400 MHz
[ 0.000000] 32MB of RAM installed
[ 0.000000] board_bcm963xx: Boot address 0xb8000000
[ 0.000000] board_bcm963xx: CFE version: 1.0.37-106.5-6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0002a031 (Broadcom BMIPS4350)
[ 0.000000] board: board name: 96369R-1231N
[ 0.000000] MIPS: machine is Comtrend WAP-5813n
[ 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 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[ 0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[ 0.000000] PERCPU: Embedded 9 pages/cpu @81046000 s8016 r8192 d20656 u36864
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[ 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] Memory: 26716K/32768K available (3381K kernel code, 152K rwdata, 516K rodata, 1320K init, 208K bss, 6052K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:256
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000016] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.008154] Calibrating delay loop... 397.82 BogoMIPS (lpj=795648)
[ 0.042790] pid_max: default: 32768 minimum: 301
[ 0.047808] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.054589] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.068082] SMP: Booting CPU1...
[ 10.279638] Primary instruction cache 64kB, VIPT, 4-way, linesize 16 bytes.
[ 10.279657] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[ 10.280061] CPU1 revision is: 0002a031 (Broadcom BMIPS4350)
[ 0.124380] Synchronize counters for CPU 1:
[ 0.124381] SMP: CPU1 is running
[ 0.124386] done.
[ 0.124604] Brought up 2 CPUs
[ 0.134343] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.134381] futex hash table entries: 512 (order: 1, 8192 bytes)
[ 0.138435] NET: Registered protocol family 16
[ 0.147002] Can't analyze schedule() prologue at 80017240
[ 0.169587] registering PCI controller with io_map_base unset
[ 0.175607] registering PCI controller with io_map_base unset
[ 0.203145] PCI host bridge to bus 0000:00
[ 0.207586] pci_bus 0000:00: root bus resource [mem 0x30000000-0x37ffffff]
[ 0.214649] pci_bus 0000:00: root bus resource [io 0x8000000-0x8007fff]
[ 0.221535] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 0.228527] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.245380] pci 0000:00:01.0: BAR 0: assigned [mem 0x30000000-0x30003fff]
[ 0.253212] PCI host bridge to bus 0000:01
[ 0.257457] pci_bus 0000:01: root bus resource [mem 0x38000000-0x3fffffff]
[ 0.264500] pci_bus 0000:01: root bus resource [io 0x8008000-0x800ffff]
[ 0.271397] pci_bus 0000:01: root bus resource [??? 0x00000000 flags 0x0]
[ 0.278385] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[ 0.287079] pci 0000:01:1e.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.295806] pci 0000:01:1e.0: BAR 10: assigned [mem 0x38000000-0x3fffffff]
[ 0.302902] pci 0000:01:1e.0: BAR 7: assigned [io 0x8008000-0x80080ff]
[ 0.309679] pci 0000:01:1e.0: BAR 8: assigned [io 0x8008400-0x80084ff]
[ 0.316487] pci 0000:01:1e.0: CardBus bridge to [bus 02-05]
[ 0.322219] pci 0000:01:1e.0: bridge window [io 0x8008000-0x80080ff]
[ 0.329033] pci 0000:01:1e.0: bridge window [io 0x8008400-0x80084ff]
[ 0.335841] pci 0000:01:1e.0: bridge window [mem 0x38000000-0x3fffffff]
[ 0.346448] clocksource: Switched to clocksource MIPS
[ 0.355100] PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
[ 0.383064] ssb: Found chip with id 0x4322, rev 0x01 and package 0x09
[ 0.453121] ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.0
[ 0.461070] NET: Registered protocol family 2
[ 0.467432] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.474706] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.481272] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.488063] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.494129] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.501060] NET: Registered protocol family 1
[ 0.508904] Crashlog allocated RAM at address 0x1f00000
[ 0.540723] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.546822] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.564655] io scheduler noop registered
[ 0.568771] io scheduler deadline registered (default)
[ 0.577050] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 10, base_baud = 1562500) is a bcm63xx_uart
[ 0.586780] console [ttyS0] enabled
[ 0.586780] console [ttyS0] enabled
[ 0.593946] bootconsole [early0] disabled
[ 0.593946] bootconsole [early0] disabled
[ 0.603316] bcm63xx-rng bcm63xx-rng: registered RNG driver
[ 0.610991] 18000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022a8
[ 0.621577] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.626845] Amd/Fujitsu Extended Query version 1.1.
[ 0.632020] number of CFI chips: 1
[ 0.636017] bcm63xxpart: CFE boot tag found with version 6 and board type 96369R-1231N
[ 0.644487] 5 bcm63xxpart partitions found on MTD device 18000000.nor
[ 0.651148] Creating 5 MTD partitions on "18000000.nor":
[ 0.656605] 0x000000000000-0x000000010000 : "CFE"
[ 0.665427] 0x000000010100-0x00000015a7b0 : "kernel"
[ 0.673680] 0x00000015a7b0-0x0000007f0000 : "rootfs"
[ 0.678922] mtd: partition "rootfs" extends beyond the end of device "18000000.nor" -- size truncated to 0x2a5850
[ 0.693317] mtd: device 2 (rootfs) set to be root filesystem
[ 0.699350] 1 squashfs-split partitions found on MTD device rootfs
[ 0.705753] 0x000000350000-0x000000400000 : "rootfs_data"
[ 0.715858] 0x000000010000-0x0000007f0000 : "linux"
[ 0.720997] mtd: partition "linux" extends beyond the end of device "18000000.nor" -- size truncated to 0x3f0000
[ 0.735530] 0x0000007f0000-0x000000800000 : "nvram"
[ 0.740596] mtd: partition "nvram" is out of reach -- disabled
[ 0.753209] bcm63xx-spi bcm6358-spi: at [mem 0xb0000800-0xb0000f0b flags 0x200] (irq 9, FIFOs size 542)
[ 0.776101] b53_common: found switch: BCM53115, rev 8
[ 0.819214] bcm63xx-wdt bcm63xx-wdt: started, timer margin: 30 sec
[ 0.833549] NET: Registered protocol family 10
[ 0.841010] NET: Registered protocol family 17
[ 0.845823] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 0.858848] 8021q: 802.1Q VLAN Support v1.8
[ 0.873908] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 0.897520] Freeing unused kernel memory: 1320K (80406000 - 80550000)
[ 2.397879] init: Console is alive
[ 2.402081] init: - watchdog -
[ 3.741559] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 3.883326] usbcore: registered new interface driver usbfs
[ 3.889273] usbcore: registered new interface driver hub
[ 3.895026] usbcore: registered new device driver usb
[ 3.910070] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 3.918626] ehci-platform: EHCI generic platform driver
[ 4.026038] ehci-platform ehci-platform: EHCI Host Controller
[ 4.032055] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[ 4.040491] ehci-platform ehci-platform: irq 15, io mem 0xb0001500
[ 4.057995] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[ 4.068259] hub 1-0:1.0: USB hub found
[ 4.072317] hub 1-0:1.0: 1 port detected
[ 4.082121] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.090577] ohci-platform: OHCI generic platform driver
[ 4.096249] ohci-platform ohci-platform: Generic Platform OHCI controller
[ 4.103294] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[ 4.111715] ohci-platform ohci-platform: irq 13, io mem 0xb0001600
[ 4.180155] hub 2-0:1.0: USB hub found
[ 4.184208] hub 2-0:1.0: 1 port detected
[ 4.190640] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.206776] init: - preinit -
[ 5.257759] random: jshn: uninitialized urandom read (4 bytes read, 69 bits of entropy available)
[ 5.452610] random: jshn: uninitialized urandom read (4 bytes read, 72 bits of entropy available)
[ 5.672141] random: jshn: uninitialized urandom read (4 bytes read, 75 bits of entropy available)
[ 5.757398] random: jshn: uninitialized urandom read (4 bytes read, 77 bits of entropy available)
[ 5.864762] random: jshn: uninitialized urandom read (4 bytes read, 80 bits of entropy available)
[ 6.292808] random: procd: uninitialized urandom read (4 bytes read, 92 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
[ 9.610098] random: nonblocking pool is initialized
[ 9.823845] jffs2: notice: (388) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 9.842470] mount_root: switching to jffs2 overlay
[ 9.860732] urandom-seed: Seeding with /etc/urandom.seed
[ 10.074443] procd: - early -
[ 10.077542] procd: - watchdog -
[ 10.753513] procd: - ubus -
[ 10.811557] procd: - init -
Please press Enter to activate this console.
[ 11.466918] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.481787] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 11.509909] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 11.518435] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 11.530771] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 11.549749] nf_conntrack version 0.5.0 (438 buckets, 1752 max)
[ 11.655216] xt_time: kernel timezone is -0000
[ 11.779054] PPP generic driver version 2.4.2
[ 11.787390] NET: Registered protocol family 24
[ 11.830989] b43-phy0: Broadcom 4322 WLAN found (core revision 16)
[ 11.869984] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 4
[ 11.876290] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 3, Version 0
[ 11.896099] Broadcom 43xx driver loaded [ Features: PNL ]
[ 11.928633] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 19.267574] device eth0.1 entered promiscuous mode
[ 19.272795] device eth0 entered promiscuous mode
[ 19.293705] br-lan: port 1(eth0.1) entered forwarding state
[ 19.299782] br-lan: port 1(eth0.1) entered forwarding state
[ 21.302160] br-lan: port 1(eth0.1) entered forwarding state
(Last edited by Romandas on 17 Aug 2017, 17:47)