Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:aerohive:hiveap-330 [2022/02/12 23:22] – created chunkeey | toh:aerohive:hiveap-330 [2022/02/19 18:32] – [Snapshot Releases] new method chunkeey | ||
|---|---|---|---|
| Line 83: | Line 83: | ||
| * This entry will be updated once the device boots with the 5.10 snapshots again. | * This entry will be updated once the device boots with the 5.10 snapshots again. | ||
| - | Connect your PC's ethernet port to the RJ45 port labeled " | ||
| - | Open the serial connection (9600, 8N1) and power on the AP121. | + | |
| + | 1. setup a network with a tftp server | ||
| + | |||
| + | Start a tftp server at serverip (192.168.1.101) with the initramfs image in the servers root tftp directory. Having a dhcp server is advantageous. However static IPv4s can be set in the uboot environment later on. | ||
| + | |||
| + | 2. setup console port and pass uboot login challenge | ||
| + | |||
| + | The AP has a serial port on the RJ45 port labeled " | ||
| When you see '' | When you see '' | ||
| - | Now is a good time to confirm your bootloader version. Issue the command | + | 3. confirm uboot is supported |
| + | |||
| + | confirm your bootloader version. Issue the command | ||
| < | < | ||
| version | version | ||
| </ | </ | ||
| - | ... | + | Check if the version listed there matches one of the supported uboot version. |
| + | |||
| + | 4. setup IPv4 connection | ||
| + | |||
| + | If you are using dhcp, you can just enter '' | ||
| + | set you up with an ipv4. | ||
| + | |||
| + | If you are going the static assignment route. You have to set your IPv4 Address by | ||
| + | entering: '' | ||
| + | this IP isn't already taken by another device). | ||
| + | |||
| + | 5. upload initramfs firmware | ||
| + | |||
| + | The next step is to transfer the OpenWrt binary to the HiveAP-330' | ||
| + | The method depends on what release you want to install. | ||
| + | |||
| + | ==== Snapshot Releases ==== | ||
| + | |||
| + | 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 / | ||
| + | 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 ==== | ||
| + | |||
| + | If you are downgrading from a later snapshot release: You need to set and save the original boot command parameters that were used before the re-partitioning of the device: | ||
| + | < | ||
| + | setenv owrt_boot " | ||
| + | save | ||
| + | </ | ||
| + | |||
| + | To run the installation enter the following commands in uboot: | ||
| + | < | ||
| + | tftpboot 0x1000000 192.168.1.101: | ||
| + | tftpboot 0x6000000 192.168.1.101: | ||
| + | bootm 0x1000000 - 0x6000000; | ||
| + | </ | ||
| + | |||
| + | Once OpenWrt boots and 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/ | ||
| ===== Troubleshooting/ | ===== Troubleshooting/ | ||
| Line 116: | Line 220: | ||
| ==== Photos ==== | ==== Photos ==== | ||
| - | // | + | {{: |
| + | {{: | ||
| ==== Boot Logs ==== | ==== Boot Logs ==== | ||
| Line 443: | Line 548: | ||
| [ | [ | ||
| [ | [ | ||
| - | |||
| - | ## Booting image at 81000000 ... | ||
| - | Image Name: MIPS OpenWrt Linux-3.3.8 | ||
| - | | ||
| - | Image Type: MIPS Linux Kernel Image (lzma compressed) | ||
| - | Data Size: 4269201 Bytes = 4.1 MB | ||
| - | Load Address: 80060000 | ||
| - | Entry Point: | ||
| - | | ||
| - | | ||
| - | No initrd | ||
| - | ## Transferring control to Linux (at address 80060000) ... | ||
| - | ## Giving linux memsize in bytes, 67108864 | ||
| - | |||
| - | Starting kernel ... | ||
| - | |||
| - | [ 0.000000] Linux version 3.3.8 (dzubey@Spartan) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #6 Mon Nov 26 10:01:28 MST 2012 | ||
| - | [ 0.000000] bootconsole [early0] enabled | ||
| - | [ 0.000000] CPU revision is: 00019374 (MIPS 24Kc) | ||
| - | [ 0.000000] SoC: Atheros AR9330 rev 1 | ||
| - | [ 0.000000] Clocks: CPU: | ||
| - | [ 0.000000] Determined physical RAM map: | ||
| - | [ 0.000000] | ||
| - | [ 0.000000] Initrd not found or empty - disabling initrd | ||
| - | [ 0.000000] Zone PFN ranges: | ||
| - | [ 0.000000] | ||
| - | [ 0.000000] Movable zone start PFN for each node | ||
| - | [ 0.000000] Early memory PFN ranges | ||
| - | [ 0.000000] | ||
| - | [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 | ||
| - | [ 0.000000] Kernel command line: board=DIR-505-A1 console=ttyATH0, | ||
| - | [ 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 64kB, VIPT, 4-way, linesize 32 bytes. | ||
| - | [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes | ||
| - | [ 0.000000] Writing ErrCtl register=00000000 | ||
| - | [ 0.000000] Readback ErrCtl register=00000000 | ||
| - | [ 0.000000] Memory: 58492k/ | ||
| - | [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, | ||
| - | [ 0.000000] NR_IRQS:51 | ||
| - | [ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104) | ||
| - | [ 0.080000] pid_max: default: 32768 minimum: 301 | ||
| - | [ 0.080000] Mount-cache hash table entries: 512 | ||
| - | [ 0.090000] NET: Registered protocol family 16 | ||
| - | [ 0.090000] gpiochip_add: | ||
| - | [ 0.100000] MIPS: machine is D-Link DIR-505 A1 | ||
| - | [ 0.350000] bio: create slab < | ||
| - | [ 0.360000] Switching to clocksource MIPS | ||
| - | [ 0.360000] NET: Registered protocol family 2 | ||
| - | [ 0.370000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) | ||
| - | [ 0.370000] TCP established hash table entries: 2048 (order: 2, 16384 bytes) | ||
| - | [ 0.380000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes) | ||
| - | [ 0.380000] TCP: Hash tables configured (established 2048 bind 2048) | ||
| - | [ 0.390000] TCP reno registered | ||
| - | [ 0.390000] UDP hash table entries: 256 (order: 0, 4096 bytes) | ||
| - | [ 0.400000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) | ||
| - | [ 0.400000] NET: Registered protocol family 1 | ||
| - | [ 6.810000] squashfs: version 4.0 (2009/ | ||
| - | [ 6.820000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. | ||
| - | [ 6.830000] msgmni has been set to 114 | ||
| - | [ 6.830000] io scheduler noop registered | ||
| - | [ 6.830000] io scheduler deadline registered (default) | ||
| - | [ 6.840000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled | ||
| - | [ 6.840000] ar933x-uart: | ||
| - | [ 6.850000] console [ttyATH0] enabled, bootconsole disabled | ||
| - | [ 6.850000] console [ttyATH0] enabled, bootconsole disabled | ||
| - | [ 6.870000] m25p80 spi0.0: found mx25l6405d, expected m25p80 | ||
| - | [ 6.870000] m25p80 spi0.0: mx25l6405d (8192 Kbytes) | ||
| - | [ 6.880000] 8 cmdlinepart partitions found on MTD device spi0.0 | ||
| - | [ 6.880000] Creating 8 MTD partitions on " | ||
| - | [ 6.890000] 0x000000000000-0x000000010000 : " | ||
| - | [ 6.890000] 0x000000010000-0x000000020000 : " | ||
| - | [ 6.900000] 0x000000020000-0x000000030000 : " | ||
| - | [ 6.900000] 0x000000030000-0x000000040000 : " | ||
| - | [ 6.910000] 0x000000040000-0x000000080000 : " | ||
| - | [ 6.910000] 0x000000080000-0x000000180000 : " | ||
| - | [ 6.920000] 0x000000180000-0x000000800000 : " | ||
| - | [ 6.920000] mtd: partition " | ||
| - | [ 6.930000] mtd: partition " | ||
| - | [ 6.940000] 0x0000006e0000-0x000000800000 : " | ||
| - | [ 6.940000] 0x000000080000-0x000000800000 : " | ||
| - | [ 6.970000] ag71xx_mdio: | ||
| - | [ 6.970000] eth0: Atheros AG71xx at 0xb9000000, irq 4 | ||
| - | [ 7.530000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.1: | ||
| - | [ 7.540000] TCP cubic registered | ||
| - | [ 7.540000] NET: Registered protocol family 17 | ||
| - | [ 7.540000] Bridge firewalling registered | ||
| - | [ 7.550000] 8021q: 802.1Q VLAN Support v1.8 | ||
| - | [ 7.580000] Freeing unused kernel memory: 3432k freed | ||
| - | - preinit - | ||
| - | Press the [f] key and hit [enter] to enter failsafe mode | ||
| - | [ | ||
| - | - regular preinit - | ||
| - | [ | ||
| - | - init - | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | |||
| - | Please press Enter to activate this console. [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| - | [ | ||
| </ | </ | ||