On 05/02/2018 10: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?
> 

I'm not very good at kernel, but you need at least to set ARCH=i386 and
CFLAGS="-m32". I do not know whether some 32 bit libs are needed, and if so
what is the minimal set of those.

Another possibility is to build LFS in a 32 bit VM on your 64 bit machine
(overkill?).

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