Raspberry Pi3 wishes, issues, observations

It is great to be able to play aarch64 on my Pi3 - kudos to the OpenSUSE folk who got things this far :good:

Some things I wish I could get to work, could be my stupidity:

  1. Sound - either audio jack or hdmi but AFAIK neither are possible yet? Certainly during boot/dmesg there is nothing promising and Yast/Sound shows no device loaded.

  2. Arguably related but there is nothing aarch64 in Packman which is a shame

  3. DMA (& overclocking, dtparam=sd_overclock=100) for the mmc. Mine is being forced to PIO with a card that will happily run overclocked DMA with Raspbian.

chris@dukla:~> dmesg | grep mmc
    0.000000] Kernel command line: BOOT_IMAGE=/boot/Image-4.4.49-16-default root=UUID=40094be6-af0e-47dd-8dd2-c44510871579 root=/dev/disk/by-id/mmc-00000_0xc274538e-part2 disk=/dev/disk/by-id/mmc-00000_0xc274538e resume=/dev/disk/by-id/mmc-00000_0xc274538e-part3 quiet splash=silent plymouth.enable=0 console=ttyS0,115200n8 console=tty quiet
    3.121770] mmc0: unable to initialise DMA channels. Falling back to PIO
    3.221737] mmc0: loaded - DMA disabled

and

chris@dukla:~> dmesg | grep sdhci
    8.114833] sdhci: Secure Digital Host Controller Interface driver
    8.114842] sdhci: Copyright(c) Pierre Ossman
    8.119699] sdhci-pltfm: SDHCI platform and OF driver helper
    8.994675] sdhci-iproc 3f300000.sdhci: No vmmc regulator found
    8.994685] sdhci-iproc 3f300000.sdhci: No vqmmc regulator found
    9.031764] mmc1: SDHCI controller on 3f300000.sdhci [3f300000.sdhci] using PIO
  1. I cannot for the life of me set the WiFI country code. The irritation starts with a log line
   13.121387] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

  • clearly /etc/wpa_supplicant/wpa_supplicant.conf is not used (I have tried setting it there) but also iw doesn’t work
chris@dukla:~> sudo iw reg get
global
country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
    (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
    (57240 - 63720 @ 2160), (N/A, 0), (N/A)

chris@dukla:~> sudo iw reg set GB
chris@dukla:~> sudo iw reg get
global
country 00: DFS-UNSET
    (2402 - 2472 @ 40), (6, 20), (N/A)
    (2457 - 2482 @ 40), (6, 20), (N/A), PASSIVE-SCAN
    (2474 - 2494 @ 20), (6, 20), (N/A), NO-OFDM, PASSIVE-SCAN
    (5170 - 5250 @ 160), (6, 20), (N/A), PASSIVE-SCAN
    (5250 - 5330 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5490 - 5730 @ 160), (6, 20), (0 ms), DFS, PASSIVE-SCAN
    (5735 - 5835 @ 80), (6, 20), (N/A), PASSIVE-SCAN
    (57240 - 63720 @ 2160), (N/A, 0), (N/A)

  1. Really irked by the attempts during boot to recover from hibernation but removing the resume= bit from Yast/etc sysconfig editor DEFAULT_APPEND doesn’t seem to help.

Any thoughts/hints/updates on progress welcome

My advice is to start separate threads with a descriptive title reflecting each issue, to help catch the attention of those who may be able to help with a specific issue. Mixing topics within the same thread like this can lead to a confusing/convoluted thread.

Agree about creating new posts for each problem you’re describing…
Although I’ve been using a different model of RPi,

In the meantime…

  1. Sound (and video) should work. Depending on what you’re testing, have you installed codecs? Did you test system sounds before maybe trying to play an audio or video file?
  2. If you’re looking for something specific, be specific. Maybe what you’re looking for is elsewhere.
  3. I haven’t looked into that personally but I have noticed that the options available in BootU can be limited… But, what are you using as a reference? One decent source (plus a lot more info) can be found at the following page
    https://en.opensuse.org/openSUSE:Raspberry_Pi#Custom_configuration:_config.txt
  4. I don’t know if it’ll work, but you can try the configuration method I posted
    https://forums.opensuse.org/showthread.php/518471-Set-wireless-regulatory-domain?p=2783750#post2783750
  5. I wouldn’t know, most of my work on the RPi is without an installed Desktop and it doesn’t appear that suspend/hibernate is implemented without a Desktop (that I’ve noticed).

TSU

Looking through my RPi bookmarks, this should also be useful for setting boot options
The following should mostly be relevant, but be aware everything at the raspberry.org site is guaranteed to work only on raspbian, YMMV for any other distro
https://www.raspberrypi.org/documentation/configuration/config-txt/README.md

And from the above link you can find your overclocking options
https://www.raspberrypi.org/documentation/configuration/config-txt/overclocking.md

TSU

OK - have started thread for 1 & 2 in Multimedia, will start one for 5 in Boot, 4 is resolved (see below) and will stick to the mmc/sdhci issue in this thread/subforum.

Seems to me the bcm2835_sdhost driver isn’t getting used in LEAP 42.2 - will post the output from Raspbian when I boot back into it to contrast with my LEAP output in 1st post.

Adding dtparam=sd_overclock=100 to config.txt in Raspbian enables the overclock, in LEAP 42.2 has no effect, I suspect because PIO mode is in use?

Good hint - crda package wasn’y installed. Installed it, then iw reg set works, thanks

By comparison from Rasbian

chris@dukla:~ $ dmesg | grep mmc    0.000000] Kernel command line: 8250.nr_uarts=1 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1080 bcm2708_fb.fbdepth=32 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3dc00000 vc_mem.mem_size=0x3f000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
    0.942195] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
    2.224778] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
    2.240310] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
    2.253955] mmc-bcm2835 3f300000.mmc: DMA channel allocated
    2.402748] mmc0: host does not support reading read-only switch, assuming write-enable
    2.429674] Waiting for root device /dev/mmcblk0p2...
    2.431217] mmc0: overclocking to 100000000Hz

    2.431296] mmc0: new high speed SDXC card at address 0001


Seems to me most significant is sdhost-bcm2835 driver loaded which isn’t happening in LEAP 42.2

Hi
No, it get’s loaded


 cat /etc/dracut.conf.d/raspberrypi_modules.conf

add_drivers+=" bcm2835-sdhost bcm2835_dma sdhci_bcm2835 dwc2 usbnet uas usb_storage usbcore usb_common "
# Workaround for Wifi
omit_drivers+=" sdhci-iproc"

The extra’s are because I boot from a USB device with Leap 42.2.

Hmm - that’s interesting. Mine was

cat /etc/dracut.conf.d/raspberrypi_modules.conf 
add_drivers+=" bcm2835-sdhost bcm2835_dma mmc_block "
# Workaround for Wifi
omit_drivers+=" sdhci-iproc"

I added sdhci_bcm2835 but it made no difference, mainly as I have no suitable module in /lib/modules/4.4.49-16-default/kernel/drivers/… (I do have bcm2835-sdhost and bcm2835_dma though.)

ps - did solve my resume aggravation by editing /etc/default/grub and generating a new /boot/grub2/grub.conf BTW

Hi
Adding isn’t enough you need to rebuild initrd as well with mkinitrd.

Should have said, yes I did mkinitrd.