Commit graph

219 commits

Author SHA1 Message Date
Ronald G. Minnich
019c4ca96b just fooling around ... hangs on the qlilinux box. 2002-03-27 03:37:14 +00:00
Ronald G. Minnich
cf7729a729 added spd scan for piix4e 2002-03-25 05:19:38 +00:00
Ronald G. Minnich
b101440e7d First cut at utilities to scan spd. 2002-03-25 05:14:21 +00:00
Ronald G. Minnich
68b925b9a4 sst39sf020 support 2002-03-21 22:41:11 +00:00
Ronald G. Minnich
1d76e822e7 added support for 39sf020 2002-03-21 22:40:40 +00:00
Li-Ta Lo
d59da5fde6 added ELF etherboot and 256kB flash config files 2002-03-21 02:27:46 +00:00
Li-Ta Lo
8052b47600 more ifdef stuff 2002-02-20 02:42:27 +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
a891ad7d7c Kernels are getting big! So erase all 8M of the MTD. 2002-02-02 15:46:42 +00:00
Ronald G. Minnich
1cc051f719 These are used to enable PIIX4E high flash addressing and flash write. 2002-02-01 17:13:08 +00:00
Ronald G. Minnich
7f521faec0 added instructions for compiling erase 2002-02-01 17:10:23 +00:00
Ronald G. Minnich
c71fd6aeeb added README and erase.c 2002-02-01 17:09:25 +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
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
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
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
70305464cb Add a small program to dump the linuxBIOS config tables... 2002-01-21 21:16:06 +00:00
Li-Ta Lo
b9f139241c change the install prefix to /usr/local 2002-01-17 10:21:02 +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
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
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
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
da5f5bfee7 removing old test12 config file 2002-01-07 01:57: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
Ronald G. Minnich
23337bf8bf Added the 'payload' command.
Changed script from vmlinux.* to payload.*

linux command now calls payload
2001-12-14 00:05:52 +00:00
Ronald G. Minnich
afe769f4a1 getpir will get PIRQ tables for linuxbios 2001-12-10 19:16:57 +00:00
Ronald G. Minnich
6ad1cb6448 burn_mtd.old is the old dumb script that does insmod by hand.
burn_mtd now uses modprobe
2001-12-07 00:50:15 +00:00
Ronald G. Minnich
bc91d65e48 Fixes for a bug that improperly set 0x0:1.0:45 to 0 instead of 0x40 2001-12-07 00:43:26 +00:00
Li-Ta Lo
dd2204d00d fixed a old bug in flash unlock 2001-11-30 09:51:24 +00:00
Li-Ta Lo
64e3a29930 modification to fit with Eric's older update 2001-11-13 05:08:11 +00:00
Ronald G. Minnich
0222d47c61 Changed
option SERIAL_CONSOLE
to
option SERIAL_CONSOLE=1
2001-11-08 02:06:37 +00:00
Li-Ta Lo
929efbd797 add SERIAL_CONSOLE=1 2001-11-06 04:26:19 +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
e433002b05 Fixes for the K7 so it will compile, but print out the fact that it will be
slow.

Notes on K7 MSRs.
2001-11-02 18:14:09 +00:00
Ronald G. Minnich
3be04423cd Fixed .config files (remove arch command)
Add support for new mainboard and chipset combos
2001-10-30 17:22:50 +00:00
Ronald G. Minnich
3260d101ea Support for ASUS CUA and other M1631 mainboards. 2001-10-25 03:15:52 +00:00
Eric W. Biederman
6032f86410 make.base
Add rule for ldscript.ld
printk.h
      Fix typo it should be printk_alert not printk_alart...
NLBConfig.py
      - Removed some dead code
      - Modified mainboardinit and ldscript to act like my recently modified
        object command and take as a suffix a config option that must be
        set to one for them to work.
      - No longer generate ldscript.ld instead generate ldoptions and
        the variable LDSUBSCRIPTS-1.
2001-08-22 01:07:18 +00:00
Li-Ta Lo
ed79fb980d added SPD dump utility 2001-08-21 06:43:55 +00:00
Eric W. Biederman
e1b09246c2 Compile fixes from linuxBIOS hopefully it works for everyone again.
crt0.base
     - SMP compile fixes
     - No longer unconditionally include cpu/p5/start32.inc
         (it's been renamed  cpu/i386/entry16.inc)
ldscript.base
     - Simplfied, and moved some content into reset16.lds and entry16.lds
stddef.h
     - Use C style comments for #endif /* I386_STDDEF_H */
pirq_routing.h
     - The define is HAVE_PIRQ_TABLE not HAVE_PIRQ_ROUTING_TABLE
mtrr.c
     - Remove the need for defining INTEL_PPRO_MTRR
mainboard/xxx/Config
     - start32.inc is no longer automatically included include
       entry16.inc and reset16.inc where appropriate
       In particular if we are using a docipl we don't want
       reset16.inc or reset16.lds
tyan/guiness/mptable.c
     - Removed spurious define USE_ALL_CPUS
northbridge/intel/440gx/
     - Updated to compile with the factored generic memory code.
nortsouthbridge/sis/xxx/
     - Remove includes of northsouthbridge/sis/630/param.h did I add them?
       The file is gone now so including it is just bad...
NLBConfig.py
      - Allow relative filename arguments
      - Add directive ldscript to add an include file into
        our linker script
      - Fixed docipl to use strings when calling set_option
      - Allow target the target directive to use relative paths
      - Add extra dependencies to ldscript.lds
2001-08-21 02:37:35 +00:00