Skip to contentSkip to conversation

iMX31: Add iMX31 support to boots from NAND

PATCH New Alan Carvalho de Assis 2 participants 3 messages Oct 7, 2008 – Oct 22, 2008

lore
Share & tools
lore
#0 lore raw

cover 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.

#2 lore raw

PATCH 1/3 iMX31: Reducing start.S size to let boot from NAND

Quoted 10 lines · Alan Carvalho de Assis
Quoted 1 line

From eeb4a71a3565098ba43aeb83be163731065a039d Mon Sep 17 00:00:00 2001

From: Alan Carvalho de Assis <[email protected]>
Date: Sun, 5 Oct 2008 19:57:22 -0300
Subject: [PATCH] iMX31: Reducing start.S size to let boot from NAND

iMX31 NAND Flash Controller has a 2KB RAM buffer, but the current start.S file is too much big to let NAND copy routine to fit in. This patch will reduce the start.S when booting from NAND Flash.

Quoted 4 lines
---
 cpu/arm1136/start.S |   24 ++++++++++++++++++++++--
 1 files changed, 22 insertions(+), 2 deletions(-)

Please rebase against u-boot-arm/mater and fix whitespace otherwise ACK

when this code will be merge could you rebase the other IMX31 patch set too to have it applied

Best Regards,
J.