Hi,
I had been trying to flash the Jellybean filesystem into the NAND memory. To start things off, I think I will tell what I already know (from my past experience, it's better if I ask like this, so please bear with me as I only have little knowledge in working on flashing or board like this):
- Firstly, I know we need mkfs.ubifs to create the ubifs.img. The thing is I don't know where to get the appropriate mtd-utils in order to use the -F option which is very important for --space-fixup. It's best if you can provide a simple way to setup mtd-utils as I tried sudo apt-get install mtd-utils but that one is version 1.3 where -F is not supported. (I'm using Ubuntu 10.04 as the host)
- Please do check if the following command is correct.
mkfs.ubifs -q -r <extracted rootfs dir from prebuilt-image> -F -m 2048 -e 129024 -c 2047 -o ubifs.img
- Secondly, we need ubinize to turn ubifs.img to ubi.img.
ubinize -o ubi.img -m 2048 -p 128KiB -s 2048 ubinize.cfg
- In case it's important, the following is the ubinize.cfg
[ubifs]
mode=ubi
image=ubifs.img
vol_id=0
vol_size=256MiB
vol_type=dynamic
vol_name=rootfs
vol_alignment=1
vol_flags=autoresize
- Other than that, I can use tftp to transfer the ubi.img to u-boot and can flash files without problem except one. I seems to have a bad sector on the NAND memory at 0x780000 which is the mtdblock7, can the kernel still get the filesystem if the case is like this or we can flash it at 0x800000 maybe?
- Lastly, after we done the flashing, if successfully flashed. How do we configure the environment in order to boot properly. I know the switch configuration on the AM335x board already, just that I not sure with the parameter in the u-boot such as bootargs.
Hope to hear from your side soon. Thank you.
Best regards,
Benz