element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
Moto Mods
  • Products
  • Manufacturers
  • Moto Mods
  • More
  • Cancel
Moto Mods
Forum Notes for setting up development environment under Arch Linux
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Moto Mods to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 56 subscribers
  • Views 299 views
  • Users 0 members are here
Related

Notes for setting up development environment under Arch Linux

lllars
lllars over 8 years ago

I ran into a lot issues when trying to set up my development environment.  I eventually got everything working.  So, I'm putting my notes here in hopes that it will be helpful to someone else.  Some of the issues I faced are specific to Arch Linux, but others are just bugs in the code that I would expect to affect everyone.

 

This is what worked for me, YMMV

 

These notes assume you are following along with the directions here: https://developer.motorola.com/build/tools

 

Setup Environment

  • Step 1 -- use android-studio from AUR:  https://aur.archlinux.org/packages/android-studio/
  • Step 3 -- ignore for now, but remember to come back and to do this step after importing projects into android studio
  • Embedded Firmware Development -- Dependencies (note python2 and pip2)
    • sudo pacman -S git gperf flex bison ncurses arm-none-eabi-gcc arm-none-eabi-newlib python2-pip
    • sudo pip2 install pyelftools
  • OpenOCD
    • sudo pacman -S libftdi
    • got an error during the "make" step.  Solution was to remove a single indention from line 1154 of src/jtag/drivers/ftdi.c:

ftdi_replay_queue(i);

 

Build From Source

  • for kconfig-mconf, need to edit libs/perser/hconf.gperf
    • remove line 12:
      • static const struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len);
  • to compile nuttx, must be setup to use python2 instead of 3
    • see "Dealing with version problem in build scripts" in the troubleshooting section of this page: https://wiki.archlinux.org/index.php/Python
  • compiling bootloader: if you run into errors, make sure you have arm-none-eabi-newlib installed

 

Hello World Example

  • under new build target, blinky directory already exists, just rename the existing one or delete it
  • menuconfig support -- these files didn't need any modification, already up to date
  • when setting the manifest name in menuconfig, type "hdk-blinky", not "hdk-termapp"
  • Android application -- don't forget to do step 3 from above before building.
  • you can't use the mdk utility app from the android app store with firmware you compiled yourself.  "MDK LED Light" will remain greyed out and.  Build the utility from source and use that.

 

Sensor Personality Card Example

  • dip switch settings don't seem to matter, at least switch A1
  • when setting the manifest name in menuconfig, type "temperature-example", not "hdk-temperature"
  • again, you'll need to compile the android app yourself, not use the one from the app store.  If you get a "moto mods sensor card not available" error, see here: moto mods sensor card not available
  • 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