WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Boot with both legacy and UEFI  (Read 16266 times)

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Boot with both legacy and UEFI
« Reply #45 on: February 14, 2022, 08:37:17 AM »
I think polikuo is right, Your system exhibits unstable behaviour, some hardware problems are probably present, bad power, unstable contacts somewhere... Beware of possible storage damage. Try to power-off the system and check the cables.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Boot with both legacy and UEFI
« Reply #46 on: February 14, 2022, 09:07:50 AM »
Why You say MBR is incorrect? I think it's all right. I use MBR.

i think you were right, that gdisk don't want to work with MBR.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Boot with both legacy and UEFI
« Reply #47 on: February 14, 2022, 09:08:47 AM »
is there a way to remove the message "Welcome to GRUB!" ?

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Boot with both legacy and UEFI
« Reply #48 on: February 14, 2022, 09:26:48 AM »
Load grub2 sources, remove this message, compile and pack Your own extension :)
By the way Arch includes grub-silent package.
« Last Edit: February 14, 2022, 09:55:02 AM by jazzbiker »

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Boot with both legacy and UEFI
« Reply #49 on: February 14, 2022, 09:38:45 AM »
Edit: This was the bad message, please forget if You've seen the previous content.
« Last Edit: February 14, 2022, 09:53:21 AM by jazzbiker »

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Boot with both legacy and UEFI
« Reply #50 on: February 15, 2022, 01:33:53 AM »
Hi jazzbiker,
Quote
Load grub2 sources, remove this message, compile and pack Your own extension :)
By the way Arch includes grub-silent package.
thank you

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Boot with both legacy and UEFI
« Reply #51 on: February 15, 2022, 01:38:12 AM »
does anyone know what this Error mean?

Code: [Select]
rc _core: IR keymap rc-cec not found

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: Boot with both legacy and UEFI
« Reply #52 on: February 15, 2022, 03:00:34 AM »
It concerns remote controls (like your TV's), you can ignore it if you're not using any.
The only barriers that can stop you are the ones you create yourself.

Offline Rabie

  • Sr. Member
  • ****
  • Posts: 272
Re: Boot with both legacy and UEFI
« Reply #53 on: February 15, 2022, 03:16:14 AM »
Hi curaga,

It concerns remote controls (like your TV's), you can ignore it if you're not using any.

i see, thnx  ;D

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Boot with both legacy and UEFI
« Reply #54 on: February 17, 2022, 09:31:41 AM »
Hi

I've found something.

I think the dosfstools.tcz on x86_64 needs to be recompiled.

This is what happens on CorePure64 13.0
Code: [Select]
tc@box:~$ mkfs.vfat /dev/sdc1
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to UTF-8: Invalid argument
Cannot initialize conversion from UTF-8 to codepage 850: Invalid argument
Using internal CP850 conversion table

On PiCore-aarch64 13.1
Code: [Select]
tc@pi3:~$ mkfs.vfat /dev/sda1
mkfs.fat 4.2 (2021-01-31)

I can load into UEFI GUI vesamenu with the re-formatted partition.
However, something went wrong when I try to boot.
I guess it'll take a while for me to find out why.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Boot with both legacy and UEFI
« Reply #55 on: February 17, 2022, 10:01:30 AM »
Hi again.

It appears the cause is the kernel.

TC 12 boots without any problem.

TC 13 refuses to boot.

I guess this might be related:
https://wiki.syslinux.org/wiki/index.php?title=Common_Problems#Linux_EFI_kernels
Quote
Due to a bug in the configuration system, some EFI kernels are not safely relocatable. CONFIG_EFI now requires CONFIG_RELOCATABLE. Syslinux will (safely) attempt to load such a kernel at its preferred address and bail if the memory is not available. This will likely exhibit itself as working on some platforms while bailing on others (with different memory maps).

Wonderful, we'll need to recompile the kernel  :P

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Boot with both legacy and UEFI
« Reply #56 on: February 17, 2022, 10:13:51 AM »
CONFIG_EFI now requires CONFIG_RELOCATABLE

Hi yet again

http://tinycorelinux.net/13.x/x86_64/release/src/kernel/config-5.15.10-tinycore64
Code: [Select]
CONFIG_RELOCATABLE=y
CONFIG_EFI=y

We do have those options enabled.
This is getting nowhere  :(

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11027
Re: Boot with both legacy and UEFI
« Reply #57 on: February 17, 2022, 11:15:07 AM »
Those conversion errors may mean it requires glibc-gconv.
The only barriers that can stop you are the ones you create yourself.

Offline polikuo

  • Hero Member
  • *****
  • Posts: 714
Re: Boot with both legacy and UEFI
« Reply #58 on: February 17, 2022, 11:43:14 AM »
Those conversion errors may mean it requires glibc-gconv.
Hi curaga
Both machine have mylocale.tcz onboot (depends on glibc_gconv.tcz)
They have the same version, too.

CorePure64
Code: [Select]
tc@box:~$ mkdosfs --help 2> /dev/null
mkfs.fat 4.2 (2021-01-31)
PiCore-aarch64
Code: [Select]
tc@pi3:~$ mkdosfs --help 2> /dev/null
mkfs.fat 4.2 (2021-01-31)

Anyway, there are 2 problems.
First, dosfstools.tcz is messing around.
(a corrupted partition can't get Syslinux running at all, returns to "BIOS menu")
Second, the kernel 13 simply can not boot with Syslinux UEFI, but kernel 12 can.

Offline jazzbiker

  • Hero Member
  • *****
  • Posts: 934
Re: Boot with both legacy and UEFI
« Reply #59 on: February 17, 2022, 12:54:02 PM »
Hi polikuo,
Sorry for the noobish 2 cents, but syslinux.tcz seems to be unchanged since TC7. Is it possible that rebuilding the extension will help?