Octeon MMC driver

Kevin Bowling <[email protected]> Thu, 19 Mar 2026 04:35:01 -0700
Newsgroups gmane.os.netbsd.ports.mips.devel
Message-ID <CAK7dMtBYBJy86=WyTAty=AcGAZ3u7VJPXEy7sFOjyn3npNPwJA@mail.gmail.com>
Hi,

I have ported OpenBSD's Octeon MMC driver to NetBSD here:
https://people.freebsd.org/~kbowling/oct_mmc.patch

It seems stable with light testing and is now self booting on my ER4:
Octeon ubnt_e100# set bootcmd 'fatload mmc 0 $loadaddr
netbsd;bootoctlinux $loadaddr coremask=0x3 root=wedge:octeon-root'
Octeon ubnt_e100# saveenv

I would be curious if it works for others and if the code can be
improved as I am not deeply familiar with Net or Open internals.
There is a lag when attaching, which I suspect is caused by an SDIO
check that could be improved.

Regards,
Kevin Bowling