Showing posts with label demo. Show all posts
Showing posts with label demo. Show all posts

Monday, October 26, 2009

Angstrom Demo

Download Files:
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): 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

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
Running the demo:
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
mmcinit
fatload mmc 0 0x80200000 x-load.bin.ift
nandecc hw
nand erase 0 80000
nand write.i 0x80200000 0 80000
6) Set the Environment

setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootfstype=ext3 rootwait omapfb.mode=dvi:1024x768MR-16@60'
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
7) Boot the SD card
boot

Friday, October 16, 2009

Gnome Demo

In order to make gnome demo work on beagle board,
1) download the required files from http://www.sakoman.com/component /option,com_phocadownload/Itemid,60/id,1/view,category/
2)Prepare a bootable SD card. Instructions for making a bootable SD card: http://www.sakoman.com/OMAP3/preparing-a-bootable-sd-card.html.

In order to run this demo on Beagle Board:
1)Insert the mmc card in the beagleboard.
2)Connect LCD monitor using a DVI-D cable.
3)Connect the beagle board to a pc using a serial cable, and use minicom to talk to the board.
4)Start Minicom
5)Power on the Beagle Board.
6)Stop the autoboot by pressing any key.
7)Set the environment:
setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 omapfb.vram=1:4M,2:4M omapfb.mode=dvi:1024x768-16@60'
For Pico Projector: setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 omapfb.vram=1:4M,2;4M omapfb.mode=dvi:640x480MR-16@60'
setenv bootcmd 'mmcinit; fatload mmc 0 0x80300000 uImage; bootm 0x80300000'

8)boot
9)Enjoy!!!

This Image includes:
1)Gnome root file system
2)Basic system preferences and configuration applets
3)Web browser, email, and chat applications
4)Word processor, spreadsheet, graphics, photo, and PDF viewing applications
5)Media player with DVD playback
6)Gnome games
7)Calculator applet
8)Disk usage analyzer and log file viewing tools
9)Command line package manager (opkg)

Saturday, September 19, 2009

nthCode player demo



This video is of nthcode player running on beagle board. The I did uses a keyboard and mouse instead of a TV remote. Nthcode player demo works on only Revision b beagle board. The demo can be booted from an SD card and videos for this demo can be played from a USB flash drive. The file system of the USB flash drive has to be FAT.

In order to make this demo, I had to:
1) download the image from http://www.nthcode.com/player/player.html
2) prepare a bootable SD card. instructions on http://www.sakoman.com/OMAP3/preparing-a-bootable-sd-card.html
3) download all the boot files (MLO, u-boot, uImage-bb) on the "boot" partition of the SD card.
4) untar the "rootfs" in the "rootfs" partition.
5) Change the bootcmd: setenv bootcmd 'mmc init; fatload mmc 0 0x80300000 uImage-bb; bootm 0x80300000'
6) Change the bootargs:
Pico Projector: setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 omapfb.vram=1:4M,2:4M omapfb.mode=dvi:640x480MR-16@60'
HD monitor: setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 omapfb.vram=1:4M,2:4M omapfb.mode=dvi:hd720-24@60'
VGA monitor: setenv bootargs 'console=ttyS2,115200n8 console=tty0 root=/dev/mmcblk0p2 rootwait rootfstype=ext3 omapfb.vram=1:4M,2:4M omapfb.mode=dvi:640x480-16@60'
7) This demo only plays .flv, .avi and .mp4 videos. And only .mp3 audios.
8) The audio codec of the video I was playing was .aac So I had to change it to .mp3 using "super" http://www.erightsoft.com/SUPER.html
9) If you need to convert your video/audio files you can use the following steps, if not skip to the next step. Download & Install "super" and follow this steps in order to change video in "super"
- Change the output container format to AVI
- For video select the "Stream Copy" option
- For audio make sure the output audio codec is set to mp3
- Click "Encode (Active Files)" button.
- The resulting AVI file can be copied to a USB flash drive and played on nthplayer
10) In order to play video files, insert the flash drive after the demo is running. In the demo, go to sources and you will find the symbol of the flash drive under loca files. Click on that symbol, which will list the videos on the flash drive. Click on the video you want to play.