[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Kernel build error



hi ya craig

did you use "make bzlilo" or sound like you did "make bzImage"
if so...  take out stuff from the kernel ...
	- turn it off if you dont use it
	- PNP, Video for linux, ISDN, Linux Telephone,
	- turn off all the graphics controllers you're NOT useing
	- SCSI is not needed if you dont use those disks
	- turn off RAID ( md, lvm ) if you're not using it
	- use sound as a module if you gonna leave it in...
	- turn off parallel port support if you dont have any parallel ide devices
	- turn off firewire, infared, amateur radio stuff etc

than try again...

have fun
alvin

-- than harden your kernel... apply owl, lids, libsafe, etc
	http://www.Linux-Sec.net/Harden/kernel.gwif.html


On Wed, 17 Oct 2001, Craig Dickson wrote:

> I've never seen this before when building a kernel. My guess is that it
> basically boils down to, "Your kernel's too bloody big, stop building it
> as a monolith and learn to use modules." Is that right?
> 
> Craig
> 
> make[2]: Entering directory `/usr/src/linux/arch/i386/boot/compressed'
> tmppiggy=_tmp_$$piggy; \
> rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
> objcopy -O binary -R .note -R .comment -S /usr/src/linux/vmlinux $tmppiggy; \
> gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
> echo "SECTIONS { .data : { input_len = .; LONG(input_data_end - input_data) input_data = .; *(.data) input_data_end = .; }}" > $tmppiggy.lnk; \
> ld -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b elf32-i386 -T $tmppiggy.lnk; \
> rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
> gcc -D__ASSEMBLY__ -D__KERNEL__ -I/usr/src/linux/include -traditional -c head.S
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -c misc.c
> ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
> ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
> ld: final link failed: Bad value
> make[2]: *** [bvmlinux] Error 1
> make[2]: Leaving directory `/usr/src/linux/arch/i386/boot/compressed'
> make[1]: *** [compressed/bvmlinux] Error 2
> make[1]: Leaving directory `/usr/src/linux/arch/i386/boot'
> make: *** [bzImage] Error 2
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 



Reply to: