For anyone interested in the GSoC project status:
- We can boot the 32-bit and the 64-bit OVMF image now inside an HVM domain instead of BIOS
- We end up crashing the HVM domain during PCI bus enumeration (qemu-dm crash?), which is what the student is now investigating...
Xen changes so far included refactoring changes inside hvmloader, adding a new bios_config structure for OVMF images, ensuring that guest physical memory under 4GB is backed with pages, as well as moving out Xen structures from below 4GB where they would collide with the firmware. The hvmloader/bios xenstore key was exposed to xend/xm (hvmbios parameter, values can be rombios, ovmf32 and ovmf64), to faciliate easier testing. Some thought still needs to be put into libxl (xend replacement) changes.
In general OVMF/Xen patches for Xen and TianoCore will be at https://github.com/andreiw/andreiw-wip/tree/master/xen/ovmf-support
Friday, May 6, 2011
Schemix
As part of what I get paid for, I frequently need to tinker with Linux kernel internals or expose them out as part of some prototyping work... Occasionally, the typical cycle of code-compile-reboot-flash-boot-test is a bit too tedious so I was looking for something that would let me interactively poke at the kernel without an external debugger and do little experiments...
http://www.abstractnonsense.com/schemix/
Hopefully it's not too decrepit :). Well, it's for 2.4 :(, but it seems small enough that porting to 2.6 shouldn't too much of a PITA.
http://www.abstractnonsense.com/schemix/
Hopefully it's not too decrepit :). Well, it's for 2.4 :(, but it seems small enough that porting to 2.6 shouldn't too much of a PITA.
Thursday, May 5, 2011
LFSR taps
I had to fix up the LFSR code in my block benching tool, and this Xilinx document was very useful for figuring out the primitive polynomials for bits > 16.
http://www.xilinx.com/support/documentation/application_notes/xapp052.pdf
Ended up reading about Galois Fields and Évariste Galois...humbling...humbling...
http://www.xilinx.com/support/documentation/application_notes/xapp052.pdf
Ended up reading about Galois Fields and Évariste Galois...humbling...humbling...
Mercurial
As part of some Xen stuff I'm doing I have to interact with Mercurial, the SCM used. I'm pretty used to the git work flow, so I was wondering how to do the equivalent of patch squashing.
You need the mq extension.
The equivalent of -
In Hg would look like -
The '-g' flag is a must if you have any binary diffs.
Of course this doesn't help you with reordering commits... :/
You need the mq extension.
The equivalent of -
$ git rebase -i HEAD~2
In Hg would look like -
$ hg qimport -g -r -2:-1 $ hg qpop now at: 2146.diff $ hg qfold 2147.diff $ hg qrefresh -m 'new log message' $ hg qfinish --all
The '-g' flag is a must if you have any binary diffs.
Of course this doesn't help you with reordering commits... :/
Wednesday, April 27, 2011
GSoC
Today Jordan Justen of the EDK2 TianoCore project announced that four students will be working on UEFI EDK2 projects. I am very excited to be mentoring the OVMF on Xen project, which will enable UEFI firmware for HVM Xen virtual machines.
With luck and lots and lots of work, by the end of this mentorship we will be able to boot into Linux using Xen PV devices (blkback...).
This presents a wonderful opportunity to share my Xen and EDK experiences and help out two projects I love :-).
With luck and lots and lots of work, by the end of this mentorship we will be able to boot into Linux using Xen PV devices (blkback...).
This presents a wonderful opportunity to share my Xen and EDK experiences and help out two projects I love :-).
Friday, April 8, 2011
Haskell and Osdev.
There is a Haskell-written OS! Can't wait to play with this...
House - http://programatica.cs.pdx.edu/House/
Another interesting angle are Linux LKMs in Haskell. This is pretty proof-of-concept... If I ever have time I'll see if I can play with this. Hmmm. I wonder if with new version of GHC this isn't limited to IA-32 anymore.
http://tommd.wordpress.com/2009/09/13/kernel-modules-in-haskell/
http://lwn.net/Articles/352432/
House - http://programatica.cs.pdx.edu/House/
Another interesting angle are Linux LKMs in Haskell. This is pretty proof-of-concept... If I ever have time I'll see if I can play with this. Hmmm. I wonder if with new version of GHC this isn't limited to IA-32 anymore.
http://tommd.wordpress.com/2009/09/13/kernel-modules-in-haskell/
http://lwn.net/Articles/352432/
Monday, March 28, 2011
Bringing up UEFI on Linux-ARM devices...
Introduction.
Given that TianoCore is open source and now supporting the ARM architecture, it may be a given that someone may wish to play around with it on their device of choice. Most likely, it's an Android phone, or perhaps some other Linux-using device. That also might imply that you don't have access to boot-loader sources, or the bootloader is "secure", or you simply don't wish to have the possibility of bricking the device totally... It almost likely implies that you might know which SOC chipset is inside, but have no idea for all the power regulators, display controllers, and other logic in the device, so nuking the firmware is definitively not the right option. Better to keep it around so it initializes all the hardware enough that you can interact with it purely by manipulating SoC devices...
So what do you do?
Given that TianoCore is open source and now supporting the ARM architecture, it may be a given that someone may wish to play around with it on their device of choice. Most likely, it's an Android phone, or perhaps some other Linux-using device. That also might imply that you don't have access to boot-loader sources, or the bootloader is "secure", or you simply don't wish to have the possibility of bricking the device totally... It almost likely implies that you might know which SOC chipset is inside, but have no idea for all the power regulators, display controllers, and other logic in the device, so nuking the firmware is definitively not the right option. Better to keep it around so it initializes all the hardware enough that you can interact with it purely by manipulating SoC devices...
So what do you do?
Subscribe to:
Posts (Atom)