Bug#619236: [Cbe-oss-dev] Bug#619236: installation-reports: installation works fine on PS3 now, but we still can't boot after the installation

2011-04-15 Thread Antonio Ospite
On Wed, 30 Mar 2011 15:03:26 -0700
Geoff Levand ge...@infradead.org wrote:

 On 03/22/2011 02:29 AM, Antonio Ospite wrote:
  Hi,
  
  the installation on PS3 now completes pretty fine, however there are 
  still some details that could be improved.
  
  The installer warns about the boot loader not being installed, which is 
  fine, I already had the 'petitboot' bootloader installed, but some 
  configuration is still needed to make the system actually boot _after_ 
  the installation.
  
  petitboot needs a /etc/kboot.conf in the root filesystem with this 
  content to successfully boot the installed system:
  
  linux=/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1 quiet
  
[...]

 I encountered the same problems as Antonio.  Once the installer
 was finished, but before it rebooted the system I used this from
 a tty console:
 
   echo 'linux=/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1'  
 /target/etc/kboot.conf
 
 -Geoff

Hi,

I've gone a little bit further on this: I started to put together a
kboot-mkconfig script (shamelessly copied from grub-mkconfig) along
with an update-kboot and some kernel install hooks, you can find it
here:

http://git.ao2.it/kboot-utils.git/

You can build the package with dpkg-buildpackage -tc.

The idea is to have d-i to install this kboot-utils package when
machine==PS3, and let the postinst script of the package generate
the kboot.conf for us, but I haven't got that far yet.

The main concern is about how to detect the actual device the rootfs is
going to be on, right now I am doing:
LINUX_ROOT_DEVICE=$(mount | grep ' / ' | cut -d ' ' -f 1)

and my current understanding is that this is going to work even from
the installer because d-i would be calling apt in a chroot /target
context when installing the kboot-utils package, but I'd like to have
some confirmation about that.

And a review about the state of the package will be appreciated too.

With Kind Regards,
   Antonio

-- 
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?


pgpW7MfNmWrOk.pgp
Description: PGP signature


Bug#619236: [Cbe-oss-dev] Bug#619236: installation-reports: installation works fine on PS3 now, but we still can't boot after the installation

2011-03-30 Thread Geoff Levand
On 03/22/2011 02:29 AM, Antonio Ospite wrote:
 Hi,
 
 the installation on PS3 now completes pretty fine, however there are 
 still some details that could be improved.
 
 The installer warns about the boot loader not being installed, which is 
 fine, I already had the 'petitboot' bootloader installed, but some 
 configuration is still needed to make the system actually boot _after_ 
 the installation.
 
 petitboot needs a /etc/kboot.conf in the root filesystem with this 
 content to successfully boot the installed system:
 
 linux=/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1 quiet
 

I could successfully do a gnome desktop install using the
20110329 daily:

  
http://cdimage.debian.org/cdimage/daily-builds/daily/20110329-5/powerpc/iso-cd/debian-testing-powerpc-netinst.iso

I encountered the same problems as Antonio.  Once the installer
was finished, but before it rebooted the system I used this from
a tty console:

  echo 'linux=/boot/vmlinux initrd=/boot/initrd.img root=/dev/ps3da1'  
/target/etc/kboot.conf

-Geoff




-- 
To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4d93a8ae.2090...@infradead.org