Hi Jim<br><br>Thanks for the response. Yes, I did run a 'make ps3-defconfig' before running a 'make'; otherwise the kernel does not even build. More specifically, here are the steps I took:<br><br>1. make ps3-defconfig<br>
<br>2. make menuconfig ---> Made some minor changes like turning on PREEMPT flag, exporting the kernel config via /proc/config.gz etc. Nothing I did here should generate an unbootable kernel; but if there are gotcha's here, please let me know because this is the first time I am trying to build a kernel for the PS3 and it is not going very well as you can see.<br>
<br>3. make -j 4 // To take advantage of the 2 PPE cores.<br><br>4. sudo make modules_install<br><br>5. sudo make install<br><br>These are exactly the steps I take to build and install a kernel on a PC running Fedora Core x.<br>
<br>The 'make install' step placed a vmlinux (i.e. uncompressed image) in the /boot directory and did not change the yaboot.conf file. Notice that the Fedora kernels for PS3 are compressed images and they do change the /boot/yaboot.conf when installed by the yum updater and on a PC the 'make install' step changes /boot/grub/grub.conf file automatically to add the new kernel as a boot option.<br>
<br>One question that I have is: why do the steps 1-5 above, when executed on a PC, generates a compressed image whereas on a PS3 generates an uncompressed image?<br><br>And the ultimate question is: How do I build a stock kernel for a PS3 that is already running a Fedora-11 installation? The kernel I am trying to build is the latest stable release (2.6.35, I believe)<br>
<br>Thanks and regards<br>Durga<br><br><div class="gmail_quote">On Wed, Oct 13, 2010 at 3:52 PM, Jim Paris <span dir="ltr"><<a href="mailto:jim@jtan.com">jim@jtan.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Durga Choudhury wrote:<br>
> Hi<br>
><br>
> I have a simple question I am really hoping you will be able to answer.<br>
><br>
> I have Fedora 12 installed on my PS3. This installs the yaboot<br>
> bootloader and the stock kernel, of course. The yaboot bootloader<br>
> expects a compressed kernel, i.e. a vmlinuz file.<br>
><br>
> However, (native) compiling the stock kernel on the PS3 creates an<br>
> uncompressed kernel, i.e. a vmlinux file. From a brief web search it<br>
> looks like this is the correct file format on PPC64 architecture, but<br>
> then yaboot refuses to boot it. Even the 'make install' process does<br>
> not automatically insert the new entry in /boot/yaboot/yaboot.conf, as<br>
> it does in the PC architecture by modifying /boot/grub.conf. I tried<br>
> manually editing the yaboot.conf file to make an entry for the new<br>
> kernel (and the associated Ramdisk etc), but the bootloader simply<br>
> hangs while trying to boot the uncompressed kernel.<br>
><br>
> My simple question is: how do I compile the stock kernel that I can<br>
> boot with a Fedora installed yaboot boot loader, or, generate a<br>
> vmlinuz compressed kernel file?<br>
<br>
The PS3 doesn't use yaboot.  The PS3 uses a Linux-based bootloader<br>
like kboot or petitboot, which are capable of reading a yaboot.conf<br>
for compatibility with existing installers.<br>
<br>
Generally a bootloader doesn't care if the format is compressed or<br>
not.  Code at the beginning of the kernel image handles the<br>
decompression, independent of the bootloader.  Specifically, kexec<br>
should be able to handle vmlinux or bzImage just fine.<br>
<br>
If your kernel is hanging during boot, it's most likely to be a<br>
configuration problem.  Did you start with "make ps3_defconfig"?<br>
<font color="#888888"><br>
-jim<br>
</font></blockquote></div><br><br>