i.MX35 PDK NAND Creating and Flashing UBIFS image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX35 PDK NAND Creating and Flashing UBIFS image

i.MX35 PDK NAND Creating and Flashing UBIFS image

Quick Steps

Four quick steps to build and flash a UBIFS image on i.MX35 NAND (K9LBG08U0D-PCB0), for information on how to you another memory, please see next section.

  1. Enable MTD_UBI and UBIFS_FS on kernel
  2. Create UBI image from rootfs (used for NFS) - ON PC
    1. mkfs.ubifs -v -r rootfs -m 2048 -e 258048 -c 966 -o ubifs.img
    2. ubinize -o ubi.img -m 2048 -p 256KiB -s 2048 ubinize.cfg
  3. Format NAND using UBI image - ON TARGET
    1. ubiformat -f ubi.img /dev/mtd8
  4. Load UBI file system
    1. load -r -b 0x100000 zImage
    2. fis create -f 0x300000 kernel
      1. fis load kernel
      2. exec -c "noinitrd console=ttymxc0 115200 ubi.mtd=8 root=ubi0:rootfs rw rootfstype=ubifs ip=none"


How To

First of all, install mtd-utils on both target and host:

Target:

./ltib -c 

Package list

[*] mtd-utils 

Host

sudo aptget install mtd-utils 


1. Enable MTD_UBI and UBIFS_FS on kernel


MTD_UBI

-> Device Drivers 
    -> Memory Technology Device (MTD) support (MTD [=y]) 
          -> UBI - Unsorted block images 
                  <*> Enable UBI 
                   (4096) UBI wear-leveling threshold (NEW) 
                   (1) Percentage of reserved eraseblocks for bad eraseblocks handling (NEW) 
                < > MTD devices emulation driver (gluebi) (NEW) 
                   ** UBI debugging options ** 
                   [ ] UBI debugging (NEW)


UBIFS_FS

-> File systems 
        ->Miscellaneous filesystems 
            <*> UBIFS file system support 
                [ ] Extended attributes support (NEW) 
                [ ] Advanced compression options (NEW) 
                [ ] Enable debugging (NEW)

2. Create UBI image

On TARGET Collect some information needed in order to create the UBI image according to your NAND device

root@freescale \~$ cat /proc/mtd 
dev:   size   erasesize name 
mtd0: 00080000 00020000 "Bootloader" 
mtd1: 00400000 00020000 "nor.Kernel" 
mtd2: 01e00000 00020000 "nor.userfs" 
mtd3: 01c00000 00020000 "nor.rootfs" 
mtd4: 00003000 00020000 "FIS directory" 
mtd5: 02001000 00020000 "Redboot config" 
mtd6: 00300000 00040000 "nand.bootloader" 
mtd7: 00500000 00040000 "nand.kernel" 
mtd8: 10000000 00040000 "nand.rootfs" 
mtd9: 00800000 00040000 "nand.configure" 
mtd10: 6f000000 00040000 "nand.userfs"

I will use mtd8, because I want the NAND rootfs MTD partition.

More on [1]

root@freescale ~$ ubiattach /dev/ubi_ctrl -m 8 
UBI: attaching mtd8 to ubi0 
UBI: physical eraseblock size:   262144 bytes (256 KiB) 
UBI: logical eraseblock size:    258048 bytes 
UBI: smallest flash I/O unit:    2048 
UBI: VID header offset:          2048 (aligned 2048) 
UBI: data offset:                4096 
UBI: empty MTD device detected 
UBI: create volume table (copy #1) 
UBI: create volume table (copy #2) 
UBI: attached mtd8 to ubi0 
UBI: MTD device name:            "nand.rootfs" 
UBI: MTD device size:            256 MiB 
UBI: number of good PEBs:        979 
UBI: number of bad PEBs:         45 
UBI: max. allowed volumes:       128 
UBI: wear-leveling threshold:    4096 
UBI: number of internal volumes: 1 
UBI: number of user volumes:     0 
UBI: available PEBs:             966 
UBI: total number of reserved PEBs: 13 
UBI: number of PEBs reserved for bad PEB handling: 9 
UBI: max/mean erase counter: 0/0 
UBI: image sequence number: 0 
UBI: background thread "ubi_bgt0d" started, PID 2098 
UBI device number


You will need:

  • -p = physical eraseblock size = 256KiB
  • -e = logical eraseblock size = 258048
  • -m = smallest flash I/O unit = 2048
  • -s = VID header offset = 2048
  • -c = available PEB = 966

Values only for iMX35 PDK NAND - K9LBG08U0D-PCB0

3. ON HOST - Now, create the images (two steps)

You need to create ubinize.cfg file!

ubinize.cfg

[ubifs] 
mode=ubi 
image=ubifs.img 
vol_id=0 
vol_size=237MiB 
vol_type=dynamic 
vol_name=rootfs 
vol_flags=autoresize

$ mkfs.ubifs -v -r rootfs -m 2048 -e 258048 -c 966 -o ubifs.img 
mkfs.ubifs 
     root:                rootfs/ 
     min_io_size:    2048 
     leb_size:         258048 
     max_leb_cnt:   966 
     output:            ubifs.img 
     jrn_size:          8388608 
     reserved:         0 
     compr:            lzo 
     keyhash:         r5 
     fanout:            8 
     orph_lebs:       1 
     super lebs:      1 
     master lebs:    2 
     log_lebs:         4 
     lpt_lebs:          2 
     orph_lebs:       1 
     main_lebs:       132 
     gc lebs:           1 
     index lebs:       2 
     leb_cnt:           142 
     UUID:              CC2057F9-B20F-46D1-A399-1FCA95DCAFF7 
Success\! 
$ ubinize -o ubi.img -m 2048 -p 256KiB -s 2048 ubinize.cfg 
$ ls -lh u* 
-rw-r--r-- 1 daiane daiane 35M 2010-11-26 15:21 ubifs.img 
-rw-r--r-- 1 daiane daiane 36M 2010-11-26 15:22 ubi.img 
-rw-r--r-- 1 daiane daiane 113 2010-11-26 15:22 ubinize.cfg 
$ sudo cp ubi.img rootfs/home/

4. Format NAND using UBI image - ON TARGET

Turn on target (or reset it) and format MTD partition

$ cd /home 
$ ubiformat -f ubi.img /dev/mtd8

5. Load UBI file system

Reset and change redboot script:

.. fis load kernel 
.. exec -c "noinitrd console=ttymxc0 115200 ubi.mtd=8 root=ubi0:rootfs rw rootfstype=ubifs ip=none"


Tags (2)
%3CLINGO-SUB%20id%3D%22lingo-sub-1125145%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX35%20PDK%20NAND%20Creating%20and%20Flashing%20UBIFS%20image%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1125145%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-382482062%22%20id%3D%22toc-hId-382482062%22%20id%3D%22toc-hId-1297696306%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EQuick%20Steps%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3C%2FP%3E%3CP%3EFour%20quick%20steps%20to%20build%20and%20flash%20a%20UBIFS%20image%20on%20i.MX35%20NAND%20(K9LBG08U0D-PCB0)%2C%20for%20information%20on%20how%20to%20you%20another%20memory%2C%20please%20see%20next%20section.%3C%2FP%3E%3COL%3E%3CLI%3EEnable%20MTD_UBI%20and%20UBIFS_FS%20on%20kernel%3C%2FLI%3E%3CLI%3ECreate%20UBI%20image%20from%20rootfs%20(used%20for%20NFS)%20-%20ON%20PC%3COL%3E%3CLI%3Emkfs.ubifs%20-v%20-r%20rootfs%20-m%202048%20-e%20258048%20-c%20966%20-o%20ubifs.img%3C%2FLI%3E%3CLI%3Eubinize%20-o%20ubi.img%20-m%202048%20-p%20256KiB%20-s%202048%20ubinize.cfg%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3CLI%3EFormat%20NAND%20using%20UBI%20image%20-%20ON%20TARGET%3COL%3E%3CLI%3Eubiformat%20-f%20ubi.img%20%2Fdev%2Fmtd8%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3CLI%3ELoad%20UBI%20file%20system%3COL%3E%3CLI%3Eload%20-r%20-b%200x100000%20zImage%3C%2FLI%3E%3CLI%3Efis%20create%20-f%200x300000%20kernel%3COL%3E%3CLI%3Efis%20load%20kernel%3C%2FLI%3E%3CLI%3Eexec%20-c%20%22noinitrd%20console%3Dttymxc0%20115200%20%3CSTRONG%3Eubi.mtd%3D8%20root%3Dubi0%3Arootfs%20rw%20rootfstype%3Dubifs%3C%2FSTRONG%3E%20ip%3Dnone%22%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3C%2FOL%3E%3C%2FLI%3E%3C%2FOL%3E%3CH1%20id%3D%22toc-hId--1424972401%22%20id%3D%22toc-hId--1424972401%22%20id%3D%22toc-hId--509758157%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH1%3E%3CH1%20id%3D%22toc-hId-1062540432%22%20id%3D%22toc-hId-1062540432%22%20id%3D%22toc-hId-1977754676%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EHow%20To%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3C%2FP%3E%3CP%3EFirst%20of%20all%2C%20install%20mtd-utils%20on%20both%20target%20and%20host%3A%3C%2FP%3E%3CP%3E%3CSTRONG%3ETarget%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E.%2Fltib%20-c%20%3C%2FPRE%3E%3CP%3EPackage%20list%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%5B*%5D%20mtd-utils%20%3C%2FPRE%3E%3CP%3E%3CSTRONG%3EHost%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Esudo%20aptget%20install%20mtd-utils%20%3C%2FPRE%3E%3CH2%20id%3D%22toc-hId-1753101906%22%20id%3D%22toc-hId-1753101906%22%20id%3D%22toc-hId--1626651146%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%3CH3%20id%3D%22toc-hId--1851303916%22%20id%3D%22toc-hId--1851303916%22%20id%3D%22toc-hId--936089672%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E1.%20Enable%20MTD_UBI%20and%20UBIFS_FS%20on%20kernel%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3CSTRONG%3E%3CBR%20%2F%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EMTD_UBI%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E-%26gt%3B%20Device%20Drivers%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26gt%3B%20Memory%20Technology%20Device%20(MTD)%20support%20(MTD%20%5B%3Dy%5D)%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26gt%3B%20UBI%20-%20Unsorted%20block%20images%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3B*%26gt%3B%20Enable%20UBI%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20(4096)%20UBI%20wear-leveling%20threshold%20(NEW)%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20(1)%20Percentage%20of%20reserved%20eraseblocks%20for%20bad%20eraseblocks%20handling%20(NEW)%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3B%20%26gt%3B%20MTD%20devices%20emulation%20driver%20(gluebi)%20(NEW)%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20**%20UBI%20debugging%20options%20**%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5B%20%5D%20UBI%20debugging%20(NEW)%0A%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%20%3CSTRONG%3EUBIFS_FS%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E-%26gt%3B%20File%20systems%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-%26gt%3BMiscellaneous%20filesystems%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3B*%26gt%3B%20UBIFS%20file%20system%20support%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5B%20%5D%20Extended%20attributes%20support%20(NEW)%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5B%20%5D%20Advanced%20compression%20options%20(NEW)%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%5B%20%5D%20Enable%20debugging%20(NEW)%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId-636208917%22%20id%3D%22toc-hId-636208917%22%20id%3D%22toc-hId-1551423161%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E2.%20Create%20UBI%20image%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3CSPAN%20class%3D%22mw-headline%22%3EOn%20TARGET%20Collect%20some%20information%20needed%20in%20order%20to%20create%20the%20UBI%20image%20according%20to%20your%20NAND%20device%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eroot%40freescale%20%5C~%24%20cat%20%2Fproc%2Fmtd%20%0Adev%3A%26nbsp%3B%26nbsp%3B%20size%26nbsp%3B%26nbsp%3B%20erasesize%20name%20%0Amtd0%3A%2000080000%2000020000%20%22Bootloader%22%20%0Amtd1%3A%2000400000%2000020000%20%22nor.Kernel%22%20%0Amtd2%3A%2001e00000%2000020000%20%22nor.userfs%22%20%0Amtd3%3A%2001c00000%2000020000%20%22nor.rootfs%22%20%0Amtd4%3A%2000003000%2000020000%20%22FIS%20directory%22%20%0Amtd5%3A%2002001000%2000020000%20%22Redboot%20config%22%20%0Amtd6%3A%2000300000%2000040000%20%22nand.bootloader%22%20%0Amtd7%3A%2000500000%2000040000%20%22nand.kernel%22%20%0A%3CSTRONG%3Emtd8%3A%2010000000%2000040000%20%22nand.rootfs%22%3C%2FSTRONG%3E%20%0Amtd9%3A%2000800000%2000040000%20%22nand.configure%22%20%0Amtd10%3A%206f000000%2000040000%20%22nand.userfs%22%0A%3C%2FPRE%3E%3CP%3EI%20will%20use%20mtd8%2C%20because%20I%20want%20the%20NAND%20rootfs%20MTD%20partition.%3C%2FP%3E%3CP%3EMore%20on%20%3CA%20class%3D%22autonumber%20external%22%20href%3D%22http%3A%2F%2Fwww.linux-mtd.infradead.org%2Ffaq%2Fubifs.html%23L_mkfubifs%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3E%5B1%5D%3C%2FA%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Eroot%40freescale%20~%24%20ubiattach%20%2Fdev%2Fubi_ctrl%20-m%208%20%0AUBI%3A%20attaching%20mtd8%20to%20ubi0%20%0AUBI%3A%20physical%20eraseblock%20size%3A%26nbsp%3B%26nbsp%3B%20262144%20bytes%20(256%20KiB)%20%0AUBI%3A%20logical%20eraseblock%20size%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%20258048%20bytes%20%0AUBI%3A%20smallest%20flash%20I%2FO%20unit%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%202048%20%0AUBI%3A%20VID%20header%20offset%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202048%20(aligned%202048)%20%0AUBI%3A%20data%20offset%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204096%20%0AUBI%3A%20empty%20MTD%20device%20detected%20%0AUBI%3A%20create%20volume%20table%20(copy%20%231)%20%0AUBI%3A%20create%20volume%20table%20(copy%20%232)%20%0AUBI%3A%20attached%20mtd8%20to%20ubi0%20%0AUBI%3A%20MTD%20device%20name%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22nand.rootfs%22%20%0AUBI%3A%20MTD%20device%20size%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20256%20MiB%20%0AUBI%3A%20number%20of%20good%20PEBs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20979%20%0AUBI%3A%20number%20of%20bad%20PEBs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%2045%20%0AUBI%3A%20max.%20allowed%20volumes%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20128%20%0AUBI%3A%20wear-leveling%20threshold%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%204096%20%0AUBI%3A%20number%20of%20internal%20volumes%3A%201%20%0AUBI%3A%20number%20of%20user%20volumes%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%20%0AUBI%3A%20available%20PEBs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20966%20%0AUBI%3A%20total%20number%20of%20reserved%20PEBs%3A%2013%20%0AUBI%3A%20number%20of%20PEBs%20reserved%20for%20bad%20PEB%20handling%3A%209%20%0AUBI%3A%20max%2Fmean%20erase%20counter%3A%200%2F0%20%0AUBI%3A%20image%20sequence%20number%3A%200%20%0AUBI%3A%20background%20thread%20%22ubi_bgt0d%22%20started%2C%20PID%202098%20%0AUBI%20device%20number%0A%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%20You%20will%20need%3A%3C%2FP%3E%3CUL%3E%3CLI%3E-p%20%3D%20physical%20eraseblock%20size%20%3D%20256KiB%3C%2FLI%3E%3CLI%3E-e%20%3D%20logical%20eraseblock%20size%20%3D%20258048%3C%2FLI%3E%3CLI%3E-m%20%3D%20smallest%20flash%20I%2FO%20unit%20%3D%202048%3C%2FLI%3E%3CLI%3E-s%20%3D%20VID%20header%20offset%20%3D%202048%3C%2FLI%3E%3CLI%3E-c%20%3D%20available%20PEB%20%3D%20966%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ffdddd%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22warning%22%3EValues%20only%20for%20iMX35%20PDK%20NAND%20-%20K9LBG08U0D-PCB0%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId--1171245546%22%20id%3D%22toc-hId--1171245546%22%20id%3D%22toc-hId--256031302%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E3.%20ON%20HOST%20-%20Now%2C%20create%20the%20images%20(two%20steps)%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CDIV%20style%3D%22background-color%3A%20%23ffffcc%3B%20padding-left%3A%2030px%3B%20width%3A%2060%25%3B%20margin-left%3A%2020%25%3B%22%3E%3CP%20class%3D%22important%22%3EYou%20need%20to%20create%20ubinize.cfg%20file!%3C%2FP%3E%3C%2FDIV%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3Eubinize.cfg%3C%2FSTRONG%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%5Bubifs%5D%20%0Amode%3Dubi%20%0Aimage%3Dubifs.img%20%0Avol_id%3D0%20%0Avol_size%3D237MiB%20%0Avol_type%3Ddynamic%20%0Avol_name%3Drootfs%20%0Avol_flags%3Dautoresize%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20mkfs.ubifs%20-v%20-r%20rootfs%20-m%202048%20-e%20258048%20-c%20966%20-o%20ubifs.img%20%0Amkfs.ubifs%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20root%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20rootfs%2F%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20min_io_size%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%202048%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20leb_size%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20258048%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20max_leb_cnt%3A%26nbsp%3B%26nbsp%3B%20966%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20output%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ubifs.img%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20jrn_size%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%208388608%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20reserved%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20compr%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20lzo%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20keyhash%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20r5%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20fanout%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%208%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20orph_lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20super%20lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20master%20lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20log_lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%204%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20lpt_lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20orph_lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20main_lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20132%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20gc%20lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%201%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20index%20lebs%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20leb_cnt%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20142%20%0A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20UUID%3A%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20CC2057F9-B20F-46D1-A399-1FCA95DCAFF7%20%0ASuccess%5C!%20%0A%24%20ubinize%20-o%20ubi.img%20-m%202048%20-p%20256KiB%20-s%202048%20ubinize.cfg%20%0A%24%20ls%20-lh%20u*%20%0A-rw-r--r--%201%20daiane%20daiane%2035M%202010-11-26%2015%3A21%20ubifs.img%20%0A-rw-r--r--%201%20daiane%20daiane%2036M%202010-11-26%2015%3A22%20ubi.img%20%0A-rw-r--r--%201%20daiane%20daiane%20113%202010-11-26%2015%3A22%20ubinize.cfg%20%0A%24%20sudo%20cp%20ubi.img%20rootfs%2Fhome%2F%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId-1316267287%22%20id%3D%22toc-hId-1316267287%22%20id%3D%22toc-hId--2063485765%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E4.%20Format%20NAND%20using%20UBI%20image%20-%20ON%20TARGET%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3C%2FP%3E%3CP%3ETurn%20on%20target%20(or%20reset%20it)%20and%20format%20MTD%20partition%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%24%20cd%20%2Fhome%20%0A%24%20ubiformat%20-f%20ubi.img%20%2Fdev%2Fmtd8%0A%3C%2FPRE%3E%3CP%3E%3C%2FP%3E%3CH3%20id%3D%22toc-hId--491187176%22%20id%3D%22toc-hId--491187176%22%20id%3D%22toc-hId-424027068%22%3E%3CSPAN%20class%3D%22mw-headline%22%3E5.%20Load%20UBI%20file%20system%3C%2FSPAN%3E%3C%2FH3%3E%3CP%3E%3C%2FP%3E%3CP%3EReset%20and%20change%20redboot%20script%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E..%20fis%20load%20kernel%20%0A..%20exec%20-c%20%22noinitrd%20console%3Dttymxc0%20115200%20ubi.mtd%3D8%20root%3Dubi0%3Arootfs%20rw%20rootfstype%3Dubifs%20ip%3Dnone%22%0A%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 03:05 AM
Updated by: