-
Notifications
You must be signed in to change notification settings - Fork 98
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
Is it possible to get to the Bios with this fake keyboard? #21
Comments
BIOS worked for me |
Thank you, that is useful information. Can you let me know your mainboard model and Pi0 build?
So I can do the rest to find out the differences between our configurations. |
Pi0: Linux raspberrypi 4.4.50+ #970 Mon Feb 20 19:12:50 GMT 2017 armv61 GNU/Linux Motherboard: ASRock X299 Taichi LGA 2066 Intel X299 SATA 6Gb/s USB 3.1 ATX Intel Motherboard |
Thanks a lot! I have ordered additional SD card for Pi Zero so will try this image and some different computers. |
How are you powering the Pi0? Is it a Pi0 or Pi0w? If you power everything except the PC up, wait for Pi booting, then turn on PC from cold, does that work? |
This is v1.3 Pi0. It's based on Readme.md: I'm using USB serial cable from Pi3 to Pi0 (4) pins. It can be powered from this source. Also I have USB cable from Pi0 data port to PC. I do not understand this port concept, but based on my checks it's powering Pi Zero. So it's not only for data transferring, but powering as well, in my case. Rubber duck debugging, it's sorted! I was not able to get to BIOS after longer shutdown as you suggested, but I have noticed that USB is still powered from PC when it's turned off. So thanks for help to came to idea that I have to enable ERP/EUP in BIOS to not supply USB power. So all issues are gone! I'm able to get to the BIOS and restart any device remotely without crashing/affecting Pi Zero. |
Glad you got it working though I wanted to check my knowledge against @Fmstrat that the “port concept” you don’t understand concerning the PC-Pi0 connection is for the HID emulation (i.e. you are correct when you said “data transfer”). Though, I can’t say I completely understand the way Pi’s handle power because my Pi3 can somehow run off of an HDMI!!! |
Yes, I have noticed this as well related with HDMI to USB powering. I have finished this project and left this device abroad so wanted to share what I've tried in terms of this issue. For sure, all the issues are sorted. In terms of PC-Pi0 connection, I tried to cut 'red' wire and it passed some restart tests, but found some issue so I'm staying with ERP enabled in BIOS and using all wires. As @Fmstrat suggested it's also possible to boot Pi Zero faster comparing with the mainboard, which is waiting for "F2" or "Delete" to be pressed. Note that Pi Zero and PC start to boot at the same time and I'm manually attached via serial console. Just in case, I have routed Pi3 -> Pi0 serial cable (red wire) through relay so I'm able to restart Pi0 Zero remotely if any issues. |
I have the same problem here - all of the machines I've connected up aren't taking input during bios POST, or even until the OS has fully booted, so accessing OS rescue modes and so on is off limits also. Not sure what else I can do here, is there some BIOS setting that'll help? The boxes are all older, but not that old. A regular USB keyboard works in the BIOS. Is there something in the Pi0 USBHID configuration that could be tweaked? I've got all the Pis and the vidcap powered separately via a powered hub. |
Check if you have ErP or EuP enabled in APM section. Usually, it's not by default. I follow this procedure:
As you see in steps 3 and 4, I'm able to disconnect keyboard and turn off Pi0 remotely because I routed these wires through separate relay's channels. I believe that main issue is that your Pi0 is powered from your machine through USB. So for some people BIOS is waiting less time than Pi0 is able to boot up. Theoretically faster storage on Pi0 could solve this issue, if it would be very fast. So in real world I don't think this is the solution. I had to go through these 7 steps to make sure 100% that I will be able to reach BIOS remotely. |
Hey, thanks for replying. I checked and only one of the machines has an option for EuP, and it's disabled. the others have basic APM stuff. I'll try turning that off I guess. As I mentioned in my post, I'm powering the Pi3, Pi0s and the Vidcap dongle from separate power sources, so I don't think that's the issue. |
If I understand correctly usually Pi0 is powered from the source which was connected first. So there should be a possibility that your machine powers Pi0 through USB as any normal keyboard in the world, because it may reached Pi0 first than normal power source. It may not. You can see how this works by attaching to serial mode EuP may help you so it's worth to test that machine. If there is no luck, I would still play with cables attached to Pi0 (USB and power cable) and powering your machine on/off. Your Pi0 is maybe crashing or rebooting at some event I'm trying to brainstorm and I do not know about fast boot, but maybe it can delay bios loading which is quick thing to try as well. If there is no luck, I'm out of ideas. I would try different laptops or PCs that I have to confirm that Pi0 keyboard cannot talk with any BIOS. Then you can focus on Pi0 configuration/build. Not all Jessie builds are good. |
Well, I wondered if perhaps it had more to do with the USB virtual keyboard device driver that the Pi0 presents itself as to the host. Perhaps it's not quite emulating 'legacy' USB keyboard devices. I regularly use a ~8 year old USB keyboard with these machines and they work great. |
Just to not expect an answer from me for your plan, unfortunately I didn't get deeper into driver issue. In my case I have solved this issue for hardware which is not older than 3 years. |
Hi,
I have noticed that this "fake keyboard" is not working when the computer is rebooting and I press "F2".
If I press "F2" with normal keyboard, then after a moment this "fake keyboard" becomes available.
So Raspberry Pi0 is not able to get to the BIOS, but able to manage it later if someone pressed "F2". This is a bit disappointing that it needs just one step to get there.
Do you guys can confirm that BIOS worked for you? Maybe this related with Raspberry Pi0 powering? (so Pi0 power is interrupted by the computer during reset moment)
It will be really helpful at least to know whether this issue is specific to my hardware/case so you can get to BIOS or similar base remotely.
The text was updated successfully, but these errors were encountered: