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

From: Barry Song
Date: Tue Mar 13 2012 - 10:34:41 EST


hi yang,

å 2012å3æ10æ äå10:37ïyang gqyang <hustgqyang@xxxxxxxxx> åéï
> Â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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/