SM8250: add missing grub.cfg generation script#2496
SM8250: add missing grub.cfg generation script#2496aenertia wants to merge 1 commit intoROCKNIX:nextfrom
Conversation
PR ROCKNIX#2457 switched SM8250 from qcom-abl to arm-efi but did not include the bootloader/grub script needed to generate grub.cfg. Without it, GRUB boots with no config, the kernel gets no cmdline, and init fails with 'Unable to find volume labeled ROCKNIX'. Adds grub config generation with entries for all SM8250 variants.
|
Sorry this is wrong we have a function to dynamically generate the grub.cfg |
|
Yeah I wasn't sure; but something isn't firing since the revert making the CI nightlies broken |
|
I have the following grub.cfg produced at Please check yours |
|
Yup ; I'm getting the Grub entries on the nightly but am getting missing ROCKNIX label entry error from the stage1 boot. This is after a clean flash from the sm8250 img from the 30th. Hrm; I wonder if it's the card (512GB Evo A2 Samsung) I see there was a revert on the sm8650 for high speed modes being flakey, wonder if it's the same issue? |
|
he card I was using was working just fine in the same device ; with custom / previous builds no issues. So something has changed. I didn't take note of the build on it prior to nightly flash - but it was one of my early rxnm integration builds so probably a month or so old. |
|
took me 5 min, to download the 20260330 image, flash it and check the content. |
|
Yup ; it's not the generation like I first thought. It's something else that's different between ABL update and fresh Flash. |
|
Apologies for the noise with the grub.cfg script — @spycat88 and @loki666 were That said, the boot failure I reported is real and reproducible. The same device I did some deeper analysis of the ABL and the boot chain that might be useful SM8250 boot flow with ROCKNIX ABL v1.0.0 (from binary analysis of the ELF): The grub.cfg and cmdline ( Worth noting the SM8650 just had SD UHS-I disabled ( Will continue debugging on my end and open a proper issue if I can narrow it |
|
So kioxera 16gb card works. But nice A2 Samsung Evoplus V30, doesn't with the ABL |
Summary
PR #2457 (
1fcfc86) switched SM8250 fromqcom-abltoarm-efi(GRUB)but did not include a
bootloader/grubscript to generategrub.cfg.Without this script, GRUB boots with no configuration. The kernel receives
no cmdline parameters, so the init script cannot resolve
boot=LABEL=ROCKNIXand the device shuts down with:This adds the grub config generation script with menu entries for all
four SM8250 device variants (RP5, RPFlip2, RPMini, RPMiniV2).
Testing
How was this tested?
SM8250 — all other arm-efi devices have a
bootloader/grubscript,SM8250 does not.
with the "Unable to find volume labeled ROCKNIX" error.
busybox/scripts/initto confirm thefailure occurs at
mount_common()when$bootis empty (no cmdline).Test results:
volume label detection → shutdown.
boot=LABEL=ROCKNIX disk=LABEL=STORAGEcmdline and device-specific DTB references.Additional Context
BOOTLOADER="arm-efi"requires abootloader/grubscript to generate
grub.cfg. SM8250 was the only arm-efi devicemissing this script after the revert in PR SM8250: revert back to standard kernel setup #2457.
mkimage_options="abl,grub,dtb"— it may have asimilar issue if its grub script is missing (not investigated here).
AI Usage
Did you use AI tools to help write this code? PARTIALLY
AI tools were used to trace the boot failure through the init script,
identify the missing grub config generation script by comparing device
bootloader configurations, and cross-reference recent upstream commits.
The fix itself follows the established pattern used by other arm-efi
devices in the project.