On Thu, 28 Jun 2018 02:37:38 +0200
Michele Bucca <[email protected]> wrote:

> 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.

> 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.

> it says that it is not supported on my architecture (i386).
>
It's not supported unless you have a proper 64bit toolchain
 
>  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.

> Also is there some kind of features that loads usb 2.0 support on grub2
I do not know.

> 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 <[email protected]>
-- 
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.wikipedia.org/wiki/Posting_style

Reply via email to