Solved

make zImage Problem

Posted on 1997-06-07
1
403 Views
Last Modified: 2013-12-15
I upgraded from Slakware 3.0, kernel 1.3.20 to Slackware 3.2, kernel 2.0.29. I installed over the existing installation. When compiling the kernel, I get the following error. How can I fix it?

==== Error Follows

if hash encaps 2> /dev/null; then \
  objdump -k -q  -o 0x100000 /usr/src/linux-2.0.29/vmlinux > $tmppiggy; \
else \
  objcopy -O binary -R .note -R .comment -R .stab -R .stabstr /usr/src/linux-2.0
.29/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) in
put_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 elf64-alpha ecoff-little
alpha elf32-m68k a.out-m68k-linux elf32-bigmips elf32-littlemips elf64-bigmips e
lf64-littlemips ecoff-bigmips ecoff-littlemips elf32-powerpc aixcoff-rs6000 elf3
2-powerpcle pei-powerpcle pei-powerpc pe-powerpcle pe-powerpc ppcboot elf32-spar
c a.out-sparc-linux a.out-sunos-big srec symbolsrec tekhex binary ihex trad-core
ld -m elf_i386 -Ttext 0x1000 -e startup_32  -o vmlinux head.o misc.o piggy.o
make[2]: Leaving directory `/usr/src/linux-2.0.29/arch/i386/boot/compressed'
if hash encaps 2> /dev/null; then \
  objdump -k -q  -o 0x1000 compressed/vmlinux > compressed/vmlinux.out; \
else \
  objcopy -O binary -R .note -R .comment -R .stab -R .stabstr compressed/vmlinux
 compressed/vmlinux.out; \
       [--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 elf64-alpha ecoff-little
alpha elf32-m68k a.out-m68k-linux elf32-bigmips elf32-littlemips elf64-bigmips e
lf64-littlemips ecoff-bigmips ecoff-littlemips elf32-powerpc aixcoff-rs6000 elf3
2-powerpcle pei-powerpcle pei-powerpc pe-powerpcle pe-powerpc ppcboot elf32-spar
c a.out-sparc-linux a.out-sunos-big srec symbolsrec tekhex binary ihex trad-core
make[1]: *** [zImage] Error 1
make[1]: Leaving directory `/usr/src/linux-2.0.29/arch/i386/boot'
make: *** [zImage] Error 2
0
Comment
Question by:edbrown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
hcheng earned 100 total points
ID: 1627997
Did you upgrade all the things as specified by the CHANGES file in the kernel documentation directory?  Since objdump is having trouble, I suspect that your binutils too old.  You should upgrade it, and also whatever else specified in the CHANGES file.
0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question