Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 21 Sep 2014, 04:22
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
toybox 957 + patches
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Author Message
musher0


Joined: 04 Jan 2009
Posts: 4236
Location: Gatineau (Qc), Canada

PostPosted: Sat 07 Dec 2013, 12:44    Post subject:  

Thanks.
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Ibidem

Joined: 25 May 2010
Posts: 490
Location: State of Jefferson

PostPosted: Fri 20 Dec 2013, 05:09    Post subject:  

New toybox build.
Features a rudimentary getty, with which I can boot the system using toybox init. Usage is simply
ttyN::respawn:/sbin/getty
(it ignores baud rate, and autodetects tty).
Also fixes some breakage in fdisk, and adds modprobe, ftpget, ftpput (all from Ashwini Sharma) and xfs_freeze (simple FIFREEZE/FITHAW wrapper, for if you want to temporarily make an fs readonly without causing any disruption beyond writes blocking).

Applets:
Code:
acpi addgroup adduser basename blkid bzcat cal cat chgrp chmod chown
chroot chvt cksum clear cmp comm count cp cpio cut date dd df dhcp
dhcpd dirname dmesg dos2unix du dumpleases echo egrep eject env expand
expr fallocate false fdisk fgrep find free fstype ftpget ftpput getty
grep groupadd groups halt head help hostname id ifconfig init insmod
kill killall klogd link ln logger login logname losetup ls lsmod lspci
lsusb md5sum mdev mkdir mkfifo mknod mkpasswd mkswap mktemp modinfo
modprobe mount mountpoint mv nc netcat netstat nice nl nohup od oneit
passwd paste patch pgrep pidof pivot_root pkill pmap poweroff printenv
ps pwd readlink realpath reboot renice resolve_modalias rev rm rmdir
rmmod route seq setsid sha1sum sleep sort split stat su swapoff swapon
switch_root sync syslogd tac tail taskset tee test tftpd time timeout
top touch traceroute true truncate tty umount uname uniq unix2dos
unlink unshare uptime useradd usleep uudecode uuencode vconfig vmstat
watch wc which whoami xargs xfs_freeze xzcat yes


Sources are in the usual place (https://github.com/idunham/toybox build).
toybox.bz2
Description  bunzip2 toybox.bz2; chmod +x ./toybox
bz2

 Download 
Filename  toybox.bz2 
Filesize  208.71 KB 
Downloaded  103 Time(s) 
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 490
Location: State of Jefferson

PostPosted: Tue 11 Feb 2014, 19:47    Post subject:  

And another build of toybox:
-A more complete getty
-fixup modprobe
-freeramdisk, openvt, deallocvt
-gzip (based on sflate)
-cpio -d
-grep -zZ
-I'm disabling dhcpd and related dumpleases, tftpd, and telnetd.

Commands:
Code:
acpi addgroup adduser basename blkid brctl bzcat cal cat chgrp chmod
chown chroot chvt cksum clear cmp comm count cp cpio cut date dd deallocvt
delgroup df dhcp dirname dmesg dos2unix du echo egrep eject env expand
expr false fdisk fgrep find free freeramdisk fstype ftpget ftpput
getty grep groupadd groupdel groups gzip halt head help hostname id
ifconfig init insmod kill killall klogd link ln logger login logname
losetup ls lsmod lspci lsusb md5sum mkdir mkfifo mknod mkpasswd mkswap
mktemp modinfo modprobe more mount mountpoint mv nc netcat netstat
nice nl nohup od openvt passwd paste patch pgrep pidof pkill pmap
poweroff printenv ps pwd readlink realpath reboot renice rev rm rmdir
rmmod route seq setsid sha1sum sleep sort split stat su swapoff swapon
switch_root sync syslogd tac tail taskset tee telnet test time timeout
touch true truncate tty umount uname uniq unix2dos unlink unshare
uptime useradd usleep uudecode uuencode vconfig vmstat watch wc which
whoami xargs xfs_freeze xzcat yes

Sources are in the usual place; I built this with
Code:
make CC=/opt/musl/bin/musl-gcc CFLAGS="-Os -static" KCONFIG_BUILD=CONFIG.build; sstrip toybox; ./toybox gzip -gc <toybox >toybox.gz

(note that the above requires sstrip from http://www.muppetlabs.com/~breadbox/software/elfkickers.html)
CONFIG.build.gz
Description  gzipped .config
gz

 Download 
Filename  CONFIG.build.gz 
Filesize  1.22 KB 
Downloaded  69 Time(s) 
toybox.gz
Description  gzipped toybox binary
gz

 Download 
Filename  toybox.gz 
Filesize  214.13 KB 
Downloaded  69 Time(s) 
Back to top
View user's profile Send private message 
Ibidem

Joined: 25 May 2010
Posts: 490
Location: State of Jefferson

PostPosted: Fri 18 Apr 2014, 19:01    Post subject:  

Size optimization, from smallest to largest:
gcc-3.4, -Os -fomit-frame-pointer 390k
gcc-4.2, -Os -fomit-frame-pointer 393k
gcc-4.2, -Os 394k (a few bytes larger)
gcc-3.4, -Os 394k (largest of the four)

Some small fixes have taken place, and xfs_freeze is now fsfreeze.
TOybox 0.4.8 is on the way.
toybox.gz
Description  gzipped toybox.
gz

 Download 
Filename  toybox.gz 
Filesize  216.3 KB 
Downloaded  41 Time(s) 
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 2 of 2 [19 Posts]   Goto page: Previous 1, 2
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » System
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0516s ][ Queries: 13 (0.0038s) ][ GZIP on ]