Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 12-17-2012, 11:04 AM   #1
silverzhao
Enthusiast
silverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplanesilverzhao makes transoceanic flights without the assistance of an airplane
 
silverzhao's Avatar
 
Posts: 28
Karma: 55702
Join Date: Sep 2012
Device: Kindle Touch
An available bash 4.2 for KT

The default bash on KT is a symbolic link to bushbox, and it's not very comfortable to use, such as no readline, no reverse-search, etc.

So I've compiled one for KT and it works well. If you are interested, maybe you can have a try.

--EDIT--
Here is the source: http://ftp.gnu.org/gnu/bash/bash-4.2.tar.gz
and you may need the patch from here.

Patch:
Spoiler:

Code:
$ cat m.patch
--- execute_cmd.c.orig	2012-12-18 01:17:36.461797844 +0800
+++ execute_cmd.c	2012-12-18 01:19:37.217827181 +0800
@@ -2202,7 +2202,11 @@
   /* If the `lastpipe' option is set with shopt, and job control is not
      enabled, execute the last element of non-async pipelines in the
      current shell environment. */
+#if defined (JOB_CONTROL)
   if (lastpipe_opt && job_control == 0 && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
+#else
+  if (lastpipe_opt && asynchronous == 0 && pipe_out == NO_PIPE && prev > 0)
+#endif /* JOB_CONTROL */
     {
       lstdin = move_to_high_fd (0, 0, 255);
       if (lstdin > 0)


I compiled it with:
Code:
$ patch < m.patch
$ CC=arm-unknown-linux-gnueabi-gcc ./configure --host=arm-linux --target=arm-linux --enable-history --enable-readline --without-bash-malloc
Attached Files
File Type: zip bash.zip (344.1 KB, 360 views)

Last edited by silverzhao; 12-17-2012 at 12:30 PM.
silverzhao is offline   Reply With Quote
Old 12-17-2012, 11:58 AM   #2
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 one for the Kindle 3

Thanks. can you provide a link back to the original source as well please for those of us who like to tinker

EDIT: Thanks

Okay I attached one that should work fine on the 3's also.
HTH.

$ ./configure --host=i686-pc-linux --build=arm-none-linux-gnueabi --enable-history --enable-readline --without-bash-malloc

using arm-none-linux-gnueabi-gcc -c -O2 -ffast-math -march=armv6j -mtune=arm1136jf-s -mfpu=vfp -pipe -fomit-frame-pointer -fno-stack-protector -U_FORTIFY_SOURCE
: )
Attached Files
File Type: gz bash-kindle-3.tar.gz (399.6 KB, 388 views)

Last edited by twobob; 12-17-2012 at 01:32 PM.
twobob is offline   Reply With Quote
Old 02-06-2013, 10:37 AM   #3
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
http://bit.ly/kBash. it's a bit flaky and needs base64 support to do the splash screen.

playing with it though. reset issues ATM so not ready for end users.
twobob is offline   Reply With Quote
Reply

Tags
k5 tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bash for kindle fbdev Kindle Developer's Corner 18 04-24-2012 04:26 PM
Bash-Skript für Pocketbook Reader schreiben Hildegunst PocketBook 18 05-02-2011 05:25 PM
Bash Script/SQL Query for ISBN in filename? zenrhino Calibre 1 09-26-2010 08:55 AM
Is it possible to execute a bash script from the SD card? godel10 iRex 25 06-25-2009 03:55 PM
BASH script for *2lrf utilities (thanks Kovid!)... KaiGoth Sony Reader 0 08-05-2007 01:30 AM


All times are GMT -4. The time now is 11:05 AM.


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