Ancestors

Toot

Written by Christian Brauner 🦊🐺 on 2024-12-14 at 20:28

How do people test 32bit #kernels today? What is an easy way to build a 32bit kernel and userspace?

=> More informations about this toot | More toots from brauner@mastodon.social

Descendants

Written by Kees Cook :tux: on 2024-12-14 at 20:30

@brauner I build with ARCH=i386 and boot an older Debian image.

=> More informations about this toot | More toots from kees@fosstodon.org

Written by HAMMER SMASHED FILESYSTEM πŸ‡ΊπŸ‡¦ on 2024-12-14 at 20:30

@brauner i think buildroot is generally a good way to build kernel + userspace for about anything?

other than that, debian still ships a 32-bit distro for x86 and most other archs?

=> More informations about this toot | More toots from lkundrak@metalhead.club

Written by Jann Horn on 2024-12-14 at 22:55

@brauner for building a 32-bit x86 kernel I just deselect CONFIG_64BIT in make nconfig... for the userspace part I don't have as good a suggestion. (On debian-based systems one way is to "debootstrap" a 32-bit system into a mount of a newly created filesystem image for the VM, but that's not building from source.)

=> More informations about this toot | More toots from jann@infosec.exchange

Written by Jann Horn on 2024-12-14 at 22:58

@brauner it would be pretty funny if you instead ran a 32-bit kernel with 64-bit userspace binaries executed through qemu-user-static hooked up through binfmt-misc ^^

(Though I don't actually know if qemu supports running emulated 64-bit code in a 32-bit environment...)

=> More informations about this toot | More toots from jann@infosec.exchange

Written by keithp on 2024-12-14 at 23:02

@brauner I use yocto, but I'm not sure that qualifies as "easy"...

=> More informations about this toot | More toots from keithp@fosstodon.org

Written by mpe on 2024-12-16 at 02:45

@brauner Guenter has a big collection of rootfs images for lots of arches you can download and use, eg. https://github.com/groeck/linux-build-test/tree/master/rootfs/x86

For building your own buildroot is easiest IME.

=> More informations about this toot | More toots from mpe@fosstodon.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113653061733739904
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
285.384752 milliseconds
Gemini-to-HTML Time
1.242331 milliseconds

This content has been proxied by September (ba2dc).