I'm porting u-boot 2013 for my custom board with imx51.
In U-boot from Freescale (2009) I had one u-boot.bin file,
I had to put it at the beginning of parallel NOR flash memory (TEXT_BASE = 0xB0000000).
Now (U-boot 2013) I have two files: u-boot.imx and u-boot.bin.
When I boot from sd cart I use *.imx file (everything works fine and what is important for the rest -> u-boot sees a flash memory, for example, I can use "flinfo",
so I assume that the basic configuration is correct ),
but when I tried to boot from NOR Flash (using *.imx file at the start of NOR flash memory -> 0xB0000000) device does not respond.
Compared to the configuration for SD I changed:
in configuration file: mx51evk.h
CONFIG_SYS_TEXT_BASE = 0xB0000000
#define CONFIG_SYS_FLASH_BASE 0xB0000000
#define CONFIG_SYS_FLASH_SIZE 1024
#define CONFIG_SYS_FLASH_PROTECTION 1
#define CONFIG_SYS_MAX_FLASH_BANKS 1
#define CONFIG_SYS_MAX_FLASH_SECT 2053
#define CONFIG_ENV_IS_IN_FLASH 1
#define CONFIG_ENV_SIZE (8*1024)/*0x40000
#define CONFIG_ENV_OFFSET (6 * 64 * 1024)
So I wonder if maybe I'm using wrong file, or can I put it with some offset
The evaluation board released by freescale is imx51_bbg board. you should add source code of nor flash in mx51_bbg_android.h(for android) or mx51_bbg.h(for linux), while compiling , you should run :
make mx51_bbg_config (or make mx51_bbg_android_config)
<note: if you want to use MFG Tool to burn images into flash on board, you also need to modiy mx51_bbg_mfg.h, and compile a u-boot.bin for MFG Tool OS Firmware>
check them please !
Thanks for respond,
I have imx51evk evaluation board and also I used u-boot source code for this board to mu project.
I ported U-boot 2013 from imx51evk to my custom board -> U-boot and device works,
but I have probelm when trying booting from parrallel Nor Flash.
All fuse bits are set and tested (for booting from Nor Flash).
but there is no respons form device.
So I wonder if maybe I should place file with some offset or should use some magic configuration?
I can't find any example with mx51 and Nor Flash, I trying to folow on the mx31ads.h
I do not use MGFtools but Lauterbach Jtag.
The mx51_bbg doesn't have this type of memory.