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.

Setting GPIO in uboot script

Featured Replies

Hi,

We're swapping the Khadas Fenix 4.9 and uboot v2015-01?? for the Armbian 5.10.y and corresponding mainline u-boot.

In the "legacy"  version we were able to use the u-boot script (then a dedicated boot.ini) for setting a gpio pin low like this

gpio clear GPIOH_4

Unfortunately Armbian's mainline u-boot version does not recognize GPIOH_4 as a valid gpio pin name.

Anyone able to help? Did the naming change?

 

Gé

  • Author

Additional information:

Old u-boot is Khadas version "2015.01-geddbbf5", generated from Khadas Fenix

New u-boot is Armbian version "2022.01-armbian"

 

Error messages when issuing "gpio clear GPIOH_4" 

"GPIO: 'GPIOH_4' not found"

"Command 'gpio' failed: Error -22"

 

I do realise, that this was implemented in a different way with the legacy u-boot, I just wonder why it does not work with mainline.

From the include files in include/dt-bindings/gpio it seems that GPIOH_4 has been defined.

Guest
This topic is now closed to further replies.

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.