wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 1 | This is my attempt to port U-Boot to the i386 platform. This |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 2 | work was sponsored by my emplyer, Omicron Ceti AB. http://www.omicron.se |
| 3 | |
| 4 | It is currently capable of booting a linux bzImage from flash on |
| 5 | the AMD SC520 CDP platform. |
| 6 | |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 7 | It was originally based on PPCBoot taken from the CVS October 28 2002. |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 8 | |
| 9 | To compile: |
| 10 | |
| 11 | 1) Unpack the source tree, either from the complete tarball or |
| 12 | from the virgin snapshot + the patch |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 13 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 14 | 2) Configure the source |
| 15 | $ make sc520_cdp_comfig |
| 16 | $ make |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 17 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 18 | To use this code on the CDP: |
| 19 | 1) Make a suitable kernel, I used 2.4.19 with the mtd-support updated |
| 20 | from the MTD CVS and a patch to allow root=/dev/mtdblock1 which I |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 21 | included at the end of this file. |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 22 | The following options in the MTD section might be useful: |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 23 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 24 | CONFIG_MTD_PHYSMAP=y |
| 25 | CONFIG_MTD_PHYSMAP_START=38100000 |
| 26 | CONFIG_MTD_PHYSMAP_LEN=7a0000 |
| 27 | CONFIG_MTD_PHYSMAP_BUSWIDTH=2 |
| 28 | |
| 29 | |
| 30 | 2) Program it in to the CDP flashbank with remon |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 31 | u-boot.bin should be programmed att offset 0x7e000 and the kernel at |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 32 | offset 0. If you want to use a jffs2 root file system (not included here), |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 33 | it should be programmed to offset 0x100000. |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 34 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 35 | remon> z |
| 36 | remon> yi |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 37 | remon> ns u-boot.bin 7e0000 |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 38 | remon> ns bzImage 0 |
| 39 | remon> ns image.jffs2 100000 |
| 40 | |
| 41 | 3) Connect a terminal to the 25pin serial port at 9600bps, and start the CDP. |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 42 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 43 | remon> z |
| 44 | remon> g |
| 45 | |
wdenk | ef5fe75 | 2003-03-12 10:41:04 +0000 | [diff] [blame] | 46 | 4) U-Boot should output some message and a prompt on the terminal, to |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 47 | start the kernel issue the following command: |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 48 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 49 | BOOT> bootm |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 50 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 51 | 5) The kernel should boot, and mount the root filesystem if present. |
| 52 | |
| 53 | We hope you find this stuff useful |
| 54 | Daniel Engstrรถm, Omicron Ceti AB, daniel@omicron.se |
| 55 | |
| 56 | |
wdenk | 591dda5 | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 57 | --- linux-2.4.19-orig/init/do_mounts.c Sat Aug 3 02:39:46 2002 |
| 58 | +++ linux-2.4.19/init/do_mounts.c Mon Sep 23 16:21:33 2002 |
| 59 | @@ -224,6 +224,14 @@ |
| 60 | { "ftlc", 0x2c10 }, |
| 61 | { "ftld", 0x2c18 }, |
| 62 | { "mtdblock", 0x1f00 }, |
| 63 | + { "mtdblock0", 0x1f00 }, |
| 64 | + { "mtdblock1", 0x1f01 }, |
| 65 | + { "mtdblock2", 0x1f02 }, |
| 66 | + { "mtdblock3", 0x1f03 }, |
| 67 | + { "mtdblock4", 0x1f04 }, |
| 68 | + { "mtdblock5", 0x1f05 }, |
| 69 | + { "mtdblock6", 0x1f06 }, |
| 70 | + { "mtdblock7", 0x1f07 }, |
| 71 | { NULL, 0 } |
| 72 | }; |
wdenk | 57b2d80 | 2003-06-27 21:31:46 +0000 | [diff] [blame] | 73 | |
| 74 | ------------------- |