X server on ubuntu 20.04

Hi Robert,

I have currently migrated rootfs to ubuntu 20.04 along with kernel 5.10.x. After successfully migrating filesystem I observed that xorg color depth parameters not working with new kernel.

Previously I used kernel 4.4.27.x along with ubuntu 16.04 fileystem and there it used to work correctly.

I need to set the default depth color to 24 and I could see from X.org log it is always considering 16. If Xorg started using 24bpp parameter, x server is failed to start.
There are below errors observed in Xorg.log

[ 890.034] (WW) Falling back to old probe method for fbdev
[ 890.034] (II) Loading sub module “fbdevhw”
[ 890.034] (II) LoadModule: “fbdevhw”
[ 890.035] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 890.036] (II) Module fbdevhw: vendor=“X.Org Foundation”
[ 890.036] compiled for 1.15.1, module version = 0.0.2
[ 890.036] ABI class: X.Org Video Driver, version 15.0
[ 890.037] (II) FBDEV(0): using default device
[ 890.037] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 890.037] (II) FBDEV(0): Creating default Display subsection in Screen section
“Builtin Default fbdev Screen 0” for depth/fbbpp 24/32
[ 890.037] () FBDEV(0): Depth 24, (–) framebuffer bpp 32
[ 890.037] (==) FBDEV(0): RGB weight 888
[ 890.037] (==) FBDEV(0): Default visual is TrueColor
[ 890.037] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 890.037] (II) FBDEV(0): hardware: tilcdcdrmfb (video memory: 2000kB)
[ 890.037] (II) FBDEV(0): checking modes against framebuffer device…
[ 890.037] (II) FBDEV(0): checking modes against monitor…
[ 890.038] (–) FBDEV(0): Virtual size is 1280x800 (pitch 1280)
[ 890.038] (
) FBDEV(0): Built-in mode “current”
[ 890.038] (==) FBDEV(0): DPI set to (96, 96)
[ 890.038] (II) Loading sub module “fb”
[ 890.038] (II) LoadModule: “fb”
[ 890.039] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 890.041] (II) Module fb: vendor=“X.Org Foundation”
[ 890.041] compiled for 1.15.1, module version = 1.0.0
[ 890.041] ABI class: X.Org ANSI C Emulation, version 0.4
[ 890.041] (**) FBDEV(0): using shadow framebuffer
[ 890.041] (II) Loading sub module “shadow”
[ 890.041] (II) LoadModule: “shadow”
[ 890.042] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 890.043] (II) Module shadow: vendor=“X.Org Foundation”
[ 890.043] compiled for 1.15.1, module version = 1.1.0
[ 890.043] ABI class: X.Org ANSI C Emulation, version 0.4
[ 890.043] (==) Depth 24 pixmap format is 32 bpp
[ 890.044] (EE) FBDEV(0): FBIOPUT_VSCREENINFO: Invalid argument
[ 890.044] (EE) FBDEV(0): mode initialization failed
[ 890.044] (EE)
Fatal server error:
[ 890.045] (EE) AddScreen/ScreenInit failed for driver 0
[ 890.045] (EE)
[ 890.045] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 890.045] (EE) Please also check the log file at “/var/log/Xorg.0.log” for additional information.
[ 890.045] (EE)
[ 890.088] (EE) Server terminated with error (1). Closing log file.

It seems like there is an issue with kernel mode setting drivers or it could be Xserver Xorg issue.

Please help us to understand the issue. It would be helpful for further debugging.

Thanks

Hi @chougulemrudula in ubuntu 22.04 you don’t need to specify the color depth, it automatically picks it up from the device tree, so no need to set it in xorg.conf…

Regards,

Hi.
I am currently using ubuntu 20.04 LTS. I have built using image-builder. If I do not provide the Defaultdepth option in xorg.conf then it is always taking depth as 16 and screen/display is not coming up properly. It is not taking true colors so i am seeing orange color is displayed as blue color and vice a versa. Sililary for other colors.

Here is my xorg.conf file

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

Please provide your input.

Thanks

Are you still using 4.4.x? At this point, i’m only supporting 4.19.x and later…

Yeah, something changed in xorg, it needs the DefaultDepth from the device tree. If it’s not working, your kernel version might just be too old now…

Regards,

No. I have upgraded the kernel to 5.10.x. Currently I am running 5.10.x kernel with Ubuntu 20.04.
I observed this issue with kernel 4.19.x and later…

Please provide the device tree for reference. What are the parameters name that should be added to dts please suggest.

Can you share your full serial boot log… We’ve changed the location of the overlays since v4.4.x… let’s see how it was loading everything in u-boot…

Regards,

Here is boot log

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
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 3 ms (303.7 KiB/s)
Loaded environment from /uEnv.txt
Importing environment from mmc …
Checking if uenvcmd is set …
Running uenvcmd …
Checking for: /boot/uEnv.txt …
708 bytes read in 3 ms (230.5 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.87-bone-rt-r59 …
9462272 bytes read in 598 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.87-bone-rt-r59/am335x-boneblack-uboot-univ.dtb …
215646 bytes read in 19 ms (10.8 MiB/s)
Found 0 extension board(s).
uboot_overlays: [fdt_buffer=0x60000] …
uboot_overlays: loading /boot/dtbs/5.10.87-bone-rt-r59/overlays/M-BB-BBG-00A0.dtbo …
418 bytes read in 6 ms (67.4 KiB/s)
uboot_overlays: uboot loading of [BB-ADC-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]…
uboot_overlays: loading /lib/firmware/BB-UART1-00A0.dtbo …
1022 bytes read in 41 ms (23.4 KiB/s)
uboot_overlays: loading /lib/firmware/BB-UART2-00A0.dtbo …
1022 bytes read in 36 ms (27.3 KiB/s)
uboot_overlays: loading /lib/firmware/BB-UART4-00A0.dtbo …
1022 bytes read in 7 ms (142.6 KiB/s)
uboot_overlays: loading /lib/firmware/BB-AAIM-LCD-00A1.dtbo …
4817 bytes read in 37 ms (127 KiB/s)
uboot_overlays: loading /lib/firmware/BB-I2C1-00A0.dtbo …
1102 bytes read in 31 ms (34.2 KiB/s)
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 - 0x906200 ]

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Using Device Tree in place at 88000000, end 88098fff

Starting kernel …

[ 1.658969] l3-aon-clkctrl:0000:0: failed to disable
[ 1.704105] omap_voltage_late_init: Voltage driver support not added
[ 1.704405] PM: Cannot get wkup_m3_ipc handle
[ 1.789563] wkup_m3_rproc 44d00000.cpu: Platform data missing!
[ 1.863151] gpiochip_add_data_with_key: GPIOs 0…31 (gpio-0-31) failed to register, -517
[ 2.160244] wkup_m3_ipc 44e11324.wkup_m3_ipc: IPC Request for A8->M3 Channel failed! -517
[ 3.007439] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[ 3.007783] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[ 3.009259] tilcdc 4830e000.lcdc: no encoders/connectors found
[ 3.071237] mdio_bus 4a101000.mdio: MDIO device at address 0 is missing.
[ 3.097235] debugfs: Directory ‘49000000.dma’ with parent ‘dmaengine’ already present!
[ 3.258104] gpio-of-helper ocp:cape-universal: Failed to get gpio property of ‘P8_13’
[ 3.258113] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[ 3.265280] PM: Cannot get wkup_m3_ipc handle
[ 3.345302] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 3.356846] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[ 3.357181] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
[ 3.515809] PM: Cannot get wkup_m3_ipc handle
[ 3.517022] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 3.517993] PM: Cannot get wkup_m3_ipc handle
[ 3.523741] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 3.575601] PM: Cannot get wkup_m3_ipc handle
[ 3.576839] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 4.061039] PM: Cannot get wkup_m3_ipc handle
[ 4.067725] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 17.599907] PM: Cannot get wkup_m3_ipc handle
[ 17.611860] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 17.612889] PM: Cannot get wkup_m3_ipc handle
[ 17.625751] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 17.626719] PM: Cannot get wkup_m3_ipc handle
[ 17.631434] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 17.635887] PM: Cannot get wkup_m3_ipc handle
[ 17.650160] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 17.847968] PM: Cannot get wkup_m3_ipc handle
[ 17.864356] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 23.261951] PM: Cannot get wkup_m3_ipc handle
[ 23.282233] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 23.440828] PM: Cannot get wkup_m3_ipc handle
[ 23.463197] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 23.488652] PM: Cannot get wkup_m3_ipc handle
[ 23.562974] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 25.420786] cpsw 4a100000.ethernet: phy “/ocp/interconnect@4a000000/segment@0/target-module@100000/ethernet@0/mdio@1000/ethernet-phy@0” not found on slave 0
[FAILED] Failed to start Generic Board Startup.

Ubuntu 20.04 LTS

Well it’s set:

			bpp               = <32>;

Regards,

Yes, still it is not working…depth is considered as 16. I can see from the xorg log. If I try changing

bpp               = <32>;

to

bpp               = <24>;

The display is color not working correctly.
Do we need to add any other parameter in dts for colordepth?

32bpp → 24 DefaultDepth

so everything is setup correctly…

Since i don’t actually boot ubuntu anymore on a daily basis.

Does this work with Debian 11.x (Bullseye)??

Regards,

I always use Ubuntu and never tried Debian… So I am not sure with Debian.

Previously with kernel 4.4.x, it worked perfectly fine. But now it is not working…it’s been quite a long i have been debugging this issue. if it does not work I need to revert back everything to the previous version…

Please provide your thoughts

but you upgraded… xorg changed something…

Regards,

Yes, I upgraded… Xorg is not working correctly.

Also, I observed system is stuck/ hang without xorg.conf integration. Beagle Board is completely nonresponsive after some time if it is running continuously, maybe over the weeks and free memory is dying especially when connected over the x11vnc server.

Seems like the kernel is not stable or Xorg is not working as expected… Any thoughts?

The BBB only has 512MB of ram, so using xorg/etc over long periods of time, it’s probally running low unless you enable swap…

As far as responsiveness…

[bbg-pwr10-ser18: 5.10.131-bone-rt-r64 (up 3 weeks, 1 day, 12 hours, 1 minute)]

So up for 3 weeks, about time to run the update script and reboot it…

http://gfnd.rcn-ee.org:81/farm/uptime/old/pwr10-ser18-bbg-5.10.131-bone-rt-r64.log

your way behind:

5.10.87-bone-rt-r59 vs 5.10.131-bone-rt-r64

Just pushed an update for you, this is now live in 20.04:

sudo apt update
sudo apt install bbb.io-kernel-5.10-bone-rt
sudo reboot

Regards,

Yes, I tried creating a swap file and also swap partition on the sd card. But after 3 weeks or so Beagle Board stopped responding.

Thank you for your quick updates. I’ll try installing the same.
I’d check the system’s operation and let you know the results.

This works for me…

X.Org X Server 1.20.8
X Protocol Version 11, Revision 0
[    37.110] Build Operating System: Linux 4.4.0-177-generic armv7l Ubuntu
[    37.110] Current Operating System: Linux ubuntu 5.10.120-ti-r48 #1focal SMP PREEMPT Wed Jul 20 19:59:51 UTC 2022 armv7l
[    37.112] Kernel command line: console=ttyS0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait uboot_detected_capes=BB-BONE-NH7C-01, coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet
[    37.113] Build Date: 06 April 2020  09:39:29AM
[    37.113] xorg-server 2:1.20.8-2ubuntu2 (For technical support please see http://www.ubuntu.com/support) 
[    37.113] Current version of pixman: 0.38.4
[    37.113] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[    37.113] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    37.114] (==) Log file: "/var/log/Xorg.0.log", Time: Fri Aug 12 21:05:39 2022
[    37.151] (==) Using config file: "/etc/X11/xorg.conf"
[    37.157] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    37.200] (==) ServerLayout "Builtin Default Layout"
[    37.200] (**) |-->Screen "Builtin Default fbdev Screen 0" (0)
[    37.200] (**) |   |-->Monitor "Builtin Default Monitor"
[    37.205] (**) |   |-->Device "Builtin Default fbdev Device 0"
[    37.206] (==) Automatically adding devices
[    37.206] (==) Automatically enabling devices
[    37.206] (==) Automatically adding GPU devices
[    37.206] (==) Automatically binding GPU devices
[    37.206] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    37.229] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[    37.230] 	Entry deleted from font path.
[    37.230] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.
[    37.230] 	Entry deleted from font path.
[    37.236] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.
[    37.236] 	Entry deleted from font path.
[    37.236] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.
[    37.236] 	Entry deleted from font path.
[    37.236] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.
[    37.236] 	Entry deleted from font path.
[    37.236] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.
[    37.236] 	Entry deleted from font path.
[    37.237] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	built-ins
[    37.237] (==) ModulePath set to "/usr/lib/xorg/modules"
[    37.237] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[    37.237] (II) Loader magic: 0x582008
[    37.237] (II) Module ABI versions:
[    37.237] 	X.Org ANSI C Emulation: 0.4
[    37.237] 	X.Org Video Driver: 24.1
[    37.237] 	X.Org XInput driver : 24.1
[    37.237] 	X.Org Server Extension : 10.0
[    37.252] (--) using VT number 2

[    37.252] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    37.282] (II) xfree86: Adding drm device (/dev/dri/card0)
[    37.296] (II) no primary bus or device found
[    37.296] 	falling back to /sys/devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@300000/4830e000.target-module/4830e000.lcdc/drm/card0
[    37.296] (II) LoadModule: "glx"
[    37.318] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[    37.422] (II) Module glx: vendor="X.Org Foundation"
[    37.422] 	compiled for 1.20.8, module version = 1.0.0
[    37.422] 	ABI class: X.Org Server Extension, version 10.0
[    37.423] (II) LoadModule: "fbdev"
[    37.423] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[    37.441] (II) Module fbdev: vendor="X.Org Foundation"
[    37.441] 	compiled for 1.20.1, module version = 0.5.0
[    37.441] 	Module class: X.Org Video Driver
[    37.441] 	ABI class: X.Org Video Driver, version 24.0
[    37.441] (II) FBDEV: driver for framebuffer: fbdev
[    37.460] (WW) Falling back to old probe method for fbdev
[    37.461] (II) Loading sub module "fbdevhw"
[    37.461] (II) LoadModule: "fbdevhw"
[    37.462] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[    37.465] (II) Module fbdevhw: vendor="X.Org Foundation"
[    37.465] 	compiled for 1.20.8, module version = 0.0.2
[    37.465] 	ABI class: X.Org Video Driver, version 24.1
[    37.466] (II) FBDEV(0): using default device
[    37.466] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[    37.466] (II) FBDEV(0): Creating default Display subsection in Screen section
	"Builtin Default fbdev Screen 0" for depth/fbbpp 24/32
[    37.466] (==) FBDEV(0): Depth 24, (==) framebuffer bpp 32
[    37.466] (==) FBDEV(0): RGB weight 888
[    37.466] (==) FBDEV(0): Default visual is TrueColor
[    37.467] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[    37.467] (II) FBDEV(0): hardware: tilcdcdrmfb (video memory: 1500kB)
[    37.467] (DB) xf86MergeOutputClassOptions unsupported bus type 0
[    37.467] (II) FBDEV(0): checking modes against framebuffer device...
[    37.467] (II) FBDEV(0): checking modes against monitor...
[    37.467] (II) FBDEV(0): Virtual size is 800x480 (pitch 800)
[    37.467] (**) FBDEV(0):  Built-in mode "current"
[    37.467] (==) FBDEV(0): DPI set to (96, 96)
[    37.467] (II) Loading sub module "fb"
[    37.467] (II) LoadModule: "fb"
[    37.480] (II) Loading /usr/lib/xorg/modules/libfb.so
[    37.492] (II) Module fb: vendor="X.Org Foundation"
[    37.492] 	compiled for 1.20.8, module version = 1.0.0
[    37.492] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    37.492] (**) FBDEV(0): using shadow framebuffer
[    37.493] (II) Loading sub module "shadow"
[    37.493] (II) LoadModule: "shadow"
[    37.494] (II) Loading /usr/lib/xorg/modules/libshadow.so
[    37.510] (II) Module shadow: vendor="X.Org Foundation"
[    37.511] 	compiled for 1.20.8, module version = 1.1.0
[    37.511] 	ABI class: X.Org ANSI C Emulation, version 0.4
[    37.551] (==) FBDEV(0): Backing store enabled
[    37.553] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    37.553] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    37.553] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    37.554] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    37.554] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
[    37.554] (EE) FBDEV(0): FBIOPUTCMAP: Invalid argument
ubuntu@ubuntu:~$ cat /etc/X11/xorg.conf 
Section "Monitor"
        Identifier      "Builtin Default Monitor"
EndSection
Section "Device"
        Identifier      "Builtin Default fbdev Device 0"
        Driver          "fbdev"
EndSection
Section "Screen"
        Identifier      "Builtin Default fbdev Screen 0"
        Device          "Builtin Default fbdev Device 0"
        Monitor         "Builtin Default Monitor"
EndSection
Section "ServerLayout"
        Identifier      "Builtin Default Layout"
        Screen          "Builtin Default fbdev Screen 0"
EndSection
ubuntu@ubuntu:~$ uname -r
5.10.120-ti-r48
ubuntu@ubuntu:~$ sudo beagle-version | grep UBOOT
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[BB-ADC-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.kernel]
UBOOT: Loaded Overlay:[BB-BONE-NH7C-01-A0.kernel]

Newhaven LCD is 24bit, 32bpp:

Regards,

Hi

Thanks for providing detailed information.

I tried the below steps as you mentioned above, After successful installation, I restarted the board and when I checked the kernel version it is displaying “5.10.87-bone-rt-r59” and not “5.10.131-bone-rt-r64”. It seems like a failure to update the kernel headers. I tried updating the uEnv.txt file for kernel version but still, that does not help.

Please refer to the below log for more details.

As I am using Ubuntu 20.04 LTS filesystem and not Debian one. Am I missing something?

Please correct me…!

ubuntu@ubuntu:~$ sudo apt-get update
[sudo] password for ubuntu: 
Get:1 http://repos.rcn-ee.com/ubuntu focal InRelease [3,065 B]
Get:2 http://repos.rcn-ee.com/ubuntu focal/main armhf Packages [939 kB]
Hit:3 http://ports.ubuntu.com focal InRelease                                  
Progress: [ 97%] [########################################################..]  
Reading package lists... Done
ubuntu@ubuntu:~$ sudo apt install bbb.io-kernel-5.10-bone-rt
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  bbb.io-kernel-tasks dmidecode laptop-detect
  libpruio-modules-5.10.131-bone-rt-r64 linux-image-5.10.131-bone-rt-r64
  tasksel tasksel-data
The following NEW packages will be installed:
  bbb.io-kernel-5.10-bone-rt bbb.io-kernel-tasks dmidecode laptop-detect
  libpruio-modules-5.10.131-bone-rt-r64 linux-image-5.10.131-bone-rt-r64
  tasksel tasksel-data
0 upgraded, 8 newly installed, 0 to remove and 0 not upgraded.
Need to get 33.8 MB of archives.
After this operation, 51.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://repos.rcn-ee.com/ubuntu focal/main armhf linux-image-5.10.131-bone-rt-r64 armhf 1focal [33.7 MB]
Get:2 http://ports.ubuntu.com focal/main armhf tasksel-data all 3.34ubuntu16 [5,340 B]
Get:3 http://ports.ubuntu.com focal/main armhf tasksel all 3.34ubuntu16 [28.6 kB]
Get:4 http://ports.ubuntu.com focal/main armhf dmidecode armhf 3.2-3 [45.6 kB] 
Get:5 http://ports.ubuntu.com focal/main armhf laptop-detect all 0.16 [6,016 B]
Get:6 http://repos.rcn-ee.com/ubuntu focal/main armhf bbb.io-kernel-tasks armhf 1.20220812.0-0~focal+20220812 [1,156 B]
Get:7 http://repos.rcn-ee.com/ubuntu focal/main armhf bbb.io-kernel-5.10-bone-rt armhf 1.20220812.0-0~focal+20220812 [1,220 B]
Get:8 http://repos.rcn-ee.com/ubuntu focal/main armhf libpruio-modules-5.10.131-bone-rt-r64 armhf 1focal [5,936 B]
Fetched 33.8 MB in 32s (1,059 kB/s)                                            
Preconfiguring packages ...

Ubuntu 20.04 LTS ubuntu ttyS0
ubuntu@ubuntu:~$ 

ubuntu login: [   57.409250] PM: Cannot get wkup_m3_ipc handle
[   57.423703] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[   57.598043] PM: Cannot get wkup_m3_ipc handle
[   57.628693] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle

ubuntu login: ubuntu
Password: 
ubuntu@ubuntu:~$ 
ubuntu@ubuntu:~$ uname -r
5.10.87-bone-rt-r59
ubuntu@ubuntu:~$

Can I build this new kernel version from git?

Thanks & Regards

Just edit /boot/uEnv.txt and set 5.10.131-bone-rt-r64

Regards,

Yes, I tried the same. I am having below errors and LCD is not coming up as dtbs are not loaded.

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 3 ms (303.7 KiB/s)
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
Running uenvcmd ...
Checking for: /boot/uEnv.txt ...
738 bytes read in 2 ms (360.4 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
** Invalid partition 5 **
Couldn't find partition mmc 0:5
** Invalid partition 6 **
Couldn't find partition mmc 0:6
** Invalid partition 7 **
Couldn't find partition mmc 0:7
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
BootOrder not defined
EFI boot manager: Cannot load any image
switch to partitions #0, OK
mmc1(part 0) is current device
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
1240 bytes read in 3 ms (403.3 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /boot/vmlinuz-4.4.9-ti-r25 ...
7833256 bytes read in 496 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] ...
debug: unable to find [am335x-boneblack-uboot-univ.dtb] using [am335x-boneblack-uboot.dtb] instead ...
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot.dtb] ...
loading /boot/dtbs/4.4.9-ti-r25/am335x-bonegreen.dtb ...
58269 bytes read in 8 ms (6.9 MiB/s)
Found 0 extension board(s).
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: unable to find [mmc 1:1 M-BB-BBG-00A0.dtbo]...
uboot_overlays: uboot loading of [BB-ADC-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]...
uboot_overlays: loading /lib/firmware/BB-UART1-00A0.dtbo ...
883 bytes read in 7 ms (123 KiB/s)
uboot_overlays: loading /lib/firmware/BB-UART2-00A0.dtbo ...
883 bytes read in 7 ms (123 KiB/s)
uboot_overlays: loading /lib/firmware/BB-UART4-00A0.dtbo ...
883 bytes read in 7 ms (123 KiB/s)
uboot_overlays: unable to find [mmc 1:1 /lib/firmware/BB-AAIM-LCD-00A1.dtbo]...
uboot_overlays: loading /lib/firmware/BB-I2C1-00A0.dtbo ...
960 bytes read in 7 ms (133.8 KiB/s)
uboot_overlays: uboot loading of [BB-BONE-eMMC1-01-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_emmc=1]...
loading /boot/initrd.img-4.4.9-ti-r25 ...
4761957 bytes read in 306 ms (14.8 MiB/s)
debug: [console=ttyS0,115200n8 root=UUID=e0380698-cdc6-44ce-ba7a-7b9b57e6401c ro rootfstype=ext4 rootwait coherent_pool=1M quiet cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:48a965 88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0x7786a8 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Using Device Tree in place at 88000000, end 88071fff

Starting kernel ...

[    1.990490] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.161503] omap_voltage_late_init: Voltage driver support not added
[    2.168932] PM: Cannot get wkup_m3_ipc handle
[    2.281358] bone_capemgr bone_capemgr: slot #0: No cape found
[    2.325341] bone_capemgr bone_capemgr: slot #1: No cape found
[    2.369344] bone_capemgr bone_capemgr: slot #2: No cape found
[    2.413340] bone_capemgr bone_capemgr: slot #3: No cape found
Loading, please wait...
fsck: error 2 (No such file or directory) while executing fsck.ext4 for /dev/mmcblk1p1
fsck exited with status code 8
[   10.429055] systemd-fsck[161]: BOOT: clean, 137762/238560 files, 858958/954112 blocks
[   15.476988] davinci-mcasp 48038000.mcasp: invalid tdm slots: 0
[   15.854104] davinci-mcasp 4803c000.mcasp: invalid tdm slots: 0
[   18.689464]  remoteproc1: failed to load am335x-pru0-fw
[   18.915973]  remoteproc1: request_firmware failed: -2
[   18.921185] pru-rproc 4a334000.pru0: rproc_boot failed
[   19.243473]  remoteproc1: failed to load am335x-pru1-fw
[   19.285589]  remoteproc1: request_firmware failed: -2
[   19.290754] pru-rproc 4a338000.pru1: rproc_boot failed
[   23.692422] pinctrl-single 44e10800.pinmux: pin 44e10870.0 already requested by 481a8000.serial; cannot claim for ocp:P9_11_pinmux
[   23.704383] pinctrl-single 44e10800.pinmux: pin-28 (ocp:P9_11_pinmux) status -22
[   23.711878] pinctrl-single 44e10800.pinmux: could not request pin 28 (44e10870.0) from group pinmux_P9_11_default_pin  on device pinctrl-single
[   23.724825] bone-pinmux-helper ocp:P9_11_pinmux: Error applying setting, reverse things back
[   24.046302] pinctrl-single 44e10800.pinmux: pin 44e10870.0 already requested by 481a8000.serial; cannot claim for ocp:P9_11_pinmux
[   24.058239] pinctrl-single 44e10800.pinmux: pin-28 (ocp:P9_11_pinmux) status -22
[   24.065729] pinctrl-single 44e10800.pinmux: could not request pin 28 (44e10870.0) from group pinmux_P9_11_default_pin  on device pinctrl-single
[   24.078691] bone-pinmux-helper ocp:P9_11_pinmux: Error applying setting, reverse things back
[   24.087189] bone-pinmux-helper ocp:P9_11_pinmux: Failed to select default state
[   24.398886] pinctrl-single 44e10800.pinmux: pin 44e10874.0 already requested by 481a8000.serial; cannot claim for ocp:P9_13_pinmux
[   24.410831] pinctrl-single 44e10800.pinmux: pin-29 (ocp:P9_13_pinmux) status -22
[   24.418323] pinctrl-single 44e10800.pinmux: could not request pin 29 (44e10874.0) from group pinmux_P9_13_default_pin  on device pinctrl-single
[   24.431272] bone-pinmux-helper ocp:P9_13_pinmux: Error applying setting, reverse things back
[   24.634455] pinctrl-single 44e10800.pinmux: pin 44e10874.0 already requested by 481a8000.serial; cannot claim for ocp:P9_13_pinmux
[   24.646368] pinctrl-single 44e10800.pinmux: pin-29 (ocp:P9_13_pinmux) status -22
[   24.653858] pinctrl-single 44e10800.pinmux: could not request pin 29 (44e10874.0) from group pinmux_P9_13_default_pin  on device pinctrl-single
[   24.666817] bone-pinmux-helper ocp:P9_13_pinmux: Error applying setting, reverse things back
[   24.675314] bone-pinmux-helper ocp:P9_13_pinmux: Failed to select default state
[   24.891212] pinctrl-single 44e10800.pinmux: pin 44e1095c.0 already requested by 4802a000.i2c; cannot claim for ocp:P9_17_pinmux
[   24.902902] pinctrl-single 44e10800.pinmux: pin-87 (ocp:P9_17_pinmux) status -22
[   24.910393] pinctrl-single 44e10800.pinmux: could not request pin 87 (44e1095c.0) from group pinmux_P9_17_default_pin  on device pinctrl-single
[   24.923379] bone-pinmux-helper ocp:P9_17_pinmux: Error applying setting, reverse things back

Debian GNU/Linux 8 beaglebone ttyS0

BeagleBoard.org Debian Image 2016-05-13

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

default username:password is [debian:temppwd]

The IP Address for eth0 is: 192.168.1.206
The IP Address for usb0 is: 192.168.7.2
beaglebone login: [   25.082625] pinctrl-single 44e10800.pinmux: pin 44e1095c.0 already requested by 4802a000.i2c; cannot claim for ocp:P9_17_pinmux
[   25.094278] pinctrl-single 44e10800.pinmux: pin-87 (ocp:P9_17_pinmux) status -22
[   25.101770] pinctrl-single 44e10800.pinmux: could not request pin 87 (44e1095c.0) from group pinmux_P9_17_default_pin  on device pinctrl-single
[   25.114718] bone-pinmux-helper ocp:P9_17_pinmux: Error applying setting, reverse things back
[   25.123215] bone-pinmux-helper ocp:P9_17_pinmux: Failed to select default state
[   25.319212] pinctrl-single 44e10800.pinmux: pin 44e10958.0 already requested by 4802a000.i2c; cannot claim for ocp:P9_18_pinmux
[   25.330886] pinctrl-single 44e10800.pinmux: pin-86 (ocp:P9_18_pinmux) status -22
[   25.338396] pinctrl-single 44e10800.pinmux: could not request pin 86 (44e10958.0) from group pinmux_P9_18_default_pin  on device pinctrl-single
[   25.351345] bone-pinmux-helper ocp:P9_18_pinmux: Error applying setting, reverse things back
[   25.552819] pinctrl-single 44e10800.pinmux: pin 44e10958.0 already requested by 4802a000.i2c; cannot claim for ocp:P9_18_pinmux
[   25.564514] pinctrl-single 44e10800.pinmux: pin-86 (ocp:P9_18_pinmux) status -22
[   25.572018] pinctrl-single 44e10800.pinmux: could not request pin 86 (44e10958.0) from group pinmux_P9_18_default_pin  on device pinctrl-single
[   25.584973] bone-pinmux-helper ocp:P9_18_pinmux: Error applying setting, reverse things back
[   25.593479] bone-pinmux-helper ocp:P9_18_pinmux: Failed to select default state
[   25.819037] pinctrl-single 44e10800.pinmux: pin 44e10954.0 already requested by 48024000.serial; cannot claim for ocp:P9_21_pinmux
[   25.830961] pinctrl-single 44e10800.pinmux: pin-85 (ocp:P9_21_pinmux) status -22
[   25.838460] pinctrl-single 44e10800.pinmux: could not request pin 85 (44e10954.0) from group pinmux_P9_21_default_pin  on device pinctrl-single
[   25.851409] bone-pinmux-helper ocp:P9_21_pinmux: Error applying setting, reverse things back
[   26.014816] pinctrl-single 44e10800.pinmux: pin 44e10954.0 already requested by 48024000.serial; cannot claim for ocp:P9_21_pinmux
[   26.026710] pinctrl-single 44e10800.pinmux: pin-85 (ocp:P9_21_pinmux) status -22
[   26.034236] pinctrl-single 44e10800.pinmux: could not request pin 85 (44e10954.0) from group pinmux_P9_21_default_pin  on device pinctrl-single
[   26.047189] bone-pinmux-helper ocp:P9_21_pinmux: Error applying setting, reverse things back
[   26.055686] bone-pinmux-helper ocp:P9_21_pinmux: Failed to select default state
[   26.258005] pinctrl-single 44e10800.pinmux: pin 44e10950.0 already requested by 48024000.serial; cannot claim for ocp:P9_22_pinmux
[   26.269910] pinctrl-single 44e10800.pinmux: pin-84 (ocp:P9_22_pinmux) status -22
[   26.277387] pinctrl-single 44e10800.pinmux: could not request pin 84 (44e10950.0) from group pinmux_P9_22_default_pin  on device pinctrl-single
[   26.290334] bone-pinmux-helper ocp:P9_22_pinmux: Error applying setting, reverse things back
[   26.438886] pinctrl-single 44e10800.pinmux: pin 44e10950.0 already requested by 48024000.serial; cannot claim for ocp:P9_22_pinmux
[   26.450812] pinctrl-single 44e10800.pinmux: pin-84 (ocp:P9_22_pinmux) status -22
[   26.458318] pinctrl-single 44e10800.pinmux: could not request pin 84 (44e10950.0) from group pinmux_P9_22_default_pin  on device pinctrl-single
[   26.471382] bone-pinmux-helper ocp:P9_22_pinmux: Error applying setting, reverse things back
[   26.479910] bone-pinmux-helper ocp:P9_22_pinmux: Failed to select default state
[   26.687582] pinctrl-single 44e10800.pinmux: pin 44e10984.0 already requested by 48022000.serial; cannot claim for ocp:P9_24_pinmux
[   26.699520] pinctrl-single 44e10800.pinmux: pin-97 (ocp:P9_24_pinmux) status -22
[   26.707031] pinctrl-single 44e10800.pinmux: could not request pin 97 (44e10984.0) from group pinmux_P9_24_default_pin  on device pinctrl-single
[   26.719982] bone-pinmux-helper ocp:P9_24_pinmux: Error applying setting, reverse things back
[   26.831023] pinctrl-single 44e10800.pinmux: pin 44e10984.0 already requested by 48022000.serial; cannot claim for ocp:P9_24_pinmux
[   26.842937] pinctrl-single 44e10800.pinmux: pin-97 (ocp:P9_24_pinmux) status -22
[   26.850436] pinctrl-single 44e10800.pinmux: could not request pin 97 (44e10984.0) from group pinmux_P9_24_default_pin  on device pinctrl-single
[   26.863386] bone-pinmux-helper ocp:P9_24_pinmux: Error applying setting, reverse things back
[   26.871883] bone-pinmux-helper ocp:P9_24_pinmux: Failed to select default state
[   27.139757] pinctrl-single 44e10800.pinmux: pin 44e10980.0 already requested by 48022000.serial; cannot claim for ocp:P9_26_pinmux
[   27.151706] pinctrl-single 44e10800.pinmux: pin-96 (ocp:P9_26_pinmux) status -22
[   27.159196] pinctrl-single 44e10800.pinmux: could not request pin 96 (44e10980.0) from group pinmux_P9_26_default_pin  on device pinctrl-single
[   27.172146] bone-pinmux-helper ocp:P9_26_pinmux: Error applying setting, reverse things back
[   27.355120] pinctrl-single 44e10800.pinmux: pin 44e10980.0 already requested by 48022000.serial; cannot claim for ocp:P9_26_pinmux
[   27.367039] pinctrl-single 44e10800.pinmux: pin-96 (ocp:P9_26_pinmux) status -22
[   27.374531] pinctrl-single 44e10800.pinmux: could not request pin 96 (44e10980.0) from group pinmux_P9_26_default_pin  on device pinctrl-single
[   27.387481] bone-pinmux-helper ocp:P9_26_pinmux: Error applying setting, reverse things back
[   27.395992] bone-pinmux-helper ocp:P9_26_pinmux: Failed to select default state
[   27.821211] platform 48300180.eqep: Cannot lookup hwmod 'eqep0'
[   27.870829] platform 48302180.eqep: Cannot lookup hwmod 'eqep1'
[   27.923458] platform 48304180.eqep: Cannot lookup hwmod 'eqep2'
[   28.461061] eqep 48300180.eqep: failed to get clock
[   28.702552] eqep 48302180.eqep: failed to get clock
[   28.834740] eqep 48304180.eqep: failed to get clock

I could not understand, why is it trying to load “vmlinuz-4.4.9-ti-r25”?

Thanks and Regards

Just start from scratch, you have weird combination of different software in eMMC and mircoSD…

Either erase the eMMC, or fix what version you want to boot…

Here’s a daily build for the BBB:

https://rcn-ee.net/rootfs/ubuntu-armhf-focal-minimal/

Regards,