<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.gumstix.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MatthieuHerrb</id>
		<title>Gumstix User Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.gumstix.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=MatthieuHerrb"/>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php/Special:Contributions/MatthieuHerrb"/>
		<updated>2026-04-06T22:08:23Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.25.3</generator>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Making_qemu_images&amp;diff=1025</id>
		<title>Making qemu images</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Making_qemu_images&amp;diff=1025"/>
				<updated>2008-08-06T10:03:48Z</updated>
		
		<summary type="html">&lt;p&gt;MatthieuHerrb: use only ext2 in the example, as default kernels only support ext3 through a module.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Preparing flash / disk images for qemu =&lt;br /&gt;
&lt;br /&gt;
== Flash images ==&lt;br /&gt;
&lt;br /&gt;
The flash image emulates the flash memory on the Gumstix motherboard. It's a single file that has the size of the emulated flash memory (32MB in the case of the verdex board emulated by qemu). It will contain the same images as the real flash, at the same offsets:&lt;br /&gt;
&lt;br /&gt;
* The u-boot image at offset 0&lt;br /&gt;
* The root file system image at offset 256kB&lt;br /&gt;
* The kernel image at the end of the image offset 31MB&lt;br /&gt;
&lt;br /&gt;
The following 3 files are needed&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;u-boot-verdex-400-r1587.bin&amp;lt;/tt&amp;gt; - u-boot&lt;br /&gt;
* &amp;lt;tt&amp;gt;gumstix-basic-image-gumstix-custom-verdex.jffs2&amp;lt;/tt&amp;gt; - root file system &lt;br /&gt;
* &amp;lt;tt&amp;gt;uImage-2.6.21-r1-gumstix-custom-verdex.bin&amp;lt;/tt&amp;gt; - kernel.&lt;br /&gt;
&lt;br /&gt;
Except for the u-boot image which is not yet built by openembedded, those files can be found in the &amp;lt;tt&amp;gt;tmp/deploy/glibc/images/&amp;lt;/tt&amp;gt; sub-directory of &amp;lt;tt&amp;gt;gumstix-oe&amp;lt;/tt&amp;gt; after running bitbake.&lt;br /&gt;
&lt;br /&gt;
To assemble the image &amp;lt;tt&amp;gt;flash.img&amp;lt;/tt&amp;gt; run the following commands:&lt;br /&gt;
&lt;br /&gt;
 dd of=flash.img bs=128k count=256 if=/dev/zero&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc if=u-boot-verdex-400-r1587.bin&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc seek=2 if=gumstix-basic-image-gumstix-custom-verdex.jffs2&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc seek=248 if=uImage-2.6.21-r1-gumstix-custom-verdex.bin&lt;br /&gt;
&lt;br /&gt;
== mmc/CF images ==&lt;br /&gt;
&lt;br /&gt;
Those images are used to emulate the flash memory cards that are present on netmicroSD, netMMC, netCF... expansion boards. It is possible to &lt;br /&gt;
boot from them or just to store more data in them. &lt;br /&gt;
&lt;br /&gt;
On the Linux host, the &amp;lt;tt&amp;gt;losetup&amp;lt;/tt&amp;gt;(1) utility is used to access those images as real block devices, &lt;br /&gt;
&lt;br /&gt;
/!\ The current qemu version seems to be limited to 1GB card images. The examples presented here will thus use 1GB images.&lt;br /&gt;
&lt;br /&gt;
* Creating the empty image&lt;br /&gt;
&lt;br /&gt;
 dd of=mmc.img bs=1M count=1024 if=/dev/zero&lt;br /&gt;
&lt;br /&gt;
* Creating a block device for the whole image &lt;br /&gt;
&lt;br /&gt;
 losetup /dev/loop0 mmc.img&lt;br /&gt;
&lt;br /&gt;
* Running fdisk to partition the card&lt;br /&gt;
&lt;br /&gt;
 fdisk /dev/loop0&lt;br /&gt;
&lt;br /&gt;
=== Partitionning the card ===&lt;br /&gt;
&lt;br /&gt;
In the most simple case, one single partition (VFAT, ext2 or ext3) can cover the whole card. However, in order to boot from the card and use it for the root file system, at least 2 partitions, one small VFAT to hold the kernel and the u-boot script, and a bigger one, ext2  for the root file system. The folloing example shows a basic setup (using fdisk 'p' command):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  Command (m for help): p&lt;br /&gt;
&lt;br /&gt;
 Disk /dev/loop0: 1073 MB, 1073741824 bytes&lt;br /&gt;
 255 heads, 63 sectors/track, 130 cylinders&lt;br /&gt;
 Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
 Disk identifier: 0x25c4dea4&lt;br /&gt;
&lt;br /&gt;
      Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
 /dev/loop0p1               1           7       56196    6  FAT16&lt;br /&gt;
 /dev/loop0p2               8         130      987997+  83  Linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing the partitions ===&lt;br /&gt;
&lt;br /&gt;
In order to access the partitions, 2 more loop devices have to be created with losetup. The offsets into the main loop device (&amp;lt;tt&amp;gt;/dev/loop0&amp;lt;/tt&amp;gt;) need to be specified. For this, use &amp;lt;tt&amp;gt;fdisk -ul&amp;lt;/tt&amp;gt; to find the starting block of your partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Disk /dev/loop0: 1073 MB, 1073741824 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 130 cylinders, total 2097152 sectors&lt;br /&gt;
Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;
Disk identifier: 0x25c4dea4&lt;br /&gt;
&lt;br /&gt;
      Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/loop0p1              63      112454       56196    6  FAT16&lt;br /&gt;
/dev/loop0p2          112455     2088449      987997+  83  Linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Partition 1 starts at block 63 (which is 63*512 = 32256 bytes) and partition 2 starts at block 112455 (which is 112455*512 = 57576960 bytes).&lt;br /&gt;
&lt;br /&gt;
The following commands will then create the 2 loop devices:&lt;br /&gt;
&lt;br /&gt;
 losetup -o 32256 /dev/loop1 /dev/loop0&lt;br /&gt;
 losetup -o 57576960 /dev/loop2 /dev/loop0&lt;br /&gt;
&lt;br /&gt;
/dev/loop1 and /dev/loop2 will now access the 2 partitions. &lt;br /&gt;
&lt;br /&gt;
=== Formatting and mounting ===&lt;br /&gt;
&lt;br /&gt;
  mkfs -t vfat /dev/loop1&lt;br /&gt;
  mkfs -t ext2 /dev/loop2&lt;br /&gt;
&lt;br /&gt;
  mkdir /mnt/1&lt;br /&gt;
  mkdir /mnt/2&lt;br /&gt;
&lt;br /&gt;
  mount /dev/loop1 /mnt/1&lt;br /&gt;
  mount /dev/loop2 /mnt/2&lt;br /&gt;
&lt;br /&gt;
=== Copying data ===&lt;br /&gt;
&lt;br /&gt;
The kernel image (called &amp;lt;tt&amp;gt;uImage&amp;lt;/tt&amp;gt; on the docs on using root on MMC/SD), the u-boot script &amp;lt;tt&amp;gt;gumstix-factory.script&amp;lt;/tt&amp;gt; are needed on /mnt/1.&lt;br /&gt;
&lt;br /&gt;
To transfer the root filesystem to /mnt/2, un-tar the &amp;lt;tt&amp;gt;gumstix-basic-image-gumstix-custom-verdex.tar.gz&amp;lt;/tt&amp;gt; found in the &amp;lt;tt&amp;gt;tmp/deploy/glibc/images/gumstix-custom-verdex/&amp;lt;/tt&amp;gt; directory. &lt;br /&gt;
&lt;br /&gt;
=== Cleaning up ===&lt;br /&gt;
&lt;br /&gt;
Before starting qemu, both partitions should be un-monted and the 3 loop devices should be un-configured. Failing to do that will almost certainly corrupt the images.&lt;br /&gt;
&lt;br /&gt;
 umount /mnt/2&lt;br /&gt;
 umount /mnt/1&lt;br /&gt;
 losetup -d /dev/loop2 &lt;br /&gt;
 losetup -d /dev/loop1&lt;br /&gt;
 losetup -d /dev/loop0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_qemu]]&lt;/div&gt;</summary>
		<author><name>MatthieuHerrb</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Making_qemu_images&amp;diff=1000</id>
		<title>Making qemu images</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Making_qemu_images&amp;diff=1000"/>
				<updated>2008-07-31T12:55:12Z</updated>
		
		<summary type="html">&lt;p&gt;MatthieuHerrb: info on mmc/CF images.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Preparing flash / disk images for qemu =&lt;br /&gt;
&lt;br /&gt;
== Flash images ==&lt;br /&gt;
&lt;br /&gt;
The flash image emulates the flash memory on the Gumstix motherboard. It's a single file that has the size of the emulated flash memory (32MB in the case of the verdex board emulated by qemu). It will contain the same images as the real flash, at the same offsets:&lt;br /&gt;
&lt;br /&gt;
* The u-boot image at offset 0&lt;br /&gt;
* The root file system image at offset 256kB&lt;br /&gt;
* The kernel image at the end of the image offset 31MB&lt;br /&gt;
&lt;br /&gt;
The following 3 files are needed&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;u-boot-verdex-400-r1587.bin&amp;lt;/tt&amp;gt; - u-boot&lt;br /&gt;
* &amp;lt;tt&amp;gt;gumstix-basic-image-gumstix-custom-verdex.jffs2&amp;lt;/tt&amp;gt; - root file system &lt;br /&gt;
* &amp;lt;tt&amp;gt;uImage-2.6.21-r1-gumstix-custom-verdex.bin&amp;lt;/tt&amp;gt; - kernel.&lt;br /&gt;
&lt;br /&gt;
Except for the u-boot image which is not yet built by openembedded, those files can be found in the &amp;lt;tt&amp;gt;tmp/deploy/glibc/images/&amp;lt;/tt&amp;gt; sub-directory of &amp;lt;tt&amp;gt;gumstix-oe&amp;lt;/tt&amp;gt; after running bitbake.&lt;br /&gt;
&lt;br /&gt;
To assemble the image &amp;lt;tt&amp;gt;flash.img&amp;lt;/tt&amp;gt; run the following commands:&lt;br /&gt;
&lt;br /&gt;
 dd of=flash.img bs=128k count=256 if=/dev/zero&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc if=u-boot-verdex-400-r1587.bin&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc seek=2 if=gumstix-basic-image-gumstix-custom-verdex.jffs2&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc seek=248 if=uImage-2.6.21-r1-gumstix-custom-verdex.bin&lt;br /&gt;
&lt;br /&gt;
== mmc/CF images ==&lt;br /&gt;
&lt;br /&gt;
Those images are used to emulate the flash memory cards that are present on netmicroSD, netMMC, netCF... expansion boards. It is possible to &lt;br /&gt;
boot from them or just to store more data in them. &lt;br /&gt;
&lt;br /&gt;
On the Linux host, the &amp;lt;tt&amp;gt;losetup&amp;lt;/tt&amp;gt;(1) utility is used to access those images as real block devices, &lt;br /&gt;
&lt;br /&gt;
/!\ The current qemu version seems to be limited to 1GB card images. The examples presented here will thus use 1GB images.&lt;br /&gt;
&lt;br /&gt;
* Creating the empty image&lt;br /&gt;
&lt;br /&gt;
 dd of=mmc.img bs=1M count=1024 if=/dev/zero&lt;br /&gt;
&lt;br /&gt;
* Creating a block device for the whole image &lt;br /&gt;
&lt;br /&gt;
 losetup /dev/loop0 mmc.img&lt;br /&gt;
&lt;br /&gt;
* Running fdisk to partition the card&lt;br /&gt;
&lt;br /&gt;
 fdisk /dev/loop0&lt;br /&gt;
&lt;br /&gt;
=== Partitionning the card ===&lt;br /&gt;
&lt;br /&gt;
In the most simple case, one single partition (VFAT, ext2 or ext3) can cover the whole card. However, in order to boot from the card and use it for the root file system, at least 2 partitions, one small VFAT one to hold the kernel and the u-boot script, and the other one, ext2 or 3 for the root file system. The folloing example shows a basic setup (using fdisk 'p' command):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  Command (m for help): p&lt;br /&gt;
&lt;br /&gt;
 Disk /dev/loop0: 1073 MB, 1073741824 bytes&lt;br /&gt;
 255 heads, 63 sectors/track, 130 cylinders&lt;br /&gt;
 Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;
 Disk identifier: 0x25c4dea4&lt;br /&gt;
&lt;br /&gt;
      Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
 /dev/loop0p1               1           7       56196    6  FAT16&lt;br /&gt;
 /dev/loop0p2               8         130      987997+  83  Linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing the partitions ===&lt;br /&gt;
&lt;br /&gt;
In order to access the partitions, 2 more loop devices have to be created with losetup. The offsets into the main loop device (&amp;lt;tt&amp;gt;/dev/loop0&amp;lt;/tt&amp;gt;) need to be specified. For this, use &amp;lt;tt&amp;gt;fdisk -ul&amp;lt;/tt&amp;gt; to find the starting block of your partitions:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Disk /dev/loop0: 1073 MB, 1073741824 bytes&lt;br /&gt;
255 heads, 63 sectors/track, 130 cylinders, total 2097152 sectors&lt;br /&gt;
Units = sectors of 1 * 512 = 512 bytes&lt;br /&gt;
Disk identifier: 0x25c4dea4&lt;br /&gt;
&lt;br /&gt;
      Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;
/dev/loop0p1              63      112454       56196    6  FAT16&lt;br /&gt;
/dev/loop0p2          112455     2088449      987997+  83  Linux&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Partition 1 starts at block 63 (which is 63*512 = 32256 bytes) and partition 2 starts at block 112455 (which is 112455*512 = 57576960 bytes).&lt;br /&gt;
&lt;br /&gt;
The following commands will then create the 2 loop devices:&lt;br /&gt;
&lt;br /&gt;
 losetup -o 32256 /dev/loop1 /dev/loop0&lt;br /&gt;
 losetup -o 57576960 /dev/loop2 /dev/loop0&lt;br /&gt;
&lt;br /&gt;
/dev/loop1 and /dev/loop2 will now access the 2 partitions. &lt;br /&gt;
&lt;br /&gt;
=== Formatting and mounting ===&lt;br /&gt;
&lt;br /&gt;
  mkfs -t vfat /dev/loop1&lt;br /&gt;
  mkfs -t ext3 /dev/loop2&lt;br /&gt;
&lt;br /&gt;
  mkdir /mnt/1&lt;br /&gt;
  mkdir /mnt/2&lt;br /&gt;
&lt;br /&gt;
  mount /dev/loop1 /mnt/1&lt;br /&gt;
  mount /dev/loop2 /mnt/2&lt;br /&gt;
&lt;br /&gt;
=== Copying data ===&lt;br /&gt;
&lt;br /&gt;
The kernel image (called &amp;lt;tt&amp;gt;uImage&amp;lt;/tt&amp;gt; on the docs on using root on MMC/SD), the u-boot script &amp;lt;tt&amp;gt;gumstix-factory.script&amp;lt;/tt&amp;gt; are needed on /mnt/1.&lt;br /&gt;
&lt;br /&gt;
To transfer the root filesystem to /mnt/2, un-tar the &amp;lt;tt&amp;gt;gumstix-basic-image-gumstix-custom-verdex.tar.gz&amp;lt;/tt&amp;gt; found in the &amp;lt;tt&amp;gt;tmp/deploy/glibc/images/gumstix-custom-verdex/&amp;lt;/tt&amp;gt; directory. &lt;br /&gt;
&lt;br /&gt;
=== Cleaning up ===&lt;br /&gt;
&lt;br /&gt;
Before starting qemu, both partitions should be un-monted and the 3 loop devices should be un-configured. Failing to do that will almost certainly corrupt the images.&lt;br /&gt;
&lt;br /&gt;
 umount /mnt/2&lt;br /&gt;
 umount /mnt/1&lt;br /&gt;
 losetup -d /dev/loop2 &lt;br /&gt;
 losetup -d /dev/loop1&lt;br /&gt;
 losetup -d /dev/loop0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_qemu]]&lt;/div&gt;</summary>
		<author><name>MatthieuHerrb</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Making_qemu_images&amp;diff=996</id>
		<title>Making qemu images</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Making_qemu_images&amp;diff=996"/>
				<updated>2008-07-31T10:17:08Z</updated>
		
		<summary type="html">&lt;p&gt;MatthieuHerrb: Intructions on building a flash image for gumstix&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Preparing flash / disk images for qemu =&lt;br /&gt;
&lt;br /&gt;
== Flash images ==&lt;br /&gt;
&lt;br /&gt;
The flash image emulates the flash memory on the Gumstix motherboard. It's a single file that has the size of the emulated flash memory (32MB in the case of the verdex board emulated by qemu). It will contain the same images as the real flash, at the same offsets:&lt;br /&gt;
&lt;br /&gt;
* The u-boot image at offset 0&lt;br /&gt;
* The root file system image at offset 256kB&lt;br /&gt;
* The kernel image at the end of the image offset 31MB&lt;br /&gt;
&lt;br /&gt;
The following 3 files are needed&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;u-boot-verdex-400-r1587.bin&amp;lt;/tt&amp;gt; - u-boot&lt;br /&gt;
* &amp;lt;tt&amp;gt;gumstix-basic-image-gumstix-custom-verdex.jffs2&amp;lt;/tt&amp;gt; - root file system &lt;br /&gt;
* &amp;lt;tt&amp;gt;uImage-2.6.21-r1-gumstix-custom-verdex.bin&amp;lt;/tt&amp;gt; - kernel.&lt;br /&gt;
&lt;br /&gt;
Except for the u-boot image which is not yet built by openembedded, those files can be found in the &amp;lt;tt&amp;gt;tmp/deploy/glibc/images/&amp;lt;/tt&amp;gt; sub-directory of &amp;lt;tt&amp;gt;gumstix-oe&amp;lt;/tt&amp;gt; after running bitbake.&lt;br /&gt;
&lt;br /&gt;
To assemble the image &amp;lt;tt&amp;gt;flash.img&amp;lt;/tt&amp;gt; run the following commands:&lt;br /&gt;
&lt;br /&gt;
 dd of=flash.img bs=128k count=256 if=/dev/zero&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc if=u-boot-verdex-400-r1587.bin&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc seek=2 if=gumstix-basic-image-gumstix-custom-verdex.jffs2&lt;br /&gt;
 dd of=flash.img bs=128k conv=notrunc seek=248 if=uImage-2.6.21-r1-gumstix-custom-verdex.bin&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_qemu]]&lt;/div&gt;</summary>
		<author><name>MatthieuHerrb</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=U-Boot_scripts&amp;diff=994</id>
		<title>U-Boot scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=U-Boot_scripts&amp;diff=994"/>
				<updated>2008-07-31T09:38:13Z</updated>
		
		<summary type="html">&lt;p&gt;MatthieuHerrb: try again&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Modifying U-Boot scripts =&lt;br /&gt;
&lt;br /&gt;
The main useful script is gumstix-factory.script which, if found on the MMC or CF card will be executed during boot. &lt;br /&gt;
&lt;br /&gt;
To generate a u-boot script that's executable, it has to be packed into an u-boot image using mkimage. &lt;br /&gt;
&lt;br /&gt;
Use your favorite text editor to create gumstix-factory.script.source, and then run the following command to generate the image:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n gumstix-factory.script -d gumstix-factory.script.source gumstix-factory.script&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_linux]]&lt;/div&gt;</summary>
		<author><name>MatthieuHerrb</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=U-Boot_scripts&amp;diff=993</id>
		<title>U-Boot scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=U-Boot_scripts&amp;diff=993"/>
				<updated>2008-07-31T09:36:44Z</updated>
		
		<summary type="html">&lt;p&gt;MatthieuHerrb: fix category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Modifying U-Boot scripts =&lt;br /&gt;
&lt;br /&gt;
The main useful script is gumstix-factory.script which, if found on the MMC or CF card will be executed during boot. &lt;br /&gt;
&lt;br /&gt;
To generate a u-boot script that's executable, it has to be packed into an u-boot image using mkimage. &lt;br /&gt;
&lt;br /&gt;
Use your favorite text editor to create gumstix-factory.script.source, and then run the following command to generate the image:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n gumstix-factory.script -d gumstix-factory.script.source gumstix-factory.script&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_Linux]]&lt;/div&gt;</summary>
		<author><name>MatthieuHerrb</name></author>	</entry>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=U-Boot_scripts&amp;diff=992</id>
		<title>U-Boot scripts</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=U-Boot_scripts&amp;diff=992"/>
				<updated>2008-07-31T09:35:17Z</updated>
		
		<summary type="html">&lt;p&gt;MatthieuHerrb: information on how to create a u-boot script&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Modifying U-Boot scripts =&lt;br /&gt;
&lt;br /&gt;
The main useful script is gumstix-factory.script which, if found on the MMC or CF card will be executed during boot. &lt;br /&gt;
&lt;br /&gt;
To generate a u-boot script that's executable, it has to be packed into an u-boot image using mkimage. &lt;br /&gt;
&lt;br /&gt;
Use your favorite text editor to create gumstix-factory.script.source, and then run the following command to generate the image:&lt;br /&gt;
&lt;br /&gt;
 mkimage -A arm -O linux -T script -C none -a 0 -e 0 -n gumstix-factory.script -d gumstix-factory.script.source gumstix-factory.script&lt;br /&gt;
&lt;br /&gt;
[[Category:How to - Linux]]&lt;/div&gt;</summary>
		<author><name>MatthieuHerrb</name></author>	</entry>

	</feed>