Difference between revisions of "Slideshow"
From ArmadeusWiki
(→Installation) |
(→Usage (depending on your LCD size)) |
||
| Line 31: | Line 31: | ||
==Usage (depending on your LCD size)== | ==Usage (depending on your LCD size)== | ||
| − | * | + | * put some image files on a SD/MMC card and insert this card to your APF: |
| + | <pre class="apf"> | ||
| + | imx-mmc imx-mmc.0: card inserted | ||
| + | mmc0: host does not support reading read-only switch. assuming write-enable. | ||
| + | mmc0: new SD card at address 01b0 | ||
| + | mmcblk0: mmc0:01b0 SD512 500224KiB | ||
| + | mmcblk0: p1 | ||
| + | </pre> | ||
| + | * mount the card: | ||
| + | <pre class="apf"> | ||
| + | # mount /dev/mmcblk0p1 /mnt/mmc/ | ||
| + | </pre> | ||
| + | * launch the slideshow (here for a 480x272 LCD screen and a system without mouse): | ||
<pre class="apf"> | <pre class="apf"> | ||
# export SDL_NOMOUSE=1 | # export SDL_NOMOUSE=1 | ||
| − | # /usr/bin/slideshow -width 480 -height 272 -advance 5 -random -tran random / | + | # /usr/bin/slideshow -width 480 -height 272 -advance 5 -random -tran random /mnt/mmc |
</pre> | </pre> | ||
| + | * you can also create a directory on your APF rootfs, download some images to it and launch slideshow from here. | ||
Latest revision as of 15:51, 1 May 2009
This page describes how to use the "Slideshow" Buildroot package
Installation
- Select it in Buildroot (requires SDL & SDL_image):
$ make menuconfig
Package Selection for the target --->
[*] Graphic libraries and applications (graphic/text) --->
[*] SDL
...
[*] SDL_image
SDL_image file format support --->
[*] enable BMP file format support (NEW)
[*] enable GIF file format support
[*] enable JPEG file format support
[ ] enable LBM file format support (NEW)
[ ] enable PCX file format support (NEW)
[*] enable PNG file format support
...
...
[*] Slideshow
- Save your configuration and rebuild your rootfs:
$ make
- Reflash the rootfs
Usage (depending on your LCD size)
- put some image files on a SD/MMC card and insert this card to your APF:
imx-mmc imx-mmc.0: card inserted mmc0: host does not support reading read-only switch. assuming write-enable. mmc0: new SD card at address 01b0 mmcblk0: mmc0:01b0 SD512 500224KiB mmcblk0: p1
- mount the card:
# mount /dev/mmcblk0p1 /mnt/mmc/
- launch the slideshow (here for a 480x272 LCD screen and a system without mouse):
# export SDL_NOMOUSE=1 # /usr/bin/slideshow -width 480 -height 272 -advance 5 -random -tran random /mnt/mmc
- you can also create a directory on your APF rootfs, download some images to it and launch slideshow from here.