From Fedora Project Wiki
(Created page with 'http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer modify the rootfs from http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2 untar in a tem...')
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Using the Sheeva Installer to get Fedora 11 onto the internal NAND or a SD Card ===
http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer
http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer


modify the rootfs from http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2
<p>modify the rootfs from http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2</p>
 
<p>untar in a temp folder and make a new root fs from rootfs_f11 excluding the rootfs_f11 folder name</p>
 
<p>put the new rootfs.tar.gz and the latest kernels from http://sheeva.with-linux.com/sheeva into the installer folder and copy it over to the USB key</p>
 
<p>(TODO provide a link to my copy / or make a script to do it automatically)</p>
 
script to build installer folder contents
<blockquote><pre>
#!/bin/bash
 
KVER="2.6.31"
 
 
function Md5Compare ()
{
        if [[ $(cat $2 | cut -d' ' -f1) \
                        != $(md5sum $1 | cut -d' ' -f1) ]]; then
                echo "Bad md5 detected on $1"
                exit 1
        fi
}
 
mkdir sheeva
cd sheeva
 
mkdir installer
mkdir kernels
mkdir work
 
cd kernels
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-uImage
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-uImage.md5
 
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-Modules.tar.gz
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-Modules.tar.gz.md5
 
 
Md5Compare sheeva-$KVER-Modules.tar.gz sheeva-$KVER-Modules.tar.gz.md5
Md5Compare sheeva-$KVER-uImage sheeva-$KVER-uImage.md5
 
cp sheeva-$KVER-uImage ../installer/uImage
cp sheeva-$KVER-Modules.tar.gz ../installer/modules.tar.gz
 
cd ../work
wget -Nd http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2
rm -fr rootfs-f11/
tar --preserve-permissions -xjf rootfs-f11.tar.bz2
cd rootfs-f11/
sed -i -e 's/root/mtdblock1/; s/nfs/ubifs/' etc/fstab
#sed -i -e 's/root/mmcblk0p1/; s/nfs/ext3/; s/1 1/0 0/' etc/fstab
rm -fr tmp/* var/cache/yum/* var/tmp/*
tar --preserve-permissions --preserve-order -czf ../../installer/rootfs.tar.gz ./
cd ..
rm -fr rootfs-f11/
 
cd ../installer
ls -l
 
</pre></blockquote>
 
<p>now follow the steps in the sheevaplug installer docs</p>


untar in a temp folder and make a new root fs from rootfs_f11 excluding the rootfs_f11 folder name
1. change the mac address<br>
2. plugin the usb key in fat format with the contents of installer folder<br>
3. run php ./runme.php on the host and follow the steps (did not work in 64bit fedora needs 32bit)<br>


put the new rootfs.tar.gz and the latest kernels from http://sheeva.with-linux.com/sheeva into the installer folder and copy it over to the USB key


now follow the steps in the sheevaplug installer docs
<p>when installed to nand the fstab is wrong change nfs to ubifs and /dev/root to /dev/mtdblock1
(need to do with sed since vi is not installed)</p>


1. change the mac address
<p>(TODO make the change in the script it self)</p>
2. plugin the usb key in fat format with the contents of installer folder
3. run php ./runme.php on the host and follow the steps (did not work in 64bit fedora needs 32bit)


when installed to nand the fstab is wrong change nfs to ubifs and /dev/root to /dev/mtdblock1
yum update
(need to do with sed since vi is not installed)
yum upgrade
yum install @core


yum update yum upgrade yum install @core will also need mtd-utils and mtd-utils-ubifs for upgrading kernels in future
will also need mtd-utils and mtd-utils-ubifs for upgrading kernels in future


add users set passwords etc
add users set passwords etc

Latest revision as of 09:24, 21 September 2009

Using the Sheeva Installer to get Fedora 11 onto the internal NAND or a SD Card

http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer

modify the rootfs from http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2

untar in a temp folder and make a new root fs from rootfs_f11 excluding the rootfs_f11 folder name

put the new rootfs.tar.gz and the latest kernels from http://sheeva.with-linux.com/sheeva into the installer folder and copy it over to the USB key

(TODO provide a link to my copy / or make a script to do it automatically)

script to build installer folder contents

#!/bin/bash

KVER="2.6.31"


function Md5Compare ()
{
        if [[ $(cat $2 | cut -d' ' -f1) \
                        != $(md5sum $1 | cut -d' ' -f1) ]]; then
                echo "Bad md5 detected on $1"
                exit 1
        fi
}

mkdir sheeva
cd sheeva

mkdir installer
mkdir kernels
mkdir work

cd kernels
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-uImage
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-uImage.md5

wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-Modules.tar.gz
wget -Nd -q http://sheeva.with-linux.com/sheeva/$KVER/sheeva-$KVER-Modules.tar.gz.md5


Md5Compare sheeva-$KVER-Modules.tar.gz sheeva-$KVER-Modules.tar.gz.md5
Md5Compare sheeva-$KVER-uImage sheeva-$KVER-uImage.md5

cp sheeva-$KVER-uImage ../installer/uImage
cp sheeva-$KVER-Modules.tar.gz ../installer/modules.tar.gz

cd ../work
wget -Nd http://ftp.linux.org.uk/pub/linux/arm/fedora/rootfs/rootfs-f11.tar.bz2
rm -fr rootfs-f11/
tar --preserve-permissions -xjf rootfs-f11.tar.bz2
cd rootfs-f11/
sed -i -e 's/root/mtdblock1/; s/nfs/ubifs/' etc/fstab
#sed -i -e 's/root/mmcblk0p1/; s/nfs/ext3/; s/1 1/0 0/' etc/fstab
rm -fr tmp/* var/cache/yum/* var/tmp/*
tar --preserve-permissions --preserve-order -czf ../../installer/rootfs.tar.gz ./
cd ..
rm -fr rootfs-f11/

cd ../installer
ls -l

now follow the steps in the sheevaplug installer docs

1. change the mac address
2. plugin the usb key in fat format with the contents of installer folder
3. run php ./runme.php on the host and follow the steps (did not work in 64bit fedora needs 32bit)


when installed to nand the fstab is wrong change nfs to ubifs and /dev/root to /dev/mtdblock1 (need to do with sed since vi is not installed)

(TODO make the change in the script it self)

yum update yum upgrade yum install @core

will also need mtd-utils and mtd-utils-ubifs for upgrading kernels in future

add users set passwords etc

also refer

http://plugcomputer.org/plugwiki/index.php/User:Ajayr

ask me for any for help you may need