X
 
 
BiWord currently has: 225 Members, 14 Groups, 0 Photos, 28 Videos publicly available. Register now, to access more.


Pages home > Prepare SD card for Beagle board

Prepare SD card for Beagle board

Determine which device the SD Card Reader is on your system

Insert the SD Card into the SD Card Reader reader on your Linux PC. Then determine which device it is on your system:

  • [ dmesg | tail ]
  • Check to see if the automounter has mounted the SD Card:
  • If mounted, unmount the SD card
  • [ umount /media/mmcblk0 ]
  • Start fdisk:
  • [sudo fdisk /dev/mmcblk0 ]
  • Print the partition record:
  • Command (m for help): [ p ]
  • Delete any partitions that are already on the SD card:
  • Command (m for help): [ d ]
  • Set the Geometry of the SD Card:
  • Go into "Expert mode":
  • Command (m for help): [ x ]
  • Now we want to set the geometry to 255 heads, 63 sectors and calculate the number of cylinders required for the particular SD card you are using:
  • Expert command (m for help): [ h ]      ---------set heads
  • Number of heads (1-256, default 57): [ 255 ]

 

  • Expert command (m for help): [ s ]           --------sectors

Number of sectors (1-63, default 56): [ 63 ]
Warning: setting sector offset for DOS compatiblity

Now Calculate the number of Cylinders for your SD card:

number of cylinders = FLOOR (the number of Bytes on the SD Card (from above) / 255 heads / 63 sectors / 512 sector size in bytes )

 

  • Expert command (m for help): [ c ]

Number of cylinders (1-1048576, default 1203): 239 -----calculated cylinders

  • Return to "Normal" mode:

    Expert command (m for help):[ r ]

  • Create the FAT32 partition for booting and transferring files from your PC
  • Command (m for help): [ n ]

Command action
e extended
p primary partition (1-4)
[ p ]
Partition number (1-4): [ 1 ] ------select first partition
First cylinder (1-15, default 1): 1
Last cylinder or +size or +sizeM or +sizeK (1-239, default 239):[ +50 ]

Command (m for help): [ t ]
Selected partition 1
Hex code (type L to list codes):[ c ]
Changed system type of partition 1 to c (W95 FAT32 (LBA))

Command (m for help): [ n ]
Command action
    e   extended
    p   primary partition
(1-4)
[p]
Partition number (1-4): [2]
First cylinder (52-245, default 52): [(press Enter)]
Using default value 52
Last cylinder or +size or +sizeM or +sizeK (52-245, default 245): [(press Enter)]
Using default value 239

Command (m for help): [ p ]

            The two partitions are given the volume names LABEL1 and LABEL2 by these               commands. You can substitute your own volume labels.

[ sudo mkfs.msdos -F 32 /dev/mmcblk0p1 -n LABEL1 ]


[sudo mkfs.ext3 -L LABEL2 /dev/mmcblk0p2]

  • Copy files onto the BOOT partition

           MLO

          uboot.bin
          uImage

  • cp MLO /media/mmcblk0p1
  • cp u-boot.in /media/mmcblk0p1
  • cp uImage  /media/mmcblk0p1
  • Copy the files onto the Linux partition
  • cp test-rootfs.tar.gz /media/mmcblk0p2

The next step is to extract the files in test-rootfs.tar.gz into the rootfs partition (NOT the boot partition) on the SD card. This can only be done by using Linux.

  • sudo tar -zxvf test-rootfs.tar.gz -C /media/rootfs

Unmount the SD card from the Linux PC and insert it into the BeagleBoard's SD connector.

Then boot your BeagleBoard while holding down the "User" button.


Last updated 68 days ago by vinay