[U-Boot] [PATCH 0/3] iMX31: Add iMX31 support to boots from NAND

Alan Carvalho de Assis acassis at gmail.com
Tue Oct 7 20:01:04 CEST 2008


This serie of patches adds support to iMX31PDK board to boot directly from NAND.
Notice these patches don't add support to MTD NAND Flash support to U-Boot
(like reading and saving environment parameters in Flash because MTD NAND Flash
driver still needs further revision).


For people willing to test it follow these simple steps:

Create a local copy of u-boot-arm/testing:
$ git clone git://git.denx.de/u-boot-arm-next.git u-boot-arm
$ cd u-boot-arm
$ git checkout -b local_test origin/testing

Apply patches:
$ patch -p1 < ../0001-iMX31-Reducing-start.S-size-to-let-boot-from-NAND.patch
$ patch -p1 < ../0002-iMX31-Add-support-to-copy-NAND-Flash-code-to-RAM.patch
$ patch -p1 < ../0003-iMX31-Add-support-to-iMX31PDK-board-and-let-it-boot.patch

Set up your cross-compile (we are using one from LTIB):
$ export PATH="$PATH:/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/bin/"
$ export CROSS_COMPILE=arm-none-linux-gnueabi-

Compile U-Boot to iMX31PDK board:
$ make mx31pdk_config
$ make

Flash u-boot.bin to NAND flash (we are using ATK to do that)es doesn't
add U-Boot support to erase/write on NAND.

These patches will be applied against u-boot-arm/testing, against
Magnus Lilja patches.


Thanks to Kenneth Johansson about the idea to reduce start.S size.

Thanks very much to Magnus Lilja and Fabio Estevam for all the help
testing these patches.


More information about the U-Boot mailing list