public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Peter Tseng <tsenpet09@gmail.com>
To: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	Han Wang <hw342@cornell.edu>
Subject: Overo serial problems after resume, vs. Beagleboard
Date: Mon, 21 Jun 2010 13:04:00 -0400	[thread overview]
Message-ID: <4C1F9B80.9010708@gmail.com> (raw)

Hey there,

I am seeing some discrepancies between the Overo (I believe I have a
Water) and the Beagleboard (I have a Rev. B5) when resuming after a
suspend to RAM.

The setup: My kernel is built from the latest commit (commit ID
305f453e897e4673dd4c2b52ec7e2c4be2e2b035 [1]) of the branch named pm of
Kevin Hilman's linux-omap-pm [2].

I take the omap3_pm_defconfig, and change the below options to Y as they
seem to be needed to boot from SD card (Names given are names in
menuconfig under Device Drivers-->MMC/SD/SDIO card support. Config
symbols given in parentheses)
- MMC block device driver (MMC_BLOCK)
- TI OMAP High Speed Multimedia Card Interface support (MMC_OMAP_HS)
- Secure Digital Host Controller Interface support (MMC_SDHC)

My filesystem is omap3-console-image dated May 23 from Steve Sakoman's
binaries [3]. I do need to note that I made a few changes: symlinked
/sbin/init to /bin/busybox instead of /sbin/init.sysvinit and changed
/etc/init.d/rcS and /etc/inittab to suit Busybox.

My uBoot is also taken from Steve Sakoman, and also dated May 23.

I use the same card for both the Beagle and the Overo. This reduces
sources of confounding variables, as now the only difference is the
hardware (and that I need a micro-SD adapter for the Beagle).

For Beagle:
Kernel command line: console=ttyS2,115200n8 mpurate=500 vram=12M
omapfb.mode=dvi:1024x768MR-16@60 omapfb.debug=y omapdss.def_disp=dvi
root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

For Overo:
Kernel command line: console=ttyS2,115200n8 vram=12M
omapfb.mode=dvi:1024x768MR-16@60 omapfb.debug=y omapdss.def_disp=dvi
root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait

The Overo connects to my computer through USB, on the port on the Summit
board labeled CONSOLE. The Beagle connects to my computer through RS232,
a null modem cable, and a USB to serial adapter. I use screen.

The problem comes when I use echo mem > /sys/power/state to suspend to
ram, and then press some key to wake up the system. The Beagleboard
comes up just fine. On the other hand, the Overo initially looks like it
comes up fine, but I can no longer type anything into the prompt that
appears. This looks suspiciously similar to Han Wang's problem, but I
did a little more exploring via a quick test script to see how far the
system gets.

root@overo:~# cat test.sh
echo "I went to sleep" > log
echo mem > /sys/power/state
echo "HEY I WOKE UP"
echo "HEY I WOKE UP" >> log
sync
root@overo:~#

Interestingly enough, when I run this script and resume on the Overo, I
can see HEY I WOKE UP both in the console and the file (after a restart
so I can type something to read the file)! So the problem is simply that
I cannot type anything, not that the system isn't waking up, otherwise
it wouldn't even get to the echoes. (Blindly typing in things afterward,
including echoing to a file, does not seem to have an effect, unfortunately)

Any ideas on what might be causing this discrepancy and whether there's
anything I can do to fix? I appreciate your time.

Peter Tseng

[1]
http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=commit;h=305f453e897e4673dd4c2b52ec7e2c4be2e2b035
[2]
http://git.kernel.org/?p=linux/kernel/git/khilman/linux-omap-pm.git;a=summary
[3] http://www.sakoman.com/feeds/omap3/glibc/images/overo/

             reply	other threads:[~2010-06-21 17:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-21 17:04 Peter Tseng [this message]
2010-06-21 17:40 ` Overo serial problems after resume, vs. Beagleboard Kevin Hilman
2010-06-22  7:34   ` Robert Lukassen
2010-06-22  8:55   ` Mike Rapoport
2010-06-22  9:06     ` Vladimir Pantelic
2010-06-22  9:37     ` Robert Lukassen
2010-06-22 14:31     ` Kevin Hilman
2010-06-23  5:46       ` Mike Rapoport
2010-08-10 23:57       ` Kevin Hilman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C1F9B80.9010708@gmail.com \
    --to=tsenpet09@gmail.com \
    --cc=hw342@cornell.edu \
    --cc=linux-omap@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox