05-11-2016, 08:50 AM | #91 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
05-11-2016, 09:25 AM | #92 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
A sysmlink from /bin/bash to /bin/sh will work, if /bin/sh is linked to busybox (two levels of symlinks). or chroot '/bin/busybox sh' username (default 'root') or you don't have /proc mounted inside of the chroot. this build of busybox acts as if it was built to look for: /proc/self in its applet name decode. But I haven't straced it to be sure. = = = = Stay away from Windows for awhile - it is poisoning your mind. |
|
Advert | |
|
05-11-2016, 09:59 AM | #93 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
A little arm-qemu-static chroot test:
PHP Code:
I have been looking for arm-debian-woody (no success so far) to try using for building K1 apps. I can only do a build in folders (or loop mounts) that I can chroot into, and no luck with that uclibc rootfs so far. EDIT: I can chroot into this one now. I forgot to copy arm-qemu-static to /usr/bin. It works after doing that. I can also chroot into debian lenny, but all those other uclibc-based images I cannot chroot into (even though they contain /usr/bin/arm-qemu-static). However, this chroot has no network access, and it has no ipkg or opkg (but it does have dpkg), and the gumstix apps (like gcc) are in .ipk packages, so need manual unpacking and installing. Last edited by geekmaster; 05-12-2016 at 12:45 AM. |
05-11-2016, 11:13 AM | #94 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Did you mount /proc, /sys, and /dev into your chroot?
|
05-11-2016, 11:28 AM | #95 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
As you can see above, I did not mount them. They did not mount them at the armhf chroot link you provided earlier in this thread either (though they did mention a proc automount, giving no details or links or examples) I am new at this chroot stuff on a host PC, so I was not aware of needing such a thing. What do I mount there? My host PC equivalents? Bind mounts? Perhaps I thought the mntdebian script in twobob's thread was for mounting inside the kindle. Being a noob at this, it is difficult to guess what may be obvious to you. I will google some more, but a lot of what google finds does not work without adjustments (such as that whole jffs2 mount procedure). Like I said, maybe obvious to you, but just guesswork for me at the moment unless I find good working examples. And google does not necessarily return the same results for you and I (i.e. that filter bubble" problem).
Also, do you have any static compiled binaries you built that I can try on my K1? If so, please post one. Thanks. Last edited by geekmaster; 05-11-2016 at 11:31 AM. |
Advert | |
|
05-11-2016, 11:41 AM | #96 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Now I mounted my linux mint /proc, /sys, and /dev into my chroot, but no difference in behaviour:
PHP Code:
Last edited by geekmaster; 05-11-2016 at 11:44 AM. |
05-11-2016, 12:10 PM | #97 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
That Busybox version is too old to recognize 'bash'
K1 # chroot uClibc '/bin/busybox sh' Note the quotes. |
05-11-2016, 12:27 PM | #98 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
PHP Code:
Another failed attempt. Next? Also, do you have a potentially compatible custom K1 binary executable I can try to run on my K1? If so, please post it. Thanks. Last edited by geekmaster; 05-11-2016 at 12:36 PM. |
|
05-11-2016, 12:35 PM | #99 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I know that I can chroot the lenny loop mount just fine, so I did this:
PHP Code:
Last edited by geekmaster; 05-11-2016 at 01:03 PM. |
05-11-2016, 12:48 PM | #100 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
PHP Code:
Last edited by geekmaster; 05-11-2016 at 01:01 PM. |
05-11-2016, 01:10 PM | #101 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
So basically, at this current state of affairs in K1 development, binaries that run on the K1 will not run in an arm-qemu-static chroot, and binaries that do run in an arm-qemu chroot (even statically compiled binaries) do not run on the K1. It is not firmware dependent -- I have tried on both old and new firmware (still installed on my two K1s). I have also tried running from both internal flash and from SD card.
Copying executables from elsewhere on the K1 to userstore seems to work fine, and scripts work fine too, but there is a limit to what can be done in a script (though I have run some of my eink algorithmic art scripts in my K1s, and that works great with suitable eink format adjustments). But I want to access ioctl, and I want to compile kernel modules, and script are not adequate for those goals. I have other (non-kindle) projects begging for attention, and my lack of progress here may require me to shelf my kindle interests for awhile (unless I make rapid progress soon). After the K1, I want to do things for all my other kindles (K2 through PW3) as well. But lacking recent progress makes other projects more appealing than kindle stuff (such as my new Oculus Rift Consumer Version sitting in the corner for the past week -- it was free because I was a kickstarter backer; I certainly cannot afford to buy one)... |
05-11-2016, 01:48 PM | #102 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I just tried unpacking at chrooting a gumstix uclinix rootfs, which already included a /bin/bash. Same problem, where chroot claims '/bin/bash not found'. Though perhaps that means it MIGHT run on my K1, being incompatible with chroot?
Nope! It seems chroot does not like an uclibc stuff, and the K1 does not like any non-lab126 stuff. So far, at least... Now to find something ELSE to try... |
05-11-2016, 02:25 PM | #103 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I found a debian arm woody rootfs in a debian archive, but on the K1 it also says "/mnt/us/woody/bin/busybox: not found".
Time to put this aside for awhile, until somebody can give me some additional guidance -- I am sure not finding a solution to building working binaries for my K1, and I am running out of things to try (google isn't helping)... |
05-11-2016, 04:02 PM | #104 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
And another new message (where anomalies can be a good thing). I compiled hello-static using CodeSourcery 2005q3 arm-non-linux-gnueabi.exe (on Windows), and it says "Illegal instruction" when run. That is something I have not seen before on the K1. Not sure if a step in the right direction though.
I tried adding "-march=arm5te" and that still said "Illegal instruction", as did "-march=arm4". Last edited by geekmaster; 05-11-2016 at 04:17 PM. |
05-11-2016, 04:16 PM | #105 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
-mtune=xscale -mno-unaligned-access
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
geekmaster vacation | geekmaster | Kindle Developer's Corner | 2 | 03-19-2012 09:18 PM |