coreboot.git
14 years agoVarious Kconfig fixes and improvements:
Uwe Hermann [Wed, 7 Oct 2009 16:15:40 +0000 (16:15 +0000)]
Various Kconfig fixes and improvements:

 - Add helps texts to multiple user-visible Kconfig options.

 - Improve some menu and option names.

 - PAYLOAD_NONE should come before PAYLOAD_ELF, so that you scroll down
   (instead of up) when changing "no payload" to "ELF payload" (more
   intuitive, IMHO).

 - s/cbfs/cbfstool/.

 - Add some TODO items where needed.

 - Put GDB_STUB in a "Debugging" menu, no options should be top-level.
   There'll be more debug options later, I'm pretty sure.

 - Start converting help texts which are not user-visible to #-comments.

 - Re-order some options for more intuitive menus.

 - Set ARCH_X86 and ARCH_POWERPC to "default n", each boards selects them.

 - "Maximum reboot count" should proabably not be user-selectable, or at
   most if CONFIG_EXPERT (yet to be added) is enabled. It does definately
   not need its own "Misc options" menu.

 - Set PCI_ROM_RUN and VGA_ROM_RUN to "default y", most users will want to
   run option ROMs.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4734 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix intel board build on kconfig. MAX_CPUS was missing
Patrick Georgi [Wed, 7 Oct 2009 16:00:40 +0000 (16:00 +0000)]
Fix intel board build on kconfig. MAX_CPUS was missing

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4733 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoKconfig:
Patrick Georgi [Wed, 7 Oct 2009 15:30:58 +0000 (15:30 +0000)]
Kconfig:
- Add AMD Socket 754,
- Fix MCP55 boards (romstrap)
- Implement remaining MSI boards

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4732 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoEnable full ROM access on AMD CS5530(A) (needed for CBFS).
Uwe Hermann [Wed, 7 Oct 2009 14:36:16 +0000 (14:36 +0000)]
Enable full ROM access on AMD CS5530(A) (needed for CBFS).

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4731 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMore boards in kconfig, and moved -O2 flag for romcc into
Patrick Georgi [Wed, 7 Oct 2009 14:13:36 +0000 (14:13 +0000)]
More boards in kconfig, and moved -O2 flag for romcc into
ROMCCFLAGS, so boards can override it where necessary.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4730 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoUse
Uwe Hermann [Tue, 6 Oct 2009 22:25:21 +0000 (22:25 +0000)]
Use
  select UDELAY_TSC
  select TSC_X86RDTSC_CALIBRATE_WITH_TIMER2
for all 440BX and i810 boards as per Options.lb.

The UDELAY_IO / TSC / LAPIC / HPET setup will probably be checked
and improved later when the kconfig transition is done. For now
we keep the same values as in Options.lb.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4729 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoVarious fixes to Kconfig: All kconfig-boards should have a
Patrick Georgi [Tue, 6 Oct 2009 20:48:07 +0000 (20:48 +0000)]
Various fixes to Kconfig: All kconfig-boards should have a
complete set of variables now, though they might still have
the wrong values.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4728 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove duplicate device trees for Tyan s289x. Remove pre-CBFS statements.
Myles Watson [Tue, 6 Oct 2009 20:36:34 +0000 (20:36 +0000)]
Remove duplicate device trees for Tyan s289x.  Remove pre-CBFS statements.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4727 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoBackport facility to specify a local coreboot version suffix from v3.
Uwe Hermann [Mon, 5 Oct 2009 13:55:28 +0000 (13:55 +0000)]
Backport facility to specify a local coreboot version suffix from v3.

Tested on QEMU.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4726 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove svn:externals that pull in all kinds of useful tools that
Patrick Georgi [Mon, 5 Oct 2009 12:58:48 +0000 (12:58 +0000)]
Remove svn:externals that pull in all kinds of useful tools that
are not needed for building coreboot.

The website tells you where to get them individually.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4725 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoWithout these fixes the w83627dhg driver (which is currently not used by any
Stefan Reinauer [Mon, 5 Oct 2009 12:08:37 +0000 (12:08 +0000)]
Without these fixes the w83627dhg driver (which is currently not used by any
mainboard in the tree) does neither compile nor work.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4724 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofix building on Linux again, working around crude runtime OS detection.
Stefan Reinauer [Mon, 5 Oct 2009 10:23:36 +0000 (10:23 +0000)]
fix building on Linux again, working around crude runtime OS detection.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4723 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoPCI_ROM_RUN and CONSOLE_VGA are global options in Kconfig and
Uwe Hermann [Mon, 5 Oct 2009 00:07:12 +0000 (00:07 +0000)]
PCI_ROM_RUN and CONSOLE_VGA are global options in Kconfig and
should not be set in per-mainboard Kconfigs.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4722 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThe new CBFS based build system requires the whole ROM to be accessible
Uwe Hermann [Sun, 4 Oct 2009 23:50:06 +0000 (23:50 +0000)]
The new CBFS based build system requires the whole ROM to be accessible
in very early stages, otherwise the boot may hang like this because
the CBFS headers cannot be found/accessed:

  Uncompressing coreboot to RAM.
  Jumping to image.
  Check CBFS header at fffedfe0
  magic is ffffffff
  ERROR: No valid CBFS header found!
  CBFS:  Could not find file fallback/coreboot_ram
  Jumping to image.

This patch enables full ROM access on all 440BX boards right after the
serial init (and before CBFS headers are parsed).

Build-tested and runtime-tested on ASUS P2B-F.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4721 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis does away with CONFIG_ROM_PAYLOAD_START and CONFIG_PAYLOAD_SIZE.
Patrick Georgi [Sun, 4 Oct 2009 18:55:40 +0000 (18:55 +0000)]
This does away with CONFIG_ROM_PAYLOAD_START and CONFIG_PAYLOAD_SIZE.
Both were only really used in pre-cbfs, as the payload's size isn't
relevant for the build process anymore.

Various calculations in {no,}failovercalculation.lb are adapted
accordingly.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4720 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd initial kconfig support for all AMD GX1 boards.
Uwe Hermann [Sun, 4 Oct 2009 17:15:39 +0000 (17:15 +0000)]
Add initial kconfig support for all AMD GX1 boards.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4719 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis removes the uses of the buildrom utility and the coreboot.strip
Patrick Georgi [Sun, 4 Oct 2009 12:30:44 +0000 (12:30 +0000)]
This removes the uses of the buildrom utility and the coreboot.strip
intermediate file.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4718 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove a bit of pre-cbfs build system infrastructure.
Patrick Georgi [Sun, 4 Oct 2009 12:27:48 +0000 (12:27 +0000)]
Remove a bit of pre-cbfs build system infrastructure.
Payloads are compressed by cbfstool itself, no need for external tools.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4717 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove another FAILOVER variable. (trivial)
Patrick Georgi [Sat, 3 Oct 2009 21:13:36 +0000 (21:13 +0000)]
Remove another FAILOVER variable. (trivial)

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4716 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd gigabyte/m57sli support to Kconfig.
Harald Gutmann [Sat, 3 Oct 2009 21:06:53 +0000 (21:06 +0000)]
Add gigabyte/m57sli support to Kconfig.
Whitespace fixes to devicetree.cb

Signed-off-by: Harald Gutmann <harald.gutmann@gmx.net>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4715 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMove HAVE_FAILOVER_BOOT and USE_FAILOVER_IMAGE from
Patrick Georgi [Sat, 3 Oct 2009 21:04:13 +0000 (21:04 +0000)]
Move HAVE_FAILOVER_BOOT and USE_FAILOVER_IMAGE from
boards to global. It's not a per-board value, but
compatibility stuff.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4714 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTell vgabios code in a couple of boards/chipsets about CBFS
Patrick Georgi [Sat, 3 Oct 2009 16:27:48 +0000 (16:27 +0000)]
Tell vgabios code in a couple of boards/chipsets about CBFS

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4713 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove:
Patrick Georgi [Sat, 3 Oct 2009 16:24:58 +0000 (16:24 +0000)]
Remove:
- CONFIG_CBFS
- anything that's conditional on CONFIG_CBFS == 0
- files that were only included for CONFIG_CBFS == 0
In particular:
- elfboot
- stream boot code
- mini-filo and filesystems (depends on stream boot code)

After this commit, there is no way to build an image that is not using
CBFS anymore.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4712 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove duplicate and not too useful Kconfig board comments as
Uwe Hermann [Sat, 3 Oct 2009 15:34:08 +0000 (15:34 +0000)]
Remove duplicate and not too useful Kconfig board comments as
per discussion on the mailing list.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4711 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove the Embedded Planet board.
Ronald G. Minnich [Fri, 2 Oct 2009 15:46:10 +0000 (15:46 +0000)]
Remove the Embedded Planet board.

Signed-off-by: Ronald G. Minnich <rminich@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4710 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove left-over targets/motorola/*, fix Dell PowerEdge 1850 name.
Uwe Hermann [Fri, 2 Oct 2009 12:45:18 +0000 (12:45 +0000)]
Remove left-over targets/motorola/*, fix Dell PowerEdge 1850 name.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4709 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove motorola PPC boards. These have lain untouched and unused by anyone
Ronald G. Minnich [Fri, 2 Oct 2009 03:36:30 +0000 (03:36 +0000)]
Remove motorola PPC boards. These have lain untouched and unused by anyone
for years.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4708 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoDrop remainders of the removed Totalimpact board. Fix typos.
Uwe Hermann [Fri, 2 Oct 2009 00:08:00 +0000 (00:08 +0000)]
Drop remainders of the removed Totalimpact board. Fix typos.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4707 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSupport variables for MMX and SSE. These would be used in
Ronald G. Minnich [Thu, 1 Oct 2009 23:22:50 +0000 (23:22 +0000)]
Support variables for MMX and SSE. These would be used in
e.g. Makefile.romcc.inc to enable certain features.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4706 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd some trivial numbers for 945, and Core2 Duo E8200 Intel parts
Peter Stuge [Thu, 1 Oct 2009 22:34:18 +0000 (22:34 +0000)]
Add some trivial numbers for 945, and Core2 Duo E8200 Intel parts

Sorry, but I've forgotten where I found them. :\

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4705 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd romstrap to asus/m2v-mx_se in Kconfig.
Myles Watson [Thu, 1 Oct 2009 18:23:28 +0000 (18:23 +0000)]
Add romstrap to asus/m2v-mx_se in Kconfig.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Rudolf Marek <r.marek@assembler.cz>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4704 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoGet rid of the total impact. Vendor died 5 years ago and nobody cares.
Ronald G. Minnich [Thu, 1 Oct 2009 16:51:36 +0000 (16:51 +0000)]
Get rid of the total impact. Vendor died 5 years ago and nobody cares.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4703 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix Kconfig build for K8 boards.
Myles Watson [Thu, 1 Oct 2009 16:24:58 +0000 (16:24 +0000)]
Fix Kconfig build for K8 boards.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4702 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoOK, this builds and even looks right. dell needs its own Makefile.inc because
Ronald G. Minnich [Thu, 1 Oct 2009 15:59:49 +0000 (15:59 +0000)]
OK, this builds and even looks right. dell needs its own Makefile.inc because
it is a P4 and it needs SSE for romcc not to go into infinite loop.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4701 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agotypo
Ronald G. Minnich [Thu, 1 Oct 2009 15:47:14 +0000 (15:47 +0000)]
typo

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4700 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoWe need this to be Kconfig. The old way is not trusted by me.
Ronald G. Minnich [Thu, 1 Oct 2009 15:41:39 +0000 (15:41 +0000)]
We need this to be Kconfig. The old way is not trusted by me.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4699 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis is now set up more like the real hardware likes it.
Ronald G. Minnich [Thu, 1 Oct 2009 00:02:28 +0000 (00:02 +0000)]
This is now set up more like the real hardware likes it.
Some of this trickery was determined with serialice.
There are several lovely undocumented features to the chipset.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4698 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix payload loading in various corner cases when working
Patrick Georgi [Wed, 30 Sep 2009 21:36:38 +0000 (21:36 +0000)]
Fix payload loading in various corner cases when working
with the bounce buffer.
In particular, the not-so-rare configuration of AMD boards with RAMBASE at
2MB shouldn't crash anymore for payloads that take > 1MB in total

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4697 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoCompress stage if CONFIG_COMPRESS is activated, instead of
Patrick Georgi [Wed, 30 Sep 2009 19:54:15 +0000 (19:54 +0000)]
Compress stage if CONFIG_COMPRESS is activated, instead of
relying on payload compression configuration (disabled when
using abuild without payload, for example)

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4696 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoHm, quickfix to prevent the following crash, no idea yet what happens:
Uwe Hermann [Wed, 30 Sep 2009 17:14:24 +0000 (17:14 +0000)]
Hm, quickfix to prevent the following crash, no idea yet what happens:

*** glibc detected *** ././inteltool: double free or corruption (top): 0x08db0260 ***

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4695 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd initial inteltool support for Intel 440BX/440LX and 82371AB/EB/MB.
Maciej Pijanka [Wed, 30 Sep 2009 17:05:46 +0000 (17:05 +0000)]
Add initial inteltool support for Intel 440BX/440LX and 82371AB/EB/MB.

Signed-off-by: Maciej Pijanka <maciej.pijanka@gmail.com>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4694 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd supermicro h8dmr fam10 target. This is largely a mashup of the tyan s2912
Ward Vandewege [Wed, 30 Sep 2009 14:46:43 +0000 (14:46 +0000)]
Add supermicro h8dmr fam10 target. This is largely a mashup of the tyan s2912
fam10 and h8dmr k8 targets.

Many, many thanks to Marc, Myles, Patrick and Stepan for all their help with
this, and to Arne for doing the s2912 fam10 port.

Build and boot tested. Abuild tested.

There are a number of outstanding issues and caveats - see src/mainboard/supermicro/h8dmr_fam10/README.

Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4693 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix endless loop when trying to add a too large file to CBFS,
Patrick Georgi [Wed, 30 Sep 2009 11:21:18 +0000 (11:21 +0000)]
Fix endless loop when trying to add a too large file to CBFS,
and report the correct error code, and a hopefully helpful
error message.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4692 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake CONFIG_HAVE_HIGH_TABLES consistent in where and how it is set.
Myles Watson [Tue, 29 Sep 2009 21:35:48 +0000 (21:35 +0000)]
Make CONFIG_HAVE_HIGH_TABLES consistent in where and how it is set.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4691 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove pre-CBFS _vgabios_start and _vgabios_end.
Myles Watson [Tue, 29 Sep 2009 20:24:09 +0000 (20:24 +0000)]
Remove pre-CBFS _vgabios_start and _vgabios_end.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4690 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoA keyboard controller fix to stop the code from waiting for a code that never
Marc Jones [Tue, 29 Sep 2009 19:12:23 +0000 (19:12 +0000)]
A keyboard controller fix to stop the code from waiting for a code that never
comes.  Boot tested on SimNOW (fixes the hang there), and Tyan s2895.

Signed-off-by: Marc Jones <marcj303@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4689 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix a number of board names in Kconfig (trivial).
Uwe Hermann [Tue, 29 Sep 2009 18:15:06 +0000 (18:15 +0000)]
Fix a number of board names in Kconfig (trivial).

Also, simplify the M2V-MX SE Kconfig file a bit while I'm at it.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4688 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove MAINBOARD_OPTIONS, which is a relic from early
Patrick Georgi [Tue, 29 Sep 2009 17:28:13 +0000 (17:28 +0000)]
Remove MAINBOARD_OPTIONS, which is a relic from early
kconfig development.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4687 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove some warnings.
Myles Watson [Tue, 29 Sep 2009 14:56:15 +0000 (14:56 +0000)]
Remove some warnings.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4686 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMore consistent use of "default n" and "select XYZ" in
Patrick Georgi [Tue, 29 Sep 2009 14:38:10 +0000 (14:38 +0000)]
More consistent use of "default n" and "select XYZ" in
Kconfig files

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4685 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake the error messages somewhat less incomprehensible. I forget
Ronald G. Minnich [Tue, 29 Sep 2009 13:34:56 +0000 (13:34 +0000)]
Make the error messages somewhat less incomprehensible. I forget
what they mean every time I see them.

Add a proto. More work remains to be done.

Build tested on dell s1850.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4684 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial config fix for Serengeti Cheetah. Change a type and a default.
Myles Watson [Mon, 28 Sep 2009 22:36:40 +0000 (22:36 +0000)]
Trivial config fix for Serengeti Cheetah.  Change a type and a default.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4683 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial config fix for Serengeti Cheetah. Remove duplication, add a default.
Myles Watson [Mon, 28 Sep 2009 21:51:39 +0000 (21:51 +0000)]
Trivial config fix for Serengeti Cheetah.  Remove duplication, add a default.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4682 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis adds a simple script to build a default toolchain for coreboot
Stefan Reinauer [Sat, 26 Sep 2009 16:43:17 +0000 (16:43 +0000)]
This adds a simple script to build a default toolchain for coreboot
compilation, to be independent of broken or missing OS/distribution
tool chains.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4681 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis patch changes following in getpir application.
Mohamed Mansoor [Sat, 26 Sep 2009 16:18:22 +0000 (16:18 +0000)]
This patch changes following in getpir application.

1 - Moved the check sum validation to probe_table function.
2 - Proper handling of resources allocated.
3 - Signature check is done in 16 byte boundaries.
4 - irq_tables.c file is created only if a valid PIRQ table is found.
5 â€“ Makefile and README file are modified accordingly.

Signed-off-by: Mohamed Mansoor <mansoor@iwavesystems.com>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4680 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago* drop libgcc from coreboot_apc.o, not needed.
Stefan Reinauer [Sat, 26 Sep 2009 15:52:05 +0000 (15:52 +0000)]
* drop libgcc from coreboot_apc.o, not needed.
* wrap libgcc calls into regparm(0) variants so that coreboot can be compiled
  with other regparm values

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4679 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agocheck for ELF payloads in cbfstool
Cristi Magherusan [Fri, 25 Sep 2009 22:21:47 +0000 (22:21 +0000)]
check for ELF payloads in cbfstool

Signed-off-by: Cristi Magherusan <cristi.magherusan@net.utcluj.ro>
Acked-by: Cristi Magherusan <cristi.magherusan@net.utcluj.ro>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4678 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agodrop some dead code, clarify small comments and small cleanups to malloc.c
Stefan Reinauer [Fri, 25 Sep 2009 21:59:57 +0000 (21:59 +0000)]
drop some dead code, clarify small comments and small cleanups to malloc.c

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4677 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoimprove lzma error messages. When coreboot panics because lzma decompression
Stefan Reinauer [Fri, 25 Sep 2009 21:57:25 +0000 (21:57 +0000)]
improve lzma error messages. When coreboot panics because lzma decompression
goes wrong, it might not be clear that it's lzma that failed, if the log level
is low enough..

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4676 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial fixups to get this board further along.
Ronald G. Minnich [Fri, 25 Sep 2009 19:53:59 +0000 (19:53 +0000)]
Trivial fixups to get this board further along.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4675 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix build of romcc boards.
Myles Watson [Fri, 25 Sep 2009 19:09:23 +0000 (19:09 +0000)]
Fix build of romcc boards.

Invalid option specified: -mcpu=-mcpu=p2
romcc 0.71 released 03 April 2009

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4674 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agosome progress on kconfig:
Patrick Georgi [Fri, 25 Sep 2009 18:43:02 +0000 (18:43 +0000)]
some progress on kconfig:
- northbridges are done
- southbridges are done
- Intel CPUs are done, with a design that the board only has to specify
  the socket it has, and the CPUs are pulled in automatically. There is
  some more cleanup possible in that area, but I'll do that later
- a couple more mainboards compile:
  - intel/eagleheights
  - intel/jarrell
  - intel/mtarvon
  - intel/truxton
  - intel/xe7501devkit
  - sunw/ultra40
  - supermicro/h8dme
  - tyan/s2850
  - tyan/s2875
  - via/epia
  - via/epia-cn
  - via/epia-m
  - via/epia-m700
  - via/epia-n
  - via/pc2500e
(PPC not considered, probably overlooked something)

All of them only _build_, but some options are probably completely
wrong. To be fixed later

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4673 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRename CONFIG_SERIAL_CONSOLE to match newconfig.
Myles Watson [Fri, 25 Sep 2009 17:24:08 +0000 (17:24 +0000)]
Rename CONFIG_SERIAL_CONSOLE to match newconfig.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4672 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake build_opt_tbl depend on config.h since it uses it. This fixes:
Myles Watson [Thu, 24 Sep 2009 16:56:08 +0000 (16:56 +0000)]
Make build_opt_tbl depend on config.h since it uses it.  This fixes:

    GEN        build/build.h
    OPTION     option_table.h
Error - Range end (122) does not match define (125) in line
checksum 392 983 984

This happens when you switch from one board to another with incompatible CMOS
defines.  'make clean' didn't help.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4671 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove HyperTransport support from boards that don't need it.
Myles Watson [Thu, 24 Sep 2009 15:09:11 +0000 (15:09 +0000)]
Remove HyperTransport support from boards that don't need it.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4670 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRe-enable option table for the ASUS MEW-VM and fix build.
Uwe Hermann [Thu, 24 Sep 2009 14:05:19 +0000 (14:05 +0000)]
Re-enable option table for the ASUS MEW-VM and fix build.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4669 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd detection support for the SMSC FDC37M602.
Uwe Hermann [Thu, 24 Sep 2009 12:17:07 +0000 (12:17 +0000)]
Add detection support for the SMSC FDC37M602.

The ID was found on a Biostar M6TLD board (not mentioned in the
FDC37M60x datasheet, though).

Thanks Maciej Pijanka <maciej.pijanka@gmail.com> for the report.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4668 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoTrivial fix for kbuildall: initialize "i", not CURRENTARGET [sic]
Patrick Georgi [Thu, 24 Sep 2009 09:28:41 +0000 (09:28 +0000)]
Trivial fix for kbuildall: initialize "i", not CURRENTARGET [sic]
that isn't used anywhere.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4667 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMake all Kconfig enabled boards build (tested with kbuildall).
Patrick Georgi [Thu, 24 Sep 2009 09:03:06 +0000 (09:03 +0000)]
Make all Kconfig enabled boards build (tested with kbuildall).
Also enable building individual boards with kbuildall for
debugging.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4666 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofix some wrong occurences of the FSF's address (trivial)
Stefan Reinauer [Wed, 23 Sep 2009 21:53:25 +0000 (21:53 +0000)]
fix some wrong occurences of the FSF's address (trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4665 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofix some wrong versions of the FSF's address (trivial)
Stefan Reinauer [Wed, 23 Sep 2009 21:52:45 +0000 (21:52 +0000)]
fix some wrong versions of the FSF's address (trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4664 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix the bounce_size global so that the bounce buffer works with CBFS.
Myles Watson [Wed, 23 Sep 2009 20:32:21 +0000 (20:32 +0000)]
Fix the bounce_size global so that the bounce buffer works with CBFS.

Make self_boot() static.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4663 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoLooks like this should have become cpu init code after growing up. The
Stefan Reinauer [Wed, 23 Sep 2009 18:54:18 +0000 (18:54 +0000)]
Looks like this should have become cpu init code after growing up. The
remaining questions are:

- Why was it never used?
- Why is it in /src and not in /src/cpu/ppc?

Given this is dead code and part of an unmaintained powerpc port, I consider
removing it trivial. (The code really does not do much)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4662 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agosimplify source tree hierarchy: move files from sdram/ and ram/ to lib/
Stefan Reinauer [Wed, 23 Sep 2009 18:51:03 +0000 (18:51 +0000)]
simplify source tree hierarchy: move files from sdram/ and ram/ to lib/
It's only three files. Also fix up all the paths (Gotta love included C files)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4661 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoAdd Kconfig support for Tyan s2881.
Myles Watson [Wed, 23 Sep 2009 17:59:56 +0000 (17:59 +0000)]
Add Kconfig support for Tyan s2881.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4660 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSeparate payload compression from stage compression.
Myles Watson [Wed, 23 Sep 2009 17:48:28 +0000 (17:48 +0000)]
Separate payload compression from stage compression.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4659 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoFix compilation for serengeti when HAVE_ACPI_TABLES is set. Trivial.
Myles Watson [Tue, 22 Sep 2009 22:08:47 +0000 (22:08 +0000)]
Fix compilation for serengeti when HAVE_ACPI_TABLES is set.  Trivial.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4658 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agosrc/Kconfig: Remove HT-specific options.
Myles Watson [Tue, 22 Sep 2009 21:29:32 +0000 (21:29 +0000)]
src/Kconfig: Remove HT-specific options.
src/cpu/amd/socket_F/Kconfig: Remove second occurrence of CPU_SOCKET_TYPE.
src/mainboard/amd/serengeti_cheetah/Kconfig: Add HT_CHAIN_UNITID_BASE here, since it is board specific.
src/mainboard/tyan/s289X/Kconfig: Fix typo and change APIC_ID_OFFSET to match old config.
src/devices/Kconfig: Change default value of *_PLUGIN_SUPPORT to match old config.
src/southbridge/amd/amd8131/Makefile.inc: Remove check since it was a typo, and the correct variable is checked in the parent directory.
src/Makefile:Use devicetree.cb instead of Config.lb to generate static.c.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4657 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agofailoverR.diff: Revert my failover change since Kconfig only supports fallback.
Myles Watson [Tue, 22 Sep 2009 18:53:50 +0000 (18:53 +0000)]
failoverR.diff: Revert my failover change since Kconfig only supports fallback.
kconfig_s2892.dif: Add support for Tyan s2891, s2892, and s2895 to Kconfig.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4656 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agotables.diff: Add Kconfig dialogues for ACPI, MP_TABLE, ...
Myles Watson [Tue, 22 Sep 2009 18:49:08 +0000 (18:49 +0000)]
tables.diff: Add Kconfig dialogues for ACPI, MP_TABLE, ...
Kconfig_bools.diff: Change some more ints to bools, change some default values.
xip_size.diff: Make XIP_SIZE + XIP_BASE add up to 4GB.
smp.diff: set CONFIG_SMP based on MAX_CPUS.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4655 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis separates the code for each command in cbfstool. For the good and for the
Stefan Reinauer [Tue, 22 Sep 2009 15:58:19 +0000 (15:58 +0000)]
This separates the code for each command in cbfstool. For the good and for the
bad: It brings a certain amount of code duplication (some of which can be
cleaned up again, or get rid of by proper refactoring).
On the other hand now there's a very simple code flow for each command, rather
than for each operation. ie.

adding a file to a cbfs means:
 - open the cbfs
 - add the file
 - close the cbfs

rather than

open the cbfs:
 - do this for add, remove, but not for create

create a new lar
 - if we don't have an open one yet

add a file:
 - if we didn't bail out before

close the file:
 - if we didn't bail out before

The short term benefit is that this fixes a problem where cbfstool was trying
to add a file if you gave a non-existing command because it bailed out on
known, not on unknown commands.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4654 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago* guard all mallocs in cbfstool
Stefan Reinauer [Tue, 22 Sep 2009 15:55:01 +0000 (15:55 +0000)]
* guard all mallocs in cbfstool
* fix an issue that could lead to cbfstool writing outside of its allocated
  memory

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4653 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years ago.. make abuild Kconfig proof for the time being.
Stefan Reinauer [Tue, 22 Sep 2009 15:53:54 +0000 (15:53 +0000)]
.. make abuild Kconfig proof for the time being.

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4652 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoback out some overzealous renames
Stefan Reinauer [Tue, 22 Sep 2009 15:53:02 +0000 (15:53 +0000)]
back out some overzealous renames

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4651 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoKill dead comment.
Carl-Daniel Hailfinger [Tue, 22 Sep 2009 12:31:57 +0000 (12:31 +0000)]
Kill dead comment.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4650 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoHelp text for maximum and default console loglevel in Kconfig.
Carl-Daniel Hailfinger [Tue, 22 Sep 2009 12:22:35 +0000 (12:22 +0000)]
Help text for maximum and default console loglevel in Kconfig.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4649 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agor4534 introduced devicetree.cb in every mainboard directory, but didn't
Carl-Daniel Hailfinger [Tue, 22 Sep 2009 10:03:15 +0000 (10:03 +0000)]
r4534 introduced devicetree.cb in every mainboard directory, but didn't
copy any comment lines before the start of the device tree.
Fix up amd/pistachio and technexion/tim8960.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4648 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agor4646 enabled early usage of pci_{read,write}_config{8,16,32}
Carl-Daniel Hailfinger [Tue, 22 Sep 2009 09:43:25 +0000 (09:43 +0000)]
r4646 enabled early usage of pci_{read,write}_config{8,16,32}

This allows us to change
dword = pci_cf8_conf1.read32(&pbus, sm_dev->bus->secondary,
        sm_dev->path.pci.devfn, 0x64);

to the much more readable
dword = pci_read_config32(sm_dev, 0x64);

Clean up all PCI operations in mainboards based on AMD 690:
amd/pistachio
amd/dbm690t
technexion/tim8690

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4647 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoIf no pci access method has been set for the device tree so far (e.g.
Carl-Daniel Hailfinger [Tue, 22 Sep 2009 00:09:41 +0000 (00:09 +0000)]
If no pci access method has been set for the device tree so far (e.g.
during early coreboot_ram), pci_{read,write}_config{8,16,32} will die().
This patch changes pci_{read,write}_config{8,16,32} to use the existing
PCI access method autodetection infrastructure instead of die()ing.

Until r4340, any usage of pci_{read,write}_config{8,16,32} in
coreboot_ram before the device tree was set up resulted in either a
silent hang or a NULL pointer dereference. I changed the code in r4340
to die() properly with a loud error message. That still was not perfect,
but at least it allowed people to see why their new ports died.
Still, die() is not something developers like to see, and thus a patch
to automatically pick a sensible default instead of dying was created.
Of course, handling PCI access method selection automatically for
fallback purposes has certain limitations before the device tree is set
up. We only check if conf1 works and use conf2 as fallback. No further
tests are done.

This patch enables cleanups and readability improvements in early
coreboot_ram code:
Without this patch:
dword = pci_cf8_conf1.read32(&pbus, sm_dev->bus->secondary,
        sm_dev->path.pci.devfn, 0x64);
With this patch:
dword = pci_read_config32(sm_dev, 0x64);

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4646 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoI forgot to add CONFIG_VGA_BRIDGE_SETUP to the old build system.
Myles Watson [Thu, 17 Sep 2009 18:30:23 +0000 (18:30 +0000)]
I forgot to add CONFIG_VGA_BRIDGE_SETUP to the old build system.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4645 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoRemove warnings from Kconfig. Trivial.
Myles Watson [Thu, 17 Sep 2009 16:59:07 +0000 (16:59 +0000)]
Remove warnings from Kconfig.  Trivial.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4644 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoSeparate CONFIG_VGA_CONSOLE from CONFIG_VGA_BRIDGE_SETUP.
Myles Watson [Thu, 17 Sep 2009 16:54:46 +0000 (16:54 +0000)]
Separate CONFIG_VGA_CONSOLE from CONFIG_VGA_BRIDGE_SETUP.

Signed-off-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4643 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoMove VGA BIOS settings from the payload menu into it's own menu
Peter Stuge [Thu, 17 Sep 2009 16:21:31 +0000 (16:21 +0000)]
Move VGA BIOS settings from the payload menu into it's own menu

Remove dependency on PAYLOAD_ELF so that config items are shown.
Build tested. With this, coreboot.rom has a VGA BIOS optionrom added.

Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4642 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThere was a missing addition of the size of the .notes.pinfo
Ronald G. Minnich [Thu, 17 Sep 2009 15:35:08 +0000 (15:35 +0000)]
There was a missing addition of the size of the .notes.pinfo
section header which could lead to corrupted malloc arena.

Also, make cbfstool always build with debugging on. Performance
is not an issue here. Don't strip it either.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4641 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis is a patch for killing IPMI on the s1850 -- or at least geting the BMC
Ronald G. Minnich [Thu, 17 Sep 2009 00:28:29 +0000 (00:28 +0000)]
This is a patch for killing IPMI on the s1850 -- or at least geting the BMC
out of the way of the serial port. Tested extensively in user mode.
Works and gets the BMC out of my way, which is good, because there
are few more useless things than IPMI and the BMC.
The BMC, all by itself, is the cause of most of our problems in booting
and talking to these nodes.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4640 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agocopyright name error.
Ronald G. Minnich [Thu, 17 Sep 2009 00:24:52 +0000 (00:24 +0000)]
copyright name error.
I don't know what else to do for files generated by programs ...
Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4639 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agokbuildall is a utility that generates default configs for all
Patrick Georgi [Wed, 16 Sep 2009 20:18:03 +0000 (20:18 +0000)]
kbuildall is a utility that generates default configs for all
boards, builds them, and keeps the config and build logs around and
creates a roster of all boards and their build status.

abuild does this for the newconfig based buildsystem, kbuildall does
this for kconfig/kbuild.

It's supposed to be put in the tree as util/kbuildall/kbuildall, and
called like that (ie. from the top level directory).

The results can be found in kbuildall.results/ in the toplevel
directory, the roster is called _overview.txt ("_" to make sure it's
sorted before or after all the board files)

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4638 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoBuild cbfstool with debug flags and don't strip the executable
Patrick Georgi [Wed, 16 Sep 2009 08:19:07 +0000 (08:19 +0000)]
Build cbfstool with debug flags and don't strip the executable
from any symbol information.

Variant of Ron's patch.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4637 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoThis is an otherwise dead platform. I'm just committing the basics that
Ronald G. Minnich [Tue, 15 Sep 2009 23:38:27 +0000 (23:38 +0000)]
This is an otherwise dead platform. I'm just committing the basics that
let it build.

Signed-off-by: Ronald G. Minnich <rminnich@gmail.com>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4636 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

14 years agoDon't mix int and boolean for kconfig variables. It might work, it might not.
Patrick Georgi [Tue, 15 Sep 2009 20:40:31 +0000 (20:40 +0000)]
Don't mix int and boolean for kconfig variables. It might work, it might not.
trivial change.

Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4635 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1