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.

Uboot to display some text message to lcd.

Featured Replies

Hi all,

 

I am using Orange Pi 0, I am trying to show some initial booting message on LCD.

I am interfacing JHD204A which is a 20x4 charecter display.Which uses HD44780 controller.

Is there a way to access Pi 0 GPIOs from Uboot? So that I want to show some initial message on L

CD while Linux gets loaded. I appreciate any inputs, thanks in advance.

Edited by blprasad
Felt the meaning is inappropriate.

  • Author

It seems API like

   
    sunxi_gpio_set_cfgpin(pin,value);
    sunxi_gpio_output();

 

seems to be working in Uboot as well as these were working in Linux, there is a dirver already included in Uboot sources.

drivers/gpio/sunxi_gpio.c for accessing gpio.Need to experiment with Uboot.

  • Author

How do I boot Orange pi 0? , with Uboot only. I am trying to modify uboot.How can I test uboot prior to loading Linux.

I mean I would like to break the booting process at uboot.

Please help me.

  • Author

 I have not tried hit any key method to stop auto boot.I have just read about it in google.I will give it a try.

  • Author

finally I am able to display text on LCD from Uboot.

sunxi_gpio_set_cfgpin(pin,value);
    sunxi_gpio_output();

are working from Uboot code, these calls are placed in pinmux.c in uboot.

   sunxi_gpio_input()  function is not present in pinmux.c so i copied it from gpio_lib.c and placed in pinmux.c 

 

thanks for inputs

 

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.