Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752337AbdHPPMR (ORCPT ); Wed, 16 Aug 2017 11:12:17 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:39660 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752286AbdHPPMO (ORCPT ); Wed, 16 Aug 2017 11:12:14 -0400 X-IronPort-AV: E=Sophos;i="5.41,383,1498489200"; d="scan'208";a="254737155" From: Chris Brandt To: Nicolas Pitre CC: Alexander Viro , "linux-fsdevel@vger.kernel.org" , "linux-embedded@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH 0/5] cramfs refresh for embedded usage Thread-Topic: [PATCH 0/5] cramfs refresh for embedded usage Thread-Index: AQHTEtdFT0/wwlN9sk6l1Kak7eVmpaKEGObggAAH1ICAAAY+sIAABmYAgAAD8RCAAKHFAIAAcXMQgAExywCAAF5O0IAAPbqAgAAGE8A= Date: Wed, 16 Aug 2017 15:12:09 +0000 Message-ID: References: <20170811192252.19062-1-nicolas.pitre@linaro.org> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Chris.Brandt@renesas.com; x-originating-ip: [75.60.247.61] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;SG2PR06MB1647;20:YfFde0P9fTi+W8ObKANNg0OiZj7YZAICXtC5kFC16GO766bjdm2Jy3slj74/SG3pT/OKkPCdpda8PJJNJNwvi11ZlZfjm4YSw4hPVe/MLwn+ZKLx4HNSwWsKh3rsEfxj5zsrXN5ptnpURmhBHaIAaQY95FQfw84BXREpRfa9REU= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: cf270d92-981c-4e6d-23ab-08d4e4b92a9f x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603031)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:SG2PR06MB1647; x-ms-traffictypediagnostic: SG2PR06MB1647: x-exchange-antispam-report-test: UriScan:; x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SG2PR06MB1647;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SG2PR06MB1647; x-forefront-prvs: 0401647B7F x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(39860400002)(24454002)(69234005)(199003)(189002)(105586002)(8936002)(305945005)(101416001)(106356001)(54356999)(2900100001)(76176999)(50986999)(3846002)(102836003)(14454004)(6436002)(25786009)(81156014)(6246003)(72206003)(7736002)(8676002)(478600001)(229853002)(33656002)(54906002)(6116002)(2906002)(55016002)(99286003)(6506006)(81166006)(110136004)(53936002)(3280700002)(66066001)(9686003)(5660300001)(7696004)(4326008)(93886004)(3660700001)(189998001)(97736004)(86362001)(6916009)(74316002)(5250100002)(68736007)(2950100002);DIR:OUT;SFP:1102;SCL:1;SRVR:SG2PR06MB1647;H:SG2PR06MB1165.apcprd06.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Aug 2017 15:12:10.0026 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1647 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by nfs id v7GFCLF9021158 Content-Length: 1200 Lines: 32 On Wednesday, August 16, 2017 1, Nicolas Pitre wrote: > > Just FYI, > > I'm running an xipImage with all the RZ/A1 upstream drivers enabled and > > only using about 4.5MB of total system RAM. > > That's pretty good. Of course for a real application, you would trim off > > the drivers and subsystems you don't plan on using, thus lowering your > > RAM usage. > > On my MMU-less test target I'm going under the 1MB mark now. Show off ;) > Given that I also applied the device table patch to mkcramfs (that > allows for the creation of device nodes and arbitrary > user/group/permission without being root) it would be possible to extend > this mechanism to implement other XIP patterns such as for > uncompressible media files for example. Good, I was going to ask about that. I made an example once were all the graphics were RAW and uncompressed and marked as XIP in AXFS. The result was a large saving of RAM because as the graphics framework (DirectFB) would copy directly from Flash whenever it needed to do a background erase or image re-draw (button press animations). Same went for playing MP3 files. The MP3 files were XIP in flash, so mpg123 pulled from flash directly. Chris