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
RIoTboard
  • Products
  • Dev Tools
  • Single-Board Computers
  • RIoTboard
  • More
  • Cancel
RIoTboard
Forum How can i flash using Linux?
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RIoTboard to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 32 replies
  • Subscribers 24 subscribers
  • Views 2059 views
  • Users 0 members are here
  • flash
  • linux
Related

How can i flash using Linux?

Former Member
Former Member over 11 years ago

Hi,

 

there is no method described in the manual. I guess many (most?) people interested in an open

hardware development device are using linux.

 

I hope there are any tools available and the documentation can be extended.

 

Thanks

 

Steffen

  • Sign in to reply
  • Cancel

Top Replies

  • vandana
    vandana over 11 years ago in reply to Former Member +2
    We will be uploading the actual gerbers very soon - and it will be truly open source. Based on some of the community feedback, we are also looking into CAD library support with other tools. Thanks
  • Former Member
    Former Member over 11 years ago in reply to Former Member +1
    community.element14.com/.../contentimage_5F00_176409.html It's on Page 44 of the UM that it mentions that Linux currently only boots from eMMC. Though maybe that means eventually it'll have an SD option…
  • Former Member
    Former Member over 11 years ago in reply to Former Member +1
    anthony_h wrote: It's on Page 44 of the UM that it mentions that Linux currently only boots from eMMC. Unfortunately that's so vague as to be pointless.. From a Linux point of view eMMC and SD are…
Parents
  • Former Member
    0 Former Member over 11 years ago

    Remember that the RIoT board is targeted specifically for Android development, not mainline linux.

     

    It's also not a truly open hardware design as the actual CAD files are not provided. There are Gerbers available now which allow you to produce an exact copy, but the Mentor/KiCad/Eagle/whatever source files are not available so you can't easily modify it.

    There are better choices if you want an open hardware board, for eaxmple the Olimex OLinuXino boards.

     

    However, the user manual has section 5 on how to build linux kernel images and you'll find a linux download on this page RIoTboard

     

    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Thanks for the reply. You are right - it's maybe not that open.

     

    I have seen the linux image. My problem is, that i don't see a way to upload it to the riotboards eMMc. The mfg tool is not

    running on my linux desktop.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Thanks for the reply. You are right - it's maybe not that open.

     

    I have seen the linux image. My problem is, that i don't see a way to upload it to the riotboards eMMc. The mfg tool is not

    running on my linux desktop.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    I don't have a board, but can't you just write it to an SD card and boot from that ?  Assuming the sizes work out it's probably possible to just dd the image to the eMMC afterwards.

     

    There's no real requirement for the mfgtools, but if you're stuck on doing it that way, you can try https://github.com/boundarydevices/imx_usb_loader which is what's used for other i.MX6 boards. I've used it successfully on sabre-lite

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    AFAIK you can only boot Linux from the internal eMMC — not from the external.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    James Carruthers wrote:

     

    AFAIK you can only boot Linux from the internal eMMC — not from the external.

    Where did you get that information ?

    The user manual says otherwise (and other i.MX6 systems can boot from varying places)

    image

    So once you set the boot switches to SD you can boot whatever you like from SD.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Fullscreen contentimage_176409.html Download
    <html><head><title>Jive SBS</title></head>
    <body><font face="arial,helvetica,sans-serif">
    <b>Error</b><br><font size="-1">
    An general error occurred while processing your request.
    </font></font></body></html>
    

     

    It's on Page 44 of the UM that it mentions that Linux currently only boots from eMMC. Though maybe that means eventually it'll have an SD option. As you stated, the chip can boot from either interface, so it seems to be a software configuration thing for Linux.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    anthony_h wrote:

     

    It's on Page 44 of the UM that it mentions that Linux currently only boots from eMMC.

    Unfortunately that's so vague as to be pointless..  From a Linux point of view eMMC and SD are identical as they use the same driver. If u-boot can load android from eMMC there's no reason to believe it can't load Linux - since android is based on a linux kernel.

    The wording seems strange too "Currently the Linux system on the RIoTboard supports only booting from the eMMC" but as we all know it arrives with Android installed, so 'currently' there is no linux on the board... If there was, it wouldn't be an issue image

     

    I'm wondering if what it really means is that the ancient 3.0.35 based image from the download page is brain-damaged enough that it's incapable of doing so.  In a different thread there's a devicetree file for the 3.13 kernel which should effectively remove any kernel based obstacles. The only remaining problem would be if u-boot or the ubuntu image have hard-coded something and any of those should be fixable.

     

    It's a pity there's no SPI rom like the Sabre-Lite. A decent version of u-boot in SPI essentially makes it possible to easily boot from anywhere.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    anthony_h wrote:

     

    It's on Page 44 of the UM that it mentions that Linux currently only boots from eMMC.

    My board arrived at the weekend, so I can now refute the claim made in the UM for certain. Exactly what the manual is referring to in that section on p44 isn't clear, what is clear is that it's either misleading or just plain wrong.

     

    I setup a uSD card today with mainline u-boot (0b2da7e209f4110b7c81d578336a10330e4a4404 from 28th March with the patches mentioned here http://www.element14.com/community/thread/32560/l/mainline-u-boot ) and a 3.14 kernel with madewish patches from http://www.element14.com/community/thread/31675?start=16&tstart=0 and have it booting directly from uSD without problem.

     

    The user manual is also particularly unhelpful, Table 4-3 on page 46 shows "Boot Switch Configuration - SD", technically correct but useless information... The SoC has four SD interfaces, the table shows the config to boot from the full-size SD slot at J6 on the underside of the board. To boot from the uSD (J7 on the top of the board) you have to set D7 On, D8 Off. You'll want to grab IMX6SDLRM from Documentation to work out exactly what the switches do. Start with Chapter 8..

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    I tried the same way, using the mainstream git sources of u-boot, added the riot patches and uploaded with the MfgTool2.exe. But I'm getting no u-boot message on the serial debug console like with the original version. Do I have to use the u-boot.bin or u-boot.imx file?

     

    git clone git://git.denx.e/u-boot.git

    <apply patch>

    make riotboard_config

    CROSS_COMPILE=armv7a-hardfloat-linux-gnueabi- make

    <install u-boot.bin with MfgTool2.exe>

     

    Could you post or upload your corresponding file?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    You want u-boot.imx.  I didn't try to upload it using the tool, I just wrote it to a uSD card and then set the switches appropriately

    Fullscreen contentimage_176410.html Download
    <html><head><title>Jive SBS</title></head>
    <body><font face="arial,helvetica,sans-serif">
    <b>Error</b><br><font size="-1">
    An general error occurred while processing your request.
    </font></font></body></html>
    

    Fullscreen contentimage_176411.html Download
    <html><head><title>Jive SBS</title></head>
    <body><font face="arial,helvetica,sans-serif">
    <b>Error</b><br><font size="-1">
    An general error occurred while processing your request.
    </font></font></body></html>
    

    the card should have the first partition start at sector 2048, not sector 63.

     

    You then write u-boot.imx to the card starting at 1K with a command something like

     

    dd if=u-boot.imx of=/dev/sdX bs=1024 seek=1

     

    The attached version will look for a file called /bootscript in the first partition..  unfortunately my only copy of that file is on the uSD card that's currently at home, I'll post a copy of it later today.  Even without this, you should still get the u-boot console on the serial port.

     

    However if you have the switches set incorrectly you get nothing.

    Attachments:
    u-boot.imx.zip
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    Not really sure if that attachment will work or not, I uploaded a 319KB u-boot.imx and seem to have ended up with a zip file that's a different size image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 11 years ago in reply to Former Member

    I think the attachment is ok u-boot.imx has 326656 bytes, here is the situation:

     

    • Original u-Boot console on internal eMMC from RIoT-tools: working, with original ubuntu kernel, but I get CRC error when using my own Gentoo kernel.
      Message from u-Boot (with or without uSD put in):
      Board: i.MX6DL/Solo-SABRESD: unknown-board Board: 0x61011 [POR ]
      *** Warning - bad CRC or MMC, using default environment
      MMC read: dev # 3, block #2048, count 8192 ... 8192 blocks read: OK
      ## Booting kernel from Legacy Image at 1080000000 ...
           Image Name:   Linux-3.0.35-02871-ga35ffe
           Image Type:     ARM Linux Kernel Image (uncompressed)
           Date Size:        3901664 Bytes = 3.7 MB
           Load Address: 10008000
           Entry Point:      10008000
           Verifying Checksum ... OK
           Loading Kernel Image ... OK
      OK
      Starting Kernel ...
      Linux version 3.0.35...
    • Your u-boot.imx on external uSD card: no message at all
      Booted ubuntu from eMMC cleared the uSD with dd if=/dev/zero of=/dev/mmcblk1
      Created 4 partitions on uSD with fdisk starting from sector 2048 (uSD hast 4 heads, 16 sectors, 486192 cylinders)
      Installed u-boot.imx with dd if=u-boot.imx of=/dev/mmcblk1 bs=1024 seek=1
      Powered down the system and set the DIP switch for booting from uSD
      Reboot and no reaction on serial console
    • Your u-boot.imx on internal eMMC: no message at all, same as above but used /dev/mmcblk0 instead /dev/mmcblk1
    • Original u-boot-mx6solo-riot.bin on external uSD card: no message at all like above
    • Reflash original u-boot-mx6solo-riot.bin on internal eMMC: works
    • Reflash Android on external SD card: works I can switch between eMMC ubuntu and SD android via DIP switches
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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