Skip to content

Instantly share code, notes, and snippets.

@JosephMillsAtWork
Forked from nrmmota/libfslvpuwrap
Created January 12, 2018 05:03
Show Gist options
  • Save JosephMillsAtWork/ec76ea79eb586a9c980086a128f31b79 to your computer and use it in GitHub Desktop.
Save JosephMillsAtWork/ec76ea79eb586a9c980086a128f31b79 to your computer and use it in GitHub Desktop.
#!/bin/bash
cd /home/linaro
mkdir fsl_bsp_3.10.17_1.0.0_ga
cd fsl_bsp_3.10.17_1.0.0_ga
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//firmware-imx-3.10.17-1.0.0.bin
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//imx-lib-3.10.17-1.0.0.tar.gz
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//libfslparser-3.0.11.bin
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//libfslcodec-3.0.11.bin
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//imx-vpu-3.10.17-1.0.0.bin
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//libfslvpuwrap-1.0.46.bin
wget http://www.freescale.com/lgfiles/NMG/MAD/YOCTO//gpu-viv-bin-mx6q-3.10.17-1.0.0-hfp.bin
chmod +x *
# manually accept EULA!
./firmware-imx-3.10.17-1.0.0.bin
./gpu-viv-bin-mx6q-3.10.17-1.0.0-hfp.bin
tar xzf imx-lib-3.10.17-1.0.0.tar.gz
./imx-vpu-3.10.17-1.0.0.bin
./libfslcodec-3.0.11.bin
./libfslparser-3.0.11.bin
./libfslvpuwrap-1.0.46.bin
cd imx-lib-3.10.17-1.0.0
# this requires up-to-date kernel headers & might need to run twice!
make PLATFORM=IMX6Q all & sudo make PLATFORM=IMX6Q install
make PLATFORM=IMX6Q all & sudo make PLATFORM=IMX6Q install
cd ../gpu-viv-bin-mx6q-3.10.17-1.0.0-hfp/
cp -av * /
cd /usr/lib
rm libGAL-dfb.so
rm libGAL-wl.so
rm libGAL-x11.so
sudo ldconfig
cd /home/linaro/fsl_bsp_3.10.17_1.0.0_ga/
cd libfslcodec-3.0.11
./autogen.sh --prefix=/usr && make all && sudo make DESTDIR=/ install
cd ../libfslparser-3.0.11
./autogen.sh --prefix=/usr && make all && sudo make DESTDIR=/ install
cd ../libfslvpuwrap-1.0.46
./autogen.sh --prefix=/usr && make all && sudo make DESTDIR=/ install
cd ../imx-vpu-3.10.17-1.0.0
# yes this is needed twice to work
make PLATFORM=IMX6Q all & sudo make PLATFORM=IMX6Q install
make PLATFORM=IMX6Q all & sudo make PLATFORM=IMX6Q install
ldconfig
apt-get install bison flex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment