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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Blog Building Linux Kernel on RiotBoard for RiotBoard :)
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Nitin_Bhaskar
  • Date Created: 1 Aug 2014 5:54 PM Date Created
  • Views 755 views
  • Likes 0 likes
  • Comments 0 comments
  • riotboard
  • linux
Related
Recommended

Building Linux Kernel on RiotBoard for RiotBoard :)

Nitin_Bhaskar
Nitin_Bhaskar
1 Aug 2014

First thing first, I flashed images from Linux.zip under windows onto the eMMC of RiotBoard and then proceeded to build kernel on RiotBoard. By default, the oneiric rootfs contains toolchain for building the kernel. The only thing missing is the mkimage utility to obatin uImage. I have attached the mkimage executable below. Place this in "/usr/bin/".

 

Grab a copy of Linux kernel. I obtained one from embest. I used "embest_imx_3.0.35_4.0.0" branch.

 

git clone git://github.com/embest-tech/linux-imx.git -b embest_imx_3.0.35_4.0.0

 

Open Makefile and then modify CROSS_COMPILE (~line no. 196) to contain nothing

 

CROSS_COMPILE    ?=

 

Configure the kernel for RiotBoard by,

 

make imx6_defconfig

 

Build kernel sources by running

 

make uImage

 

After half an hour or so, following output can be seen on console

 

  LD  arch/arm/boot/compressed/vmlinux

  OBJCOPY arch/arm/boot/zImage

  Kernel: arch/arm/boot/zImage is ready

  UIMAGE  arch/arm/boot/uImage

Image Name:   Linux-3.0.35

Created:  Sun Oct  1 00:00:49 2017

Image Type:   ARM Linux Kernel Image (uncompressed)

Data Size:3908484 Bytes = 3816.88 kB = 3.73 MB

Load Address: 10008000

Entry Point:  10008000

  Image arch/arm/boot/uImage is ready

 

Next task is to flash the freshly built uImage. This can be done by issuing following command

 

dd if=uImage of=/dev/mmcblk0 bs=1M seek=1 conv=fsync

 

Reboot the RiotBoard and see the new kernel boot!!!

Attachments:
mkimage.zip
  • Sign in to reply
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