Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
| toh:aerohive:hiveap-330 [2022/02/19 18:10] – [Bootloader versions] added md5sum chunkeey | toh:aerohive:hiveap-330 [2022/02/19 18:32] – [Snapshot Releases] new method chunkeey | ||
|---|---|---|---|
| Line 74: | Line 74: | ||
| The following bootloader versions have been confirmed to be able to flash and boot OpenWrt correctly: | The following bootloader versions have been confirmed to be able to flash and boot OpenWrt correctly: | ||
| - | * Aerohive Boot Loader v1.0.3.4d, Build time Thu Jan 12 08:29:18 2017 | + | * Aerohive Boot Loader v1.0.3.4d, Build time Thu Jan 12 08:29:18 2017 |
| - | * md5sum: < | + | |
| ===== Getting and Flashing Firmware ===== | ===== Getting and Flashing Firmware ===== | ||
| Line 121: | Line 120: | ||
| ==== Snapshot Releases ==== | ==== Snapshot Releases ==== | ||
| - | TBD/TBD | + | If you start out fresh you can preemptively set the new openwrt boot command. |
| + | For this to work, the uboot has to be modified (which we do in a later step). | ||
| + | Otherwise, the stock uboot will always use a internal bootcmd that can't be | ||
| + | overwritten and it won't boot the sysupgraded' | ||
| + | < | ||
| + | setenv owrt_boot ' | ||
| + | save | ||
| + | </ | ||
| + | |||
| + | To boot the initramfs, enter the following commands into uboot' | ||
| + | < | ||
| + | setenv bootargs console=ttyS0, | ||
| + | tftpboot 1000000 192.168.1.101: | ||
| + | bootm | ||
| + | </ | ||
| + | |||
| + | 6. Once OpenWrt booted: | ||
| + | carefully copy and paste this into the root shell. One step at a time. | ||
| + | |||
| + | 6.1 install kmod-mtd-rw from the internet and load it | ||
| + | |||
| + | opkg update; opkg install kmod-mtd-rw | ||
| + | insmod mtd-rw i_want_a_brick=y | ||
| + | |||
| + | 6.2 create scripts that modifies uboot | ||
| + | |||
| + | cat <<- " | ||
| + | . / | ||
| + | cp "/ | ||
| + | cp /tmp/uboot / | ||
| + | ofs=$(strings -n80 -td < /tmp/uboot | grep '^ [0-9]* setenv bootargs.*cp\.l' | ||
| + | for off in $ofs; do | ||
| + | printf "run owrt_boot; | ||
| + | done | ||
| + | md5sum /tmp/uboot* | ||
| + | EOF | ||
| + | |||
| + | 6.2 run the script to generated a patched uboot | ||
| + | |||
| + | sh / | ||
| + | |||
| + | The script will print out three md5sums to verify that /tmp/uboot and / | ||
| + | |||
| + | For reference: my md5sum looked like this | ||
| + | |||
| + | | ||
| + | | ||
| + | | ||
| + | |||
| + | 6.3 flash the patched uboot | ||
| + | |||
| + | mtd write / | ||
| + | | ||
| + | This uboot runs the bootcommand in the // | ||
| + | editing this uboot environment variable. | ||
| + | |||
| + | 7. permanent installation | ||
| + | |||
| + | If you have LuCI (included in Releases), you can now load up LuCI at 192.168.1.1, | ||
| + | |||
| + | If you don't have LuCI, you have to copy over the sysupgrade file via SFTP/ | ||
| ==== (Downgrade) to Releases older or equal to 21.02 ==== | ==== (Downgrade) to Releases older or equal to 21.02 ==== | ||