Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Albretch Mueller
I can't find it in the documentation: https://www.gnu.org/software/grub/manual/grub/grub.html https://www.mail-archive.com/search?l=help-grub%40gnu.org=architecture+amd64 you could deduce via dmidecode if a machine is 32- or 64-bit, and, say, in Debian Linux, after boot up you can get

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Pascal Hambourg
On 17/12/2023 at 09:43, Albretch Mueller wrote: you could deduce via dmidecode if a machine is 32- or 64-bit, and, say, in Debian Linux, after boot up you can get the processor type from the OS by running: $ dpkg --print-architecture amd64 This is Debian-specific and returns the system

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Narcis Garcia
a amd64+i386 multi-arch image which was able to boot with PC BIOS (with ISOLinux, 32-bit x86 UEFI and 64-bit x86 UEFI (with GRUB). will GRUB2 automatically detect the architecture and pick the file? Let's assume you you create such an ISO image for UEFI boot only. It must contain an EFI

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread SteveSi
t; I can't find it in the documentation: > > https://www.gnu.org/software/grub/manual/grub/grub.html > > > https://www.mail-archive.com/search?l=help-grub%40gnu.org=architecture+amd64 > > you could deduce via dmidecode if a machine is 32- or 64-bit, and, > say, in Debian Linux, after boot u

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Pascal Hambourg
: bootarm64.efi (built for ARM64), bootx64.efi (built for AMD64/x86_64) and bootriscv64.efi (built for RISC-V64). The UEFI firmware will seek the matching EFI image, and the GRUB image will report the architecture in $grub_cpu and $grub_platform. Note: bootxxx.efi may be a GRUB image or a shim

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Narcis Garcia
El 17/12/23 a les 9:43, Albretch Mueller ha escrit: I can't find it in the documentation: https://www.gnu.org/software/grub/manual/grub/grub.html https://www.mail-archive.com/search?l=help-grub%40gnu.org=architecture+amd64 you could deduce via dmidecode if a machine is 32- or 64-bit

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
understand you. Say I burn a DVD with the debian bootable iso (the live DVD) for amd64, arm64 and 64-bit risc-v processors, will GRUB2 automatically detect the architecture and pick the file?, or, as I suspect, you will have to cook some configuration file? Now explain, how grub compiled for rsic-v

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-18 Thread Narcis Garcia
ou you create such an ISO image for UEFI boot only. It > must contain an EFI partition with EFI images for each firmware > architecture : bootarm64.efi (built for ARM64), bootx64.efi (built for > AMD64/x86_64) and bootriscv64.efi (built for RISC-V64). The UEFI > fi

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-18 Thread Pascal Hambourg
ingle kernel flavour for the amd64 architecture, and two flavours for i386: 686 (without PAE) and 686-pae. So this script should do the trick: if [ $grub_cpu = x86_64 ]; then set arch=amd64 elif [ $grub_cpu = i386 ]; then if cpuid -l ; then set arch=amd64

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 23:50, Pascal Hambourg wrote: ... Note 2: there have been a few lightweight PC with 32-bit UEFI firmware and 64-bit x86 CPU around. To boot on these you need to install an x86 32-bit EFI image as bootia32.efi. It can boot i386 and amd64 kernels. ... if [ $grub_cpu = x86_64

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-18 Thread Narcis Garcia
El 17/12/23 a les 16:56, Andrei Borzenkov ha escrit: On 17.12.2023 18:00, Narcis Garcia wrote: What about selecting between vmlinuz-...-amd64 and vmlinuz-...-i386 on non EFI firmware? If you describe what condition you are going to use to decide which kernel to load someone may have

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Albretch Mueller
ally understand you. Say I burn a DVD with the debian bootable iso (the live DVD) for amd64, arm64 and 64-bit risc-v processors, will GRUB2 automatically detect the architecture and pick the file?, or, as I suspect, you will have to cook some configuration file? Any examples or leading information

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-18 Thread Narcis Garcia
> >      > Debian does not provide any such multi-arch ISO image. Until >     bookworm it >      > provided a amd64+i386 multi-arch image which was able to boot >     with PC >      > BIOS (with ISOLinux, 32-bit x86 UEFI and 64-bit x86 UEFI

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 18:00, Narcis Garcia wrote: What about selecting between vmlinuz-...-amd64 and vmlinuz-...-i386 on non EFI firmware? If you describe what condition you are going to use to decide which kernel to load someone may have an idea how to implement it in grub. grub itself just

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Albretch Mueller
h EFI images for each firmware > architecture : bootarm64.efi (built for ARM64), bootx64.efi (built for > AMD64/x86_64) and bootriscv64.efi (built for RISC-V64). The UEFI > firmware will seek the matching EFI image, and the GRUB image will > report the architecture in $grub_cpu and $grub_plat

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Pascal Hambourg
On 17/12/2023 at 17:24, Albretch Mueller wrote: On 12/17/23, Pascal Hambourg wrote: Let's assume you you create such an ISO image for UEFI boot only. It must contain an EFI partition with EFI images for each firmware architecture : bootarm64.efi (built for ARM64), bootx64.efi (built for AMD64

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
d 64-bit x86 CPU around. To boot on these you need to install an x86 > >> 32-bit EFI image as bootia32.efi. It can boot i386 and amd64 kernels. > >> > > ... > >> > >> if [ $grub_cpu = x86_64 ]; then > >> # instructions to boot with am

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Pascal Hambourg
and amd64 kernels. ... if [ $grub_cpu = x86_64 ]; then # instructions to boot with amd64 kernel elif [ $grub_cpu = i386 ]; then # instructions to boot with i386 kernel This obviously will not work for such systems as you mentioned earlier. 64-bit CPUs can run 32-bit kernels, so

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-18 Thread Andrei Borzenkov
On Mon, Dec 18, 2023 at 12:22 PM Narcis Garcia wrote: > > El 17/12/23 a les 16:56, Andrei Borzenkov ha escrit: > > On 17.12.2023 18:00, Narcis Garcia wrote: > >> > >> What about selecting between vmlinuz-...-amd64 and vmlinuz-...-i386 on > >> non EFI firm

getting: error: invalid arch independent ELF magic

2011-04-20 Thread Mark Stosberg
finish anyway. At that point, I think Grub was installed into the MBR, but indeed, there was no entry for Linux. Sometime during this installation I realized that this laptop used the AMD64 architecture, which is presumably why no kernel was found from the x86 installer. This time, I downloaded

getting: error: invalid arch independent ELF magic

2011-04-20 Thread Mark Stosberg
finish anyway. At that point, I think Grub was installed into the MBR, but indeed, there was no entry for Linux. Sometime during this installation I realized that this laptop used the AMD64 architecture, which is presumably why no kernel was found from the x86 installer. This time, I downloaded

Problem booting via grub2 in software RAID system

2011-06-26 Thread Peter Tenenbaum
Hello there -- I have a Debian squeeze workstation which uses grub2 as its bootloader. The system has 2 hard drives: the root partition is a software RAID-1 array configured with mdadm; the boot partition is non-RAID (ext3). It also has a DVD drive. The underlying architecture is AMD64

Re: Is there a way to get the architecture of the machine just booted up by GRUB2: [32|64]-[amd|arm]? ...

2023-12-17 Thread Andrei Borzenkov
On 17.12.2023 19:24, Albretch Mueller wrote: On 12/17/23, Andrei Borzenkov wrote: Now explain, how grub compiled for rsic-v is going to run on amd64 to decide anything. This is not what I have in mind. What I mean is that as part of the sequence the boot process goes through, GRUB2 should

Re: booting from a raid1

2010-10-01 Thread lee
to be version 1.98+20100 in testing, so it should work: yun:~# apt-cache show grub2 Package: grub2 Priority: extra Section: admin Installed-Size: 344 Maintainer: GRUB Maintainers pkg-grub-de...@lists.alioth.debian.org Architecture: amd64 Version: 1.98+20100804-4 Yet I've no good idea what to put

RE: Problem booting via grub2 in software RAID system

2011-07-04 Thread Leslie Rhorer
; the boot partition is non-RAID (ext3). It also has a DVD drive. The underlying architecture is AMD64, the CPU and mobo are Intel. Ordinarily, booting via grub2 with the configuration above works fine. However, when I connect an external hard drive via a back-panel USB port, I can't boot

Re: 'error: invalid signature' when booting Windows 10

2018-12-13 Thread Pascal Hambourg
Le 13/12/2018 à 21:53, David Collier a écrit : On Thu, Dec 13, 2018 at 11:52 AM Pascal Hambourg wrote: Le 13/12/2018 à 07:49, David Collier a écrit : You must install GRUB EFI for the architecture matching your UEFI firmware (32 or 64 bits, most likely 64 bits - NOT the CPU architecture

Re: New Grub2 verses Debian 9.5 -boots slow and strange?

2018-10-20 Thread jmh6
ot used to identify the root or swap device. Here is DMESG for this boot of this machine with Debian 9.5 SD. It is a little long. I hope that is OK. [0.00] Linux version 4.9.0-7-amd64 (debian-ker...@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 SMP Debian 4.9.1