Need help for New SD Card Setup

Hi all,

Help required to setup SD Card.

I have successfully done two partition on my 2GB SD card, one having
approx 400MB and second having 1.5GB. I have copied MLO u-boot.bin and
uImage file in the same order and also copied ramdisk.gz ramfs.img
md5sum.txt user.scr which are all supplied with my beagleboard XM
rev.A3. In second partition, I have copied my very simple code(.out
file) just printing "Welcom to the world of ARM" which i have compiled
with omap compiler.When I inserted this card into beagle board, few
times it was working fine after that it is not at all detecting. I
have deleted all partiion and reconstruct it but still not getting
success. I have formated both partition and recopied those file but
still facing same issue. All configuration, power supply are ok
because when i inserted the card which is supplied with board, it is
working fine and showing login message on my hyper terminal. i.e my
serial communication settings along with USB to Serial converter are
working fine.

Pls..

Regards,
Vishal

VISHAL SONI wrote:

Hi all,

Help required to setup SD Card.

tl;dr

have deleted all partiion and reconstruct it but still not getting
success. I have formated both partition and recopied those file but

formatting is not enough, you also need to set the 1st partition as
active.

please try to use this script to setup the card:

http://www.angstrom-distribution.org/demo/beagleboard/mkcard.txt

hi vishal,
I'm working devkit8000,we try to boot through sd card,
but its not showing anything in minicom as well as hyperterminnal,
can u send me Wat are the steps should i follow,
-vs

How to make 1st partition active? I am making it as bootable by using command ‘a’.

anything more ?

VISHAL SONI wrote:

How to make 1st partition active? I am making it as bootable by using command 'a'.

same thing

Hi vignesh,

I am also facing same issue. SD card which is supplied with beagle board is working fine. I purchased new sd Card and followed the same things given on site. Few days it was wworking good but one day I tried to copy whole gcc compiler folder into second partition after that it is not working. I have removed and recreated all partition but still it is not working.

Regards
Vishal

vignesh,

Pls check your USB to Serial converter.

Regards
Vishal

How to make 1st partition active? I am making it as bootable by using command ‘a’.

anything more ?

Use the mkcard script. If you are still having problems, provide a log of both your programming and of your booting. You say that you don’t get anything when booting, but if the SD card is left out, you’ll actually get some junk to your serial port as it attempts a serial boot (usually the only thing you can read is “60”). Test your serial cable out on something else, including with tied pins to give you loopback.

I’ve found writing MLO onto the SD card within the MBR (master boot record) to provide some sanity when you can’t get the card formatted properly:
git clone git://gitorious.org/x-loader/x-loader.git
cd x-loader
perl -i.bak -pe “s/omap3530beagle$/omap3530beagle 1/” Makefile
make omap3530beagle_config
make
dd if=MLO of=/dev/your/sd/card bs=1 count=80
dd if=MLO of=/dev/your/sd/card bs=512 skip=1 seek=1

Plz refer to the following artikel:

http://elinux.org/BeagleBoardBeginners

in the zection “SD card setup” and "Formatting the SD card via fdisk “Expert mode”
in the following. I followed the same way for my 8GB Transcend SD Card using “fdisk”
utility provided by this artikel and its working now.

Danka,
Rajiv.

Thnx jason,

I will try and let u know.

Regards
vishal

Hi Jason,

I've found writing MLO onto the SD card within the MBR (master boot record)
to provide some sanity when you can't get the card formatted properly:
git clone git://gitorious.org/x-loader/x-loader.git
cd x-loader
perl -i.bak -pe "s/omap3530beagle$/omap3530beagle 1/" Makefile
make omap3530beagle_config
make
dd if=MLO of=/dev/your/sd/card bs=1 count=80
dd if=MLO of=/dev/your/sd/card bs=512 skip=1 seek=1

Just wondering, It seems that the above dd commands would ignore bytes
81 to 512 in the x-loader image?

Thanks,
Joel

Hi Jason,

I've found writing MLO onto the SD card within the MBR (master boot record)
to provide some sanity when you can't get the card formatted properly:
git clone git://gitorious.org/x-loader/x-loader.git
cd x-loader
perl -i.bak -pe "s/omap3530beagle$/omap3530beagle 1/" Makefile
make omap3530beagle_config
make
dd if=MLO of=/dev/your/sd/card bs=1 count=80
dd if=MLO of=/dev/your/sd/card bs=512 skip=1 seek=1

Just wondering, It seems that the above dd commands would ignore bytes
81 to 512 in the x-loader image?

Correct. With the desired header, those bytes aren't used. The
critical part is to not overwrite the last part of the first 512 bytes
because they would overwrite the card's partition table. That would
be bad.

If x-loader was modified to read from ext2/3 partitions, the FAT
partitions would become unnecessary at this point.

Hi Jason,

Thnx for your suggestion. I tried but still facing the same problem. Let me elaborate the problem. So that you can get more clarification.

I have done three tests with three different SD cards. Test setup details are as below.

  • WINDOWS XP 64 BIT

  • BB-XM-00 Rev A3

  • USB2 SERIAL CONVERTER

  • HYPER TERMINAL ( Settings are 115K Baud Rate with 1 Stop Bit, 8 Data Bits, No parity Bits and Hardware Handshaking None)

SD card details along with snapshots are

  1. SD Card 1 which is supplied with board. It is working fine and I am getting below output.

  2. SD Card 2 & SD Card 3 both are 2 GB and are Transcend microSD cards. With these two SD cards I am not getting any output. Hyperterminal screen is getting blank only. With these two cards, one more thing I have observed and that is the LEDs (2Nos D6 and D7)which are near to SD card are not atall blinking. It seems that beagle board is not able to detect these two SD cards whereas same LEDs were blinking when I used SD Card1(which is supplied with board).

  3. In third test, I have boot up beagle board with SD Card 1(which is supplied with board and working fine). I got login message. As soon as I got this message, I have removed that Card and insert SD Card 2 in power condition. I got below output.

When I inserted SD Card 3, I got below output.

Please note that I have not given any power cycle while getting these output. As soon as I gave power cycle, nothing was coming on hyper terminal.

Also note that I used sdcardsetup.sh and sdload.sh script file for making SD Card 2 & SD Card 3.

Please guide me as I am facing this issue from long back.

Hi Jason.doc (381 KB)

Is there a minimum SD size for the BB?

Mark.

have u tried this :

http://code.google.com/p/beagleboard/wiki/LinuxBootDiskFormat

Yeah amit, I tried this thing also. but still not able to make spare SD card.

Hi Jason,
Follow the below links you can easily solve your questions. As they are more number of unknowns in your problem explanation.

http://translate.googleusercontent.com/translate_c?hl=en&prev=/search%3Fq%3Dhow%2Bto%2Bdownload%2Bgingerbread%2B2.3%2Bon%2Bbeagleboard%26hl%3Den%26rls%3Dig%26biw%3D1366%26bih%3D543%26prmd%3Divns&rurl=translate.google.co.in&sl=ja&u=http://processors.wiki.ti.com/index.php%3Ftitle%3DTI-Android-GingerBread-2.3-DevKit-1.0_DeveloperGuide&usg=ALkJrhgs02QqHbfTozfrlqniNbdvQJ2_7A

http://code.google.com/p/beagleboard/wiki/BeagleSoftCompile

You should be able to cut and paste your steps into a file or email and post it so that we could see what is going wrong. It’s quite a straightforward procedure and followed bullet by bullet nothing should go wrong.

The only problem I’ve encountered so far is with 32GB SD cards, they partition and format OK, but filesystem checks always find problems on the second ext4 partition.
Regards
Sid.

Yeah amit, I tried this thing also. but still not able to make spare SD card.

hi,
this link may help you…
http://groups.google.com/group/beagleboard/browse_thread/thread/cf9b1931e5489a1f/67ff1bd94a61f133?lnk=raot&pli=1

cheers,
Yadi.