08-10-2012, 09:53 AM | #211 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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 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 https://www.mobileread.com/forums/att...7&d=1342813041 Code:
(armv6l:1) /home # Connecting to www.mobileread.com (67.205.70.12:80) [1]+ Done wget -O binutils.tar.gz https://www.mobileread.com/forums/att...chmentid=89477 Code:
(armv6l:1) /home # ls 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 Spoiler:
Code:
(armv6l:1) /home # wget -O mpc-1.0-uclibc.tar.gz https://www.mobileread.com/forums/att...1&d=1342972453 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 https://www.mobileread.com/forums/att...chmentid=89551 Code:
(armv6l:1) /home # tar -xzvf mpc-1.0-uclibc.tar.gz Spoiler:
Optionally rm mpc-1.0-uclibc.tar.gz Code:
(armv6l:1) /home # wget -O mpfr-3.1.1-uclibc.tar.gz https://www.mobileread.com/forums/att...7&d=1342964860 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 https://www.mobileread.com/forums/att...chmentid=89547 Code:
(armv6l:1) /home # tar -xzvf mpfr-3.1.1-uclibc.tar.gz Spoiler:
optionally rm mpfr-3.1.1-uclibc.tar.gz Code:
(armv6l:1) /home # wget -O gmp-5.0.5-uclibc.tar.gz https://www.mobileread.com/forums/att...9&d=1343076378 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 https://www.mobileread.com/forums/att...chmentid=89619 Code:
(armv6l:1) /home # tar -xzvf gmp-5.0.5-uclibc.tar.gz Spoiler:
Optionally rm gmp-5.0.5-uclibc.tar.gz Code:
(armv6l:1) /home # wget -O m4-1.4.16-armv6-uclibc.tar.gz https://www.mobileread.com/forums/att...8&d=1342724437 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 https://www.mobileread.com/forums/att...chmentid=89418 Code:
(armv6l:1) /home # tar -xzvf m4-1.4.16-armv6-uclibc.tar.gz Spoiler:
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 https://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. |
08-10-2012, 10:52 AM | #212 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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. |
Advert | |
|
08-10-2012, 11:36 AM | #213 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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 |
|
08-10-2012, 11:42 AM | #214 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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. |
08-10-2012, 12:01 PM | #215 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
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. |
Advert | |
|
08-10-2012, 12:26 PM | #216 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
Quote:
https://www.mobileread.com/forums/sho...&postcount=108 and the https://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 |
|
08-10-2012, 01:12 PM | #217 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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 |
08-10-2012, 01:14 PM | #218 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
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" 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. |
08-10-2012, 01:41 PM | #219 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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. 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 Awesome tip! Last edited by twobob; 08-10-2012 at 02:03 PM. Reason: Awesomeness |
08-10-2012, 02:36 PM | #220 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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" 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 |
08-10-2012, 03:21 PM | #221 |
BLAM!
Posts: 13,477
Karma: 26012492
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@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).
|
08-10-2012, 05:09 PM | #222 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
I think that Busybox reads .bashrc not .ashrc |
|
08-10-2012, 05:55 PM | #223 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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 |
08-10-2012, 06:08 PM | #224 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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* |
08-10-2012, 06:25 PM | #225 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
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
|
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 |
|
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 |