How to use eMMC on A20-OLinuXino-LIME2-eMMC

Started by chradev, April 05, 2016, 02:43:16 AM

Previous topic - Next topic

chradev

Hi to All,

I am trying to use eMMC (as MMC2) on A20-OLinuXino-LIME2-eMMC boards without success for now.
My tests are based on Armbian with both 3.4.111 (sunxi) and 4.2.3 (mainline) Linux kernels.
Some details about configurations are published on:

I would like to ask if somebody from Olimex is testing eMMC Lime2 options and how?
Will be published new image for Lime2 with GBit Ethernet and eMMC working?

Best regards
Chris

LubOlimex

Hey,

New image for the LIME2 with eMMC support and NAND install scripts is on the way. It has the GbE workaround applied.

It would be released by the end of this week.

Best regards,
Lub/OLIMEX
Technical support and documentation manager at Olimex

BMK

Hi,
Could someone please clarify for me;
Are olimex now shipping a version the Lime2 with emmc chip assembled? I hear sme things on the forum and blog but I can't find it in shop?

chradev

Yes they ship it (as new HW rev. E) and probably it is a question of time to updated the site.
Try specify one of the following options (as description or note to your order):

  • A20-Olimexino-Lime2 - no NAN or eMMC
  • A20-Olimexino-Lime2-4GB - with 4GB NAND
  • A20-Olimexino-Lime2-eMMC - with 4GB eMMC

chradev

Hi to All,

I am facing at a problem to write to eMMC from U-Boot (2016.05-rc1 and 2015.10).
My try to update and save U-Boot environment finishes with fail to write to eMMC

=> setenv boot_targets scsi0 usb0 fel mmc0 mmc2 pxe dhcp
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... mmc write failed
failed

The same action works fine on SD/MMC

Any thoughts how to fix it?

Best regards
Chris

chradev

#5
Quote from: chradev on April 22, 2016, 12:27:04 PM
I am facing at a problem to write to eMMC from U-Boot (2016.05-rc1 and 2015.10).
My try to update and save U-Boot environment finishes with fail to write to eMMC

=> setenv boot_targets scsi0 usb0 fel mmc0 mmc2 pxe dhcp
=> saveenv
Saving Environment to MMC...
Writing to MMC(0)... mmc write failed
failed

The same action works fine on SD/MMC

I have tested the failing case on the second a20-Olinuxino-Lime2-eMMC board I have.

And it works fine!
The problem is probably in the HW.

EDIT: see also http://forum.armbian.com/index.php/topic/853-armbian-customization/page-4#entry8074

lauhub

Hello,

I have the same problem with two Lime2 boards.

Does OLimex has any update on this ? Is this really hardware issue or something else ?


akshay

I am unable to boot from eMMC. It halts at

Trying to boot from MMC2
MMC Device 1 not found
spl: could not find mmc device. error: -19
SPL: failed to boot from all boot devices


Please help boot

LubOlimex

Yes. There was a bug. We didn't follow our own image preparation instructions. This is now fixed.

Please use release 9 or newer.

The official Linux image was updated to release #9 and now should properly install to the eMMC memory: https://www.olimex.com/wiki/images/2/20/A20-lime2_mainline_uboot_sunxi_kernel_3.4.103_jessie_emmc_rel_9.torrent

The build instructions that go along with the official image can be found here: https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-4/BUILD_DESCRIPTION_A20_Olimex_kernel_3.4.103%2B_Jessie_rel_4.txt

Best regards,
Lub/OLIMEX

Technical support and documentation manager at Olimex

eosss

I purchased this

https://www.olimex.com/Products/OLinuXino/A20/A20-OLinuXIno-LIME2/open-source-hardware

I think I should be using this torrent because it is for NAND not eMMC?

a20-lime2_mainline_uboot_sunxi_kernel_3.4.103_jessie_NAND_rel_9.img.7z

Is that right?

igorpec

linux for ARM development boards
www.armbian.com

Harry

Hello guys,

I'm a linux rookie having a lot of troubles following LubOlimex posted instructions:

https://github.com/OLIMEX/OLINUXINO/blob/master/SOFTWARE/A20/A20-build-3.4.103-release-4/BUILD_DESCRIPTION_A20_Olimex_kernel_3.4.103%2B_Jessie_rel_4.txt

1. <deb http://www.emdebian.org/debian squeeze main> does not work. On <http://www.emdebian.org/grip/> alternate Emdebian Grip packages are listed but I get errors:

failed to fetch from http://www.emdebian.org/grip/dists/wheezy-grip/main/source/Sources  404  Not Found
failed to fetch from http://www.emdebian.org/grip/dists/wheezy-grip/main/binary-amd64/Packages  404  Not Found
failed to fetch from http://www.emdebian.org/grip/dists/wheezy-grip/main/binary-armhf/Packages  404  Not Found

-> got the same errorsusing <deb http://www.emdebian.org/grip stable-grip main>, <deb http://ftp.uk.debian.org/emdebian/grip wheezy-grip main> and <deb http://ftp.uk.debian.org/emdebian/grip stable-grip main>

using <deb http://emdebian.bytesatwork.ch/mirror/grip wheezy-grip main> caused following error:
<debian the following signatures couldn't be verified because the public key is not available>

For adding a key I downloaded <http://qgis.org/de/site/forusers/alldownloads.html#debian> but I couldn't add the keys.
<gpg --recv-key 073D307A618E5811> forced following error:

gpg: requesting key 618E5811 from hkp server keys.gnupg.net
gpg: keyserver timed out
gpg: keyserver receive failed: keyserver error

2. <apt-get install gcc-4.7-arm-linux-gnueabihf ncurses-dev uboot-mkimage build-essential git> throws following error:

Package uboot-mkimage is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  u-boot-tools:armhf u-boot-tools

E: Package gcc-4.7-arm-linux-gnueabihf cannot be found.
E: Using regular expressions »gcc-4.7-arm-linux-gnueabihf« no package can't be found.
E: Package 'uboot-mkimage' has no installation candidate

trying <apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y && apt-get install uboot-mkimage> instead does not help too.


I have absolutely no idea what to do next!
Can anyone help me please,
many thanks

(I'm using debian 8.7.1 amd64 as virtual host under MacOS):

igorpec

#12
QuoteI have absolutely no idea what to do next!

Install Armbian for Lime2 and start using the board?  ::) It's updated, bugfixed and should be plug and play experience. It's 100% Olimex compatible. With Debian or Ubuntu base.

This will help you:
https://www.olimex.com/forum/index.php?topic=5092.0
linux for ARM development boards
www.armbian.com

Harry

Thx a lot so far Igorpec, I'll try Armbian for my LIME2.

But nevertheless I'm still interested in solving the problems following the instructions posted by Lub/OLIMEX (using a brand-new SD card Olinuxino image from OLIMEX provided 5 days ago). Does anyone else has similar errors and found a solution in the meantime?

greetings

JohnS

Looks like emdebian have changed things around so that things are now broken.  Ask them where they are now.

John