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

Re: recompiling kernel



On Sun, Apr 19, 1998 at 11:39:52PM +0200, Marcus Brinkmann wrote:
> On Sat, Apr 18, 1998 at 10:28:10PM -0700, G. Crimp wrote:
> > Hi,
> > 
> > 	I tried recompiling the kernel to include sound support for a newly
> > acquired card.  I got an error that I don't understand.  I'm using Deb
> > 1.3.1, kernel 2.0.30.  The card is of unknown manufacturer, 16 bit, chipset 
> > ESS 1868.  I pretty much followed the same compile instructions that I used
> > to make the custom kernel that I have been using until now.  My
> > understanding of what is happening in all these steps is pretty limited, so
> > please keep any answers simple.  If any info is required in addition to the
> > following excerpt from make zdisk, I'd be happy to send it along.
> 
> Try kernel-package. "make-kpkg --revision custom.1.0 kernel-image" will
> creat you a deb file with your kernel. Then install the deb file in /usr/src
> with "dpkg -i <filename>" and answer "yes" when it is offering to make a
> boot disk. This will install the kernel on the root partition, too. You may
> not want this... but your old image is still in vmlinuz.old (and it is a
> good idea to have a lilo entry for it).
> 
	I (finally) had a look at make-kpkg.  I want to make sure that I am
understanding this.  It seems to me that it will still run the compile,
except that it integrates the whole thing with the construction of a *.deb
package.  If that is not the case, then your instructions lead me to believe
that I must already have a kernel image with which to make a package.  Am I
understanding correctly ?

	If that is the case, then I'm not sure this will solve my problem. 
I think the problem is with the compile itself, and I don't know enough
about C and make scripts, etc. to figure it out.  Somewhere in 
/usr/src/linux/arch/i386/boot/compressed there is a file that is invoking
objdump (whatever that might be) with an option `-k'.  make zdisk and make
zImage say this is an illegal option.  (I'll tack the error message to the
end of this)

	The objdump man page doesn't mention the `-k' option.  So why is
some script somewhere issuing this command ?  This is more puzzling since I
compiled a kernel when I first installed without any problem.  Same sources. 
Now I try to add sound and I get this.  Even if I take out the sound support
and try to compile the kernel exactly like the one I am currently using
(from a backed up .config) I get this error.

	Can anyone illuminate me ?

make[2]: Entering directory
/usr/src/kernel-source-2.0.30/arch/i386/boot/compressed'
tmppiggy=/tmp/$$piggy; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk; \
if hash encaps 2> /dev/null; then \
  objdump -k -q  -o 0x100000 /usr/src/kernel-source-2.0.30/vmlinux >
^^^^^^^^^^^^^
^^^^^^^^^^^^^

$tmppiggy; \
else \
  objcopy -O binary -R .note -R .comment -R .stab -R .stabstr
/usr/src/kernel-source-2.0.30/vmlinux $tmppiggy; \
fi; \
gzip -f -9 < $tmppiggy > $tmppiggy.gz; \
if hash encaps 2> /dev/null; then \
  encaps --target elf32-i386 piggy.o $tmppiggy.gz input_data input_len; \
else \
  echo "SECTIONS { .data : { input_len = .; LONG(input_data_end -
input_data) input_data = .; *(.data) input_data_end = .; }}" >
$tmppiggy.lnk; \
  ld -m elf_i386 -m elf_i386 -r -o piggy.o -b binary $tmppiggy.gz -b
elf32-i386 -T $tmppiggy.lnk; \
fi; \
rm -f $tmppiggy $tmppiggy.gz $tmppiggy.lnk
objdump: illegal option -- k
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Usage: objdump [-ahifdDprRtTxsSlw] [-b bfdname] [-m machine] [-j
section-name]
       [--archive-headers] [--target=bfdname] [--debugging] [--disassemble]
       [--disassemble-all] [--disassemble-zeroes] [--file-headers]
       [--section-headers] [--headers]
       [--info] [--section=section-name] [--line-numbers] [--source]
       [--architecture=machine] [--reloc] [--full-contents] [--stabs]
       [--syms] [--all-headers] [--dynamic-syms] [--dynamic-reloc]
       [--wide] [--version] [--help] [--private-headers]
       [--start-address=addr] [--stop-address=addr]
       [--prefix-addresses] [--show-raw-insn]
       [-EB|-EL] [--endian={big|little}] objfile...
at least one option besides -l (--line-numbers) must be given
objdump: supported targets: elf32-i386 a.out-i386-linux srec symbolsrec
tekhex binary ihex trad-core
encaps: not found
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.0.30/include -traditional -c
head.S
gcc -D__KERNEL__ -I/usr/src/kernel-source-2.0.30/include -O2 -DSTDC_HEADERS
-c misc.c -o misc.o
ld -m elf_i386 -Ttext 0x1000 -e startup_32  -o vmlinux head.o misc.o piggy.o
ld: cannot open piggy.o: No such file or directory
make[2]: *** [vmlinux] Error 1
make[2]: Leaving directory
/usr/src/kernel-source-2.0.30/arch/i386/boot/compressed'
make[1]: *** [compressed/vmlinux] Error 2
make[1]: Leaving directory /usr/src/kernel-source-2.0.30/arch/i386/boot'
make: *** [zdisk] Error 2
root:/usr/src/linux #

TIA,

Gerald


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: