1,381
edits
Changes
From IGEP - ISEE Wiki
→Install the Rootfs (Using Ubi filesystem)
It's very important erase the partitions before try to write anything into the flash memory. We will erase all NAND partitions using these commands:
<pre>$ flash_eraseall /dev/mdt0 mtd0
$ flash_eraseall /dev/mtd1
$ flash_eraseall /dev/mtd2
</pre>
== Install the Bootloader ==Download the writeloader binary package from [http://downloads.isee.biz/pub/isee-releases/ubuntu/ubuntu-12.04.04-lts-armel-armhf/isee-writeloader-bin-armel_0.01_armel.deb here]ARMEL version or from [http://downloads.isee.biz/pub/isee-releases/ubuntu/ubuntu-12.04.04-lts-armel-armhf/isee-writeloader-bin-armhf_0.01_armhf.deb here]if you are using hard float version.
== Install the kernel (first boot) ==
$ umount /mnt</pre>
== Install the Rootfs (Using Ubi filesystem) ==a) Format the partition with ubi <pre>$ ubiformat /dev/mtd2</pre>b) Attach the device <pre>$ ubiattach -p /dev/mtd2</pre>c) Create the ubi volume <pre>$ ubimkvol /dev/ubi0 -N rootfs -s 486MiB</pre>d) Download the [http://downloads.isee.biz/pub/isee-releases/ubuntu/ubuntu-12.04.04-lts-armel-armhf/ubuntu-12.04.04-lts-isee-igep00x0-20140606-armel.ubi.img ubi ubuntu 12.04.4 LTS armel image] or [http://downloads.isee.biz/pub/isee-releases/ubuntu/ubuntu-12.04.04-lts-armel-armhf/ubuntu-12.04.04-lts-isee-igep00x0-20140606-armhf.ubi.img ubi ubuntu 12.04.4 LTS armhf image][http://downloads.isee.biz/pub/distros/ubuntu/ubuntu-12.04.04-lts-isee-igep00x0-20140606-armhf.ubi.img ]
<pre>$ mkfs.ubifs -r ubuntu-12.04.04-lts-isee-igep00x0-armel/ -m 2048 -e 129024 -c 4044 -o ubuntu-12.04.04-lts-isee-igep00x0-20140606-armel.ubi.img
</pre> Where: ubuntu-12.04.04-lts-isee-igep00x0-armel: Is the rootfs uncompressed directory ubuntu-12.04.04-lts-isee-igep00x0-20140606-armel.ubi.img : Is the ubi generated image e) Copy the ubi ubuntu image inside your board You can use ssh (the image has a openssh server installed) or you can install wget tool and download the image directly.
f) Install the ubi ubuntu-12.04.04-lts-isee-igep00x0-image if you want to use the armelimage do: Is the rootfs uncompressed directory<br>
<pre>$ ubiupdatevol /dev/ubi0_0 /root/ubuntu-12.04.04-lts-isee-igep00x0-20140606-armel.ubi.img : Is the ubi generated image<br/pre> or the hard float alternative
<pre>$ mount -t ubifs ubi0:rootfs /mnt/
$ls -al
h) Edit fstab for "boot" partition
After login edit the file: /mnt/etc/fstab and change this line:
<pre>LABEL="boot" /boot vfat defaults 0 0
</pre> to
<pre>/dev/mtdblock1 /boot jffs2 defaults 0 0
</pre>
Save the file.
i) Umount the ubi partition
<pre>$ umount /mnt</pre>
[[Category:Ubuntu]]
[[Category:Software distributions]]
== Boot from Flash (first time) ==