Skip to content

Instantly share code, notes, and snippets.

@nrmmota
Last active January 12, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save nrmmota/4afbc80217d39730e4d4 to your computer and use it in GitHub Desktop.
Save nrmmota/4afbc80217d39730e4d4 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
@shyamjithkv
Copy link

hey... while i am running the script , i am getting the following error

ln -s libcec.so.1 libcec.so
ln -s libcec.so.1 libcec.so
ln: failed to create symbolic link ‘libcec.so’: File existsar -rc libcec.a mxc_hdmi-cec.o

make[1]: *** [libcec.so] Error 1
make[1]: Leaving directory /home/acsia/Desktop/imx6-Qt5/gist4afbc80217d39730e4d4-e94dea397594eb4ddb47e78714ab1a3183393cde/fsl_bsp_3.10.17_1.0.0_ga/imx-lib-3.10.17-1.0.0/hdmi-cec' make: *** [hdmi-cec] Error 2 make[1]: Leaving directory/home/acsia/Desktop/imx6-Qt5/gist4afbc80217d39730e4d4-e94dea397594eb4ddb47e78714ab1a3183393cde/fsl_bsp_3.10.17_1.0.0_ga/imx-lib-3.10.17-1.0.0/hdmi-cec'
make -C ipu all
make[1]: Entering directory /home/acsia/Desktop/imx6-Qt5/gist4afbc80217d39730e4d4-e94dea397594eb4ddb47e78714ab1a3183393cde/fsl_bsp_3.10.17_1.0.0_ga/imx-lib-3.10.17-1.0.0/ipu' cc -DIMX6Q -Wall -O2 -fPIC -c mxc_ipu_hl_lib_dummy.c -o mxc_ipu_hl_lib_dummy.o In file included from mxc_ipu_hl_lib_dummy.c:40:0: mxc_ipu_hl_lib.h:104:25: fatal error: linux/mxcfb.h: No such file or directory #include <linux/mxcfb.h> ^ compilation terminated. make[1]: *** [mxc_ipu_hl_lib_dummy.o] Error 1 make[1]: Leaving directory/home/acsia/Desktop/imx6-Qt5/gist4afbc80217d39730e4d4-e94dea397594eb4ddb47e78714ab1a3183393cde/fsl_bsp_3.10.17_1.0.0_ga/imx-lib-3.10.17-1.0.0/ipu'
make: *** [ipu] Error 2
./libfslvpuwrap: line 35: cd: /home/linaro/fsl_bsp_3.10.17_1.0.0_ga/: No such file or directory
./libfslvpuwrap: line 36: cd: libfslcodec-3.0.11: No such file or directory
./libfslvpuwrap: line 37: ./autogen.sh: No such file or directory
./libfslvpuwrap: line 38: cd: ../libfslparser-3.0.11: No such file or directory
./libfslvpuwrap: line 39: ./autogen.sh: No such file or directory
./libfslvpuwrap: line 40: cd: ../libfslvpuwrap-1.0.46: No such file or directory
./libfslvpuwrap: line 41: ./autogen.sh: No such file or directory
./libfslvpuwrap: line 42: cd: ../imx-vpu-3.10.17-1.0.0: No such file or directory
make: *** No rule to make target all'. Stop. make: *** No rule to make targetinstall'. Stop.
make: *** No rule to make target all'. Stop. make: *** No rule to make targetinstall'. Stop.
Reading package lists... Done

how to solve these dependencies.... thank you

@nrmmota
Copy link
Author

nrmmota commented Jun 29, 2015

Something is missing. No such library files. Perhaps new imx and libfsl versions changed something in the meantime. This gist will soon be 1y old.

Make sure you have those folders when libfslvpuwrap is compiling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment