Project

General

Profile

UBIFS Nand Boot

Description of UBIFS
http://tree.celinuxforum.org/CelfPubWiki/KoreaTechJamboree5_kor?action=AttachFile&do=get&target=CELF_KJ5th_UBI.ppt

TI has instructions on creating and flashing a UBIFS image. Please read these instructions as this page will reference them were ever possible.
source: http://processors.wiki.ti.com/index.php/UBIFS_Support

Reference: TIs AM335x ARM Cortex-A8 Microprocessors (MPUs) Technical Reference Manual (Rev. H) Table 26-7: SYSBOOT Configuration Pins http://www.ti.com/product/am3359

Important

Kernel Notes

It is recommended to use the latest critical link 3.2 kernel when using nand. The 3.1 kernel was found to be susceptible to power loss corruption in the ubifs filesystem. mityarm-linux-3.2

For the 4.4 kernels and newer use device tree overlays to configure the correct nand. When booting from a fitimage, u-boot selects the correct overlay.

If you are using kernel 4.4+, make sure fitImage's size is less than the NAND space designated for the kernel (via menuconfig subtraction of interfaces), 5MB.

Testing ECC bitflip correction

UBoot/MLO Version Notes

It is recommended that the version of UBoot be U-Boot 2013.10-g6c6a700 (Nov 20 2013 - 16:56:02) or newer. These files can be found from the following wiki (https://support.criticallink.com/redmine/projects/armc8-platforms/wiki/Creating_an_SD_Card) page.

Ubuntu packages

$ sudo apt-get install mtd-utils

Boot Config Pins

NOTE: When switching boot pins, you need to cycle power for changes to be detected. Hitting the reset button will not work.

  • To boot from Nand: Pins 2,3,8,9,10,11
    BOOTCONFIG [0..11]
    ::[:][:]::::[:][:][:][:]
    
  • To boot from MMC: Pins 3 Note: Pins 8-11 can be on or off
    BOOTCONFIG [0..11]
    :::[:]::::::::
    

Choose the following wiki page based on your modules nand size, for valid partition and commands

256MB NAND UBIFS Nand Boot

512MB NAND UBIFS Nand Boot

1GB NAND UBIFS Nand Boot

Saving uImage on ubifs partition

http://support.criticallink.com/redmine/boards/28/topics/2893?r=3199#message-3199

Pros: Give ubifs more space for wear leveling and bad block handling.
Cons: Slows down boot time.

TODO: Create guide using instructions from forum post.

Go to top
Add picture from clipboard (Maximum size: 600 MB)