Hexxeh / rpi-update

An easier way to update the firmware of your Raspberry Pi
MIT License
1.94k stars 232 forks source link

Module.symvers #131

Closed cleverca22 closed 10 years ago

cleverca22 commented 10 years ago

Would it be possible for rpi-update to copy extra/git_hash and extra/Module.symvers to /boot when updating the kernel, so scripts can know which kernel source to build modules against?

notro commented 10 years ago

Do you want this because you want your script to be run as non-root? That's the only difference I can see between /boot and /root/.rpi-firmware/extra

I use this script: https://github.com/notro/rpi-firmware/blob/master/extra/install_kernel_source This is the howto: https://github.com/notro/fbtft-spindle/wiki/Building-kernel-modules

cleverca22 commented 10 years ago

i tend to delete /root/.rpi-firmware, i'm always low on space and the script cant reuse it anyways, it re-clones on every run

popcornmix commented 10 years ago

Can you try:

sudo WANT_SYMVERS=1 rpi-update

and check it does what you want.

cleverca22 commented 10 years ago

yeah, that looks good