08-16-2012, 09:13 AM | #16 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
[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 |
08-16-2012, 09:16 AM | #17 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
Baby steps and all that for me. |
|
Advert | |
|
08-16-2012, 09:19 AM | #18 |
Going Viral
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. |
08-16-2012, 09:23 AM | #19 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Quote:
: ) and on your Kloud (kloud/Things_to_knc1) Last edited by twobob; 08-16-2012 at 09:25 AM. Reason: added linky |
|
08-16-2012, 09:27 AM | #20 |
Going Viral
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. |
Advert | |
|
08-16-2012, 09:51 AM | #21 |
Going Viral
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. |
08-16-2012, 10:50 AM | #22 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I 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 Last edited by twobob; 08-17-2012 at 07:45 PM. |
08-16-2012, 10:55 AM | #23 |
BLAM!
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.
|
08-16-2012, 11:05 AM | #24 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
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 |
08-16-2012, 11:06 AM | #25 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
|
08-16-2012, 11:27 AM | #26 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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. |
|
08-16-2012, 11:38 AM | #27 |
BLAM!
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. |
08-16-2012, 11:48 AM | #28 |
Going Viral
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). |
08-16-2012, 12:24 PM | #29 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
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.
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 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 Code:
CONFIG_FUTEX=y Last edited by knc1; 08-16-2012 at 01:04 PM. |
|
08-16-2012, 06:13 PM | #30 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
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:
stracing insmod fail Spoiler:
Last edited by twobob; 08-16-2012 at 06:53 PM. |
Tags |
buildroot, compile, howto, kernal, kindle 3.3 |
|
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 |