Table of Contents
[[TOC]]
Axepoint
Variants
There are at least two variants of the Axepoint. The one that uses an A1 chip is known to be working for wireless backauls, while the A0 variant doesn't.
You can check which chip your device is using by running: cat /proc/net/mtlk/wlan0/eeprom_parsed For an A1 chip, the output should contain '0x910': HW ID : 0x1a30,0x910,0x0,0x0
Flashing via bootloader
This approach works both with the original UGW firmware and after the upgrade to prplWrt.
Setup
- Connect a USB cable to the microUSB port on the front. Open a serial console (microcom, picocom, ...) on this port (normally /dev/ttyUSB0).
- Connect a network cable to one of the 4 LAN ports.
Flow
- Set your computer ip to static 192.168.1.2 / 255.255.255.0 no gw
- Start TFTP server
- Drop the generated full image file from your build into the TFTP server's folder. If required, change the file mode bits of the file so the TFTP server can read an serve it (example: sudo chmod 777 /tftpboot/AX3000_1600_ETH_11AXUCI-squashfs-fullimage.img)
- Power up the Axepoint
- On the target (in the serial console), stop it in u-boot (press enter 5-10 sec after power on, when it tells you "Hit any key to stop autoboot")
- On the target execute: setenv fullimage AX3000_1600_ETH_11AXUCI-squashfs-fullimage.img
- On the target execute: setenv ipaddr 192.168.250.173
- On the target execute: setenv serverip 192.168.250.199
- On the target execute: saveenv
- On the target execute: run update_fullimage
- On the target execute: reset
Make sure to adapt the IP addresses and image name to your configuration. Steps 6 to 9 don't need to be repeated when you've done them once.
Other configuration
Resizing the overlay
The default configuration of the axepoint has an overlayfs which is rather small, and a lot of free space in the flash. Because of this, there is not enough space to re-install prplmesh. To make more space available in the overlay, use the following steps.
Note: this will remove all your customizations
- Power up the axepoint with a serial port console connected.
- When the message "Press the [f] key and hit [enter] to enter failsafe mode" appears, press f and enter.
- Run "ubirmvol /dev/ubi0 -N rootfs_data"
- Run "ubimkvol /dev/ubi0 -N rootfs_data -s 120MiB"
- Reboot.
Disable the firewall
By default, a firewall is enabled that, among other things, blocks ssh access. The easiest is to disable the firewall entirely:
/etc/init.d/firewall disable
/etc/init.d/firewall stop
NEC AX3000HP
The NEC AX3000HP is a platform based on Intel Axepoint, and so instructions will generally be similar for prplMesh on Axepoint and prplMesh on Nighthawk RAX40 (another Axepoint-based platform). If something is not mentioned here, consult these other pages for hints on how to proceed.
Hardware
Power supply
The device comes with a Japan-specific (100V) power supply.
It's possible to buy compatible power supplies that work with your local power sockets and voltages by looking for one with the same barrel connector (probably it's an EIAJ-04 plug, but this hasn't been confirmed):
Here are the specifications of a compatible power supply (not exactly the same as the one that comes with the device): 12V, 5A output. Probably a lower current is sufficient.
Building and running
Pinout
- The pinout and location for the UART connector is attached. It says: “PWR GND ____ TX RX”
Flashing a new uboot version
-
First, short the pin highlighted in red in the picture above (shorting that pin while booting the device will make the device print "UART" instead of the uboot output.)
NOTE: do not solder the short permanently unless after reboot device will go back to UART (no UBOOT) -
Next, copy the
u-boot-gphy.ascfile in your clipboard. -
Paste the content through the program you use to communicate with the device (screen, tio, minicom, ...).
-
You should now get a new uboot prompt.
-
Next, copy 'u-boot-nand_asurada.bin' to the root of your tftp server and name it
u-boot-nand.bin. -
Give your tftp server the IP '192.168.1.10' (or whatever value the device has for 'serverip').
-
At the u-boot prompt, enter:
run update_nandboot.
Flashing a debug version of UGW:
- Copy the ugw debug fullimage to the root of the tftp server and name it 'fullimage.img' (or alternatively, change the value of 'fullimage' in u-boot). 2.At the u-boot prompt, enter 'run update_fullimage'.
- Power cycle the device (just using 'reset' won't work).
- Login on the device, using "admin" as the user, and "admin" as the password.
- Remove the overlay completely:
rm -rf /overlay. - Next, you can build and flash prplwrt.
Flashing prplwrt and deploying prplMesh
- Copy the fullimage for the NEC device ("AX3000_1600_ETH_11AXUCI_ASURADA-squashfs-fullimage.img") to the root of your tftp server, and name it "fullimage.img".
- Boot the device, stop it at the uboot prompt. 3.At the u-boot prompt, enter 'run update_fullimage'.
- Wait for the device to be flashed, then reboot it.
The prplMesh version that comes with prplwrt will not be the latest one. Use the prplmesh ipk you built from the prplMesh repository to update it.
On the device, run:
opkg remove prplmesh-dwpalopkg install <path_to_the_new_ipk>
To check if prplMesh works, do:
/etc/init.d/prplmesh certification_mode controller- wait for 60 seconds
/opt/prplmesh/scripts/prplmesh_utils.sh status
This should return the following output:
/opt/prplmesh/scripts/prplmesh_utils.sh: status
5018 /opt/prplmesh/bin/beerocks_agent
5025 /opt/prplmesh/bin/beerocks_fronthaul
5027 /opt/prplmesh/bin/beerocks_fronthaul
5012 /opt/prplmesh/bin/ieee1905_transport
executing operational test using grep on log files
OK Main agent operational
OK wlan0 radio agent operational
OK wlan2 radio agent operational
Troubleshooting
Corrupt system_sw UBI partition (error 22)
It was reported that in some cases, the system_sw partition can get corrupted.
In that case, ubi part system_sw reports:
ubi0: attaching mtd1
UBI init error 22
If this happens, download this dump from the system_sw partition and u-boot-nand_asurada.bin to the root of your tftp server.
Next, follow these steps:
1. Go to uboot prompt.
2. Next, copy 'u-boot-nand_asurada.bin' to the root of your tftp server and name it u-boot-nand.bin.
3. Give your tftp server the IP '192.168.1.11' (or whatever value the device has for 'serverip').
4. At the u-boot prompt, run the below commands :
a. To get eth address - p ethaddr
b. run update_nandboot
c. run reset_uboot_config
d. re
e. press any key to get uboot prompt
f. set your serverip – setenv serverip 192.168.1.11;save
g. set ethaddr – setenv ethaddr <eth addr>;save [ eth addr => got from step a]
h. Copy the ASURADA image to the root of the tftp server and name it 'fullimage.img' (or alternatively, change the value of 'fullimage' in u-boot).
i. run update_fullimage
5. To fix Corrupted system_sw UBI partition –
a. download this dump from the system_sw partition to the root of your tftp server
b. goto uboot prompt and run –
i. nand erase.part system_sw; tftp ${loadaddr} system_sw.dump; nand write ${loadaddr} 0x002c0000 ${filesize}; ubi part system_sw
c. Then, use run update_fullimage flash a new image like in the instructions above.
UCI settings not saved after reboot
If UCI settings are lost after a reboot, check that the overlay partition exists and is working.
Specifically, looks for these specific lines in the kernel logs:
[ 12.043919] UBIFS error (ubi0:4 pid 609): ubifs_iget: failed to read inode 66, error -22
[ 12.051993] UBIFS error (ubi0:4 pid 609): ubifs_lookup: dead directory entry 'upper', error -22
[ 12.060666] UBIFS warning (ubi0:4 pid 609): ubifs_ro_mode.part.0: switched to read-only mode, error -22
If you get similar errors the UBI partition is corrupted, follow Corrupt system_sw UBI partition (error 22) to fix it.





