<div dir="ltr">Hello, <div>Recently, i am working on enabling mali 450 gpu at debian xorg X windows for hikey board which is one of <a href="https://www.96boards.org/">96boards</a>.</div><div><br></div><div>I first implement xf86-video-armsoc(ver1.1.0) video driver, compile and cp armsoc_drv.so to directory "/usr/lib/xorg/modules/drivers".</div><div>And then compile arm mali r5p0 DDK and cp egl and gles libs(libEGL.so  libEGL.so.1  libEGL.so.1.4  libGLESv1_CM.so  libGLESv1_CM.so.1  libGLESv1_CM.so.1.1  libGLESv2.so  libGLESv2.so.2  libGLESv2.so.2.0  libMali.so) to directory "/usr/lib/aarch64-linux-gnu/" or "/usr/lib".</div><div><br></div><div>my xorg.conf is show as bellow:</div><div>----------------------------xorg.conf  start--------------------------<br></div><div><div>cat /etc/X11/xorg.conf</div><div>Section "Device"</div><div>        Identifier  "Card0"<br></div><div>        Driver      "armsoc"</div><div>EndSection</div><div><br></div><div>Section "Screen"</div><div>        Identifier "Screen0"</div><div>        Device     "Card0"</div><div>        DefaultDepth 24</div><div>EndSection</div></div><div>----------------------------xorg.conf  end--------------------------<br></div><div>Then i run  startx, i can see the desktop on the monitor. </div><div>But i found that the X process doesn't load any EGL and GLES libs by seeing the info of /proc/X process ID/task/*/smaps file.</div><div>And even when i run #es2_info , i get bellow error:</div><div>----------------------------es2_info log  start--------------------------<br></div><div><div># es2_info</div><div>[ 1010.459771] es2_info[1858]: unhandled level 3 translation fault (7) at 0x7f9dbe66b0, esr 0x92000047</div><div>[ 1010.468920] pgd = ffffffc03209b000</div><div>[ 1010.472324] [7f9dbe66b0] *pgd=000000003aad5003, *pud=000000003aad5003, *pmd=00000000384ae003, *pte=0000000000000000</div><div>[ 1010.482838] </div><div>[ 1010.484335] CPU: 2 PID: 1858 Comm: es2_info Tainted: G        W      3.18.0-linaro-hikey #37</div><div>[ 1010.492802] task: ffffffc032b28780 ti: ffffffc0329c0000 task.ti: ffffffc0329c0000</div><div>[ 1010.500322] PC is at 0x7f9dbfd744</div><div>[ 1010.503639] LR is at 0x7f9dbecbb0</div><div>[ 1010.507000] pc : [<0000007f9dbfd744>] lr : [<0000007f9dbecbb0>] pstate: 20000000</div><div>[ 1010.514402] sp : 0000007fffe87800</div><div>[ 1010.517764] x29: 0000007fffe87930 x28: 0000007f9dc0f570 </div><div>[ 1010.523098] x27: 0000007fffe87bb0 x26: 0000007fffe87830 </div><div>[ 1010.528473] x25: 0000000000000001 x24: 0000007fffe87b70 </div><div>[ 1010.533806] x23: 0000000000000000 x22: 0000000000000002 </div><div>[ 1010.539179] x21: 0000000000000006 x20: 0000007f9dc12000 </div><div>[ 1010.544511] x19: 00000000002c9978 x18: 0000000000000000 </div><div>[ 1010.549886] x17: 0000007f9dbfa8d0 x16: 0000007f9dc13000 </div><div>[ 1010.555259] x15: 0000007f9dbfa338 x14: 0000007f9dbfa410 </div><div>[ 1010.560594] x13: 00000000002ca6af x12: 0000000000007978 </div><div>[ 1010.565965] x11: 0000007f9d91d000 x10: 0000007fffe87860 </div><div>[ 1010.571299] x9 : 0000000000000004 x8 : 0000007f9dbe66b0 </div><div>[ 1010.576672] x7 : 0000000000000000 x6 : 000000000000003f </div><div>[ 1010.582006] x5 : 0000000000000040 x4 : 0000000000000010 </div><div>[ 1010.587382] x3 : 00000000000002b8 x2 : 00000000000002b8 </div><div>[ 1010.592716] x1 : 0000000000000000 x0 : 0000007f9dbe66b0 </div><div>[ 1010.598088] </div><div>Bus error</div></div><div>---------------------------es2_info log end--------------------------<br></div><div><br></div><div><br></div><div>What's wrong? </div><div>Am I missing something on integrating xf86-video-armsoc? </div><div>And why X doesn't load any EGL and GLES so libs?</div><div>I paste the Xorg.0.log  at the end. </div><div>Please tell me if you know what's going wrong, thanks.</div><div><br></div><div>Best regards,</div><div>-Xinliang Liu</div><div><br></div><div><br></div><div><br></div><div>----------------------------Xorg.0.log  start--------------------------</div><div><div>cat /var/log/Xorg.0.log                                                                                                                                  </div><div>[    23.704] </div><div>X.Org X Server 1.16.4</div><div>Release Date: 2014-12-20</div><div>[    23.704] X Protocol Version 11, Revision 0</div><div>[    23.704] Build Operating System: Linux 3.16.0-4-arm64 aarch64 Debian</div><div>[    23.704] Current Operating System: Linux linaro-alip 3.18.0-linaro-hikey #37 SMP PREEMPT Tue May 12 19:01:21 HKT 2015 aarch64</div><div>[    23.704] Kernel command line: iommu_ddr_size=0x40000000 console=tty0 console=ttyAMA0,115200n8 loglevel=7 root=/dev/mmcblk0p7 rootwait rw</div><div>  mem=908M  boardid=0x48696220,0x00000011,0x0000002b thermal_trim=0xb6aaaa09 pd_charge=0 boottype=defaultnormal enter_recovery=0 androidboot.swtype=normal fastboot_version= himn </div><div>[    23.704] Build Date: 11 February 2015  01:19:23AM</div><div>[    23.704] xorg-server 2:1.16.4-1 (<a href="http://www.debian.org/support">http://www.debian.org/support</a>) </div><div>[    23.704] Current version of pixman: 0.32.6</div><div>[    23.704]    Before reporting problems, check <a href="http://wiki.x.org">http://wiki.x.org</a></div><div>        to make sure that you have the latest version.</div><div>[    23.704] Markers: (--) probed, (**) from config file, (==) default setting,</div><div>        (++) from command line, (!!) notice, (II) informational,</div><div>        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.</div><div>[    23.705] (==) Log file: "/var/log/Xorg.0.log", Time: Tue May 12 09:11:51 2015</div><div>[    23.705] (==) Using config file: "/etc/X11/xorg.conf"</div><div>[    23.705] (==) Using system config directory "/usr/share/X11/xorg.conf.d"</div><div>[    23.706] (==) No Layout section.  Using the first Screen section.</div><div>[    23.706] (**) |-->Screen "Screen0" (0)</div><div>[    23.706] (**) |   |-->Monitor "<default monitor>"</div><div>[    23.707] (**) |   |-->Device "Card0"</div><div>[    23.707] (==) No monitor specified for screen "Screen0".</div><div>        Using a default monitor configuration.</div><div>[    23.707] (==) Automatically adding devices</div><div>[    23.707] (==) Automatically enabling devices</div><div>[    23.707] (==) Automatically adding GPU devices</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/misc" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.</div><div>[    23.707]    Entry deleted from font path.</div><div>[    23.707] (==) FontPath set to:</div><div>        built-ins</div><div>[    23.707] (==) ModulePath set to "/usr/lib/xorg/modules"</div><div>[    23.707] (II) The server relies on udev to provide the list of input devices.</div><div>        If no devices become available, reconfigure udev or disable AutoAddDevices.</div><div>[    23.707] (II) Loader magic: 0x7fa49a7ce8</div><div>[    23.707] (II) Module ABI versions:</div><div>[    23.707]    X.Org ANSI C Emulation: 0.4</div><div>[    23.707]    X.Org Video Driver: 18.0</div><div>[    23.708]    X.Org XInput driver : 21.0</div><div>[    23.708]    X.Org Server Extension : 8.0</div><div>[    23.708] (II) xfree86: Adding drm device (/dev/dri/card0)</div><div>[    23.709] (II) no primary bus or device found</div><div>[    23.709]    falling back to /sys/devices/smb/smb:display-subsystem/drm/card0</div><div>[    23.709] (II) LoadModule: "glx"</div><div>[    23.710] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so</div><div>[    23.717] (II) Module glx: vendor="X.Org Foundation"</div><div>[    23.717]    compiled for 1.16.4, module version = 1.0.0</div><div>[    23.717]    ABI class: X.Org Server Extension, version 8.0</div><div>[    23.717] (==) AIGLX enabled</div><div>[    23.718] (II) LoadModule: "armsoc"</div><div>[    23.718] (II) Loading /usr/lib/xorg/modules/drivers/armsoc_drv.so</div><div>[    23.718] (II) Module armsoc: vendor="X.Org Foundation"</div><div>[    23.718]    compiled for 1.16.4, module version = 1.1.0</div><div>[    23.718]    Module class: X.Org Video Driver</div><div>[    23.718]    ABI class: X.Org Video Driver, version 18.0</div><div>[    23.718] (II) ARMSOC: Driver for ARM Mali compatible chipsets</div><div>[    23.718] (++) using VT number 7</div><div><br></div><div>[    23.719] (WW) Falling back to old probe method for armsoc</div><div>[    23.719] (II) No BusID or DriverName specified - opening /dev/dri/card0</div><div>[    23.719] (II) Got BusID platform:smb:display-subsystem:00</div><div>[    23.719] (II) Opened DRM</div><div>[    23.719] (II)    DeviceName is [/dev/dri/card0]</div><div>[    23.719] (II)    bus_id is [platform:smb:display-subsystem:00]</div><div>[    23.719] (II)    DriverName is [hisi]</div><div>[    23.719] (II)    version is [1.0.0]</div><div>[    23.719] (II) Screen:0,  CRTC:-1</div><div>[    23.720] (II) ARMSOC(0): Creating default Display subsection in Screen section</div><div>        "Screen0" for depth/fbbpp 24/32</div><div>[    23.720] (**) ARMSOC(0): Depth 24, (--) framebuffer bpp 32</div><div>[    23.720] (==) ARMSOC(0): RGB weight 888</div><div>[    23.720] (==) ARMSOC(0): Using gamma correction (1.0, 1.0, 1.0)</div><div>[    23.720] (==) ARMSOC(0): Default visual is TrueColor</div><div>[    23.720] (II) No BusID or DriverName specified - opening /dev/dri/card0</div><div>[    23.720] (II) Got BusID platform:smb:display-subsystem:00</div><div>[    23.720] (II) Opened DRM</div><div>[    23.720] (II)    DeviceName is [/dev/dri/card0]</div><div>[    23.720] (II)    bus_id is [platform:smb:display-subsystem:00]</div><div>[    23.720] (II)    DriverName is [hisi]</div><div>[    23.720] (II)    version is [1.0.0]</div><div>[    23.720] (II) ARMSOC(0): Chipset: Mali</div><div>[    23.720] (II) ARMSOC(0): Buffer Flipping is Enabled</div><div>[    23.720] (II) ARMSOC(0): Setting the video modes ...</div><div>[    23.721] (II) ARMSOC(0): Adding all CRTCs</div><div>[    23.721] (II) ARMSOC(0): Got CRTC: 0 (id: 6)</div><div>[    23.725] (II) ARMSOC(0): Output HDMI-1 has no monitor section</div><div>[    23.730] (II) ARMSOC(0): Printing probed modes for output HDMI-1</div><div>[    23.730] (II) ARMSOC(0): Modeline "1280x720"x60.6   75.00  1280 1500 1540 1650  720 740 745 750 -hsync -vsync (45.5 kHz e)</div><div>[    23.730] (II) ARMSOC(0): Output HDMI-1 connected</div><div>[    23.730] (II) ARMSOC(0): Using sloppy heuristic for initial modes</div><div>[    23.730] (II) ARMSOC(0): Output HDMI-1 using initial mode 1280x720</div><div>[    23.730] (II) ARMSOC(0): Got KMS resources</div><div>[    23.730] (==) ARMSOC(0): DPI set to (96, 96)</div><div>[    23.730] (II) Loading sub module "dri2"</div><div>[    23.730] (II) LoadModule: "dri2"</div><div>[    23.730] (II) Module "dri2" already built-in</div><div>[    23.730] (II) Loading sub module "exa"</div><div>[    23.730] (II) LoadModule: "exa"</div><div>[    23.731] (II) Loading /usr/lib/xorg/modules/libexa.so</div><div>[    23.731] (II) Module exa: vendor="X.Org Foundation"</div><div>[    23.731]    compiled for 1.16.4, module version = 2.6.0</div><div>[    23.731]    ABI class: X.Org Video Driver, version 18.0</div><div>[    23.731] (II) Loading sub module "fb"</div><div>[    23.731] (II) LoadModule: "fb"</div><div>[    23.732] (II) Loading /usr/lib/xorg/modules/libfb.so</div><div>[    23.732] (II) Module fb: vendor="X.Org Foundation"</div><div>[    23.732]    compiled for 1.16.4, module version = 1.0.0</div><div>[    23.732]    ABI class: X.Org ANSI C Emulation, version 0.4</div><div>[    23.732] (--) Depth 24 pixmap format is 32 bpp</div><div>[    23.734] (II) ARMSOC(0): Soft EXA mode</div><div>[    23.734] (II) EXA(0): Driver allocated offscreen pixmaps</div><div>[    23.735] (II) EXA(0): Driver registered support for the following operations:</div><div>[    23.735] (II)         Solid</div><div>[    23.735] (II)         Copy</div><div>[    23.735] (II)         Composite (RENDER acceleration)</div><div>[    23.735] (II) ARMSOC(0): Setting swap chain size: 2 </div><div>[    23.735] (II) ARMSOC(0): [DRI2] Setup complete</div><div>[    23.735] (II) ARMSOC(0): [DRI2]   DRI driver: armsoc</div><div>[    23.735] (==) ARMSOC(0): Backing store enabled</div><div>[    23.735] (==) ARMSOC(0): Silken mouse enabled</div><div>[    23.735] (II) ARMSOC(0): HW cursor init()</div><div>[    23.735] (II) ARMSOC(0): HW cursor initialized</div><div>[    23.763] (II) ARMSOC(0): RandR 1.2 enabled, ignore the following RandR disabled message.</div><div>[    23.764] (==) ARMSOC(0): DPMS enabled</div><div>[    23.764] (--) RandR disabled</div><div>[    23.790] (II) SELinux: Disabled on system</div><div>[    23.793] (EE) AIGLX error: dlopen of /usr/lib/aarch64-linux-gnu/dri/armsoc_dri.so failed (/usr/lib/aarch64-linux-gnu/dri/armsoc_dri.so: cannot open shared object file: No su)</div><div>[    23.793] (EE) AIGLX: reverting to software rendering</div><div>[    23.793] (EE) AIGLX error: dlopen of /usr/lib/aarch64-linux-gnu/dri/swrast_dri.so failed (/usr/lib/aarch64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No su)</div><div>[    23.793] (EE) GLX: could not load software renderer</div><div>[    23.793] (II) GLX: no usable GL providers found for screen 0</div><div>[    23.793] (II) ARMSOC(0): Setting screen physical size to 338 x 190</div><div>[    23.880] (II) config/udev: Adding input device USB OPTICAL MOUSE  (/dev/input/event0)</div><div>[    23.880] (**) USB OPTICAL MOUSE : Applying InputClass "evdev pointer catchall"</div><div>[    23.880] (II) LoadModule: "evdev"</div><div>[    23.881] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so</div><div>[    23.882] (II) Module evdev: vendor="X.Org Foundation"</div><div>[    23.882]    compiled for 1.16.0, module version = 2.9.0</div><div>[    23.882]    Module class: X.Org XInput Driver</div><div>[    23.882]    ABI class: X.Org XInput driver, version 21.0</div><div>[    23.882] (II) Using input driver 'evdev' for 'USB OPTICAL MOUSE '</div><div>[    23.882] (**) USB OPTICAL MOUSE : always reports core events</div><div>[    23.882] (**) evdev: USB OPTICAL MOUSE : Device: "/dev/input/event0"</div><div>[    23.882] (--) evdev: USB OPTICAL MOUSE : Vendor 0x101 Product 0x7</div><div>[    23.882] (--) evdev: USB OPTICAL MOUSE : Found 9 mouse buttons</div><div>[    23.883] (--) evdev: USB OPTICAL MOUSE : Found scroll wheel(s)</div><div>[    23.883] (--) evdev: USB OPTICAL MOUSE : Found relative axes</div><div>[    23.883] (--) evdev: USB OPTICAL MOUSE : Found x and y relative axes</div><div>[    23.883] (II) evdev: USB OPTICAL MOUSE : Configuring as mouse</div><div>[    23.883] (II) evdev: USB OPTICAL MOUSE : Adding scrollwheel support</div><div>[    23.883] (**) evdev: USB OPTICAL MOUSE : YAxisMapping: buttons 4 and 5</div><div>[    23.883] (**) evdev: USB OPTICAL MOUSE : EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200</div><div>[    23.883] (**) Option "config_info" "udev:/sys/devices/f72c0000.usb/usb1/1-1/1-1.1/1-1.1:1.0/0003:0101:0007.0001/input/input0/event0"</div><div>[    23.883] (II) XINPUT: Adding extended input device "USB OPTICAL MOUSE " (type: MOUSE, id 6)</div><div>[    23.883] (II) evdev: USB OPTICAL MOUSE : initialized for relative axes.</div><div>[    23.884] (**) USB OPTICAL MOUSE : (accel) keeping acceleration scheme 1</div><div>[    23.884] (**) USB OPTICAL MOUSE : (accel) acceleration profile 0</div><div>[    23.884] (**) USB OPTICAL MOUSE : (accel) acceleration factor: 2.000</div><div>[    23.884] (**) USB OPTICAL MOUSE : (accel) acceleration threshold: 4</div><div>[    23.885] (II) config/udev: Adding input device USB OPTICAL MOUSE  (/dev/input/mouse0)</div><div>[    23.885] (II) No input driver specified, ignoring this device.</div><div>[    23.885] (II) This device may have been added with another device file.</div><div>[    23.886] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event1)</div><div>[    23.886] (**) SIGMACHIP USB Keyboard: Applying InputClass "evdev keyboard catchall"</div><div>[    23.886] (II) Using input driver 'evdev' for 'SIGMACHIP USB Keyboard'</div><div>[    23.886] (**) SIGMACHIP USB Keyboard: always reports core events</div><div>[    23.886] (**) evdev: SIGMACHIP USB Keyboard: Device: "/dev/input/event1"</div><div>[    23.886] (--) evdev: SIGMACHIP USB Keyboard: Vendor 0x1c4f Product 0x2</div><div>[    23.886] (--) evdev: SIGMACHIP USB Keyboard: Found keys</div><div>[    23.886] (II) evdev: SIGMACHIP USB Keyboard: Configuring as keyboard</div><div>[    23.887] (**) Option "config_info" "udev:/sys/devices/f72c0000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:1C4F:0002.0002/input/input1/event1"</div><div>[    23.887] (II) XINPUT: Adding extended input device "SIGMACHIP USB Keyboard" (type: KEYBOARD, id 7)</div><div>[    23.887] (**) Option "xkb_rules" "evdev"</div><div>[    23.887] (**) Option "xkb_model" "pc105"</div><div>[    23.887] (**) Option "xkb_layout" "us"</div><div>[    23.889] (II) config/udev: Adding input device SIGMACHIP USB Keyboard (/dev/input/event2)</div><div>[    23.889] (**) SIGMACHIP USB Keyboard: Applying InputClass "evdev keyboard catchall"</div><div>[    23.889] (II) Using input driver 'evdev' for 'SIGMACHIP USB Keyboard'</div><div>[    23.889] (**) SIGMACHIP USB Keyboard: always reports core events</div><div>[    23.889] (**) evdev: SIGMACHIP USB Keyboard: Device: "/dev/input/event2"</div><div>[    23.889] (--) evdev: SIGMACHIP USB Keyboard: Vendor 0x1c4f Product 0x2</div><div>[    23.889] (--) evdev: SIGMACHIP USB Keyboard: Found 1 mouse buttons</div><div>[    23.889] (--) evdev: SIGMACHIP USB Keyboard: Found scroll wheel(s)</div><div>[    23.889] (--) evdev: SIGMACHIP USB Keyboard: Found relative axes</div><div>[    23.889] (II) evdev: SIGMACHIP USB Keyboard: Forcing relative x/y axes to exist.</div><div>[    23.889] (--) evdev: SIGMACHIP USB Keyboard: Found absolute axes</div><div>[    23.889] (II) evdev: SIGMACHIP USB Keyboard: Forcing absolute x/y axes to exist.</div><div>[    23.889] (--) evdev: SIGMACHIP USB Keyboard: Found keys</div><div>[    23.889] (II) evdev: SIGMACHIP USB Keyboard: Configuring as mouse</div><div>[    23.889] (II) evdev: SIGMACHIP USB Keyboard: Configuring as keyboard</div><div>[    23.889] (II) evdev: SIGMACHIP USB Keyboard: Adding scrollwheel support</div><div>[    23.889] (**) evdev: SIGMACHIP USB Keyboard: YAxisMapping: buttons 4 and 5</div><div>[    23.889] (**) evdev: SIGMACHIP USB Keyboard: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200</div><div>[    23.890] (**) Option "config_info" "udev:/sys/devices/f72c0000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:1C4F:0002.0003/input/input2/event2"</div><div>[    23.890] (II) XINPUT: Adding extended input device "SIGMACHIP USB Keyboard" (type: KEYBOARD, id 8)</div><div>[    23.890] (**) Option "xkb_rules" "evdev"</div><div>[    23.890] (**) Option "xkb_model" "pc105"</div><div>[    23.890] (**) Option "xkb_layout" "us"</div><div>[    23.890] (II) evdev: SIGMACHIP USB Keyboard: initialized for relative axes.</div><div>[    23.890] (WW) evdev: SIGMACHIP USB Keyboard: ignoring absolute axes.</div><div>[    23.891] (**) SIGMACHIP USB Keyboard: (accel) keeping acceleration scheme 1</div><div>[    23.891] (**) SIGMACHIP USB Keyboard: (accel) acceleration profile 0</div><div>[    23.891] (**) SIGMACHIP USB Keyboard: (accel) acceleration factor: 2.000</div><div>[    23.891] (**) SIGMACHIP USB Keyboard: (accel) acceleration threshold: 4</div><div>[    24.324] (II) evdev: SIGMACHIP USB Keyboard: Close</div><div>[    24.325] (II) UnloadModule: "evdev"</div><div>[    24.325] (II) evdev: SIGMACHIP USB Keyboard: Close</div><div>[    24.326] (II) UnloadModule: "evdev"</div><div>[    24.326] (II) evdev: USB OPTICAL MOUSE : Close</div><div>[    24.326] (II) UnloadModule: "evdev"</div><div>[    24.332] (EE) Server terminated successfully (0). Closing log file.</div></div><div>----------------------------Xorg.0.log  end---------------------------<br></div><div><br></div></div>