Flashing Sibl; Using Lpc3180 Loader - Philips LPC3180 Application Note

Getting started linux with
Table of Contents

Advertisement

Philips Semiconductors
Then start the target again. The U-boot command 'nand' or 'nand.jffs2' can work for
erasing/writing/reading the NAND sub-system. Below examples use 'nand' command.
Before flashing new images, it's better to erase the locations you want to have replaced.
In the serial terminal window, type e.g.:
NoHau # nand erase 0x00008000 0x00480000
NoHau # nand erase 0x00490000 0x00160000 (for erasing the kernel)
NoHau # nand erase 0x00660000 0x00040000 (for erasing U-boot)
Or:
Phytec # nand erase 0x00008000 0x006A0000 (for erasing all images)
[Note]
1. For details of nand flash command,type:
2. For "nand erase" command the "size" should be block aligned (multiple of 0x4000).
3. If there are bad blocks, please avoid erasing them.
To load the images in SDRAM and flash the image, in the terminal window type e.g.:
NoHau # nand write 0x80000000 0x00008000 0x480000 (rootfs)
NoHau # nand write 0x80600000 0x00490000 0x160000 (kernel)
NoHau # nand write 0x80900000 0x00660000 0x040000 (u-boot)
[Note]
1. For "nand write" command the "size" must be larger than the image size and should be
page aligned (multiple of 0x200).
2. If there are bad blocks, please avoid writing them.
3. Please reserve at least 1 block for SIBL from the flash start address.

5.2 Flashing SIBL

Besides some initialization routines SIBL switches from one nand flash controller (MLC)
to another (NDF). SIBL is loaded by the bootstrap code and must always be at the same
exact location in flash.
Note that you cannot flash SIBL using U-Boot as U-Boot uses a different flash controller
than the bootstrap code!
User can select either of the below two methods to program the SIBL.
- Using LPC3180_Loader program through serial connection
- Using Seehau software and Phytec Emulator through JTAG interface

5.2.1 Using LPC3180 Loader

There Windows program LPC3180_Loader is available in the
directory.
Steps of programming SIBL:
- Install LPC3180_loader;
- Connect PC and Phytec board UART5 with serial cable;
- Make sure no serial terminal is connected to the command port of the Phytec board
<12NC>
Application note
Phytec # help nand
and start LPC3180_loader;
Rev.03 — 21 Dec 2006
Getting started Linux with LPC3180
(for erasing the rootfs)
'./tools/flashloader'
© Koninklijke Philips Electronics N.V. 2004. All rights reserved.
AN10476
16 of 28

Advertisement

Table of Contents
loading

Table of Contents