cherrypicked

This commit is contained in:
Miguel Fuertes committed 2025-10-03 11:27:07 +02:00
1 parent 27572f03f3
commit 968de93c60
16 files changed
+425 -85

No files matched your search

+5 -8
View File
@@ -18,15 +18,14 @@ Modern version of OpenWrt working on UZ801v3:
- No shell attached to ACM, just pure raw Serial (/dev/ttyGS0)
- TUN installed
- Wireguard Installed
- GRE Protocol Installed
- `hotplug.d` scripts to manage leds, only on/off if iface, no blinking:
- On default Linux Kernel `dts`, leds are swapped!
- Wifi Led: [packages/uz801-tweaks/files/wifi-led.hotplug](packages/uz801-tweaks/files/wifi-led.hotplug)
- Modem Led: [packages/uz801-tweaks/files/modem-led.hotplug](packages/uz801-tweaks/files/modem-led.hotplug)
- Firmware is dumped on first boot from modem/persist partition:
- Small distributable size
- Uses the binaries/firmware from the own device.
- __This might imply that a port for other devices would be easier... but I have not tested it as I only have this device.___
- SQUASHFS Enabled: This allows for __*firstboot*__ (factory reset).
### How to build OpenWrt
Docker is required!
@@ -78,14 +77,12 @@ Once you have selected your region, you'll find folders typically representing T
3. Reboot the device.
### Future:
- squashfs + overlayfs + firstboot:
- This implies new gpt partition table with `boot`, `system` and `userspace`, `system` has `ro` filesystem, and `userspace` has overlayfs.
- gpt table makes `fastboot erase/format` expand `userspace` to full size.
- ACM gadget not working!
- Also test Shell
- Custom package server for msm89xx/msm8916
- Any target specific module not present might require to be built from sources. This repo can be used to do that, run `make menuconfig` before `make -j$(nproc)` and select it from the menu.
- `msm-firmware-loader` or `msm-firmware-staging`, to mount firmware instead of bundle to free up almost 40mb from rootfs.
- For more info: [packages/msm-firmware-loader/readme.md](packages/msm-firmware-loader/readme.md)
- Posible solution: use `preinit` script, but not working... bootloop.
- Generate all `base_partitions` with openwrt builder.
- Format `rootfs_data` with openwrt first boot!
## Credits
- @ghosthgy https://github.com/ghosthgy/openwrt-msm8916