i.MX Processors Knowledge Base

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

i.MX Processors Knowledge Base

Discussions

Sort by:
Audio, from a file gst-launch filesrc location=test.wav ! wavparse ! mfw_mp3encoder ! filesink location=output.mp3 Audio Recording gst-launch alsasrc num-buffers=$NUMBER blocksize=$SIZE ! mfw_mp3encoder ! filesink location=output.mp3 # where #     duration = $NUMBER*$SIZE*8 / (samplerate *channel *bitwidth) # Example: 60 seconds recording # gst-launch alsasrc num-buffers=240 blocksize=44100 ! mfw_mp3encoder ! filesink location=output.mp3 # # To verify that is correct, do a normal audio playback gst-launch filesrc location=output.mp3 typefind=true ! beepdec ! audioconvert ! 'audio/x-raw-int,channels=2' ! alsasink Video, from a test source gst-launch videotestsrc ! queue ! vpuenc ! matroskamux ! filesink location=./test.avi Video, from a file gst-launch filesrc location=sample.yuv blocksize=$BLOCK_SIZE ! 'video/x-raw-yuv,format=(fourcc)I420, width=$WIDTH, height=$HEIGHT, framerate=(fraction)30/1' ! vpuenc codec=$CODEC ! matroskamux ! filesink location=output.mkv sync=false # where #     BLOCK_SIZE = WIDTH * HEIGHT * 1.5 #     CODEC = 0(MPEG4), 5(H263), 6(H264) or 12(MJPG). # # For example, encoding a CIF raw file gst-launch filesrc location=sample.yuv blocksize=152064 ! 'video/x-raw-yuv,format=(fourcc)I420, width=352, height=288, framerate=(fraction)30/1' ! vpuenc codec=0 ! matroskamux ! filesink location=sample.mkv sync=false Video, from Web camera # when the web cam is connected, the device node /dev/video0 should be present. In order to test the camera, without encoding gst-launch v4l2src ! mfw_v4lsink # in recording, run: # gst-launch v4l2src num-buffers=-1 ! queue max-size-buffers=2 ! vpuenc codec=0 ! matroskamux ! filesink location=output.mkv sync=false # # where sync=false indicates filesink to to use a clock sync # # In case a specific width/height is needed, just add the filter caps gst-launch v4l2src num-buffers=-1  ! 'video/x-raw-yuv,format=(fourcc)I420, width=352, height=288, framerate=(fraction)30/1' ! queue ! vpuenc codec=0 ! matroskamux ! filesink location=output.mkv sync=false # # In case you want to see in the screen what the camera is capturing, add a tee element # gst-launch v4l2src num-buffers=-1 ! tee name=t ! queue ! mfw_v4lsink t. ! queue ! vpuenc codec=0 ! matroskamux ! filesink location=output.mkv sync=false Video, from Parallel/MIPI camera # The camera driver needs to be loaded before executing the pipeline, refer to the BSP document to see which driver to load # MIPI (J5 port): modprobe ov5640_camera_mipi modprobe mxc_v4l2_capture   # Parallel (J9 port): modprobe ov5642_camera modprobe mxc_v4l2_capture   gst-launch mfw_v4lsrc ! queue ! vpuenc codec=0 ! matroskamux ! filesink location=output.mkv sync=false   # Do a 'gst-inspect mfw_v4lsrc' or 'gst-inspect vpuenc' to see other possible settings (resolution, fps, codec, etc.)
View full article
i.MX6X_3.14.28_内核驱动代码与定制_devicetree_V1-20150918.doc
View full article
The LMEM Base address is 0xE0082000u rather than 0xE0002000u.So please apply the patch to FreeRTOS_BSP_1.0.0_iMX6SX to enable the M4 cache, or the cache was not be enabled by default.It may have the big impact to your product performance. diff --git a/platform/devices/MCIMX6X/include/MCIMX6X_M4.h b/platform/devices/MCIMX6X/include/MCIMX6X_M4.h index 31d6eb2..3b9d240 100644 --- a/platform/devices/MCIMX6X/include/MCIMX6X_M4.h +++ b/platform/devices/MCIMX6X/include/MCIMX6X_M4.h @@ -25584,7 +25584,7 @@ typedef struct { /* LMEM - Peripheral instance base addresses */ /** Peripheral LMEM base address */ -#define LMEM_BASE                                (0xE0002000u) +#define LMEM_BASE                                (0xE0082000u) /** Peripheral LMEM base pointer */ #define LMEM                                   ((LMEM_Type *)LMEM_BASE) #define LMEM_BASE_PTR                            (LMEM)
View full article
恩智浦BSP的内核定制 ........................................... 103 6.1 IO管脚配置与Pinctrl驱动 .................................... 103 6.2 新板bringup ........................................................ 118 6.3 更改调试串口: .................................................. 127 6.4 uSDHC设备定制(eMMC flash,SDcard, SDIOcard) 133 6.5 LVDS LCD 驱动定制 .......................................... 142 6.6 GPIO_Key 驱动定制 .......................................... 145 6.7 GPIO_LED 驱动定制 ......................................... 149 6.8 Fuse nvram驱动 ................................................. 152 6.9 SPI与SPI Slave驱动 ........................................... 153 6.10 USB 3.0 TypeC 改成 USB 3.0 TypeA(未验证) ... 160 6.11 汽车级以太网驱动定制 ....................................... 160
View full article
tarball created by Curtis Wald and Leonardo Sandoval containing patches to fix ltib issues for Ubuntu 12.04.   Steps to use this tarball   # go to ltib folder $ cd <ltib full path>   # untar the tarball $ tar -xzvf ubuntu-ltib-patch.tgz   # go to untared folder $ cd ubuntu-ltib-patch   #install patches $ ./install-patches.sh <ltib full path>     You above steps are contained in this script:   https://community.freescale.com/servlet/JiveServlet/downloadBody/93455-102-2-2825/patch-ltib-ubuntu12.04.sh,   so instead of typing them manually you can execute the following command   curl -L https://community.freescale.com/servlet/JiveServlet/downloadBody/93455-102-2-2825/patch-ltib-ubuntu12.04.sh | bash   under your ltib folder.
View full article
 This article uses i.MX Linux® User's Guide, Rev. L4.1.15_2.1.0-ga, 05/2017 as an example (it may be found as attachment), please refer to section 4.5.12 (How to build U-Boot and Kernel in standalone environment).   First, generate a development SDK, which includes the tools, toolchain, and small rootfs to compile against to put on the host machine.     • Generate an SDK from the Yocto Project build environment with the following command. To set up the Yocto Project build environment, follow the steps in the i.MX Yocto Project User's Guide (IMXLXYOCTOUG). In the following command, set <Target-Machine> to the machine you are building for.   <Target-Machine> may be one of the following :   • imx6qpsabreauto • imx6qpsabresd • imx6ulevk • imx6ull14x14evk • imx6ull9x9evk • imx6dlsabreauto • imx6dlsabresd • imx6qsabreauto • imx6qsabresd • imx6slevk • imx6sllevk • imx6solosabreauto • imx6solosabresd • imx6sxsabresd • imx6sxsabreauto • imx7dsabresd  The «populate_sdk» generates an script file that sets up environment without Yocto Project. This SDK should be updated for each release to pick up the latest headers, toolchain, and tools from the current release.   $ DISTRO=fsl-imx-fb MACHINE=<Target-Machine> source fsl-setup-release.sh -b build-fb   $ DISTRO=fsl-imx-fb MACHINE=<Target-Machine> bitbake core-image-minimal -c populate_sdk   or   $ bitbake meta-toolchain       • From the build directory, the bitbake was run in, copy the sh file in tmp/deploy/sdk to the host machine to build on and execute the script to install the SDK. The default location is in /opt but can be placed anywhere on the host machine.     Note. Each time you wish to use the SDK in a new shell session, you need to source the environment setup script e.g.    $ . /opt/fsl-imx-fb/4.1.15-2.0.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi   or    $ source /opt/fsl-imx-fb/4.1.15-2.0.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi   From  Yocto Project Mega-Manual  Note By default, this toolchain does not build static binaries. If you want to use the toolchain to build these types of libraries, you need to be sure your image has the appropriate static development libraries. Use the  IMAGE_INSTALL  variable inside your  local.conf  file to install the appropriate library packages. Following is an example using  glibc  static development libraries:      IMAGE_INSTALL_append = " glibc-staticdev"   On the host machine, these are the steps to build U-Boot and Kernel:  • On the host machine, set the environment with the following command before building.   $ export CROSS_COMPILE=/opt/fsl-imx-fb/4.1.15/environment-setup-cortexa9hf-vfp-neon-pokylinux-gnueabi   $ export ARCH=arm • To build U-Boot, find the configuration for the target boot. In the following example, i.MX 6ULL is the target.     Download source by cloning with   $ git clone http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git -b imx_v2016.03_4.1.15_2.0.0_ga   $ cd uboot-imx $ make clean $ make mx6ull_14x14_evk_defconfig $ make u-boot.imx   • To build the kernel, execute the following commands:   Download source by cloning with   $ git clone http://git.freescale.com/git/cgit.cgi/imx/linux-imx.git -b imx_4.1.15_2.0.0_ga   $ cd linux-imx $ make defconfig $ make   • To build an application (Hello World) as test.c:   $ source /opt/fsl-imx-fb/4.1.15-2.0.0/environment-setup-cortexa9hf-neon-poky-linux-gnueabi $ cd ~/test/ $ arm-poky-linux-gnueabi-gcc --sysroot=/opt/fsl-imx-fb/4.1.15-2.0.0/sysroots/cortexa9hf-neon-poky-linux-gnueabi -mfloat-abi=hard test.c To check if the the compiled code (a.out) is ARM executable   $ file ./a.out   ./a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=0e5c22dcf021748ead2c0bd51a4553cb7d38f6f2, not stripped   Copy file a.out to target Linux filesystem and before run it check again :   root@imx6ul7d:/unit_tests/1# file a.out   a.out: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 2.6.32, BuildID[sha1]=0e5c22dcf021748ead2c0bd51a4553cb7d38f6f2, not stripped   To define what Linux libs are needed to run our application :   root@imx6ul7d:/unit_tests/1# ldd a.out     linux-vdso.so.1 (0x7ee93000)   libc.so.6 => /lib/libc.so.6 (0x76e64000)   /lib/ld-linux-armhf.so.3 (0x76f9d000)   If some libs are not located in the filesystem you can observe the following message :   -sh: root@imx6ul7d:/unit_tests/1#./a.out: No such file or directory   Finally - run a.out:   root@imx6ul7d:/unit_tests/1# ./a.out Hello World root@imx6ul7d:/unit_tests/1#
View full article
Question: How do I add the opencore amrnb plugin to be the default for amrnb for use with playbin2? With a .3gp file to play and audio amrnb encoded, amr plugins do not work ( i.e. are not even part of the build and when configured to build, they do not even build ). Opencore had been added and got it to build and install with our ltib BSP and it plays the audio from the .3gp file in question fine ( but with an explicit pipeline ). But, the opencore amrnb plugin is not selected by gstreamer playbin2 when it does a typefind on the amrnb audio type. Answer: There are three options: 1. Fix the aiurdemux to allow correct demuxing 2. Lower the aiurdemux rank 3. Remove the /usr/lib/gstreamer-0.10/libmfw_gst_aiur_demux.so Obviously, 3 is a ugly hack but it can be just enough for customer. If option 1 or is selected, patches may be required from MM team. On this system, the aiurdemux does not have any issue, and audio playback works as expected. These are the VPU firmware and GST-FSL versions on YOCTO: VPU Version: firmware 1.4.50; libvpu: 5.3.2 MFW_GST_VPU_DECODER_PLUGIN 3.0.8 build on Sep 30 2013 16:36:27. where in LTIB: VPU Version: firmware 1.4.48; libvpu: 5.3.2 MFW_GST_VPU_DECODER_PLUGIN 2.0.3 build on Jul 23 2013 11:20:21. So the next moved would be to try upgrading versions on LTIB if they want to use this system; in case switching to Yocto is viable, then the upgrade is already done.
View full article
For imx8QM, The manufacture mode is supported on SD2 which is powered by LDO2 of PMIC2 on MEK board. LDO2 of PMIC2 on MEK board is OFF by default. (LDO2 of PMIC1 is on by default) So manufacture mode is NOT working on the imx8QM MEK board. the solution would be: 1. schematic change Exchange the power supply(VCC_LDO_SD) and USDHC_VSELECT signal of SD2 and SD1. between PMIC2 (U23) and PMIC 1(U10). so that, the VCC_LDO_SD2) and USDHC2_VSELECT will be located on where VCC_LDO_SD1) and USDHC1_VSELECT are origonally.  and VCC_LDO_SD1 and USDHC1_VSELECT will be located on where VCC_LDO_SD2) and USDHC2_VSELECT are origonally.  SD1 will no longer be supported as the boot resource, instead SD2 will be. anyway you still can connect a WIFI to SD1 , becasue the power supply can be turned on after software booting up. 2. Modify the default fuse of PMIC, whcih is to enable LDO2 of PMIC2 by default.     please contact your local FAE and Sales for this.  we may add notification in the reference schematic and HW development guild in the future.
View full article
Hello i.MX Community. Attached there is a guide on how to install Ubuntu trusty on i.MX7D-SD board Basically it explains all steps to install and to have running ubuntu core 14.04 on the Freescale i.Mx7D-SDB: I hope you find the document and projects useful! Regards!
View full article
The decommission of the git.freescale.com has caused some problems to BSPs dependent on packages stored in this repository. All contents on git.freescale.com have been moved to one of three locations: NXP · GitHub  (github.com/NXP) NXP Micro · GitHub  (github.com/NXPMicro) https://source.codeaurora.org/external/imx/   In the case of some older Android BSP this causes an error when fetching the imx-firmware packages originally stored in this repository. A workaround to this is to switch the original location to the new location. To do this we would need to manually create a build directory and initialize repo to locally load the manifest files and then make this change. Android BSP won’t require this workaround. Please note that this workaround only addresses this specific error that may show up when running the script included on the BSP release. We will be using the Oreo o8.0.0_1.0.0_ga BSP release as an example. Sources for this BSP can be found on the following link: https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/android-os-for-i-mx-applications-processors:IMXANDROID?tab=Design_Tools_Tab Documentation for this BSP can be found on the following link: https://www.nxp.com/design/development-boards/i-mx-evaluation-and-development-boards/android-os-for-i-mx-applications-processors:IMXANDROID?tab=Documentation_Tab    1) Initialize the repo. If you have tried running the imx_android_setup.sh script the android build directory should already have been created. If this is the case, please skip to the next step. If not, please create it either by running imx_android_setup.sh or manually with the following commands (using the android setup script is preferred): $ mkdir android_build Once inside the build directory, initialize the repo and then sync it: $ repo init -u https://source.codeaurora.org/external/imx/imx-manifest.git -b imx-android-oreo -m imx-o8.0.0_1.0.0_ga.xml $ repo sync   2) Find and edit the Android Manifest. Once inside the build directory after synching, enter the repo manifests directory by executing the following command while inside the android build directory $ cd .repo/manifests  And look for the corresponding Android manifest. In this case imx-o8.0.0_1.0.0_ga.xml Open this file in any text editor (use sudo if running in a directory which requires it) In this case we’ll exemplify with nano $nano imx-o8.0.0_1.0.0_ga.xml And change the git://git.freescale.com/proprietary/  to git://github.com/NXP/ Also the path for imx-firmware so the complete line goes from: <project path="vendor/nxp/imx-firmware" name="imx-firmware" remote="imx-proprietary" revision="87ba304b9efbb2e8dbdd54af4c087584fb259535" />‍‍‍ To the following: <project path="imx-firmware" name="imx-firmware" remote="imx-proprietary" revision="87ba304b9efbb2e8dbdd54af4c087584fb259535" />‍‍‍ The manifest should look like the following. Save the file with these changes.   Now you can run the imx_android_setup.sh build script successfully. Since the repo was already synced it won’t fetch the manifests again and the change we made will persist, which will allow to find the imx-firmware package on its new location.
View full article
This tool is also for emmc user partition mirror. Just give this tool the emmc files. The typical use case is for emmc mass production by emmc offline programming. Ver 0.4.0 2/14/2017 Support Android 7 Nougat. AndroidSDCARDMirrorCreator_Version_0.4.0_02142017.tgz Ver 0.3.2: 6/13/2016 Using static link simg2img AndroidSDCARDMirrorCreator_Version_0.3.2_06132016.tgz Ver 0.3.1: 5/31/2016 Remove some redundent code   AndroidSDCARDMirrorCreator_Version_0.3.1_05312016.tgz Ver 0.3: 5/25/2016 Add Marshmallow partition layout AndroidSDCARDMirrorCreator_Version_0.3_05252016.tgz Ver 0.2: Add Lollipop partition layout 1. Directory AndroidSDCARDMirrorCreator |-- AndroidSDCARDMirrorCreator.sh        --- main script |-- CFG.INC                              --- configuration file |-- KitKat_LAYOUT.INC                    --- KitKat partition layout |-- LAYOUT.INC -> Lollipop_LAYOUT.INC    --- symbol link to partition layout |-- Lollipop_LAYOUT.INC                  --- Lollipop partition layout `-- readme.txt                           --- this file 2. Need "root" run or "sudo" to run 3. parted and kpartx must be installed    sudo apt-get instal parted kpartx 4. test pass under the debian 8.2 and ubuntu 12.04 5. The AndroidSDCARDMirrorCreator.sh will look for LAYOUT.INC.    please make symbol link to the correct partition layout.    The default symbol link has created for Lollipop_LAYOUT.INC (LAYOUT.INC -> Lollipop_LAYOUT.INC) 6. Command    AndroidSDCARDMirrorCreator.sh -c    AndroidSDCARDMirrorCreator.sh -p 7. Example:    Suppose    The AndroidSDCARDMirrorCreator directory is in    ~/AndroidSDCARDMirrorCreator       The Android Images are in    ~/SD and ~/eMMC       Sdcdard Mirror:    cd ~/SD    ~/AndroidSDCARDMirrorCreator/AndroidSDCARDMirrorCreator.sh -c    eMMC Mirror:    cd ~/eMMC    ~/AndroidSDCARDMirrorCreator/AndroidSDCARDMirrorCreator.sh -c    8. Once the Mirror has been created. Can be reused. Just use kpartx.
View full article
This is done with the 11.09 BSP for imx53 specifically. Attached is an amrnb.spec file, I put it in ltib/dist/lfs-5.1/amrnb. Then I extracted opencore-amr-0.1.3.tar.gz and put it in ltib/rpm/BUILD. I built with ltib ( ALl this could be added to the ltib menus as well 😞 ./ltib –m scbuild –p amrnb ./ltib –m scdeploy –p amrnb Then I applied the patch to .ltib for gst-plugins-ugly and built that with ltib. It will play a .3gp file with this pipeline: gst-launch filesrc location=/media/sd/test.3gp ! qtdemux name=demux demux.audio_00 ! queue ! amrnbdec ! alsasink demux.video_00 ! multiqueue ! mfw_vpudecoder ! mfw_isink Regards, Randy Krakora
View full article
Gamma correction Displays usually presents a nonlinear bright response. For example, a frame buffer value of 100 will almost never give half the brightness of a value of 200. Historically, this is due to the physics of CRT monitors, but newer display technologies emulate the behavior. This is not only for compatibility, but for solid reasons based in the science of human visual perception. A first-order approximation to the non-linearity of a CRT is: L = ν ^ γ where L is the radiance (light intensity) from the display, ν is the voltage applied to the CRT gun (normally proportional to the digital value in the frame buffer), and γ (Greek letter “gamma”) is a constant particular to the monitor; it's the unknown parameter that makes it all work. It usually ranges from about 2.0 to about 2.5. One useful fact is that the gamma curve is linear in log-log space (i.e. logL as a function of logν), and γ is just the slope of that line. Example of gamma correction The dotted line indicates a linear transfer function (γ=1), the framebuffer gamma; the solid line shows how a typical CRT behaves; the dashed line represents the inverse function, the corrected gamma. How to correct gamma on i.MX using DP (Display Processor)? Gamma correction can be performed by IC (Image Converter) or DP (Display Processor) sub-blocks inside IPU. Current Linux kernel (3.10) provided by Freescale has an IOCTL that changes the related gamma parameters registers DP_GAMMA_C_SYNC<i> and DP_GAMMA_S_SYNC<i> on Display Processor block. The steps below shows how to change the gamma using user space applications: 1 - Declare a variable as mxcfb_gamma: struct mxcfb_gamma fb_gamma; 2 - Enable the gama correction: fb_gamma.enable = 1; 3 - Set the constk and slopek values, where i = 0 to 15 and x and y are respectively the new constk and slopek constant values: fb_gamma.constk[i] = x; fb_gamma.slopek[i] = y; 4 - Open the framebuffer device and call MXCFB_SET_GAMMA: fd_fb = open("/dev/fb0", O_RDWR, 0) ioctl(fd_fb, MXCFB_SET_GAMMA, &fb_gamma) Running the code above will immediately change the gamma value.
View full article
This patch adds DDR3 support for i.MX6SL, it is functionally tested with L3.0.35_2.1.0 release.
View full article
The patches are based on iMX53 L2.6.35_ER1109 BSP. In default linux BSP, the followed two pathes were supported in kernel driver mxc_v4l2_capture.c: CSI->IC->MEM CSI->MEM After appied these two patches, it can support the followed path: CSI->VDI->IC->MEM In this mode, the VDI de-interlace will be handled on the fly, so the whole system bandwidth will be reduced. Limitations: 1. Since the IC can only output resolution up to 1024*1024, so this is the limation on output. 2. Only VDI motion mode 2 was supported. mxc_v4l2_tvin_vdi_ic.zip: It is the test aplication, test command: "./mxc_v4l2_tvin.out -ol 0 -ot 0 -ow 800 -oh 480 -i 2" "-i 2" means CSI->VDI->IC->MEM path.
View full article
Hi all, I'm trying to port Android JB to a custom board based on imx6q. I'm not able to get the launcher. And even the display is shifting to right. The kernel i've tested with linux where the display is proper. Below is log. In the log Marked are the issues I'm facing. Any advice is helpful. I'm in very critical stage. Please help me to resolve this. I'm the source from android_jb4.2.2_1.0.0-ga_source bundle package. Uncompressing Linux... done, booting the kernel. Initializing cgroup subsys cpu Linux version 3.0.35-gcbaa4e0-dirty (rangam@PHYTECIndia) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #11 SMP PREEMPT Fri Jul 26 16:57:13 IST 2013 CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: Phytec Memory policy: ECC disabled, Data cache writealloc CPU identified as i.MX6Q, silicon rev 1.2 PERCPU: Embedded 7 pages/cpu @c13ec000 s6592 r8192 d13888 u32768 Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 215040 Kernel command line: console=ttymxc3,115200 androidboot.hardware=freescale androidboot.console=ttymxc3  init=/init vmalloc=256M video=mxcfb1:dev=ldb,Primeview-PM070WL4,bpp =16 fbmem=10M vt.global_cursor_default=0 consoleblank=0 board_mx6q_phyflex.csi0=none board_mx6q_phyflex.csi1=none video=mxcfb1:off video=mxcfb2:off ip=none root=/dev/mmcbl k0p2 rootfstype=ext4 noinitrd rootwait mtdparts=n25q128:512k(barebox)ro,128k(bareboxenv),2M(splash),-(kernel);gpmi-nand:512k(barebox)ro,128k(bareboxenv),2M(splash),8M(kern el),-(root) PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Memory: 592MB 256MB = 848MB total Memory: 847036k/847036k available, 201540k reserved, 311296K highmem Virtual kernel memory layout:     vector  : 0xffff0000 - 0xffff1000   (   4 kB)     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)     DMA     : 0xfbe00000 - 0xffe00000   (  64 MB)     vmalloc : 0xe2800000 - 0xf2000000   ( 248 MB)     lowmem  : 0xc0000000 - 0xe2000000   ( 544 MB)     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)     modules : 0xbf000000 - 0xbfe00000   (  14 MB)       .init : 0xc0008000 - 0xc0047000   ( 252 kB)       .text : 0xc0047000 - 0xc09dbebc   (9812 kB)       .data : 0xc09dc000 - 0xc0a59f18   ( 504 kB)        .bss : 0xc0a59f3c - 0xc0be2d40   (1572 kB) Preemptible hierarchical RCU implementation. NR_IRQS:624 MXC GPIO hardware sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655ms arm_max_freq=1GHz MXC_Early serial console at MMIO 0x21f0000 (options '115200') bootconsole [ttymxc3] enabled Console: colour dummy device 80x30 Calibrating delay loop... 789.70 BogoMIPS (lpj=3948544) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys debug Initializing cgroup subsys cpuacct Initializing cgroup subsys freezer CPU: Testing write buffer coherency: ok hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available CPU1: Booted secondary processor CPU2: Booted secondary processor CPU3: Booted secondary processor Brought up 4 CPUs SMP: Total of 4 processors activated (3158.83 BogoMIPS). devtmpfs: initialized print_constraints: dummy: NET: Registered protocol family 16 print_constraints: vddpu: 725 <--> 1300 mV at 1100 mV fast normal print_constraints: vddcore: 725 <--> 1300 mV at 1100 mV fast normal print_constraints: vddsoc: 725 <--> 1300 mV at 1100 mV fast normal print_constraints: vdd2p5: 2000 <--> 2775 mV at 2400 mV fast normal print_constraints: vdd1p1: 800 <--> 1400 mV at 1100 mV fast normal print_constraints: vdd3p0: 2625 <--> 3400 mV at 3000 mV fast normal imx_add_mxc_pwm:pdata=  (null) imx_add_mxc_pwm:pdata=  (null) imx_add_mxc_pwm:pdata=  (null) imx_add_mxc_pwm:pdata=  (null) hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. hw-breakpoint: 1 breakpoint(s) reserved for watchpoint single-step. hw-breakpoint: maximum watchpoint size is 4 bytes. L310 cache controller enabled l2x0: 16 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x02070000, Cache size: 1048576 B bio: create slab <bio-0> at 0 mxs-dma mxs-dma-apbh: initialized print_constraints: vmmc: 3300 mV print_constraints: IOVDD: 3300 mV print_constraints: DVDD: 1800 mV print_constraints: AVDD: 3300 mV print_constraints: DRVDD: 3300 mV vgaarb: loaded i2c-core: driver [da9063] using legacy suspend method i2c-core: driver [da9063] using legacy resume method SCSI subsystem initialized spi_imx imx6q-ecspi.2: probed usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Freescale USB OTG Driver loaded, $Revision: 1.55 $ i2c-gpio i2c-gpio.3: using pins 109 (SDA) and 108 (SCL) print_constraints: VDDCORE: 730 <--> 1280 mV at 1300 mV at 2000 mA normal print_constraints: VDDSOC: 730 <--> 1280 mV at 1300 mV at 500 mA normal print_constraints: VDD_DDR3: 1500 mV at 2000 mA print_constraints: VDD_3V3: 3300 mV at 1500 mA print_constraints: VDD_BUCKMEM: 3300 mV at 1500 mA print_constraints: VDD_ETH: 1200 mV at 3000 mA print_constraints: VDD_ETH_IO: 3300 mV print_constraints: VDD_MX6_SNVS: 3300 mV print_constraints: VDD_3V3_PMIC_IO: 3300 mV print_constraints: VDD_SD0: 3300 mV print_constraints: VDD_SD1: 3300 mV print_constraints: VDD_MX6_HIGH: 3000 mV da9063 0-0058: Device detected DA9063 max7300: probe of 0-0040 failed with error -5 stmpe 1-0041: stmpe811 detected, chip id: 0x811 stmpe 2-0041: failed to read regs 0x0: -5 stmpe: probe of 2-0041 failed with error -5 imx-ipuv3 imx-ipuv3.0: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7) imx-ipuv3 imx-ipuv3.1: IPU DMFC NORMAL mode: 1(0~1), 5B(4,5), 5F(6,7) Advanced Linux Sound Architecture Driver Version 1.0.24. Bluetooth: Core ver 2.16 NET: Registered protocol family 31 Bluetooth: HCI device and connection manager initialized Bluetooth: HCI socket layer initialized Bluetooth: L2CAP socket layer initialized Bluetooth: SCO socket layer initialized cfg80211: Calling CRDA to update world regulatory domain Switching to clocksource mxc_timer1 NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 7, 786432 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP reno registered UDP hash table entries: 512 (order: 2, 16384 bytes) UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Static Power Management for Freescale i.MX6 wait mode is enabled for i.MX6 cpaddr = e2880000 suspend_iram_base=e291c000 PM driver module loaded link up failed, DB_R0:0x00913b00, DB_R1:0x08200000! IMX PCIe port: link down with power supply 0! IMX usb wakeup probe add wake up source irq 75 IMX usb wakeup probe cpu regulator mode:ldo_bypass _regulator_get: get() with no identifier mx6_cpu_regulator_init: failed to get pu regulator i.MXC CPU frequency driver highmem bounce pool size: 64 pages ashmem: initialized NTFS driver 2.1.30 [Flags: R/O]. JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat, Inc. fuse init (API version 7.16) msgmni has been set to 1046 NET: Registered protocol family 38 cryptodev: driver loaded. io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) mxc_sdc_fb mxc_sdc_fb.0: register mxc display driver ldb _regulator_get: get() with no identifier ldb_clk to di clk: ldb_di0_clk -> ipu1_di0_clk mxc_sdc_fb mxc_sdc_fb.1: mxcfb1 is turned off! imx-sdma imx-sdma: loaded firmware 1.1 imx-sdma imx-sdma: initialized Serial: IMX driver imx-uart.2: ttymxc2 at MMIO 0x21ec000 (irq = 60) is a IMX imx-uart.3: ttymxc3 at MMIO 0x21f0000 (irq = 61) is a IMX console [ttymxc3] enabled, bootconsole disabled console [ttymxc3] enabled, bootconsole disabled loop: module loaded at24 0-0050: 4096 byte 24c32 EEPROM, writable, 8 bytes/write at24 2-0052: 512 byte 24c04 EEPROM, writable, 16 bytes/write No sata disk. m25p80 spi2.0: unrecognized id n25q128 m25p80 spi2.0: unrecognized JEDEC id 20ba18 GPIO NAND driver, �© 2004 Simtec Electronics NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit) 5 cmdlinepart partitions found on MTD device gpmi-nand Creating 5 MTD partitions on "gpmi-nand": 0x000000000000-0x000000080000 : "barebox" 0x000000080000-0x0000000a0000 : "bareboxenv" 0x0000000a0000-0x0000002a0000 : "splash" 0x0000002a0000-0x000000aa0000 : "kernel" 0x000000aa0000-0x000040000000 : "root" GPMI NAND driver registered. (IMX) vcan: Virtual CAN interface driver CAN device driver interface flexcan netdevice driver flexcan imx6q-flexcan.0: device registered (reg_base=e29b0000, irq=142) FEC Ethernet Driver fec_enet_mii_bus: probed PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered PPP MPPE Compression module registered NET: Registered protocol family 24 PPTP driver version 0.8.5 tun: Universal TUN/TAP device driver, 1.6 tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1 fsl-ehci fsl-ehci.0: irq 75, io base 0x02184000 fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: Freescale On-Chip EHCI Host Controller usb usb1: Manufacturer: Linux 3.0.35-gcbaa4e0-dirty ehci_hcd usb usb1: SerialNumber: fsl-ehci.0 hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected add wake up source irq 72 fsl-ehci fsl-ehci.1: Freescale On-Chip EHCI Host Controller fsl-ehci fsl-ehci.1: new USB bus registered, assigned bus number 2 fsl-ehci fsl-ehci.1: irq 72, io base 0x02184200 fsl-ehci fsl-ehci.1: USB 2.0 started, EHCI 1.00 usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: Product: Freescale On-Chip EHCI Host Controller usb usb2: Manufacturer: Linux 3.0.35-gcbaa4e0-dirty ehci_hcd usb usb2: SerialNumber: fsl-ehci.1 hub 2-0:1.0: USB hub found hub 2-0:1.0: 1 port detected usbcore: registered new interface driver cdc_acm cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. ARC USBOTG Device Controller driver (1 August 2005) android_usb gadget: Mass Storage Function, version: 2009/09/11 android_usb gadget: Number of LUNs=1 lun0: LUN: removable file: (no medium) Gadget Android: controller 'fsl-usb2-udc' not recognized android_usb gadget: android_usb ready Suspend udc for OTG auto detect fsl-usb2-udc: bind to driver android_usb mousedev: PS/2 mouse device common for all mice input: stmpe-ts as /devices/virtual/input/input0 i2c-core: driver [isl29023] using legacy suspend method i2c-core: driver [isl29023] using legacy resume method using rtc device, da9063-rtc, for alarms da9063-rtc da9063-rtc: rtc core: registered da9063-rtc as rtc0 da9063-rtc da9063-rtc: Failed to request ALARM IRQ. rtc-pcf8563 1-0051: chip found, driver version 0.4.3 rtc-pcf8563 1-0051: rtc core: registered rtc-pcf8563 as rtc1 snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc2 i2c /dev entries driver Linux video capture interface: v2.00 mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video16 mxc_v4l2_output mxc_v4l2_output.0: V4L2 device registered as video17 usbcore: registered new interface driver uvcvideo USB Video Class driver (v1.1.0) Driver for 1-wire Dallas network protocol. i2c-core: driver [mag3110] using legacy suspend method i2c-core: driver [mag3110] using legacy resume method imx2-wdt imx2-wdt.0: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=1) Bluetooth: HCI UART driver ver 2.2 Bluetooth: HCILL protocol initialized sdhci: Secure Digital Host Controller Interface driver sdhci: Copyright(c) Pierre Ossman mmc0: SDHCI controller on platform [sdhci-esdhc-imx.2] using DMA w1_master_driver w1 bus master: Family 43 for 43.000000436e56.c7 is not registered. mmc1: SDHCI controller on platform [sdhci-esdhc-imx.1] using DMA VPU initialized mxc_asrc registered revserved_memory_account:viv_gpu registerd Thermal calibration data is 0x5914c97d Thermal sensor with ratio = 185 w1_master_driver w1 bus master: Family 43 for 43.0000003be6e7.b6 is not registered. Anatop Thermal registered as thermal_zone0 anatop_thermal_probe: default cooling device is cpufreq! HDMI CEC initialized leds-pca953x 1-0062: setting platform data usbcore: registered new interface driver usbhid usbhid: USB HID core driver usb 2-1: new high speed USB device number 2 using fsl-ehci logger: created 256K log 'log_main' logger: created 256K log 'log_events' logger: created 256K log 'log_radio' logger: created 256K log 'log_system' usbcore: registered new interface driver snd-usb-audio mxc_hdmi_soc mxc_hdmi_soc.0: MXC HDMI Audio imx-hdmi-soc-dai imx-hdmi-soc-dai.0: Failed: Load HDMI-video first. tlv320aic3x-codec 1-0018: asoc: failed to add kcontrol Left Line1R Mux tlv320aic3x-codec 1-0018: asoc: failed to add kcontrol Left Line1L Mux asoc: tlv320aic3x-hifi <-> imx-ssi.1 mapping ok Initialize HDMI-audio failed. Load HDMI-video first! ALSA device list:   #0: imx_tlv320aic3007-audio oprofile: using arm/armv7-ca9 GACT probability NOT on Mirror/redirect action on u32 classifier     Actions configured Netfilter messages via NETLINK v0.30. nf_conntrack version 0.5.0 (13234 buckets, 52936 max) ctnetlink v0.93: registering with nfnetlink. NF_TPROXY: Transparent proxy support initialized, version 4.1.0 NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd. xt_time: kernel timezone is -0000 IPv4 over IPv4 tunneling driver GRE over IPv4 demultiplexor driver ip_tables: (C) 2000-2006 Netfilter Core Team arp_tables: (C) 2002 David S. Miller TCP cubic registered NET: Registered protocol family 10 Mobile IPv6 ip6_tables: (C) 2000-2006 Netfilter Core Team IPv6 over IPv4 tunneling driver NET: Registered protocol family 17 mmc0: new SD card at address e624 NET: Registered protocol family 15 can: controller area network core (rev 20090105 abi 😎 NET: Registered protocol family 29 mmcblk0: mmc0:e624 SU02G 1.84 GiB mmcblk0: p1 p2 p3 can: raw protocol (rev 20090105) can: broadcast manager protocol (rev 20090105 t) Bluetooth: RFCOMM TTY layer initialized Bluetooth: RFCOMM socket layer initialized Bluetooth: RFCOMM ver 1.11 Bluetooth: BNEP (Ethernet Emulation) ver 1.3 Bluetooth: BNEP filters: protocol multicast Bluetooth: HIDP (Human Interface Emulation) ver 1.2 L2TP core driver, V2.0 PPPoL2TP kernel driver, V2.0 L2TP IP encapsulation support (L2TPv3) L2TP netlink interface L2TP ethernet pseudowire support (L2TPv3) lib80211: common routines for IEEE802.11 drivers VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 Bus freq driver module loaded Bus freq driver Enabled mxc_dvfs_core_probe usb 2-1: New USB device found, idVendor=0451, idProduct=8042 usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 hub 2-1:1.0: USB hub found hub 2-1:1.0: 4 ports detected DVFS driver module loaded regulator_init_complete: VDD_MX6_HIGH: incomplete constraints, leaving on regulator_init_complete: VDD_SD1: incomplete constraints, leaving on regulator_init_complete: VDD_SD0: incomplete constraints, leaving on regulator_init_complete: VDD_3V3_PMIC_IO: incomplete constraints, leaving on regulator_init_complete: VDD_MX6_SNVS: incomplete constraints, leaving on regulator_init_complete: VDD_ETH_IO: incomplete constraints, leaving on regulator_init_complete: VDD_ETH: incomplete constraints, leaving on regulator_init_complete: VDD_3V3: incomplete constraints, leaving on regulator_init_complete: VDD_DDR3: incomplete constraints, leaving on regulator_init_complete: VDDSOC: incomplete constraints, leaving on regulator_init_complete: VDDCORE: incomplete constraints, leaving on regulator_init_complete: DRVDD: incomplete constraints, leaving on regulator_init_complete: AVDD: incomplete constraints, leaving on regulator_init_complete: DVDD: incomplete constraints, leaving on regulator_init_complete: IOVDD: incomplete constraints, leaving on da9063-rtc da9063-rtc: setting system clock to 2000-01-01 00:01:34 UTC (946684894) EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) VFS: Mounted root (ext4 filesystem) on device 179:2. devtmpfs: mounted Freeing init memory: 252K init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead. init: cannot open '/initlogo.rle' EXT4-fs (mmcblk0p2): re-mounted. Opts: (null) init: Unable to open persistent property directory /data/property errno: 2 init: using deprecated syntax for specifying property 'ro.product.manufacturer', use ${name} instead init: using deprecated syntax for specifying property 'ro.product.model', use ${name} instead init: using deprecated syntax for specifying property 'ro.serialno', use ${name} instead init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery' android_usb: already disabled android_usb: already disabled mtp_bind_config root@android:/ # request_suspend_state: wakeup (3->0) at 8290682004 (2000-01-01 00:01:39.585311336 UTC) init: untracked pid 2494 exited request_suspend_state: wakeup (0->0) at 8890367671 (2000-01-01 00:01:40.184997336 UTC) init: untracked pid 2543 exited root@android:/ # root@android:/ # root@android:/ # root@android:/ # root@android:/ # root@android:/ # lrequest_suspend_state: wakeup (0->0) at 14500371003 (2000-01-01 00:01:45.795000669 UTC) init: untracked pid 2551 exited root@android:/ # logcat                                                       --------- beginning of /dev/log/main I/installd( 2495): installd firing up E/cutils  ( 2495): Failed to read /data/.layout_version: No such file or directory E/installd( 2495): Could not create directories; exiting. --------- beginning of /dev/log/system I/Vold    ( 2489): Vold 2.1 (the revenge) firing up D/Vold    ( 2489): Volume udisk state changing -1 (Initializing) -> 0 (No-Media) D/Vold    ( 2489): Volume extsd state changing -1 (Initializing) -> 0 (No-Media) D/Vold    ( 2489): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media) D/Vold    ( 2489): Volume sdcard state changing 0 (No-Media) -> 2 (Pending) D/Vold    ( 2489): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted) I/SurfaceFlinger( 2491): SurfaceFlinger is starting I/SurfaceFlinger( 2491): SurfaceFlinger's main thread ready to run. Initializing graphics H/W... D/libEGL  ( 2491): loaded /system/lib/egl/libEGL_VIVANTE.so D/libEGL  ( 2491): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so D/libEGL  ( 2491): loaded /system/lib/egl/libGLESv2_VIVANTE.so W/imx6.gralloc( 2491): using (fd=15) W/imx6.gralloc( 2491): id           = DISP3 BG W/imx6.gralloc( 2491): xres         = 800 px W/imx6.gralloc( 2491): yres         = 480 px W/imx6.gralloc( 2491): xres_virtual = 800 px W/imx6.gralloc( 2491): yres_virtual = 1536 px W/imx6.gralloc( 2491): bpp          = 16 W/imx6.gralloc( 2491): r            = 11:5 W/imx6.gralloc( 2491): g            =  5:6 W/imx6.gralloc( 2491): b            =  0:5 W/imx6.gralloc( 2491): width        = 127 mm (160.000000 dpi) W/imx6.gralloc( 2491): height       = 76 mm (160.421051 dpi) W/imx6.gralloc( 2491): refresh rate = 35.70 Hz I/FslHwcomposer( 2491): fb0 is ldb I/FslHwcomposer( 2491):  device I/FslHwcomposer( 2491): fb1 is overlay device W/FslHwcomposer( 2491): open /sys/class/graphics/fb2 failed W/FslHwcomposer( 2491): open /sys/class/graphics/fb3 failed W/FslHwcomposer( 2491): open /sys/class/graphics/fb4 failed W/FslHwcomposer( 2491): open /sys/class/graphics/fb5 failed I/FslHwcomposer( 2491): hwcomposer: open framebuffer fb0 I/v_hwc   ( 2491): Detected display /dev/graphics/fb0 I/v_hwc   ( 2491): xres         = 800 px I/v_hwc   ( 2491): yres         = 480 px I/v_hwc   ( 2491): xres_virtual = 800 px I/v_hwc   ( 2491): yres_virtual = 1536 px I/v_hwc   ( 2491): width        = -1 mm (0.0 dpi) I/v_hwc   ( 2491): height       = -1 mm (0.0 dpi) I/v_hwc   ( 2491): refresh rate = 35.0 Hz E/v_hwc   ( 2491): open /dev/graphics/fb0 failed I/v_hwc   ( 2491): Vivante HWComposer v2.4 I/v_hwc   ( 2491): Device:               0x40039008 I/v_hwc   ( 2491): Separated 2D:         YES I/v_hwc   ( 2491): 2D PE20:              YES I/v_hwc   ( 2491): Multi-source blit:    NO I/v_hwc   ( 2491): Multi-source blit Ex: NO I/v_hwc   ( 2491): OPF/YUV blit/Tiling : NO I/v_hwc   ( 2491): Filter stretch      : NO I/FslHwcomposer( 2491): hwc_device_open,367 I/SurfaceFlinger( 2491): Using composer version 1.1 W/SurfaceFlinger( 2491): no suitable EGLConfig found, trying without EGL_FRAMEBUFFER_TARGET_ANDROID E/Trace   ( 2491): error opening trace file: No such file or directory (2) E/SurfaceFlinger( 2491): HWComposer: framebufferTarget is null E/SurfaceFlinger( 2491): HWComposer: framebufferTarget is null E/SurfaceFlinger( 2491): HWComposer: framebufferTarget is null E/SurfaceFlinger( 2491): HWComposer: framebufferTarget is null I/SurfaceFlinger( 2491): EGL informations: I/SurfaceFlinger( 2491): vendor    : Android I/SurfaceFlinger( 2491): version   : 1.4 Android META-EGL I/SurfaceFlinger( 2491): extensions: EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_renderbuffer_image EGL_KHR_fence_sync EGL _ANDROID_image_native_buffer I/SurfaceFlinger( 2491): Client API: OpenGL_ES I/SurfaceFlinger( 2491): EGLSurface: 8-8-8-8, config=0x4b7d5138 I/SurfaceFlinger( 2491): OpenGL ES informations: I/SurfaceFlinger( 2491): vendor    : Vivante Corporation I/SurfaceFlinger( 2491): renderer  : GC2000 Graphics Engine I/SurfaceFlinger( 2491): version   : OpenGL ES-CM 1.1 I/SurfaceFlinger( 2491): extensions: GL_EXT_debug_marker GL_OES_blend_equation_separate GL_OES_blend_func_separate GL_OES_blend_subtract GL_OES_byte_coordinates GL_OES_com pressed_ETC1_RGB8_texture GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_extended_matrix_palette GL_OES_fixed_point GL_OES_framebuffer_object GL_OES_matrix_ get GL_OES_matrix_palette GL_OES_point_size_array GL_OES_point_sprite GL_OES_query_matrix GL_OES_read_format GL_OES_single_precision GL_OES_stencil_wrap GL_OES_texture_cub e_map GL_OES_texture_mirrored_repeat GL_OES_EGL_image GL_OES_depth24 GL_OES_element_index_uint GL_OES_fbo_render_mipmap GL_OES_mapbuffer GL_OES_rgb8_rgba8 GL_OES_stencil1 GL_OES_stencil4 GL_OES_stencil8 GL_OES_texture_npot GL_OES_vertex_half_float GL_OES_packed_depth_stencil GL_EXT_texture_format_BGRA8888 GL_IMG_read_format GL_IMG_user_clip _plane GL_APPLE_texture_2D_limited_npot GL_EXT_texture_lod_bias GL_EXT_blend_minmax GL_EXT_read_format_bgra GL_EXT_multi_draw_arrays GL_OES_EGL_sync GL_APPLE_texture_forma t_BGRA8888 GL_APPLE_te I/SurfaceFlinger( 2491): GL_MAX_TEXTURE_SIZE = 8192 I/SurfaceFlinger( 2491): GL_MAX_VIEWPORT_DIMS = 8192 x 8192 D/AndroidRuntime( 2492): D/AndroidRuntime( 2492): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 2492): CheckJNI is OFF I/AndroidRuntime( 2492): JNI options: '-Xjniopts:warnonly' D/SurfaceFlinger( 2491): Screen acquired, type=0 flinger=0x404f0318 D/libEGL  ( 2531): loaded /system/lib/egl/libEGL_VIVANTE.so D/libEGL  ( 2531): loaded /system/lib/egl/libGLESv1_CM_VIVANTE.so D/libEGL  ( 2531): loaded /system/lib/egl/libGLESv2_VIVANTE.so E/Trace   ( 2531): error opening trace file: No such file or directory (2) E/BufferQueue( 2491): [BootAnimation] dequeueBuffer: can't dequeue multiple buffers without setting the buffer count I/mediaserver( 2494): ServiceManager: 0x40a56ef8 I/AudioFlinger( 2494): Using default 3000 mSec as standby time. I/CameraService( 2494): CameraService started (pid=2494) I/v_hwc   ( 2491): Display(0x4010c008) detected: format=306 800x480 I/v_hwc   ( 2491): Display buffer(0x40050de0) detected: physical=0x2f800000 I/v_hwc   ( 2491): Display buffer(0x40050e08) detected: physical=0x2f8bb800 I/FslCameraHAL( 2494): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2494): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2494): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/v_hwc   ( 2491): Display buffer(0x400d57a8) detected: physical=0x2f977000 I/AudioPolicyManagerBase( 2494): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2494): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2494): out rate 44100 W/audio_hw_primary( 2494): in rate 44100, channels 1 format 0 I/AudioFlinger( 2494): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2494): open output stream devices 2, format 1, channels 3, sample_rate 48000, flag 2 W/audio_hw_primary( 2494): opened out stream...1086925552 I/AudioFlinger( 2494): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2494): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2494): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional D/dalvikvm( 2492): Trying to load lib libjavacore.so 0x0 D/dalvikvm( 2492): Added shared lib libjavacore.so 0x0 D/dalvikvm( 2492): Trying to load lib libnativehelper.so 0x0 D/dalvikvm( 2492): Added shared lib libnativehelper.so 0x0 I/SamplingProfilerIntegration( 2492): Profiling disabled. I/Zygote  ( 2492): Preloading classes... D/dalvikvm( 2492): GC_EXPLICIT freed 36K, 9% free 419K/460K, paused 1ms+0ms, total 3ms W/Environment( 2492): EXTERNAL_STORAGE undefined; falling back to default W/dalvikvm( 2492): Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/Debug; D/AndroidRuntime( 2492): Shutting down VM W/dalvikvm( 2492): threadid=1: thread exiting with uncaught exception (group=0x4143c930) I/installd( 2542): installd firing up E/cutils  ( 2542): Failed to read /data/.layout_version: No such file or directory E/installd( 2542): Could not create directories; exiting. I/ServiceManager( 2488): service 'media.camera' died I/ServiceManager( 2488): service 'media.audio_flinger' died I/ServiceManager( 2488): service 'media.player' died D/AndroidRuntime( 2544): D/AndroidRuntime( 2544): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 2544): CheckJNI is OFF I/AndroidRuntime( 2544): JNI options: '-Xjniopts:warnonly' D/dalvikvm( 2544): Trying to load lib libjavacore.so 0x0 D/dalvikvm( 2544): Added shared lib libjavacore.so 0x0 D/dalvikvm( 2544): Trying to load lib libnativehelper.so 0x0 D/dalvikvm( 2544): Added shared lib libnativehelper.so 0x0 I/mediaserver( 2543): ServiceManager: 0x40a68ef8 I/AudioFlinger( 2543): Using default 3000 mSec as standby time. I/CameraService( 2543): CameraService started (pid=2543) I/FslCameraHAL( 2543): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2543): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2543): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/AudioPolicyManagerBase( 2543): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2543): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2543): out rate 44100 W/audio_hw_primary( 2543): in rate 44100, channels 1 format 0 I/AudioFlinger( 2543): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2543): open output stream devices 2, format 1, channels 3, sample_rate 48000, flag 2 W/audio_hw_primary( 2543): opened out stream...1086774000 I/AudioFlinger( 2543): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2543): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2543): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional I/SamplingProfilerIntegration( 2544): Profiling disabled. I/Zygote  ( 2544): Preloading classes... D/dalvikvm( 2544): GC_EXPLICIT freed 36K, 9% free 419K/460K, paused 1ms+0ms, total 3ms W/Environment( 2544): EXTERNAL_STORAGE undefined; falling back to default W/dalvikvm( 2544): Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/Debug; D/AndroidRuntime( 2544): Shutting down VM W/dalvikvm( 2544): threadid=1: thread exiting with uncaught exception (group=0x40b1a930) I/ServiceManager( 2488): service 'media.camera' died I/ServiceManager( 2488): service 'media.audio_flinger' died I/ServiceManager( 2488): service 'media.player' died I/mediaserver( 2551): ServiceManager: 0x41f7b000 I/AudioFlinger( 2551): Using default 3000 mSec as standby time. I/CameraService( 2551): CameraService started (pid=2551) I/FslCameraHAL( 2551): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2551): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2551): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/AudioPolicyManagerBase( 2551): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2551): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2551): out rate 44100 W/audio_hw_primary( 2551): in rate 44100, channels 1 format 0 I/AudioFlinger( 2551): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2551): open output stream devices 2, format 1, channels 3, sample_rate 48000, flag 2 W/audio_hw_primary( 2551): opened out stream...1106785632 I/AudioFlinger( 2551): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2551): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2551): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional I/installd( 2562): installd firing up E/cutils  ( 2562): Failed to read /data/.layout_version: No such file or directory E/installd( 2562): Could not create directories; exiting. D/AndroidRuntime( 2561): D/AndroidRuntime( 2561): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 2561): CheckJNI is OFF I/AndroidRuntime( 2561): JNI options: '-Xjniopts:warnonly' D/dalvikvm( 2561): Trying to load lib libjavacore.so 0x0 D/dalvikvm( 2561): Added shared lib libjavacore.so 0x0 D/dalvikvm( 2561): Trying to load lib libnativehelper.so 0x0 D/dalvikvm( 2561): Added shared lib libnativehelper.so 0x0 I/SamplingProfilerIntegration( 2561): Profiling disabled. I/Zygote  ( 2561): Preloading classes... D/dalvikvm( 2561): GC_EXPLICIT freed 36K, 9% free 419K/460K, paused 0ms+1ms, total 3ms W/Environment( 2561): EXTERNAL_STORAGE undefined; falling back to default W/dalvikvm( 2561): Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/Debug; D/AndroidRuntime( 2561): Shutting down VM W/dalvikvm( 2561): threadid=1: thread exiting with uncaught exception (group=0x4200b930) I/ServiceManager( 2488): service 'media.audio_flinger' died I/ServiceManager( 2488): service 'media.player' died I/ServiceManager( 2488): service 'media.camera' died I/mediaserver( 2566): ServiceManager: 0x417df000 I/AudioFlinger( 2566): Using default 3000 mSec as standby time. I/CameraService( 2566): CameraService started (pid=2566) I/FslCameraHAL( 2566): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2566): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2566): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/AudioPolicyManagerBase( 2566): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2566): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2566): out rate 44100 W/audio_hw_primary( 2566): in rate 44100, channels 1 format 0 I/AudioFlinger( 2566): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2566): open output stream drequest_suspend_state: wakeup (0->0) at 19200353004 (2000-01-01 00:01:50.494982670 UTC) evices 2, format 1, channels 3, sinit: untracked pid 2566 exited ample_rate 48000, flag 2 W/audio_hw_primary( 2566): opened out stream...1098806624 I/AudioFlinger( 2566): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2566): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2566): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional I/v_hwc   ( 2491): vsync thread exit: callback procs not registered. I/installd( 2572): installd firing up E/cutils  ( 2572): Failed to read /data/.layout_version: No such file or directory E/installd( 2572): Could not create directories; exiting. D/AndroidRuntime( 2571): D/AndroidRuntime( 2571): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 2571): CheckJNI is OFF I/AndroidRuntime( 2571): JNI options: '-Xjniopts:warnonly' D/dalvikvm( 2571): Trying to load lib libjavacore.so 0x0 D/dalvikvm( 2571): Added shared lib libjavacore.so 0x0 D/dalvikvm( 2571): Trying to load lib libnativehelper.so 0x0 D/dalvikvm( 2571): Added shared lib libnativehelper.so 0x0 I/SamplingProfilerIntegration( 2571): Profiling disabled. I/Zygote  ( 2571): Preloading classes... D/dalvikvm( 2571): GC_EXPLICIT freed 36K, 9% free 419K/460K, paused 0ms+0ms, total 2ms W/Environment( 2571): EXTERNAL_STORAGE undefined; falling back to default W/dalvikvm( 2571): Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/Debug; D/AndroidRuntime( 2571): Shutting down VM W/dalvikvm( 2571): threadid=1: thread exiting with uncaught exception (group=0x412e5930) I/ServiceManager( 2488): service 'media.audio_flinger' died I/ServiceManager( 2488): service 'media.player' died I/ServiceManager( 2488): service 'media.camera' died I/mediaserver( 2576): ServiceManager: 0x41724000 I/AudioFlinger( 2576): Using default 3000 mSec as standby time. I/CameraService( 2576): CameraService started (pid=2576) I/FslCameraHAL( 2576): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2576): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2576): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/AudioPolicyManagerBase( 2576): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2576): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2576): out rate 44100 W/audio_hw_primary( 2576): in rate 44100, channels 1 format 0 I/AudioFlinger( 2576): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2576): open output stream devices 2, format 1, channels 3, sample_rate 48000, flag 2 W/audio_hw_primary( 2576): opened out stream...1098040672 I/AudioFlinger( 2576): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2576): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2576): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional I/installd( 2581): installd firing up E/cutils  ( 2581): Failed to read /data/.layout_version: No such file or directory E/installd( 2581): Could not create directories; exiting. D/AndroidRuntime( 2580): D/AndroidRuntime( 2580): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 2580): CheckJNI is OFF I/AndroidRuntime( 2580): JNI options: '-Xjniopts:warnonly' D/dalvikvm( 2580): Trying to load lib libjavacore.so 0x0 D/dalvikvm( 2580): Added shared lib libjavacore.so 0x0 D/dalvikvm( 2580): Trying to load lib libnativehelper.so 0x0 D/dalvikvm( 2580): Added shared lib libnativehelper.so 0x0 I/SamplingProfilerIntegration( 2580): Profiling disabled. I/Zygote  ( 2580): Preloading classes... D/dalvikvm( 2580): GC_EXPLICIT freed 36K, 9% free 419K/460K, paused 0ms+0ms, total 3ms W/Environment( 2580): EXTERNAL_STORAGE undefined; falling back to default W/dalvikvm( 2580): Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/Debug; D/AndroidRuntime( 2580): Shutting down VM W/dalvikvm( 2580): threadid=1: thread exiting with uncaught exception (group=0x40e62930) request_suspend_state: wakeup (0->0) at 23810412672 (2000-01-01 00:01:55.105042004 UTC) I/ServiceManager( 2488): service init: untracked pid 2576 exited 'media.audio_flinger' died I/ServiceManager( 2488): service 'media.player' died I/ServiceManager( 2488): service 'media.camera' died I/mediaserver( 2585): ServiceManager: 0x40bcdfb0 I/AudioFlinger( 2585): Using default 3000 mSec as standby time. I/CameraService( 2585): CameraService started (pid=2585) I/FslCameraHAL( 2585): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2585): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2585): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/AudioPolicyManagerBase( 2585): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2585): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2585): out rate 44100 W/audio_hw_primary( 2585): in rate 44100, channels 1 format 0 I/AudioFlinger( 2585): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2585): open output stream devices 2, format 1, channels 3, sample_rate 48000, flag 2 W/audio_hw_primary( 2585): opened out stream...1074431624 I/AudioFlinger( 2585): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2585): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2585): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional I/installd( 2590): installd firing up E/cutils  ( 2590): Failed to read /data/.layout_version: No such file or directory E/installd( 2590): Could not create directories; exiting. D/AndroidRuntime( 2589): D/AndroidRuntime( 2589): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<< D/AndroidRuntime( 2589): CheckJNI is OFF I/AndroidRuntime( 2589): JNI options: '-Xjniopts:warnonly' D/dalvikvm( 2589): Trying to load lib libjavacore.so 0x0 D/dalvikvm( 2589): Added shared lib libjavacore.so 0x0 D/dalvikvm( 2589): Trying to load lib libnativehelper.so 0x0 D/dalvikvm( 2589): Added shared lib libnativehelper.so 0x0 I/SamplingProfilerIntegration( 2589): Profiling disabled. I/Zygote  ( 2589): Preloading classes... D/dalvikvm( 2589): GC_EXPLICIT freed 36K, 9% free 419K/460K, paused 0ms+1ms, total 3ms W/Environment( 2589): EXTERNAL_STORAGE undefined; falling back to default W/dalvikvm( 2589): Exception Ljava/lang/NullPointerException; thrown while initializing Landroid/os/Debug; D/AndroidRuntime( 2589): Shutting down VM W/dalvikvm( 2589): threadid=1: thread exiting with uncaught exception (group=0x40ef1930) request_suspend_state: wakeup (0->0) at 29440367339 (2000-01-01 00:02:00.734997005 UTC) init: untracked pid 2585 exited I/ServiceManager( 2488): service 'media.audio_flinger' died I/ServiceManager( 2488): service 'media.player' died I/ServiceManager( 2488): service 'media.camera' died I/mediaserver( 2594): ServiceManager: 0x40b80fb0 I/AudioFlinger( 2594): Using default 3000 mSec as standby time. I/CameraService( 2594): CameraService started (pid=2594) I/FslCameraHAL( 2594): Face Back Camera is ov5642, orient is 0 I/FslCameraHAL( 2594): Face Front Camera is 0, orient is 0 I/FslCameraHAL( 2594): Camera ID 0: name ov5642, Facing 0, orientation 0, dev path I/AudioPolicyManagerBase( 2594): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf W/audio_hw_primary( 2594): card 0, id imxtlv320aic300 ,driver imx_tlv320aic30, name imx_tlv320aic3007-audio W/audio_hw_primary( 2594): out rate 44100 W/audio_hw_primary( 2594): in rate 44100, channels 1 format 0 I/AudioFlinger( 2594): loadHwModule() Loaded primary audio interface from Freescale i.MX Audio HW HAL (audio) handle 1 W/audio_hw_primary( 2594): open output stream devices 2, format 1, channels 3, sample_rate 48000, flag 2 W/audio_hw_primary( 2594): opened out stream...1074105088 I/AudioFlinger( 2594): HAL output buffer size 192 frames, normal mix buffer size 768 frames I/AudioMixer( 2594): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project E/MonoPipe( 2594): Failed to fetch local time frequency when constructing a MonoPipe (res = -32).  getNextWriteTimestamp calls will be non-functional The above issue is resolved now i'm able to get the home screen, but the display is divided in to 2, the actual left half shifted to right and actual right half shifted to left. and even the display color changed to dark yellow and the image latency is too low. I'll update with the images(screenshots) soon. This document was generated from the following discussion: help in porting Android Jb to imx6q custom board
View full article
When using Gigabit Ethernet on boards i.MX running Windows 10 IoT Core users may experience network unstability and low latency using build W1809_1_1_0_imx-iotcore. This was fixed by increasing the size of Rx/Tx buffer in ethernet driver. Fix will be part of the next release of BSP, to apply fix to current version a patch was created. To apply patch, copy content of zip archive to appropriate location in folder structure and rebuild BSP.
View full article
Hello! Here's some CODE!!! #include <iostream> #include <stdio.h> #include <assert.h> #include <string.h> #include <fcntl.h> #include <malloc.h> #include <math.h> #include <stdlib.h> //#define EGL_USE_GLES2 #include <GLES2/gl2.h> #include <EGL/egl.h> #include <GLES2/gl2ext.h> #include <EGL/eglext.h> #include <termios.h> #include <unistd.h> #include <fcntl.h> #ifdef EGL_USE_X11 #include <X11/X.h> #include <X11/Xlib.h> #endif EGLDisplay egldisplay; EGLConfig eglconfig; EGLSurface eglsurface; EGLContext eglcontext; EGLNativeWindowType eglNativeWindow; EGLNativeDisplayType eglNativeDisplayType; EGLNativeDisplayType fsl_getNativeDisplay() {   EGLNativeDisplayType eglNativeDisplayType = NULL; #if (defined EGL_USE_X11)   eglNativeDisplayType = XOpenDisplay(NULL);   assert(eglNativeDisplayType != NULL); #elif (defined EGL_API_FB)   eglNativeDisplayType = fbGetDisplayByIndex(0); //Pass the argument as required to show the framebuffer #else   display = EGL_DEFAULT_DISPLAY; #endif   return eglNativeDisplayType; } EGLNativeWindowType fsl_createwindow(EGLDisplay egldisplay, EGLNativeDisplayType eglNativeDisplayType) {   EGLNativeWindowType native_window = (EGLNativeWindowType)0; #if (defined EGL_USE_X11)   Window window, rootwindow;   int screen = DefaultScreen(eglNativeDisplayType);   rootwindow = RootWindow(eglNativeDisplayType,screen);   window = XCreateSimpleWindow(eglNativeDisplayType, rootwindow, 0, 0, 400, 533, 0, 0, WhitePixel (eglNativeDisplayType, screen));   XMapWindow(eglNativeDisplayType, window);   native_window = window; #else   const char *vendor = eglQueryString(egldisplay, EGL_VENDOR);   if (strstr(vendor, "Imagination Technologies"))   native_window = (EGLNativeWindowType)0;   else if (strstr(vendor, "AMD"))   native_window = (EGLNativeWindowType)  open("/dev/fb0", O_RDWR);   else if (strstr(vendor, "Vivante")) //NEEDS FIX - functs don't exist on other platforms   { #if (defined EGL_API_FB)   native_window = fbCreateWindow(eglNativeDisplayType, 0, 0, 0, 0); #endif   }   else   {   printf("Unknown vendor [%s]\n", vendor);   return 0;   } #endif   return native_window; } void fsl_destroywindow(EGLNativeWindowType eglNativeWindowType, EGLNativeDisplayType eglNativeDisplayType) {   (void) eglNativeWindowType; #if (defined EGL_USE_X11)   //close x display   XCloseDisplay(eglNativeDisplayType); #endif } void GLInit (void) {   static const EGLint s_configAttribs[] =   {   EGL_RED_SIZE, 5,   EGL_GREEN_SIZE, 6,   EGL_BLUE_SIZE, 5,   EGL_ALPHA_SIZE, 0,   EGL_SAMPLES, 0,   EGL_NONE   };   EGLint numconfigs;   printf("1");   eglNativeDisplayType = fsl_getNativeDisplay();   printf("2");   egldisplay = eglGetDisplay(eglNativeDisplayType);   printf("3");   eglInitialize(egldisplay, NULL, NULL);   printf("4");   assert(eglGetError() == EGL_SUCCESS);   printf("5");   eglBindAPI(EGL_OPENGL_ES_API);   printf("6");   eglChooseConfig(egldisplay, s_configAttribs, &eglconfig, 1, &numconfigs);   assert(eglGetError() == EGL_SUCCESS);   assert(numconfigs == 1);   printf("7");   eglNativeWindow = fsl_createwindow(egldisplay, eglNativeDisplayType);   assert(eglNativeWindow);   printf("8");   eglsurface = eglCreateWindowSurface(egldisplay, eglconfig, eglNativeWindow, NULL);   assert(eglGetError() == EGL_SUCCESS);   printf("9");   EGLint ContextAttribList[] = { EGL_CONTEXT_CLIENT_VERSION, 2, EGL_NONE };   eglcontext = eglCreateContext( egldisplay, eglconfig, EGL_NO_CONTEXT, ContextAttribList );   assert(eglGetError() == EGL_SUCCESS);   printf("10");   eglMakeCurrent(egldisplay, eglsurface, eglsurface, eglcontext);   assert(eglGetError() == EGL_SUCCESS); } void GLEnd (void) {   printf("Cleaning up...\n");   eglMakeCurrent(egldisplay, EGL_NO_SURFACE, EGL_NO_SURFACE, EGL_NO_CONTEXT);   assert(eglGetError() == EGL_SUCCESS);   eglDestroyContext(egldisplay, eglcontext);   eglDestroySurface(egldisplay, eglsurface);   fsl_destroywindow(eglNativeWindow, eglNativeDisplayType);   eglTerminate(egldisplay);   assert(eglGetError() == EGL_SUCCESS);   eglReleaseThread(); } int main (int argc, char **argv) {   GLInit();   for( int i = 0; i < 100000; ++i)   {   glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);     // Clear The Screen And The Depth Buffer   glClearColor (.0f, .0f, 1.0f, 1.0f);   eglSwapBuffers (egldisplay, eglsurface);   }   GLEnd(); } Above code is stitched together from samples from GPU SDK. I've built an image using Yocto (dylan branch) and build the meta-toolchain-qt (and qte). Successfully managed to build above code ONLY FOR X11. Issues i am facing: 1) if build for X11 and run app on the board, window shows, but it stays white, when it should be BLUE...doesn't update no matter what color i glClear to. 2) when compiling with FB, fbCreateWindow and etc don't get recognized, i.e. undefined reference to `fbCreateWindow' .... WHAT header contains these functions???? 3) if even the basic samples don't work, how the hell is anybody supposed to build a GL application on this board?? --- more rhetorical than a real question, just frustrated here... what did i do wrong? 4) please show me a working tutorial or some code on how to get this EGL context initialized...i'm running at wit's end here...
View full article
Tool: VMware Workstation Player Linux Distribution : Ubuntu 16.04 1. Create the VM in VMware Workstation. 2. Select the .iso file to install the Ubuntu 16.04 in the VM. 3. In "Specify Disk Capacity", I recommend the disk size is 200GB. 4. Then click "Finish" to create the VM. 5. If you have local mirror sources, change the source in /etc/apt/source.list. This will speed up a lot when you download the Linux packages and software. 6. Type these two commands to update the Ubuntu system. - sudo apt-get update - sudo apt-get upgrade 7. Install Yocto Project host packages $ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib build-essential chrpath socat libsdl1.2-dev $ sudo apt-get install libsdl1.2-dev xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev mercurial autoconf automake groff curl lzop asciidoc u-boot-tools 8.Install the repo a. Create a bin folder in the home directory. $ mkdir ~/bin (this step may not be needed if the bin folder already exists) $ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo b. Add the following line to the .bashrc file to ensure that the ~/bin folder is in your PATH variable. export PATH=~/bin:$PATH If you cannot download the repo from google, please try this one: Git Repo | 镜像站使用帮助 | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror  9. Yocto project setup $ mkdir imx-yocto-bsp $ cd imx-yocto-bsp $ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.98-2.0.0_ga.xml $ repo sync 10. Building an image The syntax for the fsl-setup-release.sh script is shown below. $ DISTRO=<distro name> MACHINE=<machine name> source fsl-setup-release.sh -b <build dir> $ DISTRO=fsl-imx-xwayland MACHINE=imx8qxpmek source fsl-setup-release.sh -b build-xwayland $ bitbake fsl-image-qt5-validation-imx or $ bitbake core-image-full-cmdline (smaller size of rootfs) (for more examples, please refer to the i.MX_Yocto_Project_User's_Guide.pdf) 11. U-boot and Kernel Source code in Yocto u-boot : imx-yocto-bsp/build-xwayland/tmp/work/<board_name>/u-boot-imx kernel : imx-yocto-bsp/build-xwayland/tmp/work/<board_name>/linux-imx 12. Deploy folder of the images imx-yocto-bsp/build-xwayland/tmp/deploy/images/<board_name> Some useful commands for your information: 1. Kernel Menuconfig $ bitbake linux-imx -c menuconfig 2. Rebuild the u-boot and kernel source code $ bitbake u-boot-imx -c compile -f $ bitbake linux-imx -c compile -f 3. Rebuild the whole project to generate the images to deploy folder again for example, if you build the fsl-image-qt5-validation-imx before , then type this: $ bitbake fsl-image-qt5-validation-imx -f Reference: (1) Download the BSP and the Documentation   :  i.MX Software | NXP 
View full article