element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Single-Board Computers
  • Products
  • Dev Tools
  • Single-Board Computers
  • More
  • Cancel
Single-Board Computers
Forum I cannot flash BBB eMMC
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Single-Board Computers to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Verified Answer
  • Replies 15 replies
  • Answers 2 answers
  • Subscribers 60 subscribers
  • Views 1853 views
  • Users 0 members are here
  • beagleboneblack
  • bbb
Related

I cannot flash BBB eMMC

gihu
gihu over 11 years ago

Hi all,

 

I am wroting down here these lines beacause I am quite confused, and maybe I am doing something wrong and I still don't know it.

I have a BBB revision A6. As far as I though, BBB boots from internal eMMC, and can not boot from SD, but

I doanloaded and Android image from here:

Beagleboard:Android - eLinux.org

The first thing it seems extrange for me is that eMMC is 2-GB while Android image is almost 4GB

I have used WIN32 disk imager to write the image in the SD card (I tried on winXP and win8), but when I try to flash the BBB I have no succes, I think I am following all the steps, unplug everything, plug SD card, hold down boot button (I have checked I am holding the write button) and power on while boot button is pressed, but nothing happens, 4 user LEDs are off. I have tried many times (about 20 times), I have changed the power supply, firstly that could be the problem, now I am using 5V 2.1A power supply, over the power connector.

 

But, what is even more extrange, is that if I power on the BBB with the SD card (with build-in Android image), and without presing any button, the BBB boots from SD card and starts Android, and If I power down, remove SD card and power on again, Angstrom distribution is still on BBB.

 

Has anyone seen this behave before?

Is it not posible flash this Android  image because it is larger than eMMC?

So, if BBB can`t boot from SD, what I see when I power on the BBB with the SD card, is a wrong booting?

 

I am very confused and I really appreciate your help

 

Regards,

Miguel

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 11 years ago in reply to rantalbott +3 verified
    Ran Talbott wrote: Interestingly, I accidentally discovered that I don't need to push the "user" switch during power-up to boot from SD. I believe this is because the SD cards have a uEnv.txt file in…
  • rantalbott
    rantalbott over 11 years ago +2 suggested
    My A6 just came in yesterday, but I'm assuming that it'll be able to boot from SD just like my A5s do. Interestingly, I accidentally discovered that I don't need to push the "user" switch during power…
  • Former Member
    Former Member over 11 years ago +1 suggested
    The Android image from the site you reference is a stand-alone Android image for use booting from the SD card only .. it does not, and will not program the on-board eMMC as you desire. For that you will…
  • rantalbott
    0 rantalbott over 11 years ago

    My A6 just came in yesterday, but I'm assuming that it'll be able to boot from SD just like my A5s do.

     

    Interestingly, I accidentally discovered that I don't need to push the "user" switch during power-up to boot from SD. I believe this is because the SD cards have a uEnv.txt file in the small FAT partition that tells the on-board bootloader to use the SD partitions, instead of the MMC.

     

    You'll definitely have to put that Android image on an SD card, and run from there, because you're right:it can't be installed in the MMC because it's too big. If you try to install in the onboard, some directories will point tononexistent locations, and you may not even be able to boot

     

    Ran

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago

    The Android image from the site you reference is a stand-alone Android image for use booting from the SD card only .. it does not, and will not program the on-board eMMC as you desire. For that you will need to search for another "eMMC flasher" image with Android, not Angstrom Linux.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to rantalbott

    Ran Talbott wrote:

    Interestingly, I accidentally discovered that I don't need to push the "user" switch during power-up to boot from SD. I believe this is because the SD cards have a uEnv.txt file in the small FAT partition that tells the on-board bootloader to use the SD partitions, instead of the MMC.

    Actually you do need to push the button to boot from SD.

     

    What you're observing is the BBB booting u-boot from eMMC, that version of u-boot seeing the files on SD and giving those priority which is then able to re-direct part of the process to SD.

    If you delete either of the files MLO or u-boot.img from the first partition on the eMMC then it will not boot from SD unless you hold the button during power on.

     

    This two step process is fine as long as the u-Boot in eMMC and SD card are the same and the kernel on both eMMC and SD are the same, if they're different it can lead to all sorts of problems like booting the kernel from eMMC and using the filesystem from SD. This can mean you boot an Angstrom linux kernel from eMMC and then try to run Android from SD with predictable results.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • gihu
    0 gihu over 11 years ago

    Thank you all,

     

    I am new on linux and its kernels, so I will try to read more about how it works and about its architecture.

    Any suggestions about what to read? and how to start with linux, and build kernels? (I know it is not trivial)

     

    Regards,

    Miguel

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • alamorobotics
    0 alamorobotics over 11 years ago in reply to Former Member

    This is great to know...

     

    I did re-flash the eMMC with the latest Ångström but then decided to try out Ubuntu...

    Ubuntu boots without holding the boot button and seem to work OK...

    However I've been having trouble with the USB sound dongle, the microphone does not work.

    Let me try from scratch and make sure I hold down the boot button to see if it helps... ;-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • morgaine
    0 morgaine over 11 years ago in reply to Former Member

    selsinork wrote:

     

    with predictable results.

    Sometimes I really miss jumpers. image

     

    Morgaine.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • alamorobotics
    0 alamorobotics over 11 years ago

    I came across this little blurb on Beagleboard:Updating The Software - eLinux.org,

    To force a boot from the microSD card, delete the MLO file in the FAT partition of the eMMC.

    You can access this when the board is connected over the USB cable and it appears as a thumbdrive.

     

    Has anyone given it a try ?

    I'll give it a try later tonight after work... ;-)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to alamorobotics

    The table on page 6 of the schematics gives the boot order for normal boot and holding the button down during a power cycle. The idea being that if it doesn't find MLO on the first device, it moves on to the next etc.

     

    I spent some time building my own uSD image to use for flashing the eMMC (sorry, the angstrom one was too slow) and my experience was that it's all to easy to end up in a state that doesn't appear to match the stated boot order. Exactly how you get there isn't clear, holding the button tends to force the right thing.

    What's not always clear is that you need to hold the button during power-on, holding it during a reset or reboot does nothing.  Once you've held the button during a power-on, the change of boot order stays in effect until you power cycle again, so in that state you'll boot to uSD on a reboot or when you press the reset button.  This obviously has the potential to confuse matters if you don't realise what's happening.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • morgaine
    0 morgaine over 11 years ago in reply to Former Member

    selsinork wrote:

     

    What's not always clear is that you need to hold the button during power-on, holding it during a reset or reboot does nothing.

    Sometimes I really miss jumpers.

     

    Morgaine.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to morgaine

    image

    Not sure it would help here, the configuration pins are only sampled on power-up.  Yes, the days when this wasn't the case were in some ways preferable. Unless you'd just spilled a bag of 5000 jumpers on the floor image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube