From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junior Date: Fri, 13 Jul 2007 07:47:49 -0800 Subject: [U-Boot-Users] Reading mediacard compressed files In-Reply-To: <46979D2E.7080204@smiths-aerospace.com> References: <331acb2c846.00000166ejr@inbox.com> <335f22a093a.000001a1ejr@inbox.com> Message-ID: <3393EDAEB3E.000001CEejr@inbox.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > -----Original Message----- > From: gerald.vanbaren at smiths-aerospace.com > Sent: Fri, 13 Jul 2007 11:41:34 -0400 > To: ejr at inbox.com > Subject: Re: [U-Boot-Users] Reading mediacard compressed files > > Junior wrote: >>> -----Original Message----- >>> From: joravec at drewtech.com >>> Sent: Fri, 13 Jul 2007 11:10:14 -0400 >>> To: u-boot-users at lists.sourceforge.net >>> Subject: Re: [U-Boot-Users] Reading mediacard compressed files >>> >>> "Junior" wrote in message >>> news:331ACB2C846.00000166ejr at inbox.com... >>>> Hi All, >>>> I have a media card that has one fat partition with a testfile.gzip >>>> (unrelated to the kernel). >>>> I would like to read this file and uncompress it to SD memory. >>>> Can this be done and if so, how do I achieve this? >>>> I've enabled FAT support but fatinfo requires "dev[:part]" and I'm not >>>> sure what to >>>> specify as my device and partition. >>> Typically "fatinfo mmc 0". The command is of the format "fatinfo >> >> >> Thanks, That did it: >> Partition 1: Filesystem: FAT32 "NO NAME " >> >> But how do I read from this partition then do an uncompress? > > Hi Junior, > > Your original message says "uncompress it to SD memory." If you are > expecting to write the resulting data back to your media card (my > interpretation of "SD memory"), I don't think you can get there without > a lot of work. > > IIRC, the file systems supported by u-boot are read-only. The > expectation is that, if you want to write to a file system, you should > us an operating system, not a boot loader. I'm sorry, By SD I really ment SDRAM. Perhaps I shouls simply say "uncompress". I have 32M of ram and I'm trying to read a file into ram and uncompress it. I'm not interested in writing to the media card. Thanks, --Jr. > gvb