Skip to contentSkip to conversation

Reading a text file from another FAT partition

U-Boot harsha kiran 2 participants 4 messages Sep 16, 2014 – Sep 17, 2014

lore
Share & tools
lore
#0 lore raw

Hi Everyone,

I have an SD Card which has 2 FAT partitions. U-boot is in the first Boot partition and i have a text file to be read which is in another partition.

I want to read this file in the U-boot config file under CONFIG_BOOTCOMMAND. can anyone please let me know what commands U-boot introduced to support file read in the latest release?

Thanks.
Harsha

--
View this message in context: http://u-boot.10912.n7.nabble.com/Reading-a-text-file-from-another-FAT-partition-tp189502.html
Sent from the U-Boot mailing list archive at Nabble.com.

#1 lore raw

Dear harsha kiran,

Quoted 4 lines · In message <[email protected]> you wrote:

Hi Everyone,

I have an SD Card which has 2 FAT partitions. U-boot is in the first Boot partition and i have a text file to be read which is in another partition.

OK - and what exactly is your problem? If you tried something and it failed, it would be helpful if you posted your attempts (and the resulting errors) here...

Quoted 3 lines

I want to read this file in the U-boot config file under CONFIG_BOOTCOMMAND. can anyone please let me know what commands U-boot introduced to support file read in the latest release?

None. Reading files from FAT partition has been available for ages.

Best regards,

Wolfgang Denk

Signature · 5 lines
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
Just about every computer on the market today runs Unix,  except  the
Mac (and nobody cares about it).                   - Bill Joy 6/21/85
#2 lore raw

Hi !
I am sorry i should have been more specific.
I am now able to load the file from a different partition and see in the memory.

I do not see any commands in u-boot help to create a New file/ delete a file / Rename a file. Is there any support for these file operations from u-boot?

Thanks,
Harsha

--
View this message in context: http://u-boot.10912.n7.nabble.com/Reading-a-text-file-from-another-FAT-partition-tp189502p189649.html
Sent from the U-Boot mailing list archive at Nabble.com.

#3 lore raw

Dear harsha kiran,

Quoted 3 lines · In message <[email protected]> you wrote:

I do not see any commands in u-boot help to create a New file/ delete a file / Rename a file. Is there any support for these file operations from u-boot?

No, there isn't. U-Boot is a boot loader, not a full blown OS.

Best regards,

Wolfgang Denk

Signature · 4 lines
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
The light at the end of the tunnel is usually a "No Exit" sign.