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 08-10-2012, 09:53 AM   #211
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,552
Karma: 6021142
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
Updated the Kek_Emu to present toolset - Step by Step

UPDATING THE EMULATOR QUICKLY VIA THIS SITE

These steps outline the general way to update stuff into the emulator with minimal hassle when they are published as attachments on this site.

I update the Emu with all includes by Knc1 with the commands in this post (as of today, the process is a simple one as you will see so simply expand it to your needs)

Code:
(armv6l:1) /home # export PATH=/home/bin:/home/lib:/home/include:/home/share:$PATH

(armv6l:1) /home # echo $PATH
RESULT
Code:
/home/bin:/home/lib:/home/include:/home/share:/bin:/sbin

Code:
(armv6l:1) /home # cd      (just in case)

(armv6l:1) /home # wget -O binutils.tar.gz http://www.mobileread.com/forums/att...7&d=1342813041
RESULT
Code:
(armv6l:1) /home # Connecting to www.mobileread.com (67.205.70.12:80)

[1]+  Done                       wget -O binutils.tar.gz http://www.mobileread.com/forums/att...chmentid=89477
(to check it is actually there)

Code:
(armv6l:1) /home # ls
RESULT
Code:
bin              include          lynx2-8-8        share
binutils.tar.gz  lib              man              src
git              lost+found       path.sh
Code:
(armv6l:1) /home # tar -xvzf ./binutils.tar.gz
RESULT
Spoiler:
Code:
./
./include/
./include/bfd.h
./include/symcat.h
./include/bfdlink.h
./include/dis-asm.h
./include/ansidecl.h
./share/
./share/man/
./share/man/man1/
./share/man/man1/elfedit.1
./share/man/man1/windmc.1
./share/man/man1/size.1
./share/man/man1/strings.1
./share/man/man1/as.1
./share/man/man1/nlmconv.1
./share/man/man1/ar.1
./share/man/man1/dlltool.1
./share/man/man1/strip.1
./share/man/man1/nm.1
./share/man/man1/windres.1
./share/man/man1/objcopy.1
./share/man/man1/ld.1
./share/man/man1/ranlib.1
./share/man/man1/c++filt.1
./share/man/man1/objdump.1
./share/man/man1/gprof.1
./share/man/man1/addr2line.1
./share/man/man1/readelf.1
./share/info/
./share/info/bfd.info
./share/info/as.info
./share/info/standards.info
./share/info/gprof.info
./share/info/configure.info
./share/info/binutils.info
./share/info/ld.info
./lib/
./lib/libiberty.a
./lib/libbfd.la
./lib/libopcodes.a
./lib/libopcodes.la
./lib/libbfd.a
./bin/
./bin/size
./bin/strings
./bin/strip
./bin/objdump
./bin/readelf
./bin/ld.bfd
./bin/addr2line
./bin/elfedit
./bin/as
./bin/ar
./bin/ld
./bin/objcopy
./bin/gprof
./bin/c++filt
./bin/ranlib
./bin/nm
./armv6l-unknown-linux-gnueabi/
./armv6l-unknown-linux-gnueabi/lib/
./armv6l-unknown-linux-gnueabi/lib/ldscripts/
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xd
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xw
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xu
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xu
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xdc
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xr
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xsw
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xs
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xdc
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.x
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xc
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.x
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xn
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xn
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xw
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xc
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xdw
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xd
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xs
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xsc
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xsw
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xbn
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelf_linux_eabi.xr
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xbn
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xsc
./armv6l-unknown-linux-gnueabi/lib/ldscripts/armelfb_linux_eabi.xdw
./armv6l-unknown-linux-gnueabi/bin/
./armv6l-unknown-linux-gnueabi/bin/strip
./armv6l-unknown-linux-gnueabi/bin/objdump
./armv6l-unknown-linux-gnueabi/bin/ld.bfd
./armv6l-unknown-linux-gnueabi/bin/as
./armv6l-unknown-linux-gnueabi/bin/ar
./armv6l-unknown-linux-gnueabi/bin/ld
./armv6l-unknown-linux-gnueabi/bin/objcopy
./armv6l-unknown-linux-gnueabi/bin/ranlib
./armv6l-unknown-linux-gnueabi/bin/nm


Code:
(armv6l:1) /home #  wget -O mpc-1.0-uclibc.tar.gz http://www.mobileread.com/forums/att...1&d=1342972453
(wait a mo. then press enter. shell does not always return prompt when completed)
RESULT
Code:
(armv6l:1) /home # Connecting to www.mobileread.com (67.205.70.12:80)
[1]+  Done                       wget -O mpc-1.0-uclibc.tar.gz http://www.mobileread.com/forums/att...chmentid=89551
Code:
(armv6l:1) /home # tar -xzvf mpc-1.0-uclibc.tar.gz
RESULT
Spoiler:
Code:
./
./include/
./include/mpc.h
./share/
./share/info/
./share/info/mpc.info
./lib/
./lib/libmpc.a
./lib/libmpc.so.3
./lib/libmpc.so.3.0.0
./lib/libmpc.la
./lib/libmpc.so


Optionally rm mpc-1.0-uclibc.tar.gz

Code:
(armv6l:1) /home #  wget -O mpfr-3.1.1-uclibc.tar.gz http://www.mobileread.com/forums/att...7&d=1342964860
(wait a mo. then press enter. shell does not always return prompt when completed)
RESULT
Code:
(armv6l:1) /home # Connecting to www.mobileread.com (67.205.70.12:80)
[1]+  Done                       wget -O mpfr-3.1.1-uclibc.tar.gz http://www.mobileread.com/forums/att...chmentid=89547
Code:
(armv6l:1) /home # tar -xzvf mpfr-3.1.1-uclibc.tar.gz
RESULT
Spoiler:
Code:
./
./include/
./include/mpfr.h
./include/mpf2mpfr.h
./share/
./share/info/
./share/info/mpfr.info
./share/doc/
./share/doc/mpfr/
./share/doc/mpfr/TODO
./share/doc/mpfr/AUTHORS
./share/doc/mpfr/NEWS
./share/doc/mpfr/BUGS
./share/doc/mpfr/COPYING
./share/doc/mpfr/COPYING.LESSER
./share/doc/mpfr/examples/
./share/doc/mpfr/examples/sample.c
./share/doc/mpfr/examples/version.c
./share/doc/mpfr/examples/ReadMe
./share/doc/mpfr/examples/rndo-add.c
./share/doc/mpfr/examples/divworst.c
./share/doc/mpfr/FAQ.html
./lib/
./lib/libmpfr.so.4
./lib/libmpfr.a
./lib/libmpfr.so.4.1.1
./lib/libmpfr.la
./lib/libmpfr.so


optionally rm mpfr-3.1.1-uclibc.tar.gz

Code:
(armv6l:1) /home # wget -O gmp-5.0.5-uclibc.tar.gz http://www.mobileread.com/forums/att...9&d=1343076378
(wait a mo. then press enter. shell does not always return prompt when completed)
RESULT
Code:
(armv6l:1) /home # Connecting to www.mobileread.com (67.205.70.12:80)
[1]+  Done                       wget -O gmp-5.0.5-uclibc.tar.gz http://www.mobileread.com/forums/att...chmentid=89619
Code:
(armv6l:1) /home # tar -xzvf gmp-5.0.5-uclibc.tar.gz
RESULT
Spoiler:
Code:
./
./include/
./include/gmp.h
./share/
./share/info/
./share/info/gmp.info
./share/info/gmp.info-1
./share/info/gmp.info-2
./lib/
./lib/libgmp.la
./lib/libgmp.so.10
./lib/libgmp.so
./lib/libgmp.so.10.0.5
./lib/libgmp.a


Optionally rm gmp-5.0.5-uclibc.tar.gz

Code:
(armv6l:1) /home # wget -O m4-1.4.16-armv6-uclibc.tar.gz http://www.mobileread.com/forums/att...8&d=1342724437
(wait a mo. then press enter. shell does not always return prompt when completed)
RESULT
Code:
(armv6l:1) /home # Connecting to www.mobileread.com (67.205.70.12:80)
[1]+  Done                       wget -O m4-1.4.16-armv6-uclibc.tar.gz http://www.mobileread.com/forums/att...chmentid=89418
Code:
(armv6l:1) /home # tar -xzvf m4-1.4.16-armv6-uclibc.tar.gz 
RESULT
Spoiler:
Code:
./
./share/
./share/man/
./share/man/man1/
./share/man/man1/m4.1
./share/info/
./share/info/m4.info
./share/info/m4.info-1
./share/info/m4.info-2
./bin/
./bin/m4


optionally rm m4-1.4.16-armv6-uclibc.tar.gz

(armv6l:1) /home #

So to conclude the process is

cd (just in case)

GET THING:

(name can be anything, link copied from site)

(armv6l:1) /home # wget -O thing.tar.gz http://www.mobileread.com/forums/att...8&d=1342724437

UNPACK THING

(armv6l:1) /home # tar -xzvf thing.tar.gz

REMOVE THING

(armv6l:1) /home # rm thing.tar.gz

UNINSTALL THING
Hmm Delete stuff.. YMMV

Hope this helps someone at some point.
And if anyone knows how to make the links NOT obfuscate via ellipses' that would be awesome : )

Last edited by twobob; 08-10-2012 at 10:38 AM.
twobob is offline   Reply With Quote
Old 08-10-2012, 10:52 AM   #212
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,552
Karma: 6021142
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
When decompressing complicated archives I often get:

lsi_scsi: error: ORDERED queue not implemented
lsi_scsi: error: ORDERED queue not implemented


although it reports as an error it seems to fail gracefully so perhaps warning would be a better label. Thought I would report it.
twobob is offline   Reply With Quote
 
Enthusiast
Old 08-10-2012, 11:36 AM   #213
knc1
Embedded Cheerleader
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: 6,382
Karma: 5840126
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by twobob View Post
When decompressing complicated archives I often get:

lsi_scsi: error: ORDERED queue not implemented
lsi_scsi: error: ORDERED queue not implemented


although it reports as an error it seems to fail gracefully so perhaps warning would be a better label. Thought I would report it.
Ah, yeah, that one.
Buried somewhere in one of my collapsed text posts.

The system image (an ext3 file system) survives, other file system types might not survive.

The root cause seems to be that Rob creates the development file system image as a sparse file (mostly not there, has a really big "hole" in it).
When the file system has to "fill in" one of the "holes" because of a write command, it triggers this warning/error.
**Something** is saving the day, probably the ext3 journal.

Hmm...
Which reminds me of two other "gotchas" - -

You know the message you get when starting the emulator: "Type exit to quit"?
ah, don't do that - unless you really like running e2fsck

Instead (when ready to leave the emulator):
cd /root
umount /home
exit

That gets the file system updated and cleanly closed.

The other "gotcha" -
There is something about multiple mount points of the same (loop) device that isn't working correctly.

So don't mount the system image outside of the emulator while QEMU has it mounted inside of the emulator.
I.E: exit the emulator before:
sudo mount -o loop hdb.img /mnt/hdb
When you want to read/write things into/out of the /home image file.

Just to spare someone asking howto run e2fsck on the image:
sudo losetup /dev/loop1 hdb.img
sudo e2fsck -f /dev/loop1
sudo losetup -d /dev/loop1
knc1 is offline   Reply With Quote
Old 08-10-2012, 11:42 AM   #214
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,552
Karma: 6021142
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
Perl Fail.

Perl from source Fail

Get Thing

(armv6l:1) /home/src/perl-5.16.0 # wget http://downloads.activestate.com/Act...-295342.tar.gz

(armv6l:1) /home/src/perl-5.16.0 # tar -xzvf ActivePerl-5.14.2.1402-i686-linux-g
libc-2.3.6-295342.tar.gz


(armv6l:1) /home/src/perl-5.16.0 # cd ActivePerl-5.14.2.1402-i686-linux-glibc-2.
3.6-295342/


Configure Thing:

sh Configure

then 1/2 way through sh Configure

Code:
Lots of Blah Blah Blah then..

You probably shouldn't let me use 'nm' if you are using the GNU C Library.

Shall I use /home/bin/nm to extract C symbols from the libraries? [y] 
 
Your (shared) C library seems to be in /lib/libc.so.

If the guess above is wrong (which it might be if you're using a strange
compiler, or your machine supports multiple models), you can override it here.

Where is your C library? [/lib/libc.so] 
 
Extracting names from the following files for later perusal:
 
	/lib/libc.so
	/usr/bin/../lib/libcrypt.so.0
	/usr/bin/../lib/libdl.so.0
	/usr/bin/../lib/libm.so.0
	/usr/bin/../lib/libnsl.so.0
	/usr/bin/../lib/libutil.so.0
 
This may take a while................... 
/home/bin/nm didn't seem to work right. Trying /home/bin/ar instead...
/home/bin/ar: /lib/libc.so: File format not recognized
/home/bin/ar didn't seem to work right.
Maybe this is a Cray...trying bld instead...
Configure: line 7692: bld: command not found
That didn't work either.  Giving up.
Fail.
twobob is offline   Reply With Quote
Old 08-10-2012, 12:01 PM   #215
knc1
Embedded Cheerleader
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: 6,382
Karma: 5840126
Join Date: Feb 2012
Device: Too many.
What is /home/bin/{nm,ar} anyway?

Are those from my posted binutils archive?

Q: Did you keep the original packaging for the K3?
If you did, you could always box it up and give it to someone these coming holidays that just wants to read e-books with it, not use it as an ARM development system.

Last edited by knc1; 08-10-2012 at 12:07 PM.
knc1 is offline   Reply With Quote
Old 08-10-2012, 12:26 PM   #216
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,552
Karma: 6021142
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
Quote:
Originally Posted by knc1 View Post
What is /home/bin/{nm,ar} anyway?

Are those from my posted binutils archive?

Q: Did you keep the original packaging for the K3?
If you did, you could always box it up and give it to someone these coming holidays that just wants to read e-books with it, not use it as an ARM development system.
Yep. installed as per your instructions
http://www.mobileread.com/forums/sho...&postcount=108

and the http://www.mobileread.com/forums/sho...&postcount=211 reiteration Thread.

: )

Meh. these are minutia. but it may prove prudent to have use some external tools to patch up these holes in the near-soon, running out of ways to skin a cat for getting svn / git / repo tools installed.

also posting an image with some of these popular bits squeezed in for a 'jumping-off' point would UNDOUBTEDLY entice more users to the platform.

Even if it was just via install scripts for license purposes w/e

Last edited by twobob; 08-10-2012 at 12:35 PM. Reason: added enticement
twobob is offline   Reply With Quote
Old 08-10-2012, 01:12 PM   #217
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,552
Karma: 6021142
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
I have a question:

if blah.sh contains:

#!/bin/sh
PATH="/home/bin:/home/lib:/home/include:/home/share:$PATH"; export PATH
LD_LIBRARY_PATH="/home/usr/lib:/home/lib:/lib:/usr/lib"; export LD_LIBRARY_PATH
echo $PATH


Then it would echo the correct new path.

but then echo $PATH from the command line would show unchanged values.
Umm. is there a export -a or something I am missing?

Apologies to be a pain, I did read the man page but don't seem to be able to grasp why it's only set in the script.

Thanks everyone.

Last edited by twobob; 08-10-2012 at 01:14 PM. Reason: for matting
twobob is offline   Reply With Quote
Old 08-10-2012, 01:14 PM   #218
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: 4,804
Karma: 4461973
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
You're exporting in a subshell (because shell scripts are run in a child process, unless you exec it, which you probably don't want to do ^^), and expecting to see that propagated in the parent shell. An export propagates the var to the env of the current process and its *children*, not its parent .

If you want to modify your current shell's env from a file or something, source something, don't run a script .

In your case:

custom_env
Code:
PATH="/home/bin:/home/lib:/home/include:/home/share:${PATH}"
LD_LIBRARY_PATH="/home/usr/lib:/home/lib:/lib:/usr/lib"
source custom_env

Should do what you expect .

(Note that in most shells, . is an alias for source, so you can do . custom_env, too )

Last edited by NiLuJe; 08-10-2012 at 01:22 PM.
NiLuJe is offline   Reply With Quote
Old 08-10-2012, 01:41 PM   #219
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,552
Karma: 6021142
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. scope. got it. source also noted.

Thanks Niluje!

I was playing with setting the login shell env parameters via .profile in the Kek_Emu seemingly .profile goes unread. Thanks for the info

Quote:
Originally Posted by NiLuJe View Post
(Note that in most shells, . is an alias for source, so you can do . custom_env, too )
Awesome tip!

Last edited by twobob; 08-10-2012 at 02:03 PM. Reason: Awesomeness
twobob is offline   Reply With Quote
Old 08-10-2012, 02:36 PM   #220
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,552
Karma: 6021142
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
okay so further to this then I now have a start file that contains this in my root

Code:
PATH="/home/bin:/home/lib:/home/include:/home/share:/bin:/usr/bin:/sbin:/usr/sbin"; export PATH
LD_LIBRARY_PATH="/home/usr/lib:/home/lib:/lib:/usr/lib"; export LD_LIBRARY_PATH
alias stop="cd /root; umount /home; exit"
which provides for the tidy command stop to prevent the horrible exit errors.

Since MS are no longer using start and stop I will have them

Thanks for the tips.

. start

at login is the kind of work I can handle repetitively until I figure out a better way to invoke something at boot.

If we implement

initctl - init daemon control tool
I'll think again

Last edited by twobob; 08-10-2012 at 05:49 PM. Reason: added start namespace overload
twobob is offline   Reply With Quote
Old 08-10-2012, 03:21 PM   #221
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: 4,804
Karma: 4461973
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW & PW2
@twobob: If the 'global' profile file isn't sourced by your shell, try to look at said shell's dot rc file/set stuff up in there (~/.bashrc for bash, ~/.zhrc for zsh, you get the drift ;D).
NiLuJe is offline   Reply With Quote
Old 08-10-2012, 05:09 PM   #222
knc1
Embedded Cheerleader
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: 6,382
Karma: 5840126
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by NiLuJe View Post
@twobob: If the 'global' profile file isn't sourced by your shell, try to look at said shell's dot rc file/set stuff up in there (~/.bashrc for bash, ~/.zhrc for zsh, you get the drift ;D).
It's Busybox ash **or** a very, very old version of bash (ash is the default).
I think that Busybox reads .bashrc not .ashrc
knc1 is offline   Reply With Quote
Old 08-10-2012, 05:55 PM   #223
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,552
Karma: 6021142
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
neither .profile, .bashrc, .ashrc do squat that I can see. maybe I'm not getting it but echo 'various shell name here' should probably do something I posited.

Perhaps there be dragons here.

. start it is for now
twobob is offline   Reply With Quote
Old 08-10-2012, 06:08 PM   #224
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,552
Karma: 6021142
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
Autoconf, Automake, Libtool for the Emu anyone?

Seems like another 'given' in the long term

AH. oh. yeah Perl Fail. hmm.

Err. Hmm. Yeah. *trails off*
twobob is offline   Reply With Quote
Old 08-10-2012, 06:25 PM   #225
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,552
Karma: 6021142
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
To my mind these are the additional tools we should be aiming to provide at a minimum inside at least one flavour of the Kek Emu

Subversion, Bazaar, Git, Mercurial, SSH, SCP, xzcat, Perl, Autoconf, Automake, Libtool. and all the various chuff that brings.
I.e. be Buildroot / Autotools ready

This could be a development addon drive perhaps or a drive that can be switched to for dev puposes.

So far my efforts to provide this have met with various (documented here) disasters.

Is this a crazy idea clearly spawned in the warped cradle that is a madman's mind?
Answers on a postcard. or here. that would also work.

Thoughts on my moving these hiccups forward via external tools? anyone?
Or something I missed perhaps.

I'm leaning toward elastoplasting with externally genned stuff right now.
Buildroot I'm looking at you. *goes off to fiddle with things that may or may not help*

Last edited by twobob; 08-10-2012 at 06:46 PM. Reason: grammar
twobob is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessories DIY KT Case echo013 Amazon Kindle 2 01-27-2012 06:53 PM
DIY Stylus scottjl Apple Devices 3 05-10-2010 01:52 AM
DIY Scanner Eratosthenes News 14 04-16-2010 04:21 PM
DIY Idea sřrensundsans Sony Reader 6 01-26-2010 01:25 AM
DIY stylus -Thomas- iRex 5 02-12-2009 12:05 PM


All times are GMT -4. The time now is 02:28 PM.


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