Hi, Wolf Wiegand wrote:
> I'm trying to build a custom kernel for an iSeries within a sid > chroot running on that iSeries. This kernel needs a kernel with an > attached initrd, [...] OK, what I've found out is, that I can just build a kernel using either make or make-kpkg, and then attach the initrd using mkvmlinuz. However, I am having some problems with this (please excuse long lines): ppc:/usr/src/linux# mkvmlinuz -o /tmp/vmlinuz -k ./vmlinux -a prep -i arch/ppc64/boot/ramdisk.image.gz -r 2.6 -v -d arch/ppc64/boot === Building for sub-architecture prep. === Using kernel image file ./vmlinux. === Using initrd image file arch/ppc64/boot/ramdisk.image.gz. === Release version seems to be 2.6. === Using object files from arch/ppc64/boot. === Building a bootable compressed kernel image in /tmp/vmlinuz. === Doing build in /tmp/tmp.UPw8BV. === Creating compressed kernel image vmlinux.gz... objcopy -O binary ./vmlinux /tmp/tmp.UPw8BV/vmlinux gzip /tmp/tmp.UPw8BV/vmlinux === Creating compressed initrd image initrd.gz... cp -p arch/ppc64/boot/ramdisk.image.gz /tmp/tmp.UPw8BV/initrd.gz === Putting everything into ELF image file image.o... objcopy -R .comment arch/ppc64/boot/obj/dummy.o /tmp/tmp.UPw8BV/image.o objcopy: 'arch/ppc64/boot/obj/dummy.o': No such file objcopy: error: the input file 'arch/ppc64/boot/obj/dummy.o' is empty objcopy /tmp/tmp.UPw8BV/image.o /tmp/tmp.UPw8BV/image.o --add-section=.image=/tmp/tmp.UPw8BV/vmlinux.gz --set-section-flags=.image=contents,alloc,load,readonly,data objcopy: '/tmp/tmp.UPw8BV/image.o': No such file objcopy: error: the input file '/tmp/tmp.UPw8BV/image.o' is empty objcopy /tmp/tmp.UPw8BV/image.o /tmp/tmp.UPw8BV/image.o --add-section=.ramdisk=/tmp/tmp.UPw8BV/initrd.gz --set-section-flags=.ramdisk=contents,alloc,load,readonly,data objcopy: '/tmp/tmp.UPw8BV/image.o': No such file objcopy: error: the input file '/tmp/tmp.UPw8BV/image.o' is empty === Creating bootable kernel image file vmlinuz.prep... ld -o /tmp/tmp.UPw8BV/vmlinuz.prep -T arch/ppc64/boot/boot/ld.script -Ttext 0x00800000 -Bstatic arch/ppc64/boot/obj/head.o arch/ppc64/boot/obj/relocate.o arch/ppc64/boot/obj/prepmap.o arch/ppc64/boot/obj/misc.o arch/ppc64/boot/obj/misc-prep.o arch/ppc64/boot/obj/mpc10x_memory.o /tmp/tmp.UPw8BV/image.o arch/ppc64/boot/lib/common.a arch/ppc64/boot/lib/ppc.a arch/ppc64/boot/lib/of.a ld: cannot open linker script file arch/ppc64/boot/boot/ld.script: No such file or directory objcopy -O elf32-powerpc -R .comment -R .stab -R .stabstr -R .sysmap /tmp/tmp.UPw8BV/vmlinuz.prep /tmp/tmp.UPw8BV/vmlinuz.prep.tmp objcopy: '/tmp/tmp.UPw8BV/vmlinuz.prep': No such file objcopy: error: the input file '/tmp/tmp.UPw8BV/vmlinuz.prep' is empty arch/ppc64/boot/utils/mkprep -pbp /tmp/tmp.UPw8BV/vmlinuz.prep.tmp /tmp/tmp.UPw8BV/vmlinuz.prep /usr/sbin/mkvmlinuz: line 26: arch/ppc64/boot/utils/mkprep: No such file or directory === Cleaning up... Anybody has a clue just where the problem (or my mistake) is? Thanks in advance, Wolf -- Wenn ich so die letzten Tage Revue passieren lasse, kann ich dafür garantieren, dass unsere Firma garantiert Androiden/Vulkanier-frei ist... fast komplette Abwesenheit von Logik. (Thomas Wallutis in d.a.s.r.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]