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 05-17-2015, 03:15 PM   #1
matz
Junior Member
matz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: May 2015
Device: Kindle 4 NT
Kindle 4 NT for WIFI tethering

Hello,

I want to use my Kindle 4 NT as an USB-WIFI 'stick':
connect the Kindle via USB to my Computer/Raspberry/etc. and to IP-forward the Wifi-Internet-connection of the Kindle to a client.

The problem with the kindle is, that although iptables is there, the ability of ip_forwarding and masquerading is missing due to missing modules.

The KUAL-developer(s) provide these modules in principle:
(http://www.mobileread.com/forums/att...7&d=1361917519), however I can't load the modules on my very device.

I have a jailbreaked device (k4nt) with usbnet running and I tried to insmod the additional kernel modules:
nf_nat.ko and iptables_nat.ko
(in /mnt/us/extensions/system/lib/modules/2.6.31-rt11-lab126/kernel/net/ipv4/netfilter after mounting the cfs-file from KUAL-project)

I get the following error message:

[root@kindle netfilter]# insmod nf_nat.ko
insmod: error inserting 'nf_nat.ko': -1 Unknown symbol in module

ARE THERE ANY DIFFERENT PRECOMPILED MODULE FILES THAT WOULD WORK WITH MY K4NT?

The system output is the following:
/var/log/messages (for insmod nf_nat.ko)

150517:182829 nf_nat: Unknown symbol nf_conntrack_tcp_update
150517:182829 nf_nat: Unknown symbol local_bh_enable
150517:182829 nf_nat: Unknown symbol local_bh_disable

[root@kindle netfilter]# uname -a
Linux kindle 2.6.31-rt11-lab126 #5 Sat Jan 12 20:39:09 PST 2013 armv7l unknown

[root@kindle netfilter]# cat /etc/version.txt
System Software Version: 025-H3_yoshi-181303
Sat Jan 12 20:40:53 PST 2013

[root@kindle netfilter]# cat /etc/prettyversion.txt
Kindle 4.1.1 (~~otaVersion~~)


Thanks in advance, Matz.

(some old threads on this topic did not helped me with this problem:
http://www.mobileread.com/forums/arc.../t-213678.html
http://www.mobileread.com/forums/arc.../t-208766.html)
matz is offline   Reply With Quote
Old 05-17-2015, 03:36 PM   #2
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 442
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
http://www.mobileread.com/forums/sho...compile+kernel

A while back, I made one for my Touch. I just used the modules I made and they worked fine. I think I used modules for mounting swap over the network...

My suggestion is - make your own
brianinmaine is offline   Reply With Quote
Old 05-26-2015, 10:43 AM   #3
Glorfindel
Force-Aware Elf
Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.Glorfindel ought to be getting tired of karma fortunes by now.
 
Glorfindel's Avatar
 
Posts: 3,888
Karma: 8238914
Join Date: Feb 2014
Location: Valinor
Device: Kindle 4 w/SO
@Matz: Let me know if you get this working, I have been trying as well.

Last edited by Glorfindel; 05-26-2015 at 05:59 PM.
Glorfindel is offline   Reply With Quote
Old 05-26-2015, 05:28 PM   #4
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,281
Karma: 2154869
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
Other modules are missing, I guess.
hawhill is offline   Reply With Quote
Old 05-27-2015, 04:25 AM   #5
brianinmaine
Evangelist
brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.brianinmaine ought to be getting tired of karma fortunes by now.
 
brianinmaine's Avatar
 
Posts: 442
Karma: 1287365
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
OK, this is a long one, I tried to make all the instructions to compile a kernel for K4nt (I think I use Debian (Jessie) as my host. At the end, I am able to add whatever modules I want. I highly recommend building your own modules!

HOST:
apt-get install debootstrap qemu-user-static binfmt-support
dd if=/dev/zero of=debian_image.ext3 bs=1M count=10000
mkfs.ext3 debian_image.ext3
tune2fs -i 0 -c 0 debian_image.ext3
mkdir -p /mnt/debian
mount -o loop -t ext3 debian_image.ext3 /mnt/debian
mkdir -p /mnt/debian/usr/bin
cp /usr/bin/qemu-arm-static /mnt/debian/usr/bin

for me, I use an iso of Debian Wheezy armel: debian-7.7.0-armel-DVD-1.iso
mkdir /mnt/iso
mount debian-7.7.0-armel-DVD-1.iso /mnt/iso
debootstrap --arch=armel --variant=buildd --no-check-gpg wheezy /mnt/debian file:///mnt/iso/debian
mkdir -p /mnt/debian/mnt/iso
mount --bind /mnt/iso /mnt/debian/mnt/iso
leafpad /mnt/debian/etc/apt/sources.list
deb [ trusted=yes ] file:/mnt/iso/debian wheezy main contrib

or continue using the web:
debootstrap --arch=armel wheezy /mnt/debian http://ftp.us.debian.org/debian
mount -o bind /dev /mnt/debian/dev
mount -o bind /dev/pts /mnt/debian/dev/pts
mount -o bind /proc /mnt/debian/proc
mount -o bind /sys /mnt/debian/sys
chroot /mnt/debian /bin/bash

CHROOT:
apt-get update
apt-get install locales vim
dpkg-reconfigure locales *FYI I selected 138 (en_US.UTF-8)
vim /etc/apt/sources.list
deb http://ftp.us.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.us.debian.org/debian wheezy main contrib non-free
apt-get update

FINALLY, here's the Kernel stuff!

HOST:
I downloaded and extracted the source, I think for Kindle4NT?? (Kindle_src_4.1.2_???)
then I copied the linux source to /mnt/debian/usr/src


CHroot:
apt-get install ncurses-dev
cd /usr/src
tar jxf linux-2.6.31.tar.bz2
cd linux-2.6.31
make imx50_tequila_defconfig

Here it gets interesting:
I downloaded source for Kindle Touch 5.1.0 and extracted to get a few files,
as per the Touch wiki.
from 5.1.0 for Touch:
copy these to the chroot usr/src/linux-2.6.31/include folder:
include/llog.h
include/linux/einkfb.h
include/boardid.h
** had to modify to add definition for finkle (just a hack to make it work,
I have NO IDEA what I'm doing this was to make the display driver compile,
and we don't need that anyway.
#define BOARD_ID_FINKLE "004"


then, in the chroot you should be able to:

make menuconfig
*** make any changes, make into modules ***
make modules

from here, it's up to you - install the modules to your image and copy from there or
whatever you want. Good luck!
Attached Files
File Type: zip modules.zip (873.4 KB, 1 views)

Last edited by brianinmaine; 05-27-2015 at 04:38 AM.
brianinmaine is offline   Reply With Quote
Reply

Tags
kindle 4 nt, kual, nas, raspberry pi, wifi tether

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PE tethering w/wifi hotspot bunodosoma enTourage eDGe 35 10-01-2011 03:35 AM
how to tethering the kindle 3 ? thehomer Kindle Developer's Corner 7 12-25-2010 01:09 PM
Want to get .epubs onto your Kindle without tethering? jesse Kindle Developer's Corner 15 03-05-2009 12:00 AM


All times are GMT -4. The time now is 06:50 PM.


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