Matthew:
We need consider multi-kernel entry case.
root (hd0,0)
kernel /boot/vmlinuz-whatever1
resume_partition (hd0,2)
resume_symbols /boot/System.map-whatever1
resume
root (hd0,0)
kernel /boot/vmlinuz-whatever2
resume_partition (hd0,2)
resume_symbols /boot/System.map-whatever2
resume
When system reboot(resume), grub will don't know use
System.map-whatever1 or System.map-whatever.
If we use universal system.map created from suspend kernel, the
situation will become simple.
Best regards
Frank Li
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Xu, Martin
Sent: Monday, March 03, 2008 7:03 PM
To: Matthew Garrett; [email protected]; [EMAIL PROTECTED]
Subject: [Moblin Dev] RE: Grub fast resume
Garrett:
I like the optimization, and in fact it is my original design.
The reason I abandon the design later is that make fast-resume depends on
system.map file. If the file does not exist, or be damaged, fast-resume can not
work.
I have tried it at my machine and find that it can not work; I will look into
it clearly tomorrow.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matthew Garrett
Sent: 2008年3月2日 23:00
To: [email protected]; [EMAIL PROTECTED]
Subject: Grub fast resume
Hi there,
I've made a few changes to the grub fast resume patch and would
appreciate some testing. The first major change is to remove the need
for the symbols file - instead, the kernel version is obtained directly
from the kernel header and the symbols are read from System.map. This
means we don't need the app for generating the symbols file. Secondly,
I've removed the dependency on a splash file - if one isn't specified,
then it won't attempt to open a default.
The order for resuming is now:
root (hd0,0)
kernel /boot/vmlinuz-whatever
resume_partition (hd0,2)
resume_symbols /boot/System.map-whatever
resume
The source is at http://www.codon.org.uk/~mjg59/tmp/grub/ - if someone
could test this and make sure it works for them, I'll get it uploaded.
Note that the fast resume code is only enabled on lpia builds in order
to avoid risking fragility on x86.
--
Matthew Garrett | [EMAIL PROTECTED]
--
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile
_______________________________________________
dev mailing list
[EMAIL PROTECTED]
https://www.moblin.org/mailman/listinfo/dev
--
Ubuntu-mobile mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-mobile