Hi Everyone!
I am trying to boot custom kernel. At first step I build everything (Image, dtb, dt.img and boot-db410.img) without modification. If I use the original initrd.img for creating the boot image everything is working fine, BUT if I build the modules and install/copy them into the initrd.img, the created boot.img does not start.
Even the size of the new boot.img becomes huge (~108MB).
Commands used:
make defconfig distro.config
make -j8 Image dtbs KERNELRELEASE=4.9.30-linaro-lt-qcom
make -j8 modules KERNELRELEASE=4.9.30-linaro-lt-qcom
make KERNELRELEASE=4.9.30-linaro-lt-qcom modules_install INSTALL_MOD_PATH=…/temp_folder
zcat …/kernel/initrd.img-4.9.30-linaro-lt-qcom | cpio -idmv //to extract the initrd image
Copy the installed modules from the temp_folder (…/lib/modules/) to the extracted file system.
find . | cpio -o -c | gzip -9 > /boot/initrd.img-4.9.30-linaro-lt-qcom //to repack everything
after that I am creating the boot-db410.img again
./skales/mkbootimg --kernel arch/arm64/boot/Image --ramdisk initrd.img-4.9.30initrd.img-4.9.30-linaro-lt-qcom-linaro-lt-qcom --output boot-db410c.img --dt dt.img --pagesize 2048 --base 0x80000000 --cmdline “root=/dev/disk/by-partlabel/rootfs rw rootwait console=ttyMSM0,115200n8”
The size of the new boot image is 108,1 MB.
after the command
sudo fastboot boot boot-db410.img
I am getting the following output on the serial consol:
[41100] [41100] fastboot: download:0671b800
[45540] [45540] fastboot: boot
[45540] [45540] DTB Total entry: 5, DTB version: 3
[45550] [45550] Using DTB entry 0x000000f7/00000000/0x00000018/0 for device 0x000000f7/00010000/0x00010018/0
[45560] [45560] Using pmic info 0xb/0x0/0x0/0x0 for device 0x2000b/0x0/0x0/0x0
[45610] [45610] data abort, halting
[45610] [45610] r0 0x85a00000 r1 0x94b7b810 r2 0x01c77e4b r3 0x1317b800
[45610] [45610] r4 0x2a7a0601 r5 0xa48e7083 r6 0xc676270b r7 0x5a929ad9
[45610] [45610] r8 0x0107b000 r9 0x90100000 r10 0x0107b000 r11 0x90100800
[45610] [45610] r12 0x00000001 usp 0x00000000 ulr 0x00000000 pc 0x8f629a28
[45610] [45610] spsr 0x20000153
What am I doing wrong?
Could be a config file problem?
Any comment is welcomed.
Attila