Skip to content
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

[ERROR]: Unknown microarchitecture detected: 0x70010201 on Nintendo Wii U [PowerPC] #231

Open
WiiNewU opened this issue Mar 22, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@WiiNewU
Copy link

WiiNewU commented Mar 22, 2024

CPUfetch cant recognize the Nintendo Wii U's SOC, called "Espresso", made by IBM. Its a 32bit PowerPC BE CPU.

CPUfetch running on Wii U (Espresso)

$ cpufetch --debug
cpufetch v1.05-6-g2976 (Linux PowerPC build)
PVR: 0x70010201

This is running on the unofficial 32bit PPC port of Debian trixie/SID. Uses Linux kernel 4.19.265-wiiu-gf5f64b59fada .

This is a output of /proc/cpuinfo:

processor	: 0
cpu		: Espresso
clock		: 1243.125000MHz
revision	: 2.1 (pvr 7001 0201)
bogomips	: 124.31

timebase	: 62156250
platform	: wiiu
model		: nintendo,wiiu
Memory		: 2304 MB

This is a output of lscpu:

Architecture:        ppc
CPU op-mode(s):      32-bit
Byte Order:          Big Endian
CPU(s):              1
On-line CPU(s) list: 0
Model name:          Espresso
Model:               2.1 (pvr 7001 0201)
Thread(s) per core:  1
Core(s) per socket:  1
Socket(s):           1
BogoMIPS:            124.31
L1d cache:           32 KiB (1 instance)
L1i cache:           32 KiB (1 instance)
L2 cache:            512 KiB (1 instance)
@Dr-Noob
Copy link
Owner

Dr-Noob commented May 18, 2024

Wow! It is great to see cpufetch running on the Wii U! I have added preeliminary support in the wiiu branch. Can you have a look and see if it works?

It is probably not the most elegant solution, since Espresso seems to be based on PowerPC 750L, but currently cpufetch does not support PowerPC 7xx at all. Ideally, I will add support for this and then make Espresso a special case inside the PowerPC 750L microarchitecture. If you have any feedback about this please feel free to share it.

The number of cores seems to be 3, although cpufetch won't see it. This seems to be because of incomplete Linux support. If you have the time you can post the output of /proc/cpuinfo and maybe we can figure out where is the problem.

@Dr-Noob Dr-Noob added the enhancement New feature or request label May 18, 2024
@WiiNewU
Copy link
Author

WiiNewU commented May 19, 2024

@Dr-Noob Hi, thank you for updating, I compiled and ran cpufetch from the wiiu branch and its a lot more detailed and no longer gives the error message at the top.

cpufetch-wiiu-May18th2024-exe

I also ran /proc/cpuinfo but it gives the same output as before,
cpufetch-wiiu-May18th2024-cpuinfo

The reason why only one core shows up is due to a limitation imposed by the Wii U Linux kernel developers, they say on there gitlab page that while multi core/SMP is possible, it will break the existing Linux userspaces. Its likely out of our control for the multi core part. Some thing like saying "3 cores, 1 active" or "3 cores, 2 disabled" may be a good work around.

Thank you for your project!

Source for lack of multicore:
https://gitlab.com/linux-wiiu/linux-wiiu/-/blob/rewrite-4.19/README.md

This is also a good source for learning about the Wii U CPU:
https://www.copetti.org/writings/consoles/wiiu/#cpu

@WiiNewU WiiNewU changed the title [ERROR]: Unknown microarchitecture detected: 0x70010201 on Nintendo Wii U [PowerPC] [ERROR]: Unknown microarchitecture detected: 0x70010201 on Nintendo Wii U [PowerPC] May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants