From: Junior Date: Fri, 13 Jul 2007 07:24:12 -0800 Subject: [U-Boot-Users] Reading mediacard compressed files In-Reply-To: References: <331acb2c846.00000166ejr@inbox.com> Message-ID: <335F22A093A.000001A1ejr@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: 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? > > " > > Interface is important for common/cmd_fat.c function get_dev() where it > calls a different function for each name. It passes the device number to > a > function mmc_get_dev which is probably in your cpu-specific files unless > something has changed since 1.1.5. My at91 mmc/sd implementation is quite > simple because I only support one device. I completely ignore the dev > parameter and return a pointer for the only device available on my > system. > > -joey > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > U-Boot-Users mailing list > U-Boot-Users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/u-boot-users ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM?, MSN? Messenger, Yahoo!? Messenger, ICQ?, Google Talk? and most webmails