Reflashing The Ben Nanonote
Flashing The Ben Nanonote
Flashing is the process of changing the software that is in an embedded device's flash ROM. This software can be changed manually, but it is safer to change the kernel and boot loader by flashing.
What will I need to get started?
- The Ben Nanonote obviously.
- Something to short the usb boot pads.
- A built LibreWRT rootfs.
- time to kill.
Lets Free Your Ben Nanonote!
1."Boot" your Ben Nanonote.
Before we flash your Ben Nanonote, we need to start it in USB boot mode.
To start in USB boot mode, remove the battery pack and either short the USB boot pad (older models) or hold "U" button (newer models). While shorted/hold, plug the USB cable into the Ben Nanonote and wait for several seconds. If it does not start, you should be in USB boot mode. Then issue the following:
sudo usbboot -c "boot"
2.Erase Flash ROM.
This is an important step. We need to erase flash ROM so that we can ensure that we have a clean place to install the images in flash ROM.
sudo usbboot -c "nerase 0 4096 0 0 -n"
3.Install the u-boot boot loader.
sudo usbboot -c "nprog 0 librewrt-xburst-qi_lb60-u-boot.bin 0 0 -n"
PLEASE NOTE that the u-boot boot loader we are using is Free and Open Source Software, but we need to work out how to include this with LibreWRT.
4.Install the kernel image.
The kernel image will then be installed by:
sudo usbboot -c "nprog 1024 librewrt-xburst-qi_lb60-uImage.bin 0 0 -n"
sudo usbboot -c "nprog 2048 librewrt-xburst-qi_lb60-root.ubi 0 0 -n"
You should now have a fully functional Ben Nanonote if both the build process and flashing went OK. if not, you will see a kernel panic message that will tell you that the rootfs can not be loaded. Just try again. :)