Commit graph

496 commits

Author SHA1 Message Date
Ronald G. Minnich
c71fd6aeeb added README and erase.c 2002-02-01 17:09:25 +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
Ronald G. Minnich
ac1bcc99b6 fixes 2002-01-29 20:18:02 +00:00
Ronald G. Minnich
7584a99913 dammit 2002-01-29 18:26:26 +00:00
Ronald G. Minnich
f938ec6a62 dammit 2002-01-29 18:26:01 +00:00
Ronald G. Minnich
45911646e1 Trying to make this general purpose user-land flash burner. 2002-01-29 18:21:41 +00:00
Li-Ta Lo
6288325a73 add a few register value addording to updated BIOS guide 2002-01-28 09:29:11 +00:00
Li-Ta Lo
1292c9e93d added config file for ELF boot on SiS 630 + DoC Mil 2002-01-28 09:26:50 +00:00
Eric W. Biederman
75783e063d Update to mkelfImage 1.12
- Fix bad heuristic in mkelfImage 1.11 where if I wasn't given a firmware
  type I assumed PCBIOS.
- Use objcopy to strip off extra symbols and the .ramdisk section if unused
- Fix typo linuxBIOS -> LinuxBIOS
2002-01-27 00:44:08 +00:00
Eric W. Biederman
bb176a0b85 Don't null terminate the first byte of the appended command line... 2002-01-24 23:18:02 +00:00
Ronald G. Minnich
0d2d0bf0d2 IRQ support for smartcore-p5 2002-01-23 17:51:03 +00:00
Eric W. Biederman
2a8454501c Fix the addresses scanned by dump_lb_table.c so that we actually find the linuxbios table. 2002-01-23 12:25:07 +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
595220a3ab Commit version 1.10 of mkelfImage. The big change is that it now generates
ELF notes especially an ELF checksum of the entire image.  This finishes
my proof of concept implementation of all significant features with respect
to ELF booting.  Now to do some native ports...
2002-01-22 18:03:40 +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
Eric W. Biederman
70305464cb Add a small program to dump the linuxBIOS config tables... 2002-01-21 21:16:06 +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
b9f139241c change the install prefix to /usr/local 2002-01-17 10:21:02 +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
5346fd33f9 Deleted makerom instead of mkrom oops 2002-01-15 21:09:55 +00:00
Eric W. Biederman
2ec40910ea Remove unneeded references to mkrom 2002-01-15 21:04:52 +00:00
Eric W. Biederman
c24de9ffa9 Remove the unneeded mkrom utility 2002-01-15 21:03:59 +00:00
Ronald G. Minnich
4687184cfa Added simple comments for 'usage' 2002-01-15 18:20:14 +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
6dbc1dc170 added a little comment in Makefile so people know how to run it. 2002-01-09 19:55:07 +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
Ronald G. Minnich
d9db3cd6c4 Jan Kok's fixes. 2002-01-07 17:09:23 +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
da5f5bfee7 removing old test12 config file 2002-01-07 01:57:35 +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