Skip to content

iMX31: Add iMX31 support to boots from NAND

Alan Carvalho de Assis u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 of 3 patches 0 repliesNew

1 of 3 patches is in this archive. The cover letter announces 3.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3iMX31: Reducing start.S size to let boot from NAND+0 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.