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

Kernel panic on boot (VFS: unable to mount rootfs) #97

Open
commandcontrolQ opened this issue Jan 5, 2025 · 4 comments
Open

Kernel panic on boot (VFS: unable to mount rootfs) #97

commandcontrolQ opened this issue Jan 5, 2025 · 4 comments

Comments

@commandcontrolQ
Copy link

commandcontrolQ commented Jan 5, 2025

When booting firm_linux_loader, Linux appears to load but then I get a rootfs kernel panic (for some reason it also displayed incorrectly):

[    6.596000] [<c05451c8>] (yncing: VFS: Unable to VFS: Unable to mount rootfs on un_

All of the files were not built by me but instead downloaded from their respective repositories.

File structure is as follows:

/linux
  | arm9linuxfw.bin
  | nintendo3ds_ktr.dtb
  | zImage
  | rootfs.cpio.gz
/luma/payloads/
  | firm_linux_loader.firm

Device is a New Nintendo 2DS XL.

@commandcontrolQ
Copy link
Author

Update

I decided to compile everything (instead of downloading pre-compiled files from their repositories) and follow this repository's wiki as closely as possible.
The new file structure is as follows:

/linux
  | arm9linuxfw.bin
  | nintendo3ds_ktr.dtb
  | nintendo3ds_ctr.dtb
  | zImage
/luma/payloads/
  | firm_linux_loader.firm

Unfortunately, the kernel panic persists. If anyone knows how to fix this, please let me know.

@commandcontrolQ
Copy link
Author

Issue fixed: All I needed to do was add an initramfs.cpio.gz into the linux folder. Renaming rootfs.cpio.gz does the trick.

@ParzivalWolfram
Copy link
Member

This is a bug I intend to fix soon, but the current version of the arm toolchain needed to build the firmware is too new, and my attempts at adding it to buildroot haven't yet panned out. At some point soon, you'll only need to download the buildroot repo and that will build everything you need.

@webgtx
Copy link

webgtx commented Jan 13, 2025

@commandcontrolQ reopen the issue please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants