- Download the prebuilt root file system for the ARM version of Fedora 12
- Create a 1GB file system image to extract the file system image to
-- dd if=/dev/zero of=fedora.img bs=1M count=1000
-- mkfs.ext2 fedora.img
-- mkdir mnt
-- mount fedora.img mnt -o loop
-- cd mnt
-- tar -xvjf ../rootfs-f12.tar.bz2 --strip-components=1
-- cd ..
-- umount mnt
Now copy the fedora.img to your sdcard so it ends up in /sdcard/fedora then create a startup script. I created one called /data/bin/fedora:
- Code: Select all
if [ ! -d /data/local/fedora ]
mount -t ext2 -o loop,noatime $kit/fedora.img $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
sysctl -w net.ipv4.ip_forward=1
chroot $mnt /bin/bash
#After exit command is executed clear it all up
echo " "
echo "Shutting down Fedora"
Run the script from a shell on the phone via connectbot or "adb shell". Now you should be chrooted into the Fedora environment. You need to create the /dev/* stuff as udev isn't running. You could start udev "/sbin/start_udev" which is what I did but it takes over the phone's GUI but after a restart all my /dev/* stuff was there, or I created it when I ran /sbin/MAKEDEV. Now you can start sshd "service sshd start" (don't forget to set root's password), ssh to your fedora installation on your phone and then do a yum update and yum install more software if you wish. That's all for now.