element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • 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
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • 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
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Blog Arch Linux on the RIoTboard
  • Blog
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
RIoTboard requires membership for participation - click to join
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: bwelsby
  • Date Created: 30 Jun 2014 10:15 PM Date Created
  • Views 570 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

  • Former Member
    Former Member over 8 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 8 years ago in reply to Former Member +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 8 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
  • bwelsby
    bwelsby over 7 years ago in reply to Former Member

    Hi Mark,

    Sorry for the delay, been quite busy, I thought I had the files archived but alas not. All that work was carried out before support for the RioTboard was added to the mainline kernel and used a special patched version that Selsinork created. I did all the work in a Debian vbox on my PC but that has since been deleted, not touched the RioTboard for a while.   I also didn't use the emmc much as it was much easier to modify and boot from SD or uSD.

    Have you seen these blog posts, Linux on the RIoTBoard Part 5: SDCard Image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Former Member
    Former Member over 7 years ago in reply to bwelsby

    Hi Brian,

     

    did you find the missing files for your howto? So far each and every howto on running Linux on RIoTboard does either not work or misses some crucial part.

     

    Does your board boot from emmc?

    Last attempt I made was this (I could compile the kernel and u-boot but I could not flash the emmc):

    risc-a-day: Mainline Linux for RIoTBoard

    imx_usb_loader does not work for me and I do not have windows.

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

    the link you posted is an old fork of the linux kernel (honestly I do not quite understand why you posted this)

     

    I am looking for these files (referenced in the howto above):

    mkdir ~/dsave

    cp /mnt/bootscript ~/dsave

    cp /mnt/extlinux.conf ~/dsave

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

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

    @Mark Fink

    Could this be what you need? https://github.com/selsinork/linux

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • bwelsby
    bwelsby over 8 years ago in reply to Former Member

    Hi Mark,

     

    Yes sadly Selsinork left and deleted all his content and files. I am not sure if I still have them, I will have a look.

    Alternatively, I did get Debian and Ubuntu working with the boot and kernel 3.10.17 files from the latest yocto image. I will have a look and see what I can find / create but it will be a day or two.

    • Cancel
    • Vote Up 0 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 © 2023 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

  • Facebook
  • Twitter
  • linkedin
  • YouTube