User manual

U-Boot for MPL SBC
User Manual
2003 by MPL AG
29
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.5.2 Programming a kernel image into the flash
The location whereas the kernel image should written to, is board depending.
MIP405/PIP405:
The flash is used to store the bootloader and the unused flash memory can be used to store a kernel image.
The bootloader is programmed from address 0xFFF80000 to 0xFFFFFFFF and must not be overwritten. The
remaining flash memory depends on the populated flash. In this manual we assume to have a 4MByte flash,
which gives us 3.5MByte free flash memory (from 0xFFC00000 to 0xFFF7FFFF).
VCMA9:
The VCMA9 has a NAND Flash for application data, so the entire NAND flash can be used for Kernel Image.
3.5.2.1 Erase the flash
On a MIP405/PIP405 invoke the command:
=> erase FFC00000 FFF7FFFF
Erase Flash from 0xffc00000 to 0xfff7ffff
........................................................ done
Erased 56 sectors
=>
Please note that it is possible that you have first to unprotect the sectors. Refer to 3.3.34 protect - enable or disable
FLASH write protection for more information.
On a VCMA9 invoke the command:
=> nand erase 0 800000
NAND erase: device 0 offset 0, size 8388608 ... OK
=>
3.5.2.2 Load the image into the memory
Load the kernel image with your preferred load method to the memory. Here the example using tftpboot:
=> tftpboot 400000 mip405_multi.img
ENET Speed is 100 Mbps - HALF duplex connection
TFTP from server 192.168.3.17; our IP address is 192.168.3.37
Filename 'mip405_multi.img'.
Load address: 0x400000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
########################################################
done
Bytes transferred = 3613214 (37221e hex)
=> imi 400000
## Checking Image at 00400000 ...
Image Name: kernel and initrd for MIP405
Created: 2002-04-16 13:17:43 UTC
Image Type: PowerPC Linux Multi-File Image (gzip compressed)
Data Size: 3613150 Bytes = 3.4 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 796961 Bytes = 778.3 kB
Image 1: 2816174 Bytes = 2.7 MB
Verifying Checksum ... OK
=>