From: M. E. (E. B. <zn...@ce...> - 2006-11-23 07:41:14
|
M. Edward (Ed) Borasky wrote: > ken staton wrote: > >> i've never used a gumstix for partitioning or formatting. >> >> fdisk then mkdosfs, but i do this on my host system. >> > Well ... I've got a Windows box so I think I'm going to try that. My > experience has been that Linux has trouble making FAT32 partitions that > Windows can read, but not the other way around. > Well ... I couldn't get the Windows box to deal with it, but I managed to get it working using Linux. I suspect this would also work from the Gumstix, but I haven't tried it. 1. On the Linux host, open up "cfdisk". I imagine "fdisk" will work, but I'm used to "cfdisk". 2. Delete the partition. 3. Create a primary partition and set its type to FAT16. I think this should work with FAT32 as well, but the unmodified CF card I have is showing FAT16, so that's what I used. Apparently u-boot needs to have this type flag set. I suppose I can dig into the u-boot code and figure out what it will tolerate. 4. Do "mkdosfs -F 16" to format the partition. 5. Mount the partition and copy the four files (gumstix-factory.script, rootfs.img, ramdisk.img, and uImage-2.6.17-initrd) to the partition. 6. sync and wait ... and wait ... it takes a while. 7. umount the partition. You may need to wait again. 8. Put the MMC card in the Waysmall and reboot. It came up! So ... I still don't know why this magic doesn't work on the CF card in the Netstix. That one I haven't reformatted, so it's a mystery. I don't know why the "fdisk" and "mkdosfs" steps shouldn't work on the gumstix. Now that I know how to get it to work, I may experiment with it. -- M. Edward (Ed) Borasky, FBG, AB, PTA, PGS, MS, MNLP, NST, ACMC(P) http://borasky-research.blogspot.com/ If God had meant for carrots to be eaten cooked, He would have given rabbits fire. |