Discussion:
[lfs-support] Build grub for i386-pc and x86_64-efi on 32bit processor
Michele Bucca
2018-06-28 00:37:38 UTC
Permalink
Hello Everyone

As I plan to boot my LFS system from a thumb drive I would like to build
grub for both platforms: i386-pc and x86_64-efi

I'm compiling on a 32bit processor and when I try to compile the
platform x86_64-efi
it says that it is not supported on my architecture (i386).

Can you help me? also, if I don't install libdevmapper can I loop mount
iso files from grub?

Also is there some kind of features that loads usb 2.0 support on grub2
like in the builds of grub4dos from chenall [1]?

Thanks :)

[1] https://github.com/chenall/grub4dos
William Harrington
2018-06-30 04:17:31 UTC
Permalink
On Thu, 28 Jun 2018 02:37:38 +0200
Post by Michele Bucca
Hello Everyone
As I plan to boot my LFS system from a thumb drive I would like to build
grub for both platforms: i386-pc and x86_64-efi
You should be able to build for multiple platforms without issue. Grub, as far as I know, deals with assembly for each target. Should have no issue there.
Post by Michele Bucca
I'm compiling on a 32bit processor and when I try to compile the
platform x86_64-efi
Need a 64bit enabled toolchain with this.
Post by Michele Bucca
it says that it is not supported on my architecture (i386).
It's not supported unless you have a proper 64bit toolchain
Post by Michele Bucca
Can you help me? also, if I don't install libdevmapper can I loop mount
iso files from grub?
I've never had this happen. Unless there is now an ISO module for grub to mouont images, never have known this to work.
Post by Michele Bucca
Also is there some kind of features that loads usb 2.0 support on grub2
I do not know.
Post by Michele Bucca
like in the builds of grub4dos from chenall [1]?
Thanks :)
[1] https://github.com/chenall/grub4dos
Your common denominator has to be the toolchain built for the minimal system that you plan to run the code with. You need a 32bit toolchain with binaries since you want to run with 32bit arch. There are options where you can run multi-arch but you need to know how that works. Grub can be built for both targeted systems if you have the proper toolchain to do so. Has anyone had issues building grub target for x86_64 with a 32bit system? If I recall properly, grub takes care of this on its own.

Grub doesn't loop mount iso images. Nor does the kernel. It's filesystem matter and grub won't deal with that. Grub is a boot manager, not a filesytem manger. It doesn't work that way. If you have a module that you can load, then it'd work. Someone correct me if I'm wrong on that part. Boot managers don't usually deal with filesystem mounting.

Sincerely,
--
Berzerkula <***@berzerkula.org>
--
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.w
Loading...