How do I not enable a GPIO pin on boot up?


JamesQ
 Share

1 1

Recommended Posts

Hi,

 

I'm trying to solve a problem here. I have a Pine64so board with LTE module plugged into the USB and a battery back up. With the battery drained to 0%, the board will not boot up with the LTE module plugged into the USB port even with a microUSB power supply, because LTE is drawing too much power. But with the battery slightly charged or the LTE module unplugged it boots up just fine. I know that USB power is enabled by the u-boot, because with the Armbian SD card ejected, when I plug in the microUSB power supply, the board doesn't automatically provide power to the USB port, and the battery charges by default. So I'm trying to figure out where in the uboot code, it turns on the GPIO that controls the USB power. I assume it's really early in the code, because when it doesn't boot, I only see the prompt (via UART) "Trying to boot from MMC1" before it shuts down.

 

Thanks to the help.

 

James

Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

1 1