[U-Boot] How to specific where to extract the linux kernel and romfs file system

Szentpétery István szempy at gmail.com
Fri Apr 10 10:44:25 CEST 2009


Hello

I'm having some trouble whit Micro-Blox LPC 2478.
I'm loading uLinux.bin to the flash address 80000000 and cramfs.img to
the addres 80200000.
This is oke but when it extracts to the ram i suppose then its starts
at address a1500000 for the linux and at address a1800000 for the
romfs.img but the romfs image is more than 2 mbyte because the ram is
only 32 mbyte so it doesn't fit in the ram.
How can i change where to extract the linux kernel and the file
system, and mount to linux ?
Thanx.

**********************************************
*        LPC2478 Micro-Blox Board from       *
*             Future Electronics             *
*                Version: 1.0                *
**********************************************
Booting (may take some time)...

U-Boot 1.1.6 (Feb  7 2009 - 17:03:58)
DRAM:  32 MB
Flash:  4.5 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
LPC2478_Micro-Blox # print
bootdelay=3
baudrate=115200
tftp_boot=tftpboot a1500000 uLinux.bin;tftpboot a1800000 romfs.img;bootm a150000
0
nor_boot=bootm 80000000
mmc_boot=mmc;fatload mmc 0 a1500000 uLinux.bin;fatload mmc 0 a1800000 romfs.img;
bootm a1500000
update_uboot=tftpboot a1000000 u-boot.bin;protect off 0 2ffff;erase 0 2ffff;cp.b
 a1000000 0 $(filesize)
update_nor=erase bank 2;tftpboot a0000000 uLinux.bin;cp.b $(fileaddr) 80000000 $
(filesize);tftpboot a0000000 cramfs.img;cp.b $(fileaddr) 80200000 $(filesize)
alt_bootargs=root=/dev/ram initrd=0xa1800000,4000k console=ttyS0,115200N8
ethaddr=00:1a:f1:00:00:00
bootcmd=bootm 80000000
update_nor2=erase bank 2
bootargs=root=/dev/mtdblock1 console=ttyS0,115200N8
stdin=serial
stdout=serial
stderr=serial
filesize=11a000
fileaddr=A0000000
gatewayip=192.168.0.1
netmask=255.255.255.0
ipaddr=192.168.0.211
serverip=192.168.0.107

Environment size: 854/4092 bytes
LPC2478_Micro-Blox #

**********************************************
*        LPC2478 Micro-Blox Board from       *
*             Future Electronics             *
*                Version: 1.0                *
**********************************************
Booting (may take some time)...

U-Boot 1.1.6 (Feb  7 2009 - 17:03:58)
DRAM:  32 MB
Flash:  4.5 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at 80000000 ...
   Image Name:   Linux 2.6.21
   Image Type:   ARM Linux Kernel Image (gzip compressed)
   Data Size:    1107660 Bytes =  1.1 MB
   Load Address: a0008000
   Entry Point:  a0008000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

ýLinux version 2.6.21-uc0 (szempy at localhost.localdomain) (gcc version 3.4.4) #7
Thu Apr 9 11:42:55 EEST 2009
CPU: NXP-LPC2478 [1701ff35] revision 5 (ARMv4), cr=a0232040
Machine: Future Electronics LPC2478 Micro-Blox Board
Ignoring unrecognised tag 0x00000000
Built 1 zonelists.  Total pages: 8128
Kernel command line: root=/dev/mtdblock1 console=ttyS0,115200N8
PID hash table entries: 128 (order: 7, 512 bytes)
LPC2XXX Clocking Fin=12000000Hz Fcco=288000000Hz M=11 N=0
Fcclk=72000000 PCLKSEL=55515555 11555455
Console: colour dummy device 80x30
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 30132KB available (2012K code, 224K data, 104K init)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xe000c000 (irq = 6) is a 16550A
serial8250.0: ttyS1 at MMIO 0xe0010000 (irq = 7) is a 16550A
serial8250.0: ttyS2 at MMIO 0xe0078000 (irq = 28) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
lpc2xxx_eth_probe
lpc2xxx_eth_setup
get_mac_address ethaddr=00:1a:f1:00:00:00
eth0: Link down.
eth0: LPC2xxx ethernet at 0xffe00000 int=21 10-HalfDuplex (00:1a:f1:00:00:00)
eth0: National DP83640 PHY at 1
Found: SST 39VF6401
lpc24xx-ea-flash: Found 1 x16 devices at 0x0 in 16-bit bank
number of JEDEC chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Creating 2 MTD partitions on "lpc24xx-ea-flash":
0x00000000-0x00200000 : "kernel"
0x00200000-0x00800000 : "rootfs"
lpc2xxx-spi lpc2xxx-spi: registering nl2432hcc-41k
lpc24xx-ohci lpc24xx-ohci: LPC24xx OHCI
lpc24xx-ohci lpc24xx-ohci: new USB bus registered, assigned bus number 1
lpc24xx-ohci lpc24xx-ohci: irq 22, io mem 0xffe0c000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
lpc2xxx-rtc lpc2xxx-rtc: rtc core: registered lpc2xxx-rtc as rtc0
lpc2xxx-rtc: RTC driver for NXP LPC2XXX.
i2c /dev entries driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 15
lpc2xxx-rtc lpc2xxx-rtc: hctosys: invalid date/time
VFS: Mounted root (cramfs filesystem) readonly.
serial_link_irq_chain irq=6 00000000
serial_link_irq_chain request_irq(6,...)
cramfs: bad compressed blocksize 4293812255
cramfs: bad compressed blocksize 4293832399
cramfs: bad compressed blocksize 4293833299


More information about the U-Boot mailing list