x86_64 custom kernel modules

Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware
Author Message
Maclarentosh
DD-WRT Novice


Joined: 03 Dec 2023
Posts: 8

PostPosted: Sun Dec 03, 2023 22:32    Post subject: x86_64 custom kernel modules Reply with quote
Hello, i got a small x86 machine to use as a router.

I coupled this with a mini pcie wifi card, mediatek 7916 chipset.

The kernel module for this on openwrt is kmod-mt7915e and maybe kmod-7916-firmware. i am havent had the chance to test performance 100% but it is working, i can set up an SSID etc...

in DD-WRT could i enable Entware repo and simply install these modules?

Or do i need to compile dd-wrt myself with these modules?
Sponsor
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Mon Dec 04, 2023 16:44    Post subject: Reply with quote
There is a possibility that the kernel modules and firmware are already included in the firmware images. This is not OpenWRT, where you have to go through a convoluted process to get bobs and bits already included in DD-WRT.
_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Maclarentosh
DD-WRT Novice


Joined: 03 Dec 2023
Posts: 8

PostPosted: Tue Dec 05, 2023 20:55    Post subject: Reply with quote
I sshed into the router and the device is listed in the pcie devices via lspci -v:

Code:
Network controller: MEDIATEK Corp. Device 7906
   Subsystem: MEDIATEK Corp. Device 7906


However no driver is in use.

Also there is no Wireless menu in the Web UI. Is this due to it not recognizing any wireless hardware?
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Tue Dec 05, 2023 22:28    Post subject: Reply with quote
Is this on the current release?

https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2023/12-04-2023-r54420/x86_64/

OpenWRT is not using Linux 6.1 yet that I am aware of, and there is always a problem trying to use their .ipk files. I doubt that Entware is supporting Linux 6.1 yet, either. I have no idea if anyone has contacted the developer yet, I have been indisposed more often than not over the past week or two.

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Maclarentosh
DD-WRT Novice


Joined: 03 Dec 2023
Posts: 8

PostPosted: Tue Dec 05, 2023 23:18    Post subject: Reply with quote
I just tried the image you sent.

Verified that i am on Kernel 6.1 using uname -r.

lspci -v shows the device, but no driver in use.

i checked openwrt, its running kernel 5.15.134
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Wed Dec 06, 2023 0:43    Post subject: Reply with quote
Have you examined the output of:

ls /lib/modules/$(uname -r)

lsmod

modprobe -a

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
Maclarentosh
DD-WRT Novice


Joined: 03 Dec 2023
Posts: 8

PostPosted: Wed Dec 06, 2023 1:51    Post subject: Reply with quote
ls /lib/modules/$(uname -r)

Shows no modules related to mediatek/mt/7916

Same for lsmod

Not sure what modprobe -a does, i wasent able to use it since there were to modules that were related to mediatek

Edit: typos
kernel-panic69
DD-WRT Guru


Joined: 08 May 2018
Posts: 14249
Location: Texas, USA

PostPosted: Wed Dec 06, 2023 4:06    Post subject: Reply with quote
Welp, I didn't specify to grep anything. The kernel module is / should be for mt76, but whether or not it's compiled into the kernel or not is in question. FYI modprobe -a probes all kernel modules to insert / load them...

https://linux.die.net/man/8/modprobe

_________________
"Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT
Pogo - A minimal level of ability is expected and needed...
DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)

----------------------
Linux User #377467 counter.li.org / linuxcounter.net
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 06, 2023 9:46    Post subject: Reply with quote
have you installed the full version and bought an activation key?

the free version does not support wifi

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
Maclarentosh
DD-WRT Novice


Joined: 03 Dec 2023
Posts: 8

PostPosted: Wed Dec 06, 2023 13:16    Post subject: Reply with quote
I can confirm there is no module related to mt76

The lsmod only shows this for the letter m:
Code:
mr75203                16384  0
mcp3021                12288  0
max6697                16384  0
max6650                12288  0
max6639                12288  0
max6621                12288  0
max6620                12288  0
max31790               12288  0
max31760               12288  0
max31730               12288  0
max31722               12288  0
max197                 12288  0
max1668                12288  0
max1619                12288  0
max16065               16384  0
max127                 12288  0
max1111                12288  0


And ls /lib/modules/$(uname -r)
Since its in alphabetical order this snippet shows there is nothing for mt76

Shows:
Code:

cdc_ncm.ko                            mr75203.ko
cdc_subset.ko                         msdos.ko
cec.ko                                mse102x.ko
ch9200.ko                             multipath.ko
chcr.ko                               myri10ge.ko
cifs.ko                               n_gsm.ko
cifs_arc4.ko                          n_hdlc.ko
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 06, 2023 13:29    Post subject: Reply with quote
Again, have you installed the "full" version or the "public" version?

And you don't need to look for any modules at all, the drivers are all included in the "full" version.

the "public" version dont support wifi!!!

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
Maclarentosh
DD-WRT Novice


Joined: 03 Dec 2023
Posts: 8

PostPosted: Wed Dec 06, 2023 14:24    Post subject: Reply with quote
Woops, i didnt even notice that message.

Using the public version.

the full version does not boot for me at all. i have tried the one in the link sent above, and an image back from april.
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Wed Dec 06, 2023 15:26    Post subject: Reply with quote
..
_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum