-
Notifications
You must be signed in to change notification settings - Fork 48
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
sdm 10.0 and earlier incorrect /boot/firmware handling #144
Comments
I've got a bookworm image that I've customised that I've just tried to repair... At the moment I'm seeing the following outputs:
Is there something about the instructions that I'm missing? Thanks! Note: I know my image needs to be repaired because:
|
This is very strange: Note, selecting 'raspberrypi-kernel' instead of 'linux-image' I'm also quite puzzled by the 2nd part, there hasn't been any kernel with 6.2.0-37 that I'm aware of. Where did that come from? If possible, I'd encourage you to rebuild the IMG using sdm V10.1. If that's not possible, this is going to require much more investigation and would be much easier if you could email me the above-mentioned files at the email address in the sdm README. Thx. |
This is a neat project but I had the same issue initially v10 and then from v10.1 on a fresh download, had to fix it in a pinch so This was being customized from a container on the RPI and mounting an SD card via USB. So if there's any scripts assuming the running linux is like the SD card that's not going to line up. |
Please explain what you mean by "So if there's any scripts assuming the running linux is like the SD card that's not going to line up." Thx |
Inspired by the feedback here, I took yet another look into this issue. It appears that for some reason, when doing a customize, the linux-image and linux-headers packages are not updated UNLESS you add Without I didn't notice this before because my sdm customization script always uses |
@rosesyrett Can you please test the following on that IMG with V10.1?
The |
Thanks for the reply, please disregard because I don't think it adds anything. but from my console |
I might be misunderstanding what you said, but in the sdm container |
Closing this issue as it's ancient history now |
A fairly serious bug has been uncovered in sdm with respect to Bookworm. Bookworm IMGs customized with 'apt upgrade' and kernel 6.1.58 gets installed, that is, were updated to 6.1.58-1+rpt2 kernel during an IMG customize, are not really running the 6.1.58 kernel.
If the system was booted and runnng when the upgrade to 6.1.58 was done, there is no problem.
IDENTFICATION
You can identify problematic systems that are booted and running by:
sudo apt search linux-image | grep installed
uname -r
If the version of the kernel running does NOT match the latest installed kernel, the system needs to be repaired.
REPAIRING THE RUNNING SYSTEM
curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash
sudo apt search linux-image | grep 6.1.58 | grep installed
sudo apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8
Note that on 64-bit systems you should update both the -v8 and -2712 kernels.
REPAIRING SDM
curl -L https://raw.githubusercontent.com/gitbls/sdm/master/EZsdmInstaller | bash
--explore
on the IMG with sdm 10.1REPAIRING CUSTOMIZED IMGs
First update sdm on the host per above, then:
sdm --explore /path/to/img.img
using sdm V10.1 or latersudo apt search linux-image | grep 6.1.58 | grep installed
apt install --reinstall linux-image 6.1.0-rpi6-rpi-v8 linux-headers-6.1.0-rpi6-rpi-v8
WHAT WAS BROKEN
Long story short: sdm was not updated correctly for /boot/firmware in Bookworm
The text was updated successfully, but these errors were encountered: