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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum Flash old Debian 7.9 image from uSD to newer BBB (Debian 8.3)
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join BeagleBoard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 1 reply
  • Answers 1 answer
  • Subscribers 102 subscribers
  • Views 900 views
  • Users 0 members are here
Related

Flash old Debian 7.9 image from uSD to newer BBB (Debian 8.3)

fupjones
fupjones over 8 years ago

For the last couple of years, I have been successfully flashing my application image from a uSD card to production units on the Element14 BBB rev C.  However this no longer works with the latest BBB's received from Element14.  I believe this is because the new boards were shipped with a newer image that uses a single partition in the eMMC, which breaks the old flasher script.  Specifically, we have been booting from the uSD and using /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh to flash our boards.

 

My production image is based on 3.8.13-bone79 (Debian 7.9), which has separate partitions for boot and rootfs.  The boards I am trying to flash have 4.1.15-ti-rt-r43 (Debian 8.3).

 

I have attempted to reformat the eMMC to match the format of the older board (two partitions), but this does not fix the problem.

 

The following is the output of fdisk -l on my older boards that work.

 

debian@beaglebone:/dev/disk$ fdisk -l
Disk /dev/mmcblk0: 3925 MB, 3925868544 bytes
4 heads, 16 sectors/track, 119808 cylinders, total 7667712 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1   *        2048      198655       98304    e  W95 FAT16 (LBA)
/dev/mmcblk0p2          198656     7667711     3734528   83  Linux

Disk /dev/mmcblk0boot1: 1 MB, 1048576 bytes
4 heads, 16 sectors/track, 32 cylinders, total 2048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mmcblk0boot1 doesn't contain a valid partition table

Disk /dev/mmcblk0boot0: 1 MB, 1048576 bytes
4 heads, 16 sectors/track, 32 cylinders, total 2048 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000


Disk /dev/mmcblk0boot0 doesn't contain a valid partition table

 

And this is the fdisk -l output on a newer board after my attempt at reformatting (note, I have to boot from uSD to view the disk format, obviously).

 

root@beaglebone:/home/debian# fdisk -l
Disk /dev/mmcblk0: 3.7 GiB, 3965190144 bytes, 7744512 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0aa8d2b0

Device         Boot Start     End Sectors  Size Id Type
/dev/mmcblk0p1 *     8192 6963199 6955008  3.3G 83 Linux

Disk /dev/mmcblk1: 3.6 GiB, 3825205248 bytes, 7471104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x894089be

Device         Boot  Start     End Sectors  Size Id Type
/dev/mmcblk1p1 *      2048  198655  196608   96M  e W95 FAT16 (LBA)
/dev/mmcblk1p2      198656 7471103 7272448  3.5G 83 Linux

Disk /dev/mmcblk1boot1: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk /dev/mmcblk1boot0: 2 MiB, 2097152 bytes, 4096 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

 

Does anyone have any ideas about why this is not working for me?  I assume there is something wrong with my format, but maybe there is something else I don't understand.  Since all application testing has been done on Debian 7.9, changing to a newer O/S version would be a major issue for us.  This seems like it would be a common problem for anyone trying to use BBB in a production environment.

 

Thanks in advance for any help,

Jason

 

Edit

 

It is now clear why the flasher is not working.  When booting from the old uSD card (with Debian 7.9), the eMMC device is not recognized by the O/S.  Only mmcblk0 is listed in /dev and by lsblk (see below).

 

root@beaglebone:~# lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
mmcblk0     179:0    0   3.7G  0 disk
|-mmcblk0p1 179:1    0    96M  0 part
`-mmcblk0p2 179:2    0   3.6G  0 part /

 

However, if I boot from an uSD with a newer Debian version (say 9.2), the mmc devices look like this

 

debian@beaglebone:~$ lsblk
NAME         MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk0      179:0    0  3.7G  0 disk
|-mmcblk0p1  179:1    0  3.3G  0 part /
mmcblk1      179:8    0  3.6G  0 disk
|-mmcblk1p1  179:9    0  3.6G  0 part
mmcblk1boot0 179:16   0    2M  1 disk
mmcblk1boot1 179:24   0    2M  1 disk

I can't figure out why this would be unless there is a hardware difference.   Is there some other formatting incompatibility that is preventing the eMMC from showing up in /dev?  If so, is there any way to make it readable by the older O/S?

 

Message was edited by: Jason Jones

  • Sign in to reply
  • Cancel

Top Replies

  • fupjones
    fupjones over 8 years ago +1 suggested
    I eventually found the answer on beaglebone.org discussion group (see below) http://beagleboard.org/discuss?place=msg%2Fbeaglebone%2F0X60B39p8ps%2Fx3B1Gd9LBAAJ In addition, Newark tech support sent me…
Parents
  • fupjones
    0 fupjones over 8 years ago

    I eventually found the answer on beaglebone.org discussion group (see below)

    http://beagleboard.org/discuss?place=msg%2Fbeaglebone%2F0X60B39p8ps%2Fx3B1Gd9LBAAJ

     

     

     

     

    In addition, Newark tech support sent me the following explanation about the eMMC change.

    There was a change in the eMMC (JEDEC 5.1) as the previous version (JEDEC 5.0) was EOL’d. Older kernels do not support JEDEC 5.1 so you will need to update to Debian Image 7.11 or later for compatibility. If you use older version you may be able to install some patches to make the eMMC work. If this is your case please let me know the version of your image so that I can check for patches.

     

     

     

     

    In the end, I did a kernel update from 3.8.13-bone79 to 3.8.13-bone8X following the instructions at the link below and the issue was resolved.

    https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Upgrade

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • fupjones
    0 fupjones over 8 years ago

    I eventually found the answer on beaglebone.org discussion group (see below)

    http://beagleboard.org/discuss?place=msg%2Fbeaglebone%2F0X60B39p8ps%2Fx3B1Gd9LBAAJ

     

     

     

     

    In addition, Newark tech support sent me the following explanation about the eMMC change.

    There was a change in the eMMC (JEDEC 5.1) as the previous version (JEDEC 5.0) was EOL’d. Older kernels do not support JEDEC 5.1 so you will need to update to Debian Image 7.11 or later for compatibility. If you use older version you may be able to install some patches to make the eMMC work. If this is your case please let me know the version of your image so that I can check for patches.

     

     

     

     

    In the end, I did a kernel update from 3.8.13-bone79 to 3.8.13-bone8X following the instructions at the link below and the issue was resolved.

    https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Upgrade

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
No Data
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