]> git.ipfire.org Git - people/ms/u-boot.git/blame - doc/README.korat
Fix compile warning in uli526x driver
[people/ms/u-boot.git] / doc / README.korat
CommitLineData
6433fa20
LJ
1The Korat board has two NOR flashes, FLASH0 and FLASH1, which are connected to
2chip select 0 and 1, respectively. FLASH0 contains 16 MiB, and is mapped to
3addresses 0xFF000000 - 0xFFFFFFFF as U-Boot Flash Bank #2. FLASH1 contains
4from 16 to 128 MiB, and is mapped to 0xF?000000 - 0xF7FFFFFF as U-Boot Flash
5Bank #1 (with the starting address depending on the flash size detected at
6runtime). The write-enable pin on FLASH0 is disabled, so the contents of FLASH0
7cannot be modified in the field. This also prevents FLASH0 from executing
8commands to return chip information, so its configuration is hard-coded in
9U-Boot.
10
11There are two versions of U-Boot for Korat: "permanent" and "upgradable". The
12permanent U-Boot is pre-programmed at the top of FLASH0, e.g., at addresses
130xFFFA0000 - 0xFFFFFFFF for the current 384 KiB size. The upgradable U-Boot is
14located 256 KiB from the top of FLASH1, e.g. at addresses 0xF7F6000 - 0xF7FC0000
15for the current 384 KiB size. FLASH1 addresses 0xF7FE0000 - 0xF7FF0000 are
16used for the U-Boot environmental parameters, and addresses 0xF7FC0000 -
170xF7FDFFFF are used for the redundant copy of the parameters. These locations
18are used by both versions of U-Boot.
19
20On booting, the permanent U-Boot in FLASH0 begins executing. After performing
21minimal setup, it monitors the state of the board's Reset switch (GPIO47). If
22the switch is sensed as open before a timeout period, then U-Boot branches to
23address 0xF7FBFFFC. This causes the upgradable U-Boot to execute from the
24beginning. If the switch remains closed thoughout the timeout period, the
25permanent U-Boot activates the on-board buzzer until the switch is sensed as
26opened. It then continues to execute without branching to FLASH1. The effect
27of this is that normally the Korat board boots its upgradable U-Boot, but, if
28this has been corrupted, the user can boot the permanent U-Boot, which can then
29be used to erase and reload FLASH1 as needed.
30
31Note that it is not necessary for the permanent U-Boot to have all the latest
32features, but only that it have sufficient functionality (working "tftp",
33"erase", "cp.b", etc.) to repair FLASH1. Also, the permanent U-Boot makes no
34assumptions about the size of FLASH1 or the size of the upgradable U-Boot: it is
35sufficient that the upgradable U-Boot can be started by a branch to 0xF7FBFFFC.
36
37The build sequence:
38
2ae18241
WD
39 make korat_perm_config
40 make all
6433fa20
LJ
41
42builds the permanent U-Boot by selecting loader file "u-boot.lds" and defining
43preprocessor symbol "CONFIG_KORAT_PERMANENT". The default build:
44
45 make korat_config
46 make all
47
2ae18241 48creates the upgradable U-Boot by selecting loader file "u-boot-F7FC.lds" and
6433fa20
LJ
49leaving preprocessor symbol "CONFIG_KORAT_PERMANENT" undefined.
50
512008-02-22, Larry Johnson <lrj@acm.org>
f20405e3
LJ
52
53
f20405e3
LJ
54The CompactFlash(R) controller on the Korat board provides a hi-speed USB
55interface. This may be connected to either a dedicated port on the on-board
56USB controller, or to a USB port on the PowerPC 440EPx processor. The U-Boot
57environment variable "korat_usbcf" can be used to specify which of these two
58USB host ports is used for CompactFlash. The valid setting for the variable are
59the strings "pci" and "ppc". If the variable defined and set to "ppc", then the
60PowerPC USB port is used. In all other cases the on-board USB controller is
61used, but if "korat_usbcf" is defined but is set to a string other than the two
62valid options, a warning is also issued.
63
642009-01-28, Larry Johnson <lrj@acm.org>