Commit graph

396 commits

Author SHA1 Message Date
Ronald G. Minnich
37350e9af2 files for the advantech pcm-9574 2002-03-08 00:09:21 +00:00
Ronald G. Minnich
7edb511f7f Fix per Christer 2002-03-06 15:15:41 +00:00
Ronald G. Minnich
b9c4b06256 g2200 support! 2002-03-04 18:21:50 +00:00
Li-Ta Lo
8052b47600 more ifdef stuff 2002-02-20 02:42:27 +00:00
Li-Ta Lo
9180eb5955 leave more room for IPL in STD_FLASH case 2002-02-20 02:35:31 +00:00
Li-Ta Lo
9884a1a948 changed if define(SOMETHING) to if (SOMETHING == 1) 2002-02-20 02:30:29 +00:00
Ronald G. Minnich
447627d77a Added a config for etherboot 2002-02-19 17:11:12 +00:00
Ronald G. Minnich
70253f3293 PIRQ for CUA 2002-02-08 00:59:00 +00:00
Eric W. Biederman
3b3c4b5b49 Depricate the config syntax `option foo'' and assume people meant `option foo=1'' 2002-02-06 01:03:32 +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
Ronald G. Minnich
57eaa8b6f2 updates from users for ga-6bxc
one or two debugging things for the SBC710 and doc mil
2002-02-04 21:29:32 +00:00
Ronald G. Minnich
de68851989 Temp patch which fixes ipl.h 2002-02-02 23:53:49 +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
031d2a1ffd - Support for CMOS options
- Workaround cmos tables overlapping the traditional bios data segment
- Fixes to the p4dc6 examples to be syntactically correct
- Fixes to NLBConfig to fix the previos syntax error ``option foo bar'' is invalid
- Update docmil_fil_inbuf to only be compiled when the appropriate options are set
- Updates NLBConfig.py to export the variables MAINBOARD && TARGET_DIR
  as well as correct specify the generated files
2002-01-29 20:28:24 +00:00
Li-Ta Lo
6288325a73 add a few register value addording to updated BIOS guide 2002-01-28 09:29:11 +00:00
Ronald G. Minnich
0d2d0bf0d2 IRQ support for smartcore-p5 2002-01-23 17:51:03 +00:00
Ronald G. Minnich
da0d133106 Simple bug, dword write instead of byte write. 2002-01-23 00:18:59 +00:00
Ronald G. Minnich
fd1115297e irq tables for the smartcore-p5 2002-01-22 21:32:21 +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
Ronald G. Minnich
811a430c87 smartcore kernel patches 2002-01-22 17:26:58 +00:00
Ronald G. Minnich
f85eb0d48e k7sem support 2002-01-22 02:26:47 +00:00
Ronald G. Minnich
355f0b39be Added =1 for several options.
Undefined MAINBOARD_FIXUP_IN_CHARGE
2002-01-21 19:13:49 +00:00
Ronald G. Minnich
14441b1ce0 Simple for for sbc 710 config
comment out dumpnorth calls in 430tx code
2002-01-18 22:36:01 +00:00
Eric W. Biederman
bcced4ec0c Don't disable the CACHE_RAM_BASE option, I was testing something else
and this got left disabled, oops.
2002-01-17 17:49:31 +00:00
Li-Ta Lo
0ef499deaa fixed a very old buffer overflow bug 2002-01-17 10:20:28 +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
Eric W. Biederman
2ec40910ea Remove unneeded references to mkrom 2002-01-15 21:04:52 +00:00
Li-Ta Lo
342d2e218f added ALIGN(4) for .stream section 2002-01-14 06:29:13 +00:00
Ronald G. Minnich
2fe2c8b933 config.example for harddrive for k7sem 2002-01-12 23:21:10 +00:00
Ronald G. Minnich
b1d18823ce example config for k7sem 2002-01-12 20:39:21 +00:00
Ronald G. Minnich
5d8bf443c6 elitegroup k7sem 2002-01-12 19:53:53 +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
Ronald G. Minnich
3d44366025 Patches for 2.4.13 on l440gx, includes one debug dump but won't hurt anything. 2002-01-09 17:46:15 +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
Li-Ta Lo
15fbb207ba fixed some bugs Eric made when transfer to stream interface
also remove the NEW_DOC stuff
2002-01-07 02:51:33 +00:00
Li-Ta Lo
8aa141fada added opject command for timer.c 2002-01-04 07:00:26 +00:00
Li-Ta Lo
908f42a219 fixed some compilation error 2002-01-04 06:59:41 +00:00
Li-Ta Lo
46c64c2bd8 added PCI IDs for SiS900 2002-01-03 04:02:06 +00:00
Li-Ta Lo
f9af00c4ba minor clean up in PCI access routine 2002-01-03 04:01:37 +00:00
Li-Ta Lo
3135f8e83f use P5 TSC for timer function 2002-01-03 03:53:22 +00:00
Li-Ta Lo
3112b98021 add SiS 735 ID 2002-01-02 06:10:56 +00:00
Li-Ta Lo
c2ea9c4b37 use SHIFT free version of flash_addrress for all cases 2001-12-28 06:25:34 +00:00
Ronald G. Minnich
b3e1022eb2 This now works with two banks 2001-12-21 23:54:13 +00:00
Ronald G. Minnich
04f27d4746 Change to move to writes instead of reads for configuring DRAM 2001-12-21 22:47:50 +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