/srv/irclogs.ubuntu.com/2021/08/17/#ubuntu-arm.txt

=== doko_ is now known as doko
=== Droid is now known as Mekaneck
bahamatIs this the right place to ask questions about raspberry pi?20:43
jawn-smithbahamat: sure is20:44
bahamatI've got 18.04 on a rpi3, and I want to get the wifi working. I'm pretty sure I had done this before, but I can't even detect the wifi interface now.20:46
bahamatI may have removed packages necessary for it to work sometime in the past.20:46
bahamatlshw only shows the ethernet interface.20:47
jawn-smithwhat version of linux-firmware-raspi2 do you have? You can check by running apt-cache policy linux-firmware-raspi220:47
bahamatInstalled: 1.20200601+arm64-0ubuntu2~18.04.120:48
jawn-smiththat appears to be the latest available on 18.0420:50
bahamatlshw reports the board as Raspberry Pi 3 Model B Rev 1.220:50
jawn-smithBefore we troubleshoot 18.04 further, is there a reason you don't want to upgrade to the latest LTS?20:50
bahamatI've got some stuff running on it and I don't want to spend the time to get it all set up on a new OS version.20:51
jawn-smithyou can use do-release-upgrade to upgrade your existing installation to 20.04 without having to re-install20:52
bahamatYeah, but I don't know what all will stop working if I do20:52
bahamatI do have a bunch of firmware images in /boot/firmware20:53
jawn-smithwhat's the output of lsmod | grep brcmfmac ?20:56
bahamat3 lines.20:57
bahamatbrcmfmac              311296  020:58
bahamatbrcmutil               16384  1 brcmfmac20:58
bahamatcfg80211              626688  1 brcmfmac20:58
jawn-smiththat looks right to me. How about rfkill list?20:58
bahamatno output, exit code 021:00
jawn-smithhow about 'sudo dmesg | grep mmc1'21:06
bahamatHere we go21:06
bahamatDirect firmware load for brcm/brcmfmac43430-sdio.txt failed with error -221:06
bahamatI might have bad blocks on the sd card.21:07
bahamatI also have that same error for regulatory.db21:08
jawn-smithdoes the file /lib/firmware/brcm/brcmfmac43430-sdio.txt exist on your pi?21:09
bahamatno21:09
jawn-smithinteresting, as linux-firmware-raspi2 should be the package providing that21:10
jawn-smithyou could try a 'sudo apt install --reinstall linux-firmware-raspi2'21:10
bahamataccording to packages.ubuntu.com that file is supposed to be in raspi3-firmware, which for some reason isn't installed.21:11
jawn-smithah apparently that package does exist in 18.04. You could certainly try installing that21:13
waveformnope nope, don't use raspi3-firmware. Hang on a sec, just dealing with something else, but that's the wrong step -- check "dpkg -L linux-firmware-raspi2" and you may find a hardware-specific tagged brcmfmac43430 sdio txt (e.g. with raspberrypi,3-model-b in the filenaem)21:14
waveformback in a tick21:15
jawn-smithThanks waveform, I'm not as familiar with the firmware packages in 18.0421:15
waveform(and annoyingly packages.ubuntu.com isn't going to help you there because it gets confused about commas :)21:15
waveformto be honest, I'm less than familiar with 18.04's packages despite having bumped that one myself -- just don't deal with it often enough21:16
bahamatI do have /lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,3-model-b.txt21:17
bahamatthe file looks ok21:17
bahamatit's all ascii at least21:17
waveformhmm, that's annoying -- the only 3B I've got spare is one with a fried wifi chip, so that's not going to help much...21:28
waveformbahamat, okay, so provided /proc/device-tree/compatible contains "raspberrypi,3-model-b" somewhere in it that'll be the sdio.txt it loads, but the firmware will first be trying to load "brcmfmac43430-sdio.txt", doesn't find it and whinges about it. So that's that error explained (basically, it's ignorable)21:29
jawn-smithI've got a 3B just sitting in my test environment, though it doesn't _currently_ have 18.04 on it21:29
bahamatbinary file matches21:29
waveformbahamat, can you pastebin the output of "dpkg -L linux-firmware-raspi2" and "ls -l /lib/firmware/brcm" for me? I can at least check that against a recently updated image here21:29
bahamatComing up...21:30
bahamathttps://gist.github.com/bahamat/e3f81b62ff097e1f30d8aad883a2a04721:31
bahamatjawn-smith: I'm pretty sure *I* sabotaged this somehow in the past. I just have no idea how/why/when.21:34
waveformhmm, okay -- so that matches what I've got locally, and all looks reasonable. In that case, before we go any further let's just eliminate the basic stuff: have you got a spare SD card? If so, can you flash raspbian on there, boot that and make sure the wifi appears on there. If it doesn't, your 3B may be like mine here: fried wifi chip (does happen, but fairly rarely -- the one here was "used" extensively in picademy and suffered for it :)21:34
bahamatI'm 99% certain I had wifi working on this when I originally set it up, but then changed to wired only21:34
bahamatI do have a spare SD card. I was preparing to put 20.04 on it21:35
jawn-smith+1 for testing a different distro to rule out a hardware problem21:37
jawn-smithwhether it's 20.04 or raspbian21:37
waveformokay, well raspbian lite would do (nice small image) -- I'm mostly concerned with having the pi foundation's own kernel+drivers and eliminating hardware as a possible issue before we go digging further :)21:37
bahamatI've go the image already downloaded.21:38
waveform(believe it or not, 3Bs with broken wifis otherwise operate quite happily: my blog site runs on one, although "broken wifi" is being generous there -- it's another ex-picademy one and the more accurate description would be "wifi chip missing / ripped off")21:38
bahamatOk, I'll try this. I've got a pi4 with 20.04 that's running wifi only, so I'm pretty sure that should work, short of a hardware error.21:39
waveformyes, although that's loading a totally different wifi firmware (brcmfmac43455 instead of brcmfmac43430; the 3B is the only model, other than the 0W, that uses the latter)21:39
bahamatThanks for the tips. You've probably saved me days worth of chasing down dead ends.21:40
bahamatAt this point I think I'm pretty much *expecting* hardware failure.21:40
waveformunfortunately, it's a thing :)21:41
bahamatYeah.21:41
waveformand always worth eliminating before chasing more complex threads21:41
bahamatBut hey, it would give me an excuse to buy a replacement :-D21:41
waveformheh, sure, but like I say: keep the old one, it's still useful :)21:43
waveformsorry, I've gotta drop -- had way too little sleep last night -- anyway, if hardware *doesn't* turn out to be the issue, try --reinstall on linux-firmware-raspi2 (just on the off-chance some bit got flipped on a firmware file). Then, convince jawn-smith to flash a bionic image onto his 3B and compare dmesg output for stuff containing "brcmfmac:". Finally, on the off-chance the firmware's all fine and something else is removing/disabling the 22:05
waveforminterface, check /etc/netplan and make sure only 50-cloud-init.yaml is in there and is sane22:05
jawn-smiththanks waveform, I could certainly be convinced to flash an 18.04 image if need be22:07
bahamatok, ubunu 20.04.2 came right up. wifi works.23:27
bahamatsame netplan config copied from the 18.04 sd card23:28
bahamatI stay logged in all the time, but I'm going afk for the night, so I'll be in again tomorrow to see if there's any ideas.23:32
jawn-smithwe'll be here tomorrow23:36

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!