Difference between revisions of "Current system images"

From University of Washington - Ubicomp Research Page
Jump to: navigation, search
m
m
Line 36: Line 36:
 
== Comparing two filesystem images ==
 
== Comparing two filesystem images ==
 
To compare two, fs.jffs2, file system images you can simply mount both images on a machine and do a diff on them:
 
To compare two, fs.jffs2, file system images you can simply mount both images on a machine and do a diff on them:
<bash>
+
<bash>mkdir /mnt/jffs2ImageA
mkdir /mnt/jffs2ImageA
+
mkdir /mnt/jffs2ImageB
losetup /dev/loop1 fs.jffs2_A
+
mknod /dev/mtdblock0 b 31 0
 
mknod /dev/mtdblock1 b 31 1
 
mknod /dev/mtdblock1 b 31 1
modprobe blkmtd device=/dev/loop1
 
mount -t jffs2 /dev/mtdblock1 /mnt/jffs2ImageA
 
  
mkdir /mnt/jffs2ImageB
+
echo "Change fs.jffs2 to point to your images"
losetup /dev/loop2 fs.jffs2_B
+
losetup /dev/loop0 fs.jffs2_A
mknod /dev/mtdblock2 b 31 2
+
losetup /dev/loop1 fs.jffs2_B
modprobe blkmtd device=/dev/loop2
+
 
mount -t jffs2 /dev/mtdblock2 /mnt/jffs2ImageB
+
modprobe blkmtd device=/dev/loop0,/dev/loop1
 +
mount -t jffs2 /dev/mtdblock0 /mnt/jffs2ImageA
 +
mount -t jffs2 /dev/mtdblock1 /mnt/jffs2ImageB
  
 
diff -urN /mnt/jffs2ImageA /mnt/jffs2ImageB</bash>
 
diff -urN /mnt/jffs2ImageA /mnt/jffs2ImageB</bash>
 +
 +
To remove the mounted images:
 +
<bash>sync
 +
umount /mnt/jffsImageA
 +
umount /mnt/jffsImageB
 +
modprobe -r blkmtd
 +
losetup -d /dev/loop1
 +
losetup -d /dev/loop2</bash>

Revision as of 23:54, 24 January 2007

Overview

To avoid problems with repeatability and deployments this page hosts the default images to be used for the various projects. If you make modifications to your image you should create new patches, update .tgz files, etc. rather than simply creating new images so we have a way of getting from one image to another. For example, 'take the current image, run this patch on it, and copy these files to it'.


Current Image

The recommended system image:

Description Bootloader Kernel Image Filesystem
Console on STD UART
Windows Ethernet Gadget
blob zImage fs.jffs2


Other Image Builds


Comparing two filesystem images

To compare two, fs.jffs2, file system images you can simply mount both images on a machine and do a diff on them: <bash>mkdir /mnt/jffs2ImageA mkdir /mnt/jffs2ImageB mknod /dev/mtdblock0 b 31 0 mknod /dev/mtdblock1 b 31 1

echo "Change fs.jffs2 to point to your images" losetup /dev/loop0 fs.jffs2_A losetup /dev/loop1 fs.jffs2_B

modprobe blkmtd device=/dev/loop0,/dev/loop1 mount -t jffs2 /dev/mtdblock0 /mnt/jffs2ImageA mount -t jffs2 /dev/mtdblock1 /mnt/jffs2ImageB

diff -urN /mnt/jffs2ImageA /mnt/jffs2ImageB</bash>

To remove the mounted images: <bash>sync umount /mnt/jffsImageA umount /mnt/jffsImageB modprobe -r blkmtd losetup -d /dev/loop1 losetup -d /dev/loop2</bash>