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 

corrupted eboots under debian

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



Joined: 18 Aug 2008
Posts: 6

PostPosted: Mon Oct 27, 2008 8:52 am    Post subject: corrupted eboots under debian Reply with quote

Hey all,

I have psptoolchain running on both my 10.5 PPC Mac and a Debian machine. It runs without a hitch on my PPC, but on Debian it seems to be pumping out corrupted eboots...

... I compiled a program and put it on my PSP, but it showed up as corrupted data and gave me an 'I/O error' when I tried to delete it on the computer. Trying to delete it from the PSP wiped my memory stick!

Fortunately, my Mac allowed me to delete the file, but this seems to happen with everything I've compiled on the machine so far. I tried copying the eboot to a flash drive, taking it over to the Mac and copying it to the PSP, but the file didn't even show up on the flash drive when I plugged it into my Mac.

Help? Thanks so much!!
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Mon Oct 27, 2008 9:30 am    Post subject: Reply with quote

compile the eboot on your mac.

Wally
Back to top
View user's profile Send private message AIM Address
bit188



Joined: 18 Aug 2008
Posts: 6

PostPosted: Mon Oct 27, 2008 9:59 am    Post subject: Reply with quote

Wally4000 wrote:
compile the eboot on your mac.

Wally


Isn't there a way to get my Debian machine working? >_>;;

My Mac is a desktop, the Debian compy's a laptop. I want a computer to take with me.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Mon Oct 27, 2008 11:11 am    Post subject: Reply with quote

What is the laptop? If it's a PPC (Mac) laptop you put linux on, the issue is that certain programs used by the toolchain to generate the EBOOT are not endian aware. So on linux on Big Endian systems, they generate bad files. Patches were made for those apps when building on OSX on older PPC systems. You need to apply those same patches to debian on your PPC.

If it's an x86/AMD64 laptop, then debian should work... Ubuntu certainly does, and it's based on debian. Maybe you're using an old toolchain. Be sure to compile the latest toolchain/libs from the psptoolchain/psplibraries scripts in the repo. The tutorial on how to set up the toolchain/libs in linux is here:

http://www.guztech.nl/index.php?view=category&id=38%3Apsp&option=com_content&Itemid=56
Back to top
View user's profile Send private message AIM Address
bit188



Joined: 18 Aug 2008
Posts: 6

PostPosted: Mon Oct 27, 2008 11:43 am    Post subject: Reply with quote

J.F. wrote:
What is the laptop? If it's a PPC (Mac) laptop you put linux on, the issue is that certain programs used by the toolchain to generate the EBOOT are not endian aware. So on linux on Big Endian systems, they generate bad files. Patches were made for those apps when building on OSX on older PPC systems. You need to apply those same patches to debian on your PPC.

If it's an x86/AMD64 laptop, then debian should work... Ubuntu certainly does, and it's based on debian. Maybe you're using an old toolchain. Be sure to compile the latest toolchain/libs from the psptoolchain/psplibraries scripts in the repo. The tutorial on how to set up the toolchain/libs in linux is here:

http://www.guztech.nl/index.php?view=category&id=38%3Apsp&option=com_content&Itemid=56


It's an x86 laptop, but I've done a little bit of digging-- turns out the problem is not with the toolchain, but with all files I try to copy from the computer!

It's a new computer, so I wasn't aware of this yet; thanks for your help, though. :D
Back to top
View user's profile Send private message
Geijer



Joined: 18 Aug 2004
Posts: 3

PostPosted: Mon Oct 27, 2008 11:41 pm    Post subject: Reply with quote

Sounds like you are removing the memorycard/closing the usb connection on the PSP before a proper unmount in Debian!

Debian, as most distributions so far, do have writecache even for writing to memory cards / usb-drives so it's very important to do a proper unmount before removing it or the filesystem will be trashed!
Back to top
View user's profile Send private message
bit188



Joined: 18 Aug 2008
Posts: 6

PostPosted: Tue Oct 28, 2008 1:52 am    Post subject: Reply with quote

Geijer wrote:
Sounds like you are removing the memorycard/closing the usb connection on the PSP before a proper unmount in Debian!

Debian, as most distributions so far, do have writecache even for writing to memory cards / usb-drives so it's very important to do a proper unmount before removing it or the filesystem will be trashed!


Oh! Okay, thanks SO much! :D

YAY!
Back to top
View user's profile Send private message
jsharrad



Joined: 20 Oct 2005
Posts: 102

PostPosted: Tue Oct 28, 2008 2:54 pm    Post subject: Reply with quote

Or if you're copying it using the terminal, type "sync" after a copy... but you should always cleanly unmount it.
Back to top
View user's profile Send private message
sauron_le_noir



Joined: 05 Jul 2008
Posts: 229

PostPosted: Tue Oct 28, 2008 10:10 pm    Post subject: Reply with quote

umount /dev/sdxx or eject /dev/sdxxx does also the job ;)
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP 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