* Problems compiling kexec-tools @ 2010-01-12 0:01 Zitt Zitterkopf 2010-01-12 0:39 ` Simon Horman 2010-01-13 17:27 ` Geoff Levand 0 siblings, 2 replies; 7+ messages in thread From: Zitt Zitterkopf @ 2010-01-12 0:01 UTC (permalink / raw) To: kexec [-- Attachment #1.1: Type: text/plain, Size: 1942 bytes --] All, I'm attempting to compile kexec-tools so I can compile kboot from source. I've obtained the kexec-tools-2.0.0 source from RPM. I've done: ./configure make which I receive the following errors: gcc -lz -g -O2 -static -fno-strict-aliasing -Wall -Wstrict-prototypes -o build/sbin/kexec kexec/kexec.o kexec/ifdown.o kexec/kexec-elf.o kexec/kexec-elf-exec.o kexec/kexec-elf-core.o kexec/kexec-elf-rel.o kexec/kexec-elf-boot.o kexec/kexec-iomem.o kexec/firmware_memmap.o kexec/crashdump.o kexec/crashdump-xen.o kexec/phys_arch.o kexec/proc_iomem.o kexec/virt_to_phys.o kexec/add_segment.o kexec/add_buffer.o kexec/arch_reuse_initrd.o kexec/arch/i386/kexec-x86.o kexec/arch/i386/kexec-x86-common.o kexec/arch/i386/kexec-elf-x86.o kexec/arch/i386/kexec-elf-rel-x86.o kexec/arch/i386/kexec-bzImage.o kexec/arch/i386/kexec-multiboot-x86.o kexec/arch/i386/kexec-beoboot-x86.o kexec/arch/i386/kexec-nbi.o kexec/arch/i386/x86-linux-setup.o kexec/arch/i386/crashdump-x86.o kexec/purgatory.o libutil.a kexec/kexec.o: In function `slurp_decompress_file': /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:485: undefined reference to `gzopen' /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:501: undefined reference to `gzread' /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:506: undefined reference to `gzerror' /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:515: undefined reference to `gzclose' /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:517: undefined reference to `gzerror' /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:487: undefined reference to `gzerror' collect2: ld returned 1 exit status make: *** [build/sbin/kexec] Error 1 I've installed zlib: zlib-1.2.3-29.4.moblin2.i586.rpm zlib-devel-1.2.3-29.4.moblin2.i586.rpm so I'm unsure what I've done wrong. Suggestions? John [-- Attachment #1.2: Type: text/html, Size: 2238 bytes --] [-- Attachment #2: Type: text/plain, Size: 143 bytes --] _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems compiling kexec-tools 2010-01-12 0:01 Problems compiling kexec-tools Zitt Zitterkopf @ 2010-01-12 0:39 ` Simon Horman 2010-01-12 16:33 ` Zitt Zitterkopf 2010-01-13 17:27 ` Geoff Levand 1 sibling, 1 reply; 7+ messages in thread From: Simon Horman @ 2010-01-12 0:39 UTC (permalink / raw) To: Zitt Zitterkopf; +Cc: kexec On Mon, Jan 11, 2010 at 04:01:59PM -0800, Zitt Zitterkopf wrote: > > All, > > I'm attempting to compile kexec-tools so I can compile kboot from source. > > > > I've obtained the kexec-tools-2.0.0 source from RPM. > > > > I've done: > > ./configure > > make > > > > which I receive the following errors: > > gcc -lz -g -O2 -static -fno-strict-aliasing -Wall -Wstrict-prototypes -o build/sbin/kexec kexec/kexec.o kexec/ifdown.o kexec/kexec-elf.o kexec/kexec-elf-exec.o kexec/kexec-elf-core.o kexec/kexec-elf-rel.o kexec/kexec-elf-boot.o kexec/kexec-iomem.o kexec/firmware_memmap.o kexec/crashdump.o kexec/crashdump-xen.o kexec/phys_arch.o kexec/proc_iomem.o kexec/virt_to_phys.o kexec/add_segment.o kexec/add_buffer.o kexec/arch_reuse_initrd.o kexec/arch/i386/kexec-x86.o kexec/arch/i386/kexec-x86-common.o kexec/arch/i386/kexec-elf-x86.o kexec/arch/i386/kexec-elf-rel-x86.o kexec/arch/i386/kexec-bzImage.o kexec/arch/i386/kexec-multiboot-x86.o kexec/arch/i386/kexec-beoboot-x86.o kexec/arch/i386/kexec-nbi.o kexec/arch/i386/x86-linux-setup.o kexec/arch/i386/crashdump-x86.o kexec/purgatory.o libutil.a > kexec/kexec.o: In function `slurp_decompress_file': > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:485: undefined reference to `gzopen' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:501: undefined reference to `gzread' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:506: undefined reference to `gzerror' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:515: undefined reference to `gzclose' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:517: undefined reference to `gzerror' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:487: undefined reference to `gzerror' > collect2: ld returned 1 exit status > make: *** [build/sbin/kexec] Error 1 > > > I've installed zlib: > > zlib-1.2.3-29.4.moblin2.i586.rpm > > zlib-devel-1.2.3-29.4.moblin2.i586.rpm > > so I'm unsure what I've done wrong. Just a guess, but do you have a static version of libz installed? That is, did zlib-devel install a libz.a file? _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Problems compiling kexec-tools 2010-01-12 0:39 ` Simon Horman @ 2010-01-12 16:33 ` Zitt Zitterkopf 0 siblings, 0 replies; 7+ messages in thread From: Zitt Zitterkopf @ 2010-01-12 16:33 UTC (permalink / raw) Cc: kexec [-- Attachment #1.1: Type: text/plain, Size: 565 bytes --] > > I've installed zlib: > > > > zlib-1.2.3-29.4.moblin2.i586.rpm > > > > zlib-devel-1.2.3-29.4.moblin2.i586.rpm > > > > so I'm unsure what I've done wrong. > > Just a guess, but do you have a static version of libz installed? > That is, did zlib-devel install a libz.a file? Yes; libz.a is installed... but I may have installed zlib-static-1.2.3-29.4.moblin2.i586.rpm being over zelous with the dependancy install. I tried rpm -e zlib-static-1.2.3-29.4.moblin2.i586.rpm as root but it says "not installed". [-- Attachment #1.2: Type: text/html, Size: 857 bytes --] [-- Attachment #2: Type: text/plain, Size: 143 bytes --] _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems compiling kexec-tools 2010-01-12 0:01 Problems compiling kexec-tools Zitt Zitterkopf 2010-01-12 0:39 ` Simon Horman @ 2010-01-13 17:27 ` Geoff Levand 2010-01-15 18:47 ` Zitt Zitterkopf 1 sibling, 1 reply; 7+ messages in thread From: Geoff Levand @ 2010-01-13 17:27 UTC (permalink / raw) To: Zitt Zitterkopf; +Cc: kexec@lists.infradead.org On 01/11/2010 04:01 PM, Zitt Zitterkopf wrote: > All, > I'm attempting to compile kexec-tools so I can compile kboot from source. > > I've obtained the kexec-tools-2.0.0 source from RPM. Maybe you could try just using the 2.0.1 sources from here: http://www.kernel.org/pub/linux/kernel/people/horms/kexec-tools/ > I've done: > ./configure > make > > which I receive the following errors: > gcc -lz -g -O2 -static -fno-strict-aliasing -Wall -Wstrict-prototypes -o build/sbin/kexec kexec/kexec.o kexec/ifdown.o kexec/kexec-elf.o kexec/kexec-elf-exec.o kexec/kexec-elf-core.o kexec/kexec-elf-rel.o kexec/kexec-elf-boot.o kexec/kexec-iomem.o kexec/firmware_memmap.o kexec/crashdump.o kexec/crashdump-xen.o kexec/phys_arch.o kexec/proc_iomem.o kexec/virt_to_phys.o kexec/add_segment.o kexec/add_buffer.o kexec/arch_reuse_initrd.o kexec/arch/i386/kexec-x86.o kexec/arch/i386/kexec-x86-common.o kexec/arch/i386/kexec-elf-x86.o kexec/arch/i386/kexec-elf-rel-x86.o kexec/arch/i386/kexec-bzImage.o kexec/arch/i386/kexec-multiboot-x86.o kexec/arch/i386/kexec-beoboot-x86.o kexec/arch/i386/kexec-nbi.o kexec/arch/i386/x86-linux-setup.o kexec/arch/i386/crashdump-x86.o kexec/purgatory.o libutil.a > kexec/kexec.o: In function `slurp_decompress_file': > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:485: undefined reference to `gzopen' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:501: undefined reference to `gzread' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:506: undefined reference to `gzerror' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:515: undefined reference to `gzclose' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:517: undefined reference to `gzerror' > /home/moblin/rpmbuild/BUILD/kexec-tools-2.0.0/kexec/kexec.c:487: undefined reference to `gzerror' > collect2: ld returned 1 exit status > make: *** [build/sbin/kexec] Error 1 > > I've installed zlib: > zlib-1.2.3-29.4.moblin2.i586.rpm > zlib-devel-1.2.3-29.4.moblin2.i586.rpm > so I'm unsure what I've done wrong. You could try passing the verbose flags and see what headers and libs get used during the build. Maybe you'll find some problem there. I think those would be something like: gcc -v -Wl,--verbose ... Or maybe just use: ld --verbose ... BTW, have you looked at the petitboot bootloader? For the most part it is a better choice than kboot. It provides essentially all the functionality that kboot does, plus more, it is easier to build, and it is a currently maintained project. The petitboot package can be built for x86. That is how much of its development is done, but OpenWRT does not yet support an x86 build of petitboot (that would create a grub second stage image). My plan is to add x86 PC support next. I don't think it is very difficult to do, I just have not had time to do it. You can see some screen shots of petitboot built for the PS3 here: http://www.kernel.org/pub/linux/kernel/people/geoff/cell/ps3-petitboot/ My petitboot development repo is here: http://git.kernel.org/?p=linux/kernel/git/geoff/petitboot-dev.git -Geoff _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Problems compiling kexec-tools 2010-01-13 17:27 ` Geoff Levand @ 2010-01-15 18:47 ` Zitt Zitterkopf 2010-01-15 19:47 ` Geoff Levand 2010-01-16 10:46 ` Andrea Adami 0 siblings, 2 replies; 7+ messages in thread From: Zitt Zitterkopf @ 2010-01-15 18:47 UTC (permalink / raw) To: geoffrey.levand; +Cc: kexec [-- Attachment #1.1: Type: text/plain, Size: 1228 bytes --] > BTW, have you looked at the petitboot bootloader? For > the most part it is a better choice than kboot. > It provides essentially all the functionality that > kboot does, plus more, it is easier to build, and it > is a currently maintained project. > > The petitboot package can be built for x86. That is > how much of its development is done, but OpenWRT does > not yet support an x86 build of petitboot (that > would create a grub second stage image). My plan is > to add x86 PC support next. I don't think it is very > difficult to do, I just have not had time to do it. petitboot looks interesting; but I need the tool chain ready to go for x86. Currently For our project, we are using a patched version of kboot which runs on x86. I do see some benefit for petitboot with the graphical menu. Ideally we'd need a version which reads each partition looking for multiple /boot kernels and present a method to select each one using a alpha char. Kinda like the old System Commander app. In my config; I'll have multiple linux kernels on the disk. I envision having Android, Moblin2.0, and several other flavors of linux in partitions and needing to boot to each at runtime. [-- Attachment #1.2: Type: text/html, Size: 1515 bytes --] [-- Attachment #2: Type: text/plain, Size: 143 bytes --] _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems compiling kexec-tools 2010-01-15 18:47 ` Zitt Zitterkopf @ 2010-01-15 19:47 ` Geoff Levand 2010-01-16 10:46 ` Andrea Adami 1 sibling, 0 replies; 7+ messages in thread From: Geoff Levand @ 2010-01-15 19:47 UTC (permalink / raw) To: Zitt Zitterkopf; +Cc: kexec@lists.infradead.org On 01/15/2010 10:47 AM, Zitt Zitterkopf wrote: >> BTW, have you looked at the petitboot bootloader? For >> the most part it is a better choice than kboot. >> It provides essentially all the functionality that >> kboot does, plus more, it is easier to build, and it >> is a currently maintained project. > > I do see some benefit for petitboot with the graphical menu. Ideally we'd need a version which reads each partition looking for multiple /boot kernels and present a method to select each one using a alpha char. Kinda like the old System Commander app. Just FYI, petitboot is setup to receive hot plug events (udev supported, hotplug-2 planned) and dhcp events. It looks on any storage devices for boot menu config files and for any netboot info from dhcp and then adds or removes boot menu items for those dynamically. Petitboot does not look for kernel images it can boot, as you need more than that to boot a kernel (initrd, boot options, etc. are needed), nor does it test for the existence of any images specified in boot config files, as you would potentially need to be looking all over the Internet for them, and waiting for network timeouts, etc. just doesn't make sense. Petitboot just assumes the user keeps the configs in good order. As for the 'one key' selection UI you mention, Petitboot is setup with a client-server architecture. The server deamon is the thing that receives events, looks for config files, parses the files, etc., then it sends the info to the client UI apps. Multilpe UI client apps can register with the server, so you can say have one UI on the display, and several running in telnet sessions. Anyway, petitboot was designed for it to be relatively easy to make a new custom UI app. Your 'one key' selection seems to be just a variation of the existing ncurses menu UI. -Geoff _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Problems compiling kexec-tools 2010-01-15 18:47 ` Zitt Zitterkopf 2010-01-15 19:47 ` Geoff Levand @ 2010-01-16 10:46 ` Andrea Adami 1 sibling, 0 replies; 7+ messages in thread From: Andrea Adami @ 2010-01-16 10:46 UTC (permalink / raw) To: kexec; +Cc: Yuri Bushmelev > petitboot looks interesting; but I need the tool chain ready to go for x86. > Currently For our project, we are using a patched version of kboot which > runs on x86. > > I do see some benefit for petitboot with the graphical menu. Ideally we'd > need a version which reads each partition looking for multiple /boot kernels > and present a method to select each one using a alpha char. Kinda like the > old System Commander app. > > In my config; I'll have multiple linux kernels on the disk. I envision > having Android, Moblin2.0, and several other flavors of linux in partitions > and needing to boot to each at runtime. May I jump in and ask if you know about kexecboot? http://projects.linuxtogo.org/mediawiki/index.php/Kexecboot It's just kernel + minimal initramfs : kexec and kexecboot. We would need more testing on other archs: we mostly build for arm using OpenEmbedded. Regards Andrea _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-01-16 10:46 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-01-12 0:01 Problems compiling kexec-tools Zitt Zitterkopf 2010-01-12 0:39 ` Simon Horman 2010-01-12 16:33 ` Zitt Zitterkopf 2010-01-13 17:27 ` Geoff Levand 2010-01-15 18:47 ` Zitt Zitterkopf 2010-01-15 19:47 ` Geoff Levand 2010-01-16 10:46 ` Andrea Adami
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.