• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » ARM® Processors » Sitara™ ARM® » AM3x Sitara ARM Processors Forum » how to build a kernel for beaglebone from scratch?
Share
Sitara™ ARM®
  • Forum
  • Announcements
Options
  • Subscribe via RSS

how to build a kernel for beaglebone from scratch?

how to build a kernel for beaglebone from scratch?

This question is answered
Jin Yu1
Posted by Jin Yu1
on Jun 07 2012 16:03 PM
Intellectual485 points

Hi, there:

I go through the forum, did not find answer about this.

I am using arm-linux-gnueabi to try to build a kernel for beaglebone. I get the source from git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-oamp.git. The system boot and stopped after loading the kernel. 

Can anyone tell me what kernel source I need to use?

Thank you!

Jin

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Chase Maupin
    Posted by Chase Maupin
    on Jun 07 2012 16:33 PM
    Verified Answer
    Verified by Jin Yu1
    Expert4890 points

    Jin,


    I would recommend you try the kernel from the Sitara Linux SDK at http://software-dl.ti.com/dsps/dsps_public_sw/am_bu/sdk/AM335xSDK/latest/index_FDS.html.

    There is also a GCC toolchain in that SDK

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin Yu1
    Posted by Jin Yu1
    on Jun 08 2012 11:27 AM
    Verified Answer
    Verified by Jin Yu1
    Intellectual485 points

    Hi, Chase:

    I did download and install the TI SDK system.

    Then I setup the environment and make the kernel with the GCC cross tool come with it. I have a compaining of shared library libz.so.1. How can I build this or get from somewhere?

    Thank you!

    Jin

     

    > [linux-devkit]:/local/jyu3-build/arm/ti-sdk-am335x-evm-05.04.01.00/board-support/linux-3.2-psp04.06.00.07.sdk> make ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi- uImage

    >   CHK     include/linux/version.h

    >   CHK     include/generated/utsrelease.h

    > make[1]: `include/generated/mach-types.h' is up to date.

    >   CC      kernel/bounds.s

    > /local/jyu3-build/arm/ti-sdk-am335x-evm-05.04.01.00/linux-devkit/bin/.

    > ./libexec/gcc/arm-arago-linux-gnueabi/4.5.3/cc1: error while loading

    > shared libraries: libz.so.1: cannot open shared object file: No such

    > file or directory

    > make[1]: *** [kernel/bounds.s] Error 1

    > make: *** [prepare0] Error 2

    > [linux-devkit]:/local/jyu3-build/arm/ti-sdk-am335x-evm-05.04.01.00/boa

    > rd-support/linux-3.2-psp04.06.00.07.sdk>

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin Yu1
    Posted by Jin Yu1
    on Jun 08 2012 12:22 PM
    Intellectual485 points

    Never mind, I found it.

    Jin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Chase Maupin
    Posted by Chase Maupin
    on Jun 08 2012 13:15 PM
    Expert4890 points

    Jin,

    It also looks like you sourced the environment-setup script.  You do NOT want to do that when building the kernel because it will cause some of the host tools the kernel uses to be cross-compiled for the ARM instead.

    Chase

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin Yu1
    Posted by Jin Yu1
    on Jun 08 2012 14:18 PM
    Intellectual485 points

    Hi, Chase:

    I still have the same complain from the compiler.

    I tried to guess to set the library path EXTRALDFLAGS := /linux-devkit/arm-arago-linux-gnueabi/usr/lib in file /script/Makefile.build

    It still failed to find the libz.so.1 in   /linux-devkit/arm-arago-linux-gnueabi/usr/lib . can you tell me what I am missing?

    Thank you!

    Jin 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin Yu1
    Posted by Jin Yu1
    on Jun 08 2012 15:08 PM
    Intellectual485 points

    Hi, Chase:

    It turns out I have 64bit machine, I am missing 32bit library lib32lz.1

    Now it compiles.

    Thank you!

    Jin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin Yu1
    Posted by Jin Yu1
    on Jun 11 2012 15:32 PM
    Intellectual485 points

    Hi, Chase:

    Now the system is up with the kernel and u-boot I built based on your source. Thank you!

    Do you have a git site I can directly get the kernel and u-boot source without all the install things?

    Also can I disable the power management unit. What is the purpose of am335x-pm-firmware.bin?

    Jin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Moessner
    Posted by Martin Moessner
    on Sep 16 2012 01:19 AM
    Intellectual0 points

    Hi,

    run into the same problem. Where I cn get this lib32lz.1 library?

    Thanks in advance

    Martin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Jin Yu1
    Posted by Jin Yu1
    on Sep 18 2012 12:18 PM
    Intellectual485 points

    Hi Martin:

    Sorry for the typo. You should install the lib32z1 library in your machine. For Debian I use apt-get to install it.

    Jin

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use