stroese | 180e6f1 | 2005-04-07 05:35:12 +0000 | [diff] [blame] | 1 | ------------------------------------------ |
| 2 | Installation of U-Boot using PIBS firmware |
| 3 | ------------------------------------------ |
| 4 | |
| 5 | This document describes how to install U-Boot on the Ocotea PPC440GX |
| 6 | Evaluation Board. We do not erase the PIBS firmware but install U-Boot in the |
| 7 | soldered FLASH. After this you should be able to switch between PIBS and |
| 8 | U-Boot via the switch U46 SW1. Please check that SW1 is off (= open) before |
| 9 | continuing. |
| 10 | |
| 11 | Connect to the serial port 0 (J11 lower) of the Ocotea board using the cu |
| 12 | program. See the hints for configuring cu above. Make sure you can |
| 13 | communicate with the PIBS firmware: reset the board and hit ENTER a couple of |
| 14 | times until you see the PIBS prompt (PIBS $). Then proceed as follows: |
| 15 | |
| 16 | |
| 17 | Read MAC Addresses from PIBS |
| 18 | ---------------------------- |
| 19 | |
| 20 | To read the configured MAC addresses available on your Ocotea board please use |
| 21 | the following commands: |
| 22 | |
| 23 | PIBS $ echo $hwdaddr0 |
| 24 | 000173017FE3 |
| 25 | PIBS $ echo $hwdaddr1 |
| 26 | 000173017FE4 |
| 27 | PIBS $ echo $hwdaddr2 |
| 28 | 000173017FE1 |
| 29 | PIBS $ echo $hwdaddr3 |
| 30 | 000173017FE2 |
| 31 | |
| 32 | In U-Boot this is stored in the following environment variables: |
| 33 | |
| 34 | * Ethernet Address 0: ethaddr = 000173017FE3 (==> 00:01:73:01:7F:E3) |
| 35 | * Ethernet Address 1: eth1addr = 000173017FE4 (==> 00:01:73:01:7F:E4) |
| 36 | * Ethernet Address 2: eth2addr = 000173017FE1 (==> 00:01:73:01:7F:E1) |
| 37 | * Ethernet Address 3: eth3addr = 000173017FE2 (==> 00:01:73:01:7F:E2) |
| 38 | |
| 39 | |
| 40 | Configure the network interface (ent0 == emac0) |
| 41 | ----------------------------------------------- |
| 42 | |
| 43 | To download the U-Boot image we need to configure the ethernet interface with |
| 44 | the following commands: |
| 45 | |
| 46 | PIBS $ ifconfig ent0 192.168.160.142 netmask 255.255.0.0 up |
| 47 | PIBS $ set ipdstaddr0=192.168.1.1 |
| 48 | status: writing PIBS variable value to FLASH |
| 49 | PIBS $ set bootfilename=/tftpboot/ocotea/u-boot.bin |
| 50 | status: writing PIBS variable value to FLASH |
| 51 | |
| 52 | Please insert correct parameters for your configuration (ip-addresses and |
| 53 | file-location). |
| 54 | |
| 55 | |
| 56 | Program U-Boot into soldered User-FLASH |
| 57 | --------------------------------------- |
| 58 | |
| 59 | Please make sure to use a newer version of U-Boot (at least 1.1.3), since |
| 60 | older versions don't support running from user-FLASH. |
| 61 | |
| 62 | To program U-Boot into the soldered user-FLASH use the following command: |
| 63 | |
| 64 | PIBS $ storefile bin eth 0xffbc0000 |
| 65 | |
| 66 | This commands loads the file vis ethernet into ram and copies it into the |
| 67 | user-FLASH. |
| 68 | |
| 69 | |
| 70 | Switch to U-Boot |
| 71 | ---------------- |
| 72 | |
| 73 | Now you can turn your board off and switch SW1 (U46) to on (= closed). After |
| 74 | powering the board you should see the following message: |
| 75 | |
| 76 | U-Boot 1.1.3 (Apr 5 2005 - 22:59:57) |
| 77 | |
| 78 | IBM PowerPC 440 GX Rev. C |
| 79 | Board: IBM 440GX Evaluation Board |
wdenk | b21608e | 2005-04-20 09:28:54 +0000 | [diff] [blame] | 80 | VCO: 1066 MHz |
| 81 | CPU: 533 MHz |
| 82 | PLB: 152 MHz |
| 83 | OPB: 76 MHz |
| 84 | EPB: 76 MHz |
stroese | 180e6f1 | 2005-04-07 05:35:12 +0000 | [diff] [blame] | 85 | I2C: ready |
| 86 | DRAM: 256 MB |
wdenk | b21608e | 2005-04-20 09:28:54 +0000 | [diff] [blame] | 87 | FLASH: 5 MB |
stroese | 180e6f1 | 2005-04-07 05:35:12 +0000 | [diff] [blame] | 88 | PCI: Bus Dev VenId DevId Class Int |
| 89 | In: serial |
| 90 | Out: serial |
| 91 | Err: serial |
| 92 | KGDB: kgdb ready |
| 93 | ready |
| 94 | Net: ppc_440x_eth0, ppc_440x_eth1, ppc_440x_eth2, ppc_440x_eth3 |
| 95 | BEDBUG:ready |
| 96 | => |
| 97 | |
| 98 | |
| 99 | April 06 2005, Stefan Roese <sr@denx.de> |