[#4978] Building Nor flash uboot ldr image fails on svn trunk 2008.10

Document created by Aaronwu Employee on Sep 25, 2013
Version 1Show Document
  • View in full screen mode

[#4978] Building Nor flash uboot ldr image fails on svn trunk 2008.10

Submitted By: Sonic Zhang

Open Date

2009-03-11 05:27:59     Close Date

2010-01-14 02:19:51

Priority:

Medium     Assignee:

Sonic Zhang

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2009R1     Status:

Closed

Board:

Ezbrd     Processor:

BF518

Silicon Revision:

0.0     Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: Building Nor flash uboot ldr image fails on svn trunk 2008.10

Details:

 

toolchain version 09R1-RC2.

uboot SVN rev. 1698

 

bfin-uclinux-objcopy -O srec u-boot u-boot.srec

bfin-uclinux-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin

tools/envcrc common/env_common.o --binary > env-ldr.o

bfin-uclinux-ldr -T bf518-0.0 -c u-boot.ldr u-boot -J --bmode PARA --use-vmas --initcode cpu/blackfin/initcode.o --punchit $((0x4000)):$(()):env-ldr.o

Creating LDR u-boot.ldr ...

Adding DXE 'u-boot' ... [initcode 260] [ELF block: 151064 @ 0x03FA0000] bfin-uclinux-ldr: filler file was bigger than the requested hole size

 

Backtrace:

bfin-uclinux-ldr[0x8049e6a]

bfin-uclinux-ldr[0x804f44c]

bfin-uclinux-ldr[0x804c0c1]

bfin-uclinux-ldr[0x804ca4a]

bfin-uclinux-ldr[0x804ab96]

bfin-uclinux-ldr[0x804af17]

/lib/libc.so.6(__libc_start_main+0xdc)[0x40077f9c]

bfin-uclinux-ldr(wait+0x3d)[0x80495b1]

make: *** [u-boot.ldr] Error 1

 

Follow-ups

 

--- Mike Frysinger                                           2009-03-11 05:36:22

builds fine for me and the nightly builds

 

look at the env-ldr.o file to make sure it was generated correctly ... it

certainly should not be larger than 16k

 

--- Sonic Zhang                                              2009-03-11 05:52:51

I find the root cause is that CONFIG_ENV_SIZE is not defined for non SPI boot.

 

CONFIG_ENV_SIZE is used in "blackfin_config.mk".

LDR_FLAGS += --punchit

$$(($(CONFIG_ENV_OFFSET))):$$(($(CONFIG_ENV_SIZE))):$(obj)env-ldr.o

 

 

 

#if (CONFIG_BFIN_BOOT_MODE == BFIN_BOOT_SPI_MASTER)

#define CONFIG_ENV_IS_IN_SPI_FLASH

#define CONFIG_ENV_OFFSET                 0x10000

#define CONFIG_ENV_SIZE                   0x2000

#define CONFIG_ENV_SECT_SIZE              0x10000

#else

#define CONFIG_ENV_IS_IN_FLASH

#define CONFIG_ENV_OFFSET                 0x4000

#define CONFIG_ENV_ADDR                   (CFG_FLASH_BASE + CONFIG_ENV_OFFSET)

#define CONFIG_ENV_SECT_SIZE              0x2000

#endif

#

 

--- Mike Frysinger                                           2009-03-11 06:38:42

no bf518f-ezbrd has been made yet where the nor flash works, so even if this

compiled, it couldnt be tested/released

 

--- Sonic Zhang                                              2009-03-11 23:32:17

I just tested the nor flash uboot.ldr on the new bf518f-ezbrd v0.2 after fix

this bug manually.

 

--- Sonic Zhang                                              2009-03-12 03:16:00

Fixed.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes