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 

What's the fastest way to jump in to PSP dev?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
modman



Joined: 12 Feb 2005
Posts: 31
Location: Philadelphia, PA

PostPosted: Sat Jun 18, 2005 1:45 am    Post subject: Reply with quote

Step by step instructions for Linux and Cygwin.

http://staff.philau.edu/barberej/psp_dev_guide.htm

Thanks to everyone on Freenode's #pspdev who put up with my questions.
_________________
SCPH-50001/N
HD SCPH-20401 U
Eyetoy SLEH-00031
Network Adaptor SCPH-10281
Logitech Z680 via FIber w00t!
Sony Wega TV + USB Keyboard
http://staff.philau.edu/barberej/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
lynx44



Joined: 01 Jun 2005
Posts: 12

PostPosted: Sat Jun 18, 2005 6:51 am    Post subject: Reply with quote

I'm installing the toolchain as we speak. I used the script and Cygwin to run it - it was easy enough to get it to run, but its still installing, 8 hours later. Is this normal? Or did I most likely miss something? Just wondering if I should leave it for a while longer or start over.

My computer and connection arent slow either, I have a 1.8 P4 and DSL.

-Matt
Back to top
View user's profile Send private message
0xdeadface



Joined: 31 May 2005
Posts: 62

PostPosted: Sat Jun 18, 2005 7:00 am    Post subject: Reply with quote

It took over 4 hours on my p4 2.6.
It was basically the connection I had though, restarting and selecting another server worked wonders...I selected the full install and it had quite some downloading to do.
Back to top
View user's profile Send private message
lynx44



Joined: 01 Jun 2005
Posts: 12

PostPosted: Sat Jun 18, 2005 7:16 am    Post subject: Reply with quote

Alright, it just finished. Not sure if it works yet, but at least it appears to have executted successfully. Thanks for the script oopo!

-Matt
Back to top
View user's profile Send private message
TRF-Yu-Ki



Joined: 08 Jun 2005
Posts: 15

PostPosted: Sun Jun 19, 2005 5:09 am    Post subject: Reply with quote

Ya know what's wierd about this whole thing.... I almost bashed my head into my monitor in frustration trying to get it to work. Eventually, I just downloaded CYGWIN(pointed the cygwin's setup.exe at some ps2dev ftp server, don't remember the name) into C:\PSPCYGWIN. Then, in HelloPSP's make.bat, I made it look like this:

Code:

C:\PSPCYGWIN\ee\bin\ee-gcc.exe -march=r4000 -g -mgp32 -mlong32 -c hellopsp.c
C:\PSPCYGWIN\ee\bin\ee-gcc.exe -march=r4000 -g -mgp32 -mlong32 -c pg.c
C:\PSPCYGWIN\ee\bin\ee-gcc.exe -march=r4000 -g -mgp32 -c -xassembler -O -o startup.o startup.s
C:\PSPCYGWIN\ee\bin\ee-ld.exe -O0 startup.o hellopsp.o pg.o -M -Ttext 8900000 -q -o out > hellopsp.map
c:\PSPCYGWIN\outpatch
C:\PSPCYGWIN\elf2pbp outp HelloWorld
@echo you got outp as psp elf with EBOOT.PBP final stage.


....and that works just fine. I can make modifications to nem's HelloPSP, compile, execute on the PSP1.50 and I see the changes. I have no toolchain.sh ...no nothing... it just worked. Actually, I don't even need to start up cygwin. I can just click on the BAT file in windows and it compiles...so I'm not sure what I'm missing. =^P ...but, please don't bother listening to me. I'll probably run into my own problems a month or 2 down the line. This is the first time I've ever gotten involved in homebrew of a commercial videogame console. I'm just throwing this into the thread as FYI.

BTW, anyone got the sce-functions for detecting wireless networks? ;)
[/code]
_________________
Learning to hack is not bad in itself; it's what you do with your abilities that count. - a.k.a. Shadow-Me-Twice of ddrfreak.com
Back to top
View user's profile Send private message
wulf



Joined: 13 Apr 2005
Posts: 81

PostPosted: Sun Jun 19, 2005 5:52 am    Post subject: Reply with quote

it's because cygwin is really just a bash shell that runs in windows.. all the programs that it executes are just unix/linux programs ported to windows (not that it's too hard to port command line apps)

bash is just a command shell replacement... but what it does is enable you to run all the "linux-y"
commands that are in shallscripts: ie cp instead of copy, etc.
Back to top
View user's profile Send private message
senor coco



Joined: 05 May 2005
Posts: 5

PostPosted: Sun Jun 19, 2005 12:18 pm    Post subject: Reply with quote

sorry if this sound stupid but this is my first time using cgywin and everytime i try to run the script it tell me that:

gmake not fount
make not found

What do i do?
Back to top
View user's profile Send private message
Yardbird



Joined: 31 May 2005
Posts: 11

PostPosted: Sun Jun 19, 2005 7:23 pm    Post subject: Reply with quote

Run your cygwin setup again, and make sure you install 'make', when you get the option to select packages (it's somewhere under 'devel'). There are probably some other packages you'll still need to install (e.g. wget), using the same method.
Back to top
View user's profile Send private message
senor coco



Joined: 05 May 2005
Posts: 5

PostPosted: Mon Jun 20, 2005 3:19 am    Post subject: Reply with quote

I got everything to work but when i run the script it downbloadc everything but when it trie to install it it give me alot of arrors like:

no such file or directory
/psphome/psptoolchain/binutils-2.16.tar.gz not found in archive
/psphome/psptoolchain/gcc-4.0.0.tar.bz2 not found in archive
/psphome/psptoolchain/newlib-1.13.0.tar.gz not found in archive
cant cd binutils-2.16.tar.gz
cant cd gcc-4.0.0.tar.bz2
cant cd newlib-1.13.0.tar.gz

These are just a few. What do i do.
Back to top
View user's profile Send private message
n1ckn4m3



Joined: 22 May 2005
Posts: 16

PostPosted: Sat Jun 25, 2005 11:39 am    Post subject: Reply with quote

If you get any error message pertaining to the following:

gcc-4.0.0.tar.bz2 not found in archive
wget: command not found
make: command not found
gcc: command not found

or the likes, make sure you have installed the packages 'wget' 'make' 'patch' and 'gcc' for cygwin.

That should help a little.

EDIT: on a side note, on a P4-3.4GHz Prescott w/ 1gb DDR400 ram and 3.0MBps DSL, it took about 15 mins to download/install cygwin from a good ftp. If you're having extremely long install problems, make sure you didn't select every package in the list for cygwin and make sure it's grabbing from a nice server :D. The psptoolchain takes a little while to compile, I'm at about 1.5 hours now.
_________________
... anyone up for some l33th4x?

;)
Back to top
View user's profile Send private message Visit poster's website
rugalz



Joined: 24 Jun 2005
Posts: 1

PostPosted: Sun Jun 26, 2005 4:04 am    Post subject: Reply with quote

Hi, I followed all the instructions. However I'm still getting this error with Hello World:

Code:

psp-gcc -g -c -xassembler -O -o startup.o startup.S

startup.S: Assembler messages:
startup.S:17: Error: illegal operands `la $v2,_gp'
startup.S:18: Error: illegal operands `move'
startup.S:23: Error: illegal operands `li $v2,1'


I noticed several posts has this problem but I did not see anyone responded with answer. Any help would be appriciated.
Back to top
View user's profile Send private message
jboldiga



Joined: 20 Jun 2005
Posts: 27

PostPosted: Sun Jun 26, 2005 4:13 am    Post subject: Reply with quote

remove the 'v' in "$v2"
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 -> PSP Development All times are GMT + 10 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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