I am currently running a keystone II EVM but we are going to be getting custom hardware in fairly soon and I wanted to be sure that I would be able to bring the board up from empty flash with my own filesystem and kernel. On the EVM i have been running a custom compiled kernel just by replacing the files in the boot partition with my uImage, and DTS, so I know they are running correctly. I am not trying to turn my kernel images, and Rootfile system into a UBI image. How I understand it now is that the EVM has three MTD partition on it, MTD0 being the bootloader (I have mine in SPI nor flash), MTD1 being U-boot params, and MTD2 being the UBI image.
Within my UBI image I should have 2? volumes. Volume 0 "boot" containing my boot monitor, uImage, and .dtb.
Volume 2 should have my rootfs. I have gotten this by extracting the .cpio.gz that came with the MCSDK release.
To create my two volumes, I put my three boot files in a directory and did a mkfs.ubifs and got a boot.img file
I did the same thing with the rootfs and go t a rootfs.img file
I then used this ubinize.cfg to create my ubi image.
[boot]
mode=ubi
image=boot.img
vol_type=dynamic
vol_id=0
vol_name=boot
vol_size=10MiB
[rootfs]
mode=ubi
image=rootfs.img
vol_id=1
vol_type=dynamic
vol_size=100MiB
vol_name=rootfs
vol_flags=autoresize
I then flashed this to the nand at the begining of the mtd2 partition.
Now when I boot I am able to load the three boot files but then I get a kernel panic. Attached is the output of the boot.
Am I missing any steps in this process? I am not very familiar with this process so I could be missing a very simple and easy step.