Compiling RUNIX (PSXLinux)

Miscellaneous and un-categorized content regarding the PlayStation 1
User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2431
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Compiling RUNIX (PSXLinux)

Post by Shadow » January 8th, 2020, 1:16 am

Looks like the card image is still missing some critical kernel data. I'm surprised that no one has the actual Memory Card file image we need in order to boot this thing up.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

User avatar
danhans42
/// PSXDEV | ELITE ///
/// PSXDEV | ELITE ///
Posts: 289
Joined: November 28th, 2012, 11:51 pm
IRC: danhans42
PlayStation Model: SCPH-7502
Want to Find: Inspiration
Location: West Yorkshire, UK
Contact:

Re: Compiling RUNIX (PSXLinux)

Post by danhans42 » January 19th, 2020, 8:20 am

You need the missing tool to build a rootfs on a memory card. I suppose you could look through the code to see how it's mounted and try and to understand the format.

I tried this years ago with a pre-built image, and that was always the stumbling block. It didn't output and video from memory, just serial. The tools to build the rootfs was not included in the source.

I assume the rootfs image they had for a memory card had busybox on it or something simple to get up and running.
♥ PSX - http://psx0.wordpress.com

My collection - SCPH-102/SCPH-7502, Yaroze Modded PSone, PocketStation (Clear), 2x Xplorer Carts, 2x Xplorer Pro, 2x AR Carts (1 with Ezoray), GS Pro 3, ISA Comms Link Card. Various USB serial devices, Gameshark Sharklink, Kentai Eddy, iMode Cable & other bits and bobs.

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2431
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Compiling RUNIX (PSXLinux)

Post by Shadow » January 20th, 2020, 12:53 pm

Honestly the best thing would probably be to just build an entire new system of Linux, but it's not going to be much use unless the 8 MB RAM modification is done and we have a keyboard on the PlayStation. Getting Ethernet communications would also be ideal but that can be done last. It's a lot of work and a big project, but it's doable and it would be super awesome :)
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

UselessSoftware
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: July 26th, 2020, 5:36 am

Re: Compiling RUNIX (PSXLinux)

Post by UselessSoftware » July 26th, 2020, 6:12 am

I think creating a new Linux for PSX is a great idea. Runix is what, Kernel 2.2? I'd be glad to help how I can. I'm a programmer, but I don't know if I have enough Linux kernel expertise specifically. It would be awesome to get Ethernet support working though, imagine your Playstation sitting in the corner serving up web pages. :)

What made me interested in this is that I'm writing a MIPS R2000/R3000 emulator and thought a Linux kernel meant for the PSX would be a decent starting point to get it running something useful. Maybe It'll become a full blown PSX emulator, but a quick glance at the GPU tech info makes me cry.

UselessSoftware
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: July 26th, 2020, 5:36 am

Re: Compiling RUNIX (PSXLinux)

Post by UselessSoftware » July 28th, 2020, 6:57 am

I'm playing around with compiling a simple 5.7 kernel for MIPS I and no MMU. If I successfully get it to boot, I'm going to look into creating some simple kernel drivers for PSX things like memory cards, SIO, GPU console etc.

I suspect there won't be enough RAM for a kernel this new though... may have to go back quite a bit, but I'll see how it looks when stripped down.

One thing I noticed about the old PSXLinux kernel was that the SIO drivers were broken completely. It tried to use the data register for all control actions for some reason.

EDIT: Yeah, that made a 150 MB ELF file... :lol:

User avatar
Shadow
Admin / PSXDEV
Admin / PSXDEV
Posts: 2431
Joined: December 31st, 2012, 5:37 pm
PlayStation Model: H2000/5502

Re: Compiling RUNIX (PSXLinux)

Post by Shadow » July 29th, 2020, 3:02 am

If you get Linux to boot correctly, then we can add 8 MB in total to the PSX which will help considerably.
Development Console: SCPH-5502 with 8MB RAM, MM3 Modchip, PAL 60 Colour Modification (for NTSC), PSIO Switch Board, DB-9 breakout headers for both RGB and Serial output and an Xplorer with CAETLA 0.34.

PlayStation Development PC: Windows 98 SE, Pentium 3 at 400MHz, 128MB SDRAM, DTL-H2000, DTL-H2010, DTL-H201A, DTL-S2020 (with 4GB SCSI-2 HDD), 21" Sony G420, CD-R burner, 3.25" and 5.25" Floppy Diskette Drives, ZIP 100 Diskette Drive and an IBM Model M keyboard.

UselessSoftware
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: July 26th, 2020, 5:36 am

Re: Compiling RUNIX (PSXLinux)

Post by UselessSoftware » July 29th, 2020, 3:52 am

I'm starting to think it would be best to just take the 2.4 Runix kernel and improve on it/fix it. It's a good start and pretty small. You could do a few things with that in an 8 MB PSX.

EDIT: Also, the 5.7 kernel generates output with up to MIPS ISA IV instructions even when configured to run on an R3000. It's probably inline assembly somewhere.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest