• Welcome, Guest. Please login.

Busybox, Python and Bash for ROKR E2 (and other arm-linux)

Started by ilove3d, July 18, 2007, 10:13:12 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.


the files are a little bit large
download at here: ( you need to register an acount )

bash3.2.0 cross compiling?
# cd bash-3.2
# CC=arm-linux-gcc ./configure --host=arm-linux
# CC=arm-linux-gcc make
# arm-linux-strip bash

python2.5.1 cross compiling?
# cd python-2.5
# mkdir /root/Desktop/rokr_e2
# ./configure --target=arm-linux --prefix=/root/Desktop/rokr_e2
edit the Makefile
CC        = /usr/local/arm-linux/bin/arm-linux-gcc -lpthread
CXX        = /usr/local/arm-linux/bin/arm-linux-g++   -lpthread
# make
# make install

busybox1.6.1 cross compiling?
# cd busybox-1.6.1
# make ARCH=arm CROSS_COMPILE=arm-linux-


gosh thanks... I have an account, but it is extremely hard for me to login, since everything is in Chineese :) I will try to make a mirror. Is that ok?


Bash is the shell (command language interpreter). Basically it understands and runs the .SH scripts and runs the commands in telnet. There are different shells for linux, but Bash is the most famous and widely used

Python is an object-oriented programming language that can be used for software development. It's not so much popular, but it is very powerful. Very good for further software developers

Busybox combines many programs (utilities) into a single small executable, which makes it a very powerful telnet tool. Here are they:
        [, [[, addgroup, adduser, adjtimex, ar, arping, ash, awk,
        basename, bbconfig, bunzip2, busybox, bzcat, cal, cat, catv,
        chattr, chgrp, chmod, chown, chroot, chvt, cksum, clear, cmp,
        comm, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt,
        delgroup, deluser, devfsd, df, diff, dirname, dmesg, dnsd,
        dos2unix, dpkg, dpkg_deb, du, dumpkmap, dumpleases, e2fsck, echo,
        ed, eject, env, ether_wake, expr, fakeidentd, false, fbset,
        fdflush, fdformat, fdisk, find, fold, free, freeramdisk, fsck,
        fsck_minix, ftpget, ftpput, fuser, getopt, 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,
        iptunnel, kill, killall, klogd, lash, last, length, less, ln,
        loadfont, loadkmap, logger, login, logname, logread, losetup, ls,
        lsattr, lsmod, lzmacat, makedevs, md5sum, mdev, mesg, mkdir,
        mke2fs, mkfifo, mkfs_minix, mknod, mkswap, mktemp, modprobe,
        more, mount, mountpoint, mt, mv, nameif, nc, netstat, nice,
        nohup, nslookup, od, openvt, passwd, patch, pidof, ping, ping6,
        pivot_root, poweroff, printenv, printf, ps, pwd, rdate, readlink,
        readprofile, realpath, reboot, renice, reset, rm, rmdir, rmmod,
        route, rpm, rpm2cpio, run_parts, runlevel, rx, sed, seq, setarch,
        setconsole, setkeycodes, setlogcons, setsid, sha1sum, sleep,
        sort, start_stop_daemon, stat, strings, stty, su, sulogin, sum,
        swapoff, swapon, switch_root, sync, sysctl, syslogd, tail, tar,
        tee, telnet, telnetd, test, tftp, time, top, touch, tr,
        traceroute, true, tty, tune2fs, udhcpc, udhcpd, umount, uname,
        uncompress, uniq, unix2dos, unlzma, unzip, uptime, usleep,
        uudecode, uuencode, vconfig, vi, vlock, watch, watchdog, wc,
        wget, which, who, whoami, xargs, yes, zcat, zcip

:) :) :)




thx for sharing  ;D
hehehe... A friend of mine (masiosare) found the 'original' website from wich these packages come from. He helped me to run perl scripts on my E2 ;)
The people from pdaXrom has almost a full linux distro compiled for arm-linux processor... a lot of work...

I am getting used to login and browse on it168... but google translator sux... chinese is complex :(


I need more explanation of the Python, anyone can help? Is it possible to run Python script? Thanks in advance... :)
Best regards,
Jeffri H.


so its mean this is easy way to make a script with more function? uuuuhh im noob bout it


if you want more info about python, check python official website ;)

you can run python scripts with ease, just add the python binary path to E2's PATH variable and you're done ;)


Yeah, i got it... :) Another question, how about the "hello world" with python? Is there any example? Thanks...
Best regards,
Jeffri H.


As far as I know, there's no way to generate E2 native UI DIRECTLY through python, you must run a system command and use showQ.... Python may be a powerful replace to awk, sed, and even bash; just like PERL.


Thanks... :) I will start learning python and see what better thing i can get than a shell script... ;D
Yeah, i can run python script very well..! I will try to create some python now... ;D ;D ;D Thanks Taurnil...
Best regards,
Jeffri H.


Hmm... Im searching everywhere, but i havent find how to configure the PYTHONPATH (adding /mmc/mmca1/lib)... That makes me cant use the import statement... :( Any help will be appreciated... Thanks... :)
LOL i just read the sys.path, and it configured already... ;D
Best regards,
Jeffri H.