linux-embedded.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd-ynQEQJNshbs@public.gmane.org>
To: Rob Landley <rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org>
Cc: T Ziomek <ctz001-qbu1+ugcRq/by3iVrkZq2A@public.gmane.org>,
	Mike Frysinger
	<vapier.adi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	David VomLehn <dvomlehn-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
	linux-embedded-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Some embedded topics
Date: Thu, 29 May 2008 07:34:10 +0200	[thread overview]
Message-ID: <20080529053410.A43D3247CC@gemini.denx.de> (raw)
In-Reply-To: Your message of "Wed, 28 May 2008 22:01:48 CDT." <200805282201.48746.rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org>

In message <200805282201.48746.rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org> you wrote:
> 
> The standard way of doing this is to use the mem= kernel command line 
> parameter to tell the system it has less memory than it does, and using 
> what's left as a ramdisk.  Years ago I saw some userspace thing running as 
> root mmap() /dev/mem (or whatever they're calling it these days) and log to 
> it.  In theory you could even set the dmesg buffer up at the end of physical 
> memory with a smallish kernel patch, make it big, and set the kernel to doing 
> verbose printks.

That's not theory, but a standard feature in U-Boot. It's called
shared log buffer, as U-Boot can also use this buffer for example for
POST results.

> The trick is A) knowing the absolute physical address at which your debug 
> buffer lives so you can find it after the reboot, B) convincing the system to 
> do something useful with it on reboot rather than just overwriting it with 
> fresh log data.

There is no trickery involved.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd-ynQEQJNshbs@public.gmane.org
My brother sent me a postcard the other day with this  big  sattelite
photo  of the entire earth on it. On the back it said: "Wish you were
here".                                                - Steven Wright
--
To unsubscribe from this list: send the line "unsubscribe linux-embedded" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2008-05-29  5:34 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <483C83DE.3040604@cisco.com>
     [not found] ` <483C83DE.3040604-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
2008-05-29  2:09   ` Some embedded topics Paul Gortmaker
     [not found] ` <8bd0f97a0805271527i622a31b8t68ba24c80a2e034a@mail.gmail.com>
     [not found]   ` <20080527223142.GU26837@email.mot.com>
     [not found]     ` <20080527223142.GU26837-qbu1+ugcRq/by3iVrkZq2A@public.gmane.org>
2008-05-29  3:01       ` Rob Landley
     [not found]         ` <200805282201.48746.rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org>
2008-05-29  4:21           ` Mike Frysinger
     [not found]             ` <8bd0f97a0805282121j10a99bb7ve92efc6a8dc8bbb1-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2008-05-29  5:38               ` Wolfgang Denk
2008-05-29 17:31             ` Rob Landley
2008-05-29 18:20               ` Mike Frysinger
2008-05-29  5:34           ` Wolfgang Denk [this message]
2008-05-29  9:31         ` Geert Uytterhoeven
2008-05-30 22:59           ` Tim Bird
2008-05-30 23:20             ` Jordan Crouse
2008-05-31  0:07             ` Josh Boyer
2008-05-31 13:32             ` Geert Uytterhoeven
     [not found]     ` <8bd0f97a0805271535w267be51fq669def9aa424e4e7@mail.gmail.com>
     [not found]       ` <840404080805280740q4486f377x49c106e20d9f5dc2@mail.gmail.com>
     [not found]         ` <840404080805280744t351da73fk885fa7b29c05659c@mail.gmail.com>
     [not found]           ` <483D7355.5050803@coritel.it>
     [not found]             ` <483D7355.5050803-5RgZt0ZUL+KonA0d6jMUrA@public.gmane.org>
2008-05-28 15:44               ` Fwd: " Joe MacDonald
2008-05-30 22:21             ` Tim Bird
2008-06-02  0:09               ` Rob Landley
2008-06-03  8:32               ` Marco Stornelli
     [not found] ` <20080527173118.12ec691b@vader.jdub.homelinux.org>
     [not found]   ` <f608b67d0805271537m1b07e08y5dd84f7bbd8918cf@mail.gmail.com>
     [not found]     ` <20080527180200.56ffc588@vader.jdub.homelinux.org>
2008-05-30 22:36       ` Tim Bird
2008-05-31  0:04         ` Josh Boyer
2008-06-01 23:52           ` Rob Landley

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=20080529053410.A43D3247CC@gemini.denx.de \
    --to=wd-ynqeqjnshbs@public.gmane.org \
    --cc=ctz001-qbu1+ugcRq/by3iVrkZq2A@public.gmane.org \
    --cc=dvomlehn-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
    --cc=linux-embedded-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=rob-VoJi6FS/r0vR7s880joybQ@public.gmane.org \
    --cc=vapier.adi-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.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;
as well as URLs for NNTP newsgroup(s).