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 

A new port of uClinux on PSP (with accessibility to ms0)
Goto page 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Tue Dec 11, 2007 8:09 pm    Post subject: A new port of uClinux on PSP (with accessibility to ms0) Reply with quote

Hi everyone. I have recently ported another uClinux of version 2.6.22-uc1 onto PSP. On top of the serial driver and the framebuffer driver, there is a new joypad driver enabling apps to read input from PSP buttons, and the a block device driver allowing linux users to access the Memory Stick in linux. And I have established a website for it: http://jacksonm88.googlepages.com/linuxonpsp.htm

Or visit http://jacksonm80.googlepages.com/linuxonpsp.htm which is a mirror site.

Thanks to everyone who have offered me help on this.

PS: Due to the bandwidth limitation in the original server, here is another location where you could download uClinux.zip and extract it to game150/ for a fresh try:
http://myfreefilehosting.com/f/a94c114520_0.9MB


Last edited by M.Jackson on Thu Dec 13, 2007 1:57 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
jimparis



Joined: 10 Jun 2005
Posts: 1179
Location: Boston

PostPosted: Wed Dec 12, 2007 1:43 am    Post subject: Reply with quote

I never knew Office was that broken.. but I think you need to use a different app to create that webpage, all but the first paragraph are just images and so none of the links work. http://jacksonm88.googlepages.com/image699.gif
Back to top
View user's profile Send private message
killerrabbit



Joined: 12 Dec 2007
Posts: 1
Location: france

PostPosted: Wed Dec 12, 2007 3:39 am    Post subject: Reply with quote

Very nice man but can you give a good link to download . please.

P.S : I have found how to get it go to this link

http://jacksonm88.googlepages.com/uClinux.zip

and it runs . very great work.
_________________
The life is only a step and the death is another !!
Back to top
View user's profile Send private message
noquarter



Joined: 23 Jul 2006
Posts: 17

PostPosted: Wed Dec 12, 2007 8:51 am    Post subject: Reply with quote

This is wonderful,the only thing is that using the dpad on the phat is extremely unpleasant. It would be much better to use the analog for input.
Back to top
View user's profile Send private message
IM back!



Joined: 17 Apr 2007
Posts: 44

PostPosted: Wed Dec 12, 2007 10:12 am    Post subject: Reply with quote

first of all id like to say thanks for porting linu× to the psp.

some recomendetions id like to make are:

1. targus universal driver. (ill might be able to make one myself but ive never made a driver before even thow ive coded c++/c for 2 years now.)

2. your not using the psp's FPU.

3. it might be possible to use the PSP's ME as another CPU (dual core PSP :) ). as it runs at the same clock speed and has full memory acssses
_________________
sorry for spelling!
Back to top
View user's profile Send private message
hardrive



Joined: 17 Mar 2006
Posts: 11

PostPosted: Wed Dec 12, 2007 12:36 pm    Post subject: Reply with quote

I must not be doing something right... I've got it to boot just fine, the only problem is that in trying to use the OSK, I can't access the keys on the diagonals, making it VERY hard for me to type commands in ;)

Phat PSP btw.
Back to top
View user's profile Send private message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Wed Dec 12, 2007 1:06 pm    Post subject: Reply with quote

jimparis wrote:
I never knew Office was that broken.. but I think you need to use a different app to create that webpage, all but the first paragraph are just images and so none of the links work. http://jacksonm88.googlepages.com/image699.gif


Really? I did use Office Publisher to create the website just for its convenience, but neither did I realize it could have such a problem. The weird thing is when I tested it in my navigator, the page was indeed presented in text mode and all the links worked...Anyway, I will try another apps to rebuild this page. Thanks for your feedback.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Wed Dec 12, 2007 1:29 pm    Post subject: Reply with quote

hardrive wrote:
I must not be doing something right... I've got it to boot just fine, the only problem is that in trying to use the OSK, I can't access the keys on the diagonals, making it VERY hard for me to type commands in ;)

Phat PSP btw.

I think you can try pressing down two arrow keys together to reach diagonal sections. I know that may not be as easy as using the analog stick as I knew exactly how difficult that was when playing Street Fighters, but back then I decided to leave OSK just that way only because I wanted to preserved the analog stick for simulating mouse in future. But now, however, I don't even know I will have enough time to get that far, I think I'd better stick to the OSK and make it easier to use first. So analog stick will be in the next revision of OSK.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Wed Dec 12, 2007 7:48 pm    Post subject: Reply with quote

Ok, I have updated the webpage, which should have gotten rid of the weird problem now.

Btw, I have also updated the memory stick driver a little bit so that it now can flash the LED during reading or writing.

Enjoy!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
brin_vg



Joined: 03 Oct 2007
Posts: 17
Location: A pineapple, under the sea

PostPosted: Wed Dec 12, 2007 7:51 pm    Post subject: Reply with quote

M.Jackson wrote:
So analog stick will be in the next revision of OSK.

I'm very grateful that the OSK uses the dpad instead of analog, on account of my analog stick wandering upwards, and not moving down in the slightest bit (even with JoySens).

Perhaps an option in the boot config file?
Back to top
View user's profile Send private message Visit poster's website
futaris



Joined: 28 Dec 2005
Posts: 45

PostPosted: Wed Dec 12, 2007 8:51 pm    Post subject: Reply with quote

Sweet. Now all we need is Wifi or USB Gadget for connectivity. Porting the IR keyboard driver is a fairly trivial task.

Is uClibc-0.9.15 the only thing that needs to be patched for the toolchain? If so I can add the PSP to openembedded fairly easily...
Back to top
View user's profile Send private message
brk3



Joined: 12 Dec 2007
Posts: 2

PostPosted: Wed Dec 12, 2007 11:19 pm    Post subject: Reply with quote

Yes this is amazing work :) Cant wait to get home and try it! Thankyou and look forward to seeing where else this can go
Back to top
View user's profile Send private message
Oguz286



Joined: 30 Oct 2007
Posts: 35

PostPosted: Wed Dec 12, 2007 11:29 pm    Post subject: Reply with quote

It says the bandwith limit has exceeded. Could you post it somewere else? I'd really like to try it :)
Back to top
View user's profile Send private message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Thu Dec 13, 2007 12:05 am    Post subject: Reply with quote

Oguz286 wrote:
It says the bandwith limit has exceeded. Could you post it somewere else? I'd really like to try it :)

Oh my god, I had no idea there is such a restriction even in the mighty server that google provides...Is there anyone who can recommend a free website space for me? cos it seems there is really not too much left nowadays
Back to top
View user's profile Send private message Send e-mail Visit poster's website
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Thu Dec 13, 2007 12:14 am    Post subject: Reply with quote

brin_vg wrote:
M.Jackson wrote:
So analog stick will be in the next revision of OSK.

I'm very grateful that the OSK uses the dpad instead of analog, on account of my analog stick wandering upwards, and not moving down in the slightest bit (even with JoySens).

Perhaps an option in the boot config file?

Well, a solution to this is easy. OSK can use both dpad and analog at the same time. haha
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Oguz286



Joined: 30 Oct 2007
Posts: 35

PostPosted: Thu Dec 13, 2007 12:21 am    Post subject: Reply with quote

M.Jackson wrote:
Oguz286 wrote:
It says the bandwith limit has exceeded. Could you post it somewere else? I'd really like to try it :)

Oh my god, I had no idea there is such a restriction even in the mighty server that google provides...Is there anyone who can recommend a free website space for me? cos it seems there is really not too much left nowadays


I don't know how big the file itself is, but you shouldn't host such files on a webspace, because it eats up your bandwidth. You could try hosting the file on rapidshare, sharebigfile or something like that. There are better sites, but i don't recall the names atm, since i host my own files.
Back to top
View user's profile Send private message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Thu Dec 13, 2007 12:32 am    Post subject: Reply with quote

futaris wrote:
Sweet. Now all we need is Wifi or USB Gadget for connectivity. Porting the IR keyboard driver is a fairly trivial task.

Is uClibc-0.9.15 the only thing that needs to be patched for the toolchain? If so I can add the PSP to openembedded fairly easily...


It seems to me yes, cos the changes applied on the mips toolchain are primarily targeting uClibc for addressing issues like differences in calling convention and a few APIs like fork/vfork. However, like I said, this toolchain is using such an old version of gcc that it no longer maintains its compatibility with the latest kernel. Therefore it can only be used to compile applications, while a separate toolchain is reqired to build the kernel, which is a problem I could not get away from yet despite my sincere efforts.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Thu Dec 13, 2007 1:03 am    Post subject: Reply with quote

Ok, I have just uploaded uClinux.zip to this location. http://myfreefilehosting.com/f/a94c114520_0.9MB

For those who are eager to have a try, just download the zip and extract it to game150. Later I will renovate the webpage so that everybody can access.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
noquarter



Joined: 23 Jul 2006
Posts: 17

PostPosted: Thu Dec 13, 2007 1:20 am    Post subject: Reply with quote

You could try talking to the guys over at dcemu,they host several developers projects.
Thanks again for working on this M.Jackson,could you provide a link to your prebuilt toolchain?
Back to top
View user's profile Send private message
gambiting



Joined: 17 Aug 2006
Posts: 154

PostPosted: Thu Dec 13, 2007 1:50 am    Post subject: Reply with quote

I also uploaded it on my own server - http://sklep.vivexpol.pl/uclinux/uClinux.zip
It's 24/7,and with no limits.Glad I can help :D
Back to top
View user's profile Send private message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Thu Dec 13, 2007 1:59 pm    Post subject: Reply with quote

gambiting wrote:
I also uploaded it on my own server - http://sklep.vivexpol.pl/uclinux/uClinux.zip
It's 24/7,and with no limits.Glad I can help :D

Thanks very much!

I have also setup a mirror site: http://jacksonm80.googlepages.com/linuxonpsp.htm

where you can find everything just as the original one.

Enjoy!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Apeiron



Joined: 13 Dec 2007
Posts: 7

PostPosted: Thu Dec 13, 2007 5:37 pm    Post subject: Reply with quote

M.Jackson wrote:
... but back then I decided to leave OSK just that way only because I wanted to preserved the analog stick for simulating mouse in future.


You could have both if the mouse software gave the OSK priority somehow. Who types and uses a mouse at the same time anyway? When the OSK is active, the mouse software can ignore the analog, and when the OSK is idle, it can take over. Just an idea.


M.Jackson wrote:
Well, a solution to this is easy. OSK can use both dpad and analog at the same time. haha


With the drift problem sometimes effecting the analog stick, if it were to read both at the same time the OSK would probably drift around following the stick's response, and only make it even more difficult as it would just jump around with the DPad. I think a switch in the config would be the best route, for that drifting reason.
Back to top
View user's profile Send private message
roge



Joined: 13 Dec 2007
Posts: 11

PostPosted: Thu Dec 13, 2007 11:50 pm    Post subject: Reply with quote

yeeahhhh, very cool!

Jackson, i am trying to build my own boot image but whithout success..

i am get the last uclinux-dist-release (not cvs)
i am try to patch 2.6.22-uc0 (not find uc1)
i am try to patch your kernel.patch
i am try to patch your kernel.patch without 2.6.22-uc0

and i am try here now, how can i build this port?
some howto? tutorial?
please, give us more informations of developing of the port

(sorry for bad english :))

[]`s
Back to top
View user's profile Send private message
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Fri Dec 14, 2007 1:07 am    Post subject: Reply with quote

I think there is really no much difference between building a standard kernel and building this port. All you need is just having your toolchain setup properly in preparation and applying this patch before compilation. In case you never built a kernel before, here are some general steps:

- have the toolchain installed properly (something like mipsel-linux-XXXX);
- under the root directory of the kernel source tree (not the root directory of the distribution package), config your kernel with commands like "make ARCH=mips menuconfig" or others; or you could just start with the config file I posted (by replacing the .config file with my kernel.config, and then run "make ARCH=mips menuconfig" again);
- build the kernel using "make ARCH=mips CROSS_COMPILE=mipsel-linux- vmlinux.bin", after which you will get the binary image of the kernel. The loader actually supports compressed images, thus you can further shrink down the size of the kernel by using "gzip -9 /share/psp/vmlinux.bin". Don't forget to change the loader's config file to point to the compressed image.

In addition, to produce a fully functional system, you may also need to build busybox as well as constructing the initial root fs - a directory structure that contains /bin /dev /proc and so on. Building busybox will help construct some of those, but you still need to manually create some of the devices under /dev just like the ones you saw in the pre-compiled version.

I really hope I can explain everything right here, but it is just that the details of all these are totally beyond the space of this post. Generally, I think maybe you could try to get started by preparing the toolchains first (one for building the kernel, the other one for building busybox and other apps). And then maybe you could try to build an application of your own, which will certainly familiarize you with all these stuff. Once you get used to it, you can have it done with little effort.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
W00fer



Joined: 13 Apr 2007
Posts: 40

PostPosted: Fri Dec 14, 2007 1:38 am    Post subject: Reply with quote

Can we use the uClinux port for the ipod (ipodlinux.org) on this ?

Because it also uses the 2.6 kernel i think.

Would be cool, playing some games etc etc (i suppose music wont work).
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Fri Dec 14, 2007 3:12 am    Post subject: Reply with quote

W00fer wrote:
Can we use the uClinux port for the ipod (ipodlinux.org) on this ?

Because it also uses the 2.6 kernel i think.

Would be cool, playing some games etc etc (i suppose music wont work).

iPod is ARM, while PSP is MIPS.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
roge



Joined: 13 Dec 2007
Posts: 11

PostPosted: Fri Dec 14, 2007 3:23 am    Post subject: Reply with quote

Hello Jackson,

I already have the toolchain compiled in my system
I forget the flags 'ARCH' and 'CROSS_COMPILE'

your kernel.patch its for whitch kernel? uclinux-dist with 2.6.x? 2.6.2x-ucX? original 2.6.22 kernel?

first i will compile kernel, later i will try to build the rootfs..
one step of each time

Very Thanks
Back to top
View user's profile Send private message
Apeiron



Joined: 13 Dec 2007
Posts: 7

PostPosted: Fri Dec 14, 2007 3:39 am    Post subject: Reply with quote

Is it at all possible to add persistence to the initial file system? Perhaps with the Cygwin way and save it in the directory the loader resides in (or perhaps a sub-directory within it), or a tar archive or similar method. ms0 is a bit difficult to type in, and links in /bin and such aren't saved as far as I can tell. Theoretically, everything the end-user might want to link to can be set up in a shell script, but it would have to be run at boot manually each time.

Also, it would be neat if you could add a hibernate-like system, dumping the RAM to disk somewhere and using that instead of the default if it exists.

I know these ideas aren't real important at the moment, but it's just "food for thought."
Back to top
View user's profile Send private message
brin_vg



Joined: 03 Oct 2007
Posts: 17
Location: A pineapple, under the sea

PostPosted: Fri Dec 14, 2007 6:06 am    Post subject: Reply with quote

Fun idea... PSP toolchain....

... on PSP :D Lol
Back to top
View user's profile Send private message Visit poster's website
M.Jackson



Joined: 10 Sep 2007
Posts: 85

PostPosted: Fri Dec 14, 2007 12:24 pm    Post subject: Reply with quote

Apeiron wrote:
Is it at all possible to add persistence to the initial file system? Perhaps with the Cygwin way and save it in the directory the loader resides in (or perhaps a sub-directory within it), or a tar archive or similar method. ms0 is a bit difficult to type in, and links in /bin and such aren't saved as far as I can tell. Theoretically, everything the end-user might want to link to can be set up in a shell script, but it would have to be run at boot manually each time.

Also, it would be neat if you could add a hibernate-like system, dumping the RAM to disk somewhere and using that instead of the default if it exists.

I know these ideas aren't real important at the moment, but it's just "food for thought."


The changes applied to the initial rootfs at run time are not persistent only because it resides in RAM. In fact this rootfs in 2.6 is comparable with the concept of initrd (initial RAM disk) in 2.4. To establish a persistent root fs, a typical way is to switch the root directory from RAM to ms0 at boot time (by using utilities like pivot_root which is also supported by busybox), and then you can maintain a persistent root file system on ms0.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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 1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 1 of 10

 
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