Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PlayStation 2 - Major progress, help me finish!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 10, 11, 12  
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Sun Sep 02, 2007 7:26 pm    Post subject: Reply with quote

Wow, congratulations! I wish I could say I've had as much luck. I don't think you can include images in posts here. Unfortunately, that image link isn't working either.
Back to top
View user's profile Send private message
Maximus32
n00b
n00b


Joined: 24 Aug 2007
Posts: 18

PostPosted: Sun Sep 02, 2007 7:52 pm    Post subject: Reply with quote

Even more good news, I just enabled the ps2 frame buffer in the config and it works! I also added an initrd image. The image gets loaded so the kernel doesn't panic anymore. But when it tries to run something off the initrd it fails. I guess the initrd I am using is no good, but other than that everything seems to work fine!

I see my own website is down, so that's why you can't see the image for now. It should be up again soon and then I'll add another image of the ps2 running with its frame buffer.

EDIT: Server is running again, here's the new image: http://www.bricks-os.org/shared/BOOT02.JPG
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Sun Sep 02, 2007 8:52 pm    Post subject: Reply with quote

Because you said framebuffer, I thought you must be using my kernel or at least my framebuffer patch. Judging by the console output, that appears to be the GS console driver. Still I'd imagine mine would work. So that's excellent!

I've pretty much run out of ideas on my end. :(
Back to top
View user's profile Send private message
Maximus32
n00b
n00b


Joined: 24 Aug 2007
Posts: 18

PostPosted: Sun Sep 02, 2007 9:21 pm    Post subject: Reply with quote

No, I've used the standard 2.4.17-mvl21 for this, since that's what Mega Man used for his loader. I also managed to get a working initrd. It mounts and the kernel runs busybox (with a lot of page fault exceptions however). My list of things now looks like this:

- Test the smaller patches (finally get rid of the huge mvl version)
- Create a simple initrd for as long as there is no hdd driver
- Get irx modules to load using kernelloader (version 0.2 should do this but I somehow can't seem to get it to work)
- Set up communication to the IOP/IRX files (test with something simple like the shutdown button)

Perhaps there is some people over at ps2dev who can help. They seem to know a lot about compilers and stuff. You could also try to finish the 3.2.2 compiler from ps2dev, as stated in the readme:
Quote:
The Playstation 2 Linux kit is NOT supported in this release. There are a
number of issues related to the deployment of this version of GCC in that
environment. This is left as an exercise for the ps2linux folks.
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Sep 03, 2007 9:18 am    Post subject: Reply with quote

You'll see that I tried for a long time to make 3.2.2 to work if you look back through this thread. But I didn't really know what I was doing back then and I was trying to make it work in 32-bit. I could probably make it work now if I tried but I've had good enough results with 4.2.0 to make me think we should stick with that. Even if I can't make the IOP work using 4.2.0, I can still use 4.2.0 for the EE.
Back to top
View user's profile Send private message
Maximus32
n00b
n00b


Joined: 24 Aug 2007
Posts: 18

PostPosted: Mon Sep 03, 2007 9:29 am    Post subject: Reply with quote

So 4.2.0 can already be used to produce ee ps2dev code and ee ps2linux code?

While trying to use some ps2dev code in linux I found out that I had to change "long" into "long long" to get a 64 bit integer? Would this mean that a ps2dev compiler will never be compatible with a ps2linux compiler?

The assembly code also failed for some instructions, saying that instruction was only supported on mips3 and newer. Looking at the compile parameters I see -mips2.... do you know why this is? It explains the errors but it's clear that the code I get now is not optimized for 5900 at all!
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Sep 03, 2007 10:13 am    Post subject: Reply with quote

Well I did say it was working earlier but then I hit that problem with madplay. I'll look at that once I'm done with IRX.

You cannot simply build ps2dev stuff to run inside Linux, it was never designed to and it needs a different compiler target. The patchset is the same but you build two different compilers from it, one for mips64r5900el-scei-elf and one for mips64r5900el-scei-linux-uclibc.

Edit: To clarify, apart from the fact that it wouldn't work anyway, the main reason you received those errors is because you were trying to build 64-bit code using a 32-bit compiler on a 32-bit OS. I'm guessing that the 32-bit compiler only targetted MIPS 2 because the instructions added by MIPS 3 are all 64-bit. As I stated previously, I will be working towards running Linux in 64-bit using the N32 ABI. This ABI expects "long" to be 32-bit and so you would need "long long" for a 64-bit integer. The home brew stuff, on the other hand, uses the EABI ABI. This ABI can have either 32-bit or 64-bit "long" but ps2sdk expects 64-bit so I have made the -mlong64 option enabled by default on mips*r5900*-*-elf*.
Back to top
View user's profile Send private message
Maximus32
n00b
n00b


Joined: 24 Aug 2007
Posts: 18

PostPosted: Mon Sep 03, 2007 5:00 pm    Post subject: Reply with quote

I tried the framebuffer patch. First it wouldn't compile becouse of some missing ps2 functions. When I looked at the functions it looked as if they didn't do anything with the IOP so I enabled them, and it compiled without a probem. And guess what, it works! Well... at least partially. I've never seen the patch in action so I guess it would look just like the console driver, only stretched... As that's what I'm looking at right now.

There is only one problem, again, the unhandled page request, dammit. I have included another picture of this, looks like something is accessing user space memory?! Could be the frame buffer, could also be the enabled "PS2 integrated device"?

http://www.bricks-os.org/shared/BOOT04.JPG

EDIT: The page faults probably don't come from the fb, or the integrated device. They happen everywhere and unexpected. I think uninitialized hardware might be the problem.
Back to top
View user's profile Send private message
Chewi
Developer
Developer


Joined: 01 Sep 2003
Posts: 886
Location: Edinburgh, Scotland

PostPosted: Mon Sep 03, 2007 9:45 pm    Post subject: Reply with quote

I can't remember what the default framebuffer resolution is but that looks right to me. For it not to look stretched, you'd need to switch to an interlaced mode. I used to use fbset to switch between modes.

I'm trying to remember whether that was an error I encountered in the past. I don't quite recall. I know that disabling the optical drive initialisation seemed to prevent the network adapter from working, strange as that may seem. I also know that using HDLoader prevented Linux from being able to see the hard drive, which is kind of expected. Page fault errors would suggest something memory related though.
Back to top
View user's profile Send private message
Maximus32
n00b
n00b


Joined: 24 Aug 2007
Posts: 18

PostPosted: Tue Sep 04, 2007 8:27 am    Post subject: Reply with quote

The page faults look almost random. Mega Man has the same problem. It is probably coused by some uninitialized hardware. The Sony loader seems to set up things differently. Perhaps it's CPU initialization or some other hardware like the DMA/GIF/GS/IOP? I don't know. For more information you could look at the ps2dev thread:
http://forums.ps2dev.org/viewtopic.php?t=8860
Back to top
View user's profile Send private message
rafael2k
n00b
n00b


Joined: 28 Dec 2007
Posts: 1

PostPosted: Mon Jan 07, 2008 2:37 pm    Post subject: Linux boots in PS2 Slim Reply with quote

Hi all,
I managed to boot Linux montavista 2.4.17 using the megaman loader in a PS2 Slim. The kernel used is that available in megaman site too.

USB is not working, so not keyboard (I'm putting my desires in initrd : ) ).
The error kernel gives me is:

usb.c: USB device not accepting new address=1 (error=-145)
usb.c: failed adding a new device. Address=1

then this message appears many times, w/ 'address' being incresed by 1, each message.

I uploaded a very low quality video here:
http://www.youtube.com/watch?v=VE98dn2Zsfk
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Goto page Previous  1, 2, 3 ... 10, 11, 12
Page 12 of 12

 
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