Author Topic: Busybox  (Read 4693 times)

Antikx

  • Hero Member
  • *****
  • Posts: 1147
    • View Profile
    • http://tyrannozaurus.com
Busybox
« on: November 16, 2005, 03:22:03 pm »
I came across this application and thought I would throw it out there:
http://www.busybox.net/about.html

Info:

"BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. BusyBox provides a fairly complete environment for any small or embedded system.
BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add some device nodes in /dev, a few configuration files in /etc, and a Linux kernel."
Kanpai,
-Antikx (Twitter, Mugshot and PodNova)
C1000 - pdaXrom R198 (Celestial Environment)
tyrannozaurus.com
[img]http://www.tyrannozaurus.com/files/category_pictures/general_1.png\" border=\"0\" class=\"linked-sig-image\" /]
Zaurus news/blogs feed from Zaurus users
Free Windows, Linux, or Web RSS readers.
Featured pages at tyrannozaurus:
Sharp Petition, ScummVM, Cacko, pdaXii13, and Celestial Environment

GadgetGuy

  • Sr. Member
  • ****
  • Posts: 321
    • View Profile
    • http://
Busybox
« Reply #1 on: November 16, 2005, 03:44:26 pm »
Quote
I came across this application and thought I would throw it out there:
http://www.busybox.net/about.html

Info:

"BusyBox combines tiny versions of many common UNIX utilities into a single small executable. It provides replacements for most of the utilities you usually find in GNU fileutils, shellutils, etc. The utilities in BusyBox generally have fewer options than their full-featured GNU cousins; however, the options that are included provide the expected functionality and behave very much like their GNU counterparts. BusyBox provides a fairly complete environment for any small or embedded system.
BusyBox has been written with size-optimization and limited resources in mind. It is also extremely modular so you can easily include or exclude commands (or features) at compile time. This makes it easy to customize your embedded systems. To create a working system, just add some device nodes in /dev, a few configuration files in /etc, and a Linux kernel."
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103939\"][{POST_SNAPBACK}][/a][/div]

If I am not mistaken, Busybox is part of the Zaurus ROM. At least some messages indicated this ( for example, I wanted to use tar to compress, and I got a message saying that the tar version in Busybox cannot be used to compress, only to expand)
« Last Edit: November 16, 2005, 03:45:02 pm by GadgetGuy »
Zaurus C-3100 from PriceJapan with OZ 3.5.4.1. Opie and GPE
Ambicom CF WL1100C Wifi Card and Symbol Wireless Networker CF Wifi Card
1 GB Sandisk Ultra II SD
PdAir leather case - Nintendo DS metal case
various smaller CF and SD cards
all kinds of USB cables and accessories
-------------------------------------------------------------
Previous computers: TI 99/4A, ZX81, C64, Amiga 500, Apple Powerbook 100
Previous PDA's: Palm 1000, Palm III, Palm V, Palm Vx, Audiovox Maestro Pocket PC, Psion 5mx
Current PDA: Palm Tungsten E2
Current favourite: Zaurus C3100 - my "micro laptop"

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Busybox
« Reply #2 on: November 16, 2005, 03:47:17 pm »
yep busybox is already implemented in the sharproms.  I'm not sure about OZ or pdaxrom (I just started with that one).  Actually it has been used since the beginning of linux zaurus.
« Last Edit: November 16, 2005, 03:48:16 pm by bluedevils »
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

bluedevils

  • Hero Member
  • *****
  • Posts: 1284
    • View Profile
    • http://
Busybox
« Reply #3 on: November 16, 2005, 03:50:12 pm »
BTW I think some linux dists use busybox for faster boot times or more functionality in single user mode (very tiny footprint too).
I'm now an iphone user and use my zaurii as serial terminals, perl and shell scripting and when I need 640x480 screens

sl-c3100/pda cacko 1.23 | sl-6000l/needs battery | sl-c760/server pdaxrom rc12 | Former sl-5500/tkcrom owner (sister's birthday gift)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Busybox
« Reply #4 on: November 16, 2005, 06:07:51 pm »
Yes, busybox is already included in Sharp ROM (the stock one is v0.64, and there is a v1.00 package available to download) and pdaXrom (v1.01).  Dunno exactly about the differences among the old versions and the new ones, but at least the tar in the busybox in pdaXrom can create, while i can't get it done in Sharp rom even though v1.00 is installed with the same message:
Code: [Select]
tar: Creation of compressed not internally by tar, pipe to busybox gunzip

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Busybox
« Reply #5 on: November 16, 2005, 06:30:47 pm »
Both my C3000 and C3100 can tar and untar files using the build-in busybox. I tried to upgrade to busybox 1.0 once, but it failed and I couldn't be bothered to try again :-) since the 0.6 version that ships with Sharp ROM works sufficiently.
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Busybox
« Reply #6 on: November 16, 2005, 06:54:26 pm »
Quote
Both my C3000 and C3100 can tar and untar files using the build-in busybox. I tried to upgrade to busybox 1.0 once, but it failed and I couldn't be bothered to try again :-) since the 0.6 version that ships with Sharp ROM works sufficiently.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103957\"][{POST_SNAPBACK}][/a][/div]

Sorry I should've said 'cannot tar and compress' instead of 'cannot create'.  Still typing tar --help the Sharp rom one shows fewer options than the one in pdaXrom...?

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Busybox
« Reply #7 on: November 16, 2005, 07:21:04 pm »
Quote
Quote
Both my C3000 and C3100 can tar and untar files using the build-in busybox. I tried to upgrade to busybox 1.0 once, but it failed and I couldn't be bothered to try again :-) since the 0.6 version that ships with Sharp ROM works sufficiently.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103957\"][{POST_SNAPBACK}][/a][/div]

Sorry I should've said 'cannot tar and compress' instead of 'cannot create'.  Still typing tar --help the Sharp rom one shows fewer options than the one in pdaXrom...?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=103963\"][{POST_SNAPBACK}][/a][/div]

alias gztar `tar cf - $2 | gzip - > $1`
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Busybox
« Reply #8 on: November 17, 2005, 01:42:13 am »
Quote
Yes, busybox is already included in Sharp ROM (the stock one is v0.64, and there is a v1.00 package available to download) and pdaXrom (v1.01).  Dunno exactly about the differences among the old versions and the new ones, but at least the tar in the busybox in pdaXrom can create, while i can't get it done in Sharp rom even though v1.00 is installed with the same message:
Code: [Select]
tar: Creation of compressed not internally by tar, pipe to busybox gunzip[div align=\"right\"][a href=\"index.php?act=findpost&pid=103955\"][{POST_SNAPBACK}][/a][/div]
It depends on the options used when configuring busybox.
Code: [Select]
# busybox tar --help
BusyBox v1.01 (2005.11.17-05:41+0000) multi-call binary

Usage: tar -[czjZxtvO] [-f TARFILE] [-C DIR] [FILE(s)] ...

Create, extract, or list files from a tar file.

Options:
        c               create
        x               extract
        t               list

Archive format selection:
        z               Filter the archive through gzip
        j               Filter the archive through bzip2
        Z               Filter the archive through compress

File selection:
        f               name of TARFILE or "-" for stdin
        O               extract to stdout
        C               change to directory DIR before operation
        v               verbosely list files processed
This version does what you want, although you could just install a good version of tar too.

This version of busybox was built with the stock sharp rom on my 6k. I don't plan to add this to my feed as I really don't have time to test all the stuff this includes but I will make it available if anyone wants to give it a try.

John

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Busybox
« Reply #9 on: November 17, 2005, 03:34:24 am »
I tried to upgrade busybox to 1.0 in Cacko 1.22, but we run into multiple compatibility problems, mostly with Sharp colsed source applications.

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Busybox
« Reply #10 on: November 17, 2005, 06:17:11 am »
Hello

I encountered similar problems in guylhem-rom - I tried to used busybox 1.01 and I've had many issues. The unresolved issue is with user support for ping and mount (suid support), I'm trying to debug them but they seem more complicated than I first thought. Meanwhile I fixed the tar/ipkg problems.

Could you please tell me your bugs? I'll be happy to help you fix them if I can.

Maybe we could work together on the text tools fixes? I'm quite confident my "text mode" support is mostly fine. The GUI however is another story :-)

Guylhem

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Busybox
« Reply #11 on: November 17, 2005, 08:38:42 am »
Quote
Hello

I encountered similar problems in guylhem-rom - I tried to used busybox 1.01 and I've had many issues. The unresolved issue is with user support for ping and mount (suid support), I'm trying to debug them but they seem more complicated than I first thought. Meanwhile I fixed the tar/ipkg problems.

Could you please tell me your bugs? I'll be happy to help you fix them if I can.

Maybe we could work together on the text tools fixes? I'm quite confident my "text mode" support is mostly fine. The GUI however is another story :-)

Guylhem
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104009\"][{POST_SNAPBACK}][/a][/div]

It's been more than a year ago   I hardly rememeber all the details, but most oustanding issues were related to tar incompatibility with GNU tar. Sharp applications depend on current busybox behaviour, so I gave up finally after spending a few weeks trying to integrate 1.0 into the ROM.

guylhem

  • Hero Member
  • *****
  • Posts: 577
    • View Profile
Busybox
« Reply #12 on: November 17, 2005, 01:02:28 pm »
Hello

So I think I can help, since I added GNU tar like options to busybox. I'll send you a copy of my busybox 1.01. Please tell me if you have any issues besies mount/ping

Guylhem

inode0

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
Busybox
« Reply #13 on: November 17, 2005, 02:01:23 pm »
Quote
Hello

So I think I can help, since I added GNU tar like options to busybox. I'll send you a copy of my busybox 1.01. Please tell me if you have any issues besies mount/ping

Guylhem
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104066\"][{POST_SNAPBACK}][/a][/div]
Did you include rdate? That would need a patch too I expect.

John

maslovsky

  • Hero Member
  • *****
  • Posts: 1426
    • View Profile
    • http://my-zaurus.narod.ru
Busybox
« Reply #14 on: November 21, 2005, 02:45:31 pm »
Quote
Hello

So I think I can help, since I added GNU tar like options to busybox. I'll send you a copy of my busybox 1.01. Please tell me if you have any issues besies mount/ping

Guylhem
[div align=\"right\"][a href=\"index.php?act=findpost&pid=104066\"][{POST_SNAPBACK}][/a][/div]

I can't tell when I'm going to work on the next ROM version. And updating busybox will most likely requrie a ROM to be released. I'm not sure I'll be able to produce a reliable hotfix with such a major change.