OpenWrt Forum Archive

Topic: Compiling in the n_hdlc kernel module

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm trying to get the n_hdlc kernel module built, to enable me to have a crack
at using OpenWRT with a Speedtouch USB ADSL modem.  I have:
- added CONFIG_N_HDLC=m to openwrt/target/linux/linux-2.4/brcm
- added
$(eval $(call KMOD_template,NHDLC,nhdlc,$(MODULES_DIR)/kernel/drivers/char/n_hdlc.o
to openwrt/target/linux/linux-2.4/Makefile
- added
config BR2_PACKAGE_KMOD_NHDLC
    tristate "Non-standard HDLC driver"
    default m
to /openwrt/linux/Config.in
and created openwrt/target/linux/control/kmod-nhdlc.control

make menuconfig lets me select it, but, on make, it doesn't get built - the make
fails when it's unable to copy n_hdlc.o from the Linux tree as it's not been
compiled.

I guess I'm missing something obvious, or have failed to RTFM properly - I can't
for the life of me see where, though.  Can anyone help?!

Thanks --

Dave

How is the Speedtouch USB ADSL modem using the n_hdlc kernel module?

The discussion might have continued from here.