SD card setup script?

290 megtekintés
Ugrás az első olvasatlan üzenetre

Till Harbaum / Lists

olvasatlan,
2010. nov. 23. 14:30:432010. 11. 23.
– 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

olvasatlan,
2010. nov. 23. 19:25:152010. 11. 23.
– beagl...@googlegroups.com

Till Harbaum

olvasatlan,
2010. nov. 24. 8:12:082010. 11. 24.
– beagl...@googlegroups.com, Robert Nelson
Hi,

thanks, exactly what i was looking for!

Till

Maxim Podbereznyy

olvasatlan,
2010. nov. 24. 13:24:082010. 11. 24.
– 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

olvasatlan,
2010. nov. 24. 20:43:312010. 11. 24.
– 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

olvasatlan,
2010. nov. 26. 13:12:132010. 11. 26.
– 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

olvasatlan,
2010. nov. 26. 14:48:562010. 11. 26.
– 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

olvasatlan,
2010. nov. 26. 17:05:422010. 11. 26.
– 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

olvasatlan,
2010. nov. 27. 6:56:442010. 11. 27.
– 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

olvasatlan,
2010. nov. 29. 3:34:492010. 11. 29.
– 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

olvasatlan,
2010. nov. 29. 9:54:102010. 11. 29.
– beagl...@googlegroups.com

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

Válasz mindenkinek
Válasz a szerzőnek
Továbbítás
0 új üzenet