From ArmadeusWiki
Jump to: navigation, search

This page describes how to use the "Slideshow" Buildroot package


  • 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.