Lets you set the target system time at startup
PATCH 1/1 Lets you set the target system time at startup
Hello everybody,
I wrote a little patch, that lets you set the initial target system time at startup
of qemu. I thought it might be interesting for others, too.
This patch gives you an additional command line option '-initialtime n' with n being the
initial target system time in seconds since the unix epoch. The formm of the argument as
seconds instead of a date and time in the form YYYY.MM.DD-HH:SS is probably improvable, but it
was much easier to implement :-))) and on unix machines, at least, you have the tools at hand
to easily convert any date and time to seconds, so I thohght I'd just leave it in seconds
for the time being.
The patch also adds a section to the help text (the one you see with qemu -h) and to the
man-page.
Oh, the patch is against version 0.8.0 but should be easily adjustable to other versions, too.
Hope yall find it useful and thanks for the great software,
Volker
Patch adding command-line option '-initialtime' to qemu to set the initial date and time of the target systems real time clock.
Written, 21.12.2005, Volker Wedemeier
To apply the patch, copy patchfile to folder above qemu-0.8.0, then do
Quoted 1 line
gunzip qemu-initialtime.patch.gz
then
Quoted 1 line
patch -p0 < qemu-initialtime.patch
Configure, compile and install as usual.