Hi,
I need some help on the AM335x with UniFlash.
I have managed to boot from SD card with all the required files I've customised and it has successfully run as initramfs as expected; that is
'MLO' and 'u-boot.img' in boot partition
'rootfs/boot/zImage' and 'rootfs/boot/am335x-evm.dtb' in rootfs partition
The customised zImage is around 50 Mbytes.
I was trying to see if I can flash all these files to NAND and then be able to boot from it.
I have had a look at this link
processors.wiki.ti.com/.../Sitara_Uniflash_Quick_Start_Guide
which says I will need to prepare
(1). MLO or SPL
(2). A U-boot image
(3). A kernel image (if using a Linux kernel for flashing) and associated Device Tree file
(4). debrick.scr or flasher.sh
(5). Flash Image files (contains the images to be flashed on the target board)
My question is: does (3) mean my initramfs 'zImage' file and 'am335x-evm.dtb'? and what is (5)?
Also I had a look at this link
processors.wiki.ti.com/.../Sitara_Uniflash_Flash_Programming_with_U-Boot
In the 'Prepare Image to be flashed' section, it says to bundle files below into 'flash-image.out'
(a) SPL (Secondary Program Loader) that can be named MLO, u-boot-spl.bin, etc.
(b) U-Boot image which is usually name u-boot.img.
(c) Kernal image named uImage.
(d) Root Filesystem that is usually packaged into a filesytem lik UBIFS and named rootfs.ubi or simply zipped up into a tar.gz file.
Again my question is in (c) I assume it is OK to have zImage instead as I don't have uImage? but my zImage is like 50 Mbytes and looked at the default size of 'NAND.kernel' partition is only 8 Mbytes, should I partition 'NAND.kernel' myself to make it larger? I don't have to provide in SD card though as the zImage is under the 'rootfs/boot' directory;
And for (d) I assume it's OK to provide my rootfs partition in .tar.gz compression?
Sorry I am new to all those and if my question not making sense please forgive me as it would mean I do desperately need some help...
Thanks again
George