About kernelloader and its code

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

About kernelloader and its code

Post by methos3 »

hello,
I downloaded the kernelloader 1.6 source, written by Mega Man, and was looking the part that uses the SifExecModuleBuffer() unction to load modules, and saw that the pointer to the files is: romfile->start;
And the function getTexture, thet uses the romfile->start too.
Anyone that saw Mega Man's kernelloader can explain me if this romfile->start means the start adress of the file on EE memory or it is the whole file?

Any other simple thing: kernelloader can load the kernel from a usb stick, but exist any kernel that can boot the Playstation2Linux using a usb stick?
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

romfile->start points to the start address of the file in EE memory and there is the whole file stored.

You can copy the PS2 Linux root file system on a USB stick then you boot an initrd using /linuxrc and set the new root file system manually (e.g. echo 0x801 >/proc/sys/kernel/real-root-dev).
methos3
Posts: 89
Joined: Fri Feb 01, 2008 3:21 am

Post by methos3 »

ok, thanks!
In this case I will need to ask for someone that already have the ps2linux installed on a hd, right?
Or the ps2linux is booted by its dvd?
Mega Man
Posts: 260
Joined: Sat Jun 18, 2005 3:14 am
Contact:

Post by Mega Man »

I think it is easier when you extract blackrhino.

http://blackrhino.xrhino.com/main.php?page=download
Post Reply