changes
This commit is contained in:
1 parent
4e986b012d
commit
2275f2c349
3 files changed
+26
-17
No files matched your search
+3
-1
@@ -1,2 +1,4 @@
|
||||
bin
|
||||
base_partitions/saved
|
||||
base_partitions/saved
|
||||
modem.bin
|
||||
persist.bin
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/sh
|
||||
# Rootfs resize utility
|
||||
# Rootfs resize utility - fast version
|
||||
|
||||
log() { logger -t rootfs-resizer "$*"; }
|
||||
|
||||
@@ -11,19 +11,26 @@ if [ -z "$rootpart" ] || [ ! -b "$rootpart" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
log "resizing $rootpart"
|
||||
log "resizing $rootpart (fast mode)"
|
||||
|
||||
# Resize procedure (based on HandsomeMod script)
|
||||
mount -o ro,remount /
|
||||
tune2fs -O^resize_inode "$rootpart" 2>&1 | logger -t rootfs-resizer
|
||||
fsck.ext4 -yDf "$rootpart" 2>&1 | logger -t rootfs-resizer
|
||||
mount -o rw,remount /
|
||||
resize2fs "$rootpart" 2>&1 | logger -t rootfs-resizer
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
# Fast resize - modern ext4 can resize online without full fsck
|
||||
if resize2fs "$rootpart" 2>&1 | logger -t rootfs-resizer; then
|
||||
log "resize completed successfully"
|
||||
sync
|
||||
exit 0
|
||||
else
|
||||
log "ERROR: resize failed"
|
||||
exit 1
|
||||
# If online resize fails, try the slow safe method
|
||||
log "online resize failed, trying safe method"
|
||||
mount -o ro,remount /
|
||||
e2fsck -fy "$rootpart" 2>&1 | logger -t rootfs-resizer
|
||||
mount -o rw,remount /
|
||||
resize2fs "$rootpart" 2>&1 | logger -t rootfs-resizer
|
||||
|
||||
if [ $? -eq 0 ]; then
|
||||
log "resize completed (safe method)"
|
||||
exit 0
|
||||
else
|
||||
log "ERROR: resize failed"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
@@ -42,7 +42,7 @@ The base partitions are in a folder called `base_partitions` on this repo:
|
||||
- Install `edl`: https://github.com/bkerler/edl
|
||||
- Put the device in `edl` mode: https://wiki.postmarketos.org/wiki/Zhihe_series_LTE_dongles_(generic-zhihe)#How_to_enter_flash_mode
|
||||
- Do a full backup: `edl rf backup.bin`
|
||||
- Run `cd bin/targets/msm89xx/msm8916 && openwrt-msm89xx-msm8916-yiming-uz801v3-flash.sh`: It will prompt for the partitions folder (`base_partitions`). The script will backup the important partitions specific for your device, will flash everything and will restore de previously saved partitions.
|
||||
- Run `./openwrt-msm89xx-msm8916-yiming-uz801v3-flash.sh`: It will prompt for the partitions folder (`base_partitions`). The script will backup the important partitions specific for your device, will flash everything and will restore de previously saved partitions.
|
||||
|
||||
After the succesful flash if you:
|
||||
- Want to enter `fastboot`, just insert the device with the button pressed.
|
||||
@@ -62,10 +62,10 @@ First, extract the contents of `modem.bin` from your firmware dump. You can do `
|
||||
|
||||
Once you have selected your region, you'll find folders typically representing Telcos in your area. Navigate through the appropriate folder until you locate `mcfg_sw.mbn`. If your telco is not listed, just grab a generic as it is done in this project for europe:
|
||||
```makefile
|
||||
# packages/qcom-firmware/Makefile
|
||||
# packages/msm8916-firmware/Makefile
|
||||
define Build/Compile
|
||||
...
|
||||
::image/modem_pr/mcfg/configs/mcfg_sw/generic/common/default/default/mcfg_sw.mbn $(PKG_BUILD_DIR)/uz801
|
||||
::image/modem_pr/mcfg/configs/mcfg_sw/generic/common/default/default/mcfg_sw.mbn $(PKG_BUILD_DIR)
|
||||
...
|
||||
endef
|
||||
```
|
||||
@@ -88,7 +88,7 @@ Once you have selected your region, you'll find folders typically representing T
|
||||
- @lkiuyu https://github.com/lkiuyu/immortalwrt
|
||||
- Almost all the msm8916 folder + patches + openstick feeds.
|
||||
- @Mio-sha512 https://github.com/Mio-sha512/OpenStick-Builder
|
||||
- `usb-gadget` and `msm-firmware-loader` idea.
|
||||
- `usb-gadget` and `msm-firmware-loader` idea (now `msm-firmware-dumper`).
|
||||
- @AlienWolfX https://github.com/AlienWolfX/UZ801-USB_MODEM/wiki/Troubleshooting
|
||||
- For the carriers policy troubleshooting.
|
||||
- @gw826943555 and @asvow https://github.com/gw826943555/luci-app-tailscale
|
||||
|
||||
Reference in new issue
Block a user