Maybe one for Rob I fear? Sorry. Bottom posted.

On 23/11/19 13:58, scsijon wrote:

-------- Forwarded Message --------
Subject: Re: [Toybox] Fwd: build help please with toybox
Date: Sat, 23 Nov 2019 12:22:57 +1100
From: scsijon <scsi...@lamiaworks.com.au>
To: Denys Nykula <nyk...@ukr.net>
CC: toybox@lists.landley.net <toybox@lists.landley.net>

On 23/11/19 09:56, scsijon wrote:
thanks for the help

On 23/11/19 09:18, Denys Nykula wrote:
scripts/kconfig/lex.zconf.c:890:16: error: ‘EINTR’ undeclared (first use
in this function)

What's your host libc and where are its headers? In apt that's libc6-dev.

and i'm in a Quirky named Xenial Xerus (Ubuntu 16.04 LTS).
libc and libc6 both v2.23 at /lib/x86_64-gnu-linux and /usr/include/x86_64-gnu-linux;
linux headers and kernel are v4.4.44 if of interest;
?maybe to old?

----------------------------------

And trying with Open Embeded fails with an error relating to gcc being too old at 6.3.0! I'm trying a deb buster with a 8.3.0 next, my last alternative, damn I wanted one of these to work (preferably the first),beginning to think this may be a bust of a way to build something simple and very minimal from scratch.

--------------------------------

Well I eventually got it's linux-busybox-syslinux to build a xorriso iso on top of a deb buster with gcc 8.3.0 and a pile of other updates, somewhat dissapointing really.

Now i'm going to replace the busybox with toybox and see if it's worth persevering, not sure really at this point.

Many thanks again Denys for the versions idea, after relooking, there was nothing about minimum package versions in their doc's, just packages that need to be installed and I had all of them already installed and available and it was suppose to build without problems on ubuntu.

I'll use this thread with a report to the list on results found.

regards to all

Well, building a kernel-toybox-syslinux seemed to go well, no errors, and the iso was considerably smaller (9380K) vs busybox's (10316K) although some will be the updated kernel so a real equivalent size would be smaller again I think.

However it looks like when loading it fails at the init stage.

The error is at starting the /init script's seven lines at startup.

The init script first>

----/init--747--root-root----
#!/bin/sh
dmesg -n 1
mount -t devtmpfs none /dev
mount -t proc none /proc
mount -t sysfs none /sys
setsid cttyhack /bin/sh

--------empty line at end----------

startup script seems ok to here<

Errors from here>

Run /init as init process
Failed to execute /init (error -2)
Run /sbin/init as init process
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
Kernel Panic - not syncing: No working init found. ~

and on it panics

------------------------------

?Is there a problem with toybox's init please Rob?, the script builds ok and init works ok in busybox's version or is toybox's init not quite the same or ready yet?

I've attached the alpha build script I used to create the iso in case it is of interest or help. It has the source site in its # ref's.

Mine was built on a EasyOS 2.1.8 (Debian Buster x86_64 base) of BarryK's as the EasyOS 1.2.8 (O.E. Pyro) and Quirky Ubuntu had apparently too old a gcc version to build.

 Not bad for 3 packages to get a simple shell system up.

Attachment: minimal-2.sh
Description: application/shellscript

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to