Commit graph

86 commits

Author SHA1 Message Date
Ronald G. Minnich
6b9ddebef3 bug fixes, etc. 2003-04-30 18:09:06 +00:00
Ronald G. Minnich
6510b2a77b PPC commit 2003-04-14 22:54:36 +00:00
Eric W. Biederman
b07648f6b1 - intel.h removed false comment
- p4dpe sync with LNXI tree
  * Make switching to fallback mode more robust
    Added boot_countdown to count the number of times booting has failed.
  * Added boot index to allow fully forcing the boot device with cmos options
  * Added missing irqs to the mptable.
- p4dpr sync with LNXI tree
  * Make switching to fallback mode more robust
    Added boot_countdown to count the number of times booting has failed.
  * Added boot index to allow fully forcing the boot device with cmos options
- tyan/guiness repair and update the Config file
- northbridge/amd/amd76x/
  * Support for up to 4GB of ram.
  * Correct handling of strange dimm sizes
- northbridge/intel/E7500
  * Tunned settings for better memory performance
- northbridge/intel/E7501
  * Fixed calculations based on a 100Mhz to use a 133Mhz clock.
  * Replaced hard codes for the supermicro x5dpr
  * Misc bug fixes
- src/ram/spotcheck.inc
  * Removed someones temporary debugging code
- src/sdram/generci_zero_ecc_sdram.inc
  * Handle addresses > 2GB
- src/southbridge/amd/amd768/
  * Changed references to the amd766 to the amd768
  * misc fixes
  * Added a count to the failover code so we trigger fallback much less easily.
  * more attempts to disable the amd768 watchdog...
  * reset the board on a timeout reading from the smbus.
- src/southbridge/intel/82801
  * added a count of boot failers so we trigger fallback mode much leass easily.
- Added motherboards p4dpeg2, x5dpr, s2466, s2469
2003-04-12 02:24:28 +00:00
Eric W. Biederman
88d4672564 - Cleaner #defines in pirq_routing.h
- Remove duplicate include of c_start.S in arch/i386/lib/Config
- Infrastructure to handle cpu startup bugs
- irq routing table size check
- split up the i786 microcode updates into their own files
- Enable cpu ECC checking on the Athlons
- More pci_ids
- #defines for the location of the LinuxBIOS checksum
2003-04-09 00:01:11 +00:00
Ronald G. Minnich
14342bf376 more current params
IDE support for primary and secondary channels.

video support.

improved floppy and ide support.
2002-12-16 17:57:49 +00:00
Andrew Ip
e288cd8a8a Kevin Hester <kevinh@ispiri.com>, fixed null termination bug 2002-12-14 06:29:57 +00:00
Andrew Ip
882d617b8a Kevin Hester <kevinh@ispiri.com>, added pci_level_irq and pci_assign_irqs 2002-12-14 06:29:09 +00:00
Ronald G. Minnich
5691f23e61 pirq_routing.h: fixed for gcc 3.x
printk.c: added hexdump function, conditionally compiled with CONFIG_HEXDUMP
mptable.c: added mp table debug functions, conditionally compiled with
          CONFIG_DEBUG_MPTABLE. These use hexdump.
2002-12-03 16:12:16 +00:00
Andrew Ip
527f8a5516 fixed postcode to serial by Kevin Hester 2002-11-10 06:25:48 +00:00
Ronald G. Minnich
7377b062c9 Basic syntax errors and other compilation errors fixed. Now to shoot for
link-time errors (e.g. udelay etc.)
2002-10-17 21:09:15 +00:00
Eric W. Biederman
53be537588 commit this 2002-10-10 22:23:43 +00:00
Eric W. Biederman
b1a740bc28 AUTHORS
- Add myself
src/cpu/p5/delay_tsc.c
- Fix the indentation
- Don't have the new calibrate_tsc function directly
  update global variables.
src/include/smp/start_stop.h
- Change #ifdef SMP to #if SMP == 1
src/include/string.h
- Declare sprintf
src/lib/elfboot.c
- Minor fixes to verify_loaded_image
- Change all of the new debugging messages to printk_spew
src/lib/inflate.c
- Remove sensless warning message fixes
src/lib/linuxpci.c
- move declaration of sprintf to string.h
- Better detection of read only bars in pci_get_resource
- Remove pci_noop
- Remove warning about set_pci_dev_ops not being finished
src/lib/src.c
- change #ifdef SERIAL_POST to #if SERIAL_POST in post_code
2002-10-10 19:46:47 +00:00
Ronald G. Minnich
6fa605c210 Smartcore commit. IDE fixup for cs5530.
Enable debug prints to try to find etherboot problems Smartcore fixes.
2002-09-10 14:57:40 +00:00
Ronald G. Minnich
490c64dee2 Support now works for the digital logic smartcore p3 SE 2002-08-21 21:02:55 +00:00
Ronald G. Minnich
217286880e Changes to make udelay a bit easier to compile in. There are now three version. 2002-07-22 21:28:16 +00:00
Ronald G. Minnich
a99e7f00c7 more nits, get hings to work. 2002-07-19 21:06:43 +00:00
Ronald G. Minnich
4dc3c174db fixes for alpha.
Note the beginning of moving linuxbios_table.c to src/lib
2002-07-18 21:08:09 +00:00
Eric W. Biederman
f11b412d37 - Refix the protoptype for jmp_to_elf_entry, including fixing alpha code
- Updated to new pci code
2002-07-18 20:30:20 +00:00
Ronald G. Minnich
166e7df814 trying to get alpha back. 2002-07-16 23:16:31 +00:00
Eric W. Biederman
4961c2dceb Move elfboot out of linuxbiosmain.
In hardwaremain call linuxbiosmain with it's traditional parameters,
but only call it if we aren't using elf_boot.
2002-07-11 13:31:59 +00:00
Eric W. Biederman
7bbfacd461 Files I missed earlier 2002-07-02 07:14:44 +00:00
Eric W. Biederman
e803bc7bd4 - Support for a LinuxBIOS version number (start at 1.0.0)
- Support for remember our compile time environment
- Simple and always correct version of compute_ip_checksum
- Improve message strings in crt0.base
- Initial support for > 2G ram.
  - Sizeram now returns a list of valid ranges of ram
  - pci resource allocation now starts at 0xC0000000
- Update sizeram for every northbridge
- Misc cleanups.
2002-07-02 07:13:12 +00:00
Eric W. Biederman
9e334b9ec3 Massive resync of my tree and freebios-cvs including.
- Motherboard identification in the linuxbios table.
- Better SMP startup code.
- Support for the tyan s2462, the supermicro p4dc6, the supermicro p4dc6+, and the beginnings of supermicro p4dpr support
- Remove of no longer needed USE_AMD_NDA option
2002-06-20 00:11:56 +00:00
Li-Ta Lo
6bcb2b7d1d cleanup, resync for SiS chipsets 2002-05-27 02:15:10 +00:00
Li-Ta Lo
ab024f146d minor reformating 2002-05-25 05:51:03 +00:00
Ronald G. Minnich
56a01c28dc Adding pci irq support. Yuck. 2002-03-27 04:35:45 +00:00
Ronald G. Minnich
f6ff7bc4e2 more geode support 2002-03-16 22:39:00 +00:00
Ronald G. Minnich
e44595d970 K7SEM is fixed. The problem was that you need
option USE_DOC_MIL=1
now, not just
option USE_DOC_MIL

The latter usage led to empty streams struct.

This is a real problem, though: you can no streams for reading and the linker
will happily create an empty streams structure. Which sucks, since you don't know
why your system won't boot.
2002-02-05 00:06:20 +00:00
Eric W. Biederman
fab9293203 Implement CMOS options for the supermicro p4dc6
ECC enable/disable
Serial baud rate
Debug verbosity
2002-02-01 23:45:30 +00:00
Ronald G. Minnich
46f6e4b164 fixed some silly bugs. 2002-01-30 21:24:35 +00:00
Ronald G. Minnich
e2358a2fee Fixes for potential divide-by-zero in setup_com in some superios.
Not really needed, but in the BIOS paranoia is a healthy frame of mind.

Added some debug prints to newpci.c

Fixed sbc710 Config to ensure that com1 and com2 are enabled
   (input still does not work)

Changed
extern struct ... *all_superio in hardwaremain.c to
extern struct ... all_superio[] to avoid gcc dereferencing the pointer
   (when did THIS C behavior change go in?)
2002-01-30 20:52:43 +00:00
Eric W. Biederman
bf85f95212 - Fix small syntax error in reset16.lds
- small bug fixes to the elf bootloader
- factor the elf bootloader into focused smal subroutines that are easier to comprehend
  and maintain
- Implement support for PT_NOTE headers and parsing ELF notes if we need special functionality
  An ELF Image should never need an ELF loader to interpret an ELF to work correctly, making
  interpretation of all ELF notes optional.
- Implement support for notes giving PROGRAM_NAME, PROGRAM_VERSION, and PROGRAM_CHECKSUM
2002-01-22 17:51:31 +00:00
Eric W. Biederman
7dc4c05383 Small update to the elf bootloader.
To keep confusion to a minimum refer to ELF segments as segments and not sections.
Ignore segments with types other than PT_LOAD (just in case...)
2002-01-16 17:35:46 +00:00
Eric W. Biederman
0f7f76fb40 Hopefully this is my last commit of major infrasture changes for a while.
Highlights:
 - elfboot.c Now can load images to the ram location where linuxBIOS is running
 - Added the standalone directory for bootloaders built from the linuxBIOS source

Other things:
- Correctly maode fallback_boot.c conditional
- Added entry32.lds to do the math for segment descriptor table entries
- Merged ldscript.cacheram and ldscript.base
- Moved assembly code to the sections .rom.text and .rom.data
- Modified linuxBIOS so C code completely runs from RAM as the SiS630
  case does
- Updated and commented example config files for the supermicro p4dc6
- Bumped the elfboot loader version to 1.0
- Removed extra carriage returns in dump_northbridge.inc (DOS->UNIX)
- General cleanups to the config of the supermicro p4dc6
2002-01-16 05:54:23 +00:00
Ronald G. Minnich
fcfd681710 Added ifdef for ECS K7SEM support 2002-01-12 19:15:43 +00:00
Eric W. Biederman
7d601c3e2b - NLBConfig better error handling
- Implement payload so it attempts no processing of the image (I can now use it for ELF images!)
- Implement linux so it does what it has always done (but is now distinct from payload)
- Implement the new expr command so I can compute values (I got inspired)
- Micro fix to rom_fill_inbuf.c so we don't get back too many bytes (Thanks Ron)
- Fix for fallback_boot.c so it is always available.  Otherwise I can't say my boot succeeded.
- Added example config scripts for the p4dc6
2002-01-11 02:18:09 +00:00
Ronald G. Minnich
7ec2aee41a Fixed a simple bug in newpci.c WRT iobases.
Jan Kok's new NLBConfig with fixes. This has been tested with build and run
of a linuxbios and appears to work fine.
2002-01-09 22:50:51 +00:00
Eric W. Biederman
9cda94e6d2 Updates to produce a linuxBIOS table. Modeled on the earlier
uniform_boot work, but relocated.  You need the new mkelfImage to
use the elf boot format.

Previous tables were updated so I could find both the start and
the end of where they were written in memory.

Minor p4dc6 updates, to disable some debugging code.

The mkelfImage-1.9 is checked in as util/mkelfImage
2002-01-08 07:04:35 +00:00
Eric W. Biederman
cb232f1e04 Lots and Lots of changes. Mainly bugfixes for the supermicro p4dc6,
and a bunch of generic changes.
- Started playing with automatic scanning memory for LinuxBIOS tables.
- Converted the fill_inbuf drivers to stream drivers.  This allows
  for pure data copying operations to be faster, and it allows skipping
  of unneeded data on platforms that support it.
- Added a section .rodata.streams for the stream driver control structures.
  This is preparation for building a bootloader that shares source code
  with LinuxBIOS.
- Added a driver command to NLBConfig.py for objects that should
  always be linked into LinuxBIOS if they are compiled at all.
- Moved the boot_successful logic down into the guts of the
  bootloaders.
- Modified the ip style checksum logic so it isn't specific to uniform
  boot headers...
- Added a function ndelay that uses the RTC (this is i786 specific for now).
- Added a function to delay in seconds for the braindead harddrive
  spinup logic.
- Added a floppy stream driver.
- Added a ide stream driver.
- Broke out the ram initialization for the p4dc6 into multiple c files.
- Stupidly adapted linuxbiosmain and do_inflate to the new stream
  interface.  get_byte is now a slow function call so it might be able
  to use some optimization.
- Updated the ELF bootloader to the new stream interface and adding a
  ELF header scanning function so we can boot off of harddrives and
  not smash their partition tables.
- Removed some bogus unlook ahead code from inflate.c
- Fixed a problem where we did not enable I/O resources on VGA
  compatible chips.  This caused a trident card to lock up the system
  when it's memory mapped resources were enabled.
- Correctly set up nested pci busses.  Before this a pci bus behind a
  pci bus would not get enabled.
- Config changes to the p4dc6
- Added more interrupt sources to the p4dc6 interrupt table
- Converted all of the inbuf drivers to stream drivers.
  All have good conversions except the doc_millenium.
2001-12-20 04:04:42 +00:00
Eric W. Biederman
2beb0a1bcc - Updates for the supermicro p4dc6 motherboard
- Code to initialize sdram from C on the l440gx
- cache as ram code fro the p6 it works except conflict misses occur
  with addresses that are not cached so writing to ram does not work.
  Which makes it to brittle to count on.
- Initial implementation of a fallback booting scheme where we can
  have two copies of linuxbios in rom at once.
- Movement of 32 bit entry code from entry16.inc to entry32.inc
- Update of all config files so they now also include entry32.inc
- Fix for start_stop.c & entry16.inc so I can fairly arbitrarily relocate
  the 16bit entry code in SMP.
- A small number of fixes for warnings
2001-11-27 19:29:59 +00:00
Ronald G. Minnich
0ddd8a6f16 Fixup work in the video subr. 2001-11-25 21:22:16 +00:00
Ronald G. Minnich
0222d47c61 Changed
option SERIAL_CONSOLE
to
option SERIAL_CONSOLE=1
2001-11-08 02:06:37 +00:00
Eric W. Biederman
a8151ba2cd Initial checkin for supermicro p4dc6
This also includes a bunch of my pending work including
- Updated serial code so we can compile in different serial port speeds
- Updates to the build system so that:
  - Makefile.settings holds all of the settings of the config variables
  - ldoptions and cpuflags are generated automatically with perl scripts
  - src/config/Config holds all of the architecture neutral make file settings
- Initial work on the P4 including how to use cache as ram
- Update to the ioapic code for the P4 because it delivers irqs on the system
  bus instead of an out of band bus
- Updated version of printf that doesn't need an intermediate buffer
  - logbuf_subr now handles the case when we want to use a log buffer
- video_subr handles the preliminary code for writing to a video device.
- Pending changes for the L440GX are merged in as well (hopefully I haven't
  messed then up since they were written).
2001-11-03 02:11:49 +00:00
Ronald G. Minnich
71022a5661 added debug option for get_byte to dump every byte.
Fix for technoland config
Added new anal-retentive DoC code for those who want it to docmil_fill_inbuf
added .h files for new DoC code.
2001-10-24 16:13:42 +00:00
Ronald G. Minnich
ce6c4c7195 Minor SMP fixes. Fix to linuxpci to catch buggy chipsets 2001-10-15 18:19:40 +00:00
Ronald G. Minnich
cffb97e763 Fix small bug in raminit for 440gx. If you have ecc ram you need to set
0x18 into reg 0x50.w

More helpful error messages when elfboot fails.
2001-09-20 17:31:08 +00:00
Ronald G. Minnich
ce4630e8d0 comment for why log_buf should NOT be static 2001-08-29 16:23:51 +00:00
Ronald G. Minnich
5d0eea342e Make log_buf global so I know where it is and can watch it with the arium.
Fix m754lmr/Config so it works with DoC
2001-08-29 16:22:50 +00:00
Eric W. Biederman
ed8c9d7e0d Code changes from my work and the AMD760MP chipset.
The primary changes is the way in which printk works.
But there are many other assorted code cleanups.
Just look and see :)
2001-08-08 02:45:10 +00:00
Eric W. Biederman
228148aa23 Start of merge from work on the AMD760MP platform.
This is the safe part just additions to files, and comment changes
2001-08-07 19:46:37 +00:00