View Single Post
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