I am after a little guidance on how I would actually deploy SWupdate onto a system initially. I am building under Yocto and have successfully used meta-swupdate to build my main OS image into a swu file with a sw-description included. I have also built swupdate-image which produced a "swupdate-image.ext3.gz.u-boot" file. I also have a bzImage for my main OS image.
The hardware I want to use SWupdate on doesn't have U-boot as far as I know, but has eMMc and SD card. Usually for the main OS image I just mount loop the ext4 raw image and copy the root filesystem onto the pre-partitioned eMMc and install GRUB.
I'm struggling to figure out what the ".ext3.gz.u-boot" file is and how to use it. Is it the initramfs rescue image? How can I apply that to eMMc as well as the initial main OS alongside it?
Thanks
Yes, sorry we use BIOS/GRUB.
> > Usually for the main OS image I
> > just mount loop the ext4 raw image and copy the root filesystem onto
> > the pre-partitioned eMMc and install GRUB.
>
> Let's me guess...you have a Intel based hardware, maybe on a Quark
> processor, you have a BIOS and GRUB is your bootloader.
>
Yes, Intel Atom with BIOS/GRUB.
> >
> > I'm struggling to figure out what the ".ext3.gz.u-boot" file is and
> > how to use it. Is it the initramfs rescue image? How can I apply that
> > to eMMc as well as the initial main OS alongside it?
>
> There is something to do.
> .ext3.gz.u-boot is a ramdisk in the u-boot format. The compressed image
> is .ext3.gz (it is also built), that is .ext3.gz.u-boot without the
> initial U-Boot 64 bytes header.
>
> Then you need to add entries to your grub.cfg (if GRUB2) or menu.cfg.
> An entry should be added, setting the rootfs to the ramdisk to start
> swupdate in rescue mode.
>
So I should change swupdate-image.bb IMAGE_FSTYPES to output a different initramfs image format (cpio?)?
> The whole mechanism to switch again the rescue system using U-Boot
> environemnt work together with U-Boot and must be added to have the same
> features. I guess you can reach it modifying the default entry in the
> grub configuration file. Prepartitioning the eMMC is not a must with
> swupdate, this can be done by a preinstall script, but it depends where
> the GRUB configuration is stored.
>
In the default U-Boot setup what normally controls the "switch" or environment variable? Does SWupdate have any hard dependency on U-boot environment variables to store state?
I'm still a bit fuzzy on how the whole process works. In a BIOS/GRUB + eMMc configuration where does the rescue OS and main OS reside? Would they be on two partition on the eMMc? What is a good setup in your opinion?
Thanks
Hey aaron,
Can you just attach the .bb file how you were able to generate a .ext3.gz.u-boot i really want to know.
Thanks to help.
Regards,
Manju