doc: add instruction on boot & rootfs

This commit is contained in:
Dany LE
2025-11-23 15:19:30 +01:00
parent 5d3a1741cf
commit 051c76890a
3 changed files with 76 additions and 0 deletions

52
README.md Normal file
View File

@@ -0,0 +1,52 @@
# 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 sticks 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.
```sh
adb devices
List of devices attached
0123456789ABCDEF device
```
Boot to EDL
```sh
adb reboot edl
```
Next, retrieve the EDL tool from Bjoern Kerlers 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.
```sh
python3 edl.py rf usb4g-stock.bin
python3 edl.py rl uz801_stock --genxml
```
Reboot to fastboot
```sh
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
```sh
# 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
```sh
# img2simg shall be installed
img2simg rootfs.ext4 rootfs.img
fastboot -S 200M flash rootfs rootfs.img
```

View File

@@ -0,0 +1,12 @@
kernel=kernel
ramdisk=ramdisk
page_size=2048
kernel_size=6957457
ramdisk_size=6627049
base_addr=0x80078000
kernel_offset=0x00008000
ramdisk_offset=0x01f88000
tags_offset=0x01d88000
cmd_line='earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw'
board=""
format=gzip

View File

@@ -0,0 +1,12 @@
kernel=kernel
ramdisk=ramdisk
page_size=2048
kernel_size=6957145
ramdisk_size=6627049
base_addr=0x80078000
kernel_offset=0x00008000
ramdisk_offset=0x01f88000
tags_offset=0x01d88000
cmd_line='earlycon root=PARTUUID=a7ab80e8-e9d1-e8cd-f157-93f69b1d141e console=ttyMSM0,115200 no_framebuffer=true rw'
board=""
format=gzip