Edward O'Callaghan (eocallaghan(a)alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5353
-gerrit
commit 47ba1a7220023bd3465c2c6c20146b6fc6ba51a1
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Sun Mar 9 00:05:18 2014 +1100
util/cbfstool: Fix double free crash.
To reproduce the crash pass the following arguments where the files
passed, in fact, do not exist. As follows:
./cbfstool build/coreboot.rom extract -n config -f /tmp/config.txt
Change-Id: I2213ff175d0703705a0ec10271b30bb26b6f8d0a
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
util/cbfstool/cbfstool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 792dd91..c33ce95 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -474,7 +474,7 @@ static int cbfs_extract(void)
if (cbfs_image_from_file(&image, param.cbfs_name) != 0) {
ERROR("Could not load ROM image '%s'.\n",
param.cbfs_name);
- result = 1;
+ return 1;
} else if (cbfs_export_entry(&image, param.name,
param.filename) != 0) {
result = 1;
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5353
-gerrit
commit 9a3de6d06fd5acb6c54f8472fd4e1b337287cd6b
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Sun Mar 9 00:05:18 2014 +1100
utils/cbfstool: Fix double free crash.
To reproduce the crash pass the following arguments where the files
passed in fact do not exist. As follows:
./cbfstool build/coreboot.rom extract -n config -f /tmp/config.txt
Change-Id: I2213ff175d0703705a0ec10271b30bb26b6f8d0a
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
util/cbfstool/cbfstool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 792dd91..c33ce95 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -474,7 +474,7 @@ static int cbfs_extract(void)
if (cbfs_image_from_file(&image, param.cbfs_name) != 0) {
ERROR("Could not load ROM image '%s'.\n",
param.cbfs_name);
- result = 1;
+ return 1;
} else if (cbfs_export_entry(&image, param.name,
param.filename) != 0) {
result = 1;
Edward O'Callaghan (eocallaghan(a)alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5353
-gerrit
commit 9c003a8540729bdb5e9ec832220b9109a4414b3d
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Sun Mar 9 00:05:18 2014 +1100
utils/cbfstool: Fix double free crash.
To reproduece the crash pass the following arguments where the files
passed in fact do not exist. As follows:
./cbfstool build/coreboot.rom extract -n config -f /tmp/config.txt
Change-Id: I2213ff175d0703705a0ec10271b30bb26b6f8d0a
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
util/cbfstool/cbfstool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/cbfstool/cbfstool.c b/util/cbfstool/cbfstool.c
index 792dd91..c33ce95 100644
--- a/util/cbfstool/cbfstool.c
+++ b/util/cbfstool/cbfstool.c
@@ -474,7 +474,7 @@ static int cbfs_extract(void)
if (cbfs_image_from_file(&image, param.cbfs_name) != 0) {
ERROR("Could not load ROM image '%s'.\n",
param.cbfs_name);
- result = 1;
+ return 1;
} else if (cbfs_export_entry(&image, param.name,
param.filename) != 0) {
result = 1;
Edward O'Callaghan (eocallaghan(a)alterapraxis.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5273
-gerrit
commit 65ab3d38bcba5285260fad89ab9e13646c998002
Author: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
Date: Thu Feb 20 19:37:42 2014 +1100
romcc.c: Suppress warning about unused function.
GCC suppresses warnings about unused static functions if they are
inline, however Clang only does this for header files. Add attribute to
suppress unused function warning on Clang.
Change-Id: Ia230beba3f6367237838d9b3d90536459e1d52cb
Signed-off-by: Edward O'Callaghan <eocallaghan(a)alterapraxis.com>
---
util/romcc/romcc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/util/romcc/romcc.c b/util/romcc/romcc.c
index b045b46..3ac42f7 100644
--- a/util/romcc/romcc.c
+++ b/util/romcc/romcc.c
@@ -5648,6 +5648,7 @@ static struct type *invalid_type(struct compile_state *state, struct type *type)
#define MASK_UCHAR(X) ((X) & ((ulong_t)0xff))
#define MASK_USHORT(X) ((X) & (((ulong_t)1 << (SIZEOF_SHORT)) - 1))
+static inline ulong_t mask_uint(ulong_t x) __attribute__((unused));
static inline ulong_t mask_uint(ulong_t x)
{
if (SIZEOF_INT < SIZEOF_LONG) {
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5350
-gerrit
commit 5adb4f0c918b4ba473af5774f9807fa4d5230448
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sat Mar 8 10:46:52 2014 +0100
console/Kconfig: Enable CBMEM console on x86 by default
Thanks to Kyösti Mälkki’s Google Summer of Code 2013 work, console
output to CBMEM (CBMEM console) for ramstage messages works on all x86
boards. For romstage messages it works for Intel boards from the i945
chipset on, but it does not work yet for AMD boards.
Enabling CBMEM console on Google Pit and Snow results in compile errors,
so it is just enabled for non-ARM systems.
The board status script under `util/board_status/` reads the coreboot
messages from CBMEM, which are then uploaded to the board status
repository. With CBMEM console disabled by default, currently no
coreboot console messages are uploaded to the board status repository.
Enabling CBMEM console by default improves this situation, so that at
least ramstage messages are stored in the board status repository.
Change-Id: I8d5a58c078325c43a0317bcfaafc722d039aab0b
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/console/Kconfig | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/console/Kconfig b/src/console/Kconfig
index bb64f29..b25700c 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -202,7 +202,8 @@ config CONSOLE_NE2K_IO_PORT
config CONSOLE_CBMEM
bool "Send console output to a CBMEM buffer"
- default n
+ default n if ARCH_ARMV7
+ default y if !ARCH_ARMV7
help
Enable this to save the console output in a CBMEM buffer. This would
allow to see coreboot console output from Linux space.
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5352
-gerrit
commit 60438ccb7f0d0c55fd6ac161ce6d0989d7301e32
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sat Mar 8 12:39:30 2014 +0100
intel/cougar_canyon2/romstage.c: Remove `cbmemc_reinit`
Enabling CBMEM console for the Cougar Canyon 2 the build fails.
src/mainboard/intel/cougar_canyon2/romstage.c: In function 'romstage_main_continue':
src/mainboard/intel/cougar_canyon2/romstage.c:345:2: error: implicit declaration of function 'cbmemc_reinit' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
Since commit cbf5bdfe6 (CBMEM: Always select CAR_MIGRATION) [1] calling
`cbmemc_reinit()` in the board’s romstage is not needed anymore, so remove it.
[1] http://review.coreboot.org/3916
Change-Id: I4dff2d11f073e2829ab3b081b5460f66eead4640
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/mainboard/intel/cougar_canyon2/romstage.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/mainboard/intel/cougar_canyon2/romstage.c b/src/mainboard/intel/cougar_canyon2/romstage.c
index afd7e25..76a2689 100644
--- a/src/mainboard/intel/cougar_canyon2/romstage.c
+++ b/src/mainboard/intel/cougar_canyon2/romstage.c
@@ -340,10 +340,6 @@ void romstage_main_continue(EFI_STATUS status, VOID *HobListPtr) {
timestamp_add(TS_AFTER_INITRAM, after_initram_time);
timestamp_add_now(TS_END_ROMSTAGE);
#endif
-#if CONFIG_CONSOLE_CBMEM
- /* Keep this the last thing this function does. */
- cbmemc_reinit();
-#endif
/*
* FSP returns to this function instead of main, so we can't return back
Paul Menzel (paulepanter(a)users.sourceforge.net) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/5350
-gerrit
commit 6a5147833c74bcbeb3fa8f694bb6379d5bb32616
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sat Mar 8 10:46:52 2014 +0100
console/Kconfig: Enable CBMEM console on x86 by default
Thanks to Kyösti Mälkki’s Google Summer of Code 2013 work, console
output to CBMEM (CBMEM console) for ramstage messages works on all x86
boards. For romstage messages it works for Intel boards from the i945
chipset on, but it does not work yet for AMD boards.
Enabling CBMEM console on Google Pit and Snow results in compile errors,
so it is just enabled for non-ARM systems.
The board status script under `util/board_status/` reads the coreboot
messages from CBMEM, which are then uploaded to the board status
repository. With CBMEM console disabled by default, currently no
coreboot console messages are uploaded to the board status repository.
Enabling CBMEM console by default improves this situation, so that at
least ramstage messages are stored in the board status repository.
Change-Id: I8d5a58c078325c43a0317bcfaafc722d039aab0b
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
---
src/console/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/console/Kconfig b/src/console/Kconfig
index bb64f29..86c7cbb 100644
--- a/src/console/Kconfig
+++ b/src/console/Kconfig
@@ -202,7 +202,7 @@ config CONSOLE_NE2K_IO_PORT
config CONSOLE_CBMEM
bool "Send console output to a CBMEM buffer"
- default n
+ default y
help
Enable this to save the console output in a CBMEM buffer. This would
allow to see coreboot console output from Linux space.
the following patch was just integrated into master:
commit 92ab06044ce57fab822ae99682b5170c21b7b6be
Author: Paul Menzel <paulepanter(a)users.sourceforge.net>
Date: Sat Mar 8 11:37:46 2014 +0100
lib/dynamic_cbmem.c: Include `cbmem_console.h`
Broken with commit 1d7541fe (console: Fix includes).
Change-Id: If41f9e08df98d79b7bbf740b1a5634d0140207be
Signed-off-by: Paul Menzel <paulepanter(a)users.sourceforge.net>
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
See http://review.coreboot.org/5351 for details.
-gerrit