Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find any crtc or sizes #57

Open
ftoledo opened this issue Apr 27, 2023 · 5 comments
Open

Cannot find any crtc or sizes #57

ftoledo opened this issue Apr 27, 2023 · 5 comments

Comments

@ftoledo
Copy link

ftoledo commented Apr 27, 2023

I succeful build on debian 11:
Linux ragnarok 5.10.0-21-amd64 #1 SMP Debian 5.10.162-1 (2023-01-21) x86_64 GNU/Linux

modules load, but get thes

[41443.901209] i2c i2c-14: Binding FL2000 master
[41443.902365] i2c 0-004c: Binding IT66121 component
[41444.024292] i2c i2c-14: Bridge attached
[41444.024301] i2c i2c-14: bound 0-004c (ops it66121_component_ops [it66121])
[41444.024583] [drm] Initialized fl2000_drm 0.0.1 20181001 for i2c-14 on minor 2
[41444.044344] i2c i2c-14: Cannot get monitor status (-6)
[41444.044877] i2c i2c-14: [drm] Cannot find any crtc or sizes
[41444.127736] i2c i2c-14: Cannot read interrupt status (-6)
[41444.558517] i2c i2c-14: Cannot get monitor status (-6)
[41444.559197] i2c i2c-14: [drm] Cannot find any crtc or sizes

@thenightterorx
Copy link

are you able to get any display output?

@ftoledo
Copy link
Author

ftoledo commented Apr 13, 2024

sorry i don't have debian 11 anymore. Now at debian 12 i cannot build

ragnarok@ragnarok:~/src/fl2000_drm$ make
make CHECK="/usr/bin/sparse" -C /lib/modules/6.1.0-20-amd64/build M=/home/ragnarok/src/fl2000_drm modules
make[1]: se entra en el directorio '/usr/src/linux-headers-6.1.0-20-amd64'
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_drv.o
In file included from /home/ragnarok/src/fl2000_drm/fl2000_drv.c:7:
/home/ragnarok/src/fl2000_drm/fl2000.h:33:10: fatal error: drm/drm_fbdev_generic.h: No existe el fichero o el directorio
   33 | #include <drm/drm_fbdev_generic.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [/usr/src/linux-headers-6.1.0-20-common/scripts/Makefile.build:255: /home/ragnarok/src/fl2000_drm/fl2000_drv.o] Error 1
make[1]: *** [/usr/src/linux-headers-6.1.0-20-common/Makefile:2035: /home/ragnarok/src/fl2000_drm] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-6.1.0-20-amd64'
make: *** [Makefile:20: modules] Error 2
ragnarok@ragnarok:~/src/fl2000_drm$ uname -a
Linux ragnarok 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux

@thenightterorx
Copy link

im using arch but I'll see if I can get it working for you using the older 6.1 lts kernel. It might just require a few patches.

@thenightterorx
Copy link

it seems to not complain if you do the sketchy thing of manually downloading that file from the kernel sources and putting it in your build directory then changing the include statement to comments. I still get the same error though as I do on linux versions 6.6 and 6.8 (which is configure crtc 6 failed in xrandr, could not set tx mode in dmesg.

@ftoledo
Copy link
Author

ftoledo commented Apr 13, 2024

i also try backport 6.5 kernel, and still no success
this is the rhgnd fork:

ragnarok@ragnarok:~/src/fl2000_drm-rhgndf$ make
make CHECK="/usr/bin/sparse" -C /lib/modules/6.5.0-0.deb12.4-amd64/build M=/home/ragnarok/src/fl2000_drm-rhgndf modules
make[1]: se entra en el directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_drv.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_registers.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_interrupt.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_streaming.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_connector.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_i2c.o
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000_drm.o
  LD [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.o
  MODPOST /home/ragnarok/src/fl2000_drm-rhgndf/Module.symvers
  CC [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.mod.o
  LD [M]  /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko
  BTF [M] /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko
/bin/sh: 1: ./tools/bpf/resolve_btfids/resolve_btfids: not found
make[3]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/scripts/Makefile.modfinal:63: /home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko] Error 127
make[3]: *** Se borra el archivo '/home/ragnarok/src/fl2000_drm-rhgndf/fl2000.ko'
make[2]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:1977: modules] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:246: __sub-make] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
make: *** [Makefile:18: modules] Error 2

and this is this repo:

ragnarok@ragnarok:~/src/fl2000_drm$ make
make CHECK="/usr/bin/sparse" -C /lib/modules/6.5.0-0.deb12.4-amd64/build M=/home/ragnarok/src/fl2000_drm modules
make[1]: se entra en el directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_drv.o
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_registers.o
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_interrupt.o
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_streaming.o
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_i2c.o
  CC [M]  /home/ragnarok/src/fl2000_drm/fl2000_drm.o
  LD [M]  /home/ragnarok/src/fl2000_drm/fl2000.o
  CC [M]  /home/ragnarok/src/fl2000_drm/bridge/it66121_drv.o
  LD [M]  /home/ragnarok/src/fl2000_drm/it66121.o
  MODPOST /home/ragnarok/src/fl2000_drm/Module.symvers
ERROR: modpost: "drm_fb_dma_get_gem_obj" [/home/ragnarok/src/fl2000_drm/fl2000.ko] undefined!
ERROR: modpost: "drm_gem_dma_dumb_create" [/home/ragnarok/src/fl2000_drm/fl2000.ko] undefined!
ERROR: modpost: "drm_gem_dma_prime_import_sg_table_vmap" [/home/ragnarok/src/fl2000_drm/fl2000.ko] undefined!
make[3]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/scripts/Makefile.modpost:144: /home/ragnarok/src/fl2000_drm/Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:2011: modpost] Error 2
make[1]: *** [/usr/src/linux-headers-6.5.0-0.deb12.4-common/Makefile:246: __sub-make] Error 2
make[1]: se sale del directorio '/usr/src/linux-headers-6.5.0-0.deb12.4-amd64'
make: *** [Makefile:20: modules] Error 2

i will try to booting with debian 11 disk and test again with old kernels

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants