[Cbe-oss-dev] Problem with rebuilding latest Linux Kernel for PS3

Geoff Levand geoffrey.levand at am.sony.com
Sat Aug 16 11:04:59 EST 2008


On 07/28/2008 04:16 PM, John Cunha wrote:
> Geoff, I have a question... How do you build your kernels? What are your
> steps?

  wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.tar.bz2
  tar -xf linux-2.6.26.tar.bz2
  cd linux-2.6.26
  make ARCH=powerpc CROSS_COMPILE='ccache /opt/cell/toolchain/bin/ppu-' INSTALL_MOD_PATH=/target/ps3 INSTALL_PATH=/target/ps3/boot mrproper
  cp arch/powerpc/configs/ps3_defconfig .config
  make ARCH=powerpc CROSS_COMPILE='ccache /opt/cell/toolchain/bin/ppu-' INSTALL_MOD_PATH=/target/ps3 INSTALL_PATH=/target/ps3/boot zImage modules
  make ARCH=powerpc CROSS_COMPILE='ccache /opt/cell/toolchain/bin/ppu-' INSTALL_MOD_PATH=/target/ps3 INSTALL_PATH=/target/ps3/boot modules_install
  cp vmlinux /target/ps3/boot/vmlinux

I put the vmlinux image here:

  http://cell.gotdns.org/pub/vmlinux-2.6.26.bz2

Here is my kboot.conf:

#-----
default=da1_da1_auto
timeout=120

da1_da1_auto='/boot/vmlinux root=/dev/ps3da1 fbcon=rotate:3'
tftp_nfs_1080p='tftp://192.168.1.10/ps3/boot/vmlinux root=/dev/nfs rw ip=dhcp video=1080p fbcon=rotate:3'
#-----


I found that the current petitboot has a bug and can't boot this kernel
over tftp.  I think the file is too big.  I normally run strip to make
the kernel smaller, but my toolchain has a bug that won't strip this
kernel.  By running tftp and kexec from the petitboot shell the kernel
boots OK though.  I did not test with kboot.

-Geoff




More information about the cbe-oss-dev mailing list