README-i386 2.1 KB

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