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

grub4efi: cannot boot to Ubuntu ISO files to grub2 menu under VirtualBox 5 #404

Open
steve6375 opened this issue Mar 27, 2023 · 22 comments
Open

Comments

@steve6375
Copy link

2022-07-19 was OK and booted to grub2 menu

but later versions seem very buggy
e.g.

map /Ubuntu64.iso (0xff)
chainloader (0xff)

hangs - does not show grub2 menu - just hangs
image

@yaya2007
Copy link
Collaborator

have a try
BOOTX64.rar.txt

@steve6375
Copy link
Author

I tested same version as given by partnew bootx64.efi - I assume it is the same?

Still a problem - hangs on chainloader command
image

@yaya2007
Copy link
Collaborator

same

debug 3
map /_ISO/.......
have a try

@steve6375
Copy link
Author

steve6375 commented Mar 28, 2023

image

map /_ISO/LINUX/Ubuntu-2xxxx.iso (0xff)
chainloader (0xff)

@yaya2007
Copy link
Collaborator

Can you upload an empty ISO image?

@steve6375
Copy link
Author

steve6375 commented Mar 28, 2023

all ISOs fail to run, linux, fatdog, pmagic, windows install isos, etc,

@steve6375
Copy link
Author

image

@steve6375
Copy link
Author

image

@steve6375
Copy link
Author

steve6375 commented Mar 28, 2023

P.S. Seems to be a new issue with new version. If I run an animation then the background wallpaper does not show.
Here is latest BOOTX64.efi - it should display moon background but it does not.
image

If I exit to grub4efi commandline and then press ESC then I get background
image
Older versions used to work - is this due to recent bugfix for splashimage/graphicsmode bug ?

P.S. I can work around this bug by adding into startup menu.lst file
pause --wait=1 > nul
then background is displayed behind menu OK.

If I use pause --wait=0 > nul then the background does not appear - so delay is needed?

Even with pause --wait=1 if I try to load a second menu or navigate the existing menu then I get a memory error
image
Only get memory error if animation is loaded.

@yaya2007
Copy link
Collaborator

Ubuntu-18.04.6-desktop-amd64.iso can be successfully started。

For animation, give me a way to reproduce it.

@steve6375
Copy link
Author

steve6375 commented Mar 28, 2023

It seems that it does not like Virtual Box 5 (booting from USB).
I tested on a real system and it does map and run the ISO - so maybe some memory issue when running under VBox ???

However, the animation / wallpaper issue is still present on a real system and i see the memory malloc errors after navigating the menu a few times same as under VBOX.

@steve6375
Copy link
Author

steve6375 commented Mar 28, 2023

On real system, Free_mem_start: 0x10000
on VBOX Free_mem_start: 0x0

would this cause a problem ???
image

error when booting from Ubuntu ISO
image

@steve6375 steve6375 changed the title grub4efi: cannot boot to Ubuntu ISO files to grub2 menu grub4efi: cannot boot to Ubuntu ISO files to grub2 menu under VirtualBox 5 Mar 29, 2023
@yaya2007
Copy link
Collaborator

yaya2007 commented May 5, 2023

Please test。
BOOTX64.rar.txt

@steve6375
Copy link
Author

Seems to be a bit better but still problems booting under VBOX 5. Ubuntu booting from ISO erratic.
pmagic_2018_10_12.iso does not boot
Strange 0x60 device after map ??

image

iftitle [if exist /_ISO/LINUX/pmagic_2018_10_12.iso] Parted Magic 2018 (LIVE)\nBoot Parted Magic with Save Session option.
set ISO=/_ISO/LINUX/pmagic_2018_10_12.iso

graphicsmode -1 1024
errorcheck on
debug on
debug msg=3
map --status
map --read-only %ISO% (0xff) || map --mem %ISO% (0xff)
map --hook
map --status
root (0xff)
# add nomodeset if you get black screen on boot
# add  lang=yes if you want to pick a language
kernel /pmagic/bzImage64 edd=on  vga=normal iso_filename=%ISO% boot=live eject=no
initrd /pmagic/initrd.img /pmagic/fu.img /pmagic/m64.img
pause
boot

image

similar panic if boot on lenovo ideapad 300.

@yaya2007
Copy link
Collaborator

yaya2007 commented May 5, 2023

60 is the CD boot image. Start Linux and add the parameter '--old' after the ‘kernel’to give it a try.

kernel --old /pmagic/bzImage64 edd=on vga=normal iso_filename=%ISO% boot=live eject=no

@steve6375
Copy link
Author

image
image

--old does not help

@yaya2007
Copy link
Collaborator

yaya2007 commented May 6, 2023

Give this one a try。
kernel --handover /pmagic/bzImage64 edd=on vga=normal iso_filename=%ISO% boot=live eject=no
initrd /pmagic/initrd.img /pmagic/fu.img /pmagic/m64.img
BOOTX64.rar.txt

@steve6375
Copy link
Author

steve6375 commented May 6, 2023

That seems to work OK (bit slow maybe?) - thanks! 👍

Will we always need to specify --handover or do you intend to make it use this by default?
It will be very awkward if we have to specify --handover for some ISOs but not for others...

This version of grub4efi seems to NOT be able to work with a1ive's wimboot though (it crashes when wimboot starts to load wim into memory). Can this be fixed too?
image

@steve6375
Copy link
Author

As a test, I tried --handover on wimboot but kernel command would not work
image

@yaya2007
Copy link
Collaborator

yaya2007 commented May 6, 2023

There is no parameter '-- handover' and supports the new UEFI loading method 'LoadFile2' for Linux.
There is a parameter '-- handover' that supports the old UEFI loading method 'EFI Handover Protocol' in Linux. This method is being abandoned since Linux 6.2.

There is a parameter '-- handover' that only supports kernel versions 0x20b and above. The old method is not supported.

@steve6375
Copy link
Author

steve6375 commented May 6, 2023

it seems that partedmagic 2018 does not need the --handover parameter for this new grub4efi, it boots OK without it so not sure why you told me to use the --handover parameter as it is not needed?

Both of these work...

kernel --handover /pmagic/bzImage64 edd=on vga=normal iso_filename=%ISO% boot=live eject=no
initrd /pmagic/initrd.img /pmagic/fu.img /pmagic/m64.img

kernel  /pmagic/bzImage64 edd=on vga=normal iso_filename=%ISO% boot=live eject=no
initrd /pmagic/initrd.img /pmagic/fu.img /pmagic/m64.img

@yaya2007
Copy link
Collaborator

yaya2007 commented May 6, 2023

If it can be started without use, it will not be used.
Many people have reported that the new version of G4e cannot start old Linux, so this parameter has been added. You can ignore this parameter.

yaya2007 pushed a commit that referenced this issue May 10, 2023
. 确定引导驱动器恒定为0x80。支持 USB 逻辑单元设备。
. kernel 函数增加 --handover 和 --loadfile2 参数,以便强制使用 EFI Handover Protocol 或 LoadFile2 协议。
. 增加打印路径的内部函数,以便不支持设备路径到文本协议的设备使用。
. 改进设备启动。issues #404, issues #405
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