Moto Hell - The Motorola Modding Community

Motorola Phone Models => Software (Phone) => Topic started by: ilove3d on July 18, 2007, 12:13:12 am



Title: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: ilove3d on July 18, 2007, 12:13:12 am
the files are a little bit large
download at here: ( you need to register an acount )
http://moto.it168.com/viewthread.php?tid=128989

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-


Title: Re: the newest version of busybox, python, bash for ROKR E2 ( or other arm-linux )
Post by: Exploited on July 18, 2007, 12:30:20 am
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?


Title: Re: the newest version of busybox, python, bash for ROKR E2 ( or other arm-linux )
Post by: motomaniacs on July 18, 2007, 12:32:29 am
what is this for???


Title: Re: the newest version of busybox, python, bash for ROKR E2 ( or other arm-linux )
Post by: Exploited on July 18, 2007, 12:46:39 am
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:
Code:
        [, [[, 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

:) :) :)


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: Exploited on July 18, 2007, 01:02:00 am
Ready or not - mirror to come :)

Bash: http://www.e2mod.com/content/view/208/28/

BusyBox: http://www.e2mod.com/content/view/137/28/


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: motomaniacs on July 18, 2007, 01:07:11 am
Thf for the exploited explanation.. :P


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: Exploited on July 18, 2007, 01:53:21 am
... and after some furious troubles in downloading - here you go with PYTHON: http://www.e2mod.com/content/view/209/28/


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: Taurnil on July 18, 2007, 07:21:43 am
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 :(


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: keaglez on January 05, 2008, 09:21:31 am
I need more explanation of the Python, anyone can help? Is it possible to run Python script? Thanks in advance... :)


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: error398 on January 05, 2008, 11:33:22 am
so its mean this is easy way to make a script with more function? uuuuhh im noob bout it


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: Taurnil on January 05, 2008, 12:43:45 pm
if you want more info about python, check python official website (http://"http://www.python.org/") ;)

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


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: keaglez on January 05, 2008, 12:47:14 pm
Yeah, i got it... :) Another question, how about the "hello world" with python? Is there any example? Thanks...


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: Taurnil on January 05, 2008, 01:10:29 pm
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.


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: keaglez on January 05, 2008, 01:28:23 pm
Thanks... :) I will start learning python and see what better thing i can get than a shell script... ;D
ADD:
Yeah, i can run python script very well..! I will try to create some python now... ;D ;D ;D Thanks Taurnil...


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: keaglez on January 06, 2008, 01:35:00 pm
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... :)
ADD
LOL i just read the sys.path, and it configured already... ;D


Title: Re: Busybox, Python and Bash for ROKR E2 (and other arm-linux)
Post by: fade2black on January 07, 2008, 05:00:03 am
Thx's for share, it makes E2 not just best music phone.
It's powerfull moddable linux smartphone more than Windows and Symbian OS  :)