Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754298AbbK0Iio (ORCPT ); Fri, 27 Nov 2015 03:38:44 -0500 Received: from mail-wm0-f52.google.com ([74.125.82.52]:36151 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754269AbbK0Iij (ORCPT ); Fri, 27 Nov 2015 03:38:39 -0500 Date: Fri, 27 Nov 2015 09:38:33 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Tony Lindgren Cc: Frank Rowand , Arnd Bergmann , Pavel Machek , "devicetree@vger.kernel.org" , Russell King - ARM Linux , Laura Abbott , Grant Likely , Rob Herring , Will Deacon , Ivaylo Dimitrov , Sebastian Reichel , Andreas =?utf-8?Q?F=C3=A4rber?= , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org Subject: Re: [PATCH 5/5] arm: boot: store ATAGs structure into DT "/chosen/linux,atags" entry Message-ID: <20151127083833.GA430@pali> References: <20150713131902.GH26485@atomide.com> <20151123144545.GD24147@pali> <20151125181644.GI2517@atomide.com> <17134653.86P3dFyQKK@wuerfel> <20151125210310.GT2517@atomide.com> <56568849.5080103@gmail.com> <20151126090739.GD14190@pali> <20151126203930.GW2517@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20151126203930.GW2517@atomide.com> User-Agent: Mutt/1.5.23.1 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1259 Lines: 27 On Thursday 26 November 2015 12:39:30 Tony Lindgren wrote: > Just to explore options.. How about make a minimal device driver that > just loads the atags blob from /lib/firmware and then shows it in > /proc/atags? Of course some checking on the atags should be done by > the driver.. And who can dynamically create that blob file in /lib/firmware? If kernel does not export those atags (somehow) from bootloader, then userspace is not able to create that blob... cyclic problem. So no, problem is that bootloader provides via custom atags dynamic information like: boot reason (how was device started, by rtc alarm? by reboot? by usb charger? by power button?), boot mode (should be enter into firmware update mode?, is this normal boot mode?), ... and those information are needed for some proprietary software (e.g. firmware upgrade/flash) but also by any other open source applications (based on usb charger we enter different runlevel -- for just only charging device). -- Pali Rohár pali.rohar@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/