>> The magic number I've been using is 3750, which is working on >> SanDisk/Kingston/Samsung 4GB >> >> https://github.com/RobertCNelson/omap-image-builder/blob/master/tools/setup_sdcard.sh#L1540 >> > > Yes, 3750*1024*1024 is 3.932 GB, the size of the image file. > > Reducing this to 3750 * 3.904/3.932 or 3723 would make it fit this SD card. > I would suggest reducing it slightly more, to 3700 to allow for other > smaller cards.
Okay, just dropped it to 3700.. https://github.com/beagleboard/image-builder/commit/b6288e9ebbe3a688b4c9623ce3c94bfdb9e5e305 > >> > I know that the armhf.com images are 2 GB. These can be copied to a >> > larger >> > SD card and then fdisk is used to resize the second partition to fill >> > the SD >> > card, and finally the filesystem is resized to match the new partition >> > size. >> > This seems like a better approach than arbitrarily reducing the image >> > size >> > to fit on undersized SD cards, though it is more complicated. >> >> If you want a 2Gb image, pass the "--img" option vs the "img-4gb" >> option to setup_sdcard.sh.. >> > > I think I'll do that. I will also look at creating a script to automate the > expansion process so that the result automatically fills the SD card to its > full capacity, regardless of its exact size. What i'd really like to see is a script that can be run on target to automatically re-size it, even on bootup... Because, if your already running linux, instead of resizing the *.img for your microSD, you can just already call "--mmc /dev/sdX" with setup_sdcard.sh and it'll auto partition your microSD using all the available space. Of course the "--img" option allows you to easily share a completed image that doesn't need network access to pull in the extra bits setup_sdcard.sh.. Regards, -- Robert Nelson http://www.rcn-ee.com/ -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
