I can tell you it is possible to use wic images to flash the BIOS on an x86 board. In my case I had to create a custom bootimg-efi script to create the EFI configurations necessary for OS and BIOS flashing booting, and a custom wks to accept my parameters. I also used systemd boot to keep it in a native UEFI implementation. You'll have to increase your boot partition size to include the BIOS flash utility, and any firmwares you want to install or flash to as well as the EFI shell. I would highly suggest including dmidecode on your OS image so you can determine which version of the BIOS is installed as I wasn't able to readily check this via an EFI script. I would also recommend using systemd version 241 or later, so you can do a temporary boot to the BIOS flash option via bootctl once you've verified it needs the BIOS update.
On Tue, May 19, 2020 at 11:34 PM Mamatha Ujjapralli <[email protected]> wrote: > Thanks for your reply. > > Can you please confirm the doubts below? > 1. Can we use a wic image for firmware upgrade using the BIOS? > 2. If yes, you guys can give me suggestions how we can do firmware > upgrade using wic images(wic image having multiple partitions). > > content of my_test.wks > part /boot --source booting-efi --sourceparams="loader=grub-efi" --ondisk > sda --label msdos --active --align 1024 > part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align > 1024 > part /var --source rootfs --ondisk sda --fstype=ext4 --label data --align > 1024 > bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4 > console=ttyS0,115200 console=tty0" > > it's creating the partition but not booting even if it is not throwing any > error. > > *With Best Regards* > *Ujjapralli Mamatha* > VVDN Technologies Pvt Ltd > Cell: +91 8105284583 > Web: www.vvdntech.com > > > On Wed, May 20, 2020 at 10:51 AM Mittal, Anuj <[email protected]> > wrote: > >> On Tue, 2020-05-19 at 14:34 +0530, Mamatha Ujjapralli wrote: >> > Hi, >> > >> > I am using Apollo-lake SDK, created my own my_test.wks file its >> > creating the multiple partition but not booting with the CRB board. >> > wic create my_test -e core-image-sato >> > INFO: The new image(s) can be found here: >> > ./my_test-202005111355-sda.direct >> > The following build artifacts were used to create the image(s): >> > ROOTFS_DIR: >> > /home/mamathau/yocto_build/build/tmp/work/intel_corei7_64-poky- >> > linux/core-image-sato/1.0-r0/rootfs >> > ROOTFS_DIR["/var"]: >> > /home/mamathau/yocto_build/build/tmp/work/intel_corei7_64-poky- >> > linux/core-image-sato/1.0-r0/rootfs >> > BOOTIMG_DIR: >> > /home/mamathau/yocto_build/build/tmp/work/intel_corei7_64-poky- >> > linux/core-image-sato/1.0-r0/recipe-sysroot/usr/share >> > KERNEL_DIR: >> > /home/mamathau/yocto_build/build/tmp/deploy/images/intel-corei7-64 >> > NATIVE_SYSROOT: >> > /home/mamathau/yocto_build/build/tmp/work/corei7-64-poky-linux/wic- >> > tools/1.0-r0/recipe-sysroot-native >> > INFO: The image(s) were created using OE kickstart file: >> > /home/mamathau//yocto_build/scripts/lib/wic/canned- >> > wks/my_test_bios.wks >> > >> > Here I am having some doubts. >> > 1. What I am missing here, why wic image is not booting? >> >> It's very difficult to say why without knowing what the error is. It >> could be a problem with your wks. If the image is booting up the >> whatever is the default, then it looks like a problem with your >> setup/wks. >> >> Thanks, >> >> Anuj >> > > > *Disclaimer: **© 2020 VVDN Technologies Pvt. Ltd. This e-mail contains > PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely for the use of the > addressee(s). If you are not the intended recipient, please notify the > sender by e-mail and delete the original message. Further, you are not to > copy, disclose, or distribute this e-mail or its contents to any other > person and any such actions are unlawful.* > > > > -- > Ujjapralli Mamatha > -- Donovan Sydow | Software Manager [email protected] | 206.229.8740
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#6553): https://lists.yoctoproject.org/g/meta-intel/message/6553 Mute This Topic: https://lists.yoctoproject.org/mt/74321258/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
