I am writing a custom uboot bootloader for the IMX6ULL colibri, and want to write it to the NAND flash from linux itself.
I know that I could use the Toradex EZ installer for this, but I want to manually be able to do this as well. What is the recommended procedure for this?
- Do I need imx-kobs/ kobs-ng for this or not?
The mtds in linux look like this:
root@signco-baseboard:/# cat /proc/mtd dev: size erasesize name mtd0: 00080000 00020000 "mx6ull-bcb" mtd1: 00180000 00020000 "u-boot1" mtd2: 00180000 00020000 "u-boot2" mtd3: 00080000 00020000 "u-boot-env" mtd4: 1fc00000 00020000 "ubi" root@signco-baseboard:/#
And if I take a look at mtd1 and mtd2, it is clear u-boot is there at a 1kB offset.
The question is, is it OK for me to simply update these MTD partitions with my new uboot or not?
(The only reason I can think of that this is not OK, is that in the boot block (in BCB) the exact uboot size was passed along, which could lead to the IMX6ULL not fully copying all data into memory before booting.
Thanks in advance for your reply.