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

/lib/Modules.symvers missing #1

Open
sploders101 opened this issue Sep 24, 2021 · 5 comments
Open

/lib/Modules.symvers missing #1

sploders101 opened this issue Sep 24, 2021 · 5 comments

Comments

@sploders101
Copy link

First off, I want to thank you for all the work you've put into this kernel module! However, I can't get it to work. I am currently trying to experiment with modding Symphonisk speakers, which use NAND flash as their boot medium. Unfortunately, there don't appear to be very detailed instructions on your gh-pages. I cloned the kernel, compiled it, and ran your scripts, but can't get it to work. The Modules.symvers file referenced by the nand script doesn't exist, and I can't find reference to the nand module in the one that does. Any help would be greatly appreciated. Thanks!

@TheCrazyT
Copy link
Owner

@sploders101
I guess its because I compiled the whole kernel before that.

According to: https://unix.stackexchange.com/questions/24704/how-to-generate-module-symvers
You need to do atleast "make modules" first.
Also keep in mind that the current bash-scripts are intented to be executed directly on the Raspberry-PI.
But because of that it takes alot of time to be honest.

It might also be possible to cross compile it, but I can't remember if I ever did anything like that.

@TheCrazyT
Copy link
Owner

Oh well ... about cross compiling, just take a look at:
https://github.com/TheCrazyT/linux/blob/317767aca31a5a2cbc9aec75481898b5e4a6e48f/.github/workflows/main.yml

Didn't remember that I actually created that file for github "Actions" to actually cross compile the libraries.
(You can not execute the main.yml directly but atleast see the commands you might need to use)
To be honest I never tested the result libraries there, it was just for testing.

The config file used there is also restricted to the hardware used.
But I guess the main.yml might be help a bit incase you do not want to wait for long builds on the raspberrypi.

@sploders101
Copy link
Author

I compiled the kernel as documented here: https://www.raspberrypi.org/documentation/computers/linux_kernel.html

Unfortunately, I still did not get the symvers file. However, I see in the yml file you're downloading a .config file from a gist. It may be possible that I did not choose my options correctly when compiling (the mtd section in menuconfig seems to be kind of a mess). When I get home, I may try that config and see if it generates the expected results. Might I ask what options you chose and/or which pi that config is for?

I did find the latest version of the OS containing the driver by default though (https://downloads.raspberrypi.org/raspios_full_armhf/images/raspios_full_armhf-2020-05-28), and I'm downloading that to try. I'm a little familiar with the MTD subsystem as I had to manage it some for an embedded system at work, but I have no idea how it actually works on the hardware or kernel levels. I will likely circle back around to figure out how to make this work in the near future.

Thanks for the quick response!

@TheCrazyT
Copy link
Owner

The config was for "RaspberryPI 3 Model B". (so its probably based on "bcm2709_defconfig")

@sploders101
Copy link
Author

sploders101 commented Sep 25, 2021

Awesome, thanks! Trying this out today. I have one of those sitting next to me, and I was able to get linux to detect my flash using older OS images, but then it would report a bug in the mtd driver and stop. Hoping your patches yield better results.

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

2 participants