What's new

RT-AX56U Modules problem

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

LanLord

Occasional Visitor
Hello!

I am trying to compile some additional kernel drivers (sound, uvc & Bluetooth) for AX56U using the latest Merlin repo. For the firmware I did use the amcfwm script and after some tweaking it successfully produced an image (384.18_alpha1). The problem looks like this:
Code:
root@ubuntu:~/amng.ax56/release/src-rt-5.02axhnd.675x/kernel/linux-4.1# make menuconfig
  HOSTCC  scripts/kconfig/mconf.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
  HOSTCC  scripts/kconfig/lxdialog/util.o
  HOSTCC  scripts/kconfig/lxdialog/inputbox.o
  HOSTCC  scripts/kconfig/lxdialog/textbox.o
  HOSTCC  scripts/kconfig/lxdialog/yesno.o
  HOSTCC  scripts/kconfig/lxdialog/menubox.o
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf  Kconfig
configuration written to .config

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

root@ubuntu:~/amng.ax56/release/src-rt-5.02axhnd.675x/kernel/linux-4.1# make kernel
scripts/kconfig/conf  --silentoldconfig Kconfig
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_32_ia32.h
  SYSHDR  arch/x86/syscalls/../include/generated/asm/unistd_64_x32.h
  SYSTBL  arch/x86/syscalls/../include/generated/asm/syscalls_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR  arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
  HOSTCC  arch/x86/tools/relocs_32.o
  HOSTCC  arch/x86/tools/relocs_64.o
  HOSTCC  arch/x86/tools/relocs_common.o
  HOSTLD  arch/x86/tools/relocs
  CHK     include/config/kernel.release
  WRAP    arch/x86/include/generated/asm/clkdev.h
  WRAP    arch/x86/include/generated/asm/cputime.h
  WRAP    arch/x86/include/generated/asm/dma-contiguous.h
  WRAP    arch/x86/include/generated/asm/early_ioremap.h
  WRAP    arch/x86/include/generated/asm/mcs_spinlock.h
  WRAP    arch/x86/include/generated/asm/scatterlist.h
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CC      kernel/bounds.s
cc1: error: code model kernel does not support PIC mode
Kbuild:43: recipe for target 'kernel/bounds.s' failed
make[1]: *** [kernel/bounds.s] Error 1
Makefile:1319: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2

Please help. Thank you!
 
are you trying to get updated drivers for it? if so could u share the firmware with me pls?
 
You can't directly compile the kernel like that. The proper config_base config must be provided by the firmware build system.

Make any change you need to make to the appropriate config_base file (the file will depend on the specific model you are working with), then compile the kernel through the regular firmware build system, not by compiling directly.
 
You can't directly compile the kernel like that. The proper config_base config must be provided by the firmware build system.

Make any change you need to make to the appropriate config_base file (the file will depend on the specific model you are working with), then compile the kernel through the regular firmware build system, not by compiling directly.

I tried to adapt this older tutorial https://hqt.ro/how-to-compile-modules-for-asuswrt-routers/ that I've used in the past for AC56U and N18U, thinking that it would work with the new version of your firmware.
I will try to compile it again tomorrow and come back with my results.
Thank you Merlin! You do a wonderful thing.
 
are you trying to get updated drivers for it? if so could u share the firmware with me pls?
The modules required for usb sound support are here: https://www.dropbox.com/s/35tzoscryoo8xh3/AX56_sound_modules.zip?dl=0
They do work with the newest Merlin firmware, downloaded from the official page (384.18-alpha1). Tested with alsa and mpd.
As for video, I have this issue:
Code:
modprobe -d /opt/ uvcvideo
modprobe: can't load module videobuf2_vmalloc (kernel/drivers/media/v4l2-core/videobuf2-vmalloc.ko): unknown symbol in module, or unknown parameter
I wonder if this problem is caused by the fact that I used for the flashing process the official Merlin image instead of the one compiled by me.. I re-flashed my router with my image file, but the same issue appears.
Any suggestions? Thanks!
 
Last edited:
If it does matter:
Code:
videobuf2_vmalloc: Unknown symbol dma_buf_vmap (err 0)
videobuf2_vmalloc: Unknown symbol dma_buf_export (err 0)
videobuf2_vmalloc: Unknown symbol dma_buf_vunmap (err 0)
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top