X server on ubuntu 20.04

Hi
I appreciate your quick suggestions. Your thoughtful contributions are greatly valued.

I’ll start from scratch and will try the same.

Does a new fix/version (5.10.131-bone-rt-r64) available in the mainline bb-kernel?

Thanks & Regards,

5.10.131-bone-rt-r64 is the top of this branch:

Regards,

Hi

Thank you for providing the kernel details, will try to build from the same.

I have installed bb.io-kernel-5.10-bone-rt and below are the results after rebooting the board,

ubuntu@ubuntu:~$ uname -r
5.10.131-bone-rt-r64
ubuntu@ubuntu:~$ cat /var/log/Xorg.0.log 
[    37.665] 
X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[    37.676] Build Operating System: Linux 4.4.0-177-generic armv7l Ubuntu
[    37.676] Current Operating System: Linux ubuntu 5.10.131-bone-rt-r64 #1focal SMP PREEMPT Wed Jul 20 07:20:12 UTC 2022 armv7l
[    37.676] Kernel command line: console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M quiet
[    37.678] Build Date: 06 April 2020  09:39:29AM
[    37.679] xorg-server 2:1.20.8-2ubuntu2 (For technical support please see http://www.ubuntu.com/support) 
[    37.679] Current version of pixman: 0.38.4
[    37.679] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    37.679] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    37.679] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr  1 17:24:11 2020
[    37.727] (==) Using config file: "/etc/X11/xorg.conf"
[    37.742] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    37.789] (==) ServerLayout "Builtin Default Layout"
[    37.792] (**) |-->Screen "Builtin Default fbdev Screen 0" (0)
[    37.792] (**) |   |-->Monitor "Builtin Default Monitor"
[    37.795] (**) |   |-->Device "Builtin Default fbdev Device 0"
[    37.795] (==) Automatically adding devices
[    37.795] (==) Automatically enabling devices
[    37.795] (==) Automatically adding GPU devices
[    37.795] (==) Automatically binding GPU devices
[    37.795] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    37.820] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc".
[    37.820] 	Entry deleted from font path.
[    37.820] 	(Run 'mkfontdir' on "/usr/share/fonts/X11/misc").
[    37.821] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    37.821] 	Entry deleted from font path.
[    37.821] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    37.821] 	Entry deleted from font path.
[    37.821] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    37.821] 	Entry deleted from font path.
[    37.821] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[    37.821] 	Entry deleted from font path.
[    37.821] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    37.821] 	Entry deleted from font path.
[    37.821] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    37.821] 	Entry deleted from font path.
[    37.821] (==) FontPath set to:
	built-ins
[    37.821] (==) ModulePath set to "/usr/lib/xorg/modules"
[    37.821] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    37.821] (II) Loader magic: 0x612008
[    37.821] (II) Module ABI versions:
[    37.821] 	X.Org ANSI C Emulation: 0.4
[    37.821] 	X.Org Video Driver: 24.1
[    37.822] 	X.Org XInput driver : 24.1
[    37.822] 	X.Org Server Extension : 10.0
[    37.839] (++) using VT number 7

[    37.847] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    37.874] (II) xfree86: Adding drm device (/dev/dri/card0)
[    37.899] (II) no primary bus or device found
[    37.899] 	falling back to /sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/4830e000.target-module/4830e000.lcdc/drm/card0
[    37.899] (II) LoadModule: "glx"
[    37.913] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    38.022] (II) Module glx: vendor="X.Org Foundation"
[    38.032] 	compiled for 1.20.8, module version = 1.0.0
[    38.032] 	ABI class: X.Org Server Extension, version 10.0
[    38.032] (II) LoadModule: "fbdev"
[    38.033] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    38.048] (II) Module fbdev: vendor="X.Org Foundation"
[    38.048] 	compiled for 1.20.1, module version = 0.5.0
[    38.048] 	Module class: X.Org Video Driver
[    38.049] 	ABI class: X.Org Video Driver, version 24.0
[    38.049] (II) FBDEV: driver for framebuffer: fbdev
[    38.109] (WW) Falling back to old probe method for fbdev
[    38.110] (II) Loading sub module "fbdevhw"
[    38.110] (II) LoadModule: "fbdevhw"
[    38.110] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    38.117] (II) Module fbdevhw: vendor="X.Org Foundation"
[    38.117] 	compiled for 1.20.8, module version = 0.0.2
[    38.117] 	ABI class: X.Org Video Driver, version 24.1
[    38.117] (II) FBDEV(0): using default device
[    38.118] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    38.118] (II) FBDEV(0): Creating default Display subsection in Screen section
	"Builtin Default fbdev Screen 0" for depth/fbbpp 16/16
[    38.118] **(==) FBDEV(0): Depth 16, (==) framebuffer bpp 16**
[    38.118] (==) FBDEV(0): RGB weight 565
[    38.118] (==) FBDEV(0): Default visual is TrueColor
[    38.118] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    38.118] (II) FBDEV(0): hardware: tilcdcdrmfb (video memory: 2000kB)
[    38.118] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[    38.118] (II) FBDEV(0): checking modes against framebuffer device...
[    38.119] (II) FBDEV(0): checking modes against monitor...
[    38.119] (II) FBDEV(0): Virtual size is 1280x800 (pitch 1280)
[    38.119] (**) FBDEV(0):  Built-in mode "current"
[    38.119] (==) FBDEV(0): DPI set to (96, 96)
[    38.119] (II) Loading sub module "fb"
[    38.119] (II) LoadModule: "fb"
[    38.137] (II) Loading /usr/lib/xorg/modules/libfb.so
[    38.163] (II) Module fb: vendor="X.Org Foundation"
[    38.172] 	compiled for 1.20.8, module version = 1.0.0
[    38.172] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    38.172] (**) FBDEV(0): using shadow framebuffer
[    38.172] (II) Loading sub module "shadow"
[    38.172] (II) LoadModule: "shadow"
[    38.173] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    38.190] (II) Module shadow: vendor="X.Org Foundation"
[    38.191] 	compiled for 1.20.8, module version = 1.1.0
[    38.191] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    38.252] (==) FBDEV(0): Backing store enabled
[    38.253] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    38.253] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    38.253] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    38.253] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    38.254] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument 

Here is my xorg.conf

ubuntu@ubuntu:~$ cat /etc/X11/xorg.conf 
Section "Monitor"
        Identifier      "Builtin Default Monitor"
EndSection

Section "Device"
        Identifier      "Builtin Default fbdev Device 0"
        Driver          "fbdev"
#HWcursor_false        Option          "HWcursor"          "false"
EndSection

Section "Screen"
        Identifier      "Builtin Default fbdev Screen 0"
        Device          "Builtin Default fbdev Device 0"
        Monitor         "Builtin Default Monitor"
	#DefaultDepth    24
EndSection

Section "ServerLayout"
        Identifier      "Builtin Default Layout"
        Screen          "Builtin Default fbdev Screen 0"
EndSection
ubuntu@ubuntu:~$ 

Below are the package details.

ubuntu@ubuntu:~$ dpkg -l | grep xserver

ii  x11-xserver-utils                     7.7+8                             armhf        X server utilities
ii  xserver-common                        2:1.20.8-2ubuntu2                 all          common files used by various X servers
ii  xserver-xorg                          1:7.7+19ubuntu14                  armhf        X.Org X server
ii  xserver-xorg-core                     2:1.20.8-2ubuntu2                 armhf        Xorg X server - core server
ii  xserver-xorg-input-evdev              1:2.10.6-1                        armhf        X.Org X server -- evdev input driver
ii  xserver-xorg-input-synaptics          1.9.1-1ubuntu3                    armhf        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom              1:0.39.0-0ubuntu1                 armhf        X.Org X server -- Wacom input driver
ii  xserver-xorg-legacy                   2:1.20.8-2ubuntu2                 armhf        setuid root Xorg server wrapper
ii  xserver-xorg-video-all                1:7.7+19ubuntu14                  armhf        X.Org X server -- output driver metapackage
ii  xserver-xorg-video-amdgpu             19.1.0-1                          armhf        X.Org X server -- AMDGPU display driver
ii  xserver-xorg-video-ati                1:19.1.0-1                        armhf        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev              1:0.5.0-1ubuntu1                  armhf        X.Org X server -- fbdev display driver
ii  xserver-xorg-video-nouveau            1:1.0.16-1                        armhf        X.Org X server -- Nouveau display driver
ii  xserver-xorg-video-radeon             1:19.1.0-1                        armhf        X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa               1:2.4.0-2                         armhf        X.Org X server -- VESA display driver

ubuntu@ubuntu:~$ dpkg -l | grep read

ii  libelf1:armhf                         0.176-1.1build1                   armhf        library to read and write ELF files
ii  libid3tag0:armhf                      0.15.1b-14                        armhf        ID3 tag reading library from the MAD project
ii  libnpth0:armhf                        1.6-1                             armhf        replacement for GNU Pth using system threads
ii  libpthread-stubs0-dev:armhf           0.4-1                             armhf        pthread stubs not provided by native libc, development files
ii  libreadline8:armhf                    8.0-4                             armhf        GNU readline and history libraries, run-time libraries
ii  libsensors5:armhf                     1:3.6.0-2ubuntu1                  armhf        library to read temperature/voltage/fan sensors
ii  libsndfile1:armhf                     1.0.28-7                          armhf        Library for reading/writing audio files
ii  man-db                                2.9.1-1                           armhf        tools for reading manual pages
ii  python3-urllib3                       1.25.8-2                          all          HTTP library with thread-safe connection pooling for Python3
ii  read-edid                             3.0.2-1build1                     armhf        hardware information-gathering tool for VESA PnP monitors
ii  readline-common                       8.0-4                             all          GNU readline and history libraries, common files
ii  xfonts-terminus                       4.40-2                            all          Fixed-width fonts for fast reading

ubuntu@ubuntu:~$ dpkg -l | grep xorg

ii  xorg-sgml-doctools                    1:1.11-1                          all          Common tools for building X.Org SGML documentation
ii  xserver-xorg                          1:7.7+19ubuntu14                  armhf        X.Org X server
ii  xserver-xorg-core                     2:1.20.8-2ubuntu2                 armhf        Xorg X server - core server
ii  xserver-xorg-input-evdev              1:2.10.6-1                        armhf        X.Org X server -- evdev input driver
ii  xserver-xorg-input-synaptics          1.9.1-1ubuntu3                    armhf        Synaptics TouchPad driver for X.Org server
ii  xserver-xorg-input-wacom              1:0.39.0-0ubuntu1                 armhf        X.Org X server -- Wacom input driver
ii  xserver-xorg-legacy                   2:1.20.8-2ubuntu2                 armhf        setuid root Xorg server wrapper
ii  xserver-xorg-video-all                1:7.7+19ubuntu14                  armhf        X.Org X server -- output driver metapackage
ii  xserver-xorg-video-amdgpu             19.1.0-1                          armhf        X.Org X server -- AMDGPU display driver
ii  xserver-xorg-video-ati                1:19.1.0-1                        armhf        X.Org X server -- AMD/ATI display driver wrapper
ii  xserver-xorg-video-fbdev              1:0.5.0-1ubuntu1                  armhf        X.Org X server -- fbdev display driver
ii  xserver-xorg-video-nouveau            1:1.0.16-1                        armhf        X.Org X server -- Nouveau display driver
ii  xserver-xorg-video-radeon             1:19.1.0-1                        armhf        X.Org X server -- AMD/ATI Radeon display driver
ii  xserver-xorg-video-vesa               1:2.4.0-2                         armhf        X.Org X server -- VESA display driver 

Kindly provide your input.

Thanks & Regards,

at this point, i would just say the overlay BB-AAIM-LCD-00A1.dts is broken…

What model/etc is on the screen, where i can order one to test it?

Regards,

Hi

I agree, there is some difference in the dtbs

I have below information on frame buffer device info

On 16.04 – working Good

ubuntu@ubuntu:~$ fbset -i

mode "1280x800"
    geometry 1280 800 1280 800 32
    timings 0 0 0 0 0 0 0
    accel true
    rgba 8/16,8/8,8/0,0/0
endmode

Frame buffer device information:
    Name        : 
    Address     : 0x9ea00000
    Size        : 12288000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 5120
    Accelerator : No

On Ubuntu 20.04 – not working

ubuntu@ubuntu:~$ fbset -i
mode "1280x800"
    geometry 1280 800 1280 800 16
    timings 0 0 0 0 0 0 0
    accel true
    rgba 5/11,6/5,5/0,0/0
endmode

Frame buffer device information:
    Name        : tilcdcdrmfb
    Address     : 0
    Size        : 2048000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 2560
    Accelerator : No

currently model details not available with me.

Thanks & Regards,

Well this 24 bit overlay works:

please compare with your overlay…

Since i can’t get the hardware, i can’t personally test it for your.

Regards,

Thanks for sharing the dts. I could not see the BB-BONE-NH7C-01-A0.dts file in the previous bb.overlays which were used on 16.04. is this new?

Also, I found previous dts do not include backlight section and below settings differ

previous dts – working on ubuntu 16.04

bb_lcd_pwm_backlight_pins: pinmux_bb_lcd_pwm_backlight_pins {
				pinctrl-single,pins = <
					BONE_P9_14 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a2.ehrpwm1a */
				>;
			};

current one –

	bb_lcd_pwm_backlight_pins: pinmux_bb_lcd_pwm_backlight_pins {
		pinctrl-single,pins = <
			AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT_PULLDOWN, MUX_MODE6)	/* P9_14: gpmc_a2.ehrpwm1a */
		>;
	};

Above are the observations. I will try to get the LCD model details.

Thanks & Regards,

Starting in v5.4.x era, the base bb.org-overlays repo became un-usable, as upstream kernel started making struct level of changes inside the device tree. Thus we transitioned to kernel specific overlays, and back ported this into our v4.19.x-ti tree… Going forward, we have kernel specific overlays for now on…

For example for the v5.10.x based kernel we are in dissucion with, the main device tree are here:

and then matching overlays are here:

Regards,

Thanks for providing the information. I guess, the BB-BONE-NH7C-01-A0 lcd is connected to beaglebonegreen-gateway, But I am using BeagleBoneGreen. Do we have any hardware/connection difference between both boards?
I followed the below instructions to compile dtbs on 5.10.x kernel…

Step 1: Clone this repo:

git clone https://github.com/beagleboard/bb.org-overlays
cd ./bb.org-overlays

Step 2: Install *.dtbo:

./install.sh

Please correct me if am wrong.

Thanks & Regards,

That is not correct for 5.10.131-bone-rt-r64, use this repo.

git clone -b v5.10.x https://github.com/beagleboard/BeagleBoard-DeviceTrees.git
cd ./BeagleBoard-DeviceTrees/
make
sudo make install

Regards,

Hi
Thank you Robert for sharing the correct path. I will try the same.

Here are the LCD model details - Model No.TM101JDHP01.

Thanks & Regards,

When searching for that part number, it’s a LVDS panel, you must have an adapter board.

Unless the device is publicly available somewhere, it’s up to you to debug it.

Regards,

Okay, Attached is the datasheet for your reference.

I have compiled kernel 5.10.131.x and built the ubuntu LTS rootfs using image-builder. Now trying to integrate dtb files. I have compiled dtbs using BeagleBoard-DeviceTrees-5.10.x.zip overlays. After successful installation, I could see the below messages in the boot log. It seems like failed to load U-Boot overlays.

U-Boot SPL 2021.10-00011-g6988a046 (Mar 08 2022 - 00:19:27 +0530)
Trying to boot from MMC1


U-Boot 2021.10-00011-g6988a046 (Mar 08 2022 - 00:19:27 +0530)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
WDT:   Started with servicing (60s timeout)
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
Model: SeeedStudio BeagleBone Green:
BeagleBone Cape EEPROM: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   Could not get PHY for ethernet@4a100000: addr 0
eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[BBG1] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Couldn't find partition 0:2 0x82000000
Can't set block device
Couldn't find partition 0:2 0x82000000
Can't set block device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk mmc@48060000.blk...
Scanning disk mmc@481d8000.blk...
Found 7 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
switch to partitions #0, OK
mmc0 is current device
Checking for: /uEnv.txt ...
934 bytes read in 2 ms (456.1 KiB/s)
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
Running uenvcmd ...
Checking for: /boot/uEnv.txt ...
886 bytes read in 2 ms (432.6 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /boot/vmlinuz-5.10.131-bone-rt-r64 ...
9470464 bytes read in 599 ms (15.1 MiB/s)
debug: [enable_uboot_overlays=1] ...
debug: [enable_uboot_cape_universal=1] ...
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ...
loading /boot/dtbs/5.10.131-bone-rt-r64/am335x-boneblack-uboot-univ.dtb ...
199351 bytes read in 18 ms (10.6 MiB/s)
Found 0 extension board(s).
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /boot/dtbs/5.10.131-bone-rt-r64/overlays/M-BB-BBG-00A0.dtbo ...
418 bytes read in 7 ms (57.6 KiB/s)
uboot_overlays: uboot loading of [BB-ADC-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]...
uboot_overlays: unable to find [mmc 0:1 /boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-UART2-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-UART4-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-I2C1-00A0.dtbo]...
uboot_overlays: uboot loading of [BB-BONE-eMMC1-01-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_emmc=1]...
debug: [console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M quiet] ...
debug: [bootz 0x82000000 - 88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x908200 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Using Device Tree in place at 88000000, end 88093fff

Starting kernel ...

[    1.685246] l3-aon-clkctrl:0000:0: failed to disable
[    1.734268] omap_voltage_late_init: Voltage driver support not added
[    1.734563] PM: Cannot get wkup_m3_ipc handle
[    1.818638] wkup_m3_rproc 44d00000.cpu: Platform data missing!
[    1.884097] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    2.143958] wkup_m3_ipc 44e11324.wkup_m3_ipc: IPC Request for A8->M3 Channel failed! -517
[    2.987408] mdio_bus 4a101000.mdio: MDIO device at address 0 is missing.
[    3.013255] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    3.313260] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P8_13'
[    3.313269] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    3.318515] PM: Cannot get wkup_m3_ipc handle
[    3.395881] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    3.471378] PM: Cannot get wkup_m3_ipc handle
[    3.472921] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    3.474101] PM: Cannot get wkup_m3_ipc handle
[    3.483286] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    3.603882] PM: Cannot get wkup_m3_ipc handle
[    3.605221] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    4.006016] PM: Cannot get wkup_m3_ipc handle
[    4.012704] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   17.564430] PM: Cannot get wkup_m3_ipc handle
[   17.579330] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   17.594616] PM: Cannot get wkup_m3_ipc handle
[   17.602596] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   17.623877] PM: Cannot get wkup_m3_ipc handle
[   17.631474] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   17.632745] PM: Cannot get wkup_m3_ipc handle
[   17.653568] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   17.800966] PM: Cannot get wkup_m3_ipc handle
[   17.815456] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   21.834754] PM: Cannot get wkup_m3_ipc handle
[   21.841823] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   21.926222] PM: Cannot get wkup_m3_ipc handle
[   21.951363] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   22.032798] PM: Cannot get wkup_m3_ipc handle
[   22.051636] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[FAILED] Failed to start A high per…er and a reverse proxy server.

Ubuntu 20.04 LTS arm ttyS0

default username:password is [ubuntu:temppwd]

arm login: ubuntu
Password: 
ubuntu@arm:~$ 

Here is my uEnv.txt file

uname_r=5.10.131-bone-rt-r64
cmdline=coherent_pool=1M quiet
					 enable_uboot_overlays=1
					 disable_uboot_overlay_emmc=1
					 enable_uboot_cape_universal=1
					 disable_uboot_overlay_video=1
					 disable_uboot_overlay_adc=1
					 uboot_overlay_addr0=/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo
					 #uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo
					 #uboot_overlay_addr1=/lib/firmware/BB-UART2-00A0.dtbo
					 #uboot_overlay_addr2=/lib/firmware/BB-UART4-00A0.dtbo
					 #uboot_overlay_addr3=/lib/firmware/BB-AAIM-LCD-00A1.dtbo
					 #uboot_overlay_addr4=/lib/firmware/BB-I2C1-00A0.dtbo
				  #cmdline=cape_disable=bone_capemgr.disable_partno=BB-BONELT-HDMI, BB-BONELT-HDMIN, BB-BONE-HDMI bone_capemgr.enable_partno=BB-UART1,BB-AAIM-LCD:00A1,BB-UART4,BB-UART2,BB-I2C

Please correct me.

Thanks & Regards,
TM101JDHP01-00 V2.4 10.1 inch aug 2022.pdf (1.2 MB)

i’d fully expect those issues…

First error…

uboot_overlays: unable to find [mmc 0:1 /boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo]...

Looking at BeagleBoard-DeviceTrees/src/arm/overlays at v5.10.x · beagleboard/BeagleBoard-DeviceTrees · GitHub we see no BB-AAIM-LCD-00A1.dts file… So it doesn’t exist… Did you write one?

uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-UART2-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-UART4-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-I2C1-00A0.dtbo]...

I need to migrate these over from the other project:

uboot_overlay_addr0=/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo
#uboot_overlay_addr0=/lib/firmware/BB-UART1-00A0.dtbo
#uboot_overlay_addr1=/lib/firmware/BB-UART2-00A0.dtbo
#uboot_overlay_addr2=/lib/firmware/BB-UART4-00A0.dtbo
#uboot_overlay_addr3=/lib/firmware/BB-AAIM-LCD-00A1.dtbo
#uboot_overlay_addr4=/lib/firmware/BB-I2C1-00A0.dtbo

You don’t need /boot/dtbs/5.10.131-bone-rt-r64/overlays/ or /lib/firmware/ in any of these, u-boot knows how to look for them…

uboot_overlay_addr0=BB-AAIM-LCD-00A1.dtbo
#uboot_overlay_addr0=BB-UART1-00A0.dtbo
#uboot_overlay_addr1=BB-UART2-00A0.dtbo
#uboot_overlay_addr2=BB-UART4-00A0.dtbo
#uboot_overlay_addr3=BB-AAIM-LCD-00A1.dtbo
#uboot_overlay_addr4=BB-I2C1-00A0.dtbo

Sorry, the am335x does not support lvds, thus there is something on your design that adapts the RGB signalling form the am335x to the lvds.

Sorry, without access to public hardware there is nothing i can do…

Regards,

Yes, I have integrated the one which was compiled with 5.4.x kernel. so copied dtbo under /boot/dtbs/5.10.131-bone-rt-r64/overlays/

ubuntu@arm:~$ ls -al /boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo 
-rwxr-xr-x 1 root root 4817 Aug 24 17:37 /boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo
ubuntu@arm:~$ 

still not working…

uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /boot/dtbs/5.10.131-bone-rt-r64/overlays/M-BB-BBG-00A0.dtbo ...
418 bytes read in 7 ms (57.6 KiB/s)
uboot_overlays: uboot loading of [BB-ADC-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]...
uboot_overlays: unable to find [mmc 0:1 BB-AAIM-LCD-00A1.dtbo]...

What steps we need to follow to migrate those dtbs? Please provide the guidelines.

Thanks & Regards,

From with-in the Device Tree git project:

make
sudo make install

Would place the *.dtbo’s in the location…

from u-boot try:

ls mmc 0:1 /boot/dtbs/5.10.131-bone-rt-r64/overlays/

Regards,

I copied .dtbo file to src/arm/overlays and then ran make install…

ubuntu@arm:~/BeagleBoard-DeviceTrees-5.10.x$ sudo make install
# install Device Tree
mkdir -p /boot/dtbs/5.10.131-bone-rt-r64/
cp -v src/arm/*.dtb /boot/dtbs/5.10.131-bone-rt-r64/
'src/arm/BB-AAIM-LCD-00A1.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/BB-AAIM-LCD-00A1.dtb'
'src/arm/am335x-bone-uboot-univ.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-bone-uboot-univ.dtb'
'src/arm/am335x-bone.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-bone.dtb'
'src/arm/am335x-boneblack-uboot-univ.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-boneblack-uboot-univ.dtb'
'src/arm/am335x-boneblack-uboot.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-boneblack-uboot.dtb'
'src/arm/am335x-boneblack-wireless.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-boneblack-wireless.dtb'
'src/arm/am335x-boneblack.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-boneblack.dtb'
'src/arm/am335x-boneblue.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-boneblue.dtb'
'src/arm/am335x-bonegreen-gateway.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-bonegreen-gateway.dtb'
'src/arm/am335x-bonegreen-wireless-uboot-univ.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-bonegreen-wireless-uboot-univ.dtb'
'src/arm/am335x-bonegreen-wireless.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-bonegreen-wireless.dtb'
'src/arm/am335x-bonegreen.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-bonegreen.dtb'
'src/arm/am335x-osd3358-sm-red.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-osd3358-sm-red.dtb'
'src/arm/am335x-pocketbeagle.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-pocketbeagle.dtb'
'src/arm/am335x-sancloud-bbe-lite.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-sancloud-bbe-lite.dtb'
'src/arm/am335x-sancloud-bbe.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am335x-sancloud-bbe.dtb'
'src/arm/am5729-beagleboneai.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am5729-beagleboneai.dtb'
'src/arm/am57xx-beagle-x15-revb1.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am57xx-beagle-x15-revb1.dtb'
'src/arm/am57xx-beagle-x15-revc.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am57xx-beagle-x15-revc.dtb'
'src/arm/am57xx-beagle-x15.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/am57xx-beagle-x15.dtb'
'src/arm/omap3-beagle-xm-ab.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/omap3-beagle-xm-ab.dtb'
'src/arm/omap3-beagle-xm.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/omap3-beagle-xm.dtb'
'src/arm/omap3-beagle.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/omap3-beagle.dtb'
'src/arm/omap5-uevm.dtb' -> '/boot/dtbs/5.10.131-bone-rt-r64/omap5-uevm.dtb'
# install DT overlays
mkdir -p /boot/dtbs/5.10.131-bone-rt-r64/overlays/
cp -v src/arm/overlays/*.dtbo /boot/dtbs/5.10.131-bone-rt-r64/overlays
'src/arm/overlays/AM335X-PRU-UIO-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/AM335X-PRU-UIO-00A0.dtbo'
'src/arm/overlays/BB-AAIM-LCD-00A1.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-AAIM-LCD-00A1.dtbo'
'src/arm/overlays/BB-ADC-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-ADC-00A0.dtbo'
'src/arm/overlays/BB-BBBW-WL1835-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BBBW-WL1835-00A0.dtbo'
'src/arm/overlays/BB-BBGG-WL1835-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BBGG-WL1835-00A0.dtbo'
'src/arm/overlays/BB-BBGW-WL1835-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BBGW-WL1835-00A0.dtbo'
'src/arm/overlays/BB-BONE-4D5R-01-00A1.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BONE-4D5R-01-00A1.dtbo'
'src/arm/overlays/BB-BONE-LCD4-01-00A1.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BONE-LCD4-01-00A1.dtbo'
'src/arm/overlays/BB-BONE-NH7C-01-A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BONE-NH7C-01-A0.dtbo'
'src/arm/overlays/BB-BONE-eMMC1-01-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-BONE-eMMC1-01-00A0.dtbo'
'src/arm/overlays/BB-CAPE-DISP-CT4-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-CAPE-DISP-CT4-00A0.dtbo'
'src/arm/overlays/BB-HDMI-TDA998x-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-HDMI-TDA998x-00A0.dtbo'
'src/arm/overlays/BB-I2C2-BME680.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-I2C2-BME680.dtbo'
'src/arm/overlays/BB-NHDMI-TDA998x-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-NHDMI-TDA998x-00A0.dtbo'
'src/arm/overlays/BB-SPIDEV0-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-SPIDEV0-00A0.dtbo'
'src/arm/overlays/BB-SPIDEV1-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-SPIDEV1-00A0.dtbo'
'src/arm/overlays/BB-W1-P9.12-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BB-W1-P9.12-00A0.dtbo'
'src/arm/overlays/BBORG_COMMS-00A2.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BBORG_COMMS-00A2.dtbo'
'src/arm/overlays/BBORG_FAN-A000.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BBORG_FAN-A000.dtbo'
'src/arm/overlays/BBORG_RELAY-00A2.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BBORG_RELAY-00A2.dtbo'
'src/arm/overlays/BONE-ADC.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/BONE-ADC.dtbo'
'src/arm/overlays/M-BB-BBG-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/M-BB-BBG-00A0.dtbo'
'src/arm/overlays/M-BB-BBGG-00A0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/M-BB-BBGG-00A0.dtbo'
'src/arm/overlays/PB-MIKROBUS-0.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/PB-MIKROBUS-0.dtbo'
'src/arm/overlays/PB-MIKROBUS-1.dtbo' -> '/boot/dtbs/5.10.131-bone-rt-r64/overlays/PB-MIKROBUS-1.dtbo'
ubuntu@arm:~/BeagleBoard-DeviceTrees-5.10.x$ 

I can see BB-AAIM-LCD-00A1.dtbo is copied to /boot/dtbs/5.10.131-bone-rt-r64/overlays.

But u-boot does not have the same list

=> ls mmc 0:1 /boot/dtbs/5.10.131-bone-rt-r64/overlays/
<DIR>       4096 .
<DIR>       4096 ..
            5751 BB-BONE-NH7C-01-A0.dtbo
            1716 BBORG_RELAY-00A2.dtbo
             375 BONE-ADC.dtbo
            6015 BB-BBGG-WL1835-00A0.dtbo
            3302 BB-NHDMI-TDA998x-00A0.dtbo
            1085 BB-W1-P9.12-00A0.dtbo
            1522 BB-SPIDEV1-00A0.dtbo
            5661 BB-BONE-4D5R-01-00A1.dtbo
             700 AM335X-PRU-UIO-00A0.dtbo
             526 BBORG_FAN-A000.dtbo
             418 M-BB-BBG-00A0.dtbo
            4656 PB-MIKROBUS-1.dtbo
            1492 BBORG_COMMS-00A2.dtbo
             340 M-BB-BBGG-00A0.dtbo
            6744 BB-BONE-LCD4-01-00A1.dtbo
            3220 BB-BBBW-WL1835-00A0.dtbo
            1605 BB-BONE-eMMC1-01-00A0.dtbo
             567 BB-I2C2-BME680.dtbo
            5372 BB-CAPE-DISP-CT4-00A0.dtbo
            1522 BB-SPIDEV0-00A0.dtbo
            5321 BB-HDMI-TDA998x-00A0.dtbo
            4597 PB-MIKROBUS-0.dtbo
             645 BB-ADC-00A0.dtbo
            5048 BB-BBGW-WL1835-00A0.dtbo
=> 

Thanks & Regards,

Oh, that’s fun to debug!..

First thing i’d do… Delete all data off the eMMC… i bet we have two different ext4 partitions that u-boot is reading from… So make sure only the microSD is being used…

Regards,

Yes, I have erased first few blocks of eMMC… so whenever sd card is not present i see CCCCCC…on the serial log.

I am using MLO and u-boot.img for u-boot version 2021 and not u-boot-dtb.img. would that causing any issue?

Thanks & Regards,

Hi

Thanks a lot for sharing the kernel 5.10.131 for BBG. I have figured out the issue and seems like tilcdc driver has been modified for different revision supports. I have added fix and verifying the changes. Currently, modifications are under test.

I would like to understand/explore the framebuffer device information details, As I mentioned earlier in one of the comments, I am having below data for framebuffer device

Frame buffer device information:
    Name        : tilcdcdrmfb
    Address     : 0
    Size        : 2048000
    Type        : PACKED PIXELS
    Visual      : TRUECOLOR
    XPanStep    : 1
    YPanStep    : 1
    YWrapStep   : 0
    LineLength  : 2560
    Accelerator : No

I could see Address is always zero and size is also different. Could you please guide me to understand the parameters?

Thanks & Regards,