From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Wed, 07 Dec 2011 09:03:20 +0100 Subject: [U-Boot] [PATCH v3] Add a CBFS driver and commands to u-boot In-Reply-To: <1323214584-11635-1-git-send-email-gabeblack@chromium.org> References: <20111206110152.784D91F9E48@gemini.denx.de> <1323214584-11635-1-git-send-email-gabeblack@chromium.org> Message-ID: <20111207080320.39F7A1EFEDC@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 Gabe Black, In message <1323214584-11635-1-git-send-email-gabeblack@chromium.org> you wrote: > Coreboot uses a very simple "file system" called CBFS to keep track of and > allow access to multiple "files" in a ROM image. This change adds CBFS > support and some commands to use it to u-boot. These commands are: > > cbfsinit - Initialize CBFS support and pull all metadata into RAM. The end > of the ROM is an optional parameter which defaults to the standard > 0xffffffff and can be used to support multiple CBFSes in a system. The last > one set up with cbfsinit is the one that will be used. > > cbfsinfo - Print information from the CBFS header. > > cbfsls - Print out the size, type, and name of all the files in the current > CBFS. Recognized types are translated into symbolic names. > > cbfsload - Load a file from CBFS into memory. Like the similar command for > fat filesystems, you can optionally provide a maximum size. > > Also, if u-boot needs something out of CBFS very early before the heap is > configured, it won't be able to use the normal CBFS support which caches > some information in memory it allocates from the heap. This change adds a > new cbfs_file_find_uncached function which searchs a CBFS instance without > touching the heap. > > Support for CBFS is compiled in when the CONFIG_CMD_CBFS option is > specified. > > Signed-off-by: Gabe Black See previous message. 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 at denx.de ...when fits of creativity run strong, more than one programmer or writer has been known to abandon the desktop for the more spacious floor. - Fred Brooks, Jr.