PS3:FreeBSD Development

From wikibrew
Jump to: navigation, search

Beastie.png

Root is always right
       -- the kernel

Crossreference: ps3devwiki::FreeBSD Development


Get in touch with me if you want to help with FreeBSD development because there are only 2 developers currently working on FreeBSD PS3 support :(

Till now 0 applications :( Date: 12/18/2011

Contents

TODO List

Cross-Compiling Kernel Module

$ cd
$ tar xvzf ps3gpu.tar.gz
$ cd /usr/src
$ env MAKEOBJDIRPREFIX=/usr/obj/PS3 make TARGET=powerpc TARGET_ARCH=powerpc64 buildenv
Entering world for powerpc64:powerpc
$ export SYSDIR=/usr/devel/sys
$ cd ~/ps3gpu
$ make
$ file ps3gpu.ko
ps3gpu.ko: ELF 64-bit MSB shared object, 64-bit PowerPC or cisco 7500, version 1 (FreeBSD), \
    dynamically linked, not stripped

VUART (Bootloader)

VUART (Kernel)

Replace this line:

powerpc_register_pic(dev, 0, sc->sc_ipi_outlet[0], 1, FALSE);

with this:

powerpc_register_pic(dev, 0, 63, 1, FALSE);

VUART Drivers in Action

[glevand@freebsd ~/ps3vuart]$ dmesg
...
ps3vuart0: <Playstation 3 VUART> on nexus0
ps3vuart_bus0: <Playstation 3 VUART Bus> irq 18 on ps3vuart0
ps3av0: <Playstation 3 AV> at port 0 on ps3vuart_bus0
ps3sm0: <Playstation 3 SM> at port 2 on ps3vuart_bus0
ps3av0: detached
ps3av0: <Playstation 3 AV> at port 0 on ps3vuart_bus0

ps3sm0: detached
ps3sm0: <Playstation 3 SM> at port 2 on ps3vuart_bus0
ps3sm0: power button pressed
ps3sm0: power button released

ps3dm0: <Playstation 3 DM> at port 10 on ps3vuart_bus0

[glevand@freebsd ~/ps3vuart]$ sudo ./ps3av_user
Password:
send video init request
read video init response
video init status 0x00000000
send audio init request
read audio init response
audio init status 0x00000000
send AV init request
read AV init response
AV init status 0x00000000
send AV get hw conf request
read AV get hw conf response
AV get hw conf status 0x00000000 hdmi 1 avmulti 1 spdif 1
send AV get monitor info request
read AV get monitor info response
AV get monitor info status 0x00000000 type 2 name XXXXX

[glevand@freebsd ~/ps3vuart]$ sudo ./ps3sm_user
send ring buzzer
send set attribute

[glevand@freebsd ~/ps3vuart]$ sudo ./ps3dm_user
send SM get rnd
SM get rnd status 0
rnd:
 0xca 0x55 0x2c 0x56 0x7c 0x0e 0x33 0x60 0xd3 0xbb 0x59 0x1e 0xa6 0x4b 0xdb 0x73 0xa6 0x28 0x09 0x28 0x74 0x34 0xba 0xda
[glevand@freebsd ~/ps3vuart]$ sudo ./ps3dm_user
send SM get rnd
SM get rnd status 0
rnd:
 0x11 0xbb 0x60 0x9d 0xf0 0xfe 0x56 0x30 0x27 0x51 0x13 0x13 0x75 0x80 0xf3 0xcf 0x5d 0xac 0x31 0x08 0xb7 0xef 0x56 0x72
[glevand@freebsd ~/ps3vuart]$ sudo ./ps3dm_user
send SM get rnd
SM get rnd status 0
rnd:
 0xf1 0xc6 0x66 0x46 0x01 0x7b 0x7a 0x81 0xf5 0x4e 0xb2 0x54 0x7c 0xd5 0x11 0x14 0xac 0x26 0xf4 0x91 0x98 0xc9 0x4f 0xd2

WLAN

RSX

Compiling X11 Video Driver

$ tar xvzf xf86-video-ps3gpu.tar.gz
$ cd xf86-video-ps3gpu
$ ./autogen.sh
$ ./configure (optional)
$ make
$ sudo make install

DRM Device File

Memory

Sound

FLASH/VFLASH

ps3flash0: <Playstation 3 FLASH> irq 15 on ps3bus0
ps3nflash0: <Playstation 3 NOR FLASH> irq 12 on ps3bus0

Storage Regions

Fun

Links

Personal tools
Namespaces
Variants
Actions
Gitbrew
Navigation
projects
Toolbox