|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] How many patches are missing in upstream Linux?
Am 11.03.14 18:53, schrieb Konrad Rzeszutek Wilk: .config on its way to your email address; if you require the serial log I would need to set that up and that would probably take a bit of time.On Tue, Mar 11, 2014 at 06:38:52PM +0100, Atom2 wrote:Am 10.03.14 21:55, schrieb Jeremy Fitzhardinge: [snip] My feeling at that time was that the unpacking of the initramfs had failed and it was probably more a linux issue rather than a XEN issue - albeit the concatenated file which per the link above should be created by "cat ucode.cpio /boot/initrd-3.5.0.img >/boot/initrd-3.5.0.ucode.img" does not resemble a valid cpio archive any longer (you also can't work with it on the command line - e.g. list its content). I assume that though the kernel expects a valid cpio format file and therefore is unable to unpack and subsequently fails.It should skip the bits that it does not understand. Also on the CLI? I did another test right now:cat /boot/microcode.bin /boot/initrd-3.11.7-hardened-r1.gz > /tmp/initrd-3.11.7-hardened-r1.gz Now the initrd is prepended by the microcode. But when I do zcat /tmp/initrd-3.11.7-hardened-r1.gz | cpio -itv I get errors output from both gzip and cpio as follows: gzip: /tmp/initrd-3.11.7-hardened-r1.gz: not in gzip format cpio: premature end of archiveAnd to me that makes sense - how would gzip know how to deal with a compressed image file prepended by an uncompressed part without knowing the internal structure (i.e. at least its length). And cpio is not able to unpack because it doesn't get valid input from gzip through the pipe. Unless you say that the initrd can't be compressed - that would on the face of it probably make sense, but even then a test with cpio failed with errors. I was not aware of that and had a hard time finding a solution. Initially I thought the microcode.dat from Intel's website could be used as is.But in any case, with the additional file in multiboot it works flawlessly. The only catch is that the file distributed by Intel (the microcode.dat which is a text file) has to be converted inot a binary file (I also stripped it down to only contain the parts necessary for my CPU, but I don't know whether that's strictly necessary). And it must _NOT_ be a cpio archive in that case.You should be able to do 'cat /lib/firmware/intel_ucode/* > /boot/microcode.blob' and that would do it too. I actually downloaded the source of a tool called iucode_tool-1.0.1 (don't ask me from where) and compiled it. There are two advantages to that approach: Firstly you can build from the Intel website's microcode.dat and you don't have to wait until your distro (in my case gentoo which are usually anyways pretty quick) makes the latest code available through their regular distribution system. Secondly iucode_tool also provides an option to only extract the code required for a specific processor (defaults to the one in the PC) and thus makes the file much smaller (in my case it's only 10,240 bytes as opposed to 576,512 bytes compared to the cat /lib/firmware/... above).Searching google there are a few tools available to convert the Intel distributed microcode.dat to binary format and reduce it to only the parts required for a specific CPU. Regards Atom2 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |