a6lte-kvm
a6lte-kvm copied to clipboard
I have unpacked and repacked the files contained inside your boot.img file. Did I do everything correct or not ?
Hello,
I have unpacked and repacked files from your boot.img file. I have unpacked the files stored inside this boot.img file :
https://github.com/raspiduino/a6lte-kvm/releases/download/0.01/boot.tar
and I've used a tool called "unpackbootimg" that I've got from this link :
https://github.com/osm0sis/mkbootimg
this is how I have extracted the files from the boot.img file :
# /mnt/zroot2/zroot2/OS/Android-KVM/Galaxy-A6/osm0sis-mkbootimg# mkdir boot
# ./unpackbootimg -i /mnt/zroot2/zroot2/OS/Android-KVM/Galaxy-A6/Boot-Files/boot-orig.img -o boot
this is what happened :
ANDROID! magic found at: 0
BOARD_KERNEL_CMDLINE androidboot.selinux=permissive
androidboot.selinux=permissive
BOARD_KERNEL_BASE 0x10000000
BOARD_NAME SRPRA31B008KU
BOARD_PAGE_SIZE 2048
BOARD_HASH_TYPE sha1
BOARD_KERNEL_OFFSET 0x00008000
BOARD_RAMDISK_OFFSET 0x01000000
BOARD_SECOND_OFFSET 0x00f00000
BOARD_TAGS_OFFSET 0x00000100
BOARD_OS_VERSION 10.0.0
BOARD_OS_PATCH_LEVEL 2021-03
BOARD_DT_SIZE 509952
then I have removed the old kernel and I have replaced it with a new kernel re-compiled by me,where I have enabled KVM. At this point,I have repacked the files previously extracted and this is how I did that :
cd /mnt/zroot2/zroot2/OS/Android-KVM/Galaxy-A6/Boot-Files/boot/
mkdir ./ramdisk
cd ./ramdisk/
gzip -dc ../boot.img-ramdisk.gz | cpio -imd
find . ! -name . | LC_ALL=C sort | cpio -o -H newc -R root:root | gzip > ../new-boot.img-ramdisk.gz
mkbootimg
--kernel ./boot.img-kernel
--ramdisk ./new-boot.img-ramdisk.gz
--dtb ./boot.img-dt
--cmdline "$(cat ./boot.img-cmdline)"
--base "$(cat ./boot.img-base)"
--kernel_offset "$(cat ./boot.img-kernel_offset)"
--ramdisk_offset "$(cat ./boot.img-ramdisk_offset)"
--second_offset "$(cat ./boot.img-second_offset)"
--os_version ./boot.img-os_version
--os_patch_level ./boot.img-os_patch_level
--tags_offset "$(cat ./boot.img-tags_offset)"
--board ./boot.img-board
--pagesize "$(cat ./boot.img-pagesize)"
--output ./new-boot.img
I would like to know if I did everything correctly. I didn't see any error,but I'm not sure to have done the whole procedure correctly. Thanks.