[uClinux-dev] Problems with 2GB FAT16 SD/CF cards - resolved

Wolfgang Mües wolfgang at iksw-muees.de
Sun Oct 28 04:54:15 EST 2007


Hello,

DSLINUX (www.dslinux.org) is using mostly SD cards for file system 
storage. With the advent of 2 GByte SD cards with FAT16 and 32KByte 
clustersize, many user have reported problems (data aborts while 
traversing directories).

I have found that busybox needs more stack space to fix this problem.
This was a hard-to-nail-down error, because with directory traversal 
problems, network scripts fail, gdbserver fails, etc.

Patch appended.

Wolfgang

--- trunk/user/busybox/Rules.mak        2007-10-25 18:45:33 UTC (rev 
2027)
+++ trunk/user/busybox/Rules.mak        2007-10-26 17:19:23 UTC (rev 
2028)
@@ -47,7 +47,8 @@
 # MAKEFILES      = $(TOPDIR).config
 endif
 
-FLTFLAGS       += -s 20000
+# Note that 20K stack space is too low if we use 2GB SD cards
+FLTFLAGS       += -s 30000
 
 # What OS are you compiling busybox for?  This allows you to include
 # OS specific things, syscall overrides, etc.



-- 
Das Leben kann nur rückwärts verstanden,
muß aber vorwärts gelebt werden.


More information about the uClinux-dev mailing list