build: drop redundant .sparse.img generation and update docs
This commit is contained in:
@@ -13,8 +13,7 @@ This manual covers flashing, operating, and customizing **Bananarchy Linux** (Sx
|
|||||||
## 1. System overview & workspace contents
|
## 1. System overview & workspace contents
|
||||||
|
|
||||||
### 1.1 System images (`images/`)
|
### 1.1 System images (`images/`)
|
||||||
- `images/bananarchy-nokia-argon.img` — raw partitioned image (`256 MiB` `ext2` `pmOS_boot` + `ext4` `pmOS_root`) ready for EDL flashing to `userdata` or raw `dd` to a microSD card.
|
- `images/bananarchy-nokia-argon.img` — partitioned image (`256 MiB` `ext2` `pmOS_boot` + `ext4` `pmOS_root`) ready for EDL flashing to `userdata`, `fastboot flash userdata`, or raw `dd` to a microSD card.
|
||||||
- `images/bananarchy-nokia-argon.sparse.img` — Android sparse image for `fastboot flash userdata`.
|
|
||||||
- `images/boot-bananarchy-nokia-argon.img` — standalone Android `boot.img` with Linux `6.12.1-msm8916`, initramfs, and appended DTB.
|
- `images/boot-bananarchy-nokia-argon.img` — standalone Android `boot.img` with Linux `6.12.1-msm8916`, initramfs, and appended DTB.
|
||||||
- Additional device images (`bananarchy-nokia-beatles.img`, `bananarchy-nokia-tough.img`, `bananarchy-nokia-sparkler.img`) can be generated at any time via `./rebuild-image.sh <device> --mkinitfs`.
|
- Additional device images (`bananarchy-nokia-beatles.img`, `bananarchy-nokia-tough.img`, `bananarchy-nokia-sparkler.img`) can be generated at any time via `./rebuild-image.sh <device> --mkinitfs`.
|
||||||
|
|
||||||
@@ -65,9 +64,9 @@ The script will:
|
|||||||
### Method B: Fastboot flashing (once `lk2nd` is installed)
|
### Method B: Fastboot flashing (once `lk2nd` is installed)
|
||||||
|
|
||||||
1. Hold **D-Pad up** while powering on the phone to enter `lk2nd` Fastboot mode.
|
1. Hold **D-Pad up** while powering on the phone to enter `lk2nd` Fastboot mode.
|
||||||
2. Flash the sparse system image to `userdata`:
|
2. Flash the system image to `userdata`:
|
||||||
```bash
|
```bash
|
||||||
fastboot flash userdata ./images/bananarchy-nokia-argon.sparse.img
|
fastboot flash userdata ./images/bananarchy-nokia-argon.img
|
||||||
fastboot erase system
|
fastboot erase system
|
||||||
fastboot reboot
|
fastboot reboot
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ bananarchy/
|
|||||||
├── MANUAL.md # Complete flashing, keypad, plugin, T9, camera, and modem manual
|
├── MANUAL.md # Complete flashing, keypad, plugin, T9, camera, and modem manual
|
||||||
├── flash-edl.sh # Automated USB EDL flasher wrapper (sudo + ModemManager handling)
|
├── flash-edl.sh # Automated USB EDL flasher wrapper (sudo + ModemManager handling)
|
||||||
├── flash-edl.py # Multi-device Qualcomm Sahara/Firehose EDL flasher
|
├── flash-edl.py # Multi-device Qualcomm Sahara/Firehose EDL flasher
|
||||||
├── rebuild-image.sh # Builds boot.img, MBR raw .img, and Android .sparse.img
|
├── rebuild-image.sh # Builds boot.img and partitioned MBR .img
|
||||||
├── chroot-shell.sh # Rootless Docker armv7 package & rootfs customization shell
|
├── chroot-shell.sh # Rootless Docker armv7 package & rootfs customization shell
|
||||||
├── artwork/ # Bananarchy master icon, generated icons, wallpapers, and splashes
|
├── artwork/ # Bananarchy master icon, generated icons, wallpapers, and splashes
|
||||||
├── bootloader/ # lk2nd secondary bootloader and Sahara/Firehose programmer (8110.mbn)
|
├── bootloader/ # lk2nd secondary bootloader and Sahara/Firehose programmer (8110.mbn)
|
||||||
@@ -130,8 +130,7 @@ All components are pre-compiled in `prebuilt/` and `overlay/rootfs/`, and can be
|
|||||||
./rebuild-image.sh nokia-sparkler --mkinitfs
|
./rebuild-image.sh nokia-sparkler --mkinitfs
|
||||||
```
|
```
|
||||||
Output images are written to `images/`:
|
Output images are written to `images/`:
|
||||||
- `images/bananarchy-<device>.img` (raw partitioned MBR image for EDL `userdata` or microSD card)
|
- `images/bananarchy-<device>.img` (partitioned MBR image for EDL `userdata`, `fastboot flash userdata`, or microSD card)
|
||||||
- `images/bananarchy-<device>.sparse.img` (Android sparse image for `fastboot flash userdata`)
|
|
||||||
- `images/boot-bananarchy-<device>.img` (kernel + initramfs + DTB boot image)
|
- `images/boot-bananarchy-<device>.img` (kernel + initramfs + DTB boot image)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
+3
-7
@@ -244,11 +244,10 @@ EOF
|
|||||||
rm -rf "$ROOTFS/boot"
|
rm -rf "$ROOTFS/boot"
|
||||||
mv "$SAVED_BOOT" "$ROOTFS/boot"
|
mv "$SAVED_BOOT" "$ROOTFS/boot"
|
||||||
|
|
||||||
echo "[4/5] Assembling partitioned MBR raw image and Android sparse image..."
|
echo "[4/5] Assembling partitioned MBR raw image..."
|
||||||
RAW_IMG="/images/bananarchy-$TARGET_DEVICE.img"
|
RAW_IMG="/images/bananarchy-$TARGET_DEVICE.img"
|
||||||
SPARSE_IMG="/images/bananarchy-$TARGET_DEVICE.sparse.img"
|
|
||||||
TOTAL_MB=$(( 1 + BOOT_MB + ROOT_MB ))
|
TOTAL_MB=$(( 1 + BOOT_MB + ROOT_MB ))
|
||||||
rm -f "$RAW_IMG" "$SPARSE_IMG"
|
rm -f "$RAW_IMG" "/images/bananarchy-$TARGET_DEVICE.sparse.img" "/images/nokia-argon-sxmo.sparse.img"
|
||||||
truncate -s "${TOTAL_MB}M" "$RAW_IMG"
|
truncate -s "${TOTAL_MB}M" "$RAW_IMG"
|
||||||
|
|
||||||
BOOT_SECTORS=$(( BOOT_MB * 2048 ))
|
BOOT_SECTORS=$(( BOOT_MB * 2048 ))
|
||||||
@@ -266,11 +265,8 @@ SFEOF
|
|||||||
dd if="$ROOT_IMG" of="$RAW_IMG" bs=1M seek=$(( 1 + BOOT_MB )) conv=notrunc,sparse status=none
|
dd if="$ROOT_IMG" of="$RAW_IMG" bs=1M seek=$(( 1 + BOOT_MB )) conv=notrunc,sparse status=none
|
||||||
rm -f "$BOOT_IMG" "$ROOT_IMG"
|
rm -f "$BOOT_IMG" "$ROOT_IMG"
|
||||||
|
|
||||||
img2simg "$RAW_IMG" "$SPARSE_IMG"
|
|
||||||
|
|
||||||
if [ "$TARGET_DEVICE" = "nokia-argon" ]; then
|
if [ "$TARGET_DEVICE" = "nokia-argon" ]; then
|
||||||
ln -f "$RAW_IMG" "/images/nokia-argon-sxmo.img"
|
ln -f "$RAW_IMG" "/images/nokia-argon-sxmo.img"
|
||||||
ln -f "$SPARSE_IMG" "/images/nokia-argon-sxmo.sparse.img"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "[5/5] Restoring host user ownership on $ROOTFS for easy host editing..."
|
echo "[5/5] Restoring host user ownership on $ROOTFS for easy host editing..."
|
||||||
@@ -278,5 +274,5 @@ SFEOF
|
|||||||
chmod -R u+rwX "$ROOTFS"
|
chmod -R u+rwX "$ROOTFS"
|
||||||
|
|
||||||
echo "Built Bananarchy images for $TARGET_DEVICE:"
|
echo "Built Bananarchy images for $TARGET_DEVICE:"
|
||||||
ls -lh "/images/boot-bananarchy-$TARGET_DEVICE.img" "$RAW_IMG" "$SPARSE_IMG"
|
ls -lh "/images/boot-bananarchy-$TARGET_DEVICE.img" "$RAW_IMG"
|
||||||
'
|
'
|
||||||
|
|||||||
Reference in New Issue
Block a user