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 

DumpBios - Help with it.

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



Joined: 05 Nov 2004
Posts: 4

PostPosted: Fri Nov 05, 2004 4:14 pm    Post subject: DumpBios - Help with it. Reply with quote

Now, the only code I want to run is dumpbios. All I want is a copy of my bios for future emulation purposes. PS2 homebrew stuff interest me but I havent got the time to really get into any of this. I'm not a programmer, although I can get around code.

Now im using a precompiled version of dumpbios because for the life of me, I couldnt compile it. After following steps from many places I managed to hose my cygwin. And ps2dev did not help. I was told the makefile was at fault. And read something about it here. In any case, I gave up. Till today when I was told to get the source+elf here.

http://wire.napalm-x.com/downloads/misc/dumpbios.zip

So I burned a ps2link 1.2.4 cd. Booted the ps2. and tried running it, But this is all i get.

PS2 Dumps this
Quote:
Bios dump util
- pukko

Read mem
open file for writing
open failed -1
Done!"


Inlink 1.3.7 and every other Ps2 ps2link client spouts this
Quote:

Setting Curent Directory to C:\inlink\.
Executing Elf host:C:\inlink\pukko.elf...
loadelf: fname host:C:\inlink\pukko.elf secname all
Input ELF format filename = host:C:\inlink\pukko.elf
0 00400000 00005d34 .
Loaded, host:C:\inlink\pukko.elf
start address 0x400570
gp address 00000000
open name host:/tmp/bios.bin flag 602 data 41378
[FILE] : Cannot Open tmp/bios.bin #0
open fd = -1



Thats what I get. I figure since im not running *nix* it's not working because of this line in the source.

Code:
fd = fio_open("host:/tmp/bios.bin", O_WRONLY | O_TRUNC | O_CREAT);


I've tried compiling and running ps2client.exe through cygwin to get it working, but it doesnt. Can anyone help? Do I even need dumpbios?

Cant i use xlink or ps2client to dump the memory? Does it not hold what I need?


Last edited by Ruffy on Fri Nov 05, 2004 4:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ruffy



Joined: 05 Nov 2004
Posts: 4

PostPosted: Fri Nov 05, 2004 4:14 pm    Post subject: Reply with quote

Just wanna mention I can run other elfs just fine.
Back to top
View user's profile Send private message
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Fri Nov 05, 2004 6:11 pm    Post subject: Reply with quote

Think about it: it tries to open the file "/tmp/bios.bin". First, depending on your client, the "/" (root) may be redirected to the same directory as the elf file you ran. Now, does the "root" directory your client is using have a "tmp" directory so it can write the "bios.bin" file in... ?
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
Ruffy



Joined: 05 Nov 2004
Posts: 4

PostPosted: Fri Nov 05, 2004 6:15 pm    Post subject: Reply with quote

actually yes. since i ran it from within cygwin, and its / = c:\cygwin
and it does have a tmp directory
Back to top
View user's profile Send private message
Drakonite
Site Admin


Joined: 17 Jan 2004
Posts: 989

PostPosted: Fri Nov 05, 2004 6:50 pm    Post subject: Reply with quote

are you running it from the cygwin root or is it in some /home directory? ... I am not a fan of cygwin so I can't remember... From the look of the output log you need to make sure there is a tmp dir in the current dir when running it.

*slaps anyone who is using absolute paths for stuff like this*
_________________
Shoot Pixels Not People!
Makeshift Development
Back to top
View user's profile Send private message Visit poster's website
pixel



Joined: 30 Jan 2004
Posts: 791

PostPosted: Fri Nov 05, 2004 7:18 pm    Post subject: Reply with quote

ps2client should be removing any leading slash. Take that in consideration. And cygwin doesn't care about \ or /.
_________________
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
Back to top
View user's profile Send private message
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Sat Nov 06, 2004 1:39 am    Post subject: Reply with quote

Or hex-edit the path to just host:bios.bin. :)
Back to top
View user's profile Send private message Visit poster's website
Ruffy



Joined: 05 Nov 2004
Posts: 4

PostPosted: Sat Nov 06, 2004 11:36 am    Post subject: Reply with quote

ooPo wrote:
Or hex-edit the path to just host:bios.bin. :)


I got it working, and this is exactly what I did.
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 -> PS2 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