-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kernel Bug Detected, ohci-ps2 related, PAL SCPH-70003 #66
Comments
I wonder, with that |
Hi @nickb834, congratulations on getting this far on the first try! The segmentation fault may be a consequence of USB probing failing, in which case it attempts to clean up and free a NULL pointer, which apparently isn’t supported. The lines at the top similar to
are very interesting. I believe we need to fix those. Does your |
This is my
Only difference really between mine and yours in terms of ordering is I have ohci-ps2 before sd_mod - other than that I have previously tried adding in the other modules you have to no avail:
I took the ps2_defconfig from the repo and have left it well alone! I'm a little out of my comfort zone so changing minimal amount of things possible. I'll rebuild vmlinuz with modules in same order as yours and report back |
Some modules mentioned in #33 (comment) have been deprecated, so that (old) list is by no means perfect, but at least |
Also, don’t be alarmed about a cursor not blinking at the prompt, as one might expect. It’s a technical problem mentioned on the wiki. :-) |
Yep - I'd seen that about the cursor - I read the wiki 100% before I even started as I wanted to be sure it was doable! I even read all the open and closed issues - lots of useful info in there not that I understood a good chunk of it. So- good news, module ordering appears to be an importing thing, the seg fault has gone away as has the kernel bug and even the failed interrupt - but there's still issues with usb etc: |
Could there be a problem with module dependencies?
By the way, I’m currently using the following commands to build the kernel:
|
so my modules in initramfs looks like:
looks same? ohci-ps2.ko deps:
Which looks same too? I'm building kernel same way as you but without the |
It’s puzzling because the errors mentioned in #66 (comment) are for generic modules. Nothing specific about PlayStation 2, as it seems. It looks like the kernel has difficulties finding the kernel modules it wants to load via dependencies. Hmm. Could it be a simple permission problem? Make sure UID and GID correspond to the owner of the files in
No worries, except be careful not to overheat the poor processor with all compilations. For that reason I’ve down-clocked my dual core MacBook 2011 model, running Gentoo, that I normally used until summer 2018, when I bought a POWER9 dual socket 64 core machine. :-) |
checked dirs and perms:
Looks right I think?
POWER9 peaks my interest - that's a hefty amount of cores! |
Try nought
as root likely has UID 0 and GID 0 on your host (MacBook) machine, similar to
The file
It’s normally recommended to compile the kernel as someone else than root, which is why the mapping is needed since INITRAMFS must have many if not all files owned by root. The kernel and some commands such as The default in |
Bliss! Nevertheless I’d like to keep this issue open as a reminder to
You’ve got permission to edit the wiki, so if there’s anything you think could be improved just edit, grammar, spelling, technical things, etc. Note that the wiki pages are reStructuredText, in common with Linux kernel documentation, as opposed to Markdown which is generally more common on Git Hub.
The PlayStation 2 real time clock (RTC) is actually supported in Linux. Maybe its battery is drained? :-) |
I've updated wiki for 70003 known compatability, - for the compiling kernel I think I messed up the order of operations (as best I can tell) so I'll make it clearer based on what worked for me.
Yeah my battery is dead, I bought another and I have no idea what I've done with it! |
Thanks! The astute observer will notice some |
I've updated the wiki for building the Building a PlayStation 2 Linux INITRAMFS root filesystem to point to Building a PlayStation 2 Linux kernel to build the modules, and then steered the reader back to Building a PlayStation 2 Linux INITRAMFS root filesystem#install kernel modules to install them. I don't like how the user journey flows to kernel build, back to initramfs and back to kernel build - but I couldn't think of a better page structure that kept initramfs and kernel build as seperate pages. It should however be clearer now. |
All files and dirs are owned by ‘0’, a “root" user doesn’t actually exist.
… On 9 Feb 2022, at 15:13, frno7 ***@***.***> wrote:
Thanks! The astute observer will notice some Unknown symbol with (err -2) in your latest log in #66 (comment) <#66 (comment)>. I fear the issue may resurface. The modules affected seem to be a bit random... What are the file and directory ownerships on the PlayStation 2 hardware, especially in / and /lib/modules/5.4.169+/?
—
Reply to this email directly, view it on GitHub <#66 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AIUOBM5OR2PQAH6P2ZWYXS3U2KABBANCNFSM5NYJNT2A>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.
|
Could you try to run
The keyword here being ‘etc’. :-) |
The Lines 251 to 253 in 59a11ab
with
in generic kernel code, due to missing kernel modules (the preceding |
I’ve updated the wiki article on building a PlayStation 2 Linux INITRAMFS root filesystem with details on |
I've built a gentoo based cross compiler as per the wiki docs, and managed to get a bootable kernel first time. Unfortunately I get a segmentation fault so whilst I can see the output on the console, I can't interact with the shell.
I've commented out the modules in /sbin/init and discovered that as soon as modprobe ohci-ps2 is run, there's a kernel bug detected followed by a segmentation fault.
If I don't load any other module than ps2fb then there's no kernel bug nor segmentation fault - boots to a prompt just fine but of course no usb keyboard to play with.
I can't think of a method to get you a screenshot (can't ssh in for eg) other than litereally take a couple of photos:
PS2FB loaded only:

PS2FB & OHCI-PS2 loaded only:

The text was updated successfully, but these errors were encountered: