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
BeagleBoard
  • Products
  • Dev Tools
  • Single-Board Computers
  • BeagleBoard
  • More
  • Cancel
BeagleBoard
Forum Upgrading Kernel on BeagleBone Black
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
BeagleBoard requires membership for participation - click to join
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 11 replies
  • Subscribers 100 subscribers
  • Views 4434 views
  • Users 0 members are here
  • tftp_server
  • uboot
  • crosscompiler
  • kernel
  • BeagleBone Black
Related

Upgrading Kernel on BeagleBone Black

Former Member
Former Member over 9 years ago

Hi,

 

I'm trying to upgrade the kernel of a BeagleBone Black from '3.8.13-bone79' to '4.1.16-bone18'.

The build of the new kernel is done under a virtual machine of Ubuntu15 with 'arm-linux-gnueabihf' cross-compiler, and then kernel is downloaded to BeagleBone Black through tftp.

 

BeagleBone Black Configuration:

  • Hardware: BeagleBone Black 4GB rev.C
  • OS: Debian 4.6.3-14
  • Kernel (current): 3.8.13-bone79
  • Internet connection: USB ('USB0') & Ethernet ('eth0')
    • Download the zImage and dtb files is done through a tftp server over windows.

 

* All the steps followed are from this tutorial.

 

After build and download the kernel, and copy the modules to BeagleBone Black too, the device is rebooted and a terminal console is opened through serial port to access to uBoot.

Following again the above tutorial steps, it is time to load the kernel and reboot the device.

Here, it is when process fails with next message:

/etc/rc.local: 14: /etc/rc.local: cannot create /sys/devices/bone_capemgr1/slots: Directory nonexistent
[FAIL] startpar: service(s) returned failure: rc.local ... failed!

 

Does anyone have an idea bout why is this happening?

I would thank any hint to understand the root cause and how can I finally upgrade the kernel.

 

KR!

  • Sign in to reply
  • Cancel

Top Replies

  • Former Member
    Former Member over 9 years ago in reply to clem57 +1
    Hi, is is fixed. Finally, I have changed the BBB's kernel (3.8.13 -> 4.1.16). I had to modify one line into ' /etc/inittab ' file. Original: T0:23:respawn:/sbin/getty -L tty O 0 115200 vt102 Modified:…
Parents
  • clem57
    clem57 over 9 years ago

    My guess is the environment or directories was not built. Please capture  /etc/rc.local/ here.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to clem57

    Please, find below the content of '/etc/rc.local':

     

         #!/bin/sh -e

         #

         # rc.local

         #

         # This script is executed at the end of each multiuser runlevel.

         # Make sure that the script will "exit 0" on success or any other

         # value on error.

         #

         # In order to enable or disable this script just change the execution

         # bits.

         #

         # By default this script does nothing.

        

         echo ttyO2_armhf.com > /sys/devices/bone_capemgr1/slots

         echo ttyO5_armhf.com > /sys/devices/bone_capemgr2/slots

        

         exit 0

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to Former Member

    Just comment out two echo lines since by default it does nothing.image

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to clem57

    Hi,

     

    I have just commented both lines, and the process goes well until console starts to show:

    "INIT: Id "T0" respawning too fast: disabled for 5 minutes"

     

    Then, the process enters into an infinite loop showing message every 5 minutes.

     

    What process is T0? And how can I solved this?

     

    KR!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to Former Member

    The "respawning too fast" message is telling you that your X-server (or xorg.conf file) is miss-configured, and the X-server is crashing when it tries to start and trying to restart too fast or too often.

     

     

    From the command line, look at /var/log/Xorg.0.log to see why the X-server crashed, and fix the problem.

     

    I believe you need to recheck the tutorial or restart the build? This is not a small issue.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 9 years ago in reply to clem57

    Hi,

     

    is is fixed.

    Finally, I have changed the BBB's kernel (3.8.13 -> 4.1.16).

     

    I had to modify one line into '/etc/inittab' file.

    • Original: T0:23:respawn:/sbin/getty -L ttyO0 115200 vt102
    • Modified: T0:23:respawn:/sbin/getty -L ttyS0 115200 vt102

     

    Then, after doing the whole process I have written my own tutorial with the steps that worked for me.

     

    KR!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • clem57
    clem57 over 9 years ago in reply to Former Member

    Glad you found the bad line, Do you know why the change?

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mushahidgillani786
    mushahidgillani786 over 3 years ago in reply to Former Member

    Can you please share the link for your steps ? I want to flash my compiled kernel on beaglebone black. Thanks

     

    Mushahid

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • mushahidgillani786
    mushahidgillani786 over 3 years ago in reply to Former Member

    Can you please share the link for your steps ? I want to flash my compiled kernel on beaglebone black. Thanks

     

    Mushahid

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