Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Armbian build PR] - BPI-CM4: `Waveshare`: CM4-IO-BASE-B: `Fan support`

Featured Replies

  • v2: arch: arm64: dts: amlogic: meson-g12b-waveshare-cm4-io-base-b
Fan, RTC and USB support
RTC requires rtc pcf85063 driver
Fan requires hwmon emc2305 driver (new addition)
  • hwmon: emc2305: fixups for driver
The driver had a number of issues, checkpatch warnings/errors,
and other limitations, so fix these up to make it usable.

Additional:
hwmon: emc2305: Change OF properties pwm-min & pwm-max to u8
hwmon: emc2305: Add calls to initialize cooling maps

How was it tested? Built a new image with the following changes and booted to make sure it works as it should.

Inactive:

== Waveshare CM4-IO-BASE-B with BPI-CM4 Module (6.1.57-current-meson64)
CPU usage:   0
Processors:  Cortex-A53 @ 2016MHz 51°C, Cortex-A73 @ 2400MHz 53°C
Cur freq:    1000MHz 2400MHz
Fan:         0 RPM (0) <-- FAN INACTIVE
Online:      0-5
Governor:    ondemand
Memory:      3.7G 331M
Entropy:     256
Uptime:      14:12:26 up 18 min, 4 users, load average: 0.01, 0.24, 0.31

Active:

== Waveshare CM4-IO-BASE-B with BPI-CM4 Module (6.1.57-current-meson64)
CPU usage:   90
Processors:  Cortex-A53 @ 2016MHz 82°C, Cortex-A73 @ 2400MHz 82°C
Cur freq:    2016MHz 2400MHz
Fan:         3368 RPM (255) <-- FAN ACTIVE
Online:      0-5
Governor:    ondemand
Memory:      3.7G 430M
Entropy:     256
Uptime:      14:19:09 up 25 min, 4 users, load average: 1.76, 1.06, 0.64

NOTE: The temps are not as they should be as they sent me a 12V instead of a 5V fan. I decided to keep the 12V to do the testing with, as I wait for the 5V to arrive. The difference between them shouldn't change the basic functionality, only the quality of the cooling.

Checklist:

  • [ ] My code follows the style guidelines of this project
  • [ ] I have performed a self-review of my own code
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [X] My changes generate no new warnings
  • [ ] Any dependent changes have been merged and published in downstream modules

View the full article

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.