svollebregt
Occasional Visitor
I want to enable support for the RT5370 by compiling a kernel driver module. Natively, the used 2.6.36 kernel doesn't seem to have these drivers in the source, but I found a driver package from the manufacturer which should work with the 2.6.36 kernel: https://harkko.lattu.biz/notes/rt5370_ubuntu.html (direct link to package: https://harkko.lattu.biz/notes/rt53...3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO.bz2)
I set up my cross-compile build environment using Ubuntu 18.04, downloaded the git source of the latest Merlin release and the toolchains, set up the paths, and can now successfully build the RT-AC68u image. So far for the easy part...
I noticed the Makefile of the driver package includes many different platforms, so I added one to help it point to the toolchain:
It seems to find the cross-compiler, but it has troubles finding some libraries, adding the cross_compile_include variable didn't seem to fix this... I now get the following error:
Probably I am missing something trivial, anyone who can help to get this working?
I set up my cross-compile build environment using Ubuntu 18.04, downloaded the git source of the latest Merlin release and the toolchains, set up the paths, and can now successfully build the RT-AC68u image. So far for the easy part...
I noticed the Makefile of the driver package includes many different platforms, so I added one to help it point to the toolchain:
Code:
ifeq ($(PLATFORM),MERLIN)
LINUX_SRC = /home/router/asuswrt-merlin.ng/release/src-rt-6.x.4708/linux/linux-2.6.36/
CROSS_COMPILE = /opt/brcm-arm/bin/arm-linux-
CROSS_COMPILE_INCLUDE = /opt/brcm-arm/lib/
endif
It seems to find the cross-compiler, but it has troubles finding some libraries, adding the cross_compile_include variable didn't seem to fix this... I now get the following error:
Code:
make -C tools
make[1]: Entering directory '/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory '/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools'
/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/tools/bin2h
cp -f os/linux/Makefile.6 /home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/Makefile
make -C /home/router/asuswrt-merlin.ng/release/src-rt-6.x.4708/linux/linux-2.6.36/ SUBDIRS=/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux modules
make[1]: Entering directory '/home/router/asuswrt-merlin.ng/release/src-rt-6.x.4708/linux/linux-2.6.36'
CC [M] /home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/crypt_md5.o
/home/router/am-toolchains/brcm-arm-sdk/hndtools-arm-linux-2.6.36-uclibc-4.5.3/bin/../libexec/gcc/arm-brcm-linux-uclibcgnueabi/4.5.3/cc1: error while loading shared libraries: libmpc.so.2: cannot open shared object file: No such file or directory
scripts/Makefile.build:233: recipe for target '/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/crypt_md5.o' failed
make[2]: *** [/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux/../../common/crypt_md5.o] Error 1
Makefile:1387: recipe for target '_module_/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux' failed
make[1]: *** [_module_/home/router/2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO/os/linux] Error 2
make[1]: Leaving directory '/home/router/asuswrt-merlin.ng/release/src-rt-6.x.4708/linux/linux-2.6.36'
Makefile:363: recipe for target 'LINUX' failed
make: *** [LINUX] Error 2
Last edited: