From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 20 Sep 2017 21:55:48 +0200 Subject: [U-Boot] [PATCH 00/13] log: Add a new logging feature In-Reply-To: <20170916212331.170463-1-sjg@chromium.org> References: <20170916212331.170463-1-sjg@chromium.org> Message-ID: <20170920195548.3FE3B120302@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon, sorry for jumping in so late... In message <20170916212331.170463-1-sjg@chromium.org> you wrote: > > At present U-Boot has a logbuffer feature which records output in a memory > buffer for later display or storage. This is useful but is not at present > enabled for any board. Background explanation: When this was implemented, the buffer handling was fully compatible with the Linux kernel logbuffer. And U-Boot was able to reserve memory (at the top of the RAM) that could be shared between U-Boot and Linux, so you could for example write U-Boot POST results into the log buffer, and read it using standard syslog tools in Linux. Or keep the panic messages of the previous crash and read it after reboot. IIRC this was in production use only on Power architectre systems, and it broke (and nover got fixed) when the Linux log buffer was reworked. > This series introduced a new logging system which supports: > - various log levels from panic to debug > - log categories including all uclasses and a few others > - log drivers to which all log records can be sent > - log filters which control which log records make it to which drivers You don't mention it here, but would it be possible to keep compatibility with the Linux logbuffer implementation in mind? So we could re-implement this shared logbuffer thingy in case someone finds it useful? Thanks! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de The only thing necessary for the triumph of evil is for good men to do nothing. - Edmund Burke