Skip to content

prepare a standalone dtb file for boot u-boot #5

@99degree

Description

@99degree

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions