From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Brandt Subject: RE: [PATCH 0/5] cramfs refresh for embedded usage Date: Wed, 16 Aug 2017 15:12:09 +0000 Message-ID: References: <20170811192252.19062-1-nicolas.pitre@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=eHUGHZXHbd7dgJLEY0C3Oskb0KVJOsTbbfw5VUgpRcg=; b=ACWsk29q3vzLEpFVUhzVqoifsuyEmdOhR/jkhVguguTpZYxfHIkMowXg3fJTCijzbn9a/c/UIvk8OYqV4s52pFcPqdlADrvXKRq/lv5X5VhucjskDkJH3aUhKtcYiELi8/BcoN+iYdXE291NX0g+HcX7c5iLPeM3Fw5lcvP+0F4= In-Reply-To: Content-Language: en-US Sender: linux-embedded-owner@vger.kernel.org List-ID: To: Nicolas Pitre Cc: Alexander Viro , "linux-fsdevel@vger.kernel.org" , "linux-embedded@vger.kernel.org" , "linux-kernel@vger.kernel.org" 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 of= f > > the drivers and subsystems you don't plan on using, thus lowering your > > RAM usage. >=20 > 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=20 and marked as XIP in AXFS. The result was a large saving of RAM because=20 as the graphics framework (DirectFB) would copy directly from Flash=20 whenever it needed to do a background erase or image re-draw (button press= =20 animations). Same went for playing MP3 files. The MP3 files were XIP in flash, so=20 mpg123 pulled from flash directly. Chris