Aerohive HiveAP 330 instructions incomplete? Noob

I have previously flashed an Aerohive AP221 without issue, but with this one it feels like the guide is missing something...

So I get to the end of Step 5, and there was a step missing to setenv serverip 192.168.1.101 but figured that out, and everything seems ok (output below)... but then Step 6 comes along... the console is frozen after step 5 so I can't enter any commands...

The AP330 guide states: "6. Once OpenWrt booted: carefully copy and paste this into the root shell. One step at a time." What does it mean by this? Should the console still be available to me, or is the root shell some other console? It feels like there's some base level of understanding of what I should be doing not explained here?

Any assistance, help, or tips greatly appreciated.

Thanks.

U-Boot 2009.11 (Aug 10 2017 - 21:09:52), Build: jenkins-HiveOS-Honolulu_AP350_Rel-306

CPU0:  P1020E, Version: 1.1, (0x80ec0011)
Core:  E500, Version: 5.1, (0x80212051)
Clock Configuration:
       CPU0:533.333 MHz, CPU1:533.333 MHz,
       CCB:266.667 MHz,
       DDR:266.667 MHz (533.333 MT/s data rate) (Asynchronous), LBC:16.667 MHz
L1:    D-cache 32 kB enabled
       I-cache 32 kB enabled
I2C:   ready
SPI:   ready
DRAM:  Configuring DDR for 533.333 MT/s data rate
DDR: 256 MB
FLASH: 64 MB
L2:    256 KB enabled
MMC:

    PCIE2 connected to Slot 1 as Root Complex (base addr ffe09000)
               Scanning PCI bus 01
        01  00  168c  0030  0280  ff
    PCIE2 on bus 00 - 01

    PCIE1 connected to Slot 2 as Root Complex (base addr ffe0a000)
               Scanning PCI bus 03
        03  00  168c  0030  0280  ff
    PCIE1 on bus 02 - 03

In:    serial
Out:   serial
Err:   serial
Net:   eth0, eth1
current temperature is 16
Hit any key to stop autoboot:  0
Password:
=> version

Aerohive Boot Loader v1.0.3.4d, Build time Fri Aug 11 04:11:31 2017

=> setenv owrt_boot 'setenv bootargs \"console=ttyS0,$baudrate\";bootm 0xEC04000                                                  0 - 0xEC000000'
=> save
Saving Environment to Flash...
Erasing Flash...Writing to Flash... done
=> setenv bootargs console=ttyS0,$baudrate
=> setenv serverip 192.168.1.101
=> tftpboot 1000000 192.168.1.101:mpc85xx-p1020-hiveap-330-initramfs.bin
Speed: 1000, full duplex
Using eth0 device
TFTP from server 192.168.1.101; our IP address is 192.168.1.1
Filename 'mpc85xx-p1020-hiveap-330-initramfs.bin'.
Load address: 0x1000000
Loading: start tftp get.########################################################                                                  #########
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################
done
Bytes transferred = 11098244 (a95884 hex)
=>

=> bootm
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   POWERPC OpenWrt Linux-5.4.143
   Created:      2021-08-31  22:20:08 UTC
   Image Type:   PowerPC Linux Kernel Image (uncompressed)
   Data Size:    11098180 Bytes = 10.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK


With the help of the below two resources, some googling and trial and error I think I did it... a lot different to what it shows on the wiki page for this model however?!

Installing OpenWRT to Aerohive HiveAP 330 / Установка OpenWRT на Aerohive HiveAP 330

https://blog.geierb.de/gluon-auf-aerohive-hiveap-330-installieren/

Note you can play around with the releases to see if there is a more up to date version I think, though I used this one:
https://downloads.openwrt.org/releases/21.02.1/targets/mpc85xx/p1020/
Download the three files, ...kernel.bin, ...fdt.bin, ...sysupgrade.bin to your TFTP root dir.

Installing OpenWRT to Aerohive HiveAP 330

Console cable plugged in and console open (PuTTY), I changed to COM3 based on the output from Device Manager in Windows.

Plug Eth0 cable into a switch
Ethernet IP set on PC to 192.168.1.101 and Ethernet plugged into same switch

Power on router
Press enter within 3 sec to stop the boot process
Enter password: AhNf?d@ta06

Prepare:
setenv serverip 192.168.1.101 (this is the IP of your PC or whatever is hosting the TFTP server (I used the free TFTP server from Solarwinds)
setenv ipaddr 192.168.1.3

Upload kernel & fdt:
tftpboot 0x1000000 192.168.1.101:openwrt-21.02.1-mpc85xx-p1020-aerohive_hiveap-330-initramfs-kernel.bin

tftpboot 0x6000000 192.168.1.101:openwrt-21.02.1-mpc85xx-p1020-aerohive_hiveap-330-squashfs-fdt.bin

Boot openwrt:
bootm 0x1000000 - 0x6000000

Wait until scrolling stops, then press Enter to see the OpenWRT ASCII art

Set LAN IP address so that you can upload the sysupgrade.bin via SFTP (WinSCP)
vi /etc/config/network

Changed IP address here to 192.168.1.3:

i to go into insert mode

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.3'
        option netmask '255.255.255.0'
        option ip6assign '60'

esc to exit insert mode
:wq to write file and quit

/etc/init.d/network restart to restart networking and apply the IP

Move Ethernet cable to Eth1

ping 192.168.1.3

Ping 192.168.1.3 to confirm it's up

Need to set password as WinSCP will require it:

passd
set new root password: NewRootP4sswordHere!

Transfer the below file to /tmp via WinSCP
openwrt-21.02.1-mpc85xx-p1020-aerohive_hiveap-330-squashfs-sysupgrade.bin

Write openwrt to flash:
sysupgrade /tmp/openwrt-21.02.1-mpc85xx-p1020-aerohive_hiveap-330-squashfs-sysupgrade.bin

Light flashes RED

Wait 5 mins... it will reboot

Light Flashes GREEN for some time, then goes steady GREEN.

IP defaults back to 192.168.1.1

http://192.168.1.1 to gain entry to LUCI GUI

Click login, no password required to login, but do set one.

Think the Root password in console defaulted back to not having a password? need to change that.

Haven't played with it yet, but the LUCI GUI is there and accessible.

I hope this helps someone else.

1 Like

thank you very much. I just picked up a heap of these APs, and this made them useable

thanks for the help... I am almost there but not yet. After I moved the bin file using winscp .. and run the sysupgrade. I did see red light and now in Putty it said ramdisk image is corrupt or invalid.. what did i do wrong