Port mplayer on s5pv210 Development Board Linux platform-Based on x210 Development Board

Source: Internet
Author: User

Linux and Android on the x210 Development Board share a set of kernels, except that different configurations are selected during compilation!

In addition, the Linux kernel and Android kernel are all packaged into xboot. bin. You only need to press the buttons to interact with the LCD at startup.

Select Linux or android.

During debugging, we can enter the Linux system, and the Linux File System is packaged into xboot. This xboot

Invincible!

To put it bluntly, we will port mplayer to the xboot-based Linux kernel:

Install the source file [see the CD]:
MPlayer-1.0rc2.tar.bz2
Libmad-0.15.1b.tar.gz
Step 1: extract the libmad-0.15.1b and install:
. /Configure -- enable-FPM = arm -- Host = arm-None-Linux-gnueabi -- disable-shared -- disable-debugging -- prefix =/usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/lib CC =/usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/bin/ARM-None-Linux-gnueabi-gcc
Make
The following error occurs:
C0: Error: Unrecognized command line option "-Fforce-Mem"
Modify makefile
Find the "Fforce-Mem" string in makefile and delete it. Cause: gcc3.4 or later, this option has been removed.
Make again
Make install
Step 2: unzip the MPlayer-1.0rc2 and install:
. /Configure -- cc =/usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/bin/ARM-None-Linux-gnueabi-GCC -- target = arm-None-Linux-gnueabi -- enable-static -- prefix =/tmp/mplayer-rc2 -- disable-win32dll -- disable-dvdread -- enable-fbdev -- disable-mencoder -- disable-live
-- Disable-mp3lib -- enable-mad -- enable-libavcodec_a -- language = zh_cn -- disable-armv5te -- disable-armv6 -- With-extraincdir =/usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/lib/include -- With-extralibdir =/usr /local/ARM/arm-none-linux-gnueabi-2010-09-50/lib
-- Host-CC = GCC -- enable-ossaudio
The following error is prompted:
Vo_ivtv.c: In function 'ivtv _ reset ':
Vo_ivtv.c: 79: 31: Error: storage size of 'sd' isn' t known
Vo_ivtv.c: 80: 32: Error: storage size of 'sd1' isn' t known
Vo_ivtv.c: 84: 14: Error: 'ivtv _ stop_fl_hide_frame 'undeclared (first use in this function)
Vo_ivtv.c: 84: 14: Note: Each undeclared identifier is reported only once for each function it appears in
Vo_ivtv.c: 87: 23: Error: 'ivtv _ ioc_stop_decode' undeclared (first use in this function)
Vo_ivtv.c: 97: 23: Error: 'ivtv _ ioc_start_decode' undeclared (first use in this function)
Vo_ivtv.c: 80: 32: Warning: unused variable 'sd1'
Vo_ivtv.c: 79: 31: Warning: unused variable 'sd'
Make [1]: *** [vo_ivtv.o] Error 1
Solution: when installing mplayer:./configure -- disable-ivtv
That is:
Sudo. /configure -- cc =/usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/bin/ARM-None-Linux-gnueabi-GCC -- target = arm-None-Linux-gnueabi -- enable-static -- prefix =/tmp/mplayer-rc2 -- disable-win32dll -- disable-dvdread -- enable-fbdev -- disable-mencoder -- disable-live
-- Disable-mp3lib -- enable-mad -- enable-libavcodec_a -- language = zh_cn -- disable-armv5te -- disable-armv6 -- With-extraincdir =/usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/lib/include -- With-extralibdir =/usr /local/ARM/arm-none-linux-gnueabi-2010-09-50/lib
-- Host-CC = GCC -- enable-ossaudio -- disable-ivtv -- disable-TV
Make clean before configuration.
Make again and the following error is prompted:
IOCTL. C: In function 'ioctl _ readcopyright ':
IOCTL. C: 273: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ readdisckey ':
IOCTL. C: 446: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ readtitlekey ':
IOCTL. C: 610: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ reportagid ':
IOCTL. C: 734: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ reportchallenge ':
IOCTL. C: 868: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ reportasf ':
IOCTL. C: 1001: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ reportkey1 ':
IOCTL. C: 1130: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ invalidateagid ':
IOCTL. C: 1241: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ sendchallenge ':
IOCTL. C: 1378: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ sendkey2 ':
IOCTL. C: 1515: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ reportrpc ':
IOCTL. C: 1670: 5: Error: # error "DVD IOCTLs are unavailable on this system"
IOCTL. C: In function 'ioctl _ sendrpc ':
IOCTL. C: 1797: 5: Error: # error "DVD IOCTLs are unavailable on this system"
Make [1]: *** [IOCTL. O] Error 1
Make [1]: Leaving directory '/home/lqm/tools/mplayers/MPlayer-1.0rc2/libdvdcss'
Make: *** [libdvdcss/libdvdcss. A] Error 2
Find the corresponding line of IOCTL. C, all screen drop, and then compile successfully.
Step 3: copy the generated mplayer to an external SD card, copy the MP3 or video file to be played, and then insert the SD card
The SD card slot on the right side of the x210 Development Board.
Step 4: mount the SD card and play audio and video files:
Mount/dev/mmcblk1p1/tmp
CD/tmp
./Mplayer *. MP3
/Mplayer *. MP4
If you do not want to compile it yourself, you can directly copy the compiled mplayer from the disc.

Here is a diagram of the x210 Development Board:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.