-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Content-ID: <alpine.LSU.2.21.2005012150360.16357@Telcontar.valinor> On Friday, 2020-05-01 at 22:33 +0300, Andrei Borzenkov wrote:
Отправлено с iPhone
1 мая 2020 г., в 21:18, Carlos E. R. <robin.listas@telefonica.net> написал(а):
No, I did not look. I know that the source file is present:
/usr/src/linux-4.12.14-lp151.28.44/drivers/net/hamradio/mkiss.c
So I assumed the entry would be in the config file. I can confirm that it is not present here :-((
You need to enable HAMRADIO before you can enable individual drivers.
Ah, of course, makes sense. I was going to build the entire kernel, then I would have seen it. The way of building only one module is unknown to me. Do you know what section it is? I'm looking on "make menuconfig". I had no need to build a kernel for ages. Ah, yes, there is search. Type "/". ┌──────────────────── Search Results ──────── │ Symbol: HAMRADIO [=n] │ Type : boolean │ Prompt: Amateur Radio support │ Location: │ (1) -> Networking support (NET [=y]) │ Defined at net/ax25/Kconfig:5 │ Depends on: NET [=y] && !S390 So: [*] Networking support ---> then [ ] Amateur Radio support ---- Type "y" Now search for "mkiss". │ Symbol: MKISS [=n] │ │ Type : tristate │ │ Prompt: Serial port KISS driver │ │ Location: │ │ -> Networking support (NET [=y]) │ │ -> Amateur Radio support (HAMRADIO [=y]) │ │ (1) -> Amateur Radio AX.25 Level 2 protocol (AX25 [=n]) │ │ -> AX.25 network device drivers │ │ Defined at drivers/net/hamradio/Kconfig:1 │ │ Depends on: NET [=y] && HAMRADIO [=y] && AX25 [=n] && TTY [=y] │ │ Selects: CRC16 [=y] │ So: [*] Amateur Radio support ---> < > Amateur Radio AX.25 Level 2 protocol Type y AX.25 network device drivers ---> finally < > Serial port KISS driver (NEW) Type 'm' save. Still, does not build: Telcontar:/usr/src/linux # grep -i mkiss .config CONFIG_MKISS=m Telcontar:/usr/src/linux # Telcontar:/usr/src/linux # make M=drivers/net/hamradio Building modules, stage 2. MODPOST 0 modules Telcontar:/usr/src/linux # l drivers/net/hamradio/mkiss* - -rw-r--r-- 1 root root 24307 Apr 17 07:38 drivers/net/hamradio/mkiss.c Telcontar:/usr/src/linux # As I said, I know how to build the entire kernel, but not a single module as Masaru Nomiya does on his script: ... make mrproper (I don't) cp /lib/modules/`uname -r`/build/.config ./ (I use /proc/config) cp /usr/lib/modules/`uname -r`/build/Module.symvers ./ (it is not there) make oldconfig make prepare && make scripts make M=drivers/net/hamradio xz -z drivers/net/hamradio/mkiss.ko ... I will check "/usr/src/linux/README.SUSE". The first method involves the following steps: (1) Install the kernel-source package. (2) Configure the kernel, see HOW TO CONFIGURE THE KERNEL SOURCES. (3) Create files required for compiling external modules: ``make prepare'' and ``make scripts''. (4) Compile the module(s) by changing into the module source directory and typing ``make -C $(your_build_dir) M=$(pwd)''. (5) Install the module(s) by typing ``make -C $(your_build_dir) M=$(pwd) modules_install''. Still no go... Telcontar:/usr/src/linux # cd drivers/net/hamradio/ Telcontar:/usr/src/linux/drivers/net/hamradio # make make: *** No targets. Stop. Telcontar:/usr/src/linux/drivers/net/hamradio # make -C . make: Entering directory '/usr/src/linux-4.12.14-lp151.28.48/drivers/net/hamradio' make: *** No targets. Stop. make: Leaving directory '/usr/src/linux-4.12.14-lp151.28.48/drivers/net/hamradio' Telcontar:/usr/src/linux/drivers/net/hamradio # Telcontar:/usr/src/linux/drivers/net/hamradio # make M=$(pwd) make: *** No targets. Stop. Telcontar:/usr/src/linux/drivers/net/hamradio # make -C . M=$(pwd) make: Entering directory '/usr/src/linux-4.12.14-lp151.28.48/drivers/net/hamradio' make: *** No targets. Stop. make: Leaving directory '/usr/src/linux-4.12.14-lp151.28.48/drivers/net/hamradio' Telcontar:/usr/src/linux/drivers/net/hamradio # - -- Cheers, Carlos E. R. (from openSUSE 15.1 x86_64 at Telcontar) -----BEGIN PGP SIGNATURE----- iHoEARECADoWIQQZEb51mJKK1KpcU/W1MxgcbY1H1QUCXqyCXRwccm9iaW4ubGlz dGFzQHRlbGVmb25pY2EubmV0AAoJELUzGBxtjUfV1TsAn0+/L1Og0EDi0JkMnN5Y PsSZLggWAJ9TwjACV29/YfSOR9LfmdWpCWpv4A== =qN2Y -----END PGP SIGNATURE-----