README.PIP405 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375
  1. U-Boot Changes due to PIP405 Port:
  2. ===================================
  3. Changed files:
  4. ==============
  5. - MAKEALL added PIP405
  6. - makefile added PIP405
  7. - common/Makefile added Floppy disk and SCSI support
  8. - common/board.c added PIP405, SCSI support, get_PCI_freq()
  9. - common/bootm.c added IH_OS_U_BOOT, IH_TYPE_FIRMWARE
  10. - common/cmd_i2c.c added "defined(CONFIG_PIP405)"
  11. - common/cmd_ide.c changed div. functions to work with block device
  12. description
  13. added ATAPI support
  14. - common/command.c added SCSI and Floppy support
  15. - common/console.c replaced // with /* comments
  16. added console settings from environment
  17. - common/devices.c added ISA keyboard init
  18. - common/main.c corrected the read of bootdelay
  19. - cpu/ppc4xx/405gp_pci.c excluded file from PIP405
  20. - cpu/ppc4xx/i2c.c added 16bit read write I2C support
  21. added page write
  22. - cpu/ppc4xx/speed.c added get_PCI_freq
  23. - cpu/ppc4xx/start.S added CONFIG_IDENT_STRING
  24. - disk/Makefile added part_iso for CD support
  25. - disk/part.c changed to work with block device description
  26. added ISO CD support
  27. added dev_print (was ide_print in cmd_ide.c)
  28. - disk/part_dos.c changed to work with block device description
  29. - disk/part_mac.c changed to work with block device description
  30. - include/ata.h added ATAPI commands
  31. - include/cmd_bsp.h added PIP405 commands definitions
  32. - include/cmd_condefs.h added Floppy and SCSI support
  33. - include/cmd_disk.h changed to work with block device description
  34. - include/config_LANTEC.h excluded CONFIG_CMD_FDC and CONFIG_CMD_SCSI
  35. - include/config_hymod.h excluded CONFIG_CMD_FDC and CONFIG_CMD_SCSI
  36. - include/flash.h added INTEL_ID_28F320C3T 0x88C488C4
  37. - include/i2c.h added "defined(CONFIG_PIP405)"
  38. - include/image.h added IH_OS_U_BOOT, IH_TYPE_FIRMWARE
  39. - include/u-boot.h moved partitions functions definitions to part.h
  40. added "defined(CONFIG_PIP405)"
  41. added get_PCI_freq() definition
  42. - rtc/Makefile added MC146818 RTC support
  43. - tools/mkimage.c added IH_OS_U_BOOT, IH_TYPE_FIRMWARE
  44. Added files:
  45. ============
  46. - board/pip405 directory for PIP405
  47. - board/pip405/cmd_pip405.c board specific commands
  48. - board/pip405/config.mk config make
  49. - board/pip405/flash.c flash support
  50. - board/pip405/init.s start-up
  51. - board/pip405/kbd.c keyboard support
  52. - board/pip405/kbd.h keyboard support
  53. - board/pip405/Makefile Makefile
  54. - board/pip405/pci_piix4.h southbridge definitions
  55. - board/pip405/pci_pip405.c PCI support for PIP405
  56. - board/pip405/pci_pip405.h PCI support for PIP405
  57. - board/pip405/pip405.c PIP405 board init
  58. - board/pip405/pip405.h PIP405 board init
  59. - board/pip405/pip405_isa.c ISA support
  60. - board/pip405/pip405_isa.h ISA support
  61. - board/pip405/u-boot.lds Linker description
  62. - board/pip405/u-boot.lds.debugLinker description debug
  63. - board/pip405/sym53c8xx.c SYM53C810A support
  64. - board/pip405/sym53c8xx_defs.h SYM53C810A definitions
  65. - board/pip405/vga_table.h definitions of tables for VGA
  66. - board/pip405/video.c CT69000 support
  67. - board/pip405/video.h CT69000 support
  68. - common/cmd_fdc.c Floppy disk support
  69. - common/cmd_scsi.c SCSI support
  70. - disk/part_iso.c ISO CD ROM support
  71. - disk/part_iso.h ISO CD ROM support
  72. - include/cmd_fdc.h command forFloppy disk support
  73. - include/cmd_scsi.h command for SCSI support
  74. - include/part.h partitions functions definitions
  75. (was part of u-boot.h)
  76. - include/scsi.h SCSI support
  77. - rtc/mc146818.c MC146818 RTC support
  78. New Config Switches:
  79. ====================
  80. For detailed description, refer to the corresponding paragraph in the
  81. section "Changes".
  82. New Commands:
  83. -------------
  84. CONFIG_CMD_SCSI SCSI Support
  85. CONFIG_CMF_FDC Floppy disk support
  86. IDE additions:
  87. --------------
  88. CONFIG_IDE_RESET_ROUTINE defines that instead of a reset Pin,
  89. the routine ide_set_reset(int idereset) is used.
  90. ATAPI support (experimental)
  91. ----------------------------
  92. CONFIG_ATAPI enables ATAPI Support
  93. SCSI support (experimental) only SYM53C8xx supported
  94. ----------------------------------------------------
  95. CONFIG_SCSI_SYM53C8XX type of SCSI controller
  96. CONFIG_SYS_SCSI_MAX_LUN 8 number of supported LUNs
  97. CONFIG_SYS_SCSI_MAX_SCSI_ID 7 maximum SCSI ID (0..6)
  98. CONFIG_SYS_SCSI_MAX_DEVICE CONFIG_SYS_SCSI_MAX_SCSI_ID * CONFIG_SYS_SCSI_MAX_LUN
  99. maximum of Target devices (multiple LUN support
  100. for boot)
  101. ISO (CD-Boot) partition support (Experimental)
  102. ----------------------------------------------
  103. CONFIG_ISO_PARTITION CD-boot support
  104. RTC
  105. ----
  106. CONFIG_RTC_MC146818 MC146818 RTC support
  107. Keyboard:
  108. ---------
  109. CONFIG_ISA_KEYBOARD Standard (PC-Style) Keyboard support
  110. Video:
  111. ------
  112. CONFIG_VIDEO_CT69000 Enable Chips & Technologies 69000 Video chip
  113. CONFIG_VIDEO must be defined also
  114. External peripheral base address:
  115. ---------------------------------
  116. CONFIG_SYS_ISA_IO_BASE_ADDRESS address of all ISA-bus related parts
  117. _must_ be defined for ISA-bus parts
  118. Identify:
  119. ---------
  120. CONFIG_IDENT_STRING added to the U_BOOT_VERSION String
  121. Environment / Console:
  122. ----------------------
  123. CONFIG_SYS_CONSOLE_IS_IN_ENV if defined, stdin, stdout and stderr used from
  124. the values stored in the evironment.
  125. CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE if defined, console_overwrite() decides if the
  126. values stored in the environment or the standard
  127. serial in/out put should be assigned to the console.
  128. CONFIG_SYS_CONSOLE_ENV_OVERWRITE if defined, the start-up console switching
  129. are stored in the environment.
  130. PIP405 specific:
  131. ----------------
  132. CONFIG_PORT_ADDR address used to read boot configuration
  133. MULTI_PURPOSE_SOCKET_ADDR address of the multi purpose socked
  134. SDRAM_EEPROM_WRITE_ADDRESS addresses of the serial presence detect
  135. SDRAM_EEPROM_READ_ADDRESS EEPROM on the SDRAM module.
  136. Changes:
  137. ========
  138. Added Devices:
  139. ==============
  140. Floppy support:
  141. ---------------
  142. Support of a standard floppy disk controller at address CONFIG_SYS_ISA_IO_BASE_ADDRESS
  143. + 0x3F0. Enabled with define CONFIG_CMD_FDC. Reads a unformated floppy disk
  144. with a image header (see: mkimage). No interrupts and no DMA are used for this.
  145. Added files:
  146. - common/cmd_fdc.c
  147. - include/cmd_fdc.h
  148. SCSI support:
  149. -------------
  150. Support for Symbios SYM53C810A chip. Implemented as follows:
  151. - without disconnect
  152. - only asynchrounous
  153. - multiple LUN support (caution, needs a lot of RAM. define CONFIG_SYS_SCSI_MAX_LUN 1 to
  154. save RAM)
  155. - multiple SCSI ID support
  156. - no write support
  157. - analyses the MAC, DOS and ISO pratition similar to the IDE support
  158. - allows booting from SCSI devices similar to the IDE support.
  159. The device numbers are not assigned like they are within the IDE support. The first
  160. device found will get the number 0, the next 1 etc. If all SCSI IDs (0..6) and all
  161. LUNs (8) are enabled, 56 boot devices are possible. This uses a lot of RAM since the
  162. device descriptors are not yet dynamically allocated. 56 boot devices are overkill
  163. anyway. Please refer to the section "Todo" chapter "block device support enhancement".
  164. The SYM53C810A uses 1 Interrupt and must be able of mastering the PCI bus.
  165. Added files:
  166. - common/cmd_scsi.c
  167. - common/board.c
  168. - include/cmd_scsi.h
  169. - include/scsi.h
  170. - board/pip405/sym53c8xx.c
  171. - board/pip405/sym53c8xx_defs.h
  172. ATAPI support (IDE changes):
  173. ----------------------------
  174. Added ATAPI support (with CONFIG_ATAPI) in the file cmd_ide.c.
  175. To support a hardreset, when the IDE reset pin is not connected to the
  176. CONFIG_SYS_PC_IDE_RESET pin, the switch CONFIG_IDE_RESET_ROUTINE has been added. When
  177. this switch is enabled the routine void ide_set_reset(int idereset) must be
  178. within the board specific files.
  179. Only read from ATAPI devices are supported.
  180. Found out that the function trim_trail cuts off the last character if the whole
  181. string is filled. Added function cpy_ident instead, which trims also leading
  182. spaces and copies the string in the buffer.
  183. Changed files:
  184. - common/cmd_ide.c
  185. - include/ata.h
  186. ISO partition support:
  187. ----------------------
  188. Added CD boot support for El-Torito bootable ISO CDs. The bootfile image must contain
  189. the U-Boot image header. Since CDs do not have "partitions", the boot partition is 0.
  190. The bootcatalog feature has not been tested so far. CD Boot is supported for ATAPI
  191. ("diskboot") and SCSI ("scsiboot") devices.
  192. Added files:
  193. - disk/iso_part.c
  194. - disk/iso_part.h
  195. Block device changes:
  196. ---------------------
  197. To allow the use of dos_part.c, mac_part.c and iso_part.c, the parameter
  198. block_dev_desc will be used when accessing the functions in these files. The block
  199. device descriptor (block_dev_desc) contains a pointer to the read routine of the
  200. device, which will be used to read blocks from the device.
  201. Renamed function ide_print to dev_print and moved it to the file disk/part.c to use
  202. it for IDE ATAPI and SCSI devices.
  203. Please refer to the section "Todo" chapter "block device support enhancement".
  204. Added files:
  205. - include/part.h
  206. changed files:
  207. - disk/dos_part.c
  208. - disk/dos_part.h
  209. - disk/mac_part.c
  210. - disk/mac_part.h
  211. - disk/part.c
  212. - common/cmd_ide.c
  213. - include/u-boot.h
  214. MC146818 RTC support:
  215. ---------------------
  216. Added support for MC146818 RTC with defining CONFIG_RTC_MC146818. The ISA bus IO
  217. base address must be defined with CONFIG_SYS_ISA_IO_BASE_ADDRESS.
  218. Added files:
  219. - rtc/mc146818.c
  220. Standard ISA bus Keyboard support:
  221. ----------------------------------
  222. Added support for the standard PC kyeboard controller. For the PIP405 the superIO
  223. controller must be set up previously. The keyboard uses the standard ISA IRQ, so
  224. the ISA PIC must also be set up.
  225. Added files:
  226. - board/pip405/kbd.c
  227. - board/pip405/kbd.h
  228. - board/pip405/pip405_isa.c
  229. - board/pip405/pip405_isa.h
  230. Chips and Technologie 69000 VGA controller support:
  231. ---------------------------------------------------
  232. Added support for the CT69000 VGA controller.
  233. Added files:
  234. - board/pip405/video.c
  235. - board/pip405/video.h
  236. - board/pip405/vga_table.h
  237. Changed Items:
  238. ==============
  239. Identify:
  240. ---------
  241. Added the config variable CONFIG_IDENT_STRING which will be added to the
  242. "U_BOOT_VERSION __TIME__ DATE___ " String, to allows to identify intermidiate
  243. and custom versions.
  244. Changed files:
  245. - cpu/ppc4xx/start.s
  246. Firmware Image:
  247. ---------------
  248. Added IH_OS_U_BOOT and IH_TYPE_FIRMWARE to the image definitions to allows the
  249. U-Boot update with prior CRC check.
  250. Changed files:
  251. - include/image.h
  252. - tools/mkimage.c
  253. - common/cmd_bootm.c
  254. Correct PCI Frequency for PPC405:
  255. ---------------------------------
  256. Added function (in cpu/ppc4xx/speed.c) to get the PCI frequency for PPC405 CPU.
  257. The PCI Frequency will now be set correct in the board description in common/board.c.
  258. (was set to the busfreq before).
  259. Changed files:
  260. - cpu/ppc4xx/speed.c
  261. - common/board.c
  262. I2C Stuff:
  263. ----------
  264. Added defined(CONFIG_PIP405) at several points in common/cmd_i2c.c.
  265. Added 16bit read/write support for I2C (PPC405), and page write to
  266. I2C EEPROM if defined CONFIG_SYS_EEPROM_PAGE_WRITE_ENABLE.
  267. Changed files:
  268. - cpu/ppc4xx/i2c.c
  269. - common/cmd_i2c.c
  270. Environment / Console:
  271. ----------------------
  272. Although in README.console described, the U-Boot has not assinged the values
  273. found in the environment to the console. Corrected this behavior, but only if
  274. CONFIG_SYS_CONSOLE_IS_IN_ENV is defined.
  275. If CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE is defined, console_overwrite() decides if the
  276. values stored in the environment or the standard serial in/output should be
  277. assigned to the console. This is useful if the environment values are not correct.
  278. If CONFIG_SYS_CONSOLE_ENV_OVERWRITE is defined the devices assigned to the console at
  279. start-up time will be written to the environment. This means that if the
  280. environment values are overwritten by the overwrite_console() routine, they will be
  281. stored in the environment.
  282. Changed files:
  283. - common/console.c
  284. Correct bootdelay intepretation:
  285. --------------------------------
  286. Changed bootdelay read from the environment from simple_strtoul (unsigned) to
  287. simple_strtol (signed), to be able to get a bootdelay of -1.
  288. Changed files:
  289. - common/main.c
  290. Todo:
  291. =====
  292. Block device support enhancement:
  293. ---------------------------------
  294. Consider to unify the block device handling. Instead of using diskboot for IDE,
  295. scsiboot for SCSI and fdcboot for floppy disks, it would make sense to use only
  296. one command ("devboot" ???) with a parameter of the desired device ("hda1", "sda1",
  297. "fd0" ???) to boot from. The other ide commands can be handled in the same way
  298. ("dev hda read.." instead of "ide read.." or "dev sda read.." instead of
  299. "scsi read..."). Todo this, a common way of assign a block device to its name
  300. (first found ide device = hda, second found hdb etc., or hda is device 0 on bus 0,
  301. hdb is device 1 on bus 0 etc.) as well as the names (hdx for ide, sdx for scsi, fx for
  302. floppy ???) must be defined.
  303. Maybe there are better ideas to do this.
  304. Console assingment:
  305. -------------------
  306. Consider to initialize and assign the console stdin, stdout and stderr as soon as
  307. possible to see the boot messages also on an other console than serial.
  308. Todo for PIP405:
  309. ================
  310. LCD support for VGA:
  311. --------------------
  312. Add LCD support for the CT69000
  313. Default environment:
  314. --------------------
  315. Consider to write a default environment to the OTP part of the EEPROM and use it
  316. if the normal environment is not valid. Useful for serial# and ethaddr values.
  317. Watchdog:
  318. ---------
  319. Implement Watchdog.
  320. Files clean-up:
  321. ---------------
  322. Following files needs to be cleaned up:
  323. - cmd_pip405.c
  324. - flash.c
  325. - pci_pip405.c
  326. - pip405.c
  327. - pip405_isa.c
  328. Consider to split up the files in their functions.