Re: implementing "suspend to ram" on cortex A8 based on linux 3.0.8

2 messages, 2 authors, 2012-03-13 · open the first message on its own page

Re: implementing "suspend to ram" on cortex A8 based on linux 3.0.8

From: yang gqyang <hidden>
Date: 2012-03-10 14:37:45

 Thanks for your comment.
 Finally, i find out that i made a mistake.  The uart(8250) have not been
 restore after resume, instead, it use the configuration got from boot. The
 uart have not been restored correctly, so that "ls" can not output result
 correctly resulting in it seems that the busybox can not work correctly.
 Now, i still have a question about the uart: why the "printk" can work
 correctly, but the "printf" not?

 Before this, i believe that the "printk" work correctly, then the uart
 work ok. but now, i  need more reconsidaration about
 the relation between the "printk", "printf" and "uart".
 Can anyone give me some suggestion? Any comment is welcome, thanks a
 lot.

? 2012?3?9? ??10:08?Chenglie He [off-list ref]???
quoted
Hi,

I am doing this on A9, echo mem >/sys/power/state is right, will trigger
kernel to sleep.

-jack
some recipient promote:
"The message contains HTML subpart, therefore we consider it SPAM or
Outlook Virus"
so i resend the email, hope it not disturb u. thanks a lot.

Re: implementing "suspend to ram" on cortex A8 based on linux 3.0.8

From: Barry Song <hidden>
Date: 2012-03-13 14:34:44

hi yang,

? 2012?3?10? ??10:37?yang gqyang [off-list ref] ???
?Thanks for your comment.
?Finally, i find out that i made a mistake. ?The uart(8250) have not been
?restore after resume, instead, it use the configuration got from boot. The
?uart have not been restored correctly, so that "ls" can not output result
?correctly resulting in it seems that the busybox can not work correctly.
?Now, i still have a question about the uart: why the "printk" can work
?correctly, but the "printf" not?

?Before this, i believe that the "printk" work correctly, then the uart
?work ok. but now, i ?need more reconsidaration about
?the relation between the "printk", "printf" and "uart".
?Can anyone give me some suggestion? Any comment is welcome, thanks a
?lot.
printk use "struct console" driver, it doesn't depend on a device node
for userspace.
printf actaully depends on uart_driver and a /dev/ttySx device node,
stdout and stderr are redirected to /dev/ttySx
uart is just a hardware which can be a tty or kernel console output.

-barry
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help