Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New raspberry Pi 3 hardware revision #294

Open
strickon opened this issue Aug 19, 2018 · 11 comments
Open

New raspberry Pi 3 hardware revision #294

strickon opened this issue Aug 19, 2018 · 11 comments

Comments

@strickon
Copy link

I just got a new pi and it won't load the drivers correctly. The audio driver doesn't load. The latest pi 3 is A52082

https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md

in utils.py you are missing the new hardware revision.

    # The order of checks here is done Descending by Most Likely Model.
    if revision_hex & 0x00FFFFFF in (0x00A02082, 0x00A22082, 0x00A32082):
        model_name = RPI_3_KEY
@Ealdwulf
Copy link
Contributor

Thanks, that's really helpful 👍
The audio issue is probably because we have some products which use the PWM output for something else, so we prevent the audio driver from loading automatically until the OS is sure it is not running on one of those (otherwise it would make a horrible noise). Once it decides what product it is running on it should load it - it would make sense that the revision code woudl confuse it. Did you find that manually editting utils.py fixed the issue?

@strickon
Copy link
Author

strickon commented Aug 20, 2018 via email

@Ealdwulf
Copy link
Contributor

Depending on the OS version, it is either:
/usr/lib/python2.7/dist-packages/kano/utils/hardware.py
Or
/usr/lib/python2.7/dist-packages/kano/utils.py

@strickon
Copy link
Author

strickon commented Aug 20, 2018 via email

@Ealdwulf
Copy link
Contributor

What version of the OS are you running? (please run kanux-version to find out)
If you run sudo modprobe -i snd_bcm2835 does it start working?

@strickon
Copy link
Author

strickon commented Aug 20, 2018 via email

@strickon
Copy link
Author

Is there a fix for this beyond just adding the hardware id? That didn't seem to do it.

@radujipa
Copy link
Contributor

radujipa commented Oct 4, 2018

Hi @strickon. Sorry for the delay in getting back to you, it's been a hectic period for us.

While looking to update the revision codes and add ones for the RPi 3B+, this issue came to mind. I noticed an issue when testing said changes that kano-boards-daemon crashes:

radu@kano ~ $ systemctl --user status kano-boards -l
● kano-boards.service - Kano Boards Daemon
   Loaded: loaded (/usr/lib/systemd/user/kano-boards.service; static; vendor preset: enabled)
   Active: failed (Result: core-dump) since Thu 2018-10-04 14:06:43 UTC; 9min ago
  Process: 2084 ExecStop=/usr/bin/sudo /usr/bin/kano-boards-daemon stop (code=dumped, signal=SEGV)
  Process: 1758 ExecStartPost=/bin/sleep 3 (code=exited, status=0/SUCCESS)
  Process: 1755 ExecStart=/usr/bin/sudo /usr/bin/kano-boards-daemon (code=dumped, signal=SEGV)
 Main PID: 1755 (code=dumped, signal=SEGV)

Oct 04 14:06:36 kano sudo[2084]:   File "/usr/bin/kano-boards-daemon", line 67, in only_hope
Oct 04 14:06:36 kano sudo[2084]:     pi_hat = KanoHatLeds()
Oct 04 14:06:36 kano sudo[2084]:   File "/usr/lib/python2.7/dist-packages/kano_pi_hat/kano_hat_leds.py", line 35, in __init__
Oct 04 14:06:36 kano sudo[2084]:     self._leds.begin()
Oct 04 14:06:36 kano sudo[2084]:   File "/usr/lib/python2.7/dist-packages/neopixel.py", line 114, in begin
Oct 04 14:06:36 kano sudo[2084]:     raise RuntimeError('ws2811_init failed with code {0}'.format(resp))
Oct 04 14:06:36 kano sudo[2084]: RuntimeError: ws2811_init failed with code -1
Oct 04 14:06:43 kano systemd[1520]: kano-boards.service: Control process exited, code=dumped status=11
Oct 04 14:06:43 kano systemd[1520]: kano-boards.service: Unit entered failed state.
Oct 04 14:06:43 kano systemd[1520]: kano-boards.service: Failed with result 'core-dump'.

Then I was curious if some workarounds were still viable. Clearly not:

radu@kano ~ $ lsmod | grep "snd_bcm2835"
radu@kano ~ $ 

I suggest you try running the following as an interim solution to your problem:

sudo rm /etc/modprobe.d/snd_bcm2835_blacklist.conf && sudo reboot

@strickon
Copy link
Author

I just did the big update and saw the interim solution. It brought back audio. I tried this on both a b+ and the newer b by swapping the sd card and it worked for both of them.

@radujipa
Copy link
Contributor

radujipa commented Oct 26, 2018

@strickon Thanks for giving that a try, great to hear it worked. The real fix for OS-469 As an engineer, I want to make sure the audio driver gets loaded even in catastrophic cases will be released with the next version (v4.2.0) soon and you won't need to remove the blacklist file manually.

Unfortunately, I have noticed another problem with audio to do with switching the audio output to HDMI. In this case, the channel is switched live correctly to HDMI with Kano Settings, but after a reboot the config is lost and switched back to analogue. I suspect this was introduced when migrated to stretch, but the hardware config masked the problem.

@hahtse
Copy link

hahtse commented Nov 30, 2018

Issue still seems to persist - is the fix in the current downloadable version, yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants