* S3 test
@ 2005-07-12 9:22 Shaohua Li
[not found] ` <1121160149.20699.6.camel-ECwVeV2eNyQD0+JXs3kMbRL4W9x8LtSr@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Shaohua Li @ 2005-07-12 9:22 UTC (permalink / raw)
To: acpi-dev
[-- Attachment #1: Type: text/plain, Size: 548 bytes --]
Hi,
Somebody in the list suggested we could test S3 with a kernel which
doesn't touch any device. Considering there are many broken drivers
(especially hard disk driver in some systems), this sounds like a good
method to narrow down S3 bugs. For those who want to try it, you can
make a kernel without any driver support, and make attached file as your
initrd, and see if S3 works. The attached initramfs doesn't touch any
device and just does something like below:
echo 'mem' >/sys/power/state
echo xxxxxxxx
while true; do done
Thanks,
Shaohua
[-- Attachment #2: initramfs.cpio.gz --]
[-- Type: application/x-cpio-compressed, Size: 32055 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: S3 test
[not found] ` <1121160149.20699.6.camel-ECwVeV2eNyQD0+JXs3kMbRL4W9x8LtSr@public.gmane.org>
@ 2005-07-12 13:08 ` Pavel Machek
2005-07-15 13:36 ` Frank
1 sibling, 0 replies; 8+ messages in thread
From: Pavel Machek @ 2005-07-12 13:08 UTC (permalink / raw)
To: Shaohua Li; +Cc: acpi-dev
Hi!
> Somebody in the list suggested we could test S3 with a kernel which
> doesn't touch any device. Considering there are many broken drivers
> (especially hard disk driver in some systems), this sounds like a good
> method to narrow down S3 bugs. For those who want to try it, you can
> make a kernel without any driver support, and make attached file as your
> initrd, and see if S3 works. The attached initramfs doesn't touch any
> device and just does something like below:
>
> echo 'mem' >/sys/power/state
> echo xxxxxxxx
> while true; do done
Unfortunately, video is the device least likely to work after resume :-(.
But users can hit numlock or something to see if machine is still alive.
--
64 bytes from 195.113.31.123: icmp_seq=28 ttl=51 time=448769.1 ms
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: S3 test
[not found] ` <1121160149.20699.6.camel-ECwVeV2eNyQD0+JXs3kMbRL4W9x8LtSr@public.gmane.org>
2005-07-12 13:08 ` Pavel Machek
@ 2005-07-15 13:36 ` Frank
[not found] ` <200507151536.21857.hugelmopf-S0/GAf8tV78@public.gmane.org>
1 sibling, 1 reply; 8+ messages in thread
From: Frank @ 2005-07-15 13:36 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Hi Shaohua,
thanks for your efforts on getting S3 to work.
Is there anybody on this list, who has tried this initramfs yet and can give a
short list of the steps involved? I have never before built a kernel for use
with initram, but I would like to test it on my S3-broken laptop.
Thanks,
Frank
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: S3 test
[not found] ` <200507151536.21857.hugelmopf-S0/GAf8tV78@public.gmane.org>
@ 2005-07-15 14:29 ` Bernd Schubert
0 siblings, 0 replies; 8+ messages in thread
From: Bernd Schubert @ 2005-07-15 14:29 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f; +Cc: Frank
Hello Frank,
> Is there anybody on this list, who has tried this initramfs yet and can give
a
> short list of the steps involved? I have never before built a kernel for use
> with initram, but I would like to test it on my S3-broken laptop.
I'm planning to do it over the weekend (there was just too much to do
over the week). So far I have never used an initramfs myself, but I'm
rather experienced with initrd's. I guess you only need to specify a
line 'initrd = /path_to_initramfs/initramfs' in lilo, so something similar to
this:
# a rescue image that calls a shell in the initrd
image=/boot/linux-2.6.9-tc5
label=2.6.9_rescue
read-only
initrd=/boot/initrd-lvm-2.6.-amd64-lvm2_32_shell.gz
Recent kernels seem to first check if its an initramfs or initrd and I hope
they will do the proper thing themselves. I'm not sure if the kernel needs
ramdisk support, but I guess it needs it.
Better DON'T do it globally for all kernels, you might have problems to boot a
normal kernel again ;-)
About grub I don't know how to use/configure it.
Hope it helps,
Bernd
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* RE: S3 test
@ 2005-07-18 2:36 Li, Shaohua
[not found] ` <16A54BF5D6E14E4D916CE26C9AD3057502B653B0-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Li, Shaohua @ 2005-07-18 2:36 UTC (permalink / raw)
To: Bernd Schubert; +Cc: Frank, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
>
>> Is there anybody on this list, who has tried this initramfs yet and
can
>give
>a
>> short list of the steps involved? I have never before built a kernel
for
>use
>> with initram, but I would like to test it on my S3-broken laptop.
>
>I'm planning to do it over the weekend (there was just too much to do
>over the week). So far I have never used an initramfs myself, but I'm
>rather experienced with initrd's. I guess you only need to specify a
>line 'initrd = /path_to_initramfs/initramfs' in lilo, so something
similar
>to
>this:
>
># a rescue image that calls a shell in the initrd
>image=/boot/linux-2.6.9-tc5
> label=2.6.9_rescue
> read-only
> initrd=/boot/initrd-lvm-2.6.-amd64-lvm2_32_shell.gz
>
>Recent kernels seem to first check if its an initramfs or initrd and I
hope
>they will do the proper thing themselves. I'm not sure if the kernel
needs
>ramdisk support, but I guess it needs it.
>
>Better DON'T do it globally for all kernels, you might have problems to
>boot a
>normal kernel again ;-)
Absolutely :) !
>About grub I don't know how to use/configure it.
Add something like this in /etc/grub.conf:
title test
kernel /boot/kernel-image-name
initrd /boot/initramfs-name
Thanks,
Shaohua
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id\x16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: S3 test
[not found] ` <16A54BF5D6E14E4D916CE26C9AD3057502B653B0-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2005-07-20 18:59 ` Frank
[not found] ` <200507202059.28860.hugelmopf-S0/GAf8tV78@public.gmane.org>
0 siblings, 1 reply; 8+ messages in thread
From: Frank @ 2005-07-20 18:59 UTC (permalink / raw)
To: Li, Shaohua; +Cc: Bernd Schubert, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Li, Shaohua wrote:
> Add something like this in /etc/grub.conf:
>
> title test
> kernel /boot/kernel-image-name
> initrd /boot/initramfs-name
This causes my kernel to panic, because it doesn't find the root.
I don't know if I did the right thing: I built a new kernel, that I configured
with "make allnoconfig" and enabled ACPI support + IDE + reiserfs (because
my /boot is on a reiserfs-partition).
My Grub line:
title s3test
{root (hd0,2)}
kernel /boot/bzImage-s3test {root=/dev/hda3}
initrd /boot/initramfs.cpio
I tried with and without the parts in curly bracket.
Is this enough or the completely wrong way to go?
Thanks,
Frank
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: S3 test
[not found] ` <200507202059.28860.hugelmopf-S0/GAf8tV78@public.gmane.org>
@ 2005-07-21 10:55 ` Sebastian Kärgel
2005-07-25 1:55 ` Shaohua Li
1 sibling, 0 replies; 8+ messages in thread
From: Sebastian Kärgel @ 2005-07-21 10:55 UTC (permalink / raw)
To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Wed, 20 Jul 2005 20:59:28 +0200
Frank <hugelmopf-S0/GAf8tV78@public.gmane.org> wrote:
> This causes my kernel to panic, because it doesn't find the root.
I experienced the same probleme here.
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: S3 test
[not found] ` <200507202059.28860.hugelmopf-S0/GAf8tV78@public.gmane.org>
2005-07-21 10:55 ` Sebastian Kärgel
@ 2005-07-25 1:55 ` Shaohua Li
1 sibling, 0 replies; 8+ messages in thread
From: Shaohua Li @ 2005-07-25 1:55 UTC (permalink / raw)
To: Frank; +Cc: Bernd Schubert, acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
On Wed, 2005-07-20 at 20:59 +0200, Frank wrote:
> Li, Shaohua wrote:
> > Add something like this in /etc/grub.conf:
> >
> > title test
> > kernel /boot/kernel-image-name
> > initrd /boot/initramfs-name
>
> This causes my kernel to panic, because it doesn't find the root.
>
> I don't know if I did the right thing: I built a new kernel, that I configured
> with "make allnoconfig" and enabled ACPI support + IDE + reiserfs (because
> my /boot is on a reiserfs-partition).
>
> My Grub line:
>
> title s3test
> {root (hd0,2)}
> kernel /boot/bzImage-s3test {root=/dev/hda3}
> initrd /boot/initramfs.cpio
>
> I tried with and without the parts in curly bracket.
> Is this enough or the completely wrong way to go?
Don't know what's the matter. The initramfs doesn't try to mount root
device and it works for me. I even didn't build IDE & reiserfs, since I
think grub will load the kernel image and initrd image to memory.
Thanks,
Shaohua
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2005-07-25 1:55 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-18 2:36 S3 test Li, Shaohua
[not found] ` <16A54BF5D6E14E4D916CE26C9AD3057502B653B0-4yWAQGcml66iAffOGbnezLfspsVTdybXVpNB7YpNyf8@public.gmane.org>
2005-07-20 18:59 ` Frank
[not found] ` <200507202059.28860.hugelmopf-S0/GAf8tV78@public.gmane.org>
2005-07-21 10:55 ` Sebastian Kärgel
2005-07-25 1:55 ` Shaohua Li
-- strict thread matches above, loose matches on Subject: below --
2005-07-12 9:22 Shaohua Li
[not found] ` <1121160149.20699.6.camel-ECwVeV2eNyQD0+JXs3kMbRL4W9x8LtSr@public.gmane.org>
2005-07-12 13:08 ` Pavel Machek
2005-07-15 13:36 ` Frank
[not found] ` <200507151536.21857.hugelmopf-S0/GAf8tV78@public.gmane.org>
2005-07-15 14:29 ` Bernd Schubert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox