User manual
U-Boot for MPL SBC
User Manual
2003 by MPL AG
28
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.5 Procedures
3.5.1 Updating the bootloader
To update the U-Boot you need a new U-Boot image, which is available on www.mpl.ch. The image may be in a zipped
file containing 3 different file format:
• u-boot-X.Y.Z-BOARD_zip.img
This is a compressed bootloader image file.
• u-boot-X.Y.Z-BOARD.img
This is a uncompressed bootloader image file. It is only used for boards with the ppcboot version < 1.1.3
• u-boot-X.Y.Z-BOARD.bin
This is a raw binary file which is only used to reprogram a badly programmed flash.
The U-Boot update is parted in 2 steps:
• load the image in the memory
• program the flash.
Warning: It may happen, that the environment variables are corrupted after an Update. Therefore it is a good
idea to invoke first the command:
=> printenv
and write the important variables down. At least the variables serial# and ethaddr must be
rewritten to the environment, if the variables are corrupted after an Update.
3.5.1.1 Load the image in the memory
To load the image in the memory choose your preferred load method (tftp, usb, floppy, serial etc) and use the
appropriate load command.
Example with tftpboot:
=> tftpboot 400000 u-boot-0.4.0-MIP405_zip.img
ENET Speed is 100 Mbps - HALF duplex connection
ARP broadcast 1
TFTP from server 192.168.3.17; our IP address is 192.168.3.37
Filename 'u-boot-0.4.0-MIP405_zip.img'.
Load address: 0x400000
Loading: ########################
done
Bytes transferred = 119777 (1d3e1 hex)
=>
3.5.1.2 Program the flash
To simplify the flash programming procedure a special command is implemented:
=> [BOARD] flash mem [LOADADDRESS]
Example on a MIP405:
=> mip405 flash mem
updating bootloader image from memory at 400000
Image Name: U-Boot-MIP405
Created: 2003-07-11 9:23:00 UTC
Image Type: PowerPC U-Boot Firmware (gzip compressed)
Data Size: 121288 Bytes = 118.4 kB
Load Address: fff80000
Entry Point: 00000000
Verifying Checksum ... Uncompressing ... OK
Erasing at fff80000 (sector 56) (start fff80000)
............... done
flash erased, programming from 0x500040 0x80000 Bytes
........OK programming done
=>
With the reset command you can restart the board:
=> reset
Initializing SDRAM, Please stand by..................
U-Boot 0.4.0 (Jul 11 2003 - 10:33:29)
(c) 2003 by MPL AG Switzerland, MEV-10072-001 released