On Mon, February 5, 2018 03:26, Thomas Seeling wrote:
> Hallo,
>
>
> I am unsure if it's possible to create a reliable 32-bit kernel with a
> 64-bit LFS. I have a running LFS svn with the latest gcc but I have
> other machines where I'm reluctant to upgrade everything so I
> contemplated simply compiling the kernel on the LFS svn system and the
> copy it over to feel good (although on a server machine for DNS I don't
> expect a real threat from Meltdown or Spectre ...).
>
> Can I simply take my 32 bit .config, make and copy the resulting kernel
> and modules? Or is there still a risk of 64-bit CPU instructions to slip
> in which might break the older machine?
>
> Tschau...Thomas

Hello Thomas,

The kernel will be fine if building for a different target. It requires a
Binutils and GCC that can build for the target. If multilib isn't disabled
during Binutils and GCC with LFS, then it will be no problem and you can
build a 32-bit kernel without issue. You can be confident it will run
fine. I've built 32-bit kernels from 64-bit hosts and vice versa. The
kernel build system will use the correct options for Binutils and GCC to
build for 32-bit/64-bit.

What may cause a problem is if the selected CPU in the kernel config is
not correct for the target machine.

Sincerely,

William Harrington

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