CathyKMeow / rosetta-linux-asahi

Hacked RosettaLinux that runs on Asahi Linux
121 stars 22 forks source link

(asking for help) How to configure 4k kernel? #1

Open SuperKenVery opened 1 year ago

SuperKenVery commented 1 year ago

Great appreciation to this project! Thanks a lot!

But could you please provide some information on on how to config the kernel? I'm totally new to kernel hacking. Thanks a lot!

I have got some trouble configuring the iommu-4k/dev branch of the linux kernel. I used the default configuration and added something (binder, crypto, ...), and successfully compiled&installed the kernel with corresponding initrd/grub entry.

However, when I boot the kernel I got kernel panic like this:

apple-dart xxxxx.iommu: DART is locked down until reboot: 800
cpu cpu0: apple_soc_cpufreq_init: failed to get cluster info: -2
apple-soc-cpufreq 211e20000.performance-controller: error -ENODEV
registering cpufreq failed
macsmc-rtkit 23e40000.smc: RTKit: co-processor has crashed. 
macsmc-rtkit 23e40000.smc: SMC crashed! Your system will reboot in a few seconds...
macsmc-rtkit 23e40000.smc: Error -ETIME: Failed to wake up SMC
/dev/root: Can't open blockdev
Kernel panic - not syncing: VFS: Unable to mount root on fs on unknown-block(0,0)

(I'm using encrypted root, and the distributed edge kernel works just fine)

Could you please give me a hand? Thanks!

waterdragon78 commented 4 months ago

How did you get a 4k kernel in the first place?