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 Beaglebone Black (rev. C) booting from Ethernet (RJ45)
  • 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
  • Replies 4 replies
  • Subscribers 105 subscribers
  • Views 3334 views
  • Users 0 members are here
Related

Beaglebone Black (rev. C) booting from Ethernet (RJ45)

elem2018
elem2018 over 6 years ago

Hello,

 

I have a BBB rev. C, trying to boot it from ethernet (RJ45) in the sequence of MLO ---> u-boot.img  ---> zImage.bin.  MLO, u-boot.img and zImage.bin are located in the same folder /tftpboot

Following configurations are done in /etc/dhcp/dhcpd.conf

------------------------------------------------------

subnet 192.168.0.0 netmask 255.255.255.0 {

  range 192.168.0.2 192.168.0.100;

  if substring (option vendor-class-identifier, 0, 10) = "AM335x ROM"

  {

    filename "MLO";

  }

  elsif substring (option vendor-class-identifier, 0, 10) = "DM814x ROM"

  {

    filename "MLO";

  }

  elsif substring (option vendor-class-identifier, 0, 17) = "AM335x U-Boot SPL"

  {

    filename "u-boot.img";

  }

  else

  {

    filename "zImage.bin";

  }

}

------------------------------------------------------

I confirm that either tftp and dhcp server works fine, because I tested them in u-boot from a bootable SD card.

Then I removed the SD card, cleaned emmc (writing zeros into emmc) and reset BBB.  I expected that the rom loader in BBB

will read the configration from the dhcpd.conf via ethernet and boot first MLO, then u-boot.img and finally the zImage.bin.

 

But what I see are only CCCCCCC...

Am I missing something in configuration? Would you please help me to make the BBB bootable (MLO, u-boot.img and zImag.bin) from Ethernet?

 

Thanks

Xi

  • Sign in to reply
  • Cancel

Top Replies

  • gdstew
    gdstew over 6 years ago +1
    According to TI documentation: General Boot Sequence (Linux system) Boot sequence (in order) Boot ROM X-loader U-boot Linux At power-up an OMAP3 device begins booting from internal Boot ROM. This code…
  • rsjsouza
    rsjsouza over 6 years ago

    Xi,

     

    I don't think the BeagleBone Black boots directly from Ethernet - I recall testing this several months ago but I forgot where I stopped trying.

     

    You will probably need a SD card with MLO/u-boot that explicitly connects to the tftp and downloads the kernel to the board memory.

     

    Reference; https://www.twam.info/hardware/beaglebone-black/u-boot-on-beaglebone-black

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • gdstew
    gdstew over 6 years ago

    According to TI documentation:

     

    General Boot Sequence (Linux system)

    Boot sequence (in order)

    • Boot ROM
    • X-loader
    • U-boot
    • Linux


    At power-up an OMAP3 device begins booting from internal Boot ROM.  This code is fixed during the manufacturing process and cannot be altered.  The Boot ROM reads boot configuration pins (SW4 on the OMAP3 EVM) which tell the Boot ROM where to look for the first external bootloader.  The choices include NAND, UART, and SD/MMC Card.  Control is then passed to this first external bootloader called x-loader.  The x-loader application is included in the Linux PSP provided by TI and can be modified by the end user.  The x-loader application passes control to u-boot.  U-boot is also a bootloader and is considered the second external bootloader in this case.


    U-boot is the application which passes control to the Linux system.  The main goal of u-boot is to retrieve the Linux kernel and provide the kernel with information about the location of the Linux filesystem.  U-boot can be configured to retrieve the kernel from NAND, SD/MMC Card, UART or Ethernet (via TFTP).  U-boot can also specify a root filesystem that is located in NAND (jffs2), SRAM (ramdisk), SD/MMC card (ext3 partition) or mounted over IP (NFS).


    U-boot then boots the Linux kernel.  The Linux kernel mounts the Linux root filesystem.

     

     

    So the internal boot ROM will not look for any DHCP configuration information over Ethernet at least, I'm not sure what it is looking for over the UART (an  x-loader?). Your only choices look to be a modified x-loader or U-boot. I know U-boot can boot over

    tftp or nfs so that looks like the easiest path.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • elem2018
    elem2018 over 6 years ago

    Thanks for your answer. After lots of google I believe you are right, on BBB direct ethernet boot from RJ45 is impossible. But could you please give me some hints how to write the SD card image (at least MLO and u-boot) into emmc? I unfrotunately wrote zeros into emmc. I tried to hold the S2 swtich during SD boot for 10 seconds, but no emmc flashing happened.  What is the right way to falsh the emmc?

    Regards

    Xi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jomoenginer
    jomoenginer over 6 years ago in reply to elem2018

    If you have already downloaded and burnt the last BB image to an SD card,

     

    1. Take the SD card and place it back into the system used to burn the image

     

    2. Navigate to '/boot' the  folder and edit the uEnv.txt file and uncomment (remove the '#' symbol) for the following line:

     

    #cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v2.sh

     

    3. Place the SD card back into the BBB and power it on.  The emmc should start flashing at this point; no need to push the boot button.

     

    4. Once the flash is complete, power off the BBB again, remove the SD card.

     

    5. Place it back into another system and comment out the line mentioned previously again.

     

    6. Place the card back into the BBB, and power it on.  

     

    If all went well, the board should boot normally  and emmc should be updated.

     

    Hopefully I did not miss anything

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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