i.MX31 PDK Board DirectFB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX31 PDK Board DirectFB

i.MX31 PDK Board DirectFB

To fix LCD problem:


Download DirectFB patches (click here).

Copy patches and kernel spec to LTIB:

tar zxvf DirectFB-patches-specs.tar.gz 
cd specs 
cp kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch /opt/freescale/pkgs/ 
cp kernel.spec.in ~/ltib-imx31pdk-r14/config/platform/imx/

Remove old kernel:

~/ltib-imx31pdk-r14$ rm -rf rpm/BUILD/linux* 

Issue LTIB to decompress kernel and apply patches:

~/ltib-imx31pdk-r14$ ./ltib -p kernel -m prep 

You will see at end:

+ echo Patch #1 (kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch): 
Patch #1 (kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch): 
+ patch -p1 -s 
+ exit 0 
Build time for kernel: 21 seconds

It means which kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch was applied correctly!

Now compile your kernel:

~/ltib-imx31pdk-r14$ ./ltib -p kernel -m scbuild 

Install it on your rootfs:

~/ltib-imx31pdk-r14$ ./ltib -p kernel -m scdeploy 

To fix Touch-Screen


Copy specs to LTIB:

cd specs 
cp tslib.spec ~/ltib-imx31pdk-r14/dist/lfs-5.1/tslib/ 
cp DirectFB.spec ~/ltib-imx31pdk-r14/dist/lfs-5.1/DirectFB/

Remove old directories:

~/ltib-imx31pdk-r14$ rm -rf rpm/BUILD/tslib-1.0/ 
~/ltib-imx31pdk-r14$ rm -rf rpm/BUILD/DirectFB-1.1.0/


Edit your pkg_map and change tslib order. DirectFB needs tslib, then this lib needs be compiled first:

[alan@localhost ltib-imx31pdk-r14]$ vi config/userspace/pkg_map
 ... 
PKG_TSLIB                                      = tslib
PKG_DIRECTFB                               = DirectFB 
PKG_DIRECTFB_EXAMPLES            = DirectFB-examples 
...

Now run:

alan@armagedon:~/ltib-imx31pdk-r14$ ./ltib -c 

Then select DirectFB and tslib packages.


To test Touch-Screen


mx31# mknod /dev/input/tslib0 c 13 65 
mx31# export TSLIB_TSDEVICE=/dev/input/tslib0 
mx31# rm -f /etc/pointercal mx31# ts_calibrate 
mx31# df_window


Comments

Heloo,

How do i download your patches? The link doesnt work. It takes me to the imx community main page.

%3CLINGO-SUB%20id%3D%22lingo-sub-1120483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX31%20PDK%20Board%20DirectFB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120483%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETo%20fix%20LCD%20problem%3A%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EDownload%20DirectFB%20patches%20(%3CA%20class%3D%22text%20external%22%20href%3D%22http%3A%2F%2Felinux.org%2FPorting_DirectFB%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Eclick%20here%3C%2FA%3E).%3C%2FP%3E%3CP%3ECopy%20patches%20and%20kernel%20spec%20to%20LTIB%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Etar%20zxvf%20DirectFB-patches-specs.tar.gz%20%0Acd%20specs%20%0Acp%20kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch%20%2Fopt%2Ffreescale%2Fpkgs%2F%20%0Acp%20kernel.spec.in%20~%2Fltib-imx31pdk-r14%2Fconfig%2Fplatform%2Fimx%2F%0A%3C%2FPRE%3E%3CP%3ERemove%20old%20kernel%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E~%2Fltib-imx31pdk-r14%24%20rm%20-rf%20rpm%2FBUILD%2Flinux*%20%3C%2FPRE%3E%3CP%3EIssue%20LTIB%20to%20decompress%20kernel%20and%20%3CA%20href%3D%22http%3A%2F%2Fwww.imxdev.org%2Fwiki%2Findex.php%3Ftitle%3DI.MX31_PDK_Board_DirectFB%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%20style%3D%22text-decoration%3A%20underline%3B%22%20title%3D%22Powered%20by%20Text-Enhance%22%20target%3D%22_blank%22%3Eapply%3C%2FA%3E%20patches%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E~%2Fltib-imx31pdk-r14%24%20.%2Fltib%20-p%20kernel%20-m%20prep%20%3C%2FPRE%3E%3CP%3EYou%20will%20see%20at%20end%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%2B%20echo%20Patch%20%231%20(kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch)%3A%20%0APatch%20%231%20(kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch)%3A%20%0A%2B%20patch%20-p1%20-s%20%0A%2B%20exit%200%20%0ABuild%20time%20for%20kernel%3A%2021%20seconds%0A%3C%2FPRE%3E%3CP%3EIt%20means%20which%20kernel-imx31_3stack-2.6.24-DirectFB-LCD-fix.patch%20was%20applied%20correctly!%3C%2FP%3E%3CP%3ENow%20compile%20your%20kernel%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E~%2Fltib-imx31pdk-r14%24%20.%2Fltib%20-p%20kernel%20-m%20scbuild%20%3C%2FPRE%3E%3CP%3EInstall%20it%20on%20your%20rootfs%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E~%2Fltib-imx31pdk-r14%24%20.%2Fltib%20-p%20kernel%20-m%20scdeploy%20%3C%2FPRE%3E%3CHR%20%2F%3E%3CP%3ETo%20fix%20Touch-Screen%3C%2FP%3E%3CHR%20%2F%3E%3CP%3ECopy%20specs%20to%20LTIB%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Ecd%20specs%20%0Acp%20tslib.spec%20~%2Fltib-imx31pdk-r14%2Fdist%2Flfs-5.1%2Ftslib%2F%20%0Acp%20DirectFB.spec%20~%2Fltib-imx31pdk-r14%2Fdist%2Flfs-5.1%2FDirectFB%2F%0A%3C%2FPRE%3E%3CP%3ERemove%20old%20directories%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E~%2Fltib-imx31pdk-r14%24%20rm%20-rf%20rpm%2FBUILD%2Ftslib-1.0%2F%20%0A~%2Fltib-imx31pdk-r14%24%20rm%20-rf%20rpm%2FBUILD%2FDirectFB-1.1.0%2F%0A%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%20Edit%20your%20pkg_map%20and%20change%20tslib%20order.%20DirectFB%20needs%20tslib%2C%20then%20this%20lib%20needs%20be%20compiled%20first%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3E%5Balan%40localhost%20ltib-imx31pdk-r14%5D%24%20vi%20config%2Fuserspace%2Fpkg_map%0A%20...%20%0APKG_TSLIB%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3D%20tslib%0APKG_DIRECTFB%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3D%20DirectFB%20%0APKG_DIRECTFB_EXAMPLES%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3D%20DirectFB-examples%20%0A...%0A%3C%2FPRE%3E%3CP%3ENow%20run%3A%3C%2FP%3E%3CPRE%20class%3D%22jive-pre%22%3Ealan%40armagedon%3A~%2Fltib-imx31pdk-r14%24%20.%2Fltib%20-c%20%3C%2FPRE%3E%3CP%3EThen%20select%20DirectFB%20and%20tslib%20packages.%3C%2FP%3E%3CHR%20%2F%3E%3CP%3ETo%20test%20Touch-Screen%3C%2FP%3E%3CHR%20%2F%3E%3CPRE%20class%3D%22jive-pre%22%3Emx31%23%20mknod%20%2Fdev%2Finput%2Ftslib0%20c%2013%2065%20%0Amx31%23%20export%20TSLIB_TSDEVICE%3D%2Fdev%2Finput%2Ftslib0%20%0Amx31%23%20rm%20-f%20%2Fetc%2Fpointercal%20mx31%23%20ts_calibrate%20%0Amx31%23%20df_window%0A%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1120484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20i.MX31%20PDK%20Board%20DirectFB%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1120484%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHeloo%2C%3C%2FP%3E%3CP%3EHow%20do%20i%20download%20your%20patches%3F%20The%20link%20doesnt%20work.%20It%20takes%20me%20to%20the%20imx%20community%20main%20page.%3C%2FP%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎09-10-2020 02:47 AM
Updated by: