Deploying Yocto built images on x86
Dear list,
What do people do for deploying Yocto built images to actual x86 hardware?
I am researching how to build an appliance type Linux box on x86 hardware, but I am unclear on what are the generally accepted methods for doing that. The box would need to have a read-only rootfs, mounted in RAM, with one or more partitions for storing persistent files.
I am looking for some method, where I could bitbake a recipe, that will:
* build a FAT image for syslinux and initramfs files
* build one or more small ext3/4 partitions for persistent storage (config files, log files, etc.)
* generate a single binary image, that can be easily installed to a hard drive (via dd or other tool), and will automatically handle the various partitions, boot record, etc. on the target hard drive
The following presentation from 2006 mentions the mkimg and imgloader tools, that appear to do just that:
http://elinux.org/images/1/1b/Jordan_crouse_celf_2006.pdf
But there seems to be no mention of the mkimg / imgloader tools anywhere online. What happened to them? Are they proprietary AMD tools?
Any insights or links to good literature would be much appreciated.
Thanks very much
Markus
Quoted 4 lines · Markus Svilans
Dear list,
What do people do for deploying Yocto built images to actual x86 hardware?
That is a very open ended question :-) There is x86 hardware ranging from booting from SPI, to SD Cards, all the way up to desktops and servers...
Quoted 4 lines
I am researching how to build an appliance type Linux box on x86 hardware, but I am unclear on what are the generally accepted methods for doing that. The box would need to have a read-only rootfs, mounted in RAM, with one or more partitions for storing persistent files.
Where are you storing the image? SPI, SD, USB, SATA? Assuming SATA as you are speaking in highly general x86 terms, which typically means "PC" rather than deeply embedded.
Quoted 4 lines
I am looking for some method, where I could bitbake a recipe, that will:
* build a FAT image for syslinux and initramfs files
All the core images do that with the hddimg fs type.
Quoted 2 lines
* build one or more small ext3/4 partitions for persistent storage (config files, log files, etc.)
Core images currently do a single partition of that type.
Quoted 4 lines
* generate a single binary image, that can be easily installed to a hard drive (via dd or other tool), and will automatically handle the various partitions, boot record, etc. on the target hard drive
The mkefidisk.sh script does this now for EFI images and the WIC tool (recently added to the 1.5 release) can do this for EFI and PCBIOS type images.
Quoted 7 lines
The following presentation from 2006 mentions the mkimg and imgloader tools, that appear to do just that:
http://elinux.org/images/1/1b/Jordan_crouse_celf_2006.pdf
Quoted 8 lines
But there seems to be no mention of the mkimg / imgloader tools anywhere online. What happened to them? Are they proprietary AMD tools?
Any insights or links to good literature would be much appreciated.
OK, so the tool you are looking for is wic. Search the mailing list for specifics on the tool, and Cc Tom Zanussi (Cc'd) on questions about wic to the list (oe-core is probably the best list since the tool has been integrated there).
Signature · 3 lines
Darren Hart Intel Open Source Technology Center Yocto Project - Linux Kernel
Hi Darren,
Thanks for this, it is very informative and useful. You've been me a good number of solid leads to follow.
Quoted 3 lines
Where are you storing the image? SPI, SD, USB, SATA? Assuming SATA as you are speaking in highly general x86 terms, which typically means "PC" rather than deeply embedded.
You are right, in my case, the system will be based around an Intel Atom processor on a PC/104 motherboard, with an mSATA solid state drive. It will be more of a PC type box than a deeply embedded unit. The "one switch, one light" appliance-like behaviour is to simply usage in the field.
Quoted 4 lines
OK, so the tool you are looking for is wic. Search the mailing list for specifics on the tool, and Cc Tom Zanussi (Cc'd) on questions about wic to the list (oe-core is probably the best list since the tool has been integrated there).
Thanks for the lead.
I'll have a look at WIC and go from there.
Thanks again & best wishes
Markus