SDIO slot in Atom miniPC

Hi all

I am running a custom build of Openwrt x86_64 EFI on a z83ii which is an Atom based miniPC.
This device has an internal eMMC and AP6255 WiFi which are detected ok, if I enable the ACPI SDIO support in kernel.

But this device has also a SDIO slot, which seems that does not work. If I plug a SD card in it, it is not detected.

What can be the problem? Peraphs it is required some user space action upon SD plugin?

Bye

checked lsusb ?

You probably need to load some additional modules.

It is not a USB based SDIO adapter. It is an internal PCIe one

so lspci then :wink:

This is what I get, which is somehow strange:

00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controll                          er (rev 36)
00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management C                          ontroller (rev 36)
00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36)
00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine                           (rev 36)
00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 36)
00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 36)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
root@MenionRouter:~# lsusb
Bus 002 Device 003: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter
Bus 001 Device 003: ID 0781:5583 SanDisk Corp. Ultra Fit
Bus 001 Device 002: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 004: ID 0e8d:7612 MediaTek Inc. MT7612U 802.11a/b/g/n/ac Wireless Adapter
Bus 002 Device 002: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

I mean, apparently there is no SDHCI controller but:

root@MenionRouter:~# cd /sys/class/mmc_host/
root@MenionRouter:/sys/class/mmc_host# ls
mmc0  mmc1
root@MenionRouter:/sys/class/mmc_host#

Where mmc0 is the eMMC, and mmc1 is the broadcom AP6225

once booted, put a SD card in, and then run dmesg.

SD cards usually pop up as regular drives /dev/sdX, via the scsi driver.

There is no activity in dmesg.

Also the mmc pop us as /dev/sdX only if the MMC adaptor is USB. For the real SDHCI adapter you get mmcblkx device.

It was working perfectly in UBuntu. In openwrt the SDHCI subsystem is disable by default for some reason in x86 build (need to enable it in kernel_menuconfig), but the result is partial, since as said, only eMMC and WiFi pop up

It's not PCIe.

It must be SDIO coming out of the SoC or something. It's a newer Atom.

Try checking dmesg in Ubuntu and seeing if you can identify when udev sets the device up.

Hi, may i have the firmware? I have the device and want to try it.

https://downloads.openwrt.org/releases/21.02.3/targets/x86/64/

1 Like

Hello all, can anyone help how to enabled the wifi AP6255 on z83ii ? Thanks you

dmesg and lspci would probably help.

1 Like

hello frollic, thanks for fast replay. this is my result dmesg and lspci.

#dmesg | grep brcm
[   10.354695] brcmfmac: F1 signature read @0x18000000=0x1602a94c
[   10.379449] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43340-sdio for chip BCM43340/2
[   10.391072] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43340-sdio.bin failed with error -2
[   10.401991] brcmfmac mmc1:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43340-sdio.bin
[   15.485692] usbcore: registered new interface driver brcmfmac
[   16.496747] brcmfmac: brcmf_sdio_htclk: HT Avail timeout (1000000): clkctl 0x50
#lspci
00:00.0 Host bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register (rev 36)
00:02.0 VGA compatible controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Integrated Graphics Controller (rev 36)
00:0b.0 Signal processing controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller (rev 36)
00:14.0 USB controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller (rev 36)
00:1a.0 Encryption controller: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine (rev 36)
00:1c.0 PCI bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Express Port #1 (rev 36)
00:1f.0 ISA bridge: Intel Corporation Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU (rev 36)
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

is this correct brcmfmac 43340? do you have any further instructions or tutorials?
thanks you

Do you have the matching firmware package installed?

last night i try to build x86_64 from ROOter, and i try to add bcmfmac package, but im forgot about detail. and now i got trouble on my ssd to using ubuntu.

do you mean this package?

bnx2-firmware	20201118-3	~705.2 KB	Broadcom BCM5706/5708/5709/5716 firmware	
brcmfmac-firmware-usb	20201118-3	~503.7 KB	Broadcom BCM43xx fullmac USB firmware	
kmod-bcma	5.4.158-1	~18.5 KB	Bus driver for Broadcom specific Advanced Microcontroller Bus Architecture	
kmod-bnx2	5.4.158-1	~39.6 KB	Kernel module for the BCM5706/5708/5709/5716 ethernet adapter
brcmfmac-firmware-usb	20201118-3	~503.7 KB	Broadcom BCM43xx fullmac USB firmware	
kmod-brcmfmac	5.4.158+5.10.68-1-1	~108.5 KB	Kernel module for Broadcom IEEE802.11n USB Wireless cards	
kmod-brcmsmac	5.4.158+5.10.68-1-1	~221.2 KB	Kernel module for Broadcom IEEE802.11n PCIe Wireless cards	
kmod-brcmutil	5.4.158+5.10.68-1-1	~4.2 KB	This module contains some common parts needed by Broadcom Wireless drivers brcmsmac and brcmfmac.

For R00ter, I have no idea.

do you have any other ideas? can you share the method you use to turn on the wifi? or firmware compatible with this device.