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-13-2014, 04:25 AM   #16
zxczxc
Addict
zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.zxczxc knows how many angels can dance on the head of a pin.
 
Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
cool, i'm not surprised i was wrong
so, this will guide will work or not?
thanks
zxczxc is offline   Reply With Quote
Old 08-13-2014, 06:38 AM   #17
HisDudeness
Junior Member
HisDudeness began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2014
Device: Kindle PW2
It's just a rough approch for chrooting into an ArchARM. There is nothing device specific yet. So I don't see why it shouldn't work
HisDudeness is offline   Reply With Quote
Old 10-13-2014, 09:38 AM   #18
Salah
Enthusiast
Salah began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2014
Device: Kindle 4
which one of those would be the correct to use on a kindle 4 ?
* i mean this -> http://os.archlinuxarm.org/os/
*also does pacman work?

Last edited by Salah; 10-13-2014 at 09:40 AM.
Salah is offline   Reply With Quote
Old 10-13-2014, 09:40 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
Quote:
Originally Posted by Salah View Post
which one of those would be the correct to use on a kindle 4 ?
* i mean this -> http://os.archlinuxarm.org/os/
None of the above - because of the lack of a proper keyboard on the K4.
knc1 is offline   Reply With Quote
Old 10-13-2014, 09:42 AM   #20
Salah
Enthusiast
Salah began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2014
Device: Kindle 4
Quote:
Originally Posted by knc1 View Post
None of the above - because of the lack of a proper keyboard on the K4.
i can use ssh to access it using my phone so thats not a problem for me, or is it?
*my screen is still broken btw
*knc1 is there any irc channel where u usually chat??

Last edited by Salah; 10-13-2014 at 09:45 AM.
Salah is offline   Reply With Quote
Old 10-13-2014, 10:44 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
Quote:
Originally Posted by Salah View Post
i can use ssh to access it using my phone so thats not a problem for me, or is it?
*my screen is still broken btw
*knc1 is there any irc channel where u usually chat??
Well, it is real hard for me to consider your use-case, when you don't mention what that use-case is.

Use one of the ARMv5 builds - they will run on any (recent) ARM device.

I seem to recall that the K4 uses an ARMv6 processor, but running an ARMv5 build is a more general (safe) solution.

Rarely, on the MR irc channel.
Too time-invasive for my usual day.
knc1 is offline   Reply With Quote
Old 10-13-2014, 11:10 AM   #22
Salah
Enthusiast
Salah began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2014
Device: Kindle 4
Quote:
Originally Posted by knc1 View Post
Well, it is real hard for me to consider your use-case, when you don't mention what that use-case is.

Use one of the ARMv5 builds - they will run on any (recent) ARM device.

I seem to recall that the K4 uses an ARMv6 processor, but running an ARMv5 build is a more general (safe) solution.

Rarely, on the MR irc channel.
Too time-invasive for my usual day.
Sorry for not being too clear xD, so this guide should work right, ill just use the armv5 build.
Code:
# To get ArchARM running on your Paperwhite2, do the following:

# SSH into your Kindle, then:

mkdir /mnt/us/archlinux             # create a directory of your choice
cd /mnt/us/archlinux
mkdir os 			
dd if=/dev/zero of=arch.img seek=750000000 bs=1 count=1 	# create image container
mke2fs -F -t ext3 arch.img	        # create ext3 filesystem of image
mknod /dev/loop7 b 7 7		# create loop device
losetup /dev/loop7 arch.img	# set loop device to image
mount -t ext3 /dev/loop7 os/	# mount it
			

# download the latest ArchARM v7 into your os directory
# either with wget:
wget http://os.archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz

# or over ssh with scp:
scp ~/Downloads/ArchLinuxARM-armv7-latest.tar.gz root@192.168.2.2:/mnt/us/archlinux/os/ArchLinuxARM-armv7-latest.tar.gz

# extract the tar and then remove it
tar xzf ArchLinuxARM-armv7-latest.tar.gz
rm ArchLinuxARM-armv7-latest.tar.gz

#mount some directories for arch:
mount -o bind /dev/ /mnt/us/archlinux/os/dev
mount -t proc proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/

# copy the DNS settings
cp /etc/resolv.conf etc/resolv.conf

# and chroot into arch:
chroot /mnt/us/archlinux/os /bin/bash

#now try to run 
pacman -Syu

#and if it starts updating, everything is fine =)
Salah is offline   Reply With Quote
Old 10-13-2014, 12:07 PM   #23
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
other than the changes to specific things, like archive name and IP addresses - -
that is the build procedure on just about anything.
knc1 is offline   Reply With Quote
Old 10-13-2014, 12:29 PM   #24
Salah
Enthusiast
Salah began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Sep 2014
Device: Kindle 4
Quote:
Originally Posted by knc1 View Post
other than the changes to specific things, like archive name and IP addresses - -
that is the build procedure on just about anything.
seems like i got stuck here :/
Code:
[root@kindle archlinux]# dd if=/dev/zero of=arch.img seek=750000000 bs=1 count=1
1+0 records in
1+0 records out
[root@kindle archlinux]# ls
arch.img  os
[root@kindle archlinux]# mke2fs -F -t ext3 arch.img
mke2fs 1.38 (30-Jun-2005)
mke2fs: invalid blocks count - arch.img
[root@kindle archlinux]#
Salah is offline   Reply With Quote
Old 10-13-2014, 01:23 PM   #25
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
dd if=/dev/zero of=arch.img seek=750M count=1 #(write one byte at maximum file extent)

sudo losetup -f arch.img #(adapt file to be used as a device, using first free loop device)

sudo losetup -a #(find which loop device was assigned, assume here loop0)

sudo mke2fs -F -t ext3 /dev/loop0 #(Yes, you can format a sparse file used as loop mounted device)

OK - now you can use the file as a file system.

sudo losetup -d /dev/loop0 #(detach the file-to-device adaption)

sudo mount arch.img /mnt/tmp #(make the sub-directory mount point if required)

(The 'missing' steps in the above are provided by your distribution's automation.)

Last edited by knc1; 10-13-2014 at 02:17 PM.
knc1 is offline   Reply With Quote
Reply

Tags
arch, archlinux, chroot, paperwhite, pw2


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mobiperl package in the Arch Linux AUR Synthead Amazon Kindle 3 07-05-2013 09:14 AM
Calibre, Arch Linux, and a failure to load nook touch dataknight Devices 3 07-22-2012 10:30 PM
Can't add plugins (Calibre 8.1 on Arch Linux) byrnerat101 Plugins 17 02-21-2012 06:06 AM
sigil Arch Linux wetterau Sigil 5 12-02-2010 12:59 PM
Installing Calibre in Arch Linux jatz Calibre 0 03-23-2010 01:41 PM


All times are GMT -4. The time now is 03:54 AM.


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