-
Notifications
You must be signed in to change notification settings - Fork 92
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
add sdcard image with EFI partition #63
Conversation
Can you explain a bit why/if this is necessary? I'd prefer continuing to have a single image per board in the releases and leaving the partitioning up to the user. Predefined 300 MB ESP can be either too small or just wasted space, depending on each one's use case. Multiple images are also going to confuse some folks. |
The 300MB EFI partition is not necessary. But I want to create a partition to protect the uefi firmware so that installer will not overwrite the firmware. The current efi firmware has a 8MB partition, but that size is not enough to cover all the firmware. |
I don't see why it would overwrite the firmware. The entire image ends at offset 0x7EFFFF (8323071), while the 8 MB partition ends at 0x8FFE00 (9436672). Has this happened to you? |
I earsed my tf card and flashed the current spi nor image to it. I can see a 8MB partiton with name |
|
I can't see the 8MB partition because I'm using dd to flash the image to sd card. If I flash the image by balenaEtcher on windows I can boot see the partition. |
@amazingfate This makes perfect sense to me and would really nice in fact. Ive spent many hours trying to boot this from sdcard that the author indicates can be done and that instructions are provided on the install page but then the only instructions say just 'flash it' but not how. dd, the gold standard for writing images to stuff yields a unbootable and unpartitioned disk from linux/opi5+ so Im left to guess and guess . balena etcher on linux yields the same and i dont have windows to try it on. |
This PR is not perfect. It doesn't have EFI var support so you can't store anything. You can try the latest nightly build which has a 8MB partition. |
Don't lose hope, I can report success ! I had planned for a few days to try WoR on my Orange PI 5+, and I was lucky enough to test this today for my first try, with the latest nightly build. I say almost right away, because first, I only had to find which of my usb3 hubs would let my "Windows install" usb stick be detected. I had the best result with one connected to the USB-C port. (after that, I mostly had problems to complete the Windows setup, I had to to reflash the sitck, and tried different things to get rid of some blocking "oobe" stuff...until it worked) It took me the whole day to complete the Windows install, but as I'm writing these words, I finally reached the WoA desktop (with keyboard, mouse and unstable usb ethernet) at last. Anyway, the UEFI part worked like a breath, so many thanks to @mariobalanica (and @amazingfate for this thread). Keep up the good work Mario ! |
We can flash this image to sdcard or emmc so that we can install system on itself later.