imx515 u-boot 2013

cancel
Showing results for 
Search instead for 
Did you mean: 

imx515 u-boot 2013

436 Views
wysockilukasz
Contributor II

Hello,

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 imximage.cfg:

BOOT_FROM       nor

in configuration file: mx51evk.h

CONFIG_SYS_TEXT_BASE = 0xB0000000

#define CONFIG_SYS_FLASH_CFI

#define CONFIG_FLASH_CFI_DRIVER

#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

or I miss something in the configuration file?
Hardware configuration for booting from Parrallel Nor Flash (Fuse bits)  is in 100% correct.

I will be grateful for your help
Lukas

0 Kudos
3 Replies

93 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

    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 distclean

make mx51_bbg_config (or make mx51_bbg_android_config)

make

    <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 !

Regards,

Weidong


0 Kudos

93 Views
wysockilukasz
Contributor II

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

I place u-boot.imx at the beginning of the flash memory (0xb0000000)

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.

Regards,

Lukas

P.s.

The mx51_bbg doesn't have this type of memory.

0 Kudos

93 Views
fabio_estevam
NXP Employee
NXP Employee

Make sure u-boot.imx is flashed at offset 0x1000 of your NOR flash.

Regards,

Fabio Estevam

0 Kudos