User manual
U-Boot for MPL SBC
User Manual
2003 by MPL AG
30
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.5.2.3 Write the image into the flash
On MIP405/PIP405 use the command cp to copy the image into the flash. Refer to the chapter 3.3.8 cp - memory copy
for more information:
=> cp.b 400000 ffc00000 $filesize
Copy to Flash... .......................................................done
=> imi ffc00000
## Checking Image at ffc00000 ...
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
=>
On a VCMA9 you have to use the command nand write.jffs2 to write the image to the nand flash. Refer to chapter 3.3.29
nand - NAND sub-system for more information:
=> nand write.jffs2 33000000 0 $filesize
NAND write: device 0 offset 0, size 778465 ... 778465 bytes write: OK
=>
3.5.2.4 Booting the flashed kernel
Prior to booting the kernel, you may have to change/set the bootargs:
Example PIP405:
=> setenv bootargs video=ctfb:mode:0,depth:8, root=/dev/ram0 ide=nodma
=> printenv bootargs
bootargs=console= video=ctfb:mode:0,depth:8, root=/dev/ram0 ide=nodma
=> saveenv
On a MIP405/PIP405 you can directly issue the bootm command to boot the image:
=> bootm ffc00000
## Booting image at ffc00000 ...
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:
Verifying Checksum ... OK
Uncompressing Multi-File Image ... OK
Loading Ramdisk to 07cd6000, end 07f858ae ... OK
Linux version 2.4.18-rc1-yard-boot (root@m05denis) (gcc version 2.95.3 20010315 (r
elease)) #3 Thu Apr 11 11:23:27 Local time zone must be set--see zic manual page 2
On a VCMA9 you must invoke the command nboot. See also chapter 3.3.30 nboot - boot from NAND device.
=> nboot 33000000 0
Loading from device 0: <NULL> at 0x4E000000 (offset 0x0)
Image Name: Linux-2.4.19-rmk4-swl6-dm1
Created: 2003-04-17 14:49:55 UTC
Image Type: ARM Linux Kernel Image (gzip compressed)
Data Size: 778401 Bytes = 760.2 kB
Load Address: 30008000
Entry Point: 30008000
=>
Then the kernel can be started with bootm:
=> bootm 33000000