[elrepo] mac802154_hwsim kmod request

Phil Perry phil at elrepo.org
Thu Sep 3 12:40:11 EDT 2020


On 03/09/2020 15:09, Alan Bartlett wrote:
> On Thu, 3 Sep 2020 at 15:06, Tamas Csirszka <tamas.csirszka at gmail.com> wrote:
>>
>> Hi Alan,
>>
>> Thanks for the info. I quickly tested this with the below results.
>> I installed the kernel you suggested on el7 first:
>>
>>     [root at kernel7 ~]# uname -a
>>     Linux kernel7 5.8.6-1.el7.elrepo.x86_64 #1 SMP Wed Sep 2 12:22:35 EDT 2020 x86_64 x86_64 x86_64 GNU/Linux
>>     [root at kernel7 ~]#
>>
>> But the module doesn't seem to be available:
>>
>>     [root at kernel7 ~]# modinfo mac802154_hwsim
>>     modinfo: ERROR: Module mac802154_hwsim not found.
>>     [root at kernel7 ~]#
>>
>> Checked the modules dir as well and can't see it there:
>>
>>     [root at kernel7 ieee802154]# pwd
>>     /usr/lib/modules/5.8.6-1.el7.elrepo.x86_64/kernel/drivers/net/ieee802154
>>     [root at kernel7 ieee802154]# ls -l
>>     total 296
>>     -rwxr--r--. 1 root root 33424 Sep  3 02:43 adf7242.ko
>>     -rwxr--r--. 1 root root 49688 Sep  3 02:43 at86rf230.ko
>>     -rwxr--r--. 1 root root 35792 Sep  3 02:43 atusb.ko
>>     -rwxr--r--. 1 root root 45256 Sep  3 02:43 ca8210.ko
>>     -rwxr--r--. 1 root root 29528 Sep  3 02:43 cc2520.ko
>>     -rwxr--r--. 1 root root 13784 Sep  3 02:43 fakelb.ko
>>     -rwxr--r--. 1 root root 43288 Sep  3 02:43 mcr20a.ko
>>     -rwxr--r--. 1 root root 32560 Sep  3 02:43 mrf24j40.ko
>>     [root at kernel7 ieee802154]#
>>
>> The Low-Rate Wireless Personal Area Network support ( ieee802154 ) is there with many available modules, but the hardware simulator module( mac802154_hwsim.ko ) which my user needs for IoT network modelling is unfortunately missing.
>>
>> On el8 the modinfo similarly cannot find the module and the ieee802154 directory is empty:
>>
>>     [root at kernel8 ieee802154]# pwd
>>     /usr/lib/modules/5.8.6-1.el8.elrepo.x86_64/kernel/drivers/net/ieee802154
>>     [root at kernel8 ieee802154]# ls -l
>>     total 0
>>     [root at kernel8 ieee802154]#
>>
>>
>> Cheers,
>> Tamas
> 
> Hi Tamas,
> 
> Thank you for letting me know. I shall now go and take a closer look
> at both configuration files . . . with the aim of making an
> appropriate adjustment.
> 
> Regards,
> Alan.

Hi Alan, Tamas,

I believe it's config IEEE802154_HWSIM that you will need to set for the 
module to build. It's in drivers/net/ieee802154, and under menuconfig 
IEEE802154_DRIVERS I _think_.

I'm actually having quite a bit of trouble backporting to el7. Because 
the driver sits outside of the wifi stack (in drivers/net/ieee802154), 
quite a lot of the required bits have not been backported to el7. I may 
have to try a different approach, but in the meantime if Alan can enable 
it in kernel-ml, this may be a quicker option.

Phil


More information about the elrepo mailing list