-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change boot GPIO states #5
Comments
@farfromrefug During boot first the microkernel starts (from ROM), then U-Boot, then (as it is now) after pressing you manually boot the kernel with initramsfs which then switchroots to the rootfs on the sd card. Eventually the manual intervention will go away (but currently I want always to automatically fall back to a working original image). But I think the fastest point in time to reset a gpio is in U-Boot. I don't know if you feel like patching U-Boot for this? I will be working on getting U-Boot to provide acpi tables to an acpi enabled kernel. It might be possible to get his done by providing some acpi stuff to U-Boot. As I understand U-Boot has an interpreter for that. More info here: https://edison.internet-share.com/wiki/ACPI |
@htot Yes that s what i was thinking too. I also talked with @esialb and that s what he said too. If i understand correctly the ACPI stuff is not working yet but you are working on it? Thanks |
No it works (but not everything is there yet). Andy Shevchenko works on that. I just trying to make it build with yocto. |
Ok great do you have a sample code anywhere? I or maybe I should ask @andy-shev directly? |
The acpi code is linked from here https://edison.internet-share.com/wiki/ACPI |
U-Boot does not have any ACPI interpreter. It just provides a minimum tables needed to boot a board on certain OS(es). Basically what you, @farfromrefug, need is to create a pinctrl/GPIO driver for Merrifield in U-Boot (followed by enabling of It doesn't have anything to do with ACPI per se. |
@andy-shev thanks it is what i was afraid of when i first started to look at this. |
@andy-shev Made a a little bit of research about how i could achieve this.
Now from what i have seen i can simply upgrade my u-boot without touching my kernel or linux, is that right? Thanks and sorry for all the questions |
Newer u-boot still boots the original edison image. You can read in the wiki for this repo how to upgrade. I few env variables need to be manually modified. Likely jubilinux will also still boot, otherwise you can always go back to the original u-boot. |
@htot thanks just pushed a compile uboot with success! Now i have a final question. If i want to update my "flash image" with that u-boot. Simply copying the |
That one would be used by flashall --recovery (xfstk). And of course the env still needs to be fixed up. |
@farfromrefug You need to consider pinctrl-merrifield.c and gpio-merrifield.c. |
@andy-shev thanks for the info. I will to look deeper at this. To be honest for now i have no idea on how to do this. Will dig deeper. |
@farfromrefug Have you gotten any further with this issue? If so would you like to share the result? |
To support I²C #6 @staroselskii added minimal pin control stubs. You perhaps may extend this. |
This is a U-Boot related question and since we are switched to upstream, this should be asked in official mailing list of U-Boot project. Closing here. |
Hi,
I am currently buiding the Pyro64 to test it.
One thing i would need it for is to able to change GPIO state as soon as possible.
The reason are:
Can i do that using a recipe? Could someone point me to the right way to do that?
Sorry i am new to building my own linux image
Thanks
The text was updated successfully, but these errors were encountered: