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-13-2012, 04:32 AM   #16
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Hmm...
But running the loader directly as described in its own message might well be the solution to a question posed by GM in another thread about getting add-in programs in /mnt/us to reference the proper combination of new libraries and existing Amazon libraries.

I.E: Just script the program load function as above.
knc1 is offline   Reply With Quote
Old 08-13-2012, 09:05 AM   #17
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
Thanks mate. as ever you bring me the good info. I thank you very kindly.

[root@kindle root]# /lib/ld-linux.so.3 --list /mnt/us/local/lib/libstdc\+\+.so.6
libm.so.6 => /lib/libm.so.6 (0x400da000)
libc.so.6 => /lib/libc.so.6 (0x4014f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x40265000)
/lib/ld-linux.so.3 (0x2a000000)
[root@kindle root]#
twobob is offline   Reply With Quote
Old 08-13-2012, 09:10 AM   #18
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
Quote:
Originally Posted by knc1 View Post
Hmm...
But running the loader directly as described in its own message might well be the solution to a question posed by GM in another thread about getting add-in programs in /mnt/us to reference the proper combination of new libraries and existing Amazon libraries.

I.E: Just script the program load function as above.
And that is exactly the point, by lumping all the thoughts on a common problem in one place ´things´ are more likely to occur to us on related issues.

I welcome the day this info is so commonplace it hangs from the trees like fruit at the moment it seems to be a few degrees of separation away

for my part I am going to try to learn to either pass the correct CFLAGS in before compilation or to weld them in afterwards.

--library-path PATH use given PATH instead of content of the environment
variable LD_LIBRARY_PATH

to some degree looks to me my friend here...


goes off to read things. again. ; )
http://linux.die.net/man/8/ld-linux (ld-linux(8) - Linux man page)

Last edited by twobob; 08-13-2012 at 09:36 AM. Reason: added what I am reading. this is an e-reader site after all
twobob is offline   Reply With Quote
Old 08-13-2012, 09:18 AM   #19
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Check from a command line in a working K3, see if this directory exists:
Code:
core2quad ~ $ ls -ld /proc/sys/fs/binfmt_misc
drwxr-xr-x 2 root root 0 2012-08-11 20:58 /proc/sys/fs/binfmt_misc
If not, then try:
insmod binfmt_misc
and then check if the directory exists.

If so, we should be able to just register the uClibc loader with it for running uClibc linked programs under a glibc system.
**should**
May take a bit of experimentation to make it work.
knc1 is offline   Reply With Quote
Old 08-13-2012, 09:31 AM   #20
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
libm.so lives in /usr/bin ok a K3?

[root@kindle fs]# /lib/ld-linux.so.3 --list /usr/bin/libm.so
/lib/ld-linux.so.3 (0x2a000000)
libc.so.6 => /lib/libc.so.6 (0x4007a000)

hmmm m´okay

Last edited by twobob; 08-13-2012 at 12:51 PM.
twobob is offline   Reply With Quote
Old 08-13-2012, 09:32 AM   #21
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
Quote:
Originally Posted by knc1 View Post
Check from a command line in a working K3, see if this directory exists:
Code:
core2quad ~ $ ls -ld /proc/sys/fs/binfmt_misc
drwxr-xr-x 2 root root 0 2012-08-11 20:58 /proc/sys/fs/binfmt_misc
If not, then try:
insmod binfmt_misc
and then check if the directory exists.

If so, we should be able to just register the uClibc loader with it for running uClibc linked programs under a glibc system.
**should**
May take a bit of experimentation to make it work.
[root@kindle root]# cd /proc/sys/fs
[root@kindle fs]# ls
Code:
aio-max-nr         file-nr            leases-enable      overflowuid
aio-nr             inode-nr           mqueue             suid_dumpable
dentry-state       inode-state        nfs
dir-notify-enable  inotify            nr_open
file-max           lease-break-time   overflowgid
and

[root@kindle fs]# insmod binfmt_misc
insmod: can't read 'binfmt_misc': No such file or directory

Is a no.

Last edited by twobob; 08-13-2012 at 09:58 AM. Reason: For Matt
twobob is offline   Reply With Quote
Old 08-13-2012, 09:39 AM   #22
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Hmm... I guess we would have to build that module for the kernel and add it into the module directory ourselves.
knc1 is offline   Reply With Quote
Old 08-13-2012, 09:46 AM   #23
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
Spoiler:
okay. I have kmod built created for the 3. wrong kernal

have to figure out how to get it on there @__@ (todays bugbear) but that looks helpful for the job like it might need more reading about....


Some LD_LIBRARY_PATH stuff in practice:

[root@kindle lib]# pwd
/mnt/us/lib

[root@kindle lib]# ls
ld-2.15.so libm-2.15.so libpthread.so.0
ld-linux.so.3 libm.so.6 libresolv-2.15.so
libc-2.15.so libnsl-2.15.so libresolv.so.2
libc.so.6 libnsl.so.1 librt-2.15.so
libcrypt-2.15.so libnss_dns-2.15.so librt.so.1
libcrypt.so.1 libnss_dns.so.2 libutil-2.15.so
libdl-2.15.so libnss_files-2.15.so libutil.so.1
libdl.so.2 libnss_files.so.2
libgcc_s.so.1 libpthread-2.15.so

(some I made earlier)

[root@kindle lib]# /lib/ld-linux.so.3 --list ./libm.so.6
/lib/ld-linux.so.3 (0x2a000000)
libc.so.6 => /lib/libc.so.6 (0x400a7000)

[root@kindle lib]# echo $LD_LIBRARY_PATH
(blank response by default)

[root@kindle lib]# export LD_LIBRARY_PATH=/mnt/us/usr/lib:/mnt/us/lib:/lib:/usr/lib

[root@kindle lib]# echo $LD_LIBRARY_PATH
/mnt/us/lib:/mnt/us/usr/lib:/lib:/usr/lib:/usr/bin

[root@kindle lib]# /lib/ld-linux.so.3 --list ./libm.so.6
/lib/ld-linux.so.3 (0x2a000000)
libc.so.6 => /mnt/us/lib/libc.so.6 (0x400a7000)

Tidy up again

[root@kindle lib]# export LD_LIBRARY_PATH=
[root@kindle lib]# /lib/ld-linux.so.3 --list ./libm.so.6
/lib/ld-linux.so.3 (0x2a000000)
libc.so.6 => /lib/libc.so.6 (0x400ab000)

Looks simple enough


This is just some notes for me to read about kABI-tracking kmod. or you if you want to.
Spoiler:

Quote:
Linux drivers must be built against the kernel for which they are to be used. As most drivers are part of the kernel, this normally isn't a problem. However, when using 3rd party drivers, the driver must be recompiled against each new kernel. This causes inconvenience for users who must rebuild the driver against each new kernel update. A kABI-tracking kmod is a kernel module (driver) that is compatible with a given kernel Application Binary Interface (kABI). A consistent kABI is a key feature of an Enterprise Linux distribution and, so long as upstream doesn't break the kABI, a kABI-tracking kmod driver will work across all kernels for a given Enterprise Linux distribution (eg, RHEL-5, CentOS-5, Scientific Linux 5) without the need to recompile the driver for each kernel update.

2. What is the advantage of a kABI-tracking kmod over a DKMS enabled driver

Dynamic Kernel Module Support (DKMS) is another packaging method for delivering automatic 3rd party kernel driver updates. The main disadvantage of DKMS for Enterprise Linux is that the driver is automatically recompiled (by the DKMS utility) for each new kernel meaning that the system must contain the appropriate development packages and compiler, something that is not always desirable on a production Enterprise Linux system.
http://elrepo.org/tiki/FAQ


And

[root@kindle /etc]# ls mod*
modprobe.conf modules modules.conf modules.luigi

[root@kindle /etc]# ls *.so.*
ld.so.cache ld.so.conf

For my reference and future understanding

http://blog.gustavobarbieri.com.br/2...lp-testing-it/

http://lwn.net/Articles/475821/

http://git.profusion.mobi/cgit.cgi/kmod.git/

Last edited by twobob; 08-13-2012 at 12:08 PM. Reason: i was wrong. I try to be wrong about once a day minimum
twobob is offline   Reply With Quote
Old 08-13-2012, 12:19 PM   #24
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
doing something. why not.

Doing something to see what would happen.

Why not. I don't expect this to 'Work', I'm digging

cp * my /home/me/BLDS/Interim-STATIC/usr files via sftp to kindle sftp://root@k/mnt/us/

These files are extracted from a completed buildroot image /usr directory

Get obvious ln -s errors

Spoiler:
crond: Permission denied
rdate: Permission denied
dnsd: Permission denied
loadfont: Permission denied
inetd: Permission denied
setlogcons: Permission denied
chroot: Permission denied
libnsl.so.1: Permission denied
libcrypt.so.1: Permission denied
libresolv.so.2: Permission denied
ld-linux.so.3: Permission denied
librt.so.1: Permission denied
libc.so.6: Permission denied
libpthread.so.0: Permission denied
libm.so.6: Permission denied
libnss_dns.so.2: Permission denied
libutil.so.1: Permission denied
libdl.so.2: Permission denied
libnss_files.so.2: Permission denied
libnsl.so.1: Permission denied
libcrypt.so.1: Permission denied
libresolv.so.2: Permission denied
ld-linux.so.3: Permission denied
librt.so.1: Permission denied
libc.so.6: Permission denied
libpthread.so.0: Permission denied
libm.so.6: Permission denied
libnss_dns.so.2: Permission denied
libutil.so.1: Permission denied
libdl.so.2: Permission denied
libnss_files.so.2: Permission denied
libnsl.so.1: Permission denied
libcrypt.so.1: Permission denied
libresolv.so.2: Permission denied
ld-linux.so.3: Permission denied
librt.so.1: Permission denied
libc.so.6: Permission denied
libpthread.so.0: Permission denied
libm.so.6: Permission denied
libnss_dns.so.2: Permission denied
libutil.so.1: Permission denied
libdl.so.2: Permission denied
libnss_files.so.2: Permission denied
diff: Permission denied
dc: Permission denied
head: Permission denied
traceroute: Permission denied
crontab: Permission denied
unzip: Permission denied
cksum: Permission denied
reset: Permission denied
lzma: Permission denied
realpath: Permission denied
basename: Permission denied
arping: Permission denied
fuser: Permission denied
strings: Permission denied
uniq: Permission denied
sha512sum: Permission denied
chrt: Permission denied
uptime: Permission denied
dirname: Permission denied
nohup: Permission denied
find: Permission denied
du: Permission denied
unix2dos: Permission denied
[: Permission denied
linux64: Permission denied
sha256sum: Permission denied
fdformat: Permission denied
xargs: Permission denied
patch: Permission denied
readlink: Permission denied
less: Permission denied
free: Permission denied
telnet: Permission denied
who: Permission denied
sort: Permission denied
cut: Permission denied
killall5: Permission denied
yes: Permission denied
printf: Permission denied
test: Permission denied
resize: Permission denied
tail: Permission denied
perl: Permission denied
killall: Permission denied
dos2unix: Permission denied
cmp: Permission denied
awk: Permission denied
id: Permission denied
lsusb: Permission denied
expr: Permission denied
fold: Permission denied
xzcat: Permission denied
env: Permission denied
unxz: Permission denied
tftp: Permission denied
uudecode: Permission denied
unlzma: Permission denied
tty: Permission denied
bzcat: Permission denied
tee: Permission denied
chvt: Permission denied
clear: Permission denied
linux32: Permission denied
[[: Permission denied
whoami: Permission denied
top: Permission denied
hostid: Permission denied
microcom: Permission denied
ar: Permission denied
md5sum: Permission denied
lspci: Permission denied
install: Permission denied
ether-wake: Permission denied
eject: Permission denied
xz: Permission denied
passwd: Permission denied
mkfifo: Permission denied
setkeycodes: Permission denied
mesg: Permission denied
lzcat: Permission denied
lsof: Permission denied
which: Permission denied
wc: Permission denied
tr: Permission denied
vlock: Permission denied
uuencode: Permission denied
od: Permission denied
logname: Permission denied
seq: Permission denied
wget: Permission denied
deallocvt: Permission denied
bunzip2: Permission denied
openvt: Permission denied
sha1sum: Permission denied
last: Permission denied
time: Permission denied
nslookup: Permission denied


see what survived

[root@kindle usr]# cd /mnt/us/usr/bin
[root@kindle bin]# ls
Spoiler:
Code:
aclocal               gdbserver             namei
aclocal-1.11          gdbus                 opkg-cl
aserver               gdbus-codegen         opkg-key
autoconf              getopt                pg
autoheader            gio-querymodules      renice
autom4te              glib-compile-schemas  rev
automake              gsettings             script
automake-1.11         hexdump               scriptreplay
autoreconf            ifnames               setarch
autoscan              ipcmk                 setsid
autoupdate            ipcrm                 setterm
cal                   ipcs                  sudo
chkdupexe             isosize               sudoedit
col                   libtool               sudoreplay
colcrt                libtoolize            tailf
colrm                 logger                ul
column                look                  update-alternatives
cytune                lscpu                 uuidgen
dialog                m4                    whereis
file                  make                  write
flock                 mcookie
gdb                   microperl



[root@kindle bin]# strace -o output.perl ./microperl
Segmentation fault

[root@kindle bin]# vi output.perl

Spoiler:
Code:
execve("./microperl", ["./microperl"], [/* 23 vars */]) = 0
brk(0)                                  = 0x180000
uname({sys="Linux", node="kindle", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/mnt/us/lib/tls/v6l/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/v6l/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/v6l/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/v6l/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls", 0xbe8a81b8)   = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l", 0xbe8a81b8)   = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/fast-mult/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/fast-mult/half", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/fast-mult/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/fast-mult", 0xbe8a81b8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/half/libm.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/half", 0xbe8a81b8)  = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\340<\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=727702, ...}) = 0
mmap2(NULL, 676004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000
mprotect(0x400c1000, 32768, PROT_NONE)  = 0
mmap2(0x400c9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x9c) = 0x400c9000
close(3)                                = 0
open("/mnt/us/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\214'\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=184575, ...}) = 0
mmap2(NULL, 78168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400cb000
mprotect(0x400d6000, 28672, PROT_NONE)  = 0
mmap2(0x400dd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0x400dd000
close(3)                                = 0
open("/mnt/us/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\210|\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1777390, ...}) = 0
mmap2(NULL, 1377656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x400df000
mprotect(0x40223000, 28672, PROT_NONE)  = 0
mmap2(0x4022a000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143) = 0x4022a000
mmap2(0x4022d000, 9592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4022d000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001d000
set_tls(0x4001c920, 0x4001c920, 0x40024058, 0x4001cff8, 0x40) = 0
mprotect(0x4022a000, 8192, PROT_READ)   = 0
mprotect(0x400dd000, 4096, PROT_READ)   = 0
mprotect(0x400c9000, 4096, PROT_READ)   = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++


Interesting stuff!

[root@kindle bin]# strace -o output.opkg ./opkg-cl --help
Segmentation fault

Spoiler:
Code:
execve("./opkg-cl", ["./opkg-cl", "--help"], [/* 23 vars */]) = 0
brk(0)                                  = 0x41000
uname({sys="Linux", node="kindle", ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001b000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/v6l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/v6l", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/tls", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/v6l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/v6l", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/usr/lib", {st_mode=S_IFDIR|0755, st_size=8192, ...}) = 0
open("/mnt/us/lib/tls/v6l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/v6l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/v6l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/v6l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/v6l", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/tls/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/tls", 0xbeba41a8)   = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/v6l/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/v6l", 0xbeba41a8)   = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/fast-mult/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/fast-mult/half", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/fast-mult/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/fast-mult", 0xbeba41a8) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/half/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/mnt/us/lib/half", 0xbeba41a8)  = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/libgcc_s.so.1", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\214'\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=184575, ...}) = 0
mmap2(NULL, 78168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000
mprotect(0x40030000, 28672, PROT_NONE)  = 0
mmap2(0x40037000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xa) = 0x40037000
close(3)                                = 0
open("/mnt/us/usr/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mnt/us/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\210|\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1777390, ...}) = 0
mmap2(NULL, 1377656, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40039000
mprotect(0x4017d000, 28672, PROT_NONE)  = 0
mmap2(0x40184000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143) = 0x40184000
mmap2(0x40187000, 9592, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40187000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4001c000
set_tls(0x4001c5e0, 0x4001c5e0, 0x40024058, 0x4001ccb8, 0x40) = 0
mprotect(0x40184000, 8192, PROT_READ)   = 0
mprotect(0x40037000, 4096, PROT_READ)   = 0
mprotect(0x3f000, 4096, PROT_READ)      = 0
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0} ---
+++ killed by SIGSEGV +++

Last edited by twobob; 08-13-2012 at 12:26 PM. Reason: added what and from where
twobob is offline   Reply With Quote
Old 08-13-2012, 12:28 PM   #25
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
EDIT: THIS CAN BE FIXED - ASSUMING YOU BUiLT WITH CS TC 2006q3 - BY SIMPLY DELETING THE LOCAL VERSION OF C library - YOUR LOCAL VERSION = NOT THE KINDLES!!! Thanks

back to the threads:
-------------------------------------------------------------------------------------------

All look like fails on a threading library. see I can reference the right library with/without threading perhaps.

http://www.akkadia.org/drepper/assumekernel.html

Continues reading.

Building the x-compiler pass 'n'ty-hundred and 'n'ty here we go! : )~
This time against 2.6.26 headers.

[EXTRA] Configuring final compiler
[EXTRA] Building final compiler
[EXTRA] Installing final compiler
[INFO ] Installing final compiler: done in 1327.73s (at 36:47) ouchy 36 mins : ) lol

Last edited by twobob; 08-22-2012 at 09:03 AM. Reason: added fix that is now known
twobob is offline   Reply With Quote
Old 08-13-2012, 03:56 PM   #26
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Ulrich Drepper, 2004-5-12

From back in the days of libc4 (which did not last long), shifting over to libc5 with libc6 on the immediate horizon and three different threading libraries.
Hey, you think you have library problems now?
Those where the days when getting Linux to just load a program was a lot of fun.

It upset one person (Eric Anderson) enough that he started writing his own C library (uClibc).
knc1 is offline   Reply With Quote
Old 08-13-2012, 10:03 PM   #27
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
Quote:
Originally Posted by eureka View Post
@knc1, as you've collected some cross-compiling toolchains in scope of KeK project, you might be interested in The Embedded LLVM Compiler Collection: ellcc.

It's a cross-compilation environment based on Clang (which is modern C/C++ compiler using LLVM infrastructure). ELLCC has support of compiling for Linux and includes ARM as cross-compilation target (amongst many other targets). Building and installation from sources is as easy as svn co ... && ./configure && make && make install and there are also pre-built binaries for Linux x86-64.

It doesn't include (e)glibc/libstdc++, it incorporates musl and libc++. But it could be seen as advantage for static builds

(Nice small example of use of ELLCC.)

Disclaimer: I didn't use it, however it looks like actively and seriously developed project.

That sounds like it needed noting here. Kudos all.
twobob is offline   Reply With Quote
Old 08-13-2012, 10:07 PM   #28
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
Building the 3.3 of the 2.6.26 via Buildroot? Err really?

Spoiler:
still 4 or 5 or 6? hours into getting buildroot to swallow a 2.6.26 build.

Didn't like fully static. I'll revisit that issue though. And document the various fails.

Doing a shared build now just to get something to finish for reference tests.

: ) The joy of processes that take 40 50 mins each : )

here we go...

Kernal building. (hopefully providing better headers) next time Ill use the exact amazon one. and the luigi defconfig. this time I fell back to the 2.6.26 from the main tarballs and a generic config for another arm device.

Looks to be building this time. Happy days. Perseverance is key.

EDIT YEP BUILT : D

Tomorrow... The proper config and proper sources.

I count that as a RESULT


AND THE NEXT DAY:

Open buildroot:

open buildroot build folder you have setup. see buildroot docs, dont HAVE to make one but it's tidy up to you.

cd that folder

make xconfig (possibly with -C your buildroot folder - read buildroot docs)


Configure: Arm blah blah

More here later

Custom Kernal Tarball: Enter URL linux-2.6.26-lab126.tar.bz2 of extracted from Kindle_src_3.3_611680021.tar.gz (host it yourself. find it online or just feed it via a local http)

Enter custom patch (thank you Niluje - see below)

Include Initramfs in choices of files (kernal build dies otherwise) and tarred (for easy access)

Choose from options of software in list... (I chose hardly any as I want it to finish quick to let me manually interrupt the buildroot make process when the kernal comes around to building)

Save it and close

run make

Either read the buildroot docs and do the specific steps to incrementally make up the the kernal - OR - just CTRL +C once you hit the kernal build

the kindle kernel source code Kindle_src_3.3_611680021.tar.gz will have appeared unzipped in /build/linux-custom - go there.

Edit the Makefile in /build/linux-custom

ARCH ?= (SUBARCH) BECOMES ARCH ?= arm

CROSS_COMPILE ?= BECOMES CROSS_COMPILE = arm-none-linux-gnueabi- (check your path has the bins in!)

Save it and close

run make imx35_luigi_defconfig to generate a .config file.

Edit .config file
search "CONFIG_INITRAMFS_SOURCE" with the reference to a skeleton
change it to CONFIG_INITRAMFS_SOURCE="" (as in no value in quotes)

add modules you might want to build etc.

I added binfmt_misc as a module for example

Save it and close

One more thing:

$ cat> include/linux/kindle_version.h << EOF
# ifndef __KINDLE_VERSION_H__
# define __KINDLE_VERSION_H__
# define VERSION_TAG "000000"
# endif
EOF

as this is not generated by the makes

The mighty NiLuje has kindly provided https://svn.ak-team.com/svn/Configs/...buildfix.patch which comprises this kindle_version.s file creation and some make cleansing for the Amazon makes. It does not make the config so that step is still required,

run make

Should complete.

You should be able to then go back and install MORE options in the make xconfig stage and run make again in your root buildroot folder to create the additional packages without having to repeat the kernal steps. I'm testing this theory. : )

hope that saves someone the 48hours it took me to put that together after all this time from translated docs and 2! google results on the subject.

Almost a google whack

Thanks to knc1, NiLuje, Hawhill, GM and everyone who put there time into getting an answer for building a more recent kernal for the 3 via the sources.

With a little more reading this process could be far smoother.

Static-er build also needs testing.

I'll update the kindle image I'm sharing via dropbox to this one when I have the legal stuff put to bed. (erm I might have accidentally built a 20 Gb file install. bit over-zelaous with the qt4 examples so it will need cutting down A LOT and checking if the various bits can be shared in this way before anything changes)

TODO busybox config: enable inetd and other "service" servers. rebuild kernal. oops

Thanks for listening.

Last edited by twobob; 08-14-2012 at 10:10 PM. Reason: added binfmt_misc as a module
twobob is offline   Reply With Quote
Old 08-14-2012, 03:34 AM   #29
knc1
Going Viral
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: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
And when tomorrow comes. . . .
In the kernel menu config: binfmt_misc as a module ;
In the busybox config: enable inetd and other "service" servers.
knc1 is offline   Reply With Quote
Old 08-30-2012, 11:03 PM   #30
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
Back on topic. Somewhat.

Further reading for the layman,

Autotools: a practitioner's guide to Autoconf, Automake and Libtool

http://www.freesoftwaremagazine.com/...tomake_libtool

And the Authors blog for more Autotool details

http://jcalcote.wordpress.com/tag/autotools/

Using this knowledge in the real world

A helpful guide to realworld buildoot (it's a google doc)
twobob is offline   Reply With Quote
Reply

Tags
compiling, development, issues, kindle, tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there anyway to set a static IP address on the Kobo Wifi? saladasalad Kobo Reader 3 07-11-2012 07:22 AM
Content Download a static website to the kindle? scotter Amazon Kindle 1 03-07-2011 06:52 PM
Static screensaver kindle79 Amazon Kindle 2 11-17-2010 02:51 PM
Free Book (Kindle) - The Static of the Spheres koland Deals and Resources (No Self-Promotion or Affiliate Links) 3 06-21-2010 06:24 AM
Static IP grey out rushkk enTourage Archive 1 06-04-2010 11:23 AM


All times are GMT -4. The time now is 12:23 PM.


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