[mkroot] x86_64 x32 mkroot port status report

Rob Landley rob at landley.net
Wed Feb 21 07:41:58 PST 2018


On 02/20/2018 03:44 PM, Alain Toussaint wrote:
> Hello,
> 
> Just reporting that I successfully built and booted up in both qemu and
> real hardware an x32[1] ABI port of mkroot along with musl-cross-make.

Cool! Got a patch?

> [1] == not to be confused with a 32 bit i686 userspace; the
> particularity are 4 bytes pointers like i686 but there is full access
> to the 15 integer registers and 16 floating points registers like
> x86_64.
> 
> On real hardware, it is necessary to pass the command
> init=/usr/bin/busybox sh (or /bin/busybox sh) to the bootloader but
> otherwise, there are no other requirements.
I have some local changes to handle chroot and real hardware better, but haven't
checked them in yet. Last stable kernel release broke arm (perl requirement in
the build) and x86_64 (libelf requirement in the build), so I should cut a
release with the one before that and fix that after it's out. (THIS release
added flex and bison as build requirements for kconfig, I need a bigger
flamethrower...)

I was trying to put together a release last weekend but testing toybox-git I
found that logger doesn't build because of a musl bug (prioritynames and
facilitynames are in the headers, but then the link fails), and I implemented a
fix for that (inline the name tables) but am still testing/debugging it (new
search loop didn't work on the first try and I haven't had a chance to sit down
and work on it again since)...

> The dropbear package does not compile and finally, I was able to
> install gcc 6.3.0 from mcm in native x32 configuration and it run.

Cool! Got a patch?

Rob


More information about the mkroot mailing list