Web edits
[beagleboard.org.git] / db / 387.xml
blob534064533e4fae94c4c3d162475c51bbf4dc4a43
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <?xml-stylesheet type="text/xsl" href="helma.xsl"?>
3 <xmlroot xmlns:hop="http://www.helma.org/docs/guide/features/database">
4   <hopobject id="387" name="angstrom" prototype="Page" created="1221511249530" lastModified="1225809921685">
5   <hop:parent idref="386" prototyperef="Page"/>
6     <http_browser>Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.0.3) Gecko/2008092414 Firefox/3.0.3</http_browser>
7     <lang>en-us</lang>
8     <uri>angstrom</uri>
9     <http_host>beagleboard.org</http_host>
10     <time type="date">04.11.2008 08:45:21 CST</time>
11     <pseudoparent idref="386" prototyperef="Page"/>
12     <http_remotehost>127.0.0.1</http_remotehost>
13     <hopsession>127.0.0.76.31.18.1wxc3dxdgdtla</hopsession>
14     <user>blog.hangerhead.com</user>
15     <body>
16  &lt;h1&gt;Angtrom Demo from Windows&lt;/h1&gt;
17  &lt;p&gt;
18   This page seeks to describe steps to make use of the
19   &lt;a href=&quot;http://www.angstrom-distribution.org/demo/beagleboard/&quot;&gt;pre-built Angstrom distribution&lt;/a&gt;
20   mentioned in
21   &lt;a href=&quot;http://www.angstrom-distribution.org/beagleboard-demo-image-available&quot;&gt;Koen&apos;s blog,&lt;/a&gt;
22   but using only Windows.  This is due to the fact that many people trying Beagle and Angstrom for the first time have not previously used Linux.
23  &lt;/p&gt;
24  &lt;h2&gt;
25   Use existing
26   &lt;i&gt;dd&lt;/i&gt;
27   image to write the SD card
28  &lt;/h2&gt;
29  &lt;ol&gt;
30   &lt;li&gt;
31    Download
32    &lt;a href=&quot;http://www.chrysocome.net/dd&quot;&gt;dd for Windows&lt;/a&gt;
33    from
34    &lt;a href=&quot;http://www.chrysocome.net/downloads/dd-0.5.zip&quot;&gt;http://www.chrysocome.net/downloads/dd-0.5.zip&lt;/a&gt;
35   &lt;/li&gt;
36   &lt;li&gt;
37    Download compressed
38    &lt;i&gt;dd&lt;/i&gt;
39    image from
40    &lt;a href=&quot;http://s3.amazonaws.com/beagle/angstrom-demo-20080917.img.gz&quot;&gt;http://s3.amazonaws.com/beagle/angstrom-demo-20080917.img.gz&lt;/a&gt;
41   &lt;/li&gt;
42   &lt;li&gt;
43    Use
44    &lt;i&gt;gunzip&lt;/i&gt;
45    or
46    &lt;i&gt;zcat&lt;/i&gt;
47    to decompress the image and
48    &lt;i&gt;dd&lt;/i&gt;
49    to write the image to the SD card
50   &lt;/li&gt;
51   &lt;li&gt;
52    From the Beagle u-boot prompt, setup u-boot for booting kernel from uImage file on the first partition of the SD card and rootfs on the second partition on the SD card
53    &lt;pre&gt;setenv bootargs &apos;console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait video=omapfb:vram:2M,vram:4M nohz=off&apos;
54 setenv bootcmd &apos;mmcinit;fatload mmc 0 84000000 uImage;bootm 84000000&apos;
55 saveenv&lt;/pre&gt;
56   &lt;/li&gt;
57  &lt;/ol&gt;
58  &lt;h2&gt;
59   Resize
60   &lt;i&gt;dd&lt;/i&gt;
61   image to use the rest of the card
62   &lt;i&gt;
63    &lt;b&gt;(currently broken)&lt;/b&gt;
64   &lt;/i&gt;
65  &lt;/h2&gt;
66  &lt;ul&gt;
67   &lt;li&gt;
68    Boot ramdisk
69    &lt;pre&gt;setenv bootargs &apos;console=ttyS2,115200n8 console=tty0 root=/dev/ram0 rw ramdisk_size=32768 initrd=0x81600000,32M nohz=off&apos;
70 setenv bootcmd &apos;mmcinit;fatload mmc 0 80300000 uImage;fatload mmc 0 81600000 angstrom-console-rd.gz;bootm 80300000&apos;
71 saveenv&lt;/pre&gt;
72    Hold user button and press reset
73   &lt;/li&gt;
74   &lt;li&gt;
75    Resize ext3 partition
76    &lt;pre&gt;root@beagleboard:~# umount /media/mmcblk0p1/
77 root@beagleboard:~# umount /media/mmcblk0p2/
78 root@beagleboard:~# fdisk /dev/mmcblk0
80 Command (m for help): p
82 Disk /dev/mmcblk0: 4026 MB, 4026531840 bytes
83 255 heads, 63 sectors/track, 489 cylinders
84 Units = cylinders of 16065 * 512 = 8225280 bytes
86         Device Boot      Start         End      Blocks  Id System
87 /dev/mmcblk0p1   *           1          15      120456   c Win95 FAT32 (LBA)
88 /dev/mmcblk0p2              16          62      377527+ 83 Linux
90 Command (m for help): d
91 Partition number (1-4): 2
93 Command (m for help): n
94 Command action
95    e   extended
96    p   primary partition (1-4)
98 Partition number (1-4): 2
99 First cylinder (16-489, default 16): Using default value 16
100 Last cylinder or +size or +sizeM or +sizeK (16-489, default 489): Using default
101 value 489
103 Command (m for help): w
104 The partition table has been altered!
106 Calling ioctl() to re-read partition table
107  mmcblk0: p1 p2
108 root@beagleboard:~# kjournald starting.  Commit interval 5 seconds
109 EXT3 FS on mmcblk0p2, internal journal
110 EXT3-fs: mounted filesystem with ordered data mode.
112 root@beagleboard:~# opkg install e2fsprogs e2fsprogs-e2fsck
114 root@beagleboard:~# fsck.ext3 -f /dev/mmcblk0p2
115 e2fsck 1.38 (30-Jun-2005)
116 Pass 1: Checking inodes, blocks, and sizes
117 Pass 2: Checking directory structure
118 Pass 3: Checking directory connectivity
119 Pass 4: Checking reference counts
120 Pass 5: Checking group summary information
121 /dev/mmcblk0p2: 21678/94752 files (1.2% non-contiguous), 346421/377524 blocks
123 root@beagleboard:~# resize2fs /dev/mmcblk0p2
124 resize2fs 1.38 (30-Jun-2005)
125 Resizing the filesystem on /dev/mmcblk0p2 to 3807404 (1k) blocks.
127 root@beagleboard:~# resize2fs -d 1 -p /dev/mmcblk0p2
128 resize2fs 1.38 (30-Jun-2005)
129 Resizing the filesystem on /dev/mmcblk0p2 to 3807404 (1k) blocks.
130 Begin pass 1 (max = 418)
131 Extending the inode table     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
132 Segmentation fault&lt;/pre&gt;
133   &lt;/li&gt;
134  &lt;/ul&gt;
135  &lt;h2&gt;Build the &apos;dd&apos; image if you don&apos;t already have it&lt;/h2&gt;
136  &lt;ul&gt;
137   &lt;li&gt;
138    Download MLO, u-boot.bin, uImage, the latest *.rootfs.tar.bz2, and README.txt from
139    &lt;a href=&quot;http://www.angstrom-distribution.org/demo/beagleboard/&quot;&gt;http://www.angstrom-distribution.org/demo/beagleboard/&lt;/a&gt;
140   &lt;/li&gt;
141   &lt;li&gt;
142    Download a working 32MB ramdisk image from
143    &lt;a href=&quot;http://jkridner.s3.amazonaws.com/angstrom-console-rd.gz&quot;&gt;http://jkridner.s3.amazonaws.com/angstrom-console-rd.gz&lt;/a&gt;
144   &lt;/li&gt;
145   &lt;li&gt;
146    Search for other packages you might want to use at
147    &lt;a href=&quot;http://www.angstrom-distribution.org/repo/&quot;&gt;http://www.angstrom-distribution.org/repo/&lt;/a&gt;
148   &lt;/li&gt;
149   &lt;li&gt;
150    Use HP utility to format the SD card.  Details found at
151    &lt;a href=&quot;http://code.google.com/p/beagleboard/wiki/BeagleBootHwSetup&quot;&gt;http://code.google.com/p/beagleboard/wiki/BeagleBootHwSetup&lt;/a&gt;
152    &lt;br/&gt;
153    &lt;b&gt;Be sure to copy the MLO file first, then to copy over u-boot.bin, then all of the other downloaded files.&lt;/b&gt;
154   &lt;/li&gt;
155   &lt;li&gt;
156    Setup u-boot for booting kernel from the uImage file on the SD card and rootfs from the ramdisk (angstrom-console-rd.gz) on the SD card
157    &lt;pre&gt;setenv bootargs &apos;console=ttyS2,115200n8 console=tty0 root=/dev/ram0 rw ramdisk_size=32768 initrd=0x81600000,32M nohz=off&apos;
158 setenv bootcmd &apos;mmcinit;fatload mmc 0 80300000 uImage;fatload mmc 0 81600000 angstrom-console-rd.gz;bootm 80300000&apos;
159 saveenv&lt;/pre&gt;
160   &lt;/li&gt;
161   &lt;li&gt;
162    Copy files over to flash so that you have a copy after erasing the contents of the SD card:
163    &lt;pre&gt;opkg install ./mtd*
164 flash_eraseall /dev/mtd4
165 mount -t jffs2 /dev/mtdblock4 /media/hdd
166 cp /media/mmcblk0p1/* /media/hdd/&lt;/pre&gt;
167   &lt;/li&gt;
168   &lt;li&gt;
169    Re-partition the SD card
170    &lt;pre&gt;Command (m for help): p
172 Disk /dev/mmcblk0: 4026 MB, 4026531840 bytes
173 255 heads, 63 sectors/track, 489 cylinders
174 Units = cylinders of 16065 * 512 = 8225280 bytes
176         Device Boot      Start         End      Blocks  Id System
177 /dev/mmcblk0p1   *           1         490     3932128+  c Win95 FAT32 (LBA)
178 Partition 1 has different physical/logical endings:
179      phys=(488, 254, 63) logical=(489, 135, 30)
181 Command (m for help): d
182 Selected partition 1
184 Command (m for help): n
185 Command action
186    e   extended
187    p   primary partition (1-4)
189 Partition number (1-4): 1
190 First cylinder (1-489, default 1): Using default value 1
191 Last cylinder or +size or +sizeM or +sizeK (1-489, default 489): 15
193 Command (m for help): a
194 Partition number (1-4): 1
196 Command (m for help): n
197 Command action
198    e   extended
199    p   primary partition (1-4)
201 Partition number (1-4): 2
202 First cylinder (16-489, default 16): 16
203 Last cylinder or +size or +sizeM or +sizeK (16-489, default 489): Using default
204 value 489
206 Command (m for help): t
207 Partition number (1-4): 1
208 Hex code (type L to list codes): c
209 Changed system type of partition 1 to c (Win95 FAT32 (LBA))
211 Command (m for help): p
213 Disk /dev/mmcblk0: 4026 MB, 4026531840 bytes
214 255 heads, 63 sectors/track, 489 cylinders
215 Units = cylinders of 16065 * 512 = 8225280 bytes
217         Device Boot      Start         End      Blocks  Id System
218 /dev/mmcblk0p1   *           1          15      120456   c Win95 FAT32 (LBA)
219 /dev/mmcblk0p2              16          62      377527+ 83 Linux
221 Command (m for help): w
222 The partition table has been altered!
224 Calling ioctl() to re-read partition table
225  mmcblk0: p1 p2
226 root@beagleboard:/media/hdd# FAT: bogus number of reserved sectors
227 VFS: Can&apos;t find a valid FAT filesystem on dev mmcblk0p2.
229 umount /dev/mmcblk0p1
230 umount /dev/mmcblk0p2&lt;/pre&gt;
231   &lt;/li&gt;
232   &lt;li&gt;
233    Format the partitions on the SD card
234    &lt;pre&gt;root@beagleboard:/media/hdd# opkg update; opkg install dosfstools
235 root@beagleboard:/media/hdd# root@beagleboard:/media/hdd# mkfs.vfat -F 32 /dev/mmcblk0p1 -n SDCARD_X
236 mkfs.msdos 2.11 (12 Mar 2005)
237 root@beagleboard:/media/hdd# opkg install e2fsprogs-mke2fs
238 root@beagleboard:/media/hdd# mkfs.ext3 /dev/mmcblk0p2&lt;/pre&gt;
239   &lt;/li&gt;
240   &lt;li&gt;
241    Copy files onto SD card
242    &lt;pre&gt;root@beagleboard:/media/hdd# mount /dev/mmcblk0p1/ /media/mmcblk0p1/
243 root@beagleboard:/media/hdd# cp mlo /media/mmcblk0p1/MLO
244 root@beagleboard:/media/hdd# cp u-boot.bin /media/mmcblk0p1/
245 root@beagleboard:/media/hdd# cp uImage /media/mmcblk0p1/
246 root@beagleboard:/media/hdd# mkdir /media/mmcblk0p2
247 root@beagleboard:/media/hdd# mount /dev/mmcblk0p2 /media/mmcblk0p2
248 kjournald starting.  Commit interval 5 seconds
249 EXT3 FS on mmcblk0p2, internal journal
250 EXT3-fs: mounted filesystem with ordered data mode.
251 root@beagleboard:/media/hdd# cd /media/mmcblk0p2
252 root@beagleboard:/media/mmcblk0p2# tar xvjf /media/hdd/Angstrom-Beagleboard-demo-image
253 -glibc-ipk-2008.1-test-20080917-beagleboard.rootfs.tar.bz2
254 root@beagleboard:/media/mmcblk0p2# cd /media/hdd
255 root@beagleboard:/media/hdd# sync&lt;/pre&gt;
256   &lt;/li&gt;
257   &lt;li&gt;
258    Setup u-boot for booting kernel from uImage file on the first partition of the SD card and rootfs on the second partition on the SD card
259    &lt;pre&gt;setenv bootargs &apos;console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait video=omapfb:vram:2M,vram:4M nohz=off&apos;
260 setenv bootcmd &apos;mmcinit;fatload mmc 0 84000000 uImage;bootm 84000000&apos;
261 saveenv&lt;/pre&gt;
262   &lt;/li&gt;
263   &lt;li&gt;
264    Install useful apps
265    &lt;pre&gt;opkg update
266 opkg install vim screen tar bash
267 opkg install mtd-utils e2fsprogs e2fsprogs-e2fsck e2fsprogs-mke2fs dosfstools
268 opkg install git curl task-native-sdk cpp imagemagick
269 opkg install quake2 sugar smbfs&lt;/pre&gt;
270   &lt;/li&gt;
271   &lt;li&gt;
272    &lt;pre&gt;C:\&gt;dd --list
273 rawwrite dd for windows version 0.5.
274 Written by John Newbigin 
275 This program is covered by the GPL.  See copying.txt for details
276 Win32 Available Volume Information
277 \\.\Volume{f2d19eb4-23f6-11db-a984-806d6172696f}\
278   link to \\?\Device\HarddiskVolume1
279   fixed media
280   Mounted on \\.\c:
282 \\.\Volume{1bba7385-4935-11dd-80e5-00059a3c7800}\
283   link to \\?\Device\Harddisk1\DP(1)0-0+b
284   removeable media
285   Mounted on \\.\j:
287 C:\&gt;dd if=\\.\Volume{1bba7385-4935-11dd-80e5-00059a3c7800} of=angstrom-dd.img --size
288 rawwrite dd for windows version 0.5.
289 Written by John Newbigin 
290 This program is covered by the GPL.  See copying.txt for details
291 240912+0 records in
292 240912+0 records out&lt;/pre&gt;
293   &lt;/li&gt;
294  &lt;/ul&gt;
295 </body>
296     <http_language>en-us,en;q=0.8,ja;q=0.5,zh;q=0.3</http_language>
297     <http_referer>http://beagleboard.org/demo/angstrom/edit</http_referer>
298     <beagleirclog>000000</beagleirclog>
299   </hopobject>
300 </xmlroot>