This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3359: Combining .dtb and kernel image

Part Number: AM3359

Hi,

I have a AM3359 board with NAND flash.

I am using default tisdk_am335x-evm_defconfig:

Compilation steps is as below:

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am335x-evm_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage -j4

Booting the kernel as below:


fatload mmc 0:1 0x88000000 am335x-evm.dtb
setenv bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2
fatload mmc 0:1 0x82000000 zImage
bootz 0x82000000 - 0x88000000

 

NAND flash is detected, able to make the partitions, erase & write (everything is good).

Attached: Kernel_log_two_images.txt

Next I am I am trying to combine linux image (zImage) & device tree Blob (.dtb) as below:
Below option was enabled by default:

"Boot options --->"

"Use appended device tree blob to zImage (EXPERIMENTAL)"


Used below command to merge .dtb & zImage


cat arch/arm/boot/dts/am335x-evm.dtb >> arch/arm/boot/zImage


Using this single zImage booting the kernel as below:

setenv bootargs console=ttyS0,115200n8 root=/dev/mmcblk0p2
fatload mmc 0:1 0x82000000 zImage
bootz 0x82000000


Here I am able to boot the kernel but only NAND flash is not being detected!!! I am noticing everything is okay except for NAND.
Attached: Kernel_log_single_image.txt

What is the problem with this step?
How do I combile zImage with .dtb to a single zImage OR
How do I combile uImage with .dtb to a single uImage

Regards
Srinivasa

14_Nov_2019.zip