http://www.angstrom-distribution.org/demo/beagleboard/Angstrom-Beagleboard-demo-image-glibc-ipk-2009.X-stable-20090612--beagleboard.rootfs.tar.bz2
http://www.angstrom-distribution.org/demo/beagleboard/MLO
http://www.angstrom-distribution.org/demo/beagleboard/u-boot.bin
http://www.angstrom-distribution.org/demo/beagleboard/uImage-2.6.29-r47-beagleboard.bin
http://www.angstrom-distribution.org/demo/beagleboard/x-load.bin.ift
In order to make Angstrom Image:
1) Insert the sd card in the computer and unmount it auto-mounted
$ sudo umount /dev/sdb
2) Zero out the SD card
$ sudo dd if=/dev/zero of=/dev/sdb bs=822906
3) Start fdisk, and partition
$ sudo fdisk /dev/sdb
Command (m for help): pRunning the demo:
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): x
Expert Command (m for help): h
Number of heads (1-256, default xxx): 255
Expert Command (m for help): s
Number of sectors (1-63, default xxx): 63
NOTE: In order to calculate the number of cylinders:
the number of Bytes on the SD Card (from above) / 255 / 63 / 512
Expert Command (m for help): c
Number of cylinders (1-256, default xxx): [enter the number you calculated]
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-245, default 1): [(press Enter)]
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-245, default 245): +50
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): c
Changed system type of partition 1 to c (W95 FAT32 (LBA))
Command (m for help): a
Partition number (1-4): 1
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (52-245, default 52): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, default 245): [(press Enter)]
Using default value 245
Command (m for help): p
Disk /dev/sdc: 2021 MB, 2021654528 bytes
255 heads, 63 sectors/track, 245 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 51 409626 c W95 FAT32 (LBA)
/dev/sdc2 52 245 1558305 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.
4) Format the partitions
$ sudo mkfs.msdos -F 32 /dev/sdc1 -n Beagle_Boot
mkfs.msdos 2.11 (12 Mar 2005)
$ sudo mkfs.ext3 -L Angstrom_Demo /dev/sdc2
mke2fs 1.40-WIP (14-Nov-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
195072 inodes, 389576 blockshttp://www.angstrom-distribution.org/demo/beagleboard/x-load.bin.ift
19478 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=402653184
12 block groups
32768 blocks per group, 32768 fragments per group
16256 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information:
5) Unplug, and replug in your SD card, and it should now automount the two partitions that you created.
6) Copy files in the Beagle_Boot partition
$ sudo cp MLO /media/card/
$ sudo cp u-boot.bin /media/card/
$ sudo cp uImage-2.6.29-r47-beagleboard.bin /media/card/uImage
$ sudo cp x-load.bin.ift /media/card/
7) Untar the file system
$ sudo tar -xvjf /media/Angstrom_Demo/Angstrom...bz2
8) Unmount the partitions
$ sudo umount /dev/sdb1
$ sudo umount /dev/sdb2
1) start a terminal program: Minicom or Tera Term
2) insert the SD card in the beagle board
3) power on the beagle board
4) stop the auto-boot by pressing Enter
5) type the below commands
mmcinit6) Set the Environment
fatload mmc 0 0x80200000 x-load.bin.ift
nandecc hw
nand erase 0 80000
nand write.i 0x80200000 0 80000
setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait omapfb.mode=dvi:1024x768MR-16@60'7) Boot the SD card
FOR PICO: setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait omapfb.mode=dvi:640x480MR-16@60'
setenv bootcmd 'mmcinit; fatload mmc 0 0x80300000 uImage; bootm 0x80300000'
saveenv
boot
No comments:
Post a Comment