SD card setup script?

292 views
Skip to first unread message

Till Harbaum / Lists

unread,
Nov 23, 2010, 2:30:43 PM11/23/10
to beagl...@googlegroups.com
Hi,

i am working on MeeGo on BeagleBoard and i'd like to simplify the installation as far as possible. So
i wonder if there's a script somewhere that can automate the somewhat tricky formatting of a given sd card.

Does such a script exist?

Regard,
Till

Robert Nelson

unread,
Nov 23, 2010, 7:25:15 PM11/23/10
to beagl...@googlegroups.com

Till Harbaum

unread,
Nov 24, 2010, 8:12:08 AM11/24/10
to beagl...@googlegroups.com, Robert Nelson
Hi,

thanks, exactly what i was looking for!

Till

Maxim Podbereznyy

unread,
Nov 24, 2010, 1:24:08 PM11/24/10
to beagl...@googlegroups.com
Angstrom version (omap3-mkcard.sh) does not provide a way to make a SWAP partition. Sometimes it is necessary


2010/11/24 Till Harbaum <ti...@harbaum.org>
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.


slchen

unread,
Nov 24, 2010, 8:43:31 PM11/24/10
to Beagle Board
Hi Robert,

I am noticed that you don't calculate the cylinder according to the
size of the disk.
Does the cylinder determined implicitly according to the header and
sector you specified?
Thinks...

>
> Mine:https://github.com/RobertCNelson/omap-image-builder/blob/master/tools...

Robert Nelson

unread,
Nov 26, 2010, 1:12:13 PM11/26/10
to beagl...@googlegroups.com
On Wed, Nov 24, 2010 at 7:43 PM, slchen <drift...@gmail.com> wrote:
> Hi Robert,
>
> I am noticed that you don't calculate the cylinder according to the
> size of the disk.
> Does the cylinder determined implicitly according to the header and
> sector you specified?
> Thinks...

Hi,

Yeah, the parameters to create the first 'fat' partition are pretty
unique.. It's more off, these settings seem to work best with the
internal bootrom, then what is optimized for the end user's specific
sd card..

luca26

unread,
Nov 26, 2010, 2:48:56 PM11/26/10
to Beagle Board
I'd like to suggest you to consider systems like Slackware Linux.
When formatting the vfat partition the scripts you posted use
mkfs.vfat but my OS (Slackware 13.1) hasn't that command .
I replaced mkfs.vfat in the (Angstrom) script with mkdosfs.

Robert Nelson

unread,
Nov 26, 2010, 5:05:42 PM11/26/10
to beagl...@googlegroups.com

It's actually been a long time since i've used slackware.. (386 days)...

currently the script does:

sudo mkfs.vfat -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} &>
${DIR}/sd.log

so does

sudo mkdosfs -F 16 ${MMC}${PARTITION_PREFIX}1 -n ${BOOT_LABEL} &> ${DIR}/sd.log

work just fine for you?

I'm thinking of doing a 'whereis on mkfs.vfat' if not found, then try
'whereis mkdsofs'.. to detect this issue.

Or are you thinking a differnet way? i'd like to keep away from
detecting every possible distribution, as there is only a few tools
actually being used in the script..

mkimage from u-boot

mkfs.vfat

mkfs.ext2
mkfs.ext3
mkfs.ext4
mkfs.btrfs

luca26

unread,
Nov 27, 2010, 6:56:44 AM11/27/10
to Beagle Board
I edited the script from Angstrom:
http://www.angstrom-distribution.org/demo/beagleboard/mkcard.txt

replacing mkfs.vfat with mkdosfs and all works fine.

On Nov 26, 11:05 pm, Robert Nelson <robertcnel...@gmail.com> wrote:

Vladimir Pantelic

unread,
Nov 29, 2010, 3:34:49 AM11/29/10
to beagl...@googlegroups.com
slchen wrote:
> Hi Robert,
>
> I am noticed that you don't calculate the cylinder according to the
> size of the disk.
> Does the cylinder determined implicitly according to the header and
> sector you specified?

1) there is no disk

2) there are no cylinders

3) the boot rom does not care about the C/H/S values in the partition table.

Robert Nelson

unread,
Nov 29, 2010, 9:54:10 AM11/29/10
to beagl...@googlegroups.com

Retested on my Bx/Cx/xM seems safe now without this old tweak/workaround...

Reply all
Reply to author
Forward
0 new messages