i.mx28 install on singlechip NAND by Mfgtools, linux.sb divide to two files uboot.sb and uImage to download

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

i.mx28 install on singlechip NAND by Mfgtools, linux.sb divide to two files uboot.sb and uImage to download

1,073 Views
john_cheng
Contributor I

<LIST name="Singlechip NAND" desc="Install on singlechip NAND">

<CMD type="boot" body="Recovery" file="updater.sb" timeout="60" if="HabDisable">Booting update firmware.</CMD>

<CMD type="boot" body="Recovery" file="updater_ivt.sb" timeout="60" if="HabEnable">Booting update firmware.</CMD>

<CMD type="find" body="Updater" timeout="180"/>

<CMD type="push" body="mknod class/mtd,mtd0,/dev/mtd0"/>

<CMD type="push" body="mknod class/mtd,mtd1,/dev/mtd1"/>

<CMD type="push" body="mknod class/misc,ubi_ctrl,/dev/ubi_ctrl"/>

<!-- UBI image support

* If the user has ubi image, he can use below command to program ubi image to certain mtd device.

* <CMD type="push" body="pipe ubiformat /dev/mtdX -y -f - -S @FILESIZE" file="files/ubi.img">Sending and writting rootfs</CMD>

*

* If @FILESIZE is not supported at host tool, please replace it with real file size in byte.

-->

<!--

****************************TAKE CARE************************************

* Adding below line if the user wants to erase all blocks including bad blocks.

* Users may use this option only when the bad block flag is changed between two

* operations, like the first operation is for WinCE, and the second opertion is for

* Linux.

* Besides, ONLY adding below line at R&D periods, as this may will cause the whole

* Nand chip unstable.

*

* echo 1 > /sys/devices/platform/gpmi-nfc.0/ignorebad

*

-->

<CMD type="push" body="$ flash_eraseall /dev/mtd0">Erasing rootfs partition</CMD>

<CMD type="push" body="$ flash_eraseall /dev/mtd1">Erasing rootfs partition</CMD>

<!--

****************************TAKE CARE************************************

* If the user sets ignorebad flag above, please clear it here

* echo 0 > /sys/devices/platform/gpmi-nfc.0/ignorebad

*

-->

<CMD type="push" body="send" file="files/imx28_ivt_linux.sb">Sending firmware</CMD>

<CMD type="push" body="$ kobs-ng init $FILE">Flashing firmware</CMD>

<CMD type="push" body="$ ubiattach /dev/ubi_ctrl -m 1 -d 0">Attaching UBI partition</CMD>

<CMD type="push" body="mknod class/ubi,ubi0,/dev/ubi0"/>

<CMD type="push" body="$ ubimkvol /dev/ubi0 -n 0 -N rootfs0 -s 256000000">Creating UBI volumes</CMD>

<CMD type="push" body="$ ubimkvol /dev/ubi0 -n 1 -N data -s 128000000">Creating UBI volumes</CMD>

<CMD type="push" body="$ mkdir -p /mnt/ubi0; mount -t ubifs ubi0_0 /mnt/ubi0" />

<CMD type="push" body="pipe tar -jxv -C /mnt/ubi0" file="files/rootfs.tar.bz2">Transfer rootfs</CMD>

<CMD type="push" body="frf">Finish Flashing NAND</CMD>

<CMD type="push" body="$ umount /mnt/ubi0">Unmounting</CMD>

<CMD type="push" body="$ echo Update Complete!">Done</CMD>

<!--

    The below commands will trigger reboot

    <CMD type="push" body="!3">Done</CMD>

-->

</LIST>

Dear All,

              i have a customer download code to Nandflash, but there is only one linux.sb, athough it include two files uboot.sb and uImage,

but when it boot up, i can't access to the uboot console, so is there a ucl.xml script can download uboot.sb and uImage alonely on the Nandflash.

Best Regards,

Labels (1)
Tags (1)
0 Kudos
3 Replies

613 Views
igorpadykov
NXP Employee
NXP Employee

Hi John

Freescale BSP (below) supports only two bootstreams (linux.sb, uboot.sb)

other configurations are not supported

i.MX28 Evaluation Kit|Freescale

I am not aware of efforts supporting "download uboot.sb and uImage"

with NAND, seems this can be supported only with NFS.

Actually for such task one needs to add NAND support to i.MX28 Uboot, which

could be not-trivial.

Best regards

igor

0 Kudos

613 Views
john_cheng
Contributor I

hi,

     but if i use the official config on Nandflash, how can i enter the uboot console?

Best Regards,

0 Kudos

613 Views
igorpadykov
NXP Employee
NXP Employee

with nand you can boot linux.sb or uboot.sb.

0 Kudos