Thanks! This has done a lot to fix it!
I'm using the kernel's makefiles to generate the dtbs -- just "make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs".
The command being executed seems to be
Code: Select all
mkdir -p arch/arm64/boot/dts/broadcom/ ; gcc -E -Wp,-MD,arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.d.pre.tmp -nostdinc -I./scripts/dtc/include-prefixes -undef -D__DTS__ -x assembler-with-cpp -o arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.dts.tmp arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b-plus.dts ; ./scripts/dtc/dtc -O dtb -o arch/arm64/boot/dts/broadcom/bcm2837-rpi-3-b-plus.dtb -b 0 -iarch/arm64/boot/dts/broadcom/ -i./scripts/dtc/include-prefixes -Wno-unit_address_vs_reg -Wno-unit_address_format -Wno-gpios_property -Wno-avoid_unnecessary_addr_size -Wno-alias_paths -Wno-graph_child_address -Wno-graph_port -Wno-unique_unit_address -Wno-pci_device_reg -d arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.d.dtc.tmp arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.dts.tmp ; cat arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.d.pre.tmp arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.d.dtc.tmp > arch/arm64/boot/dts/broadcom/.bcm2837-rpi-3-b-plus.dtb.d
which indeed doesn't have a -@.
I've fixed that (Patch:
https://github.com/OpenMandrivaSoftware ... 8905da654b) -- now fdtdump output looks better:
Code: Select all
$ fdtdump kernel/arch/arm64/boot/dts/broadcom/bcm2710-rpi-3-b-plus.dtb |grep __
**** fdtdump is a low-level debugging tool, not meant for general use.
**** If you want to decompile a dtb, you probably want
**** dtc -I dtb -O dts <filename>
__overrides__ {
__symbols__ {
The overlay is getting loaded properly now, and the driver is starting to work.
Code: Select all
$ dmesg |grep vc4
[Mon Dec 3 00:41:22 2018] vc4_hdmi 3f902000.hdmi: ASoC: Failed to create component debugfs directory
[Mon Dec 3 00:41:22 2018] vc4_hdmi 3f902000.hdmi: vc4-hdmi-hifi <-> 3f902000.hdmi mapping ok
[Mon Dec 3 00:41:22 2018] vc4_hdmi 3f902000.hdmi: ASoC: no DMI vendor name!
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f902000.hdmi (ops vc4_hdmi_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f806000.vec (ops vc4_vec_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f004000.txp (ops vc4_txp_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f400000.hvs (ops vc4_hvs_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f206000.pixelvalve (ops vc4_crtc_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f207000.pixelvalve (ops vc4_crtc_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3f807000.pixelvalve (ops vc4_crtc_ops [vc4])
[Mon Dec 3 00:41:22 2018] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4])
[Mon Dec 3 00:41:22 2018] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0
[Mon Dec 3 00:41:23 2018] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device
$ cat /proc/fb
0 DRM emulated
Trying to start an X server on it still fails, but now has other reasons.
Code: Select all
[...]
[ 41.784] Kernel command line: 8250.nr_uarts=0 cma=256M bcm2708_fb.fbwidth=1824 bcm2708_fb.fbheight=984 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait cma=128M gpu_mem=128
[...]
[ 43.936] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 43.946] (II) no primary bus or device found
[ 43.946] falling back to /sys/devices/platform/soc/soc:gpu/drm/card0
[ 43.946] (II) LoadModule: "glx"
[ 43.964] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 45.819] (II) Module glx: vendor="X.Org Foundation"
[ 45.819] compiled for 1.20.3, module version = 1.0.0
[ 45.819] ABI class: X.Org Server Extension, version 10.0
[ 45.819] (==) Matched modesetting as autoconfigured driver 0
[ 45.819] (==) Matched fbdev as autoconfigured driver 1
[ 45.820] (==) Assigned the driver to the xf86ConfigLayout
[ 45.820] (II) LoadModule: "modesetting"
[ 45.830] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 46.131] (II) Module modesetting: vendor="X.Org Foundation"
[ 46.131] compiled for 1.20.3, module version = 1.20.3
[ 46.131] Module class: X.Org Video Driver
[ 46.131] ABI class: X.Org Video Driver, version 24.0
[ 46.131] (II) LoadModule: "fbdev"
[ 46.132] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[ 46.411] (II) Module fbdev: vendor="X.Org Foundation"
[ 46.411] compiled for 1.20.3, module version = 0.5.0
[ 46.411] Module class: X.Org Video Driver
[ 46.411] ABI class: X.Org Video Driver, version 24.0
[ 46.412] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 46.412] (II) FBDEV: driver for framebuffer: fbdev
[ 46.412] (WW) xf86OpenConsole: VT_ACTIVATE failed: No such device or address
[ 46.412] (EE)
Fatal server error:
[ 46.435] (EE) xf86OpenConsole: Switching VT failed