You are not logged in.

#1 2023-06-13 12:48:39

gigel
Member
Registered: 2023-06-13
Posts: 14

[ SOLVED ] grub out of range pointer error

hi all


recently i upgraded my system using pacman -Syu. i seldomly boot my laptop due to the lack of time. i noticed though that my kernel is rather outdated (i always suspend to disk to save time) so i decided it's time for a newer kernel.
grabbed 6.3.7 sources, compiled them using the old config i had for 5.20 something. copied the bzimage to /boot, ran grub-mkconfig -o /boot/grub/grub.cfg, and to my surprise i received an error

grub 452 out of range pointer 0x7b6fc020

tried to boot older versions but same thing. ok, maybe grub is too old and needs a reinstall. booted arch on usb, chrooted, reinstalled newest grub,
grub-install --target=x86_64-efi --efi-directory=/boot/efi --removable
installation finished, no errors reported
grub-mkconfig -o /boot/grub/grub.cfg

everything fine. done.

reboot, same error..
ok, maybe at this point there might be something wrong with the never version of grub. googled a bit, ubuntu is facing some similar issues from may. decide to downgrade back to the older version of grub that was on my system.
installed it with pacman -U from the cache. did the whole grub-install and mkconfig stuff, all good, reboot the laptop, now a different error

error symbol 'grub_debug_malloc' not found

to be hones i'm quite fed up with grub and uefi. i don't dual boot. all i want is a system that just works. if you have any ideas please shoot

p.s. no, there is nothing wrong with my compiled kernels. i have installed an arch precompiled kernel and the grub errors are the same.

thanks

Last edited by gigel (2023-06-13 15:09:53)

Offline

#2 2023-06-13 14:04:59

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,096

Re: [ SOLVED ] grub out of range pointer error

Why are you using the --removable flag for grub-install? If you did not originally use the removable flag and you are actually booting a proper NVRAM entry then you won't have updated the GRUB payload you are actually booting. Whats' your output of

efibootmgr -uv

? Post that in code tags

Last edited by V1del (2023-06-13 14:08:28)

Offline

#3 2023-06-13 15:09:36

gigel
Member
Registered: 2023-06-13
Posts: 14

Re: [ SOLVED ] grub out of range pointer error

i copied/pasted the whole line from internet and manually modified the destination efi dir. i did not copy paste from the actual machine since i can only access it using terminal.


using grub-install does not install all necessary files. i had to manually copy efi/grub/grubx64.efi to grub/grubx64.efi

Offline

#4 2023-06-13 15:23:01

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,096

Re: [ SOLVED ] grub out of range pointer error

grub-install installs the necessary files assuming you are installing them correctly/the same way you originally did it, which was likely deviating, which is why I asked whether you knew why you needed the --removable flag. The removable flag alters the installation process so that only ${efi-directory}/EFI/BOOTx64.EFI is getting updated. If you are actually using a "properly" set up NVRAM entry you'd be using

grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub

Offline

Board footer

Powered by FluxBB