Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2535 - Aerohive HiveAP-121: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) #8223

Closed
openwrt-bot opened this issue Oct 6, 2019 · 2 comments
Labels

Comments

@openwrt-bot
Copy link

rfburns:

I am having an issue getting two Aerohive AP121 devices to boot properly. I have followed the instructions in the git commit, as shown below.

This was reported in early 2018, but was closed as it was deemed to not be a bug because that report was having the image boot from memory, rather than flash: https://bugs.openwrt.org/index.php?do=details&task_id=1264

Is this an issue of the Aerohive OS boot variables not being compatible with OpenWRT? Or is it something else within the image? Any guidance would be happily accepted to help debug this issue. Remote serial access can be arranged with some lead time.

The same issue occurs with the trunk snapshot as well and is consistently repeatable when following the installation instructions.

U-boot DB120 DRAM: sri Wasp 1.2 wasp_ddr_initial_config(259): (32bit) ddr2 init 128 MB Top of RAM usable for U-Boot at: 88000000 Reserving 324k for U-Boot at: 87fac000 Reserving 136k for malloc() at: 87f8a000 Reserving 44 Bytes for Board Info at: 87f89fd4 Reserving 36 Bytes for Global Data at: 87f89fb0 Reserving 128k for boot params() at: 87f69fb0 Stack Pointer at: 87f69f98 relocating and jumping to code in DRAM Now running in RAM - U-Boot at: 0x87fac000 Flash: 1 MB *** Warning - bad CRC, using default environment

pci_init_board: PCIe PLL not set for 40MHz refclk
BOARD IS NOT CALIBRATED!!!
ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> F1 PHY *
: cfg1 0xf cfg2 0x7114
eth0: 00:19:77:ff:00:00
F1Phy reg init
ATHR_AUTONEG_ADVERT:1DE1
ATHR_1000BASET_CONTROL:200
ATHR_PHY_CONTROL:3100
ATHRSF1_PHY: Port 0, Neg Success
ATHRSF1_PHY: unit 0 phy addr 0 eth0 up

Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
Ath Nand ID[87ff4178]: 1d:00:f1:ad:1d
Hynix NAND 128MiB 3,3V 8-bit [128MB]

chip #0: First 0xa last 0xa sector size 0x10000 10
Hit the space bar to stop the autoboot process: 0
Password:
ar7240> setenv ipaddr 192.168.4.208;
ar7240> setenv serverip 192.168.4.3;
ar7240> ping 192.168.4.3
Trying eth0
dup 1 speed 1000
WASP ----> F1 PHY *
: cfg1 0xf cfg2 0x7315
dup 1 speed 1000
Using eth0 device
ping failed; host 192.168.4.3 is not alive
ar7240> ping 192.168.4.3
Trying eth0
dup 1 speed 1000
WASP ----> F1 PHY *
: cfg1 0xf cfg2 0x7315
dup 1 speed 1000
Using eth0 device
ping failed; host 192.168.4.3 is not alive
ar7240> setenv ipaddr 192.168.4.208;
ar7240> ping 192.168.4.3
Trying eth0
dup 1 speed 1000
WASP ----> F1 PHY *
: cfg1 0xf cfg2 0x7315
dup 1 speed 1000
Using eth0 device
host 192.168.4.3 is alive
ar7240> tftpboot 0x81000000 openwrt-18.06.4-ar71xx-nand-hiveap-121-squashfs-factory.bin;
Trying eth0
dup 1 speed 1000
WASP ----> F1 PHY *
: cfg1 0xf cfg2 0x7315
dup 1 speed 1000
Using eth0 device
TFTP from server 192.168.4.3; our IP address is 192.168.4.208
Filename 'openwrt-18.06.4-ar71xx-nand-hiveap-121-squashfs-factory.bin'.
Load address: 0x81000000
Loading: #T T T ################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##########################
done
Bytes transferred = 8781824 (860000 hex)
ar7240> nand erase 0x800000 0x800000;

NAND erase: device 0 offset 0x800000, size 0x800 63, skipped 0 bad blocks

OK
ar7240> nand write 0x81000000 0x800000 0x800000;

NAND write: device 0 offset 0x800000, size 8388608 ... 8388608 bytes written: OK
ar7240> reset;

Resetting...U-boot DB120
DRAM:
sri
Wasp 1.2
wasp_ddr_initial_config(259): (32bit) ddr2 init
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 324k for U-Boot at: 87fac000
Reserving 136k for malloc() at: 87f8a000
Reserving 44 Bytes for Board Info at: 87f89fd4
Reserving 36 Bytes for Global Data at: 87f89fb0
Reserving 128k for boot params() at: 87f69fb0
Stack Pointer at: 87f69f98
relocating and jumping to code in DRAM
Now running in RAM - U-Boot at: 0x87fac000
Flash: 1 MB
*** Warning - bad CRC, using default environment

pci_init_board: PCIe PLL not set for 40MHz refclk
BOARD IS NOT CALIBRATED!!!
ag934x_enet_initialize...
wasp reset mask:c03300
WASP ----> F1 PHY *
: cfg1 0xf cfg2 0x7114
eth0: 00:19:77:ff:00:00
F1Phy reg init
ATHR_AUTONEG_ADVERT:1DE1
ATHR_1000BASET_CONTROL:200
ATHR_PHY_CONTROL:3100
ATHRSF1_PHY: Port 0, Neg Success
ATHRSF1_PHY: unit 0 phy addr 0 eth0 up

Atheros on-chip NAND FLash Controller Driver, Version 0.1 (c) 2010 Atheros Communications, Ltd.
Ath Nand ID[87ff4178]: 1d:00:f1:ad:1d
Hynix NAND 128MiB 3,3V 8-bit [128MB]

chip #0: First 0xa last 0xa sector size 0x10000 10
Hit the space bar to stop the autoboot process: 0
Hit any key to interrupt boot from flash: 0

Loading kernel from device 0: ath-nand (offset 0x800000) ... done
Loading rootfs from device 0: ath-nand (offset 0x1200000) ... done
Uncompressing Kernel Image ... No initrd

Transferring control to Linux (at address 80060000) ...

commandline console=ttyS0,9600 root=01:00 init=/sbin/init console=ttyS0,9600 rd_start=0x80500000 rd_size=0x01900000

Giving linux memsize in bytes, 134217728

[ 0.000000] Linux version 4.9.184 (buildbot@188e96c27177) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7808-ef686b7292) ) #0 Thu Jun 27 12:18:52 2019
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9344 rev 2
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 08000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: board=HiveAP-121 mtdparts=spi0.0:512k(u-boot)ro,64k(u-boot-env),64k(hw-info)ro,64k(boot-info)ro,64k(boot-sinfo)ro;ar934x-nfc:4096k(u-boot-1),4096k(u-boot-env-1),5m(kernel),111m(ubi),4096k(wifi-info)ro console=ttyS0,9600 rootfstype=squashfs noinitrd
[ 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 124812K/131072K available (3665K kernel code, 162K rwdata, 460K rodata, 184K init, 209K bss, 6260K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:560.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:40.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6825930166 ns
[ 0.000010] sched_clock: 32 bits at 280MHz, resolution 3ns, wraps every 7669584382ns
[ 0.092726] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.237730] pid_max: default: 32768 minimum: 301
[ 0.293077] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.372212] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.459422] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.577027] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.651193] NET: Registered protocol family 16
[ 0.705839] MIPS: machine is Aerohive HiveAP-121
[ 1.005992] registering PCI controller with io_map_base unset
[ 1.086811] i2c-gpio i2c-gpio.0: using pins 13 (SDA) and 12 (SCL)
[ 1.160022] PCI host bridge to bus 0000:00
[ 1.209021] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 1.291258] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.357922] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.439147] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.533940] pci 0000:00:00.0: invalid calibration data
[ 1.595788] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 1.683275] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 1.769671] pci 0000:00:00.0: using irq 40 for pin 1
[ 1.832538] clocksource: Switched to clocksource MIPS
[ 1.894079] NET: Registered protocol family 2
[ 1.947164] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.030545] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.106532] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.182628] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 2.252475] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 2.327682] NET: Registered protocol family 1
[ 2.382830] Crashlog allocated RAM at address 0x3f00000
[ 2.446670] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.531122] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.600963] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.727833] io scheduler noop registered
[ 2.774746] io scheduler deadline registered (default)
[ 2.836630] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 2.915485] console [ttyS0] disabled
[ 2.978252] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 3.081288] console [ttyS0] enabled
[ 3.081288] console [ttyS0] enabled
[ 3.164574] bootconsole [early0] disabled
[ 3.164574] bootconsole [early0] disabled
[ 3.266369] m25p80 spi0.0: found mx25l8005, expected m25p80
[ 3.333640] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[ 3.390954] 5 cmdlinepart partitions found on MTD device spi0.0
[ 3.461705] Creating 5 MTD partitions on "spi0.0":
[ 3.519014] 0x000000000000-0x000000080000 : "u-boot"
[ 3.580424] 0x000000080000-0x000000090000 : "u-boot-env"
[ 3.646062] 0x000000090000-0x0000000a0000 : "hw-info"
[ 3.708594] 0x0000000a0000-0x0000000b0000 : "boot-info"
[ 3.773323] 0x0000000b0000-0x0000000c0000 : "boot-sinfo"
[ 3.840361] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 3.916422] nand: Hynix NAND 128MiB 3,3V 8-bit
[ 3.969540] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 4.060169] Scanning device for bad blocks
[ 4.112397] random: fast init done
[ 4.210583] Bad eraseblock 751 at 0x000005de0000
[ 4.287854] 5 cmdlinepart partitions found on MTD device ar934x-nfc
[ 4.362868] Creating 5 MTD partitions on "ar934x-nfc":
[ 4.424345] 0x000000000000-0x000000400000 : "u-boot-1"
[ 4.487793] 0x000000400000-0x000000800000 : "u-boot-env-1"
[ 4.555574] 0x000000800000-0x000000d00000 : "kernel"
[ 4.617168] 0x000000d00000-0x000007c00000 : "ubi"
[ 4.676124] 0x000007c00000-0x000008000000 : "wifi-info"
[ 4.741538] libphy: Fixed MDIO Bus: probed
[ 4.796849] libphy: ag71xx_mdio: probed
[ 5.572762] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd072, driver=Atheros 8035 ethernet]
[ 5.693197] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[ 5.767968] NET: Registered protocol family 10
[ 5.825038] NET: Registered protocol family 17
[ 5.878244] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 6.033428] 8021q: 802.1Q VLAN Support v1.8
[ 6.087770] UBI error: unable to read from mtd8
[ 6.141938] hctosys: unable to open rtc device (rtc0)
[ 6.202780] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 6.292297] Please append a correct "root=" boot option; here are the available partitions:
[ 6.392227] 1f00 512 mtdblock0 [ 6.440157] (driver?)
[ 6.468347] 1f01 64 mtdblock1 [ 6.516284] (driver?)
[ 6.544474] 1f02 64 mtdblock2 [ 6.592411] (driver?)
[ 6.620615] 1f03 64 mtdblock3 [ 6.668544] (driver?)
[ 6.696731] 1f04 64 mtdblock4 [ 6.744668] (driver?)
[ 6.772858] 1f05 4096 mtdblock5 [ 6.820795] (driver?)
[ 6.848993] 1f06 4096 mtdblock6 [ 6.896925] (driver?)
[ 6.925115] 1f07 5120 mtdblock7 [ 6.973051] (driver?)
[ 7.001242] 1f08 113664 mtdblock8 [ 7.049181] (driver?)
[ 7.077371] 1f09 4096 mtdblock9 [ 7.125309] (driver?)
[ 7.153497] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 7.253618] Rebooting in 1 seconds..

Boot Environment for AP121

ar7240> printenv bootargs=console=ttyS0,9600 root=01:00 init=/sbin/init bootcmd=nboot 0x81000000 0 0x00800000 bootdelay=4 baudrate=9600 ethaddr=0x00:0xaa:0xbb:0xcc:0xdd:0xee ipaddr=192.168.1.1 serverip=192.168.1.10 mtdids=nor0=ath-nor0,nand0=ath-nand0 mtdparts=mtdparts=ath-nor0:512k(u-boot),64k(u-boot-env),64k(hw-info),64k(boot-info),64k(boot-sinfo);ath-nand0:4096k(u-boot-1),4096k(u-boot-env-1),5m(kernel),5m(kernel-1),25m(rootfs),25m(rootfs-1),56m(jffs2),4096k(wifi-info) netretry=once stdin=serial stdout=serial stderr=serial ethact=eth0 bootfile=
@openwrt-bot
Copy link
Author

bjonglez:

With no feedback in one year and ar71xx being removed from master, this has little chance of getting fixed.

Your best bet is to try the ath79 port for this device. Please open a new bug report if it also fails.

@AiyionPrime
Copy link
Contributor

@kpanic23 unable to mount rootfs looks familiar, doesn't it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants