Reply
Thread Tools
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#1
Hi,

I am having many problems with compatibility among maemo shell commands and modern GNU commands. Any help will be appreciated:

1) As an example, xargs does not accept the option -0 (the only reason why I use xargs), or egrep does not accept the option -U. I suppose that this is to make the programs smaller/lighter, but it makes bash scripts hard to port. How do you solve this?

2) I installed bash 3.2 from extras, and I use history expansion a lot. I am used to expand using some leters of the command name, like: 'mo<UP>' to show previous commands that begin with 'mo'. But maemo bash ignores the 'mo', and shows the very last command. What I am missing?

3) When using history expansion with the <UP> arrow, sometimes there are some 'trash' of previous commands that makes hard to edit them. Like:

Nokia:~> firefox httmediaplayer-ui

instead of

Nokia:~> mediaplayer-ui

Maybe this has to do with the PS1 variable I use? Or terminfo?

4) I installed mc, but it shows lots of trash in my xterm. Perhaps the TERM=xterm variable is incorrect?

And, BTW, where can I find maemo xargs man page?

Thanks,

L.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#2
Originally Posted by luis View Post
And, BTW, where can I find maemo xargs man page?
.
Maemo uses Busybox for many of the shell commands. That's why there are missing features compared to the full GNU tools. It is to save space (a lot of it, actually) just as you thought. You can view documentation about Busybox commands on its website, but bear in mind that Maemo Diablo uses Busybox v1.6.1 (released May 2008).

I don't know about mc compatibility with Maemo xterm. I've never tried it.
 
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#3
Originally Posted by jethro.itt View Post
Maemo uses Busybox for many of the shell commands. That's why there are missing features compared to the full GNU tools. It is to save space (a lot of it, actually) just as you thought. You can view documentation about Busybox commands on its website, but bear in mind that Maemo Diablo uses Busybox v1.6.1 (released May 2008).
I see. Acutally, that BusyBox 'spam' message that appears many times in the console is quite annoying...

Thanks,
L.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#4
Originally Posted by luis View Post
Hi,

2) I installed bash 3.2 from extras, and I use history expansion a lot. I am used to expand using some leters of the command name, like: 'mo<UP>' to show previous commands that begin with 'mo'. But maemo bash ignores the 'mo', and shows the very last command. What I am missing?
An .inputrc is what you need. But when you have played some time with ctrl-r, you'll never need this anymore.

PHP Code:
# search in the history (up & down)
"\e[A"history-search-backward
"\e[B"history-search-forward 
You often see busybox on linux embedded system with limited resources
 
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#5
Originally Posted by free View Post
An .inputrc is what you need.
Of course! I forgot about it. Mine is quite complete, in fact, but I made it several years ago.

But when you have played some time with ctrl-r, you'll never need this anymore.
ctrl-r is indeed more flexible since you can search by the middle, but I always search by the first letters... and <Up> is 1 key press less... )

PHP Code:
# search in the history (up & down)
"\e[A"history-search-backward
"\e[B"history-search-forward 
In my case, it is \eOA and \eBA (not sure why).

Thanks!
L.
 
GeneralAntilles's Avatar
Posts: 5,478 | Thanked: 5,222 times | Joined on Jan 2006 @ St. Petersburg, FL
#6
Originally Posted by jethro.itt View Post
Maemo uses Busybox for many of the shell commands. That's why there are missing features compared to the full GNU tools. It is to save space (a lot of it, actually) just as you thought. You can view documentation about Busybox commands on its website, but bear in mind that Maemo Diablo uses Busybox v1.6.1 (released May 2008).
Not only is it a space issue (storage and RAM), it's a performance issue. Substituting bash/GNUtils for BusyBox will more than double the boot time.

Man pages are on the website.
 
Andre Klapper's Avatar
Posts: 1,665 | Thanked: 1,649 times | Joined on Jun 2008 @ Praha, Czech Republic
#7
There will be some compatibility improvements for Fremantle.
Just query for Busybox bugs (also in RESOLVED/VERIFIED/CLOSED state) in https://bugs.maemo.org .
__________________
maemo.org Bugmaster
 

The Following 2 Users Say Thank You to Andre Klapper For This Useful Post:
Posts: 146 | Thanked: 15 times | Joined on Oct 2008
#8
Originally Posted by GeneralAntilles View Post
Not only is it a space issue (storage and RAM), it's a performance issue. Substituting bash/GNUtils for BusyBox will more than double the boot time.
I would be glad to pay that price for fully compatible GNU utils, but that is just me.

Man pages are on the website.
I know that page, but it has only a few commands. xargs and mediaplayer in particular are not there.

Thanks,
L.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#9
Glad to see about the improvements!
I've had once the problem when packaging rkhunter where cat was missing the -v option
-v, --show-nonprinting
use ^ and M- notation, except for LFD and TAB
I had never seen this before actually.
 
free's Avatar
Posts: 739 | Thanked: 159 times | Joined on Sep 2007 @ Germany - Munich
#10
I'm sure a lot of people also will want manpages directly accessible on the device...

I don't think it's only the boot time that is impacted (who cares anyway). Some embedded systems I've worked on were never rebooted but still busybox was the only way with limited resources.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:26.