Dec 29, 2006

Gentoo PPC64 PS3 LiveCD is in BETA実践編

ひょんなことからPLAYSTATION3(20GBモデル)に触る機会がありまして。早速Gentoo PPC64 PS3 LiveCDを試してみた。 てっきりLiveCDを入れれば素直に起動できるかと思っていたが全然そんなことはなくて、Fedoraのインストールと同じ手順を踏む必要があった。 具体的に言えば、ここの手順(1)〜(4)までは最低限必要。で、(5)のところでGentoo PPC64 PS3 LiveCDを使う。Gentoo PPC64 PS3 LiveCDはGentoo Download Mirrorsの/experimental/ppc64/livecd/livecd-ppc64-beta.isoから。 手順(5)で起動して

kboot:
まできたら、
kboot: gentoo480i
などのように入力すれば、Xが起動する。「480i」の部分は環境に合わせて変更すべし。ちなみにそのままエンターキーを押すとデフォルトの「gentoo480i」が適用される。 画面が14インチのトリニトロン管テレビだったのでかなり見辛かったが、まぁなんとか。 起動してしまえば、x86などと同じGentoo LiveCD。ただし、PPC64版にはGentoo Installerが付属しないため、昔ながらのインストール手順でインストールする必要がある。まだそこまで出来てない。近々に実施予定。 いくつかスクリーンショットを掲載。 480iなのでかなり狭い。が、LiveCDだけで日本語表示ができた。一部怪しいが。 $ less /proc/cpuinfoの結果。CPU2つで認識している模様。 Emacs。狭い狭い。残念ながらLiveCDで日本語入力はできない。 uname
Linux livecd 2.6.16-ps3 #1 SMP Sun Dec 24 15:07:25 UTC 2006 ppc64 Cell Broadband Engine, altivec supported PS3PF GNU/Linux
へぇ。Cell Broadband Engineねぇ。 /proc/cpuinfo
processor : 0 cpu : Cell Broadband Engine, altivec supported clock : 3192.000000MHz revision : 5.1 (pvr 0070 0501) processor : 1 cpu : Cell Broadband Engine, altivec supported clock : 3192.000000MHz revision : 5.1 (pvr 0070 0501) timebase : 79800000 machine : PS3PF
なんで2つなんだろう。 dmesg(MACアドレス部分を改編)
Page orders: linear mapping = 24, others = 12 Found initrd at 0xc000000002fad000:0xc00000000315f000 Starting Linux PPC64 #1 SMP Sun Dec 24 15:07:25 UTC 2006 ----------------------------------------------------- ppc64_pft_size = 0x14 ppc64_interrupt_controller = 0x1 platform = 0x801 physicalMemorySize = 0xe000000 ppc64_caches.dcache_line_size = 0x80 ppc64_caches.icache_line_size = 0x80 htab_address = 0x0000000000000000 htab_hash_mask = 0x1fff ----------------------------------------------------- *** 0000 : CF000100 *** 0000 : MM Init [boot]0100 MM Init *** 0000 : CF000100 *** 0000 : MM Init Done [boot]0100 MM Init Done Linux version 2.6.16-ps3 (root@baudequad) (gcc version 3.4.4 (Gentoo Linux 3.4.4)) #1 SMP Sun Dec 24 15:07:25 UTC 2006 *** 0000 : CF000012 *** 0000 : Setup Arch [boot]0012 Setup Arch Top of RAM: 0xe000000, Total RAM: 0xe000000 Memory hole size: 0MB On node 0 totalpages: 57344 DMA zone: 57344 pages, LIFO batch:15 DMA32 zone: 0 pages, LIFO batch:0 Normal zone: 0 pages, LIFO batch:0 HighMem zone: 0 pages, LIFO batch:0 *** 0000 : CF000015 *** 0000 : Setup Done [boot]0015 Setup Done Built 1 zonelists Kernel command line: root=/dev/ram0 init=/linuxrc looptype=squashfs loop=/image.squashfs cdroot doscsi video=ps3fb:mode:1 rhgb PID hash table entries: 1024 (order: 10, 32768 bytes) ps3pf_calibrate_decr: decrementer frequency = 79.800000 MHz ps3pf_calibrate_decr: processor frequency = 3192.000000 MHz time_init: decrementer frequency = 79.800000 MHz time_init: processor frequency = 3192.000000 MHz Console: colour dummy device 80x25 Dentry cache hash table entries: 32768 (order: 6, 262144 bytes) Inode-cache hash table entries: 16384 (order: 5, 131072 bytes) Memory: 199104k/229376k available (3488k kernel code, 29964k reserved, 828k data, 20011k bss, 212k init) Calibrating delay loop... 158.72 BogoMIPS (lpj=317440) Mount-cache hash table entries: 256 Processor 1 found. Brought up 2 CPUs migration_cost=2 checking if image is initramfs... it is Freeing initrd memory: 1736k freed NET: Registered protocol family 16 PCI: Probing PCI hardware PCI: Probing PCI hardware done SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub VUART: initialize SYSMGR: sysmgr_init() called squashfs: version 3.1 (2006/08/19) Phillip Lougher io scheduler noop registered io scheduler anticipatory registered (default) io scheduler deadline registered io scheduler cfq registered Console: switching to colour frame buffer device 72x48 fb0: GPU frame buffer device, using 18432K of video memory Generic RTC Driver v1.07 isa bounce pool size: 16 pages RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize loop: loaded (max 8 devices) ps3pf_stor: dev=1 type=e port=0 regions=7 accessible=1 ps3pf_stor: dev=2 type=5 port=0 regions=1 accessible=1 ps3pf_stor: dev=3 type=0 port=2 regions=4 accessible=1 scsi0 : ps3pf Vendor: SONY Model: PS-SYSTEM 302R Rev: 4062 Type: CD-ROM ANSI SCSI revision: 00 scsi1 : ps3pf Vendor: SCEI Model: Sec:Master-3 Rev: 4989 Type: Direct-Access ANSI SCSI revision: 02 scsi2 : ps3pf Vendor: SCEI Model: Flash-5 Rev: 4989 Type: Direct-Access-RBC ANSI SCSI revision: 02 eth0: Gelic Network Driver eth0: Ethernet Address: 00:15:C1:xx:xx:xx SCSI device sda: 20971512 512-byte hdwr sectors (10737 MB) sda: Write Protect is off sda: Mode Sense: 00 18 00 00 SCSI device sda: drive cache: write back SCSI device sda: 20971512 512-byte hdwr sectors (10737 MB) sda: Write Protect is off sda: Mode Sense: 00 18 00 00 SCSI device sda: drive cache: write back sda: unknown partition table sd 1:0:0:0: Attached scsi disk sda SCSI device sdb: 8192 512-byte hdwr sectors (4 MB) sdb: Write Protect is off sdb: Mode Sense: 00 18 0e 00 SCSI device sdb: drive cache: write through SCSI device sdb: 8192 512-byte hdwr sectors (4 MB) sdb: Write Protect is off sdb: Mode Sense: 00 18 0e 00 SCSI device sdb: drive cache: write through sdb: unknown partition table sd 2:0:0:0: Attached scsi disk sdb sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray Uniform CD-ROM driver Revision: 3.20 sr 0:0:0:0: Attached scsi CD-ROM sr0 sr 0:0:0:0: Attached scsi generic sg0 type 5 sd 1:0:0:0: Attached scsi generic sg1 type 0 sd 2:0:0:0: Attached scsi generic sg2 type 14 PCI: Enabling device: (0000:00:01.1), cmd 2 ehci_hcd 0000:00:01.1: EHCI Host Controller ehci_hcd 0000:00:01.1: new USB bus registered, assigned bus number 1 ehci_hcd 0000:00:01.1: irq 10, io mem 0x4000001b0000 ehci_hcd 0000:00:01.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected PCI: Enabling device: (0000:00:02.1), cmd 2 ehci_hcd 0000:00:02.1: EHCI Host Controller ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 2 ehci_hcd 0000:00:02.1: irq 11, io mem 0x4000001d0000 ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004 usb usb2: configuration #1 chosen from 1 choice hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) PCI: Enabling device: (0000:00:01.0), cmd 2 ohci_hcd 0000:00:01.0: OHCI Host Controller ohci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 3 ohci_hcd 0000:00:01.0: irq 16, io mem 0x4000001a0000 usb usb3: configuration #1 chosen from 1 choice hub 3-0:1.0: USB hub found hub 3-0:1.0: 2 ports detected usb 1-2: new high speed USB device using ehci_hcd and address 2 PCI: Enabling device: (0000:00:02.0), cmd 2 ohci_hcd 0000:00:02.0: OHCI Host Controller ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 4 ohci_hcd 0000:00:02.0: irq 17, io mem 0x4000001c0000 usb usb4: configuration #1 chosen from 1 choice hub 4-0:1.0: USB hub found hub 4-0:1.0: 2 ports detected usb 1-2: configuration #1 chosen from 1 choice hub 1-2:1.0: USB hub found hub 1-2:1.0: 4 ports detected Initializing USB Mass Storage driver... usb 2-2: new high speed USB device using ehci_hcd and address 2 usb 2-2: configuration #1 chosen from 1 choice usb 1-2.1: new full speed USB device using ehci_hcd and address 3 usb 1-2.1: configuration #1 chosen from 1 choice usb 1-2.3: new low speed USB device using ehci_hcd and address 4 usb 1-2.3: configuration #1 chosen from 1 choice usb 1-2.4: new low speed USB device using ehci_hcd and address 5 usb 1-2.4: configuration #1 chosen from 1 choice usbcore: registered new driver usb-storage USB Mass Storage support registered. input: Sony PLAYSTATION(R)3 Controller as /class/input/input0 input: USB HID v1.11 Joystick [Sony PLAYSTATION(R)3 Controller] on usb-0000:00:01.1-2.1 input: USB Optical Mouse as /class/input/input1 input: USB HID v1.11 Mouse [USB Optical Mouse] on usb-0000:00:01.1-2.3 input: Dell Dell USB Keyboard as /class/input/input2 input: USB HID v1.10 Keyboard [Dell Dell USB Keyboard] on usb-0000:00:01.1-2.4 usbcore: registered new driver usbhid drivers/usb/input/hid-core.c: v2.6:USB HID core driver mice: PS/2 mouse device common for all mice Advanced Linux Sound Architecture Driver Version 1.0.11rc2 (Wed Jan 04 08:57:20 2006 UTC). PS3PF sound started. start_delay=2000ms ALSA device list: #0: PS3PF sound NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 2, 16384 bytes) TCP established hash table entries: 8192 (order: 5, 131072 bytes) TCP bind hash table entries: 8192 (order: 5, 131072 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered TCP bic registered NET: Registered protocol family 1 NET: Registered protocol family 17 Freeing unused kernel memory: 212k freed ISO 9660 Extensions: Microsoft Joliet Level 3 Unable to load NLS charset iso8859-1 Unable to load NLS charset iso8859-1 ISO 9660 Extensions: RRIP_1991A Bluetooth: Core ver 2.8 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: HCI USB driver ver 2.9 usbcore: registered new driver hci_usb ps3fb: mmap framebuffer P(530000)->V(f6dcf000) usb 1-2.2: new high speed USB device using ehci_hcd and address 6 usb 1-2.2: configuration #1 chosen from 1 choice scsi3 : SCSI emulation for USB Mass Storage devices usb-storage: device found at 6 usb-storage: waiting for device to settle before scanning Vendor: 128MB Model: USB2.0FlashDrive Rev: A4 Type: Direct-Access ANSI SCSI revision: 02 SCSI device sdc: 256000 512-byte hdwr sectors (131 MB) sdc: Write Protect is off sdc: Mode Sense: 00 00 00 00 sdc: assuming drive cache: write through SCSI device sdc: 256000 512-byte hdwr sectors (131 MB) sdc: Write Protect is off sdc: Mode Sense: 00 00 00 00 sdc: assuming drive cache: write through sdc: sdc1 sd 3:0:0:0: Attached scsi removable disk sdc sd 3:0:0:0: Attached scsi generic sg3 type 0 usb-storage: device scan complete
まぁこんなところだ。 Gentooの強みはバイナリパッケージが用意されてる必要がないところか。自前でコンパイルすれば良いってのは非常に大きい。是非お試しあれ。

No comments: