06-14-2014, 06:25 AM | #46 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
This description **was not** the major problem.
But it does describe considerations to be made with "out of tree" system libraries. Spoiler:
And the winner is (should be): /mnt/us/esys/lib:mnt/us/esys/usr/lib In: Real world use VS. Documented use "Real World" wins this one and we just get to conform. Last edited by knc1; 06-15-2014 at 12:51 PM. |
06-14-2014, 06:14 PM | #47 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Release: v-0.3
(Kterm)
Install
Usage (kterm) While in kterm - NOTE: This is a per-session setup! This setup will not persist between kterm sessions.
to 'exit' you have to enter: 'exit' twice. Note: The "exec esys/bin/busybox ash" command might work under Kterm also, it is just that I did not test it. (ssh) Install
Usage (ssh) While in ssh session - NOTE: This is a per-session setup!
So you only need one "exit" command to exit. Last edited by knc1; 06-15-2014 at 11:51 PM. |
06-15-2014, 09:56 AM | #48 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Hints on running the BR image file:
http://buildroot.org/downloads/manua...yond_buildroot https://wiki.debian.org/QemuUserEmulation http://www.gentoo.org/proj/en/base/e...?part=1&chap=5 (for the qemu wrapper example). Last edited by knc1; 06-16-2014 at 11:29 AM. |
06-15-2014, 10:19 PM | #49 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
ARMhf V-0.3
Version 0.3 released.
Top post and its attachments updated. A text file of "notes" can be found in the 'helpers' archive along with the post-image-building script. |
06-15-2014, 11:21 PM | #50 | |||
( ͡° ͜ʖ ͡°){ʇ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
|
Now works perfectly thank you
as a word to the wise: Quote:
|
|||
06-15-2014, 11:33 PM | #51 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Also check your shell's environment for any alias settings of the 227 new busybox utility names.
Those might effect the bb-command-wrappers in strange ways. (The command wrappers for bb-1.22 do not work with bb-1.17) Just enter: alias Which will list all those set. Thanks for testing this out! |
06-15-2014, 11:46 PM | #52 |
( ͡° ͜ʖ ͡°){ʇ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 no alias
the busybox and its subvariants names are subsumed thanks to the way the busybox on the kindle is built. The soft text magic linked variants we came up with last time are a much nicer alternative and the option to eat the names can be switched off in BR at build time, which wont help until you are inside a HF shell but hey ho. |
06-15-2014, 11:57 PM | #53 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Which is why my helper is writing the v-1.22 wrappers itself. (Note: Be careful of going close to those wrappers with an editor that inserts a newline at the end of the file. There **must not** be a newline at the end of the file.) But sure - I can try something else - paste in a code block an example of what you used before. Last edited by knc1; 06-16-2014 at 12:12 AM. |
|
06-16-2014, 12:23 AM | #54 |
( ͡° ͜ʖ ͡°){ʇ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
|
|
06-16-2014, 12:26 AM | #55 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
After doing the set-up in an ssh session, run: top stretch window so you can see the entire command line that "top" wrapper expanded to. I do intend to post the .config files for Buildroot when this gets a bit closer to being done. There are about 1,000 applications in this version of Buildroot that I did not build. Plus, if I reach my goal, everything in Debian/Jessie. Historical note - it was about 2 years ago that I first started to install newer system library structure to the Kindles - have learned a bit from MR since then. Last edited by knc1; 06-16-2014 at 03:08 AM. |
|
06-16-2014, 03:55 AM | #56 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Mixed systems library example
The following example will (behind the scenes) dynamically load libz.so (from the Amazon soft-float libraries).
Since the C-ABI of libz does not pass floating point values - this will work. I.E: This is a general rule, the "armhf-vfpv3d16" descriptor of our build only applies to parameter passing. Note: This version of luajit only generates ARMv5-VFP code. (Which also runs on our ARMv7-VFP3 machine). Ref: http://luajit.org/ext_ffi_tutorial.html The source of this example, includes a step-by-step description.
Notes: With the recommended path setting above, any command not defined in our esys hard-float tree will be run from Amazon's soft-float tree. I.E: All of the Amazon functions we hack with continue to work un-changed. With the FFI C interface of LuaJit, you can define and directly access the Amazon system libraries entry points. **ANY** of them, as long as they don't pass floating point arguments. Last edited by knc1; 06-16-2014 at 04:06 AM. |
06-17-2014, 05:13 AM | #57 |
Wizard
Posts: 1,379
Karma: 2155307
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
|
LuaJIT's FFI is jolly good fun, indeed :-) (we rely heavily on it in Koreader now - our distributions contain a plain LuaJIT binary, the Kobo version has a armhf one, the Kindle version is arm soft-float). Hm, now I'm asking myself it LuaJIT's FFI couldn't be massaged to support *both* calling conventions...
|
06-17-2014, 10:39 AM | #58 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Ref: http://luajit.org/changes.html see: Item #2 Ref: http://luajit.org/ext_ffi_api.html see: status = ffi.abi(param) description. Have not (yet) tested it myself. Last edited by knc1; 06-18-2014 at 11:21 AM. |
|
06-17-2014, 10:54 AM | #59 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Some thoughts for the future.
Ubuntu Core, 14.04
To quote Ubuntu: Quote:
No comment made about installing it somewhere other than / (root) - and on FAT32 at that. I guess no one there ever considered that one. Link: http://cdimage.ubuntu.com/ubuntu-cor...e-armhf.tar.gz Made new appointment with my head shrinker and attached the manifest here. |
|
06-17-2014, 02:38 PM | #60 |
( ͡° ͜ʖ ͡°){ʇ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
|
actually a lot less than I thought it was gonna have in there. 184 aint none but meh.
Encouraging |
Tags |
armhf |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Nicknaming Scheme, Using Kindle with Calibre, and Hacking the Kindle | Klif | Amazon Kindle | 11 | 09-12-2012 06:11 PM |
$0.01 in Kindle Store: Interactive Sudoku for Kindle 2 and Kindle DX - Volume 1 | Xia | Deals and Resources (No Self-Promotion or Affiliate Links) | 2 | 11-07-2009 11:06 AM |