coreboot.git
15 years agoRefactor copy_and_run so that it uses a single code base instead of
Patrick Georgi [Thu, 30 Apr 2009 07:07:22 +0000 (07:07 +0000)]
Refactor copy_and_run so that it uses a single code base instead of
3 (with one of them way too much assembler code).

On the way, I had to make some changes to the way the code is built,
which is an effort I want to expand over time.
Right now, large portions of the in-ROM part of coreboot is compiled as
a single file, with lots of .c files including other .c files.
That has its justification for pre-raminit code, but it also affects
lots of post-raminit code (memcpy doesn't really make sense before
raminit, or at least CAR)

The coreboot_apc code (AMD boards) gained some .c includes because I
don't know that part of the code enough to really rework it and only
have limited possibilities to test it. The includes should give an
identical situation for this part of the code.

This change was posted as set of 6 patches to the list, but they
were mostly split for review purposes, hence commit them all at once.
They can still be backed up using the patch files, if necessary.

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@4233 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoincrease image size
Stefan Reinauer [Wed, 29 Apr 2009 20:34:41 +0000 (20:34 +0000)]
increase image size

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

15 years agoworking memalign version for libpayload. This fixes problems with the USB stack
Stefan Reinauer [Wed, 29 Apr 2009 19:11:18 +0000 (19:11 +0000)]
working memalign version for libpayload. This fixes problems with the USB stack
in FILO.

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

15 years agoMostly cosmetical changes.
Stefan Reinauer [Wed, 29 Apr 2009 19:10:10 +0000 (19:10 +0000)]
Mostly cosmetical changes.
- #if 0 some incomplete, non-working code instead of failing half way through
  the function
- Don't read a NULL pointer in wclrtoeol

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

15 years agodon't initialize "in" as it is initialized again one line below.
Stefan Reinauer [Wed, 29 Apr 2009 19:09:19 +0000 (19:09 +0000)]
don't initialize "in" as it is initialized again one line below.

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

15 years agogetopt for libpayload. in case someone wants to pass parameters to payloads and
Stefan Reinauer [Wed, 29 Apr 2009 19:08:29 +0000 (19:08 +0000)]
getopt for libpayload. in case someone wants to pass parameters to payloads and
parse them.

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

15 years agodd the family10h Rev C0-C2 support to coreboot.
Vincent Lim vincent.lim [Tue, 28 Apr 2009 16:36:16 +0000 (16:36 +0000)]
dd the family10h Rev C0-C2 support to coreboot.

Signed-off-by: Vincent Lim vincent.lim@amd.com
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4227 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix warning: no return statement in function returning non-void
Stefan Reinauer [Tue, 28 Apr 2009 14:49:50 +0000 (14:49 +0000)]
fix warning: no return statement in function returning non-void

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

15 years agoOnly add ACPI tables if ACPI is enabled for the board.
Patrick Georgi [Tue, 28 Apr 2009 14:49:21 +0000 (14:49 +0000)]
Only add ACPI tables if ACPI is enabled for the board.
Trivial fix to make abuild happy.

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@4225 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEnable HAVE_HIGH_TABLES by default for northbridges with
Patrick Georgi [Tue, 28 Apr 2009 14:18:16 +0000 (14:18 +0000)]
Enable HAVE_HIGH_TABLES by default for northbridges with
support for it.
The related mainboards don't need to activate it
themselves anymore.

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

15 years agoadd_mainboard_resources is necessary for some boards (eg. kontron), but
Patrick Georgi [Tue, 28 Apr 2009 12:57:25 +0000 (12:57 +0000)]
add_mainboard_resources is necessary for some boards (eg. kontron), but
this generic code could be added to the caller of
add_mainboard_resources (wrapped in HAVE_HIGH_TABLES, of course).
That way, boards that really need it (for other things) can use this
function, while others don't have to do anything to use
HAVE_HIGH_TABLES.

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

15 years agoAdd high table support to via vt8454c.
Patrick Georgi [Mon, 27 Apr 2009 20:19:48 +0000 (20:19 +0000)]
Add high table support to via vt8454c.

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@4222 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd high tables support for Supermicro H8DME.
Ward Vandewege [Mon, 27 Apr 2009 20:19:06 +0000 (20:19 +0000)]
Add high tables support for Supermicro H8DME.

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

15 years agoSpecial handling for MP table in low memory is only necessary if there are
Ward Vandewege [Mon, 27 Apr 2009 20:00:29 +0000 (20:00 +0000)]
Special handling for MP table in low memory is only necessary if there are
tables in low memory.

This removes a hang when HAVE_LOW_TABLES=0 and HAVE_HIGH_TABLES=1. With this
patch I can boot all the way to a payload. Tested on a Supermicro H8DME.

Many thanks to Patrick Georgi for figuring this out.

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

15 years agoMigrate via/vt8454c to CBFS.
Patrick Georgi [Mon, 27 Apr 2009 18:31:09 +0000 (18:31 +0000)]
Migrate via/vt8454c to CBFS.

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@4219 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoCreate a valid stack pointer after leaving CAR, so function calls don't
Patrick Georgi [Mon, 27 Apr 2009 18:26:43 +0000 (18:26 +0000)]
Create a valid stack pointer after leaving CAR, so function calls don't
reset the machine in the small window between CAR and coreboot_ram.

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@4218 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoRevert 4099 patch that causes an ECC error. Memory has to be written while ECC
Myles Watson [Mon, 27 Apr 2009 16:08:26 +0000 (16:08 +0000)]
Revert 4099 patch that causes an ECC error.  Memory has to be written while ECC
error checking is disabled.  The purpose of the patch was to preserve memory
used by ACPI resume code.  One possible solution is to read that memory and
write it back while ECC error-checking is disabled.

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

15 years agoChange Flashrom's URL to svn://coreboot.org/flashrom/trunk.
Patrick Georgi [Sun, 26 Apr 2009 19:50:53 +0000 (19:50 +0000)]
Change Flashrom's URL to svn://coreboot.org/flashrom/trunk.

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@4216 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFlashrom is now moved over to its own repository.
Patrick Georgi [Sun, 26 Apr 2009 18:17:40 +0000 (18:17 +0000)]
Flashrom is now moved over to its own repository.
Add a note to the coreboot-v2 version of the tree that
contains the new location.

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@4215 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoUse pci_rom, as we have it. Thanks Myles!
Patrick Georgi [Sun, 26 Apr 2009 07:20:45 +0000 (07:20 +0000)]
Use pci_rom, as we have it. Thanks Myles!
trivial 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@4214 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoTrivial: allow "," in filenames
Patrick Georgi [Sun, 26 Apr 2009 07:15:19 +0000 (07:15 +0000)]
Trivial: allow "," in filenames

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@4213 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoEnable CBFS for qemu and kontron. Both are builds-and-runs
Patrick Georgi [Sat, 25 Apr 2009 22:15:29 +0000 (22:15 +0000)]
Enable CBFS for qemu and kontron. Both are builds-and-runs
tested, incl. optionrom-in-cbfs for kontron, and compressed payloads
for both.

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@4212 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThe flashrom makefile wants to redirect both stdout and stderr to
Stephan Guilloux [Sat, 25 Apr 2009 22:07:28 +0000 (22:07 +0000)]
The flashrom makefile wants to redirect both stdout and stderr to
/dev/null for one compile test.
The old variant of using &>/dev/null works on bash and zsh, but not on
dash and tcsh. dash and tcsh interpret it as "background command and
truncate /dev/null" which is not what we want. >& works on tcsh and
bash, but it is not POSIX compliant.
Since make uses /bin/sh and /bin/sh has to be POSIX compliant, we can
use the POSIX variant of stderr and stdout redirection.

>/dev/null 2>&1
is POSIX compliant. This is specified in SuSv3, Shell Command Language,
sections 2.7.2 and 2.7.6.

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Ward Vandewege <ward@gnu.org>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4211 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoMake the CBFS file lookup skip file data instead of brute-forcing
Patrick Georgi [Sat, 25 Apr 2009 14:39:12 +0000 (14:39 +0000)]
Make the CBFS file lookup skip file data instead of brute-forcing
its way through it, looking for magic numbers.
For one, it should speed up file access, esp. with many entries,
but it also helps against false positives (eg. seabios, which
contains the magic number for its own CBFS support, which _might_
just be aligned properly)

Also avoid infinite loops and give up searching for new files for
invalid magic numbers.

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@4210 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThe master cbfs record was located at the end of the flash and overwrote
Myles Watson [Sat, 25 Apr 2009 12:39:04 +0000 (12:39 +0000)]
The master cbfs record was located at the end of the flash and overwrote
anything that was there.  For ck804 or mcp55-based machines that was the
romstrap.

The fix is simple:
1. Put the master cbfs record above the bootblock instead of on it.

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

15 years agoEnable cbfs payload compression (the "l" flag) if payloads are
Patrick Georgi [Sat, 25 Apr 2009 07:33:25 +0000 (07:33 +0000)]
Enable cbfs payload compression (the "l" flag) if payloads are
supposed to be compressed (with lzma only, as cbfstool lacks
nrv2b compression support for now)

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@4208 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoMove decompression further down the code flow, so that - where
Patrick Georgi [Sat, 25 Apr 2009 07:32:24 +0000 (07:32 +0000)]
Move decompression further down the code flow, so that - where
possible - code is decompressed directly to the right place
(instead of copying around, as before).

The downside of this approach is that it's not possible (without API
changes to the decompressors) to put partial segments into bounce
buffers. So if a segment collides with coreboot _and_ is compressed,
it's bounced entirely.
But, as this only brings back the copy we already had before, the new
worst case is better than the average before.

It also fixes handling of compressed segments.

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@4207 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoRemove the inclusion of lzma.c (which really contains code)
Patrick Georgi [Fri, 24 Apr 2009 16:44:34 +0000 (16:44 +0000)]
Remove the inclusion of lzma.c (which really contains code)
from another (rom_stream.c and others), instead linking it like any
source file should be linked.

The same should (and will) be done with nrv2b.c, but that has some
deeper implications as various CAR implementations include that
directly, and thus requires more care.

It fixes an issue with the cbfs code.

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@4206 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoMAX may already be defined. Also, fix smaller cosmetics (trivial).
Uwe Hermann [Fri, 24 Apr 2009 16:17:41 +0000 (16:17 +0000)]
MAX may already be defined. Also, fix smaller cosmetics (trivial).

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@4205 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAnother v3-style #ifdef in v2 to kill
Patrick Georgi [Fri, 24 Apr 2009 10:23:56 +0000 (10:23 +0000)]
Another v3-style #ifdef in v2 to kill

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@4204 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThese are some really horrible bugs that got through.
Ronald G. Minnich [Fri, 24 Apr 2009 06:32:29 +0000 (06:32 +0000)]
These are some really horrible bugs that got through.

(and, for the record: no more #ifdef in coreboot. We're not going to
have this happen again. If we do have it in v2, let's remove it.)

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@4203 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoChange the behaviour of the ACPI generating code so it only
Patrick Georgi [Fri, 24 Apr 2009 06:28:48 +0000 (06:28 +0000)]
Change the behaviour of the ACPI generating code so it only
writes at most one full ACPI table.
In the cases where both HAVE_LOW_TABLES and HAVE_HIGH_TABLES
are enabled, the table is written to high memory, and an RSDP
is written to the low memory that points to the high mem one.
All other cases work exactly the same way as before.

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@4202 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoRemove duplicate code.
Patrick Georgi [Fri, 24 Apr 2009 06:27:31 +0000 (06:27 +0000)]
Remove duplicate code.

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@4201 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Support MX25L3235D
Stephan Guilloux [Thu, 23 Apr 2009 22:51:56 +0000 (22:51 +0000)]
flashrom: Support MX25L3235D

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4200 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd 'install' target for ectool (trivial).
Uwe Hermann [Thu, 23 Apr 2009 22:22:47 +0000 (22:22 +0000)]
Add 'install' target for ectool (trivial).

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@4199 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFix an uninitialized variable. If it didn't end up being zero it sometimes
Myles Watson [Thu, 23 Apr 2009 18:46:32 +0000 (18:46 +0000)]
Fix an uninitialized variable.  If it didn't end up being zero it sometimes
caused a seg fault, sometimes executed somewhere else.  Also add an error if
the algorithm is unknown.

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

15 years agoThis patch cleans up Makefile generation. It removes the
Myles Watson [Thu, 23 Apr 2009 17:01:37 +0000 (17:01 +0000)]
This patch cleans up Makefile generation.  It removes the
coreboot.romfs file since CBFS will eventually be the standard.

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@4197 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoDon't duplicate option description in README, the manpage already has
Uwe Hermann [Thu, 23 Apr 2009 14:57:55 +0000 (14:57 +0000)]
Don't duplicate option description in README, the manpage already has
that info. Also, additional small cosmetic fix.

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@4196 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd VERSION to hp/dl145_g3. Trivial.
Myles Watson [Thu, 23 Apr 2009 13:41:12 +0000 (13:41 +0000)]
Add VERSION to hp/dl145_g3. 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@4195 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch hooks up git mirrored svn revisions and adds some
Carl-Daniel Hailfinger [Thu, 23 Apr 2009 13:05:45 +0000 (13:05 +0000)]
This patch hooks up git mirrored svn revisions and adds some
error checking to the svnrevision call.

If a .svn directory exists in the top level directory and the svnversion
utility is available, we use svnversion.
Otherwise, if a .git directory exists in the top level directory and the
git utility is available, we use git log.

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

15 years agoThis continues the doco attempt.
Ronald G. Minnich [Thu, 23 Apr 2009 03:59:33 +0000 (03:59 +0000)]
This continues the doco attempt.

This also mentions some ideas on the new booting setup for v2.

The latest changes will remove all need for people to do math.

With Peter's corrections as well.

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

15 years agoInstead of just
Stefan Reinauer [Wed, 22 Apr 2009 23:39:19 +0000 (23:39 +0000)]
Instead of just

  coreboot-v2 $ util/abuild/abuild -t kontron/986lcd-m $PWD

you can now also say

  coreboot-v2 $ util/abuild/abuild -t kontron/986lcd-m/Config-myconf.lb $PWD

and instead of using Config-abuild.lb or creating a temporary Config-abuild.lb,
abuild will use the existing Config-myconf.lb to build your image.

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

15 years agoSometimes when we debug the code, we need to know which version we are
Zheng Bao [Wed, 22 Apr 2009 23:27:25 +0000 (23:27 +0000)]
Sometimes when we debug the code, we need to know which version we are
working on.
Add the svn revision to the coreboot version string.

Signed-off-by: Zheng Bao <zheng.bao@amd.com>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4191 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomini fix to reliably compile inteltool on darwin, and on Linux both on x86/x86_64.
Stefan Reinauer [Wed, 22 Apr 2009 23:17:44 +0000 (23:17 +0000)]
mini fix to reliably compile inteltool on darwin, and on Linux both on x86/x86_64.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4190 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agomakes the smi handler a little bit less verbose
Stefan Reinauer [Wed, 22 Apr 2009 22:55:15 +0000 (22:55 +0000)]
makes the smi handler a little bit less verbose

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

15 years agofix compilation of hp dl145
Stefan Reinauer [Wed, 22 Apr 2009 22:43:02 +0000 (22:43 +0000)]
fix compilation of hp dl145

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

15 years agoThis patch fixes the parser. '|' has special meaning so [|] is used.
Myles Watson [Wed, 22 Apr 2009 22:25:45 +0000 (22:25 +0000)]
This patch fixes the parser.  '|' has special meaning so [|] is used.

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

15 years agoConvert 12 more boards to use include statements in Config.lb.
Carl-Daniel Hailfinger [Wed, 22 Apr 2009 22:08:00 +0000 (22:08 +0000)]
Convert 12 more boards to use include statements in Config.lb.

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@4186 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoTrivial patch. I forgot to update K8_SET_FIDVID.
Myles Watson [Wed, 22 Apr 2009 20:41:42 +0000 (20:41 +0000)]
Trivial patch.  I forgot to update K8_SET_FIDVID.

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

15 years agoThis patch adds the target hp/dl145_g3 together with
Mondrian nuessle [Wed, 22 Apr 2009 20:34:05 +0000 (20:34 +0000)]
This patch adds the target hp/dl145_g3 together with
the appropriate mainboard sources.

Signed-off-by: Mondrian nuessle <nuessle@uni-hd.de>
Acked-by: Samuel Verstraete <samuel.verstraete@gmail.com>
I updated some whitespace and the Config files. - Myles

git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4184 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch add rudimentary support for the superio functionality of
Mondrian nuessle [Wed, 22 Apr 2009 20:30:42 +0000 (20:30 +0000)]
This patch add rudimentary support for the superio functionality of
the Serverengines Pilot BMC chip. Necessary to get serial out on the
HP DL145 G3.

Signed-off-by: Mondrian nuessle <nuessle@uni-hd.de>
Acked-by: Samuel Verstraete <samuel.verstraete@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4183 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds support for the BCM21000 (aka HT-2100)
Mondrian nuessle [Wed, 22 Apr 2009 20:27:53 +0000 (20:27 +0000)]
This patch adds support for the BCM21000 (aka HT-2100)
PCIe bridge.

Signed-off-by: Mondrian nuessle <nuessle@uni-hd.de>
Acked-by: Samuel Verstraete <samuel.verstraete@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4182 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodrop duplicate compiler options that are already mentioned in CFLAGS.
Stefan Reinauer [Wed, 22 Apr 2009 18:16:20 +0000 (18:16 +0000)]
drop duplicate compiler options that are already mentioned in CFLAGS.
(scan-build chokes on this)

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

15 years ago- printed CBFS rom address was always 0
Stefan Reinauer [Wed, 22 Apr 2009 16:32:18 +0000 (16:32 +0000)]
- printed CBFS rom address was always 0
- drop dead code.

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

15 years agofix warnings, shadowed declarations and style guide violations (all trivial)
Stefan Reinauer [Wed, 22 Apr 2009 16:23:47 +0000 (16:23 +0000)]
fix warnings, shadowed declarations and style guide violations (all 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@4179 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoincrease rom sizes for abuild
Stefan Reinauer [Wed, 22 Apr 2009 15:49:28 +0000 (15:49 +0000)]
increase rom sizes for abuild
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4178 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAll "unknown xy SPI chip" entries claim to have status UNTESTED for
Carl-Daniel Hailfinger [Wed, 22 Apr 2009 13:33:43 +0000 (13:33 +0000)]
All "unknown xy SPI chip" entries claim to have status UNTESTED for
probe/read/erase/write. That is incorrect.

A bit of confusion comes from how the #defines are named. We call them
TEST_BAD_*, but the message printed by flashrom says:
"This flash part has status NOT WORKING for operations:"

Something that is unimplemented is definitely not working.

Neither of the chip entries mentioned above has erase or write functions
implemented, so erase and write are not working.
Since their size is unknown, we can't read them in. That means read is
not working as well.
Probing is a different matter. If a chip-specific probe function had
matched, we wouldn't have to handle the chip with the "unknown xy SPI
chip" fallback. I'm tempted to call that "not working" as well, but I'm
open to discussion on this point.

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

15 years agodrop unused variable.
Stefan Reinauer [Wed, 22 Apr 2009 12:38:23 +0000 (12:38 +0000)]
drop unused variable.

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

15 years agono duplicate names in cmos.layout allowed. (fixes a bunch of boards)
Stefan Reinauer [Wed, 22 Apr 2009 12:35:57 +0000 (12:35 +0000)]
no duplicate names in cmos.layout allowed. (fixes a bunch of boards)

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

15 years agoQuick 'indent' run on ectool with some additional manual cosmetic fixes.
Uwe Hermann [Wed, 22 Apr 2009 12:28:14 +0000 (12:28 +0000)]
Quick 'indent' run on ectool with some additional manual cosmetic fixes.

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@4174 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodon't ignore return values (trivial)
Stefan Reinauer [Wed, 22 Apr 2009 12:14:39 +0000 (12:14 +0000)]
don't ignore return values (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@4173 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoremove some style guide breaks and warnings from raminit_f_dqs.c
Stefan Reinauer [Wed, 22 Apr 2009 12:00:17 +0000 (12:00 +0000)]
remove some style guide breaks and warnings from raminit_f_dqs.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@4172 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoargh... never redo parts of the original patch on the fly. This fixes the tree
Stefan Reinauer [Wed, 22 Apr 2009 09:06:38 +0000 (09:06 +0000)]
argh... never redo parts of the original patch on the fly. This fixes the tree
again.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4171 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years ago* Allow coreboot to use the full 256 bytes of CMOS memory
Stefan Reinauer [Wed, 22 Apr 2009 09:03:08 +0000 (09:03 +0000)]
* Allow coreboot to use the full 256 bytes of CMOS memory
* Make functions out of the accessor macros in mc146818rtc.c
* don't hide reserved cmos entries from coreboot, only from the user.

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@4170 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch unifies the socket_mPGA604_800Mhz and socket_mPGA604_533Mhz to a
Stefan Reinauer [Wed, 22 Apr 2009 08:56:50 +0000 (08:56 +0000)]
This patch unifies the socket_mPGA604_800Mhz and socket_mPGA604_533Mhz to a
combined socket_mPGA604. No other sockets come with clock rates, and there is
no difference in code, except for the number of microcode patches included in a
build.

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@4169 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoFactor out acpi_create_madt_lapics. It can be used on all ACPI boards.
Stefan Reinauer [Wed, 22 Apr 2009 08:18:37 +0000 (08:18 +0000)]
Factor out acpi_create_madt_lapics. It can be used on all ACPI boards.

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

15 years ago* move i386 / ACPI dependent code out of hardwaremain.c and into the i386
Stefan Reinauer [Wed, 22 Apr 2009 08:17:38 +0000 (08:17 +0000)]
* move i386 / ACPI dependent code out of hardwaremain.c and into the i386
  acpi code.
* add some defines for FADT flags

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

15 years agoRemove the requirement for payload.sh files to be executable. This
Patrick Georgi [Wed, 22 Apr 2009 08:10:48 +0000 (08:10 +0000)]
Remove the requirement for payload.sh files to be executable. This
helps if the file is generated from patches, esp. if that happens
often (eg. with quilt)

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

15 years agoTrivial removal of a freudian slip.
Patrick Georgi [Wed, 22 Apr 2009 08:07:31 +0000 (08:07 +0000)]
Trivial removal of a freudian slip.

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@4164 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoA small utility to dump the RAM of a laptop's Embedded/Environmental
Stefan Reinauer [Wed, 22 Apr 2009 07:23:00 +0000 (07:23 +0000)]
A small utility to dump the RAM of a laptop's Embedded/Environmental
Controller. Nothing fancy, does not know any laptops, EC types, or what
the values mean. It just dumps them. For the dump method, have a look at
the ACPI 3.0b spec.

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

15 years ago- function prototypes do not need "extern"
Stefan Reinauer [Tue, 21 Apr 2009 23:05:13 +0000 (23:05 +0000)]
- function prototypes do not need "extern"
- fix up debug messages of usb debug console
(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@4162 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Add support for Gigabyte GA-MA790FX-DQ6. This board uses
Carl-Daniel Hailfinger [Tue, 21 Apr 2009 23:03:20 +0000 (23:03 +0000)]
flashrom: Add support for Gigabyte GA-MA790FX-DQ6. This board uses
IT8718F LPC->SPI translation for the flash chip.

Tested by Mateusz Murawski.

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

15 years agoremove a few warnings, and comments á la #include <foo.h> // include file foo.h
Stefan Reinauer [Tue, 21 Apr 2009 23:02:40 +0000 (23:02 +0000)]
remove a few warnings, and comments Ã¡ la #include <foo.h> // include file foo.h
(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@4160 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoadd define for Role-Based Error Reporting to PCIe defines (trivial)
Stefan Reinauer [Tue, 21 Apr 2009 23:01:10 +0000 (23:01 +0000)]
add define for Role-Based Error Reporting to PCIe defines (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@4159 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agofix a warning for a misnamed define, and make a debug message printk_debug
Stefan Reinauer [Tue, 21 Apr 2009 23:00:14 +0000 (23:00 +0000)]
fix a warning for a misnamed define, and make a debug message printk_debug
(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@4158 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoCONFIG_CHIP_NAME is dead (trivial)
Stefan Reinauer [Tue, 21 Apr 2009 22:59:00 +0000 (22:59 +0000)]
CONFIG_CHIP_NAME is dead (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@4157 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agosmall updates as suggested by Carl-Daniel Hailfinger.
Stefan Reinauer [Tue, 21 Apr 2009 22:05:50 +0000 (22:05 +0000)]
small updates as suggested by Carl-Daniel Hailfinger.

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

15 years agoUpdate to this very old document
Stefan Reinauer [Tue, 21 Apr 2009 21:45:11 +0000 (21:45 +0000)]
Update to this very old document

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

15 years agoAdd a helper function to acpigen to create _PSD tables.
Patrick Georgi [Tue, 21 Apr 2009 20:34:36 +0000 (20:34 +0000)]
Add a helper function to acpigen to create _PSD tables.

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@4154 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd an "-l <num>" argument to abuild that sets the LOGLEVEL variables
Patrick Georgi [Tue, 21 Apr 2009 20:31:18 +0000 (20:31 +0000)]
Add an "-l <num>" argument to abuild that sets the LOGLEVEL variables
to the specified value.

Only change Config-abuild.lb, as the others are for manual buildtarget
use - adding __LOGLEVEL__ there would kill the build as it isn't
replaced by the actual content.

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

15 years agoEliminate various issues brought up by scan-build.
Patrick Georgi [Tue, 21 Apr 2009 20:14:31 +0000 (20:14 +0000)]
Eliminate various issues brought up by scan-build.

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>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4152 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoscan-build prefers -include over --includes=, gcc knows both.
Patrick Georgi [Tue, 21 Apr 2009 12:41:55 +0000 (12:41 +0000)]
scan-build prefers -include over --includes=, gcc knows both.
With this change, romcc knows -include and the build system uses it.

Also use a full path to settings.h because scan-build has trouble
finding it otherwise.

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

15 years agoflashrom: Support Macronix MX2512805D flash chip
Stephan Guilloux [Tue, 21 Apr 2009 01:47:16 +0000 (01:47 +0000)]
flashrom: Support Macronix MX2512805D flash chip

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4150 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Trivial indent fix
Stephan Guilloux [Tue, 21 Apr 2009 01:46:07 +0000 (01:46 +0000)]
flashrom: Trivial indent fix

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4149 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoSomehow svn add didn't work for the include files. Commit the remainder
Carl-Daniel Hailfinger [Tue, 21 Apr 2009 00:25:23 +0000 (00:25 +0000)]
Somehow svn add didn't work for the include files. Commit the remainder
of r4147.

Thanks to Myles' patch adding support for include statements,
refactoring Config.lb became possible.

Factor out ROM size calculation from Config.lb.

This patch converts 87 boards (with and without USE_FAILOVER_IMAGE),
but it has to work around a parser bug.

89 files changed, 209 insertions(+), 2415 deletions(-)
A total of 2206 removed lines.

Abuild works for all changed boards on khepri.

Myles writes:
I've tested serengeti for the failover portion and s2892 for the
nofailover portion.  ldoptions are exactly the same and they both boot
the same.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4148 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThanks to Myles' patch adding support for include statements,
Carl-Daniel Hailfinger [Tue, 21 Apr 2009 00:16:06 +0000 (00:16 +0000)]
Thanks to Myles' patch adding support for include statements,
refactoring Config.lb became possible.

Factor out ROM size calculation from Config.lb.

This patch converts 87 boards (with and without USE_FAILOVER_IMAGE),
but it has to work around a parser bug.

89 files changed, 209 insertions(+), 2415 deletions(-)
A total of 2206 removed lines.

Abuild works for all changed boards on khepri.

Myles writes:
I've tested serengeti for the failover portion and s2892 for the
nofailover portion.  ldoptions are exactly the same and they both boot
the same.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Myles Watson <mylesgw@gmail.com>
Acked-by: Peter Stuge <peter@stuge.se>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4147 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAfter verification in datasheets, all MX25 accept the same opcodes
Stephan Guilloux [Mon, 20 Apr 2009 22:54:13 +0000 (22:54 +0000)]
After verification in datasheets, all MX25 accept the same opcodes
0x60 and 0xC7 for Chip Erase.

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

15 years agoA little more info. Failover docs are next, then proposed new mechanism
Ronald G. Minnich [Mon, 20 Apr 2009 22:10:34 +0000 (22:10 +0000)]
A little more info. Failover docs are next, then proposed new mechanism

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@4145 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoThis patch adds
Myles Watson [Mon, 20 Apr 2009 21:38:11 +0000 (21:38 +0000)]
This patch adds

cbfstool extract [FILE] [NAME]

It also factors out the csize calculation in rom_add, and fixes rom_delete so
that it can handle deleting the last entry.

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@4144 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoContinuing the slow doc-o update
Ronald G. Minnich [Mon, 20 Apr 2009 15:36:57 +0000 (15:36 +0000)]
Continuing the slow doc-o update
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@4143 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: board_enables: reconstruct table.
Luc Verhaegen [Mon, 20 Apr 2009 12:38:17 +0000 (12:38 +0000)]
flashrom: board_enables: reconstruct table.

This patch restores the pciid based board matching table. It makes this
table readable and hackable again, and the only disadvantage is that the
right margin is way beyond the rather dogmatic 80. All 0x0000 pci ids have
been string replaced by 0 to more easily spot missing ids, and extra
comments have been added to explain how the various entries are used.

Signed-Off-By: Luc Verhaegen <libv@skynet.be>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4142 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: Trivial README change Flashrom->flashrom
Peter Stuge [Mon, 20 Apr 2009 12:34:30 +0000 (12:34 +0000)]
flashrom: Trivial README change Flashrom->flashrom

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

15 years agoFix implicit declarations of done_cache_as_ram_main by adding a
Carl-Daniel Hailfinger [Mon, 20 Apr 2009 12:02:25 +0000 (12:02 +0000)]
Fix implicit declarations of done_cache_as_ram_main by adding a
prototype for these assembler functions.
Affected boards:
digitallogic/msm800sev
pcengines/alix1c

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@4140 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoflashrom: MX25L1605 and 1635 accept Chip Erase opcodes 60 and C7
Stephan Guilloux [Sun, 19 Apr 2009 23:24:26 +0000 (23:24 +0000)]
flashrom: MX25L1605 and 1635 accept Chip Erase opcodes 60 and C7

Signed-off-by: Stephan Guilloux <stephan.guilloux@free.fr>
Acked-by: Peter Stuge <peter@stuge.se>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4139 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd MX25L1635D support, as discussed on #coreboot.
Stephan Guilloux [Sun, 19 Apr 2009 23:04:00 +0000 (23:04 +0000)]
Add MX25L1635D support, as discussed on #coreboot.

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

15 years agoThere is a typo in amdk8/raminit_f.c regarding the preprocessor symbol QRANK_DIMM_SUP...
Ronald Hoogenboom [Sat, 18 Apr 2009 23:04:28 +0000 (23:04 +0000)]
There is a typo in amdk8/raminit_f.c regarding the preprocessor symbol QRANK_DIMM_SUPPORT in line 2208, which caused the protected code fragment never to be included for compilation.

Signed-off-by: Ronald Hoogenboom <hoogenboom30@zonnet.nl>
Acked-by: Marc Jones <marcj303@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4137 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agodrop the ChangeLog.cvsimport document from the transition from CVS
Stefan Reinauer [Sat, 18 Apr 2009 18:10:38 +0000 (18:10 +0000)]
drop the ChangeLog.cvsimport document from the transition from CVS
to GNU arch. Does anyone remember that? What a fun!
All history is in the SVN repository, including the CVS and TLA parts,
so nothing is lost.

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

15 years agoDrop long-obsolete HOWTO, it's still available in wikified form at
Uwe Hermann [Sat, 18 Apr 2009 17:22:11 +0000 (17:22 +0000)]
Drop long-obsolete HOWTO, it's still available in wikified form at
http://www.coreboot.org/VIA_EPIA-M.

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@4135 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agos/LinuxBIOS/coreboot/.
Uwe Hermann [Sat, 18 Apr 2009 14:18:20 +0000 (14:18 +0000)]
s/LinuxBIOS/coreboot/.

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@4134 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1

15 years agoAdd support for the ASUS P2B-D mainboard.
Uwe Hermann [Sat, 18 Apr 2009 14:02:00 +0000 (14:02 +0000)]
Add support for the ASUS P2B-D mainboard.

This is a pretty standard "yet another 440BX" target, so the code
is pretty straight-forward. It's a dual-CPU machine, which might need
some fixing, I'm booting with 'maxcpus=0' for now. It does boot
successfully up to a Linux login prompt, though.

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