-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
when successfully boot into lineageos, use adb shell to check the location of fdt binary.
ls -la /sys/firmware/fdt
get the fdt binary by below:
adb pull /sys/firmware/fdt joyeuse.dtb
this is useful now.
use this binary to replace the one of boot.img
then
mkdir ramdisk && cd ramdisk && gunzip -c ../ramdisk.img | cpio -idmv && cp fstab.qcom fstab.default && find . | cpio -o -c -R root:root | gzip -9 > ../new_ramdisk.img.gz
You can test it by using fastboot either of board bootloader stage or in u-boot fastboot stage. Test it and find it boot success.
and make use of mkbootimg kind of tool to recomposed into a new_boot.img. test again with fastboot boot CMD on board bootloader and uboot fastboot stage
If init complain missing fstab in first init stage then repeat above but cp fstab.qcom /first_stage_ramdisk/fstab.default
https://source.android.com/docs/core/architecture/partitions/ramdisk-partitions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels