Rainbow Electronics QIL-A9260-C11 User Manual
Page 9

/*
* NAND flash
*/
static struct mtd_partition __initdata ek_nand_partition[] = {
{
.name = "Uboot & Kernel",
.offset = 0x00000000,
.size
= 16 * 1024 * 1024,
},
{
.name = "Root FS",
.offset = 0x01000000,
.size
= 120 * 1024 * 1024,
},
{
.name = "FS",
.offset = 0x08800000,
.size
= 120 * 1024 * 1024,
},
};
If you want to install your customized root file system quickly without destroying the
default one, you can put it on the second partition and modify the u-boot bootargs variable.
Now, let's see how we can do that !!!
First, we need to transfer the jffs2 root file system to the target.
Several possibilities are available:
By pluging a usb memory key containing the RFS on the MB-QIL-A9260 USB port or by
downloading it via tftp from a host.
Here is an example using a usb memory key
We can copy your root filesystem on a USB memory key and then mount it as it describes
below:
# mount -t vfat /dev/sda1 /mnt
#cp mnt/rootfs.arm.jffs2 /root
#umount /mnt
# ls -al
drwxr-xr-x
2 root root
0 Jan 1
00:02 .
drwxr-xr-x
16 rootroot
0 Jan 1
00:00 ..
-rw-r—r--
1 root root
720 Jan 1
00:03 .ash_history
-rw-r—r--
1 root root
0 Apr 6 2007 .bash_history
-rw-r—r--
1 root root
175 Apr 6 2007
.bash_logout
-rw-r—r--
1 root root
161 Apr 6 2007
.bash_profile
-rw-r—r--
1 root root
1711 Apr 6 2007 .bashrc
-rw-r—r--
1 root root
2228224 Jan 1 00:02 rootfs.arm.jffs2
Datasheet GSG-00006-A01
9/34