[U-Boot-Users] configuring

Peter Pearse Peter.Pearse at arm.com
Fri Jul 22 18:02:10 CEST 2005


Dupas.External at infineon.com wrote:
> -setenv bootargs "setenv bootargs root=/dev/mtdblock0
> mtdparts=armflash.0:0x65d000 at 0x2200000(cramfs) ip=none mem=128
> console=ttyAMA0 video=vc:1-2clcdfb:"  
> 
> my cramfs is in flash at address 0x341c0000 while the basis of my
> flash memory is 0x34000000. 

mtdparts is size in bytes @offset from flash base so for 

0x341c0000 it will be 

mtdparts=armflash.0:<some byte size>@0x1c0000(cramfs)

The ARM boot monitor will show you the size:

ARM Versatile/PB926EJ-S Boot Monitor
Version:    V2.0.1
Build Date: Nov 30 2004
Endian:     Little
> flash
Flash> list images
Flash Area Base 0x34000000

Address     Name
-------     ----
0x34000000  u-boot
0x34040000  eabi26arm

Flash> display image u-boot

Name: u-boot

Flash Address: 0x34000000
Load Address : 0x00000000
Entry Point  : 0x00000000
Size         : 79396 Bytes
Blocks Used  : 1
Flash> display image eabi26arm

Name: eabi26arm

Flash Address: 0x34040000
Load Address : 0x00000000
Entry Point  : 0x00000000
Size         : 2418640 Bytes
Blocks Used  : 10
Flash> 

Peter




More information about the U-Boot mailing list