Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 09-03-2012, 04:30 PM   #76
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
This finding a way to make a new version of busybox run, even with the old one still installed, is a great find.

Not sure what good having a tftp server on a Kindle is.

Well, if anyone ever asks how to network boot their desktop from their e-book, we are ready.
knc1 is offline   Reply With Quote
Old 09-03-2012, 05:05 PM   #77
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
well. I kid you not - it took me 30 mins to boot my windows laptop and install telnet.
I have witnesses - but all that aside : ) it sure is nice to just jump into the device from anywhere now.
Attached Thumbnails
Click image for larger version

Name:	screenie-from-windows.jpg
Views:	251
Size:	29.5 KB
ID:	91769  
twobob is offline   Reply With Quote
Advert
Old 09-03-2012, 07:02 PM   #78
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Ah having a further look this appears to be Nilujes doing.

: ) no surprise there. It's referencing a third copy of busybox

well back to what I was doing then
twobob is offline   Reply With Quote
Old 09-03-2012, 07:26 PM   #79
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
From /etc/rc.d/functions

Quote:
START_FRAMEWORK=/opt/amazon/ebook/bin/start.sh
FRAMEWORK_STOP_FILE=/tmp/.framework_stop
FRAMEWORK_EXCEPTION_FILE=/var/run/.framework_error
FRAMEWORK_REBOOT_COUNT_FILE=/var/local/system/.framework_reboots
FRAMEWORK_RETRIES_COUNT_FILE=/var/local/system/.framework_retries

INTERNAL_FLAG_FILE=/INTERNAL_FEATURES_ENABLED__DO_NOT_RELEASE

STARTSTOPD=/sbin/start-stop-daemon
FRAMEWORK=/etc/init.d/framework
ETHERNET=/etc/init.d/ethernet
BROWSERD=/usr/bin/browserd
TINYROT=/usr/sbin/tinyrot
MNTROOT=/usr/sbin/mntroot
VIDEO=/etc/init.d/video
FBSET=/usr/sbin/fbset
EIPS=/usr/sbin/eips
PMON=/usr/bin/pmon
AWK=/usr/bin/awk
KDB=/usr/bin/kdb
EU=/usr/sbin/eu
CVM=cvm
twobob is offline   Reply With Quote
Old 09-03-2012, 08:09 PM   #80
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: Yes, usbnet launches a telnetd alongside dropbear/openssh on the K2/K3/K4 . (It's actually the telnetd busybox applet (launched standalone, no inetd), with a patched login applet to allow passwordless logins. Hence why it's disabled when the wifi setting is enabled in usbnet, to avoid leaving a huge backdoor open to the four winds ).
NiLuJe is offline   Reply With Quote
Advert
Old 09-03-2012, 08:27 PM   #81
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Yeah I remember reading your notes on that. now. and indeed have just parsed every single line of readable code you left on the machine in /etc /mnt/us/usbnet and otherwise.

call me anal. Don't enjoy mystery's as much as solving them : ) Yeepee!!!

twobob is offline   Reply With Quote
Old 09-04-2012, 12:39 AM   #82
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
I read that stuff also. And forgot it, also.
Darn, the story I made up sounded so good.

Doing development in public means making mistakes in public.
Perhaps someone else will be saved the time and trouble of repeating our mistakes.
knc1 is offline   Reply With Quote
Old 09-04-2012, 06:47 AM   #83
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Thats exactly what I thought mate. I genuinely no longer mind making totally blindingly huge gaffs. If SOMEONE had taken the time to do them before me I could read those threads instead.

What actually happens is single posts included one perfectly manicured software offering. Zero clue as to how or why. So yeah, "Go Us" for being the ones who step in the stuff on the sidewalk. In this way, we share what we have learned, better than any single piece of software.

: )
twobob is offline   Reply With Quote
Old 09-13-2012, 09:02 AM   #84
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Getting the pimped up busybox working on 3.4

Quote:
Originally Posted by twobob View Post
...

Okay, seemingly the OOTB config does not have a ENV value defined

Ash honours this. and a strace confirms that it now reads /home/root/.bashrc

Setting ENV in a .bashrc has it's drawbacks as it will be processed twice.

So - more sensibly - we should probably just set the ENV value at boot to another filename and populate that with the current current .bashrc noise.

Anyways - that is by the by and will be decided in the wash.

Here are some tests.
....

Re this: su -c 'su -v' -l will only work if the ENV AND the .basrc are processed... I.E same data twice.

So to this end I recommend doing that until a better option comes along.

vi !:command also honours this so, yeah.

Word to the wise and all that.

/etc/profile

Quote:
# system /etc/profile

export PATH=/usr/local/bin:/bin:/usr/bin:/usr/sbin:/sbin

# use local X display if none set
if [ -z "$DISPLAY" ]; then
export DISPLAY=:0.0
fi

# If running interactively, then:
if [ "$PS1" ]; then
umask 022

export PS1="[\u@\h \W]\\$ "
export USER=`id -un`
export LOGNAME=$USER
export HOSTNAME=`/bin/hostname`
export HISTSIZE=1000
export HISTFILESIZE=1000
export PAGER='/bin/more '
export EDITOR='/bin/vi'
export INPUTRC=/etc/inputrc
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
export ENV=/home/root/.bashrc
fi
if [ -f /home/root/.bashrc ]; then
. /home/root/.bashrc
fi
/home/root/.bashrc
Quote:
#uname -a
export LD_LIBRARY_PATH=/mnt/us/usr/lib:/usr/lib:/lib:/mnt/us/lib
export PATH=/mnt/us/usr/local/bin:/mnt/us/usr/bin:/mnt/us/bin:/mnt/us/usr/sbin:\
/mnt/us/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/mnt/us/home/root
#export LD_PRELOAD=/mnt/us/usr/lib/libz.so.1
export PERL5LIB=/mnt/us/usr/lib/perl5/5.12.4:$LD_LIBRARY_PATH:\
/mnt/us/usr/lib/perl5/5.12.4/arm-unknown-linux-gnueabi
if [ -f /mnt/us/.alias ]; then
. /mnt/us/.alias
fi
/etc/passwd

Code:
root:x:0:0:root:/home/root:/bin/sh
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
bin:x:2:2:bin:/bin:/bin/sh
sys:x:3:3:sys:/dev:/bin/sh
sync:x:4:100:sync:/bin:/bin/sync
operator:x:37:37:Operator:/var:/bin/sh
sshd:x:103:99:Operator:/var:/bin/sh
messagebus:x:92:92:messagebus:/bin/false
nobody:x:99:99:nobody:/tmp:/bin/sh
default:x:1000:1000:Default non-root user:/dev/null:/bin/sh
framework:x:1001:150:Framework User:/tmp/framework:/bin/sh
For reference. Cheers.

Last edited by twobob; 09-13-2012 at 10:01 AM.
twobob is offline   Reply With Quote
Old 09-13-2012, 10:42 AM   #85
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
also tried just dumping the new Busybox binary as a straight replacement in /bin

Wifi didn't work so I obviously missed some support somewhere.
However the replacement functions via the alias method work so well I don't think I will bother fixing it.
twobob is offline   Reply With Quote
Old 03-01-2013, 11:30 PM   #86
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
and yes...

an EVEN better busybox is just around the corner.


Code:
Currently defined functions:
	[, [[, add-shell, addgroup, adduser, ar, arp, arping, ash, awk, base64, basename,
	blkid, blockdev, brctl, bunzip2, bzcat, bzip2, cal, cat, catv, chattr, chgrp,
	chmod, chown, chroot, chrt, chvt, cksum, clear, cmp, comm, cp, cpio, crond,
	crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
	dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du, dumpkmap,
	dumpleases, echo, egrep, eject, env, ether-wake, expand, expr, false, fbset,
	fdflush, fdformat, fdisk, fgrep, find, findfs, flock, fold, free, freeramdisk,
	fsck, fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, groups, gunzip,
	gzip, halt, hdparm, head, hexdump, hostid, hostname, httpd, hwclock, id, ifconfig,
	ifdown, ifenslave, ifplugd, ifup, inetd, init, insmod, install, iostat, ip, ipaddr,
	ipcalc, ipcrm, ipcs, iplink, iproute, iprule, iptunnel, kbd_mode, kill, killall,
	killall5, klogd, last, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
	logger, login, logname, losetup, ls, lsattr, lsmod, lsof, lspci, lsusb, lzcat,
	lzma, lzop, lzopcat, makedevs, man, md5sum, mdev, mesg, microcom, mkdir, mkdosfs,
	mke2fs, mkfifo, mkfs.ext2, mkfs.vfat, mknod, mkswap, mktemp, modinfo, modprobe,
	more, mount, mountpoint, mt, mv, nameif, nbd-client, nc, netstat, nice, nohup,
	ntpd, od, openvt, passwd, patch, pgrep, pidof, ping, ping6, pipe_progress,
	pivot_root, pkill, popmaildir, poweroff, printenv, printf, ps, pscan, pstree, pwd,
	pwdx, rdate, rdev, readlink, readprofile, realpath, reboot, remove-shell, renice,
	reset, resize, rev, rm, rmdir, rmmod, route, rtcwake, run-parts, runlevel, sed,
	sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons, setserial,
	setsid, sh, sha1sum, sha256sum, sha3sum, sha512sum, showkey, sleep, sort, split,
	start-stop-daemon, stat, strings, stty, su, sulogin, sum, swapoff, swapon,
	switch_root, sync, sysctl, syslogd, tac, tail, tar, tcpsvd, tee, telnet, telnetd,
	test, tftp, tftpd, time, top, touch, tr, traceroute, traceroute6, true, tty,
	tunctl, tune2fs, udhcpc, udhcpd, udpsvd, umount, uname, uniq, unix2dos, unlzma,
	unlzop, unxz, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch,
	watchdog, wc, wget, which, who, whoami, whois, xargs, xz, xzcat, yes, zcat
BOOM!!!

size?

1mb HAH!!!
twobob is offline   Reply With Quote
Reply

Tags
busybox


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo runs linux and busybox billingd Kobo Reader 32 04-03-2011 10:19 AM
configuring text to speech hpratt Amazon Kindle 1 06-28-2010 01:34 PM
Configuring? rachangua PocketBook 3 05-15-2010 03:33 AM
Updating Busybox Adam B. iRex 14 10-23-2008 10:18 AM
Cybook source code released (kernel and busybox) dottedmag Gen3 Developer's Corner 14 09-12-2008 04:59 AM


All times are GMT -4. The time now is 09:22 AM.


MobileRead.com is a privately owned, operated and funded community.