public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] snapshot boot on omap osk 5912
@ 2006-03-08 12:49 Hiroki Kaminaga
  2006-03-20  2:34 ` Hiroki Kaminaga
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Hiroki Kaminaga @ 2006-03-08 12:49 UTC (permalink / raw)
  To: linux-omap-open-source

Hi,

On target osk5912, software-suspend (suspend-to-disk) is now working,
and resume-from-disk takes about 10sec. This is on linux-2.6.11 + omap
patch + software-suspend arm porting.

My next try is to shrink resume-from-disk operation duration time.
My method is as below:

(in boot loader (u-boot) side, after bootloader starts target)
1) extract resumed image in disk (for osk, it's in flash) to memory
2) do necessary initialization
3) jump to kernel, not to entry point but to point just after image is
   allocated in kernel resume sequence.

I implemented these steps in bootloader command.

After program counter jumps to kernel, resume goes, restores regs to
that of suspended point, restores coprocessor regs, serial8250 gets
resumed (and printk emits char to console), osk lcd lights again, but
in omapfb resume procedure, wait_for_completion->schedule is called
and goes to cpu_idle<-->omap_pm_idle busy loop.

Obiously, I missed some initialization staff.
What I did in step 2) in bootloader is
2-1) modified timer to 192MHz for ARM, and enabled mpu, xor, tim
     clock.
2-2) enabled MMU
(for other device, I hoped resume sequence in kernel would handle...)

I'd like to have some advice on: things I need to initialize, good way
to do that (like use kernel func abit), and other pit falls I might
face.

Also, is anyone interested in fast bootup?
This could do significant shrink in bootup time when it works :-)

Thanks in advance.


HK.
--

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-03-23  8:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-08 12:49 [RFC] snapshot boot on omap osk 5912 Hiroki Kaminaga
2006-03-20  2:34 ` Hiroki Kaminaga
2006-03-20  6:45   ` Hiroki Kaminaga
2006-03-23  8:34     ` Hiroki Kaminaga
2006-03-20 15:21 ` Tony Lindgren
2006-03-21  3:45   ` Hiroki Kaminaga
2006-03-21 13:51     ` Tony Lindgren
2006-03-23  8:22 ` Hiroki Kaminaga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox