Video blank, but ShredOS booted (v2021.08.2 v19) development #59
Replies: 17 comments 10 replies
-
There's an easier way, the next version I'm testing has a working network, you will be able to telnet into ShredOS, grab the logs, even run an nwipe session on the hardware via telnet. |
Beta Was this translation helpful? Give feedback.
-
@Firminator Before a public release of v2021.08.2...., I think from a security aspect it will be a good idea to only automatically start the telnet server if you have already edited grub.cfg and appended shredos=telnetd to the kernel command line? Also updating README.md to indicate how you can make a persistent change or alternatively start and stop the telnet daemon once you are booted. On a headless system or a system like we have at the moment that has an issue with framebuffer switching/display then you could edit grub.cfg to enable telnetd and then gain access to the system. And for those that are not aware, why you shouldn't use telnet over the internet unless through a SSH tunnel or VPN. |
Beta Was this translation helpful? Give feedback.
-
I think if you can get hold of a used Lenovo Yoga 11e (Type 20HS !) with Windows (not a Chromebook) you would be able to troubleshoot pretty cheap. In the US they sell it for ~$100 ( https://www.ebay.com/itm/324189335836 ). Specs are @ https://pcsupport.lenovo.com/us/en/products/LAPTOPS-AND-NETBOOKS/THINKPAD-YOGA-SERIES-LAPTOPS/THINKPAD-YOGA-11E-4TH-GEN-TYPE-20HS-20HU This laptop exposes the oddest behaviour when using the USB image of ShredOS and the last published ISO of ShredOS depending on what combination of UEFI/LegacyBIOS and CSM setting I'm using. It really drills down to these two settings. I've seen 3 different things: I'd rather have SSH than telnet. Telnet is usually blocked by firewalls. Although I'm not sure how complicated that would be for you to implement. I hate asking for additional features. For the troubleshooting part I'd also wouldn't mind if all the logs are being saved automatically to the flash drive instead of implementing telnet or SSH. Or if there is a script that I can run manually. Like have a script included in the ISO and IMG that saves the logs and then anyone can copy the logs to a flash drive. |
Beta Was this translation helpful? Give feedback.
-
I'd revert back. The FB drivers that were added in v2020.05.018 were mostly ancient. I've seen those GPUs in the late 90s and early 2000s. I would think that they didn't do anything good really for the UEFI/CSM.screen issue. Plus I would think the behaviour of ShredOS between v017 and v018 didn't change anything for me. I still am able to use ShredOS on my main box. ANd I'm still not able to boot it on any UEFI-(only) box.
Can you just send the google drive link and share it with anyone who has the link (that email address from yesterday was ephemeral plus I haven't written down the address). I gotta go now and will grab the files later today if you choose to use google drive. Else I would create a new email address. |
Beta Was this translation helpful? Give feedback.
-
I just found something interesting on the grub efi docs,
Unfortunately it doesn't say what exactly that bug is. Any chance you could try that and see if it fixes the blank screen. |
Beta Was this translation helpful? Give feedback.
-
I added |
Beta Was this translation helpful? Give feedback.
-
I think I found the option that prevents it to boot for UEFI devices: Fast forward to the latest buildroot and it even shows that it has the EFI GOP driver included. EFIFB can use this ( https://www.kernel.org/doc/html/latest/fb/efifb.html ) and you have EFIFB enabled. Of course this is all theory. I haven't tested it. But it sounds about right. |
Beta Was this translation helpful? Give feedback.
-
The efi_gop module is interesting, I'll include that in the build as well. |
Beta Was this translation helpful? Give feedback.
-
Also adding in |
Beta Was this translation helpful? Give feedback.
-
I've found I missed some settings related to EFI in the processor type section, specifically
These were set in all my previous builds but not set with the 5.13 kernel build. |
Beta Was this translation helpful? Give feedback.
-
Which then made the setting below appear in
|
Beta Was this translation helpful? Give feedback.
-
👍 for all these findings What about splitting up the compilation of the ISO and USB images into LegacyBIOS and UEFI? This would be double the time compiling, but any changes would NOT affect the other build reducing the complexity of troubleshooting. |
Beta Was this translation helpful? Give feedback.
-
This may prove useful in future builds, looks like from buildroot
This wasn't possible before so that that will be interesting to see how flexible that is and whether it would simplify simultaneously building legacy and EFi bootable systems, using buildroot rather than the post processing that's currently done in ShredOS to produce the same result.
Yes, I also prefer branches for submitting PRs like we do in nwipe. So yes rather than commit to the master like I currently do (A bad habit I've got into) I should really commit to a branch for testing first. Problem is, I would imagine the majority don't build from source but want the .img / .iso I'm not sure how that would fit in with branches. Alternatively the development build could be a completely different repository (as it currently is for the 5.13 kernel build) Anything that makes things easier and less time consuming. :) |
Beta Was this translation helpful? Give feedback.
-
@Firminator Can you give this a try. This is the development build with a 5.13 kernel based on buildroot 2021.08.2. It includes efi service support, it's a rebuild of the bootx64.efi code which includes the modules efi_gop, efi_uga and progress. You will notive that Recalbox no longer shows up, what you will get is the message Booting 'shredos' along with progress information as it transfers the bzimage from the USB stick. You will also find it won't boot in legacy mode with the error It boots fine on my Dell Optiplex 9020 in UEFI (1024x768x32) and also on a MAC bookPro UEFI. Resolution is crazy high on the MAC at 2880x1800x32 but it boots. What I'm interested in is whether it now boots on UEFI systems (secure boot off) where the screen was just showing Recalbox but shredos was actually running underneath. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
@Firminator Now booting in legacy and UEFI ! The issue was enabling efi_gop and efi_uga for the legacy build. Enabling efi_gop and efi_uga is only necessary when I'm rebuilding the .efi. I must document the procedure for all this as soon as possible. Also one of the reasons people may run into errors with the current released version of shredos if they try and build from source, is that I used absolute paths which are only any good if you have a identical directory structure to me which is very unlikely. This new build I've used relative paths so it will build fine where ever you choose to build it on you system. Be aware this has the telnetd daemon running so you can login to shredos from your LAN, assuming you have plugged the PC/device into a network. Shredos only supports ethernet, WiFi is not enabled. To make this more secure, I will disable telnetd from starting automatically, in the next build, unless you specifically request it by putting shredos=telnetd on the kernel command line in grub.cfg. Alternatively you could start/stop it manually. Personally I think this would be useful on a server or headless system or where your display hardware is faulty but you still want to wipe the discs without pulling the PC/laptop apart. |
Beta Was this translation helpful? Give feedback.
-
One Reason why you might get a blank screen (but shredos has actually booted) - The monitor not supporting 640x480 resolution !
The gigabyte UEFI firmware always appears to have CSM enabled with the user not being able to override. The UEFI bios seems to always default to the external Nvidia graphics card with no options to override in the UEFI firmware. To test the integrated graphics it's necessary to pull out the Nvidia card and the Intel integrated graphics then takes over. Interestingly shredos boots when secure boot is on.
Is 640x480 a resolution that the HP compaq LA2405X monitor can't display? Let's put
SUMMARY: |
Beta Was this translation helpful? Give feedback.
-
@Firminator
Could you confirm the CPU/GPU and make/model of monitor you are using on all three systems. Also UEFI details such as whether legacy or CSM is available.
I'm prepared to buy some hardware but I want to do it at minimum cost. Maybe buy the cheapest motherboard that has this same chipset.
In the meantime I'll add some scripts to this latest version which will output logs including details of the framebuffer that's in use, its resolution depth etc. To the USB stick.
Beta Was this translation helpful? Give feedback.
All reactions