![]() |
Christmas present: Busybox 1.10.0svn for OS2007
Just got it compiled and running on N800 to replace Nokia's dysfunctional version. . . Among other things at least rdate seems to work.
Quote:
More news coming soon! |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
as far as symlinks go, the busybox makefile should take care of that, no? Quote:
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
I still don't see the '.links' file. Never built busybox before, and I haven't done a 'make install' yet. I skipped quickly over the make install section. SInce I can't build on the tablet a 'make install' in the SDK won't gain me anything yet, unless I just use it to make the symlinks and then tar 'em up. I'm not willing to trash my N800 with the SDK image. I just got through reflashing my OS2007 backup after a disappointing foray with OS2008, and I need a usable device. I'm really not prepared to wipe my N800 out again just to test the SDK image until I have that image just like my existing one. I just wanted to see if busybox worked before anything, so I simply copied the compiled binary over to the N800. Since it works, the next step for me is to copy the symlinks and the binary into my existing root image and flash that. Hopefully the "busybox --install -s" command works. If not I suppose I'll rerun the config with that in and recompile. After that I'll do a .deb. That might take a bit though. I've always been an RPM user. ;) Oh, almost forgot, it's about 740K. Quote:
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
OK, 'make install' creates the 'busybox.links' file ...
The big question now, since there are 267 links, which consist of some of the most critical tablet functions, is which ones that currently exist are safe to overwrite with the new busybox ones, and which ones are not? There may be some commands that currently exist in the tablet that don't use busybox functions. . . It's going to take a bit to make certain all the current ones link to busybox. Otherwise it might severely break something. So far, though, everything still seems to work. But then again, I haven't done a reboot. . . :D |
Re: Christmas present: Busybox 1.10.0svn for OS2007
making the deb will save you a lot of trouble vs manually shifting files around on your tablet. you should be able to follow these steps with only minor variation: http://maemo.org/development/documen...n_package.html
the default debian "rules" file (which is essentially just a make file) will run make then make install on the sources. the "make DESTDIR=$(CURDIR)/foo/bar install" line of rules, it might be enough to change DESTDIR to PREFIX. Note that the files get installed to packagesrc/debian/packagename and then compressed into the deb. you can check the folder to make sure everything copies to the right place. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Update:
New busybox is installed with symlinks and working in my tablet :) There were only a few applets that weren't already symlinked to busybox. I left those alone and overwrote the others. So far no problems and no detectable differences except for the additional functionality. Rdate works and sets the system clock to the network time server! ( This should have been part of the OS from the beginning-no excuses . . .) A console reboot directly after that will lose the clock changes, but a poweroff saves the time change :) There are still a few minor details before packaging: 1) need to disable the non-symlinked applets in the config so they wont get built in the deb 2) console prompt does not show hostname or directory, only the prompt 3) command history not saved upon exit Item #1 is trivial, but if anybody has suggestions on 2 or 3 I'd be appreciative. It's probably a simple item in the config somewhere, but if somebody here knows the directives off hand that would save me some time. Once I get them straightened out I'll work on a .deb. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
I thought I would put an update here on the progress with this package:
Quote:
1. Was trivial. 2. Item "CONFIG_ASH_EXPAND_PRMT=y " was disabled in default busybox config. 3. This also had something to do with (2) above. Additionally, I expanded the history size to 30 lines from the default of 15 and also modified ash.c to give a standard linux PS1 environment of "PS1=[\u@\h \W]\$ " for a bit better readability. (This is the only way to get this to work as bashrc and profile have no effect for local shells. I'm going to build this way since it's the standard linux prompt. If others decide to use this package once I make it available you should change your hostname from the Nokia default to something shorter so it won't take up the entire console ;) ) I also went through the maemo diff for busybox and tried to approximate the debian/maemo config as much as possible without adding the patches/backports or disabling any applets. Another thing to note is that, since busybox has all the applets executable for anyone, you don't need to be root to run them. Of course this has good points, and also bad. I'm going to go back through them and change permissions for any that should be suid root. Current size is 743.5 KB with big command history and all busybox apps enabled. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Very good stuff. Thanks a lot.
Do you plan to package it? I'm not really keen on installing a lot of files here and there and then not having any uninstall option. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
As for installing from a tgz: Just back up the existing file. I'm fairly confident most people who would want this package would be capable of backing up and replacing one file. The only other contents of the package are symlinks to the single busybox executable for all the apps. In the final package I'm not planning to overwrite any of the existing symlinks, just add the new ones. The new symlinks don't take up any space, and, if you revert back to the old busybox, any of the new symlinks will be rendered non-functional. So the new symlinks won't need to be deleted. For reference, and for the paranoid, I'll include a file list in the archive. So you don't need to be worried that you might accidentally execute bzip2 by mistake once you revert back to Nokia's busybox... :rolleyes: Also, for the people who would want this package, I don't think it is something they would want to uninstall: When I reverted back to a Nokia root image I almost went nuts beause there were so many busybox apps that were missing ::mad: I'm going to package it once I get a bit more familiar with dpkg utility. I think it would be better for everyone if I did it correctly. Like I said earlier, I'm an RPM kinda guy. I've converted .debs to RPM before quite a bit, but have never actually made a deb. I know it's not difficult, but unfortunately I'm somewhat time constrained. At least busybox has RPM in it (but not dpkg)! SInce I should really learn to make debs (after all, it's the most popular packaging) I'll get to it sooner rather than later. For now what I will do is post the .tgz archive on my Maemo page. Then, if anybody wants a shot at it, maybe they can make a deb before I get around to it. . . I'll update this post once I make it available. Update on busybox: Rock stable so far. The expanded history really makes life eaiser. Just used built-in fdisk (not sfdisk) utility to partition a new SD card :D |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
Where is the download? I looked in your profile and I looked in this thread and I don't see any link to your maemo page. How hard was Busybox compile to set up? Thanks, David |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
-- Denis |
Re: Christmas present: Busybox 1.10.0svn for OS2007
gnexus,
Can you direct me how I can compile it for OS2008? and why did you didn't compiled the latest Busybox version?. Regards, Taguapire. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
I thought I made that clear: It's not ready yet. . . Quote:
Quote:
Compilation instructions: 1)Download it. 2)Compile it. 3)Install it. 4)Run it. :D Ok, it's a little more complicated than that, but not much. . . Quote:
Sorry, the file's not posted yet. I'll try to get it done tomorrow and post a link. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
hi gnexus: would you be willing to post your instructions and any scripts/files you used for your custom build? (when you are ready of course)
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
NO! Terribly sorry. . . :( The source is available from the debian repositories. I've had a total change of attitude after seeing penguinbait's KDE. Since I'm mainly a KDE/RedHat/Fedora developer I've decided to hold back the code for use in an RPM to be published, possibly as part of a partial/full armel distro for the tablets using the new busybox, KDE, and other libraries. We'll see how that works out . . . See thread: http://www.internettablettalk.com/fo...ad.php?t=13475 I may get around to posting the source eventually, after (if) the RPM / distro is released. Sorry to get everyone's hopes up. I'm certain there are others who can compile code and make a deb. . . I feel bad about doing this and hope everyone understands. Busybox is the underlying foundation of the entire system and I don't have the time (and now I also don't have the inclination. . .) to make a deb and give people instructions and listen to them ***** about problems. So I'm going to leave it to someone else to develop it for Maemo. Besides, it should have been done properly by Nokia in the first place. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
I want my christmas present!!
;) |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
Somebody want to delete this topic so we don't get a bunch of people dissappointed by the title? |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
Please do. I hereby make a request to delete the entire thread. . . |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
Keep the thread. I'll package it (I don't know how long that will take but I'll take a quick look now).
The guy's all talk anyway: First criticizing Nokia for its unwillingness to show us the code. Then the crunch comes and we ask *him* to show us the code and guess what happens. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
ok, that was easy. whipped up a package in about 20 mins. I still need to figure out which commands are provided natively in the OS so that I don't replace any of them. (I was counting on gnexus for that). I noticed that pidof was one of them, but still need to look in /sbin /usr/bin /usr/sbin etc
I'm also thinking I should call this busybox-alt or busybox-opt to differentiate it from the nokia supplied one and use "replaces: busybox" in the control file. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Ok,
I already downloaded The VMWARE Xubuntu Image with Maemo Development environment pre-installed. So... I downloaded the source code, I compiled it, BUT... I was looking for some applets that yours have enabled, and I wasn't able to find among Option listed in the configuration menu. I'm looking for arp command, the SVN version that I downloaded just lists arping. 1.- How I can get a list of applets similar to yours. 2.- I must compile it as statically binary? or use libraries is ok? I asking because I don't know where are the files compiled, I just found busybox and busybox-unstripped, if there is a library i don't know where is it. 3.- How big is your busybox compiled file?. 4.- Why my version is v1.1.4-pre0, yours is 1.10.0.SVN and busybox.net says 1.8.X stable 1.9.X unstable? (I downloaded my source files from busybox.net SVN repository. 5.- From which repository did you downloaded your sources? 6.- Any other recommendation about general settings in config menu for busybox compilation? Regards, Taguapire. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
gnexus may or may not answer you. I can relate my experience...
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
--------------------- RE DEBIAN PACKAGING BUSYBOX. Nokia has marked its own busybox package build as "Essential" and used a long-winded version numbering scheme. Other packages depend on the presence of busybox with a version above a certain number. This makes it a little more difficult to add/remove busybox (which is somewhat logical because i don't know to what degree apt relies on the presence of busybox tools). Bottom line is I still need to play around with how I package the replacement busybox. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
btw, is anyone willing to volunteer some time to figure out which busybox symlinks would overwrite non-busybox symlinks or files and thus need to be excluded from any package? (pidof is an example in /bin)
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
As I'm interested in this project, I can give a hand.
But not today.. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
I'll help as well. It should be (in theory) pretty easy. I'm ssh'ed into my tablet right now from my desktop. post the list of busybox links and I'll compare them with the installed applications.
David |
Re: Christmas present: Busybox 1.10.0svn for OS2007
from http://www.busybox.net/downloads/BusyBox.html
[, [[, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk, basename, bbconfig, bbsh, bunzip2, busybox, bzcat, cal, cat, catv, chattr, chcon, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw, cut, date, dc, dd, deallocvt, delgroup, deluser, devfsd, df, dhcprelay, diff, dirname, dmesg, dnsd, dos2unix, dpkg, dpkg_deb, du, dumpkmap, dumpleases, e2fsck, echo, ed, eject, env, envdir, envuidgid, ether_wake, expand, expr, fakeidentd, false, fbset, fdflush, fdformat, fdisk, find, fold, free, freeramdisk, fsck, fsck_minix, ftpget, ftpput, fuser, getenforce, getopt, getsebool, getty, grep, gunzip, gzip, halt, hdparm, head, hexdump, hostid, hostname, httpd, hwclock, id, ifconfig, ifdown, ifup, inetd, init, insmod, install, ip, ipaddr, ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kill, killall, killall5, klogd, lash, last, length, less, ln, load_policy, loadfont, loadkmap, logger, login, logname, logread, losetup, ls, lsattr, lsmod, lzmacat, makedevs, matchpathcon, md5sum, mdev, mesg, microcom, mkdir, mke2fs, mkfifo, mkfs_minix, mknod, mkswap, mktemp, modprobe, more, mount, mountpoint, mt, mv, nameif, nc, netstat, nice, nmeter, nohup, nslookup, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pivot_root, pkill, poweroff, printenv, printf, ps, pscan, pwd, raidautorun, rdate, readahead, readlink, readprofile, realpath, reboot, renice, reset, resize, restorecon, rm, rmdir, rmmod, route, rpm, rpm2cpio, run_parts, runcon, runlevel, runsv, runsvdir, rx, sed, selinuxenabled, seq, setarch, setconsole, setenforce, setfiles, setkeycodes, setlogcons, setsid, setuidgid, sha1sum, slattach, sleep, softlimit, sort, split, start_stop_daemon, stat, strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail, tar, taskset, tcpsvd, tee, telnet, telnetd, test, tftp, time, top, touch, tr, traceroute, true, tty, ttysize, tune2fs, udhcpc, udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq, unix2dos, unlzma, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc, wget, which, who, whoami, xargs, yes, zcat, zcip and here's my still broken OS2007 package if you want to look at the structure (includes most but not all busybox apps) EDIT: PACKAGE LINK DELETED - SEE http://garage.maemo.org/projects/busybox-test for source and binaries |
Re: Christmas present: Busybox 1.10.0svn for OS2007
more help needed from OS2008 users. Can someone tell me the exact full version number of the busy box installation? (on OS 2007 it is: "3:1.4.1-1osso2.2") Can you also tell me the names of any packages that depend on busybox, then check what version(s) of busybox those packages expect.
also does anyone know if the Nokia supplied busybox package exists in a repository somewhere? one of the problems with essential packages is you can't uninstall them, you can only upgrade/downgrade them. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
never mind about the OS2008 request. I just bricked my os and have to reinstall. I guess I may as well upgrade to OS2008. that means I'll probably need help from OS2007 users at a later date to handle that port.
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
Hi,
I was compiling busybox for X86, how I can compile it for ARM? because I changed the target to CHINOOK ARMEL and it's binary keeps running in my computer instead of return an binary error (I mean from my development station). Regards, Taguapire. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
2 Attachment(s)
Quote:
Now to the fun stuff: If you want to test more the more complete busybox functionality, I have packaged alternative busybox binaries based on Nokias builds of busybox 1.4.1 for OS2007 and busybox 1.6.1 for OS2008. The OS2008 deb is attached here. That and other binaries are available at: http://garage.maemo.org/projects/busybox-test USE THESE PACAKGES AT YOUR OWN RISK AND DON'T BOTHER UNLESS YOU ARE QUITE PREPARED TO REFLASH THE OS IF SOMETHING BREAKS (I haven't had a problem yet). I have placed replicas of the original nokia binaries on the same project page to allow you to switch back if you need to. For those who would rather build from source, that's cool too. Just "apt-get source busybox", then copy my changelog and config-deb in the attached debian.zip to the debian folder of the busybox source. (NB: the config deb isn't quite there yet, if you dpkg-buildpackage you will be prompted for a few items). You can also download the sources from the svn at the busybox-test project page, which includes the changelog and config-deb. Next steps: * testing * suggestions on applet choice and associated options * upgrade to a newer busybox version * hosting/persuade the maemo team to update busybox in the repo and offer a fully fledged package as an alternative install. EDITS: various clarifications |
Re: Christmas present: Busybox 1.10.0svn for OS2007
I've also sent a message to the maemo developers list to ask about the feasibility of offering a more complete busybox as an optional drop in replacement for the default one supplied with the OS.
|
Re: Christmas present: Busybox 1.10.0svn for OS2007
Binaries for OS2007 and OS2008 are now hosted at:
http://garage.maemo.org/projects/busybox-test/ to try out the alternative packages download the deb with the appropriate OS version flagged with "ALTERNATE". Note that you cannot uninstall busybox because it would break the system. To get the original busybox back, download the appropriate OS versioned deb flagged with "ORIGINAL". Sources for both version are checked into the subversion repository (kind of redundant because my changes are minor) Nokia developers are willing to consider adding more applets to the busybox that ships with the OS (Eero Tamminen asked for a bug report with a detailed request, which I will get to soon). They are most likely to add a handful of core utils because they would rather provide the option to download full versions of non-core utils as separate packages than lock people into limited busybox versions. You can look at the file debian/config-deb in the sources to figure out what is core. Community help is appreciated. Anyone can help by: * testing the extra busybox applets to see which ones work well and which ones don't * listing "must have" applets * contributing to packaging newer versions busybox or version with different applet mixes If anyone wants write access to the project repo let me know. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
Being an RPM/KDE/Fedora person myself I sorta like the idea, but how practical is it? An entire distro is a fair bit of work - all those packages to port. Even if you use KDE for the PIM stuff (can't be worse than GPE!) what about the mapping and media things people use? You could port RPM to the tablet, then package in whatever you feel like? How about dependencies though? I don't think either packager can handle checking the other's database for dependencies can it? I'm going to set up to dual boot 2008 then try KDE, to see if it's usable, meaning fast enough on my 800. I'd rather like an RPM distro, I'm a lot happier using rpm as it is what I'm used to to package things, but I really dunno there's enough support for an rpm-distro. Zebee |
Re: Christmas present: Busybox 1.10.0svn for OS2007
I just want to add something here:
Quote:
Mine works fine! :) If you use the one referred to above, or any other busybox that is not my binary, then don't blame me if you have problems! :eek: :rolleyes: Got it! :D Good. . . -------------------------------------------------------------------- My version is, as referred to in the thread title, 1.10.0svn. and is WAY bigger. Now, on the other hand, if you see a version called busybox-1.10.0svn.openarmel.armel.deb in some unknown repository, then well, that just might be mine :) Also, if ANYONE attempts to repackage the binaries included in the above referred to package: busybox-1.10.0svn.openarmel.armel.deb ( hint, hint , I just want to make certain the package name clear . . . ) as part of a package with a different name, then I will commence legal action against them for copyright ( copyleft? ) infringement. Specifically, if any binary included in the aforementioned package gets into a different deb [ if it's an rpm I may let it slide ;)] with OSSO or maemo ( in specific ) or some other distro name as part of the name of the package, then prompt and significant legal action will be taken against the person who created the package, and a DMCA request will be made to the ISP for the repository it is included in to take down the repository until said offending package has be removed from the said repository. ;) I have not released my source code to anyone, and the binary has markers in the executable. If, by chance, anyone happens to run across my package, I hope you enjoy it, and I sincerely hope you have no problems with it. It has been tested very well and should work fine. I am currently unprepared, however, to host the package, or respond to questions about it. Therefore, if you do have any questions or issues regarding my package please submit them to the operator of the repository where you obtained it from. They will be forwarded to me, and if there are any issues I will attempt to resolve them and issue a package revision. I am fairly confident, however, that there are no major issues. I am hoping that in the near future I can give more information in regard to additional packages for the armel platform. gnexus |
Re: Christmas present: Busybox 1.10.0svn for OS2007
first: very nice troll. i may as well take the bait
1. if you did not take any of nokia's patches (which you claimed) then busybox won't work with dpkg correctly (have you tried to install anything?) 2. if you had released your package, i wouldn't have wasted all that time creating my own. 3. i'm not nearly so petty to bother copyrighting trivial edits to a config script. i daresay you put more energy into the above post. :rolleyes: 4. but if you want to get pedantic, i hope the full sources including your modifications are available with your mysterious package in compliance with the gpl? happy hacking :D |
Re: Christmas present: Busybox 1.10.0svn for OS2007
gnexus, go somewhere else with your drivel.
cripes, thank you so much for making something useful out the seeds of anger and disappointment that gnexus has been sowing. :) |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
Howdy doo to you too :) I'm sorry if you didn't like my last post, but considering the posts above it I felt I had option but to ensure everyone knows that the busybox currently available wasn't mine. Here's some of my responses to your concerns: 1. I didn't use Nokia's patches at all in 1.10.0svn. That was in the prior versions I made using debian stuff. I simply referenced them and made certain there wasn't anything extra needed. If I actually did use Nokia's diffs then the package wouldn't even be worth releasing. Also, I left the existing dpkg, as there is no need to replace it. 2. I hadn't read this thread to know you were creating a package. I'm too busy with other things to sit here reading this thread. That, and the lack of packaging and a repository are what kept me from releasing the tgz before the necessary infrastructure is in place. I apologize for the fact you went to all the trouble, but don't blame me for it. Had you contacted me via a PM I would have responded. 3. I just want people to know who made the original effort, and that my package is not the other one being referred to. I also want them to know where the package actually belongs, which is not as maemo or osso or in one of those repositories. It is going to be part of a complete separate distro. The source and everything will be in that repository once everything is set up. Besides, to use osso in the package name like some people are doing is incorrect, and in violation of Nokia's copyright since osso is for Nokia's closed source stuff... 4. Since I have not released the package yet I feel there is no reason to make the source available. If the package somehow turns up in a maemo repository somewhere ;) , well that is not my responsibility since I haven't made any debs :D Now, instead of me having to respond to posts like this, why don't you just let me get back to coding so we can have some good stuff for these tablets? |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
Quote:
Quote:
Quote:
do you copyright your bug reports too? Quote:
Quote:
I'll be sure to steer clear of both you and your projects in future. I'm also going to start a new thread devoted to testing and improviding busybox packages that are compatible with OS2007 and OS2008 so you no longer have to fear any of my efforts being attributed to you. |
Re: Christmas present: Busybox 1.10.0svn for OS2007
Quote:
You've violated their copyright by quoting them in the forums, I would expect to get a call from their lawyer soon. |
All times are GMT. The time now is 03:14. |
vBulletin® Version 3.8.8