Author: jcrouse
Date: 2007-12-05 19:35:36 +0100 (Wed, 05 Dec 2007)
New Revision: 74
Modified:
buildrom-devel/Config.in
buildrom-devel/packages/kernel/kernel.inc
buildrom-devel/packages/uclibc/uclibc.mk
Log:
This patch adds -jN support to speed builds. It passes it as an
argument to make for the kernel and uClibc. It breaks the build for
busybox, so it isn't passed there.
The default is -j1, or the status quo.
Signed-off-by: Myles Watson <myles(a)pel.cs.byu.edu>
Acked-by: Corey Osgood <corey.osgood(a)gmail.com>
Modified: buildrom-devel/Config.in
===================================================================
--- buildrom-devel/Config.in 2007-12-04 19:17:07 UTC (rev 73)
+++ buildrom-devel/Config.in 2007-12-05 18:35:36 UTC (rev 74)
@@ -13,6 +13,18 @@
See the entire build output on stdout. Otherwise, it will
be saved off in a series of logs
+config MAKE_JOBS
+ string "Send this option to make to parallelize builds"
+ default "-j1"
+ help
+ This can speed the build if you have more than one core that you
+ would like to allow make to use. If you have a single processor, use
+ the default (-j1) otherwise, try processors+1 (-j5 for 4 processors).
+
+ This option currently only speeds up the kernel and uClibc builds.
+ It was tried for: linuxbios (not passed through to fallback,etc.)
+ busybox (causes errors)
+
config ADVANCED
bool "Enable advanced operations"
default n
Modified: buildrom-devel/packages/kernel/kernel.inc
===================================================================
--- buildrom-devel/packages/kernel/kernel.inc 2007-12-04 19:17:07 UTC (rev 73)
+++ buildrom-devel/packages/kernel/kernel.inc 2007-12-05 18:35:36 UTC (rev 74)
@@ -52,7 +52,7 @@
$(KERNEL_BZIMAGE): $(KERNEL_SRC_DIR)/.config
@ echo "Building kernel..."
- @ $(MAKE) -C $(KERNEL_SRC_DIR) ARCH=$(KERNEL_BUILD_ARCH) \
+ @ $(MAKE) $(CONFIG_MAKE_JOBS) -C $(KERNEL_SRC_DIR) ARCH=$(KERNEL_BUILD_ARCH) \
KERNEL_CC="$(CC)" KERNEL_LD="$(LD)" > $(KERNEL_BUILD_LOG) 2>&1
$(OUTPUT_DIR)/bzImage: $(KERNEL_BZIMAGE)
Modified: buildrom-devel/packages/uclibc/uclibc.mk
===================================================================
--- buildrom-devel/packages/uclibc/uclibc.mk 2007-12-04 19:17:07 UTC (rev 73)
+++ buildrom-devel/packages/uclibc/uclibc.mk 2007-12-05 18:35:36 UTC (rev 74)
@@ -39,7 +39,7 @@
$(UCLIBC_SRC_DIR)/lib/libc.a: $(UCLIBC_SRC_DIR)/.config
@ echo "Building uclibc..."
@ ( unset CFLAGS; unset LDFLAGS; \
- $(MAKE) -C $(UCLIBC_SRC_DIR) TARGET_ARCH="$(UCLIBC_ARCH)" \
+ $(MAKE) $(CONFIG_MAKE_JOBS) -C $(UCLIBC_SRC_DIR) TARGET_ARCH="$(UCLIBC_ARCH)" \
CC="$(CC) $(CROSS_CFLAGS)" LD="$(LD) $(CROSS_LDFLAGS)" \
HOSTCC="$(HOST_CC)" KERNEL_SOURCE="$(KERNEL_SRC_DIR)" \
RUNTIME_PREFIX="/" \
Hello!
As i know the PCI-Express port on that board should work with lb but i've
troubles on using an nvidia-grapic card with the propritary nvidia driver and
lb. i used the revison 2994 for this test with lb-v2. Or is it nessacary to
use a patch to get the PCI-Express working with lb?
here are some informations on my system:
dmesg shows the following output according to the nvidia module:
nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA UNIX x86_64 Kernel Module 100.14.19 Wed Sep 12 14:08:38
PDT 2007
NVRM: RmInitAdapter failed! (0x12:0x2b:1557)
NVRM: rm_init_adapter(0) failed
the xorg logfile contains the following error:
(EE) NVIDIA(0): The NVIDIA kernel module does not appear to be receiving
(EE) NVIDIA(0): interrupts generated by the NVIDIA graphics device
(EE) NVIDIA(0): PCI:7:0:0. Please see Chapter 8: Common Problems in the
(EE) NVIDIA(0): README for additional information.
(EE) NVIDIA(0): Failed to initialize the NVIDIA graphics device!
(EE) Screen(s) found, but none have a usable configuration.
where the last two lines (beginning with NVRM) in the dmesg appear when i try
to start the xserver with the nvidia grapics driver.
attached is the superio output from lb, and from the propritary bios.
Hi, all,
Who has the VGA BIOS for ATI ES1000 with DDRII frame buffer instead of DDR frame buffer? Could you send me a copy? Thank you in advance.
Best Regards
丰立波 Feng Libo @ AMD Ext: 20906
Mobile Phone: 13683249071
Office Phone: 0086-010-62801406
On 05.12.2007 00:15, svn(a)openbios.org wrote:
> Author: hailfinger
> Date: 2007-12-05 00:15:33 +0100 (Wed, 05 Dec 2007)
> New Revision: 538
>
> Modified:
> LinuxBIOSv3/lib/lar.c
> LinuxBIOSv3/util/lar/stream.c
> Log:
> Change wrong "LAR: NO FILE FOUND!" message to "LAR: File not found!".
> The message appears if a file has not been found in the LAR archive and
> is triggered even by lookup routines. Normal capitalization helps
> reducing the frightening effect of the message.
>
> Correct a few typos in other areas of the LAR code as well.
>
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
>
My first self-acked patch. Flame away!
Carl-Daniel
Author: hailfinger
Date: 2007-12-05 00:15:33 +0100 (Wed, 05 Dec 2007)
New Revision: 538
Modified:
LinuxBIOSv3/lib/lar.c
LinuxBIOSv3/util/lar/stream.c
Log:
Change wrong "LAR: NO FILE FOUND!" message to "LAR: File not found!".
The message appears if a file has not been found in the LAR archive and
is triggered even by lookup routines. Normal capitalization helps
reducing the frightening effect of the message.
Correct a few typos in other areas of the LAR code as well.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006(a)gmx.net>
Modified: LinuxBIOSv3/lib/lar.c
===================================================================
--- LinuxBIOSv3/lib/lar.c 2007-12-04 22:42:38 UTC (rev 537)
+++ LinuxBIOSv3/lib/lar.c 2007-12-04 23:15:33 UTC (rev 538)
@@ -141,7 +141,7 @@
walk += (ntohl(header->offset) + ntohl(header->len) - 1)
& 0xfffffff0;
}
- printk(BIOS_SPEW, "LAR: NO FILE FOUND!\n");
+ printk(BIOS_SPEW, "LAR: File not found!\n");
return 1;
}
Modified: LinuxBIOSv3/util/lar/stream.c
===================================================================
--- LinuxBIOSv3/util/lar/stream.c 2007-12-04 22:42:38 UTC (rev 537)
+++ LinuxBIOSv3/util/lar/stream.c 2007-12-04 23:15:33 UTC (rev 538)
@@ -63,7 +63,7 @@
/**
* Output all the ELF segments for a given file
- * @param lar The LAR Archoe
+ * @param lar The LAR archive
* @param name The LAR name
* @param filebuf The ELF file
* @param filelen Size of the ELF file
@@ -88,9 +88,13 @@
u32 complen;
/* Allocate a temporary buffer to compress into - this is unavoidable,
- because we need to make sure that the compressed data will fit in
- the LAR, and we won't know the size of the compressed data until
- we actually compress it */
+ * because we need to make sure that the compressed data will fit in
+ * the LAR, and we won't know the size of the compressed data until
+ * we actually compress it.
+ * FIXME: In case the compressed file is bigger than the original,
+ * we corrupt memory. Compute maximum size increase and allocate that
+ * on top of the file length.
+ */
temp = calloc(filelen, 1);