Error building custom kernel on ps3

Patrick Mansfield patman at aracnet.com
Thu Jan 29 17:33:47 UTC 2009


On Wed, Jan 28, 2009 at 06:07:17PM +0100, Mikael Larsson wrote:
> mån 2009-01-26 klockan 18:51 +0100 skrev Mikael Larsson:
> > Hello, have been trying to recompile the latest fedora 10 ppc64 kernel
> > on a playstation 3 with no luck. 
> > 
> > I followed the instructions on
> > http://fedoraproject.org/wiki/Docs/CustomKernel that always works
> > perfectly on my i386 and x86_64 machine. 
> > Is there any difference when recompiling for ppc64?
> > 
> > I start the build with:
> > $rpmbuild -bb --without debuginfo --target=`uname -m` kernel.spec
> > 
> > If I look at the output from the build it looks as if the kernel and
> > 'modules stage II' gets built and after 3.5 hours the system freezes for
> > about 10 to 15 minutes with no disk activity and then continues leaving
> > an error that file /var/tmp.<something> returned with wrong status.
> > 
> > How can I find out what's going wrong here?
> > 
> > Regards
> > Mikael Larsson
> > 
> 
> Ideas anyone? please...
> 
> This is the end of the build:
> ...
> drivers/net/skfp/pmf.c:278: warning: cast from pointer to integer of
> different size
> drivers/net/skfp/pmf.c:279: warning: cast from pointer to integer of
> different size
> drivers/net/skfp/pmf.c:280: warning: cast from pointer to integer of
> different size
> drivers/net/wireless/airo.c: In function 'sniffing_mode':
> drivers/net/wireless/airo.c:4744: warning: integer overflow in
> expression
>   Building modules, stage 2.
> WARNING: modpost: Found 1 section mismatch(es).
> To see full details build your kernel with:
> 'make CONFIG_DEBUG_SECTION_MISMATCH=y'
> + mkdir
> -p /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot
> + install -m
> 644 .config /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot/config-2.6.27.12-170.2.5.ps3.fc10.ppc64
> + install -m 644
> System.map /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot/System.map-2.6.27.12-170.2.5.ps3.fc10.ppc64
> +
> touch /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot/initrd-2.6.27.12-170.2.5.ps3.fc10.ppc64.img
> + '[' -f arch/powerpc/boot/zImage.stub ']'
> + cp_vmlinux
> vmlinux /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot/vmlinuz-2.6.27.12-170.2.5.ps3.fc10.ppc64
> + eu-strip --remove-comment
> -o /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot/vmlinuz-2.6.27.12-170.2.5.ps3.fc10.ppc64 vmlinux
> + chmod
> 755 /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/boot/vmlinuz-2.6.27.12-170.2.5.ps3.fc10.ppc64
> + mkdir
> -p /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc/lib/modules/2.6.27.12-170.2.5.ps3.fc10.ppc64
> + make -s ARCH=powerpc
> INSTALL_MOD_PATH=/home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc modules_install KERNELRELEASE=2.6.27.12-170.2.5.ps3.fc10.ppc64 mod-fw=
> /bin/sh: line 1: 27427 Killed                  /sbin/depmod -ae -F
> System.map
> -b /home/build/rpmbuild/BUILDROOT/kernel-2.6.27.12-170.2.5.ps3.fc10.ppc
> -r 2.6.27.12-170.2.5.ps3.fc10.ppc64
> make: *** [_modinst_post] Error 137
> fel: Dålig slutstatus från /var/tmp/rpm-tmp.UU6psg (%build)

Anything in your log files? Maybe it's out of memory, still that does
not help much :-(

I forget which Fedora release failed to enable swap on the PS3, but you
should have already hit other problems if that was the case (at least yum
update would have failed).

-- Patrick Mansfield




More information about the fedora-list mailing list