Hi, I installed OpenWRT on AeroHive HiveAP 121. Following the tftp installation process using binary 19.07.6 release.
Once the firmware was done, the AP boots up but doesn't starts sucessfully the root filesystem:
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
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.14.215 (builder@buildhost) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11278-8055e38794)) #0 Tue Jan 19 13:10:02 2021
[ 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] random: get_random_bytes called from 0x8053c740 with crng_init=0
[ 0.000000] Built 1 zonelists, 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: 124100K/131072K available (4263K kernel code, 177K rwdata, 528K rodata, 208K init, 213K bss, 6972K 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.092729] Calibrating delay loop... 278.93 BogoMIPS (lpj=1394688)
[ 0.237628] pid_max: default: 32768 minimum: 301
[ 0.293078] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.372230] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.458851] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.576505] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.650612] NET: Registered protocol family 16
[ 0.705163] MIPS: machine is Aerohive HiveAP-121
[ 1.005229] registering PCI controller with io_map_base unset
[ 1.087656] i2c-gpio i2c-gpio.0: using pins 13 (SDA) and 12 (SCL)
[ 1.160853] PCI host bridge to bus 0000:00
[ 1.209864] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff]
[ 1.292094] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.358758] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.439981] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.534783] pci 0000:00:00.0: invalid calibration data
[ 1.596652] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x1001ffff 64bit]
[ 1.684116] pci 0000:00:00.0: BAR 6: assigned [mem 0x10020000-0x1002ffff pref]
[ 1.774288] clocksource: Switched to clocksource MIPS
[ 1.835801] NET: Registered protocol family 2
[ 1.888861] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 1.972204] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 2.048195] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.124371] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 2.194122] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 2.269343] NET: Registered protocol family 1
[ 2.324589] Crashlog allocated RAM at address 0x3f00000
[ 2.388491] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 2.471053] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.540858] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 2.668627] io scheduler noop registered
[ 2.715577] io scheduler deadline registered (default)
[ 2.777465] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 2.855807] console [ttyS0] disabled
[ 2.918679] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[ 3.021788] console [ttyS0] enabled
[ 3.021788] console [ttyS0] enabled
[ 3.105071] bootconsole [early0] disabled
[ 3.105071] bootconsole [early0] disabled
[ 3.207526] m25p80 spi0.0: found mx25l8005, expected m25p80
[ 3.274916] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[ 3.332279] 5 cmdlinepart partitions found on MTD device spi0.0
[ 3.403032] Creating 5 MTD partitions on "spi0.0":
[ 3.460340] 0x000000000000-0x000000080000 : "u-boot"
[ 3.521161] 0x000000080000-0x000000090000 : "u-boot-env"
[ 3.586823] 0x000000090000-0x0000000a0000 : "hw-info"
[ 3.648647] 0x0000000a0000-0x0000000b0000 : "boot-info"
[ 3.713300] 0x0000000b0000-0x0000000c0000 : "boot-sinfo"
[ 3.779790] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[ 3.855879] nand: Hynix NAND 128MiB 3,3V 8-bit
[ 3.908993] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 3.999936] Scanning device for bad blocks
[ 4.052186] random: fast init done
[ 4.174275] 5 cmdlinepart partitions found on MTD device ar934x-nfc
[ 4.249273] Creating 5 MTD partitions on "ar934x-nfc":
[ 4.310752] 0x000000000000-0x000000400000 : "u-boot-1"
[ 4.373619] 0x000000400000-0x000000800000 : "u-boot-env-1"
[ 4.441283] 0x000000800000-0x000000d00000 : "kernel"
[ 4.502099] 0x000000d00000-0x000007c00000 : "ubi"
[ 4.561082] 0x000007c00000-0x000008000000 : "wifi-info"
[ 4.625791] libphy: Fixed MDIO Bus: probed
[ 4.681595] libphy: ag71xx_mdio: probed
[ 5.454515] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd072, driver=Atheros 8035 ethernet]
[ 5.574873] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode: rgmii
[ 5.650732] NET: Registered protocol family 10
[ 5.708487] Segment Routing with IPv6
[ 5.752436] NET: Registered protocol family 17
[ 5.805601] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 5.961182] 8021q: 802.1Q VLAN Support v1.8
[ 6.015482] UBI error: unable to read from mtd8
[ 6.069742] hctosys: unable to open rtc device (rtc0)
[ 6.130562] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 6.220115] Please append a correct "root=" boot option; here are the available partitions:
[ 6.320038] 1f00 512 mtdblock0
[ 6.320044] (driver?)
[ 6.398235] 1f01 64 mtdblock1
[ 6.398241] (driver?)
[ 6.476459] 1f02 64 mtdblock2
[ 6.476466] (driver?)
[ 6.554652] 1f03 64 mtdblock3
[ 6.554657] (driver?)
[ 6.632858] 1f04 64 mtdblock4
[ 6.632864] (driver?)
[ 6.711066] 1f05 4096 mtdblock5
[ 6.711072] (driver?)
[ 6.789274] 1f06 4096 mtdblock6
[ 6.789279] (driver?)
[ 6.867483] 1f07 5120 mtdblock7
[ 6.867489] (driver?)
[ 6.945691] 1f08 113664 mtdblock8
[ 6.945696] (driver?)
[ 7.023898] 1f09 4096 mtdblock9
[ 7.023904] (driver?)
[ 7.102104] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 7.202057] Rebooting in 1 seconds..
U-boot DB120
DRAM:
sri
Wasp 1.2...
Then restarts all over again with the same error.
I check if the NAND has the rootfs partition and it does:
ar7240> mtdparts
device nor0 <ath-nor0>, # parts = 5
#: name size offset mask_flags
0: u-boot 0x00080000 0x00000000 0
1: u-boot-env 0x00010000 0x00080000 0
2: hw-info 0x00010000 0x00090000 0
3: boot-info 0x00010000 0x000a0000 0
4: boot-sinfo 0x00010000 0x000b0000 0
device nand0 <ath-nand0>, # parts = 8
#: name size offset mask_flags
0: u-boot-1 0x00400000 0x00000000 0
1: u-boot-env-1 0x00400000 0x00400000 0
2: kernel 0x00500000 0x00800000 0
3: kernel-1 0x00500000 0x00d00000 0
4: rootfs 0x01900000 0x01200000 0
5: rootfs-1 0x01900000 0x02b00000 0
6: jffs2 0x03800000 0x04400000 0
7: wifi-info 0x00400000 0x07c00000 0
active partition: nor0,0 - (u-boot) 0x00080000 @ 0x00000000
defaults:
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)
This the boot environment variables
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=
partition=nor0,0
mtddevnum=0
mtddevname=u-boot
Environment size: 584/8188 bytes
And the hardware version:
ar7240> dump_hw_info
MAC Addr: 40:18:b1:43:61:c0
Serial Num: 12112112203298
Cntry Code: 0000
HW Rev: 01
Prod Name: HiveAP121
HW ID: 00
Mft Date: 20121122
Num of MACs: 64
HW Ver: 1
Ant ID: 0000
Key: xxxxxxxxxxxxxx
I tried previous releases 19.07.X and previous versions 18.06.X and I get the same results. I tried a device from the same lot and the results are the same. What am i doing wrong or there is another hardware thing to take note?
The uboot installation process that i follow is this:
ar7240> dhcp;
ar7240> setenv serverip 192.168.15.5;
ar7240> tftpboot 0x81000000 openwrt-firmware-file.bin;
ar7240> nand erase 0x800000 0x800000;
ar7240> nand write 0x81000000 0x800000 0x800000;
ar7240> reset;
Thanks for your help.