Repartitioning NAND Flash (via Yocto/ Patch)

  • Hello,


    I have built an Kernel image with a bundled initramfs, to show a bootscreen very early using Plymouth. The Kernel image is about 20 MB in size. The default partition size for the Kernel (address $Kernel in U-Boot) is 7 MB in size.


    I have repartitioned the Kernel partition using mkpart in U-Boot, by taking some memory space from the TargetFS. I made sure, the offsets and sizes of all partitions fit. When downloading and installing the Kernel image incl. initramfs to my Kernel partition, I boot into a kernel panic.


    Is there any reason behind this? I asked myself, can I not modify the partitions and its sizes inside a Yocto layer, by e.g., patching the u-boot configuration file (fsimx6.h)?


    Any hint on partitioning and making the bundled kernel image run would be helpful!


    Thank you.

  • The standard load address for the kernel is at 0x11000000 and the load address for the device tree is at 0x12000000. This has space for a kernel of up to 16 MB. If your kernel image is bigger, but you still load the device tree to 0x12000000, then the device tree will overwrite parts of the kernel and/or initramfs image. To avoid this, you have to change variable fdtaddr to 0x13000000 or similar.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

    Edited 2 times, last by fs-support_HK ().