Hi, --- JL SYNCHRO wrote:
> Hi, > > my version : uClinux-dist-20070130 / linux 2.4.32. > > my problem : I can't use the command "tr" in the > busybox. > > when I generate uclinux image with make xconfig ..., > at the end of the > compilation, I see the command "tr" in the romfs : > > ... > genromfs -v -V "ROMdisk" -f > /home/uClinux-dist-20070130/images/romfs.img -d > /home/uClinux-dist-20070130/romfs > .... > 2 ping [0x308 , 0x7198a ] > 0120777, sz 7, at > 0x18f450 > 2 chat [0x308 , 0x719bd ] > 0100744, sz 49072, at > 0x18f480 > 2 cp [0x308 , 0x7197a ] > 0120777, sz 7, at > 0x19b450 > 2 tr [0x308 , 0x719aa ] > 0120777, sz 7, at > 0x19b480 <<<====== > 2 telnet [0x308 , 0x719a8 ] > 0120777, sz 7, at > 0x19b4b0 > .... > > when I boot on my 5272 card, I see the command "tr" > : > > # ls -la /bin/t* > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/tty -> busybox > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/true -> busybox > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/tr -> busybox > <<<====== > -rwxr-xr-x 1 0 0 35616 Jan 1 > 1970 /bin/tip > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/test -> busybox > -rwxr-xr-x 1 0 0 41924 Jan 1 > 1970 /bin/telnetd > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/telnet -> > busybox > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/tee -> busybox > -rwxr-xr-x 1 0 0 224000 Jan 1 > 1970 /bin/tcpdump > lrwxrwxrwx 1 0 0 7 Jan 1 > 1970 /bin/tail -> busybox > > But, when I run the command, the command seems to be > not found : > > # /bin/tr > BusyBox v1.00 (2007.06.07-09:48+0000) multi-call > binary > > Usage: busybox [function] [arguments]... > or: [function] [arguments]... > > BusyBox is a multi-call binary that combines > many common Unix > utilities into a single executable. Most > people will create a > link to busybox for each function they wish > to use, and BusyBox > will act like whatever it was invoked as. > > Currently defined functions: > [, adjtimex, busybox, cat, chmod, cp, cut, > date, dd, df, dmesg, > echo, expr, false, free, grep, head, > hostname, ifconfig, insmod, > kill, killall, ln, logger, ls, lsmod, mkdir, > mount, msh, mv, ping, > printf, ps, pwd, rm, rmdir, rmmod, route, > sed, sh, sleep, stty, > sync, syslogd, tail, tee, telnet, test, > true, tty, umount, vi > > # > > Can you help me ? > When was the last time you ran 'make distclean; make xconfig'? It could be that the tr applet got disabled somewhere along the line which resulted in busybox being built without it. However, the symbolic link still existed in the romfs directory since 'make distclean' hadn't been run in a while. Optionally, you could just delete the romfs directory and rerun make. When make completes, look in romfs/bin; if the tr symbolic link isn't there then you know the tr applet must have gotten disabled. Rerun 'make xconfig', enable it, and then make. tr should reappear. Regards, ...doug ____________________________________________________________________________________ Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
