This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM3358: Unable to boot on custom board

Part Number: AM3358


Tool/software: Linux

we designed custom board with same reference as beaglebone but in place of am3358 we replaced with octavo am3358  module .

i checked the mmc pins same as beagle bone reference but we replaced the sd card slot . In that slot it does not  have CD ( card detect line ) . In our custom board we removed CD (card detect) pin for sd card .

Is it problem ?

checked mmc info : does not showing sd card info.

but fortunately , I seen a post relevant  to my problem .

https://e2e.ti.com/support/processors/f/791/p/796246/2946633?tisearch=e2e-sitesearch&keymatch=bad%20device%20mmc%200%20gaurav#pi320966=2

in this post , they provided mlo and uboot .img .

i removed default file which created through _create_sdcard.sh and repalced this files .

but unable to find what are the changes are required in uboot . so that i can change in uboot of my sdk

  • Hello manoj,

    Please, remove the cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; line and add broken-cd; label to the mmc1 node in <Processor SDK>/board-support/u-boot-<version>/arch/arm/dts/am335x-bone-common.dtsi, rebuild and replace the default files which created through create-sdcard.sh with the new generated MLO and u-boot.img images.

    Best regards,
    Kemal

  • Hello Kemal sir,
    THanks for response .

    with your suggestion , removed the mlo and uboot.img files which will created through create_sd_card and replaced the mlo and uboot.img files o uboot folder .

    so that i can boot the linux sdk .

    but problem is that matrix gui is not starting and shows please wait on the screen ....................

    trying to open the qt5 example shows failed to create such directory .

    changed the pover.ini and weston .in files as for rgb format
    as per few posts , i found some problem . how to solve this

    root@am335x-evm:~# weston
    Date: 2018-12-16 UTC
    [03:34:54.942] weston 2.0.0
    http://wayland.freedesktop.org
    Bug reports to: bugs.freedesktop.org/enter_bug.cgi
    Build: 1.99.94-2-g4c4f13d configure.ac: bump to version 2.0.0 for the official release (2017-02-24 16:19:03 -0800)
    [03:34:54.943] Command line: weston
    [03:34:54.943] OS: Linux, 4.14.79-gbde58ab01e, #1 PREEMPT Thu Dec 20 04:12:32 UTC 2018, armv7l
    [03:34:54.944] Using config file '/etc//weston.ini'
    [03:34:54.945] Output repaint window is 7 ms maximum.
    [03:34:54.945] Loading module '/usr/lib/libweston-2/wayland-backend.so'
    [03:34:54.945] Failed to load module: /usr/lib/libweston-2/wayland-backend.so: cannot open shared object file: No such file or directory
    [03:34:54.945] fatal: failed to create compositor backend


    root@am335x-evm:~# tail /var/log/weston.log
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    [03:32:01.167] warning: either no EGL_EXT_platform_base support or specific platform support; falling back to eglGetDisplay.
    [03:32:01.203] failed to initialize display
    [03:32:01.203] EGL error state: EGL_BAD_ALLOC (0x3003)
    [03:32:01.203] failed to initialize egl
    [03:32:01.222] fatal: failed to create compositor backend
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]


    root@am335x-evm:~# uname -r
    4.14.79-gbde58ab01e
    root@am335x-evm:~# eglinfo
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    Unable to initialise egl
    egl error 'EGL_BAD_ALLOC' (0x3003)
    root@am335x-evm:~#
  • Logs of egl info , lsmod , modinfo pvrsrvkm ,lsmod , modetest , kmscube -a


    root@am335x-evm:~# eglinfo
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    Unable to initialise egl
    egl error 'EGL_BAD_ALLOC' (0x3003)

    root@am335x-evm:~# modinfo pvrsrvkm
    filename: /lib/modules/4.14.79-gbde58ab01e/extra/pvrsrvkm.ko
    license: Dual MIT/GPL
    author: Imagination Technologies Ltd. <gpl-support@imgtec.com>
    license: Dual MIT/GPL
    author: Imagination Technologies Ltd. <gpl-support@imgtec.com>
    srcversion: 533BB7E5866E52F63B9ACCB
    alias: of:N*T*Cti,am3352-sgx530C*
    alias: of:N*T*Cti,am3352-sgx530
    depends:
    name: pvrsrvkm
    vermagic: 4.14.79-gbde58ab01e preempt mod_unload modversions ARMv7 p2v8
    parm: gPVRDebugLevel:Sets the level of debug output (default 0x7) (uint)

    root@am335x-evm:~# lsmod
    Module Size Used by
    sha512_generic 20480 0
    sha512_arm 24576 0
    sha256_generic 20480 0
    sha1_generic 16384 0
    sha1_arm_neon 20480 0
    sha1_arm 16384 1 sha1_arm_neon
    md5 16384 0
    aes_arm_bs 20480 0
    crypto_simd 16384 1 aes_arm_bs
    cryptd 24576 1 crypto_simd
    des_generic 28672 0
    cbc 16384 0
    xfrm_user 32768 2
    xfrm4_tunnel 16384 0
    ipcomp 16384 0
    xfrm_ipcomp 16384 1 ipcomp
    esp4 20480 0
    ah4 16384 0
    af_key 36864 0
    xfrm_algo 16384 5 xfrm_user,esp4,ah4,af_key,xfrm_ipcomp
    pvrsrvkm 413696 0
    pru_rproc 20480 0
    pruss_intc 16384 1 pru_rproc
    hid_multitouch 20480 0
    usbhid 28672 0
    arc4 16384 2
    wl18xx 98304 0
    wlcore 188416 1 wl18xx
    mac80211 393216 2 wl18xx,wlcore
    cfg80211 245760 3 wl18xx,wlcore,mac80211
    usb_f_acm 16384 1
    u_serial 20480 3 usb_f_acm
    pruss 16384 1 pru_rproc
    usb_f_ecm 16384 1
    musb_dsps 20480 0
    musb_hdrc 98304 1 musb_dsps
    phy_am335x 16384 2
    phy_am335x_control 16384 1 phy_am335x
    phy_generic 16384 1 phy_am335x
    g_multi 16384 0
    usb_f_mass_storage 40960 2 g_multi
    usb_f_rndis 24576 2 g_multi
    u_ether 20480 3 usb_f_ecm,g_multi,usb_f_rndis
    libcomposite 53248 5 usb_f_ecm,usb_f_acm,usb_f_mass_storage,g_multi,usb_f_rndis
    udc_core 28672 8 usb_f_ecm,usb_f_acm,usb_f_mass_storage,u_serial,musb_hdrc,u_ether,usb_f_rndis,libcomposite
    pm33xx 16384 0
    snd_soc_simple_card 16384 0
    snd_soc_simple_card_utils 16384 1 snd_soc_simple_card
    wkup_m3_rproc 16384 1
    wkup_m3_ipc 16384 1 pm33xx
    remoteproc 40960 3 pru_rproc,wkup_m3_rproc,wkup_m3_ipc
    omap_aes_driver 24576 0
    crypto_engine 16384 1 omap_aes_driver
    omap_sham 28672 0
    omap_crypto 16384 1 omap_aes_driver
    pruss_soc_bus 16384 0
    ti_emif_sram 16384 1 pm33xx
    wlcore_sdio 16384 0
    at24 16384 0
    rtc_omap 20480 2
    musb_am335x 16384 0
    omap_wdt 16384 0
    sch_fq_codel 20480 6
    uio_module_drv 16384 0
    uio 20480 1 uio_module_drv
    ftdi_sio 40960 0
    usbserial 36864 1 ftdi_sio
    usbcore 204800 4 usbhid,ftdi_sio,musb_hdrc,usbserial
    usb_common 16384 6 phy_am335x,udc_core,musb_hdrc,libcomposite,musb_dsps,usbcore
    cryptodev 45056 1


    root@am335x-evm:~# modetest
    trying to open device 'i915'...failed
    trying to open device 'amdgpu'...failed
    trying to open device 'radeon'...failed
    trying to open device 'nouveau'...failed
    trying to open device 'vmwgfx'...failed
    trying to open device 'omapdrm'...failed
    trying to open device 'exynos'...failed
    trying to open device 'tilcdc'...done
    [ 4511.882033] tda998x 0-0070: read edid timeout
    [ 4511.887985] tda998x 0-0070: failed to read EDID
    Encoders:
    id crtc type possible crtcs possible clones
    29 28 TMDS 0x00000001 0x00000000

    Connectors:
    id encoder status name size (mm) modes encoders
    30 29 connected HDMI-A-1 0x0 5 29
    modes:
    name refresh (Hz) hdisp hss hse htot vdisp vss vse vtot)
    1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
    800x600 60 800 840 968 1056 600 601 605 628 40000 flags: phsync, pvsync; type: driver
    800x600 56 800 824 896 1024 600 601 603 625 36000 flags: phsync, pvsync; type: driver
    848x480 60 848 864 976 1088 480 486 494 517 33750 flags: phsync, pvsync; type: driver
    640x480 60 640 656 752 800 480 490 492 525 25175 flags: nhsync, nvsync; type: driver
    props:
    1 EDID:
    flags: immutable blob
    blobs:

    value:
    2 DPMS:
    flags: enum
    enums: On=0 Standby=1 Suspend=2 Off=3
    value: 0
    5 link-status:
    flags: enum
    enums: Good=0 Bad=1
    value: 0

    CRTCs:
    id fb pos size
    28 37 (0,0) (1024x768)
    1024x768 60 1024 1048 1184 1344 768 771 777 806 65000 flags: nhsync, nvsync; type: driver
    props:

    Planes:
    id crtc fb CRTC x,y x,y gamma size possible crtcs
    27 28 37 0,0 0,0 0 0x00000001
    formats: RG16 BG24 XB24
    props:
    6 type:
    flags: immutable enum
    enums: Overlay=0 Primary=1 Cursor=2
    value: 1

    Frame buffers:
    id size pitch

    root@am335x-evm:~# kmscube -a
    ### Enabling all displays
    trying to load module omapdrm...failed.
    trying to load module tilcdc...success.
    [ 4574.141846] tda998x 0-0070: read edid timeout
    [ 4574.147762] tda998x 0-0070: failed to read EDID
    ### Display [0]: CRTC = 28, Connector = 30, format = 0x36314752
    Mode chosen [1024x768] : Clock => 65000, Vertical refresh => 60, Type => 64
    Horizontal => 1024, 1048, 1184, 1344, 0
    Vertical => 768, 771, 777, 806, 0
    ### Primary display => ConnectorId = 30, Resolution = 1024x768
    failed to load module: /usr/lib/gbm/gbm_dri.so: cannot open shared object file: No such file or directory
    failed to load module: /usr/lib/gbm/gbm_gallium_drm.so: cannot open shared object file: No such file or directory
    loaded module : gbm_pvr.so
    found valid GBM backend : gbm_pvr.so
    PVR:(Error): OpenServices: PVRDRMOpenRender failed [0, ]
    PVR:(Error): PVRSRVConnect: Unable to open connection. [0, ]
    PVR:(Error): Couldn't connect to services [0, ]
    failed to initialize
    failed to initialize EGL
  • Can you also post the output of these two commands?

    root@am335x-evm:~# cat /etc/powervr.ini
    root@am335x-evm:~# cat /etc/weston.ini
  • root@am335x-evm:~# cat /etc/powervr.ini
    [default]
    #WindowSystem=libpvrws_WAYLAND.so
    DefaultPixelFormat=RGB565

    root@am335x-evm:~# cat /etc/weston.ini
    [core]
    require-input=false
    gbm-format=rgb565

    [shell]
    locking=false
    animation=zoom
    tanel-position=top
    startup-animation=fade

    [screensaver]
    # Uncomment path to disable screensaver
    #path=@libexecdir@/weston-screensaver

    [output]
    name=HDMI-A-1
    mode=1024x768root@am335x-evm:~#
  • Hello manoj,

    Please, close this thread by clicking the "This resolved my issue" button over my first comment since it resolved the boot issue for you. The new weston issue you face will be answered in your new thread here.

    Best regards,
    Kemal