I downloaded the MLO and u-boot images from the above mentioned sites. But
that did not work as well. Following is what i did step by step.

1. Renamed the MLO-am335x_evm-v2015.10-r12 to MLO
2. Renamed the u-boot-am335x_evm-v2015.10-r12.img to u-boot.img
3. Ran the following script( which i downloaded from one of the sites) to
partition the SDCARD
-------------------------------------------------------------------------------------------------------------------------------------------------------
































































































































*#!/bin/bash##  Script for formatting SD Card for booting Linux.##  Author:
David Weber#  Copyright (C) 2011 Avnet Electronics Marketing##  This
program is free software; you can redistribute it and/or modify#  it under
the terms of the GNU General Public License as published by#  the Free
Software Foundation; either version 2 of the License, or#  (at your option)
any later version.##  This program is distributed in the hope that it will
be useful,#  but WITHOUT ANY WARRANTY; without even the implied warranty
of#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the#  GNU
General Public License for more details.##  You should have received a copy
of the GNU General Public License#  along with this program; if not, write
to the Free Software#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
USA.#function print_msg(){  echo ""  echo
"--------------------------------------------------------------------------------"
echo " $1"  echo
"--------------------------------------------------------------------------------"}device=/dev/sdb;#
check command argumentsif [ "$#" -lt "1" ]; then  echo "usage: sudo $0
<disk> [part1 size (MB)] [part2 size (MB)]"  exit;fiif [ ! -b "${device}"
]; then  print_msg "Error: device ${device} not found"  exitfi# setup some
constantsn_heads=255n_sectors=63sector_sz=512# setup some
defaultspart1_MB=120if [ "$#" -gt "1" ]; then
part1_MB=$2fipart1_n_cyl=`echo
${part1_MB}*1024*1024/${sector_sz}/${n_heads}/${n_sectors} |
bc`part2_n_cyl= # if the second partition size is specified, calculate n
cylinders for itif [ "$#" -gt "2" ]; then  part2_MB=$3  part2_n_cyl=`echo
${part2_MB}*1024*1024/${sector_sz}/${n_heads}/${n_sectors} | bc`fi# setup
partition typesdos=0x0Clinux=L# assign partition types to each
partitionpart1_type=${dos}part2_type=${linux}# assign partition labels to
each partitionpart1_label=bootpart2_label=root# unmount any existing device
partitionsprint_msg "Unmounting any mounted partitions on
${device}"devlist=`df | grep ${device}`if [ "$devlist" != "" ]; then  df |
grep ${device} | awk '{print $1}' | xargs
umountfimbr_sz=532mbr_file=sd.mbr.dd# see man page for sfdisk for more
infoprint_msg "Clearing MBR (first ${mbr_sz} bytes) of ${device}"dd
of=${device} if=/dev/zero bs=${mbr_sz} count=1# create partition
tableprint_msg "Creating partition table on ${device}"# look for the MBR
saved from a previous execution of this scriptif [ -f "${mbr_file}" ];
then  dd of=${device} if=${mbr_file} bs=${mbr_sz} count=1else  fdisk
${device} > /dev/null << EOFwEOF  # save off the MBR so we can avoid
running fdisk next time this script runs, because  # fdisk always produces
a warning message  dd of=${mbr_file} if=${device} bs=${mbr_sz} count=1fi#
calculate number of cylinders on diskdevice_sz=`blockdev --getsize64
${device}`n_cylinders=`echo
${device_sz}*1024/${n_heads}/${n_sectors}/${sector_sz} | bc`# create the
partitions on the diskprint_msg "Creating boot and root partitions on
${device}"sfdisk -D -H ${n_heads} -S ${n_sectors} -C ${n_cylinders}
${device} <<
EOF,${part1_n_cyl},${part1_type},*,${part2_n_cyl},${part2_type},-EOF#
insure that the kernel is aware of the new partitionspartprobe ${device}#
format the partitionsprint_msg "Formatting (FAT32) boot partition
${device}1"mkfs.vfat -F 32 -n "${part1_label}" ${device}1print_msg
"Formatting (EXT3) root partition ${device}2"mkfs.ext3 -L "${part2_label}"
${device}2# list the partitions to verify successsfdisk -l  ${device}*
---------------------------------------------------------------------------------------------------------------------------------------------------------------------

4. Pulled out the SD card USB adaptor and inserted it again.

5. Created the boot and root directories in /media

     #sudo mkdir /media/boot
     #sudo mkdir /media/root

6. Mounted the /dev/sdb1(the fat32 partition) and /dev/sdb2(the root
partition)

    #sudo mount /dev/sdb1 /media/boot
    #sudo mount /dev/sdb2 /media/root

7. Copied the MLO and u-boot.img file to boot mount

    #sudo cp ./MLO /media/boot
    #sudo cp ./u-boot.img /media/boot

8. Unmounted the boot and root partitions

  #sudo umount /media/boot
  #sudo umount /media/root

9. Pulled out the usb adaptor from the PC
10. removed the sdcard from that and inserted in the beaglebone sdcard slot
11. Pressed the boot button and given power
12. NOTHING CAME ON THE CONSOLE
13. pulled out the power and given again without pressing the boot button,
and after around 1 min got sequence of "C" on the console.

Please help

Regards,
Madhukar Sah

On Wed, Nov 25, 2015 at 9:06 PM, Robert Nelson <[email protected]>
wrote:

> On Wed, Nov 25, 2015 at 9:32 AM, Madhukar Sah <[email protected]>
> wrote:
> > Mr. Peter ,
> >
> >     I did what you asked. It did print "C" around 10 times. But it is
> > printing it when i give power to the board and do not press any boot
> button
> > and around 1 min or so it prints a sequence of "C".
> >    On the contrary when i press the boot button and wait nothing is
> > printing.
>
> Compare what you did with:
>
>
> https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-SetupmicroSDcard
>
> >
> >     Shall i use an external power supply and check rather than relying on
> > USB power(I am not a hardware guy). Do you think it might be the reason?
> >
> >     I flashed the MLO image found in the eMMC chip (that i copied to my
> > laptop before changing its name). Do you think that would have worked? If
> > not can you send me the working MLO  and u-boot.img file so i can test
> with
> > it.
>
> Current BBB production MLO/u-boot.img:
>
> https://rcn-ee.com/repos/bootloader/am335x_evm/MLO-am335x_evm-v2015.10-r12
>
> https://rcn-ee.com/repos/bootloader/am335x_evm/u-boot-am335x_evm-v2015.10-r12.img
>
> Regards,
>
> --
> Robert Nelson
> https://rcn-ee.com/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/Qer9wwLySRI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/d/optout.

Reply via email to