rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Sun Nov 17, 2019 4:23 pm

PhilE,

I am using Raspian Buster Lite on the CM3 plus and unfortunately raspi-gpio is not installed by default and since I have no wifi I can not install it manually.

Using

Code: Select all

dtoverlay=sdio,sdio_overclock=10,gpios_34_39
I get

Code: Select all

sudo dmesg | grep -F "mmc1" 

[    2.090713] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[    2.101887] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.122379] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[    2.228016] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[    2.240000] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
[    2.472286] mmc1: new high speed SDIO card at address 0001
Looks like the mmc1 interface gets UP but no wifi interface appears

Code: Select all

> iwconfig
lo   no wireless extension

> cat /etc/network/interfaces.d

auto wlan0

allow-hotplug wlan0
iface wlan0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Is there a way to install "raspi-gpio" manually with no network connection?
How to check the health or status of mcc1 sdio connection using command line?

Thanks

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Mon Nov 18, 2019 2:57 pm

If you have access to another Pi, `raspi-gpio` can be copied from there onto the CM3+ by mounting the partitions over USB.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Thu Nov 21, 2019 1:36 am

PhilE,

This is pinout settings

Code: Select all

>raspi-gpio get

BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT
GPIO 1: level=1 fsel=0 func=INPUT
GPIO 2: level=1 fsel=0 func=INPUT
GPIO 3: level=1 fsel=0 func=INPUT
GPIO 4: level=1 fsel=0 func=INPUT
GPIO 5: level=1 fsel=0 func=INPUT
GPIO 6: level=1 fsel=0 func=INPUT
GPIO 7: level=1 fsel=0 func=INPUT
GPIO 8: level=1 fsel=0 func=INPUT
GPIO 9: level=0 fsel=0 func=INPUT
GPIO 10: level=0 fsel=0 func=INPUT
GPIO 11: level=0 fsel=0 func=INPUT
GPIO 12: level=0 fsel=0 func=INPUT
GPIO 13: level=0 fsel=0 func=INPUT
GPIO 14: level=1 fsel=4 alt=0 func=TXD0
GPIO 15: level=1 fsel=4 alt=0 func=RXD0
GPIO 16: level=0 fsel=0 func=INPUT
GPIO 17: level=0 fsel=0 func=INPUT
GPIO 18: level=0 fsel=0 func=INPUT
GPIO 19: level=0 fsel=0 func=INPUT
GPIO 20: level=0 fsel=0 func=INPUT
GPIO 21: level=0 fsel=0 func=INPUT
GPIO 22: level=0 fsel=0 func=INPUT
GPIO 23: level=0 fsel=0 func=INPUT
GPIO 24: level=0 fsel=0 func=INPUT
GPIO 25: level=0 fsel=0 func=INPUT
GPIO 26: level=0 fsel=0 func=INPUT
GPIO 27: level=0 fsel=0 func=INPUT
BANK1 (GPIO 28 to 45):
GPIO 28: level=0 fsel=0 func=INPUT
GPIO 29: level=0 fsel=0 func=INPUT
GPIO 30: level=0 fsel=0 func=INPUT
GPIO 31: level=0 fsel=0 func=INPUT
GPIO 32: level=0 fsel=0 func=INPUT
GPIO 33: level=0 fsel=0 func=INPUT
GPIO 34: level=0 fsel=7 alt=3 func=SD1_CLK
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
GPIO 40: level=0 fsel=0 func=INPUT
GPIO 41: level=0 fsel=0 func=INPUT
GPIO 42: level=0 fsel=0 func=INPUT
GPIO 43: level=0 fsel=0 func=INPUT
GPIO 44: level=0 fsel=0 func=INPUT
GPIO 45: level=0 fsel=0 func=INPUT
BANK2 (GPIO 46 to 53):
GPIO 46: level=1 fsel=0 func=INPUT
GPIO 47: level=1 fsel=1 func=OUTPUT
GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3

Code: Select all

dmesg | grep -F "brcmfmac"

[    6.376107] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.388147] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.388870] usbcore: registered new interface driver brcmfmac
[    6.672453] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.688188] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04

Code: Select all

iwconfig

wlan0     IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Thu Nov 21, 2019 9:37 am

Those logs all look reasonable, with no obvious errors. iwconfig has even detected the wlan0 interface. Can you scan for and connect to an AP now?

Looking back at your previous posts I noticed this:

Code: Select all

> cat /etc/network/interfaces.d

auto wlan0

allow-hotplug wlan0
iface wlan0 inet dhcp
   wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
On my Stretch image, "/etc/network/interfaces.d" is an empty directory, and "/etc/network/interfaces" is a file that basically just says "source-directory /etc/network/interfaces.d". You appear to have a file called "/etc/network/interfaces.d", which looks wrong.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Thu Nov 21, 2019 11:38 am

PhilE,

After modifying the /etc/network/interfaces file I get :

Code: Select all

sudo cat /etc/network/interfaces

# interfaces(5) file used by ifup(8) and ifdown(8)  Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:

source-directory /etc/network/interfaces.d

Code: Select all

sudo cat /etc/wpa_supplicant/wpa_supplicant.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1

country=US
network={
   ssid="MYSSID"
   psk="MYPASSWORD"
   key_mgmt=WPA-PSK
}

Code: Select all

sudo dmesg | grep -F "brcmfmac"

[    6.818018] brcmfmac: F1 signature read @0x18000000=0x15264345
[    6.835367] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    6.835780] usbcore: registered new interface driver brcmfmac
[    7.145619] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[    7.181088] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[    9.187831] brcmfmac: brcmf_sdio_isr: failed backplane access
[    9.222723] brcmfmac: brcmf_sdio_bus_sleep: error while changing bus sleep state -84
[   11.671718] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[   11.671803] brcmfmac: brcmf_sdio_readshared: unable to obtain sdpcm_shared info: rv=-84 (addr=0x0)
[   11.671816] brcmfmac: brcmf_cfg80211_reg_notifier: Firmware rejected country setting
[   11.675323] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.675651] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.675967] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.676245] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[   11.676341] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.676657] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.676973] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.677268] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[   11.677360] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.677678] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.677994] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.678269] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[   11.678358] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.678672] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.678990] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.679269] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[   11.679355] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.679679] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.679997] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.680276] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[   11.680298] brcmfmac: brcmf_p2p_set_firmware: failed to update device address ret -84
[   11.680376] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.680690] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.681007] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[   11.681283] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[   11.681299] brcmfmac: brcmf_p2p_create_p2pdev: set p2p_disc error
[   11.681310] brcmfmac: brcmf_cfg80211_add_iface: add iface p2p-dev-wlan0 type 10 failed: err=-84
[   11.712728] brcmfmac: brcmf_sdio_bus_sleep: error while changing bus sleep state -84

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Thu Nov 21, 2019 11:54 am

That looks a lot like a signal integrity problem - what SD clock speed is this set to? 50MHz (even 25MHz) with anything other than very short wires is challenging.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Mon Dec 02, 2019 12:43 pm

Hi PhilE,

Sorry for taking long time to get back to you.

You are right We have a signal integrity problem caused by using a breadboard and some long wiring as a part of the hardware test setup.

I will let you know once We solve this signal problem .

Thanks

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Fri Dec 06, 2019 1:25 am

PhilE,

We are making a PCB board that should solve the signal integrity problem We are having with our WiFi/Bluetooth development board.

Once is ready I will test your suggestions to make the SDIO interface work on pins 34-39.

One more question if appropriate.
We are using UART0 on pins 30 to pin 33 ( tx,rx,cts,rts) for the Bluetooth interface.
How to use the other Uart on pins 40 (TXD) and pin 41(RXD) at the user space?


Thank you.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Fri Dec 06, 2019 7:29 am

Have a go with:

Code: Select all

dtoverlay=uart1,txd1_pin=40,rxd1_pin=41

smaddox
Posts: 9
Joined: Wed Oct 30, 2019 2:58 pm

Re: CM3 Plus and WiFi/BT CYW43455

Tue Jan 14, 2020 3:18 pm

Hi rlev - I'm curious if you did this work using Murata's Type 1MW or you built your own with the CY43455? I am heading down the path of the Type 1MW and wanted to know how others have gone about adding wifi to the CM3.

thx - sean

Killertechno
Posts: 192
Joined: Wed Jan 02, 2013 8:28 am

Re: CM3 Plus and WiFi/BT CYW43455

Wed Jan 15, 2020 8:58 am

Hi guys, just a little OT talking about SDIO wireless cards: there are several SDIO (4 data lines) devices available on the market, is there available a list of compatible hardware successfully working from forum user's experiences?
I wasted so much time to design board with SDIO wireless card, then I discovered it wasn't compatible with OS.
Thanks.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Thu Jan 16, 2020 2:16 am

Hi @smaddox

I am indeed using the Murata Type 1MW.
The module is recognized by the CM3 but I am having issues with signal integrity :(
We are developing our own board based on the Murata module.
When I get my hands on it I will do a final test.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Sun Jan 19, 2020 9:54 pm

@PhilE

I have added

Code: Select all

dtoverlay=uart1,txd1_pin=40,rxd1_pin=41
to /boot/config.txt but looks like the uart1 is not being assigned to pins 40 and 41.

Code: Select all

raspi-gpio get
shows

Code: Select all

pi@raspberrypi:~ $ raspi-gpio get | more
BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT
GPIO 1: level=1 fsel=0 func=INPUT
GPIO 2: level=1 fsel=0 func=INPUT
GPIO 3: level=1 fsel=0 func=INPUT
GPIO 4: level=1 fsel=0 func=INPUT
GPIO 5: level=1 fsel=0 func=INPUT
GPIO 6: level=1 fsel=0 func=INPUT
GPIO 7: level=1 fsel=0 func=INPUT
GPIO 8: level=1 fsel=0 func=INPUT
GPIO 9: level=0 fsel=0 func=INPUT
GPIO 10: level=0 fsel=0 func=INPUT
GPIO 11: level=0 fsel=0 func=INPUT
GPIO 12: level=0 fsel=0 func=INPUT
GPIO 13: level=0 fsel=0 func=INPUT
GPIO 14: level=0 fsel=0 func=INPUT
GPIO 15: level=1 fsel=0 func=INPUT
GPIO 16: level=0 fsel=0 func=INPUT
GPIO 17: level=0 fsel=0 func=INPUT
GPIO 18: level=0 fsel=0 func=INPUT
GPIO 19: level=0 fsel=0 func=INPUT
GPIO 20: level=0 fsel=0 func=INPUT
GPIO 21: level=0 fsel=0 func=INPUT
GPIO 22: level=0 fsel=0 func=INPUT
GPIO 23: level=0 fsel=0 func=INPUT
GPIO 24: level=0 fsel=0 func=INPUT
GPIO 25: level=0 fsel=0 func=INPUT
GPIO 26: level=0 fsel=0 func=INPUT
GPIO 27: level=0 fsel=0 func=INPUT
BANK1 (GPIO 28 to 45):
GPIO 28: level=0 fsel=0 func=INPUT
GPIO 29: level=0 fsel=0 func=INPUT
GPIO 30: level=0 fsel=7 alt=3 func=CTS0
GPIO 31: level=0 fsel=7 alt=3 func=RTS0
GPIO 32: level=1 fsel=7 alt=3 func=TXD0
GPIO 33: level=1 fsel=7 alt=3 func=RXD0
GPIO 34: level=1 fsel=7 alt=3 func=SD1_CLK
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
GPIO 40: level=0 fsel=0 func=INPUT
GPIO 41: level=0 fsel=0 func=INPUT
GPIO 42: level=0 fsel=0 func=INPUT
GPIO 43: level=0 fsel=0 func=INPUT
GPIO 44: level=0 fsel=0 func=INPUT
GPIO 45: level=0 fsel=0 func=INPUT
BANK2 (GPIO 46 to 53):
GPIO 46: level=1 fsel=0 func=INPUT
GPIO 47: level=1 fsel=1 func=OUTPUT
GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3
Any hints?

Thank you.

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Sun Jan 19, 2020 10:27 pm

Either "sudo vcdbg log msg" or "dmesg -l err" should give a clue.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Tue Jan 21, 2020 12:17 pm

@PhilE,

I have added next line to the config.txt :

Code: Select all

#uart1
dtoverlay=uart1,txd1_pin=40,rxd1_pin=41
enable_uart=1
After reboot

Code: Select all

raspi-gpio get
shows :

Note pins 14-15 and 40-41 both looks like being set for UART1 (tx,rx pins)

Code: Select all

pi@raspberrypi:~ $ raspi-gpio get

BANK0 (GPIO 0 to 27):
GPIO 0: level=1 fsel=0 func=INPUT
GPIO 1: level=1 fsel=0 func=INPUT
GPIO 2: level=1 fsel=0 func=INPUT
GPIO 3: level=1 fsel=0 func=INPUT
GPIO 4: level=1 fsel=0 func=INPUT
GPIO 5: level=1 fsel=0 func=INPUT
GPIO 6: level=1 fsel=0 func=INPUT
GPIO 7: level=1 fsel=0 func=INPUT
GPIO 8: level=1 fsel=0 func=INPUT
GPIO 9: level=0 fsel=0 func=INPUT
GPIO 10: level=0 fsel=0 func=INPUT
GPIO 11: level=0 fsel=0 func=INPUT
GPIO 12: level=0 fsel=0 func=INPUT
GPIO 13: level=0 fsel=0 func=INPUT
GPIO 14: level=1 fsel=2 alt=5 func=TXD1
GPIO 15: level=1 fsel=2 alt=5 func=RXD1
GPIO 16: level=0 fsel=0 func=INPUT
GPIO 17: level=0 fsel=0 func=INPUT
GPIO 18: level=0 fsel=0 func=INPUT
GPIO 19: level=0 fsel=0 func=INPUT
GPIO 20: level=0 fsel=0 func=INPUT
GPIO 21: level=0 fsel=0 func=INPUT
GPIO 22: level=0 fsel=0 func=INPUT
GPIO 23: level=0 fsel=0 func=INPUT
GPIO 24: level=0 fsel=0 func=INPUT
GPIO 25: level=0 fsel=0 func=INPUT
GPIO 26: level=0 fsel=0 func=INPUT
GPIO 27: level=0 fsel=0 func=INPUT
BANK1 (GPIO 28 to 45):
GPIO 28: level=0 fsel=0 func=INPUT
GPIO 29: level=0 fsel=0 func=INPUT
GPIO 30: level=1 fsel=7 alt=3 func=CTS0
GPIO 31: level=1 fsel=7 alt=3 func=RTS0
GPIO 32: level=1 fsel=7 alt=3 func=TXD0
GPIO 33: level=1 fsel=7 alt=3 func=RXD0
GPIO 34: level=0 fsel=7 alt=3 func=SD1_CLK
GPIO 35: level=1 fsel=7 alt=3 func=SD1_CMD
GPIO 36: level=1 fsel=7 alt=3 func=SD1_DAT0
GPIO 37: level=1 fsel=7 alt=3 func=SD1_DAT1
GPIO 38: level=1 fsel=7 alt=3 func=SD1_DAT2
GPIO 39: level=1 fsel=7 alt=3 func=SD1_DAT3
GPIO 40: level=1 fsel=2 alt=5 func=TXD1
GPIO 41: level=1 fsel=2 alt=5 func=RXD1
GPIO 42: level=0 fsel=0 func=INPUT
GPIO 43: level=0 fsel=0 func=INPUT
GPIO 44: level=0 fsel=0 func=INPUT
GPIO 45: level=0 fsel=0 func=INPUT
BANK2 (GPIO 46 to 53):
GPIO 46: level=1 fsel=0 func=INPUT
GPIO 47: level=1 fsel=1 func=OUTPUT
GPIO 48: level=0 fsel=4 alt=0 func=SD0_CLK
GPIO 49: level=1 fsel=4 alt=0 func=SD0_CMD
GPIO 50: level=1 fsel=4 alt=0 func=SD0_DAT0
GPIO 51: level=1 fsel=4 alt=0 func=SD0_DAT1
GPIO 52: level=1 fsel=4 alt=0 func=SD0_DAT2
GPIO 53: level=1 fsel=4 alt=0 func=SD0_DAT3

But when I try a python script using pins 40-41 the uart port does not seems to work :(

Next are the errors message logs :

Code: Select all

pi@raspberrypi:~ $ sudo vcdbg log msg
002220.922: brfs: File read: /mfs/sd/config.txt
002222.034: brfs: File read: 1927 bytes
002232.709: HDMI:EDID error reading EDID block 0 attempt 0
002234.012: HDMI:EDID error reading EDID block 0 attempt 1
002235.304: HDMI:EDID error reading EDID block 0 attempt 2
002236.599: HDMI:EDID error reading EDID block 0 attempt 3
002237.892: HDMI:EDID error reading EDID block 0 attempt 4
002239.187: HDMI:EDID error reading EDID block 0 attempt 5
002240.480: HDMI:EDID error reading EDID block 0 attempt 6
002241.775: HDMI:EDID error reading EDID block 0 attempt 7
002243.068: HDMI:EDID error reading EDID block 0 attempt 8
002244.363: HDMI:EDID error reading EDID block 0 attempt 9
002245.420: HDMI:EDID giving up on reading EDID block 0
002245.778: HDMI:EDID error reading EDID block 0 attempt 0
002247.077: HDMI:EDID error reading EDID block 0 attempt 1
002248.375: HDMI:EDID error reading EDID block 0 attempt 2
002249.673: HDMI:EDID error reading EDID block 0 attempt 3
002250.972: HDMI:EDID error reading EDID block 0 attempt 4
002252.271: HDMI:EDID error reading EDID block 0 attempt 5
002253.569: HDMI:EDID error reading EDID block 0 attempt 6
002254.867: HDMI:EDID error reading EDID block 0 attempt 7
002256.165: HDMI:EDID error reading EDID block 0 attempt 8
002257.463: HDMI:EDID error reading EDID block 0 attempt 9
002258.525: HDMI:EDID giving up on reading EDID block 0
002272.059: brfs: File read: /mfs/sd/config.txt
002273.147: gpioman: gpioman_get_pin_num: pin DISPLAY_SDA not defined
002273.222: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
002283.327: gpioman: gpioman_get_pin_num: pin BT_ON not defined
002283.393: gpioman: gpioman_get_pin_num: pin WL_ON not defined
002316.380: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined
002316.475: *** Restart logging
002316.537: brfs: File read: 1927 bytes
002319.350: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
002320.655: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
002321.954: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
002323.254: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
002324.553: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
002325.852: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
002327.151: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
002328.450: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
002329.749: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
002331.048: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
002332.111: hdmi: HDMI:EDID giving up on reading EDID block 0
002332.480: hdmi: HDMI:EDID error reading EDID block 0 attempt 0
002333.784: hdmi: HDMI:EDID error reading EDID block 0 attempt 1
002335.087: hdmi: HDMI:EDID error reading EDID block 0 attempt 2
002336.390: hdmi: HDMI:EDID error reading EDID block 0 attempt 3
002337.693: hdmi: HDMI:EDID error reading EDID block 0 attempt 4
002338.996: hdmi: HDMI:EDID error reading EDID block 0 attempt 5
002340.299: hdmi: HDMI:EDID error reading EDID block 0 attempt 6
002341.602: hdmi: HDMI:EDID error reading EDID block 0 attempt 7
002342.906: hdmi: HDMI:EDID error reading EDID block 0 attempt 8
002344.209: hdmi: HDMI:EDID error reading EDID block 0 attempt 9
002345.275: hdmi: HDMI:EDID giving up on reading EDID block 0
002345.618: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
002345.682: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead
002347.286: brfs: File read: /mfs/sd/cmdline.txt
002347.376: Read command line from file 'cmdline.txt':
002347.435: 'console=serial0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait'
002347.740: gpioman: gpioman_get_pin_num: pin CAMERA_0_SDA_PIN not defined
002347.803: gpioman: gpioman_get_pin_num: pin CAMERA_0_SCL_PIN not defined
002347.864: gpioman: gpioman_get_pin_num: pin CAMERA_0_I2C_PORT not defined
002347.949: brfs: File read: 121 bytes
002352.027: brfs: File read: /mfs/sd/bcm2710-rpi-cm3.dtb
002352.094: Loading 'bcm2710-rpi-cm3.dtb' to 0x100 size 0x62bd
002489.406: brfs: File read: 25277 bytes
002491.274: brfs: File read: /mfs/sd/config.txt
002491.911: dtparam: audio=on
002510.857: brfs: File read: 1927 bytes
002518.188: brfs: File read: /mfs/sd/overlays/sdio.dtbo
002539.882: Loaded overlay 'sdio'
002539.940: dtparam: sdio_overclock=25
002540.723: dtparam: gpios_34_39=true
002605.824: brfs: File read: 1889 bytes
002608.804: brfs: File read: /mfs/sd/overlays/cm-bt.dtbo
002620.639: Loaded overlay 'cm-bt'
002678.145: brfs: File read: 1049 bytes
002683.614: brfs: File read: /mfs/sd/overlays/uart1.dtbo
002696.225: Loaded overlay 'uart1'
002696.281: dtparam: txd1_pin=40
002696.796: dtparam: rxd1_pin=41
004530.632: brfs: File read: 980 bytes
005007.820: brfs: File read: /mfs/sd/kernel7.img
005007.886: Loading 'kernel7.img' to 0x8000 size 0x5108a0
005007.960: Device tree loaded to 0x2eff9700 (size 0x68ae)
005009.804: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined
006404.077: vchiq_core: vchiq_init_state: slot_zero = 0xfad80000, is_master = 1
011706.227: brfs: File read: 5310624 bytes
011711.365: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined
011711.443: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined
011711.542: gpioman: gpioman_get_pin_num: pin FLASH_0_ENABLE not defined
011711.608: gpioman: gpioman_get_pin_num: pin FLASH_0_INDICATOR not defined

Code: Select all

dmesg -l err 
Does not shows anything


Thanks

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Tue Jan 21, 2020 12:38 pm

Multiply mapping alternate functions often fails - output only pins are usually OK, but for input pins it goes horribly wrong. This is important because the firmware has always had mechanisms to enable the correct UART alt function if enable_uart=1, a task which is straightforward until DT overlays try to move the UARTs elsewhere. To that end, there is some clever logic in the firmware to avoid multiply mapping the UARTs, but until October 2019 it wasn't clever enough.

I believe that if you update your firmware ("sudo apt update && sudo apt install raspberrypi-bootloader") then your problem will go away.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Wed Jan 22, 2020 12:50 am

@PhilE,

I use a CM3 Plus with 8GB eMMC.
Got these messages :

Code: Select all

pi@raspberrypi:~ $ sudo apt update && sudo apt install raspberrypi-bootloader
Get:1 http://archive.raspberrypi.org/debian buster InRelease [25.2 kB]
Err:1 http://archive.raspberrypi.org/debian buster InRelease
  Error writing to output file - write (28: No space left on device) [IP: 46.235.231.111 80]
Get:2 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
Err:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
  Error writing to the file - write (28: No space left on device) [IP: 93.93.128.193 80]
Reading package lists... Done
Building dependency tree
Reading state information... Done
65 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Failed to fetch http://raspbian.raspberrypi.org/raspbian/dists/buster/InRelease  Error writing to the file - write (28: No space left on device) [IP: 93.93.128.193 80]
W: Failed to fetch http://archive.raspberrypi.org/debian/dists/buster/InRelease  Error writing to output file - write (28: No space left on device) [IP: 46.235.231.111 80]
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0
The following packages will be upgraded:
  libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc libraspberrypi0 raspberrypi-bootloader
5 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
Need to get 38.7 MB of archives.
After this operation, 2,048 B of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.

Code: Select all

pi@raspberrypi:~ $ df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root        29G   29G     0 100% /
devtmpfs        459M     0  459M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M  6.2M  457M   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1  253M   52M  201M  21% /boot
tmpfs            93M     0   93M   0% /run/user/1000

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Wed Jan 22, 2020 9:22 am

You need to free up some space, then retry the update.

rlev
Posts: 40
Joined: Sat Dec 15, 2018 2:20 pm

Re: CM3 Plus and WiFi/BT CYW43455

Mon Jan 27, 2020 12:44 pm

@PhilE,

After the update the uart now is recognized in the right pins.

Thanks

PhilE : I have a question regarding a LCD being used in this same CM3 board. Should I ask here or create a new thread?

PhilE
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 2539
Joined: Mon Sep 29, 2014 1:07 pm
Location: Cambridge

Re: CM3 Plus and WiFi/BT CYW43455

Mon Jan 27, 2020 1:12 pm

Create a new thread for each new issue, please. It makes it easier for us to track open issues, and it avoids spamming anybody who was only interested in the original topic.

Return to “Compute Module”