Moto Hell - The Motorola Modding Community
March 29, 2024, 02:16:38 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: The forum is no longer active and registration is disabled; however you can still fetch everything as guest.
 
   Home   Help Facebook Search Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: Busybox, Python and Bash for ROKR E2 (and other arm-linux)  (Read 20865 times)
ilove3d
Guest
« 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-
« Last Edit: July 18, 2007, 12:51:52 am by Exploited » Logged
Exploited
Administrator
Ultimate modder
*****

Karma: 108
Offline Offline

Posts: 5153



View Profile WWW
« Reply #1 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 Smiley I will try to make a mirror. Is that ok?
Logged

motomaniacs
Guest
« Reply #2 on: July 18, 2007, 12:32:29 am »

what is this for???
Logged
Exploited
Administrator
Ultimate modder
*****

Karma: 108
Offline Offline

Posts: 5153



View Profile WWW
« Reply #3 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

Smiley Smiley Smiley
Logged

Exploited
Administrator
Ultimate modder
*****

Karma: 108
Offline Offline

Posts: 5153



View Profile WWW
« Reply #4 on: July 18, 2007, 01:02:00 am »

Ready or not - mirror to come Smiley

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

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

motomaniacs
Guest
« Reply #5 on: July 18, 2007, 01:07:11 am »

Thf for the exploited explanation.. Tongue
Logged
Exploited
Administrator
Ultimate modder
*****

Karma: 108
Offline Offline

Posts: 5153



View Profile WWW
« Reply #6 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/
Logged

Taurnil
Guest
« Reply #7 on: July 18, 2007, 07:21:43 am »

thx for sharing  Grin
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 Wink
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 Sad
« Last Edit: July 18, 2007, 10:30:09 am by Taurnil » Logged
keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #8 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... Smiley
Logged

Best regards,
Jeffri H.

error398
Guest
« Reply #9 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
Logged
Taurnil
Guest
« Reply #10 on: January 05, 2008, 12:43:45 pm »

if you want more info about python, check python official website Wink

you can run python scripts with ease, just add the python binary path to E2's PATH variable and you're done Wink
Logged
keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #11 on: January 05, 2008, 12:47:14 pm »

Yeah, i got it... Smiley Another question, how about the "hello world" with python? Is there any example? Thanks...
Logged

Best regards,
Jeffri H.

Taurnil
Guest
« Reply #12 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.
Logged
keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #13 on: January 05, 2008, 01:28:23 pm »

Thanks... Smiley I will start learning python and see what better thing i can get than a shell script... Grin
ADD:
Yeah, i can run python script very well..! I will try to create some python now... Grin Grin Grin Thanks Taurnil...
« Last Edit: January 05, 2008, 01:58:05 pm by keaglez » Logged

Best regards,
Jeffri H.

keaglez
Indonesian Motolover
PHD modder
***

Karma: 61
Offline Offline

Posts: 2562


http://jeffri.net


View Profile WWW
« Reply #14 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... Sad Any help will be appreciated... Thanks... Smiley
ADD
LOL i just read the sys.path, and it configured already... Grin
« Last Edit: January 07, 2008, 11:46:40 am by keaglez » Logged

Best regards,
Jeffri H.

Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Design By Forum Hosting
Powered by SMF 1.1.21 | SMF © 2015, Simple Machines