forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bootable sdlmame - beta version (update 20090917)

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development
View previous topic :: View next topic  
Author Message
sashz



Joined: 23 Feb 2006
Posts: 33

PostPosted: Fri Aug 14, 2009 5:13 am    Post subject: Bootable sdlmame - beta version (update 20090917) Reply with quote

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/sdlmame/sdlmame-dfb-ps3-20090917.iso, and then burn it.
Or just download zip archive http://mail.pdaxrom.org/downloads/PS3/sdlmame/sdlmame-dfb-ps3-20090917.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/svnroot/pdaxrom/trunk/pdaXrom-ng )
Updated sixaxisd (events compatible with usb joystick):
http://mail.pdaxrom.org/downloads/PS3/bootloader/src/sixaxisd-0.2.1.tar.bz2

Old binaries for X11 sdlmame:
http://mail.pdaxrom.org/downloads/PS3/sdlmame/old/sdlmame-ps3-20090813.iso
http://mail.pdaxrom.org/downloads/PS3/sdlmame/old/sdlmame-ps3-20090813.zip


Last edited by sashz on Fri Sep 18, 2009 8:43 pm; edited 7 times in total
Back to top
View user's profile Send private message Visit poster's website
jonathan



Joined: 21 Sep 2007
Posts: 23
Location: Tasmania, Australia

PostPosted: Fri Aug 14, 2009 11:52 am    Post subject: Reply with quote

Nice work :)
Back to top
View user's profile Send private message
speedxl



Joined: 07 Aug 2008
Posts: 26

PostPosted: Fri Aug 14, 2009 3:09 pm    Post subject: Reply with quote

sashz,

iīm glad to see you!, Thank you for this, itīs a nice gift!
will try it now..
Back to top
View user's profile Send private message
sashz



Joined: 23 Feb 2006
Posts: 33

PostPosted: Fri Aug 14, 2009 11:13 pm    Post subject: Reply with quote

speedxl wrote:
sashz,

iīm glad to see you!, Thank you for this, itīs a nice gift!
will try it now..


thank you! i just back from my summer vacation ;)
Back to top
View user's profile Send private message Visit poster's website
Schrade



Joined: 19 Jul 2009
Posts: 5

PostPosted: Mon Aug 17, 2009 4:46 am    Post subject: Re: Bootable sdlmame - beta version (update 20090814) Reply with quote

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

Could you add support for the DPad buttons please? Seems kinda weird to not be able to use them.

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)
Back to top
View user's profile Send private message
SiW



Joined: 10 Aug 2005
Posts: 7
Location: Whittemore, Iowa, USA

PostPosted: Fri Aug 21, 2009 3:51 pm    Post subject: Reply with quote

Does the game list just show a random selection or can it be configured to show only the games you have valid ROM sets for? It's pretty much impossible to manage without a keyboard right now if it's a random selection.
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
ConteZero



Joined: 21 Aug 2009
Posts: 1

PostPosted: Fri Aug 21, 2009 8:50 pm    Post subject: Bootable sdlmame - beta version (update 20090814) Reply with quote

Thank you for your work sashz.
Have you ever tested this kernel patch?
http://code.google.com/p/compcache/
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Mon Aug 24, 2009 7:43 pm    Post subject: Kernel not booting on PS3 80GB (model CECHK04) Reply with quote

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?
Back to top
View user's profile Send private message
Schrade



Joined: 19 Jul 2009
Posts: 5

PostPosted: Wed Aug 26, 2009 2:19 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Wed Aug 26, 2009 5:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Wed Aug 26, 2009 5:13 pm    Post subject: Reply with quote

Small correction: hard disk was not WD, it was (and is) a Fujitsu. I guess it does not matter... but for the sake of correctness. :-)
Back to top
View user's profile Send private message
starpc



Joined: 30 Aug 2009
Posts: 1

PostPosted: Sun Aug 30, 2009 8:06 am    Post subject: Reply with quote

where on my USB drive do I need to place the ROMS directory? I've tried both the root of the drive and the PS3 directory and neither time are my roms found.
Back to top
View user's profile Send private message
txg/mnx



Joined: 03 Sep 2009
Posts: 3

PostPosted: Thu Sep 03, 2009 9:51 pm    Post subject: Reply with quote

I can't get any ROMS to work, did try to boot de SDL CD and put an SDcard and USB disc in my 60gb ps3 but it still says no roms found ?

I did create a folder roms on the removable device.

Please help.
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Fri Sep 04, 2009 8:12 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
ouasse



Joined: 30 Jul 2007
Posts: 90
Location: Paris, France

PostPosted: Tue Sep 08, 2009 12:11 am    Post subject: Reply with quote

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:

Code:
 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


Tested on SVN revision 1123, with toolchain generated from rev 1116
Back to top
View user's profile Send private message
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Fri Sep 11, 2009 3:27 am    Post subject: Reply with quote

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.

It is a hypervisor bug. See http://lists.ozlabs.org/pipermail/cbe-oss-dev/2009-September/007012.html for more info and a workaround.
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Sat Sep 12, 2009 7:40 am    Post subject: Reply with quote

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/git/geoff/ps3-linux-patches.git;a=blob;f=ps3-wip/ps3-flash-workaround.patch;h=f2e650bba7ef4fba678a0bda5413e8d50cd812fc;hb=fcc6ed2b3eaf8eeefdb3f9b6dd84d09fe6c49710

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.
Back to top
View user's profile Send private message
txg/mnx



Joined: 03 Sep 2009
Posts: 3

PostPosted: Tue Sep 15, 2009 11:40 pm    Post subject: Reply with quote

Can you supply me with a link to the patched loader ?
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Wed Sep 16, 2009 8:43 pm    Post subject: Reply with quote

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/people/geoff/cell/ps3-petitboot/otheros.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!
Back to top
View user's profile Send private message
n0der



Joined: 24 Aug 2009
Posts: 7

PostPosted: Thu Sep 17, 2009 8:09 am    Post subject: Reply with quote

Quote:
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:


Ouasse: you just need to copy swab.h from the linux kernel source tree to the appropiate include dir on the toolchain, specifically:

Code:
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


I just managed to fully built it (bootloader, rootfs and zImage) with an updated sdlmame-0.134 and with the patched kernel to solve the hypervisor bug, so it works on later PS3 models.

Cheers.
Back to top
View user's profile Send private message
sashz



Joined: 23 Feb 2006
Posts: 33

PostPosted: Fri Sep 18, 2009 8:41 pm    Post subject: Re: Bootable sdlmame - beta version (update 20090814) Reply with quote

ConteZero wrote:
Thank you for your work sashz.
Have you ever tested this kernel patch?
http://code.google.com/p/compcache/


hmm, i will try it :-D
Back to top
View user's profile Send private message Visit poster's website
txg/mnx



Joined: 03 Sep 2009
Posts: 3

PostPosted: Mon Sep 21, 2009 7:44 pm    Post subject: Reply with quote

Hi,

The new pdaxrom sdl mame now works, is there an easy way to scroll thru the rom list ?
Back to top
View user's profile Send private message
ouasse



Joined: 30 Jul 2007
Posts: 90
Location: Paris, France

PostPosted: Wed Sep 23, 2009 1:50 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
sashz



Joined: 23 Feb 2006
Posts: 33

PostPosted: Wed Sep 23, 2009 4:23 am    Post subject: Reply with quote

ouasse 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.


i put 0.133 to src mirror, will see what happen with 0.134
Back to top
View user's profile Send private message Visit poster's website
sashz



Joined: 23 Feb 2006
Posts: 33

PostPosted: Wed Sep 23, 2009 5:23 am    Post subject: Reply with quote

ouasse 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 bug

Code:
#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:

sash@sashz-macpro:~$ /opt/powerpc-ps3-linux/toolchain/bin/powerpc-ps3-linux-gcc hello.c -S


Code:
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)


label cpu_disassemble_1 against cpu_disassemble_powerpc, powerpc name was replaced with 1.

quick fix

Code:
sash@sashz-macpro:~$ /opt/powerpc-ps3-linux/toolchain/bin/powerpc-ps3-linux-gcc hello.c -S -Upowerpc
Back to top
View user's profile Send private message Visit poster's website
sashz



Joined: 23 Feb 2006
Posts: 33

PostPosted: Wed Sep 23, 2009 5:25 am    Post subject: Reply with quote

trunk updated with 0.134
Back to top
View user's profile Send private message Visit poster's website
ouasse



Joined: 30 Jul 2007
Posts: 90
Location: Paris, France

PostPosted: Wed Sep 23, 2009 7:05 am    Post subject: Reply with quote

well done ;) thanks !

I wasn't aware about this bug in gcc 4.4.1.
Back to top
View user's profile Send private message
speedxl



Joined: 07 Aug 2008
Posts: 26

PostPosted: Mon Dec 07, 2009 12:20 pm    Post subject: Reply with quote

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/bodega/viewtopic.php?f=18&t=100&sid=b4bc32d9b7bea8c7561a10e38177736a&start=70

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PS3 Linux Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group