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
    About the element14 Community
  • 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 Arch Linux on the 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: bwelsby
  • Date Created: 30 Jun 2014 10:15 PM Date Created
  • Views 2753 views
  • Likes 1 like
  • Comments 14 comments
  • riotboard
  • arm
  • linux
Related
Recommended

Arch Linux on the RIoTboard

bwelsby
bwelsby
30 Jun 2014

First of all let me just say that my preferred Linux distribution is Debian and thanks to the excellent work by Selsinork  I have just what I want.

However, just for fun I thought I would see how easy it would be to get other distributions working so for a start I had a go at Arch Linux and was pleasantly surprised how easy it was.

 

For this exercise  I used a Debian vbox on my PC and when I attach a uSD card via a USB adaptor it comes up as /dev/sdb

 

1. take a uSD  card with a working  Debian from Selsinork's creation see The specified item was not found. and associated posts. All I really needed was the installed u-boot and some other required files but as I already had working cards it was the easiest way to start.

 

Mount the cards rootfs on my vbox as /mnt

mount /dev/sdb1 /mnt

 

2. copy off the card the following files and save for later in a directory ~/dsave

 

mkdir ~/dsave

cp /mnt/bootscript ~/dsave

cp /mnt/extlinux.conf ~/dsave

cp /boot/imx6dl-riotboard.dts ~/dsave

 

3. reformat the rootfs partition ext4

 

umount /mnt

mkfs.ext4 /dev/sdb1

 

 

4. remount the blank file system

 

mount /dev/sdb1 /mnt

 

5. get the new rootfs ARMv7 Multi-platform from Downloads | Arch Linux ARM and install on card

 

wget http://archlinuxarm.org/os/ArchLinuxARM-armv7-latest.tar.gz

tar xvf ArchLinuxARM-arm7-latest.tar.gz -C /mnt

 

 

6. Now copy the saved files back

 

cp ~/dsave/bootscript /mnt

cp ~/dsave/extlinux.conf /mnt

cp ~/dsave/imx6dl-riotboard.dts /mnt/boot

cp ~/dsave/imx6dl-riotboard.dts /mnt/boot/imx6dl-riotboard.dts.rec

cp /mnt/boot/zImage /mnt/boot/zImage.rec

     (the last two provide the recovery files for the boot-up option and can be ignored for now and created later)

 

7 Now we need to create an fstab entry for the rootfs otherwise it gets mounted read only

    edit /mnt/etc/fstab and add the following

 

/dev/mmcblk0p1    /    auto    errors=remount-ro    0    1

 

 

8. now flush any pending writes and unmount the card

cd

sync

umount /mnt

 

9. Insert the uSD card in the RIoTboard (boot switches set for uSD) and power up.

NOTE:  A debug serial console connection is required to see the boot-up and complete the next stage as the HDMI screen will not be enabled.

On the serial console the system should boot up and prompt for login.

 

Login as root

password  root

 

You should also have an ethernet connection which should come up DHCP

you can now perform an upgrade with:

pacman -Syu

 

This will update a few things including the kernel and firmware.

After this update reboot and it will also bring up a login on the HDMI screen.

 

There you have it, I don't expect everything to be fully working, there may be issues somewhere but this is as far as I go

If anyone is interested I will make a card image file available for download.

  • Sign in to reply

Top Comments

  • e14 Contributor
    e14 Contributor over 12 years ago +1
    Out of curiosity, when it updates the kernel what version does it use ? I'm interested in why there's no hdmi output as hdmi certainly works on debian, so there's some unknown difference there. (also,…
  • bwelsby
    bwelsby over 12 years ago in reply to e14 Contributor +1
    I should say that after the upgrade the hdmi is coming up full 1920x1080 HD resolution on my monitor. I did also try building the kernel from your blog posts (with cgroups for the system ) and that worked…
  • mcb1
    mcb1 over 12 years ago in reply to bwelsby +1
    Guys As someone who has very little knowledge of the inner workings of Linux, I appreciate the work you are both doing. Please keep it up. thanks Mark
  • mcb1
    mcb1 over 12 years ago in reply to bwelsby

    Guys

    As someone who has very little knowledge of the inner workings of Linux, I appreciate the work you are both doing.

     

    Please keep it up.

     

    thanks

    Mark

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bwelsby
    bwelsby over 12 years ago in reply to e14 Contributor

    I should say that after the upgrade the hdmi is coming up full 1920x1080 HD resolution on my monitor.

    I did also try building the kernel from your blog posts (with cgroups for the system image) and that worked too but then I had some issues with the Ethernet not coming up, I could bring it up manually with netctl start eth0 but the bootup systemd failed, a pacman upgrade overwrote with their kernel and then the problem went away. If time allows I will compare kernel configs and maybe produce a better / correct build for the RIoTboard.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bwelsby
    bwelsby over 12 years ago in reply to e14 Contributor

    The kernel version in the Multi-platform download is Linux 3.14.4-1-ARCH

    After upgrade it's Linux version 3.15.2-1-ARCH

     

    Yes I expect there will be some things that don't work but at least it appears to be stable...  no kernel panics yet image.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • e14 Contributor
    e14 Contributor over 12 years ago

    Out of curiosity, when it updates the kernel what version does it use ?  I'm interested in why there's no hdmi output as hdmi certainly works on debian, so there's some unknown difference there. (also, a kernel less than 3.16-rc will have issues with i2c4 unless they've backported the patch)

     

    I used to like Arch, but after their crazy break-everything move to /usr I don't use it anymore. I'd rather not use something where the devs don't care about killing your system on upgrade image

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • 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 © 2026 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.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube