* [U-Boot-Users] Reading mediacard compressed files
@ 2007-07-13 14:53 Junior
2007-07-13 15:10 ` Joey Oravec
0 siblings, 1 reply; 6+ messages in thread
From: Junior @ 2007-07-13 14:53 UTC (permalink / raw)
To: u-boot
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.
Thanks,
--Jr.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Reading mediacard compressed files
2007-07-13 14:53 [U-Boot-Users] Reading mediacard compressed files Junior
@ 2007-07-13 15:10 ` Joey Oravec
2007-07-13 15:24 ` Junior
0 siblings, 1 reply; 6+ messages in thread
From: Joey Oravec @ 2007-07-13 15:10 UTC (permalink / raw)
To: u-boot
"Junior" <ejr@inbox.com> 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 <interface>
<dev[:part]>"
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Reading mediacard compressed files
2007-07-13 15:10 ` Joey Oravec
@ 2007-07-13 15:24 ` Junior
2007-07-13 15:35 ` Joey Oravec
2007-07-13 15:41 ` Jerry Van Baren
0 siblings, 2 replies; 6+ messages in thread
From: Junior @ 2007-07-13 15:24 UTC (permalink / raw)
To: u-boot
> -----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" <ejr@inbox.com> 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>
> <dev[:part]>"
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread* [U-Boot-Users] Reading mediacard compressed files
2007-07-13 15:24 ` Junior
@ 2007-07-13 15:35 ` Joey Oravec
2007-07-13 15:41 ` Jerry Van Baren
1 sibling, 0 replies; 6+ messages in thread
From: Joey Oravec @ 2007-07-13 15:35 UTC (permalink / raw)
To: u-boot
"Junior" <ejr@inbox.com> wrote in message
news:335F22A093A.000001A1ejr at inbox.com...
> Thanks, That did it:
> Partition 1: Filesystem: FAT32 "NO NAME "
>
> But how do I read from this partition then do an uncompress?
You probably already have gunzip() available because it's in
common/cmd_bootm.c. If you want to do this from the command line you'll
probably need to add a new u-boot command. Check common/cmd_fat.c for
examples of the U_BOOT_CMD() macro and doc/README.commands for instructions.
There are a few examples of gunzip within common/cmd_lcd.c for displaying a
compressed bitmap. Usually it's just done from code.
-joey
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Reading mediacard compressed files
2007-07-13 15:24 ` Junior
2007-07-13 15:35 ` Joey Oravec
@ 2007-07-13 15:41 ` Jerry Van Baren
2007-07-13 15:47 ` Junior
1 sibling, 1 reply; 6+ messages in thread
From: Jerry Van Baren @ 2007-07-13 15:41 UTC (permalink / raw)
To: u-boot
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" <ejr@inbox.com> 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.
gvb
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot-Users] Reading mediacard compressed files
2007-07-13 15:41 ` Jerry Van Baren
@ 2007-07-13 15:47 ` Junior
0 siblings, 0 replies; 6+ messages in thread
From: Junior @ 2007-07-13 15:47 UTC (permalink / raw)
To: u-boot
> -----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" <ejr@inbox.com> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <331acb2c846.00000166ejr@inbox.com>]
end of thread, other threads:[~2007-07-13 15:47 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13 14:53 [U-Boot-Users] Reading mediacard compressed files Junior
2007-07-13 15:10 ` Joey Oravec
2007-07-13 15:24 ` Junior
2007-07-13 15:35 ` Joey Oravec
2007-07-13 15:41 ` Jerry Van Baren
2007-07-13 15:47 ` Junior
[not found] <331acb2c846.00000166ejr@inbox.com>
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.