====== Differences ====== This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
soc:2010:andreif:journal:week11 [2010/08/03 10:08]
andreif
soc:2010:andreif:journal:week11 [2010/08/09 14:12] (current)
andreif
Line 16: Line 16:
  
 Ported the decoding code today from the zlib library, but I didn't get to test it or arrange it properly. I am curious of the impact of calling copy_to/​from_user for every byte. I'll probably have to rethink that part alltogether. Ported the decoding code today from the zlib library, but I didn't get to test it or arrange it properly. I am curious of the impact of calling copy_to/​from_user for every byte. I'll probably have to rethink that part alltogether.
 +
 +==== Day 3 [ Wed 4 Aug 2010 ] ====
 +
 +Git commit: [[http://​git.etherboot.org/?​p=people/​andreif/​gpxe.git;​a=commit;​h=bfee6adeaa089b26f5b2ddcf684c961978889a08|bfee6adeaa089b26f5b2ddcf684c961978889a08]]
 +
 +Argh. Not a good day. Spent most of it chasing a silly bug. Stefan suggested that we should use the ISIZE field from the gzip trailer so we allocate all of the buffer in advance so we don't keep calling realloc. I did that, got the length from the field but I still had the original image'​s length in the malloc() call. Needless to say that I exceeded its bound and weird stuff started happening. Eventually I solved this and everything was fine.
 +
 +The code is still a mess, but it works. Tomorrow I'll remove unnecessary comments and rearrange it a bit.
 +
 +==== Day 4 [ Thu 5 Aug 2010 ] ====
 +
 +Git commit: [[http://​git.etherboot.org/?​p=people/​andreif/​gpxe.git;​a=commit;​h=17e0dcec786d5d223d7cac173d70117984bb5009|17e0dcec786d5d223d7cac173d70117984bb5009]]
 +
 +Cleaned the decoder code and fixed an memcpy issue which I suspect came from the fact that the source and destination fields were overlapping. Note to self: also try memmove. This still needs some work, but I am anxious to get to the Xen part and make it work, so I'll start working on that tomorrow.
 +
 +==== Day 5 [ Fri 6 Aug 2010 ] ====
 +
 +me.away()
 +
 +==== Day 6 [ Sat 7 Aug 2010 ] ====
 +
 +Today I wanted to create a basic Xen setup so I started browsing the Internet for information. After finding several sites I set out to compile the hypervisor from source and found some pre-built dom0 images. At first I struggled with getting the GRUB 2 menu entries correct since there have been some changes since GRUB legacy. Some of these changes affect multiboot images (such as Xen), so I should keep this in mind when I end up making changes. Eventuall I got to a point where the hypervisor booted, but the dom0 kernel had problems in finding the root partition. I'll dig into this tomorrow.
 +
 +==== Day 7 [ Sun 8 Aug 2010 ] ====
 +
 +I fixed yesterday'​s root partition issue by getting a new kernel and generating a new initrd. It booted, but unfortunately the keyboard does not work X| Teh horror.

QR Code
QR Code soc:2010:andreif:journal:week11 (generated for current page)