Hello,
I purchased new version of ZyXEL's NBG-419N.
The v2 version of the device looks identical to its predeseccors, and is *almost* able to boot AA and BB rc-3.
The kernel boots up nicely, but hangs to:
[ 0.560000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[ 0.570000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.590000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
BB rc-3 however goes a bit further, producing only one additional line:
[ 2.520000] rt305x-esw 10110000.esw: link changed 0x01
AA boot log: (openwrt-ramips-rt305x-nbg-419n-squashfs-sysupgrade.bin)
Automatic boot of image at addr 0x80800000 ...
## Booting image at 80800000 ...
Image Name: MIPS OpenWrt Linux-3.3.8
Created: 2013-03-23 19:02:00 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 887001 Bytes = 866.2 kB
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.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 19:00:46 UTC 2013
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT3352 id:1 rev:6 running at 384.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=NBG-419N console=ttyS1,57600 mtdparts=physmap-flash.0:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,896k(kernel),2880k(rootfs),3776k@0x50000(firmware) rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Writing ErrCtl register=00078412
[ 0.000000] Readback ErrCtl register=00078412
[ 0.000000] Memory: 62160k/65536k available (2046k kernel code, 3376k reserved, 340k data, 176k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.010000] Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
[ 0.090000] pid_max: default: 32768 minimum: 301
[ 0.100000] Mount-cache hash table entries: 512
[ 0.110000] NET: Registered protocol family 16
[ 0.120000] MIPS: machine is ZyXEL NBG-419N
[ 0.130000] gpiochip_add: registered GPIOs 0 to 23 on device: RT305X-GPIO0
[ 0.140000] gpiochip_add: registered GPIOs 24 to 39 on device: RT305X-GPIO1
[ 0.150000] gpiochip_add: registered GPIOs 40 to 51 on device: RT305X-GPIO2
[ 0.180000] bio: create slab <bio-0> at 0
[ 0.190000] Switching to clocksource MIPS
[ 0.200000] NET: Registered protocol family 2
[ 0.210000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.230000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.240000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.250000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.270000] TCP reno registered
[ 0.270000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.280000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.300000] NET: Registered protocol family 1
[ 0.340000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.350000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.370000] msgmni has been set to 121
[ 0.380000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
[ 0.400000] io scheduler noop registered
[ 0.410000] io scheduler deadline registered (default)
[ 0.420000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.430000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[ 0.440000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.470000] physmap platform flash device: 00800000 at bf000000
[ 0.480000] physmap-flash physmap-flash.0: map_probe failed
[ 0.510000] ramips-wdt ramips-wdt: timeout value must be 0 < timeout <= 33, using 33
[ 0.520000] TCP cubic registered
[ 0.530000] NET: Registered protocol family 17
[ 0.540000] Bridge firewalling registered
[ 0.550000] 8021q: 802.1Q VLAN Support v1.8
[ 0.560000] VFS: Cannot open root device "(null)" or unknown-block(0,0)
[ 0.570000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.590000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
BB rc-3 boot log: (openwrt-ramips-rt305x-nbg-419n-squashfs-sysupgrade.bin)
Automatic boot of image at addr 0x80800000 ...
## Booting image at 80800000 ...
Image Name: MIPS OpenWrt Linux-3.10.49
Created: 2014-08-08 2:02:16 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1054434 Bytes = 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.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42001) ) #1 Fri Aug 8 04:01:07 CEST 2014
[ 0.000000] SoC Type: Ralink RT3352 id:1 rev:6
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] MIPS: machine is ZyXEL NBG-419N
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x03ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x03ffffff]
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 61648k/65536k available (2284k kernel code, 3888k reserved, 575k data, 212k init, 0k highmem)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 384MHz
[ 0.000000] Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
[ 0.070000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] pinctrl core: initialized pinctrl subsystem
[ 0.100000] NET: Registered protocol family 16
[ 0.120000] pinmux core: rt2880-pinmux does not support function sdram
[ 0.130000] rt2880-pinmux pinctrl.1: invalid function sdram in map table
[ 0.160000] bio: create slab <bio-0> at 0
[ 0.170000] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.180000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.190000] Switching to clocksource MIPS
[ 0.200000] NET: Registered protocol family 2
[ 0.210000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.230000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.240000] TCP: Hash tables configured (established 512 bind 512)
[ 0.250000] TCP: reno registered
[ 0.260000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.270000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.280000] NET: Registered protocol family 1
[ 0.290000] rt-timer 10000100.timer: maximum frequncy is 7812Hz
[ 0.340000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.350000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.380000] msgmni has been set to 120
[ 0.380000] io scheduler noop registered
[ 0.390000] io scheduler deadline registered (default)
[ 0.400000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 0.430000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.450000] console [ttyS0] enabled, bootconsole disabled
[ 0.450000] console [ttyS0] enabled, bootconsole disabled
[ 0.470000] of-flash 1f000000.cfi: do_map_probe() failed
[ 0.490000] eth0: done loading
[ 0.500000] rt2880_wdt 10000120.watchdog: Initialized
[ 0.520000] TCP: cubic registered
[ 0.520000] NET: Registered protocol family 17
[ 0.530000] Bridge firewalling registered
[ 0.540000] 8021q: 802.1Q VLAN Support v1.8
[ 0.550000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.570000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.580000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.520000] rt305x-esw 10110000.esw: link changed 0x01
I flashed AA once, but restored to stock FW due to crash.
The boot logs are produced by loading the image to SDRAM by tftp and executing it, by choosing '1' from ZyXEL's u-boot menu.
Could there be something to do in order to run AA or BB on the device?
The CPU architecture seems to be correct:
# cat /proc/cpuinfo
system type : Ralink SoC
processor : 0
cpu model : MIPS 24K V4.12
BogoMIPS : 255.48
wait instruction : yes
microsecond timers : yes
tlb_entries : 32
extra interrupt vector : yes
hardware watchpoint : yes
ASEs implemented : mips16 dsp
VCED exceptions : not available
VCEI exceptions : not available
Stock FW boot log:
U-Boot 1.1.3 (Mar 6 2012 - 17:34:10)
Board: Ralink APSoC DRAM: 64 MB
relocate_code Pointer at: 83fb0000
spi_wait_nsec: 3c
spi device id: c2 20 17 c2 20 (2017c220)
find flash: MX25L6405D
raspi_read: from:30000 len:1000
.raspi_read: from:30000 len:1000
.============================================
Ralink UBoot Version: 3.6.0.1_a3
--------------------------------------------
ASIC 3352_MP (Port5<->None)
DRAM_CONF_FROM: Boot-Strapping
DRAM_TYPE: DDR2
DRAM_SIZE: 512 Mbits
DRAM_WIDTH: 16 bits
DRAM_TOTAL_WIDTH: 16 bits
TOTAL_MEMORY_SIZE: 64 MBytes
Flash component: SPI Flash
Date:Mar 6 2012 Time:17:34:10
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384
##### The CPU freq = 384 MHZ ####
estimate memory size =64 Mbytes
uboot: NBG-419N v2 Power LED...on
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.
6: To emergency.
7: Load Boot Loader code then write to Flash via Serial.
9: Load Boot Loader code then write to Flash via TFTP.
a: Auto load system code then write to Flash via TFTP.
0
3: System Boot system code via Flash.
## Booting image at bc050000 ...
raspi_read: from:50000 len:40
. Image Name: Linux Kernel Image
Created: 2013-08-26 9:35:00 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 4007317 Bytes = 3.8 MB
Load Address: 80000000
Entry Point: 802aa000
raspi_read: from:50040 len:3d2595
.............................................................. Verifying Checksum ... OK
Uncompressing Kernel Image ...
No initrd
## Transferring control to Linux (at address 802aa000) ...
## Giving linux memsize in MB, 64
Starting kernel ...
LINUX started...
THIS IS ASIC
The CPU frequency set to 384 MHz
CPU revision is: 0001964c
Determined physical RAM map:
memory: 04000000 @ 00000000 (usable)
Built 1 zonelists. Total pages: 16256
Primary instruction cache 32kB, physically tagged, 4-way, linesize 32 bytes.
Primary data cache 16kB, 4-way, linesize 32 bytes.
cause = c0808044, status = 11000000
PID hash table entries: 256 (order: 8, 1024 bytes)
calculating r4koff... 00177000(1536000)
CPU frequency 384.00 MHz
Using 192.000 MHz high precision timer.
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Mount-cache hash table entries: 512
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
detected lzma initramfs
MX25L6405D(c2 2017c220) (8192 Kbytes)
mtd .name = raspi, .size = 0x00800000 (8M) .erasesize = 0x00010000 (64K) .numeraseregions = 0
mtd: partition "Kernel" extends beyond the end of device "raspi" -- size truncated to 0x7b0000
RT3xxx EHCI/OHCI init.
squashfs: LZMA suppport for slax.org by jro
fuse init (API version 7.8)
Ralink gpio driver initialized
RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
rdm_major = 253
Ralink APSoC Ethernet Driver Initilization. v2.1 256 rx/tx descriptors allocated, mtu = 1500!
MAC_ADRH -- : 0x0000107b
MAC_ADRL -- : 0xefc91f15
kernel: NBG-419N v2 Power LED...on
RL this is patch v3
nf_conntrack version 0.5.0 (512 buckets, 4096 max 400 reserved)
ip_tables: (C) 2000-2006 Netfilter Core Team, Type=Restricted Cone
2008/11/24 Kernel xt_register_target =======>
arp_tables: (C) 2002 David S. Miller
init started: BusyBox v1.12.1 (2013-08-26 17:16Algorithmics/MIPS FPU Emulator v1.5
:06 CST)
starting pid 628, tty '': '/etc_ro/rcS'
Welcome to
_______ _______ ___ __ ____ _ _ ___
| ___ \| __ || | |__|| \ | || | / /
| |___| || |__| || |__ __ | \| || |/ /
| _ /| _ || || || |\ || \
|__| \__\|__| |__||______||__||_| \____||_|\___\
=System Architecture Department=
ftpalg: Waiting for message from kernel
@@@ BssidNum @@@
@@@ BssidNum @@@
nvram flash is ok
NetUSB: module license 'Proprietary' taints kernel.
Symbol usb_register_driver is being used by a non-GPL module, which will not be allowed in the future
Please see the file Documentation/feature-removal-schedule.txt in the kernel source tree for more details.
Symbol usb_deregister is being used by a non-GPL module, which will not be allowed in the future
Please see the file Documentation/feature-removal-schedule.txt in the kernel source tree for more details.
kc 88 : run_telnetDBGDServer start
kc 225 : init_DebugD end
INFO1612: NetUSB 1.156 u10, 00020615 : Feb 7 2012 18:26:20
INFO1614: AUTH ISOC
INFO1615:
INFO0076: init proc : PAGE_SIZE 4096
INFO1586: sleep to wait br0 to wake up
INFO02C7: use dev Name br0 : fail
starting pid 693, tty '/dev/ttyS1': '/bin/sh'
BusyBox v1.12.1 (2013-08-26 17:16:06 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# Password for 'admin' changed
INFO02C7: use dev Name br0 : fail
rmmod: ralink_wdt: No such file or directory
rmmod: cls: No such file or directory
rmmod: hw_nat: No such file or directory
rmmod: raeth: No such file or directory
insmod: bridge.ko: module not found
insmod: mii.ko: module not found
insmod: raeth.ko: module not found
phy_tx_ring = 0x03891000, tx_ring = 0xa3891000
phy_rx_ring0 = 0x03892000, rx_ring0 = 0xa3892000
MAC_ADRH -- : 0x0000107b
MAC_ADRL -- : 0xefc91f15
RT305x_ESW: Link Status Changed
CDMA_CSG_CFG = 81000007
GDMA1_FWD_CFG = C0710000
INFO02C7: use dev Name br0 : fail
##### disable 1st wireless interface #####
rmmod: rt2860v2_ap_net: No such file or directory
rmmod: rt2860v2_ap: No such file or directory
rmmod: rt2860v2_ap_util: No such file or directory
rmmod: rt2860v2_sta_net: No such file or directory
rmmod: rt2860v2_sta: No such file or directory
rmmod: rt2860v2_sta_util: No such file or directory
insmod: rt2860v2_ap_util.ko: module not found
=== pAd = c0096000, size = 804440 ===
<-- RTMPAllocAdapterBlock, Status=0
insmod: rt2860v2_ap_net.ko: module not found
rmmod: nf_nat_pptp: No such file or directory
rmmod: nf_conntrack_pptp: No such file or directory
rmmod: nf_nat_proto_gre: No such file or directory
rmmod: nf_conntrack_proto_gre: No such file or directory
RX DESC a3213000 size = 2048
<-- RTMPAllocTxRxRingMemory, Status=0
Key1Str is Invalid key length(0) or Type(0)
Key2Str is Invalid key length(0) or Type(0)
Key3Str is Invalid key length(0) or Type(0)
Key4Str is Invalid key length(0) or Type(0)
1. Phy Mode = 9
2. Phy Mode = 9
3. Phy Mode = 9
RTMPSetPhyMode: channel is out of range, use first channel=0
MCS Set = ff ff 00 00 01
SYNC - BBP R4 to 20MHz.l
INFO02C7: use dev Name br0 : fail
INFO02C7: use dev Name br0 : fail
INFO02C7: use dev Name br0 : fail
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
INFO02C7: use dev Name br0 : fail
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
INFO02C7: use dev Name br0 : fail
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
SYNC - BBP R4 to 20MHz.l
INFO02C7: use dev Name br0 : fail
Main bssid = 10:7b:ef:c9:1f:14
<==== rt28xx_init, Status=0
0x1300 = 00064380
vconfig: ioctl error for rem: Invalid argument
vconfig: ioctl error for rem: Invalid argument
rmmod: 8021q: No such file or directory
insmod: 8021q.ko: module not found
vconfig: ioctl error for rem: Invalid argument
eth2.2: Setting MAC address to 10 7b ef c9 1f 15.
VLAN (eth2.2): Underlying device (eth2) has same MAC, not checking promiscious mode.
ifconfig: ioctl 0x8913 failed: No such device
brctl: bridge br0: No such device or address
##### config RT3052 vlan partition (LLLLW) #####
switch reg write offset=14, value=405555
switch reg write offset=50, value=2001
switch reg write offset=98, value=7f3f
switch reg write offset=e4, value=3f
switch reg write offset=40, value=1001
switch reg write offset=44, value=1001
switch reg write offset=48, value=1002
switch reg write offset=70, value=ffff506f
done.
INFO02C7: use dev Name br0 : fail
eth2.1: Setting MAC address to 10 7b ef c9 1f 14.
VLAN (eth2.1): Setting underlying device (eth2) to promiscious mode.
==================Start Kill TimeTool Daemon!!!!!==================
CloneMAC mode is ...
Enter timetool
INFO02D0: use dev Name br0
INFO158F: sleep to wait br0 end.
INFO15A8: UDP_BROAD 7417 tcpPort:20005
INFO02D0: use dev Name br0
INFO14DF: tcpConnector() started...
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
ifconfig: ioctl 0x8914 failed: Cannot assign requested address
cat: can't open '/etc/resolv.conf': No such file or directory
dhcp_DnsMode is 12...
INFO13BF: Bind to br0
killall: udhcpd: no process killed
Set: phy[0].reg[RT305x_ESW: Link Status Changed
0] = 3900
Set: phy[1].reg[0] = 3900
Set: phy[2].reg[0] = 3900
Set: phy[3].reg[0] = 3900
Set: phy[0].reg[0] = 3100
Set: phy[1].reg[0] = 3100
Set: phy[2].reg[0] = 3100
Set: phy[3].reg[0] = 3100
***** g_wl_interface = ra0 ******
ifconfig: ioctl 0x8913 failed: No such device
libupnp: using UDP SSDP_PORT = 1900
RT305x_ESW: Link Status Changed
iwpriv ra0 set IgmpSnEnable=1
Start initInterRL debug: AQ_LAN_IP=c0a80101
net!!!!! systeRL debug: AQ_SHIFT_COUNT=8
m[internet.sh] =RL debug: AQ_HTTP_PORT=50