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