![]() |
Re: [Announce] Enhanced BusyBox package
Quote:
|
Re: [Announce] Enhanced BusyBox package
Just a little unpleasant if you don't know what keys to press :)
Again, thanks a lot. I have learned a few things today. Will do a little more research, but will probable choose for a restore backup from backup menu. That backup will we be quite old, but I afterwards I hope to rsync more recent data from my PC to my N900. |
Re: [Announce] Enhanced BusyBox package
Quote:
Quote:
Quote:
|
Re: [Announce] Enhanced BusyBox package
Oops, perhaps I have been a little premature in restoring rootfs seeing your advice to use the sleep command.
Anyway, I did a rootfs restore (no optfs) and the phone boots fine now. I might do some extra rsync of the rootfs to make it more up-to-date. And then: installing your new busybox of course :D |
Re: [Announce] Enhanced BusyBox package
Second attempt for install...
All looks good, TMPDIR is parsed as expected and for example ping is executable as user. So I would say: thumbs up for your well designed solution and an upload to the repo! edit: found the reason for my initial reboot loop: just before installing busybox, I replaced /usr/bin/camera-ui, but forgot to make it executable again. And camera-ui is loaded on boot... |
Re: [Announce] Enhanced BusyBox package
I'm not sure if this bug belongs here at all, but I have no better idea, what may cause it - so, if I'm going to talk silly things here, just say a word:
Yesterday, I left my Phone with some things opened, and due to battery being low, BME shut device down. For reasons unknown, something went bad, and my /dev/mmcblk0p2 went FCKD'ed totally, bringing device (for the first time, I must admit) to state of not being able to go past five dots. I've opened backupmenu and recovery console, ensured that /dev/mmcblk0p2 is unmounted (just in case) and started fsck.ext4 (I use ext4 for home). fsck detected 3 wrong inodes and "unexpected inconsistency", so I was forced to run it manually, assuming "yes" to repair questions, as there were literally hundreds of them. After passing stage 1 and 2 of fsck'ing (in fact, at this point, it was e2fsck if I recall correctly), my showstopper bug manifested itself: Code:
Pass 3A: Optimizing directories--- So, as I have said, I have no idea if fsck is related to busybox-power at all, but it seems it fails totally, when more advanced repair operations are required, Sorry, if it is not related here - in such case, please give me a hint about correct place, and I'll repost story there. /Estel |
Re: [Announce] Enhanced BusyBox package
Yup, I've had on-device fsck pop a vein on my phone (albeit in a less critical situation). Probably related to running low on memory.
|
Re: [Announce] Enhanced BusyBox package
fsck is not a part of busybox, so in that way it is not the right place here.
Did you run the fsck using the N900? Then maybe it was an option to do the fsck from a linux PC, using backup menu USB mass storage mode on N900. |
Re: [Announce] Enhanced BusyBox package
Thanks for comments - Yea, I was doing it on device itself - as I described, from backupmenu recovery root terminal. Unfortunately, I'm on a trip, so I don't have access to any linuxbox (even via liveCD).
Anyway, if fsck isn't by any means tied to changes made by busybox-power, it seems unrelated here, so sorry iDont. /Estel |
Re: [Announce] Enhanced BusyBox package
Hmm, it's still probably a valid concern for the Maemo community.
We're running an ancient version of e2fsprogs (1.41.3/2008 Oct 12) which is 12 stable versions behind the latest version (1.42/2011 Nov 29). e2fsprogs-power tiem? |
Re: [Announce] Enhanced BusyBox package
Quote:
For now it's busybox-power time, well, uhm, tiem. A new release has been pushed to the auto builder. It incorporates the patch posted earlier and got synced up hotfixes for BusyBox 1.19.3. I've skipped pushing busybox-power 1.19.3power2 to Maemo's extras, because it didn't play nice with the root shell functionality in BackupMenu. Busybox-power 1.19.3power4 will be pushed to extras-testing tomorrow, but that'll unfortunately require everyone to re-vote it up again (for good reasons though). Please submit this new release to some more testing than usual as the incorporated patch is relatively invasive. I'm not expecting any issues however :). |
Re: [Announce] Enhanced BusyBox package
I have been using the patched version from the moment it was released and I have seen no issues. So I have all the confidence in upcoming 1.19.3power4 release.
|
Re: [Announce] Enhanced BusyBox package
Add.: sorry for the off-topic rant!
Quote:
*THIS* would be something worth a CSSU! |
Re: [Announce] Enhanced BusyBox package
Quote:
I mean, if using PING (among others) requires root priviledges, why should busybox bypass this? we can all use sudo when required. Apparently there are good security reasons why TMPDIR and other env. vars are not inherited from suid binaries, and this is the standard behaviour in glibc, i.e. not considered a bug. I don't see why busybox also has to bypass this behaviour. Aside from personal opinions or preferences, are there any *actual* problems caused by (1) having a separate suid busybox_root, and (2) leaving the TMPDIR behaviour as it is/was? Would be happy to get an answer to the last question. Otherwise I might just stay with 1.19.3-power1, or do my own busybox, or get rid of busybox completely. |
Re: [Announce] Enhanced BusyBox package
Quote:
|
Re: [Announce] Enhanced BusyBox package
Quote:
|
Re: [Announce] Enhanced BusyBox package
Quote:
When I turn on N900, white screen appears, several seconds after it just turns off. Enabling rd mode doesn't help. I have (had) installed backupmenu-multiboot, but it's not starting by opening slide any more. Is there any way to edit rootfs from PC? rescue-kernel from meego, I can start terminal but can't do anything to roots. Can I somehow start backupmenu from PC with flasher? Or should I just reflash rootfs and restore it from backup (I made some modifitions (customizations) after last backup, and I will get backup only at Monday, so I search for all other solutions)? |
Re: [Announce] Enhanced BusyBox package
using RescueOS, You need to mount rootfs somewhere (from terminal), before being able to make any changes.
I can't imagine, how installing busybox may be related to multiboot disappearance. /Estel // Edit I'm also using backupmenu-multiboot (although, backupmenu component manually updated to latest one + tweaked to support ext4 /home - shouldn't matter, in this case) and update went without problems, rebooted many times since that. So, it's worksforme. |
Re: [Announce] Enhanced BusyBox package
I don't know, maybe my problem isn't related to busybox.
Reboot occured while I installed upgrade today (busybox and espeak), after that phone don't start. Thanks for RescueOS, I'll try it right now. |
Re: [Announce] Enhanced BusyBox package
Big thanks for prompting RescueOS, I fixed phone without reflashing.
I had 0-sized /bin/busybox. Accidental reboot appeared in wrong time. What is the reason of reboot I don't know, maybe enabled SR or ramzswap. I think it was watchdog. 4Mb deb installs on my phone 15-20 minutes. (hildon-desktop starts to update menus from desktop-files, I have installed many-many programs) |
Re: [Announce] Enhanced BusyBox package
Quote:
Quote:
There are no security implications with this behaviour AFAIK, as the environment variables are still not inherited and non-root users can't edit the key-value list of variables. Quote:
Also, having one single binary is easier to maintain and cleaner in my opinion, which are the main reasons for taking the current approach to me. Quote:
By the way, lma also had a good idea regarding this topic: split busybox into busybox and busybox_root, and make busybox exec busybox_root when it is invoked with e.g. ping. I'll certainly look into that, but it might take a while before I'll get around to that (patches are welcome of course). -- Edit: forgot to mention: busybox-power 1.19.3power4 should hit extras-testing in an hour or so. Please submit it to some serious testing! |
Re: [Announce] Enhanced BusyBox package
iDont, could You check this:
http://talk.maemo.org/showthread.php?t=81613&page=4 ...? It seems, that some things were changed in dd between stock busybox, and busybox-power. It wasn't tested by me, but people using busybox-power have problems with u-boot, where others are fine. I'm sure Pali will incorporate some fix for that on u-boot side, but, maybe it's also something important for busybox to consider? /Estel |
Re: [Announce] Enhanced BusyBox package
Quote:
Try some test commands if you are in any doubt. Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso30+0m5) multi-call binaryCode:
BusyBox v1.19.3 (Debian 1.19.3power4) multi-call binary. |
Re: [Announce] Enhanced BusyBox package
Thanks, ade. It's just that after "half-year" unreported bug with backupmenu root console and busybox, I'm preferring to report early (and possibly wrong), rather than not reporting at all ;)
/Estel |
Re: [Announce] Enhanced BusyBox package
i have updated busybox-power and i have no problems with stability nor multiboot
|
Re: [Announce] Enhanced BusyBox package
Why is the command "Free Rootfs" of desktop command execution widget
Code:
df -h | awk '$1 == "rootfs" {print $4"B"}' |
Re: [Announce] Enhanced BusyBox package
Quote:
I don't think it should be included in busybox-power |
Re: [Announce] Enhanced BusyBox package
Quote:
Quote:
|
Re: [Announce] Enhanced BusyBox package
Quote:
So you need: Code:
df -h | awk '$1 == "ubi0:rootfs" {print $4"B"}'In any case, with: Code:
df -h | awk '$1 ~ "rootfs" {print $4"B"}'Add.: cat /proc/mounts shows "rootfs" AND "ubi0:rootfs". Busybox/df skips "rootfs", but still shows "ubi0:rootfs", so as a workaround it's OK. Don't know why coreutils/df might want to skip rootfs. Doesn't make any sense to me.. |
Re: [Announce] Enhanced BusyBox package
Thanks for providing an alternative command, reinob :)
Quote:
Quote:
|
Re: [Announce] Enhanced BusyBox package
Quote:
Cheers to you, and thanks again. |
Re: [Announce] Enhanced BusyBox package
F'ing hate talk.maemo.org's quick reply box - why is it that if I use a normal make-a-new-post page and accidentally press back/forward or load a different page, a browser knows to save my text, but it can't do the same for the quick-reply?
Lost my post twice in a row just now. Anyway, request: Please enable the ':p' command in vi in the next version of busybox-power - I'm one of those wierd people who use vi for everything, but because vi lacks proper support for the system-wide copy-paste buffer, the only way to get copy-paste going in vi is by opening multiple files using the same vi instance and being able to switch between them, or by reading in the entirety of another file into the one you're working with using the :r command (which is just painful for large files). The current busybox-power's vi has the :n command, which lets it go to the next file, but not the :p command to go to the previous file, and since it doesn't loop around, having only :n makes copasting code or w/e between files a much more convoluted endeavor. On an unrelated note, although I haven't been on this forum in a while, I appreciate the regular busybox-power updates coming from you iDont. |
Re: [Announce] Enhanced BusyBox package
All instances of ':p' in the last post are intended to be just
Code:
:p |
Re: [Announce] Enhanced BusyBox package
1 Attachment(s)
Quote:
Quote:
One question though: (I only have superficial knowledge of vi, so I could've done something wrong) : p doesn't make vi go back one file on my notebook either, so is this a standard command (at least in the latest release of vi)? I did found some cheat sheets referring to : p as "Go to previous file" though. Quote:
Quote:
|
Re: [Announce] Enhanced BusyBox package
Quote:
|
Re: [Announce] Enhanced BusyBox package
iDont, how do you manage to be so awesome? Explain.
Precompiled .deb downloaded and tested, seems to work perfectly in a short test I did. You were also correct in that it would seem that my VirtualBox debian environment (where I do packaging for the maemo repositories and such) also has a vi that doesn't have a : p command. Granted, vi there just works badly so on there I just use vim usually, so that vi may not be representative either. At any rate, I just supposed full-featured vi must have it since some cheat sheets I found online included it. Are you going to submit the : p patch upstream if it keeps proving stable, or incorporate it into the repo version of busybox-power, like you did with the history+ram patch (which, btw, was also awesome, and was one of my earlier clues as to how awesome you are)? Since I now know from your post that there's a ':rew' command (what would I do without you, seriously) it's not as pressing of an issue for me, but the : p is certainly convenient as well. Copernicus: I'm aware that vim exists for the N900, but it's just not simplistic enough, I guess. I almost didn't like ls's file coloring when busybox-power added it - took me a while to decide I liked it. There's also a part of me that likes vi over vim on principle, kinda like how I like C over C++. There's a certain charm in my mind to doing things a somewhat more primitive way. Another consideration for me is the inclusion of vi into busybox - I always keep the latest .debs of certain files on my N900s for quick restoration to minimal usability (which funny enough includes aircrack-ng suite and macchanger in my mind) after a reflash, which serves as another motive for sticking to vi. (Doubt you were interested in my little ramble about my psyche just now, but oh well.) However, this split screen feature I did not know of, and it intrigues me. I'll look into it and consider it. Your recommendation may well lead me towards switching. And nay, I don't have space issues - I have a haxed eMMC flasher image with a 9 GiB /opt partition that my N900s get treated to and I manually move and symlink a bunch of stuff out to opt (such as all the contents of the C library for gcc compiling on-device, etc). |
Re: [Announce] Enhanced BusyBox package
Quote:
Dang, maybe I should have called myself vim instead. |
Re: [Announce] Enhanced BusyBox package
Quote:
Quote:
Quote:
Edit: the patch has been included upstream! |
Re: [Announce] Enhanced BusyBox package
I have had a strange problem with history in version 1.19.3power4.
I have now a file .ash_history that contains ordinary words (probably fron writing SMS or emails) separated by a question mark '?' and my useful history has been moved to a file .ash_history.3055.new. More that that, the words are placed in a way that are similar to a dictionary. As in the current .ash_history appears the question mark, every time a try to CTRL+R any past command it tries to use the ordinary words from the current file. To solve it, I just removed the bad file and replaced with the correct one, but I thought it would be worth to mention it here. Edit: The file with .number was too old, it seems I have lost most of my command history. |
Re: [Announce] Enhanced BusyBox package
Awesome @ : p now being accepted upstream, as well as it being in the latest update.
As for the post by ivgalvez, I had something like this happen - I did not investigate, I just had my N900 (old unstable one, not the one I bought from dr_frost_dk) randomly crash, and when it rebooted, instead of old commands, I had what appeared to be the contents of some system file as my shell history. I did figure out at the time what the file was, but now I don't recall. It was absolutely unrelated to either shell history, nor did it contain random words separated by ?s. Idk what that was about, but a while later, after some new history had been written to the history file, it was once again replaced with the correct history, and I haven't had it happen again since. |
| All times are GMT. The time now is 02:04. |
vBulletin® Version 3.8.8