Bootable sdlmame - beta version (update 20090917)
Bootable sdlmame - beta version (update 20090917)
New version of bootable sdlmame 0.133 based on kernel 2.6.30, directfb and sdl.
Changes:
hypervisor bug fixed.
Download the ISO image here http://mail.pdaxrom.org/downloads/PS3/s ... 090917.iso, and then burn it.
Or just download zip archive http://mail.pdaxrom.org/downloads/PS3/s ... 090917.zip and unzip it to USB stick or mmc/sd/ms/cf card.
After that put mame roms to usbstick or mmc/sd/ms/cf card in directory 'roms' or 'ROMS' (you can use the same stick or card with sdlmame boot files).
Boot the system from cd or stick/card. If you see the following message 'No game found... Exit', press Enter or Esc (cross or (PS) button if joystick is attached) to rescan local storages for roms (automounting is need some time to detect and mount removable devices).
During a game you can unplug usb stick or memory card and copy a new game to it. Plug it to ps3 again and wait 5-10 sec for autodetecting and mounting, then press Esc to finish the current game. Press Esc or choose Exit from the menu to exit and rescan storages, sdlmame will restarting with updated game list.
USB joystick and bluetooth are supported. Press (PS) button during startup to attach joystick.
Joystick functions:
Games:
Left analog stick [cursor keys] - left,right,up,down
cross,circle,triangle,square [ASQW] - buttons 1,2,3,4
L1 [5] - insert coins
R1 [1] - P1
(PS) [ESC]- exit
Menu:
Left analog stick [cursor keys] - navigation
cross [enter] - enter
(PS) [ESC] - cancel
Notes:
You need install bootloader to a new PS3 before use sdlmame distro. PS3Boot is included.
Script for building "build-linux-sdlmame-dfb-ps3.sh" is located in pdaXrom-ng svn trunk repo ( https://pdaxrom.svn.sourceforge.net/svn ... pdaXrom-ng )
Updated sixaxisd (events compatible with usb joystick):
http://mail.pdaxrom.org/downloads/PS3/b ... .1.tar.bz2
Old binaries for X11 sdlmame:
http://mail.pdaxrom.org/downloads/PS3/s ... 090813.iso
http://mail.pdaxrom.org/downloads/PS3/s ... 090813.zip
Changes:
hypervisor bug fixed.
Download the ISO image here http://mail.pdaxrom.org/downloads/PS3/s ... 090917.iso, and then burn it.
Or just download zip archive http://mail.pdaxrom.org/downloads/PS3/s ... 090917.zip and unzip it to USB stick or mmc/sd/ms/cf card.
After that put mame roms to usbstick or mmc/sd/ms/cf card in directory 'roms' or 'ROMS' (you can use the same stick or card with sdlmame boot files).
Boot the system from cd or stick/card. If you see the following message 'No game found... Exit', press Enter or Esc (cross or (PS) button if joystick is attached) to rescan local storages for roms (automounting is need some time to detect and mount removable devices).
During a game you can unplug usb stick or memory card and copy a new game to it. Plug it to ps3 again and wait 5-10 sec for autodetecting and mounting, then press Esc to finish the current game. Press Esc or choose Exit from the menu to exit and rescan storages, sdlmame will restarting with updated game list.
USB joystick and bluetooth are supported. Press (PS) button during startup to attach joystick.
Joystick functions:
Games:
Left analog stick [cursor keys] - left,right,up,down
cross,circle,triangle,square [ASQW] - buttons 1,2,3,4
L1 [5] - insert coins
R1 [1] - P1
(PS) [ESC]- exit
Menu:
Left analog stick [cursor keys] - navigation
cross [enter] - enter
(PS) [ESC] - cancel
Notes:
You need install bootloader to a new PS3 before use sdlmame distro. PS3Boot is included.
Script for building "build-linux-sdlmame-dfb-ps3.sh" is located in pdaXrom-ng svn trunk repo ( https://pdaxrom.svn.sourceforge.net/svn ... pdaXrom-ng )
Updated sixaxisd (events compatible with usb joystick):
http://mail.pdaxrom.org/downloads/PS3/b ... .1.tar.bz2
Old binaries for X11 sdlmame:
http://mail.pdaxrom.org/downloads/PS3/s ... 090813.iso
http://mail.pdaxrom.org/downloads/PS3/s ... 090813.zip
Last edited by sashz on Fri Sep 18, 2009 8:43 pm, edited 7 times in total.
Re: Bootable sdlmame - beta version (update 20090814)
Could you add support for the DPad buttons please? Seems kinda weird to not be able to use them.sashz wrote:USB joystick and bluetooth are supported. Press (PS) button during startup to attach joystick.
Joystick functions:
Games:
Left analog stick [cursor keys] - left,right,up,down
cross,circle,triangle,square [ASQW] - buttons 1,2,3,4
L1 [5] - insert coins
R1 [1] - P1
(PS) [ESC]- exit
Menu:
Left analog stick [cursor keys] - navigation
cross [enter] - enter
(PS) [ESC] - cancel
Oh.. something else I noticed. The screenmode seems to be set to TV levels. Is there a way to set it to Full RGB levels? It doesn't look so good when my blacks are grey.
(My Toshiba supports Full RGB)
Bootable sdlmame - beta version (update 20090814)
Thank you for your work sashz.
Have you ever tested this kernel patch?
http://code.google.com/p/compcache/
Have you ever tested this kernel patch?
http://code.google.com/p/compcache/
Kernel not booting on PS3 80GB (model CECHK04)
I've tried to boot both with supplied bootloader and with petitloader, using kexec to launch the kernel on the usb drive. But no luck. In both cases I just got a fronzen PS3. The supplied kernel does not even show the tux logos nor any other messages on launch.
Could I help somehow to debug the problem?
Could I help somehow to debug the problem?
Post the model of PS3 you have. Specifically, the first 5 letters are most important.
http://www.edepot.com/playstation3.html#TOC
Here is a listing of the 5 letter prefixes for each model.
My PS3 is a 60 GB North American model with full backwards compatibility. It works perfectly fine on mine. The prefix is CECHA.
http://www.edepot.com/playstation3.html#TOC
Here is a listing of the 5 letter prefixes for each model.
My PS3 is a 60 GB North American model with full backwards compatibility. It works perfectly fine on mine. The prefix is CECHA.
Hello Schrade,
I already specified it on the Post Subject (yes, it is easy to oversee it): it is a CECHK04. Not PS2 compatible, "spanish" version.
Since last post, I've tried to boot the YDL 6.2 kernel (from DVD and from USB) with it's own "otheros.bld" and it does not work either.
Additional info: I upgrade the default HD on the PS3 from a 80GB WesternDigital HD to a 160GB version (also WD). Used backup & restore PS3 utility to carry over the info already installed.
Will posting the bootup messages from the pdaXrom "otheros" help in any way? (a dmesg).
Interesting link btw. Thank your for the info.
Cheers.
I already specified it on the Post Subject (yes, it is easy to oversee it): it is a CECHK04. Not PS2 compatible, "spanish" version.
Since last post, I've tried to boot the YDL 6.2 kernel (from DVD and from USB) with it's own "otheros.bld" and it does not work either.
Additional info: I upgrade the default HD on the PS3 from a 80GB WesternDigital HD to a 160GB version (also WD). Used backup & restore PS3 utility to carry over the info already installed.
Will posting the bootup messages from the pdaXrom "otheros" help in any way? (a dmesg).
Interesting link btw. Thank your for the info.
Cheers.
Hello Sashz,
it seems that in order to be able to kexec the kernel once the "otheros" kernel is loaded, and succesfully boot from USB, the PS3 has to have a linux partition created on the internal HD. Otherwise it does not work (at least on my CECHK04).
So the purpose of this very nice "live-mame-usb" beign able to boot from USB without touching the PS3 harddisk is defeated (at least on CECHK).
Could you guess why the local partition is needed in order to boot from USB? I will take a look at the sources and try to find any dependancy for the existance of the local partition.
I have confirmed from the pdaXrom shell that the USB device is fully accesible and it is possible to mount the compresed rootfs, the initrd, preload the kernel with the "kexec --load", but once you try to launch the new kernel with "kexec -e" it just hangs.
Thank you for your time and for all the nice releases you have done!
Cheers.
it seems that in order to be able to kexec the kernel once the "otheros" kernel is loaded, and succesfully boot from USB, the PS3 has to have a linux partition created on the internal HD. Otherwise it does not work (at least on my CECHK04).
So the purpose of this very nice "live-mame-usb" beign able to boot from USB without touching the PS3 harddisk is defeated (at least on CECHK).
Could you guess why the local partition is needed in order to boot from USB? I will take a look at the sources and try to find any dependancy for the existance of the local partition.
I have confirmed from the pdaXrom shell that the USB device is fully accesible and it is possible to mount the compresed rootfs, the initrd, preload the kernel with the "kexec --load", but once you try to launch the new kernel with "kexec -e" it just hangs.
Thank you for your time and for all the nice releases you have done!
Cheers.
Very cool stuff. Nice work, sashz.
Seems it doesn't use the SPU-accelerated framebuffer driver in SDL 1.2. Not really a problem though.
As wiki.pdaxrom.org/downloads is currentlt not working, I tried to make the mame iso myself. But the compile process stops when building SDL:
Tested on SVN revision 1123, with toolchain generated from rev 1116
Seems it doesn't use the SPU-accelerated framebuffer driver in SDL 1.2. Not really a problem though.
As wiki.pdaxrom.org/downloads is currentlt not working, I tried to make the mame iso myself. But the compile process stops when building SDL:
Code: Select all
powerpc-ps3-linux-gcc -g -O2 -I./include -D_GNU_SOURCE=1 -fvisibility=hidden -I/home/ouasse/src/pdaXrom-ng/target/usr/include/directfb -D_REENTRANT -D_REENTRANT -DHAVE_LINUX_VERSION_H -c ./src/cdrom/linux/SDL_syscdrom.c -fPIC -DPIC -o build/.libs/SDL_syscdrom.o
In file included from /home/ouasse/src/pdaXrom-ng/target/include/linux/byteorder/big_endian.h:12,
from /opt/powerpc-ps3-linux/sysroot/usr/include/asm/byteorder.h:25,
from /home/ouasse/src/pdaXrom-ng/target/include/linux/cdrom.h:15,
from ./src/cdrom/linux/SDL_syscdrom.c:49:
/home/ouasse/src/pdaXrom-ng/target/include/linux/swab.h:6:22: error: asm/swab.h: No such file or directory
It is a hypervisor bug. See http://lists.ozlabs.org/pipermail/cbe-o ... 07012.html for more info and a workaround.n0der wrote:Could you guess why the local partition is needed in order to boot from USB? I will take a look at the sources and try to find any dependancy for the existance of the local partition.
Thanks for the information Jimparis!
Indeed, with the patched petitboot I'm able to boot from from USB without the need of an "Otheros" partition on the main HD on a CECHK PS3.
On the other hand I learned quite a bit from browsing through the sources, so all is good! :-)
Sashz, please, take a look at this patch here for the "otheros" bootloader: http://git.kernel.org/?p=linux/kernel/g ... 9fe6c49710
You might want to incorporate it to pdaxrom-ng own bootloader to make it compatible with PS3 models CECHH, CECHJ, CECHK, CECHL,
CECHM, and CECHP with no "otheros" partition created.
Thank you again for the pointer Jimparis (and thanks to Geoff Levand, author of the patch if he ever reads this :-) ).
Cheers.
Indeed, with the patched petitboot I'm able to boot from from USB without the need of an "Otheros" partition on the main HD on a CECHK PS3.
On the other hand I learned quite a bit from browsing through the sources, so all is good! :-)
Sashz, please, take a look at this patch here for the "otheros" bootloader: http://git.kernel.org/?p=linux/kernel/g ... 9fe6c49710
You might want to incorporate it to pdaxrom-ng own bootloader to make it compatible with PS3 models CECHH, CECHJ, CECHK, CECHL,
CECHM, and CECHP with no "otheros" partition created.
Thank you again for the pointer Jimparis (and thanks to Geoff Levand, author of the patch if he ever reads this :-) ).
Cheers.
For sure (the link was provided by jimparis two posts above), here it is. A direct link to the latest version: http://www.kernel.org/pub/linux/kernel/ ... theros.bld.
Keep in mind that this is petitboot without sixaxis support, so you need a USB keyboard in order to boot from it. I've already built a patched version of pdaXrom bootloader but I'm not releasing it, as I would prefer not to take any credit or interfere in any way with the great work Sashz has done. So please, wait until Sashz releases a new updated version.
If you are of the impatient type, you can build it yourself too, following the instructions provided by Sashz on this forum. Some linux/compiling knowledge needed (and general common sense to follow instructions ;-) ).
Cheers!
Keep in mind that this is petitboot without sixaxis support, so you need a USB keyboard in order to boot from it. I've already built a patched version of pdaXrom bootloader but I'm not releasing it, as I would prefer not to take any credit or interfere in any way with the great work Sashz has done. So please, wait until Sashz releases a new updated version.
If you are of the impatient type, you can build it yourself too, following the instructions provided by Sashz on this forum. Some linux/compiling knowledge needed (and general common sense to follow instructions ;-) ).
Cheers!
Ouasse: you just need to copy swab.h from the linux kernel source tree to the appropiate include dir on the toolchain, specifically:As wiki.pdaxrom.org/downloads is currentlt not working, I tried to make the mame iso myself. But the compile process stops when building SDL:
Code: Select all
user@compile:~/ps3-dev/pdaXrom-ng$ cp build/linux-2.6.30/arch/powerpc/include/asm/swab.h /opt/powerpc-ps3-linux/sysroot/usr/include/asm
Cheers.
Re: Bootable sdlmame - beta version (update 20090814)
hmm, i will try it :-DConteZero wrote:Thank you for your work sashz.
Have you ever tested this kernel patch?
http://code.google.com/p/compcache/
Hi, just to inform the sdlmame download server messes up versions. The script actually requests to download version 0.133 but the server sends 0.134 (0.133 is not available anymore). Of course, the patches are incompatible without (trivial) changes, but the compilation stops with an error about missing powerpc emulation stuff.
i put 0.133 to src mirror, will see what happen with 0.134ouasse wrote:Hi, just to inform the sdlmame download server messes up versions. The script actually requests to download version 0.133 but the server sends 0.134 (0.133 is not available anymore). Of course, the patches are incompatible without (trivial) changes, but the compilation stops with an error about missing powerpc emulation stuff.
looks like ppc gcc 4.4.1 preprocessor bugouasse wrote:Hi, just to inform the sdlmame download server messes up versions. The script actually requests to download version 0.133 but the server sends 0.134 (0.133 is not available anymore). Of course, the patches are incompatible without (trivial) changes, but the compilation stops with an error about missing powerpc emulation stuff.
Code: Select all
#include <stdio.h>
#define CPU_DISASSEMBLE_NAME(name) cpu_disassemble_##name
#define CPU_DISASSEMBLE(name) int CPU_DISASSEMBLE_NAME(name)()
CPU_DISASSEMBLE( powerpc )
{
return 314;
}
int main(int argc, char *argv[])
{
printf("Hello world!\n");
return 0;
}
Code: Select all
sash@sashz-macpro:~$ /opt/powerpc-ps3-linux/toolchain/bin/powerpc-ps3-linux-gcc hello.c -S
Code: Select all
sash@sashz-macpro:~$ head hello.s
.file "hello.c"
.gnu_attribute 4, 1
.gnu_attribute 8, 1
.gnu_attribute 12, 2
.section ".text"
.align 2
.globl cpu_disassemble_1
.type cpu_disassemble_1, @function
cpu_disassemble_1:
stwu 1,-16(1)
quick fix
Code: Select all
sash@sashz-macpro:~$ /opt/powerpc-ps3-linux/toolchain/bin/powerpc-ps3-linux-gcc hello.c -S -Upowerpc
Hi sashz, there´s a scaler for mame that makes games look nice on hdtv it takes not impact on performance because its cell accelerated i think..
this is the link if you are interested.
http://pleasantfiction.ipower.com/bodeg ... a&start=70
Thank you!
this is the link if you are interested.
http://pleasantfiction.ipower.com/bodeg ... a&start=70
Thank you!