flash openstick base-generic images
To activate ADB, insert the stick and allow it to fully boot up. Then establish a WiFi connection with the stick using the credentials specified on its back. After successfully logging in, launch a webbrowser and navigate to the stick’s management page at http://192.168.100.1. Log in with the username/password combination “admin.”
Once logged in, visit http://192.168.100.1/usbdebug.html to enable ADB. Reboot the stick (by reinserting the stick into the PC) and verify that ADB is active post-reboot.
adb devices
List of devices attached
0123456789ABCDEF device
Boot to EDL
adb reboot edl
Next, retrieve the EDL tool from Bjoern Kerler’s GitHub page: https://github.com/bkerler/edl.git and follow the provided instructions to install the necessary dependencies. Once installed, proceed to generate various backups.
python3 edl.py rf usb4g-stock.bin
python3 edl.py rl uz801_stock --genxml
Reboot to fastboot
adb reboot bootloader
Download and extract the base-generic.zip from https://github.com/OpenStick/OpenStick/releases/download/v1/base-generic.zip, and run the base/flash.sh script
Make boot image from yocto generated files
# example for for ufi003
cd mkboot/
cat u4go-ufi003/zImage u4go-ufi003/ufi003x.dtb > kernel
# mkboot tools from https://git.iohub.dev/dany/mkbootimg_tools
mkboot u4go-ufi003 boot-ufi003.img
fastboot flash boot boot-ufi003.img
Make roofs sparse image from yocto generate .ext4 file
# img2simg shall be installed
img2simg rootfs.ext4 rootfs.img
fastboot -S 200M flash rootfs rootfs.img