public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] u-boot spl with fat32 on arm
@ 2014-01-28 14:23 Michal Simek
  2014-01-29 21:57 ` Tom Rini
  0 siblings, 1 reply; 3+ messages in thread
From: Michal Simek @ 2014-01-28 14:23 UTC (permalink / raw)
  To: u-boot

Hi guys,

I do play a little bit with u-boot spl and I am curious
about fat32 implementation. There is MAX_CLUSTSIZE which is 65k
and there are 3 buffers in fat.c code
do_fat_read_at_block
get_contents_vfatname_block
get_dentfromdir_block

All these 3 are placed to bss section.
I have just 192k of memory for SPL that's why I tried 2 things
1. Place these 3 fat arrays to different memory which is working fine
2. Decrease MAX_CLUSTSIZE to any low value (I do use 8k).

Unfortunately if I decrease MAX_CLUSTSIZE and add them to bss section
SPL doesn't work. If I add them to a different section in front of
or behind bss everything is just fine.

That's why I have a question where can be the problem in this behaviour
that keeping 8k MAX_CLUSTSIZE in bss section doesn't work
and keeping 8k MAX_CLUSTSIZE out of bss section works.

bss relocation is not done in SPL.
Maybe someone could know where the problem can be before I look
at ASM code.

Thanks for your hints,
Michal

-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140128/fbb1f6f9/attachment.pgp>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-01-30  7:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-28 14:23 [U-Boot] u-boot spl with fat32 on arm Michal Simek
2014-01-29 21:57 ` Tom Rini
2014-01-30  7:35   ` Michal Simek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox