Instalar Gentoo en PS3. Parte I
Vamos a ver como instalar Gentoo en nuestras PS3.
Este tutorial es una traduccion/interpretacion libre de esta pagina.
Este tutorial lo dividiremos en dos partes. Primero la instalacion de un sistema minimo, desde el que luego emergeremos el entorno grafico. Comencemos.
Vamos a hacer la instalacion desde un CD de instalacion minima (minimal Install CD), que podemos conseguir aqui.
Antes de seguir tienes que tener preparada la PS3 para instalar otro sistema operativo. En el articulo Instalando Yellow Dog en mi PS3 teneis como hacerlo.
Arranca la PS3 con el CD de la instalacion metido y con el teclado y raton conectados. La PS3 cargara el kboot y tras el texto veras el promt "kboot:". Si no tienes instalado ningun linux antes puedes darle al tabulador para que se te muestre la lista de opciones de arranque disponibles y elijas la que mejor concuerde con tu TV o monitor.
En el caso de que ya tengas instalado algun linux el fichero kboot.conf que ya tienes creado puede interferir en la instalacion. Para que no moleste puedes borrarlo o renombrarlo. De todos modos no creo que halla mucha gente que quiera instalar mas de una distribucion a la vez en su PS3 asi que mi recomendacion personal es que antes de instalar linux hagas un respaldo de los datos de la PS3 y formatees el disco duro. De este modo tendras una instalacion limpia y directa :)
Apartir de aqui la instalacion es similar a una instalacion normal de Gentoo.
La instalacion te dejara en el promt del sistema. livecd ~ # Desde aqui vamos a crear 2 particiones en el disco duro. Una para el sistema y otra swap. Sigue los pasos de acontiunuacion y no deberias tener ningun problema.
livecd ~ # fdisk /dev/sda
The number of cylinders for this disk is set to 10239.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-10239, default 1): 1
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-10239, default 10239): +9000MCommand (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (8585-10239, default 8585):8585
Using default value 8585
Last cylinder or +size or +sizeM or +sizeK (8585-10239, default 10239): 10239
Using default value 10239Command (m for help): t
Partition number (1-4): 2
Hex code (type L to list codes): 82
Changed system type of partition 2 to 82 (Linux swap / Solaris)Command (m for help): p
Disk /dev/sda: 10.7 GB, 10737414144 bytes
64 heads, 32 sectors/track, 10239 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytesDevice Boot Start End Blocks Id System
/dev/sda1 1 8584 8790000 83 Linux
/dev/sda2 8585 10239 1694720 82 Linux swap / SolarisCommand (m for help): w
The partition table has been altered!Calling ioctl() to re-read partition table.
Syncing disks.
livecd ~ #
Ahora vamos a formatear la particion de sistema y habilitar la swap.
livecd ~ # mkfs.ext3 -j /dev/sda1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
1098880 inodes, 2197500 blocks
109875 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2252341248
68 block groups
32768 blocks per group, 32768 fragments per group
16160 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: doneThis filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
livecd ~ # mkswap /dev/sda2
Setting up swapspace version 1, size = 1735389 kB
no label, UUID=56270620-3485-4396-b65b-269517a5451c
livecd ~ # swapon /dev/sda2
livecd ~ #
Ahora vamos a montar la particion de sistema para empezar a trabajar sobre ella.
livecd ~ # mount /dev/sda1 /mnt/gentoo/
Vamos a instalar el sistema base desde el que mas tarde emergeremos el entorno grafico. Con los pasos siguientes instalaremos el stage4 en la PS3.
livecd ~ # cd /mnt/gentoo/
livecd gentoo # links2 http://gentoo.chem.wisc.edu/gentoo/experimental/ppc64/stages/
Aqui tienes que elegir un stage4 y descargarlo. Yo personalmente me baje el primero (stage4-970-ps3_32ul.tar.bz2). Una vez descargado y salido de links vamos a extraer el tarball.
livecd gentoo # tar -xjpf stage4-970-ps3_32ul.tar.bz2
Necesitamos montar profcs y /dev para nuestro chroot. Tambien copiaremos resolv.conf en chroot.
livecd ~ # mount -t proc none /mnt/gentoo/proc
livecd ~ # mount -o bind /dev /mnt/gentoo/dev
livecd ~ # cp /etc/resolv.conf /mnt/gentoo/etc
Ya podemos inicar el chroot en nuestra particion.
livecd gentoo # chroot /mnt/gentoo/ /bin/bash
livecd / # env-update && source /etc/profile
livecd / # export PS1="(chroot) $PS1"
--- 'profiles/arch.list' is empty or not available. Empty portage tree?
/>>> Regenerating /etc/ld.so.cache...
Ahora es el momento de añadir el portage tree a nuestro disco duro.
(chroot) / # emerge --sync
Ya solo queda la configuracion final del sistema para que este sea arrancable y funcional en nuestra PS3.
Lo primero que haremos sera configurar la hora local del sistema. Busca tu zona horaria en /usr/share/zoneinfo y copialo a /etc/localtime.
(buscamos en este directorio nuestra zona horaria, para España)
(chroot) ls /usr/share/zoneinfo/Europe
(para España creo recordar que era asi)
(chroot) cp /usr/share/zoneinfo/Europe/Madrid /etc/localtime
Configuramos kboot usando el fichero de ejemplo que viene en el tarball del stage4 que hemos instalado.
(chroot) e2label /dev/sda1 /
(chroot) / # cd /etc
(chroot) / # cp kboot.conf.example kboot.conf
(chroot) / # nano kboot.conf
En el kboot.conf de ejemplo deberemos modificar la resolucion para adecuarla a nuestro sistema modificando la ultima linea del archivo. En mi caso con una TV que admite 1080p quedaria asi. (No sale bien aqui, lo que he cambiado es, en la ultima linea video=ps3fb:mode:8 por video=ps3fb:mode:5)
# The following is an example kboot configuration file. Edit it
# to suit your needs before attempting to reboot your system or
# you may be unable to boot the new install.# default: the default kernel label to boot should the user not make
# a selection. Uncomment the following line and set a default kernel label.
default=gentoo# timeout: number of seconds to wait for user input before the default
# kernel label is booted. Uncomment the following line and set timeout.
# timeout=20# The format from this point on is within a kernel label. At a minimum,
# you must pass the kernel and root device. The syntax is as follows:
#
label='device:
initrd=device:
kernel_options'
# You should also pass the video options as well. An example of video
# options are as follows:
#
# 480i = ps3fb:mode:1
# 576i = ps3fb:mode:6
# 720p = ps3fb:mode:3
# 1080i = ps3fb:mode:4
# 1080p = ps3fb:mode:5
#
# You can review all possible video modes using the ps3videomode application
# provided by the ps3pfutils package. i.e. ps3videomode -v will display
# possibilities.# The following is an example kernel label. Uncomment and edit as needed.
gentoo='sda1:/boot/kernel-genkernel-ppc-2.6.16-ps3 initrd=sda1:/boot/initramfs-genkernel-ppc-2.6.16-ps3 root=/dev/ram0 real_root=/dev/sda1 init=/linuxrc video=ps3fb:mode:5 rhgb'
Editamos el /etc/fstab para que quede asi.
/etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
##
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 / ext3 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/sr0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
none /spu spufs default 0 0
Ponemos el password al root usando el comando passwd.
(chroot) / # passwd
Password: Re-enter password:
Añadimos un usuario, en este caso Pepe y ponemos su password.
(chroot) / # useradd -m -G users,wheel,audio -s /bin/bash Pepe (chroot) / # passwd Pepe Password: (teclea el password para Pepe) Re-enter password: (Re-teclea el password)
Salimos de chroot, desmontamos el sistema y reiniciamos.
(chroot) etc # exit exit livecd mnt # cd /mnt/ livecd mnt # umount gentoo/proc/ gentoo/dev/ gentoo/ livecd mnt # umount /mnt/usb/ livecd mnt # reboot
Saca el CD cuando la PS3 reinicie.
En el proximo tutorial veremos como instalar el entorno grafico y demas utilidades.

Meneame
del.icio.us
Y no hay forma de hace funcionar el wi-fi con PS3 y Yellow Dog Linux 5?
Jose | 25-04-2007 - 18:42:48 GMT 1 #
De momento no es posible hacerlo con ninguna distribucion :(
ArTBoL | 25-04-2007 - 20:39:13 GMT 1 #
yo le doy 10GB a Linux, pero el fdisk me dice que ps3da tiene 3297 cylinders, en vez de +10000
Joan | 30-12-2007 - 22:13:03 GMT 1 #
me pasa lo mismo que a Joan solo que con diferente numero de cilindros me aparecen 1305, no como en el tuto que aparecen 10239, aclaro que tengo la version de 80GB.
Cual es la razón de este problema?
Jonn | 28-01-2008 - 02:01:38 GMT 1 #
Lo que sucede es que están considerando esa asignación de espacio en el disco duro como una asignación en bytes. Si no especificas la unidad de medida te referirá a cilindros a utilizar.
Cuando hablamos de cilindros se refiere al esquema de direccionamiento Cilindros-Cabezas-Sectores (CHS por sus siglas en ingles). donde 1 byte no es igual a 1 cilindro.
Si quieres entender que es un cilindro en un disco duro creo que esta wiki te va a ayudar.
http://es.wikipedia.org/wiki/Disco_duro
Fiense en el esta parte del manual:
Partition number (1-4): 1
First cylinder (1-10239, default 1): 1
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-10239, default 10239): +9000M
dice CLARAMENTE, ultimo cilindro o size o sizeM o sizeK
lo que aparece es un rango en CILINDROS, pero el le coloca +9000M es decir + 9000 Megas. Si tu no colocas el signo "+" y el M que especifica tu unidad de medida no asumirá que son megas.
y dense cuenta que en la segunda partición ya no usa la M por que está completando "lo que queda" del disco colocando que use hasta el último CILINDRO del disco.
Espero que esto ayude.
Saludos.
HaCKsPy | 17-11-2008 - 00:11:59 GMT 1 #