Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-16-2012, 09:13 AM   #16
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
[root@kindle us]# modinfo /mnt/us/binfmt_misc.ko
filename: /mnt/us/binfmt_misc.ko
license: GPL
depends:
vermagic: 2.6.26-rt-lab126 mod_unload modversions ARMv6
twobob is offline   Reply With Quote
Old 08-16-2012, 09:16 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
Quote:
Originally Posted by knc1 View Post
Try to insmod using a full, absolute path and filename, on your K3 - if the kernel accepts it, it will work.

DONE : )

Also, a "modinfo" command (again, use full, absolute path and filename) on both the new binfmt_misc and any existing *.ko in the Amazon release will show some of the compatibility settings in the info header.

DONE : )

Somewhere in my repository I have directions for registering lua5.1, lua5.2 and tcc as part of one of the projects.
Seems fully happy. Hope it helps further the project. For my part I am now going to try and focus down some useful widgetry to get some swankier stuff working and figure out managing the specific versions of the libraries reffed.

Baby steps and all that for me.
twobob is offline   Reply With Quote
Advert
Old 08-16-2012, 09:19 AM   #18
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
Post it, that is to be used on the K3 machines in the field.
Directions to follow, some day, some time, RSN.

- - - -

Save all of your BR .config files (I think there are three or four of them, depending ...).
And maybe create an archive of the entire glob of BR stuff for future use.
Burn to CD or DVD, save where you keep your gold and silver bars.

Now that you have a system that will turn out new kernel modules that the K3 accepts, it opens the door to making up for a lot of the limitations set by Amazon/lab126.

I.E: If the build system will build one, it will build any/all of them.

Last edited by knc1; 08-16-2012 at 09:23 AM.
knc1 is offline   Reply With Quote
Old 08-16-2012, 09:23 AM   #19
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
Post it, that is to be used on the K3 machines in the field.
Directions to follow, some day, some time, RSN.
https://www.mobileread.com/forums/att...9&d=1345120940 from post Today 12:35 PM

: )

and on your Kloud (kloud/Things_to_knc1)

Last edited by twobob; 08-16-2012 at 09:25 AM. Reason: added linky
twobob is offline   Reply With Quote
Old 08-16-2012, 09:27 AM   #20
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
I was just about to correct my post when I found you already had attached it.
I'll stick an index entry to it on the Tools page unless you have already done that also.

Done:
https://wiki.mobileread.com/wiki/Tools_Index#Development

The general instructions (until Kindle specifics can be written up):
http://git.kernel.org/gitweb.cgi?p=l...sc.txt;hb=HEAD

Last edited by knc1; 08-16-2012 at 10:20 AM.
knc1 is offline   Reply With Quote
Advert
Old 08-16-2012, 09:51 AM   #21
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
Next question/request:
Did the build system turn out a CIFS module?

To be honest, I don't recall if it was available as a module in 2.6.26 - check the kernel menu config for details.

What's that?
For the K3, usbnetworking + CIFS module lets M$-Windows users just "attach" to the userstorage area as part of their "network neighborhood" (Samba).

In fact, it should work over wifi also. Just not so sure how secure that would be.

Hmm...
Of course, so can Linux and Mac users (both "talk" CIFS (Samba)).

Last edited by knc1; 08-16-2012 at 10:29 AM.
knc1 is offline   Reply With Quote
Old 08-16-2012, 10:50 AM   #22
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
I will have a look mate. Check the Kernal config. In fact Ill just attach it here.

In other news:

Trying to get my head around operating in FAT space also with linux libs.

I would suggest it is not a great idea : )

[root@kindle bin]# cd /mnt/us/usr/bin
[root@kindle bin]# /lib/ld-linux.so.3 --list /mnt/us/usr/lib/libruby.so.1.9
libpthread.so.0 => /mnt/us/lib/libpthread.so.0 (0x40242000)
librt.so.1 => /mnt/us/lib/librt.so.1 (0x40262000)
libdl.so.2 => /mnt/us/lib/libdl.so.2 (0x40272000)
libcrypt.so.1 => /mnt/us/lib/libcrypt.so.1 (0x40280000)
libm.so.6 => /mnt/us/lib/libm.so.6 (0x402bb000)
libgcc_s.so.1 => /mnt/us/lib/libgcc_s.so.1 (0x40361000)
libc.so.6 => /mnt/us/lib/libc.so.6 (0x40389000)
/lib/ld-linux.so.3 (0x2a000000)

[root@kindle bin]# strace -o ruby.out ./ruby

execve("./ruby", ["./ruby"], [/* 23 vars */]) = 0
brk(0) = 0x11000
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)

...

futex(0xbecf9c98, FUTEX_WAKE_PRIVATE, 1) = 0
futex(0xbecf9c98, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, 4001d9a0) = -1 ENOSYS (Function not implemented)


Segmentation fault : ) hmm... : ) oh well, I will figure it out. much of the stuff that doesn't rely on the more swanky modern functions appears fully working. some needs a bit of massage I think
Attached Files
File Type: gz dot_config.tar.gz (8.9 KB, 217 views)

Last edited by twobob; 08-17-2012 at 07:45 PM.
twobob is offline   Reply With Quote
Old 08-16-2012, 10:55 AM   #23
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: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@twobob: looks like ruby was built against kernel headers/glibc more recent than those on the Kindle, and is thus trying to use an unimplemented API.
NiLuJe is offline   Reply With Quote
Old 08-16-2012, 11:05 AM   #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
after setting the PATH to include the new directories

TAB gets us

Code:
[root@kindle us]#          
[                       gst-xmlinspect-0.10     powertop
[[                      gst-xmllaunch           pppd
aclocal                 gst-xmllaunch-0.10      pppdump
aclocal-1.11            gunzip                  pppstats
addgroup                gzexe                   pr
addr2line               gzip                    preload
adduser                 halt                    preload_static
adjtimex                halt.sysvinit           printenv
alsactl                 head                    printf
alsamixer               hello                   process_update
amixer                  hexdump                 pronounce
aplay                   hostid                  proxy
ar                      hostname                ps
arch                    htop                    ps.procps
arecord                 hwclock                 ptx
arping                  i2cutil                 pv
as                      iconv                   pwd
aserver                 iconvconfig             pwdx
aserver.sh              id                      python
ash                     idle                    python2.7
audioServer             idme                    rake
autoconf                idme_functions          ranlib
autoheader              ifconfig                rdate
autom4te                ifdown                  rdjpgcom
automake                ifnames                 rdoc
automake-1.11           ifup                    readelf
autoreconf              infocmp                 readlink
autoscan                infotocap               realpath
autoupdate              init                    reboot
awk                     init.sysvinit           reboot.sysvinit
badblocks               insmod                  recEvent
base64                  insmod.26               renice
basename                insmod.static           reset
bison                   install                 reset.ncurses
blkid                   iozone                  resize
bmiloader               ip                      resize2fs
browserd                ip6tables               restart
bsdiff                  ipaddr                  rev
bspatch                 ipcmk                   ri
bunzip2                 ipcrm                   rm
bunzip2.bzip2           ipcs                    rmdir
busybox                 iplink                  rmmod
bw_file_rd              iproute                 rmmod.26
bw_mem                  iprule                  route
bw_mmap_rd              iptables                rpcinfo
bw_pipe                 iptables-restore        rsync
bw_tcp                  iptables-save           ruby
bw_unix                 iptables-xml            ruby.out
bzcat                   iptunnel                run-parts
bzcat.bzip2             irb                     runcon
bzcmp                   isosize                 runlevel
bzdiff                  iwconfig                say
bzegrep                 iwlist                  scp
bzfgrep                 iwpriv                  script
bzgrep                  jabberwocky             scriptreplay
bzip2                   java                    sdiff
bzip2recover            join                    sed
bzless                  jpegtran                seq
bzmore                  kdb                     setarch
c++filt                 kdb_static              setdate
cal                     kill                    setkeycodes
cat                     kill.procps             setserial
catchsegv               killall                 setsid
catv                    killall5                setterm
ccache                  kindletool              settz
chat                    klogd                   sfdisk
chattr                  last                    sh
chcon                   last.sysvinit           sha1sum
checkpmond              lastb                   sha224sum
chgrp                   lat_connect             sha256sum
chkdupexe               lat_ctx                 sha384sum
chmod                   lat_fcntl               sha512sum
chown                   lat_fifo                shipping_mode
chpasswd                lat_fs                  showlog
chroot                  lat_http                showlog-cleanup
chrt                    lat_mem_rd              shred
chvt                    lat_mmap                shuf
ckimage                 lat_ops                 shutdown
cksum                   lat_pagefault           shutdown.sysvinit
clear                   lat_pipe                size
clear.ncurses           lat_proc                skill
closerun                lat_rpc                 slabtop
cmd                     lat_select              sleep
cmp                     lat_sem                 sln
col                     lat_sig                 smtpd.py
colcrt                  lat_syscall             snice
colrm                   lat_tcp                 sort
column                  lat_udp                 split
comm                    lat_unix                sprof
cp                      lat_unix_connect        sqlite3
cpio                    ld                      ssh
cramfsck                ld.bfd                  sshd
crond                   ldconfig                start-stop-daemon
crontab                 less                    startWan
csplit                  libm.so                 startx
curl                    libol-config            stat
curl-config             libtool                 stdbuf
cut                     libtoolize              stopWan
cvm-dumpstack           line                    strace
cvs                     link                    strace-graph
cytune                  linux32                 stream
date                    linux64                 strings
dbclient                lipc-daemon             strip
dbscp                   lipc-get-prop           stty
dbus-cleanup-sockets    lipc-hash-prop          su
dbus-daemon             lipc-probe              sudo
dbus-launch             lipc-send-event         sudoedit
dbus-monitor            lipc-set-prop           sudoreplay
dbus-send               lipc-wait-event         sulogin
dbus-uuidgen            lmdd                    sum
dc                      lmhttp                  sumtool
dd                      ln                      switch_root
deallocvt               locale                  sync
debugfs                 locate                  sysctl
delgroup                logger                  sysctl.procps
deluser                 login                   syslog-ng
depmod                  loginfo                 sysreboot
depmod.26               logname                 system_state
df                      logsave                 tac
dhrystone               look                    tack
dialog                  loop_o                  tail
diff                    losetup                 tailf
diff3                   lrz                     tar
dir                     ls                      tcc
dircolors               lsattr                  tccmake
directfb-config         lsblk                   tclsh8.4
dirname                 lscpu                   tee
disk                    lsmod                   telinit
distcc                  lsmod.26                telnet
distccd                 lsof                    test
dm                      lspci                   test_fsp
dmalloc                 lsusb                   testrb
dmdld                   lsusb.py                tftp
dmesg                   lsz                     tic
dnsdomainname           lzcat                   time
dos2unix                lzma                    timeout
dosattr                 m4                      timing_o
dosfsck                 make                    tinyrot
dropbear                make_class              tlb
dropbearmulti           makedevs                tload
dropdtr                 mc                      tmd
dtpmgroam               mcookie                 toe
du                      mcsd                    top
dump-and-kill-cvm       md5sum                  top.procps
dump-stack              memsize                 touch
dumpe2fs                memstat                 tput
dumpkmap                mesg                    tr
e2fsck                  mesg.sysvinit           traceroute
e2fsck.e2fsprogs        mhz                     true
e2image                 microcom                truncate
e2label                 microperl               tset
echo                    mkcramfs                tsl
ecu                     mkdir                   tsort
eeprom.AR6002           mkdosfs                 ttsd
egrep                   mke2fs                  tty
eips                    mke2fs.e2fsprogs        tune2fs
eiputs                  mkfifo                  tzselect
eject                   mkfs.ext2               udevcontrol
elfedit                 mkfs.ext2.e2fsprogs     udevd
enough                  mkfs.ext3               udevinfo
env                     mkfs.ext3.e2fsprogs     udevmonitor
erb                     mkfs.vfat               udevsettle
ether-wake              mklost+found            udevtest
eu                      mknod                   udevtrigger
evtest                  mktemp                  udhcpc
ewu                     mntroot                 uflock
expand                  mntus                   ul
expr                    modemcmd                umount
factor                  modinfo                 umount.util-linux
factory_reset           modinfo.26              uname
false                   modprobe                uncompress
fbset                   modprobe.26             unexpand
fc-cache                more                    uniq
fc-cat                  mosh-server             unix2dos
fc-list                 mount                   unlink
fc-match                mount.fuse              unlzma
fdflush                 mount.util-linux        unxz
fdformat                mountpoint              unzip
fdisk                   mpd                     update-alternatives
feature                 msleep                  update-passwd
ffmpeg                  mt                      updatedb
ffprobe                 mtd_debug               updatetime
fgrep                   mtest                   updatewait
file                    mtrace                  uptime
filefrag                mv                      uptime.procps
find                    namei                   usbhid-dump
findmnt                 nanddump                usbnetwork
flash_erase             nandwrite               usbserial
flash_eraseall          nano                    users
flash_info              nc                      usleep
flash_lock              netperf                 utmpdump
flash_unlock            netserver               uudecode
flashcp                 netstat                 uuencode
flock                   netwatchd               uuidgen
flushdisk               nice                    vdir
fmt                     niceaudio               verbose
fold                    nl                      vi
free                    nm                      visudo
free.procps             nohup                   vlock
freeramdisk             notifytph               vmstat
fsck                    nproc                   volumd
fsck.e2fsprogs          nslookup                w
fsck.ext2               ntpdate                 waitforkey
fsck.ext2.e2fsprogs     objcopy                 wall
fsck.ext3               objdump                 wall.sysvinit
fsck.ext3.e2fsprogs     od                      wancontrol
fsck.vfat               oil-bugreport           wand
fsp                     oldfind                 waninfo
ftl_check               openssl                 watch
ftl_format              openvt                  watchdogd
fuser                   opkg-cl                 wc
fusermount              opkg-key                wget
gasgauge-info           otaup                   whereis
gdb                     output.opkg             whetstone
gdbserver               output.perl             which
gdbus                   pango-querymodules      who
gdbus-codegen           par_mem                 whoami
gem                     par_ops                 wifid
gencat                  passwd                  wmiconfig
generate-modprobe.conf  paste                   wpa_cli
getconf                 patch                   wpa_passphrase
getent                  pathchk                 wpa_supplicant
getopt                  pcm                     write
getty                   pcprofiledump           wrjpgcom
gio-querymodules        perl                    xargs
glib-compile-schemas    pg                      xd
glib-genmarshal         pgrep                   xslt-config
glib-gettextize         phd                     xsltproc
glib-mkenums            php-cgi                 xtrace
gnuchess                picocom                 xz
gnuchessx               pidof                   xzcat
gobject-query           pidof.sysvinit          yacc
gperf                   ping                    yes
gprof                   pinky                   zcat
grep                    pipe_progress           zcmp
groups                  pivot_root              zdiff
gsettings               pixel.out               zdump
gst-feedback            pixel.out2              zegrep
gst-feedback-0.10       pkg-config              zfgrep
gst-inspect             pkill                   zforce
gst-inspect-0.10        pmap                    zgrep
gst-launch              pmic                    zic
gst-launch-0.10         pmon                    zless
gst-typefind            pmond                   zmore
gst-typefind-0.10       powerd                  znew
gst-visualise-0.10      powerd_test
gst-xmlinspect          poweroff
Better take some time to see what works
twobob is offline   Reply With Quote
Old 08-16-2012, 11:06 AM   #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
Quote:
Originally Posted by NiLuJe View Post
@twobob: looks like ruby was built against kernel headers/glibc more recent than those on the Kindle, and is thus trying to use an unimplemented API.
Yeah. Think I foofed somehow.

Will do more reading and another build.
twobob is offline   Reply With Quote
Old 08-16-2012, 11:27 AM   #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
Quote:
Originally Posted by NiLuJe View Post
@twobob: looks like ruby was built against kernel headers/glibc more recent than those on the Kindle, and is thus trying to use an unimplemented API.
The "futex" calls and sub-system had a long (in number of kernel versions released) history of being very unstable.

And as NiLuJe points out, even if it is in 2.6.26-rt-lab126, it still might not be anything like newer headers describe it to be.

First step is to confirm which kernel headers Buildroot used in the build. They may have been some "left overs" from earlier build runs.
knc1 is offline   Reply With Quote
Old 08-16-2012, 11:38 AM   #27
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: 13,477
Karma: 26012494
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
@knc1: Yeah, that might be a bitch to workaround without using the exact same kernel/glibc pair in the TC, if there's no autoconf check for new or modified args...

I indeed remember it (futex) being a bit messy, but hopefully they took care of assuring a semblance of compatibility in there...

EDIT: Yup, it's the kernel headers. FUTEX_CLOCK_REALTIME isn't implemented in the K3's kernel. So, might be easy enough to fix after all. Just make sure your TC was built against lab126's kernel.

Last edited by NiLuJe; 08-16-2012 at 11:45 AM.
NiLuJe is offline   Reply With Quote
Old 08-16-2012, 11:48 AM   #28
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
Ah, another brain-fart . . .
That -rt in the kernel name . . .
Check if the rt patch (linux real time patch) included changes to the futex kernel headers.
It (the futex sub-system) might be one of the changes that had to be made for Linux-rt.

(And, of course, see if they got applied either before or during the kernel build).
knc1 is offline   Reply With Quote
Old 08-16-2012, 12:24 PM   #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
Quote:
Originally Posted by twobob View Post
I will have a look mate. Check the Kernal config. In fact Ill just attach it here.
Make a note for "next time":
Code:
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set

Note: NFS-v3 (not NFS-v4) is already built into the kernel, not as a module.
Set the SMB and CIFS to "module" in the: make kernel_config thingy.

We will have to invent some config files and some HowTo directions, but that should be the only implementation problem.

This could also be a step towards getting rid of that FAT32 file system and its FUSE loop mount and the kernel trickery to switch it between kernel access and user storage use.

That last possibility would be a fairly invasive change and might not be for just anyone.

Here is another module to build:
Code:
# CONFIG_BLK_DEV_NBD is not set
Both Hawhill and GM have mentioned using that device, maybe they would like to let the Kindle kernel be the NBD server.

Other modules that might be of interest to someone:
Code:
# CONFIG_USB_USBNET is not set
- - -
# CONFIG_NETCONSOLE is not set
- - -
# CONFIG_FB_VIRTUAL is not set
- - -
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
And to answer another question:
Code:
CONFIG_FUTEX=y
Which may not mean that it is enabled in the K3 kernel, just in your build system kernel.

Last edited by knc1; 08-16-2012 at 01:04 PM.
knc1 is offline   Reply With Quote
Old 08-16-2012, 06:13 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
right. so I have decided to kill two birds with one stone then.


Grabbed a more compliant toolchain: from https://www.mobileread.com/forums/sho...6&postcount=11 link to external was still good.

Should be more compliant.

Second I will give it a once through and see what goes down - then do a rebuild with the software in. : ) Thanks all again for your excellent advice.

For some reason BR wont swallow the patch directly - so ill advise to apply it manually for now until I figure out what its deal is.

also hosting the .tar.gz locally works fine - just tried that, so that's a bit more sensible.

more when I have it. I have stuck these modules in the conf now (conf attached) and built with new TC. more on this below

[root@kindle aalib-1.4.0]# insmod /mnt/us/modules/cifs.ko
insmod: error inserting '/mnt/us/modules/cifs.ko': -1 Unknown symbol in module
[root@kindle aalib-1.4.0]# insmod /mnt/us/modules/smbfs.ko
insmod: error inserting '/mnt/us/modules/smbfs.ko': -1 Unknown symbol in module
[root@kindle aalib-1.4.0]#

So I obviously do not have the toochain doing the business yet. Sad

Ah well when I do here will be the list is produces:

Modules built
Spoiler:
Code:
kernel/drivers/video/eink/legacy/eink_fb_shim.ko
kernel/drivers/video/eink/hal/eink_fb_hal.ko
kernel/drivers/video/eink/hal/eink_fb_hal_emu.ko
kernel/drivers/video/eink/hal/eink_fb_hal_broads.ko
kernel/drivers/video/eink/hal/eink_fb_hal_auo.ko
kernel/drivers/video/vfb.ko
kernel/drivers/char/alloc_rtsj_mem.ko
kernel/drivers/block/nbd.ko
kernel/drivers/net/wan/mwan.ko
kernel/drivers/net/wireless/ath6k22.133/ar6000.ko
kernel/drivers/net/mii.ko
kernel/drivers/net/ppp_generic.ko
kernel/drivers/net/ppp_async.ko
kernel/drivers/net/ppp_synctty.ko
kernel/drivers/net/ppp_deflate.ko
kernel/drivers/net/slhc.ko
kernel/drivers/net/usb/asix.ko
kernel/drivers/net/usb/cdc_ether.ko
kernel/drivers/net/usb/dm9601.ko
kernel/drivers/net/usb/gl620a.ko
kernel/drivers/net/usb/net1080.ko
kernel/drivers/net/usb/plusb.ko
kernel/drivers/net/usb/rndis_host.ko
kernel/drivers/net/usb/cdc_subset.ko
kernel/drivers/net/usb/zaurus.ko
kernel/drivers/net/usb/mcs7830.ko
kernel/drivers/net/usb/usbnet.ko
kernel/drivers/net/netconsole.ko
kernel/drivers/input/keyboard/mxc_keyb.ko
kernel/drivers/input/misc/uinput.ko
kernel/drivers/input/mousedev.ko
kernel/drivers/input/joydev.ko
kernel/drivers/input/evbug.ko
kernel/drivers/input/fiveway/fiveway.ko
kernel/drivers/input/volume/volume.ko
kernel/drivers/usb/mon/usbmon.ko
kernel/drivers/usb/core/usbcore.ko
kernel/drivers/usb/host/ehci-hcd.ko
kernel/drivers/usb/serial/usbserial.ko
kernel/drivers/usb/serial/option.ko
kernel/drivers/usb/gadget/arcotg_udc.ko
kernel/drivers/usb/gadget/g_ether.ko
kernel/drivers/usb/gadget/gadgetfs.ko
kernel/drivers/usb/gadget/g_file_storage.ko
kernel/drivers/usb/gadget/g_serial.ko


stracing insmod fail

Spoiler:
Code:
execve("/sbin/insmod", ["insmod", "/mnt/us/modules/smbfs.ko"], [/* 23 vars */]) = 0
brk(0)                                  = 0x12000
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("/var/run/ld.so.cache", O_RDONLY)  = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=13788, ...}) = 0
mmap2(NULL, 13788, PROT_READ, MAP_PRIVATE, 3, 0) = 0x4001c000
close(3)                                = 0
open("/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\250J\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1348230, ...}) = 0
mmap2(NULL, 1135004, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x40025000
mprotect(0x4012e000, 28672, PROT_NONE)  = 0
mmap2(0x40135000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x108) = 0x40135000
mmap2(0x40138000, 8604, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40138000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40020000
set_tls(0x400204a0, 0x400204a0, 0x40024058, 0x40020b78, 0x40) = 0
mprotect(0x40135000, 8192, PROT_READ)   = 0
munmap(0x4001c000, 13788)               = 0
brk(0)                                  = 0x12000
brk(0x33000)                            = 0x33000
open("/mnt/us/modules/smbfs.ko", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\1\0(\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 16384) = 16384
read(3, "\3200\33\345pp\377\346 \10\240\341\0\340\303\345\324\340\33\345 D\240\341'T\240\341\0@\316\345"..., 16384) = 16384
read(3, "\6\0\240\341\10\20\240\341\7 \240\3410\0\215\350\376\377\377\353\0P\240\341\5\0\240\341 \320K\342"..., 32768) = 32768
read(3, "\214\0\0\0\2\0\6\0P\0\0\0|\0\0\0\0\0\0\0\0\0\6\0\0\7\0\0<q\0\0"..., 65536) = 10256
read(3, "", 55280)                      = 0
close(3)                                = 0
init_module(0x12018, 75792, "")         = -1 ENOENT (No such file or directory)
write(2, "insmod: error inserting '/mnt/us"..., 80) = 80
exit_group(1)                           = ?
+++ exited with 1 +++

Last edited by twobob; 08-16-2012 at 06:53 PM.
twobob is offline   Reply With Quote
Reply

Tags
buildroot, compile, howto, kernal, kindle 3.3


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Titus enTourage Archive 6 09-07-2010 11:23 AM
So as a Linux..... tajreed General Discussions 13 04-05-2010 12:51 PM
Linux? Ron46 Ectaco jetBook 8 12-24-2009 08:07 AM
Linux coredump Sony Reader 12 11-17-2009 05:07 AM
Linux Help clewley Bookeen 3 04-04-2008 08:40 AM


All times are GMT -4. The time now is 04:50 AM.


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