<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I have RISC-V based cross compiled Linux running busybox. I have a very simple /etc/inittab file like this:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
1 ::sysinit:/bin/busybox mount -t proc proc /proc
<div> 2 ::sysinit:/bin/busybox mount -t tmpfs tmpfs /tmp</div>
<div> 3 ::sysinit:/bin/busybox mount -o remount,rw /dev/htifbd0 /</div>
<div> 4 ::sysinit:/bin/busybox --install -s</div>
<div> 5 /dev/console::sysinit:-/bin/ash</div>
<br>
How can I translate this to something toybox can use? I've tried this:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
1 mount -t proc proc /proc
<div> 2 mount -t tmpfs tmpfs /tmp</div>
<div> 3 mount -o remount,rw /dev/htifbd0 /</div>
<div> 4 #::sysinit:/bin/toybox --install -s</div>
<div> 5 #/dev/console::sysinit:-/bin/sh</div>
<div> 6 exec toybox init</div>
<br>
It's starting partially (I think) but I'm not quite sure how to troubleshoot this. My goal is to have a very small Linux. It's around 3 MB file size right now and takes about 5 MB of memory when booted. It looks like toybox might go a little smaller if I can
get it working.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Jeremy<br>
</div>
</body>
</html>