New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for A20-Olinuxino-Lime2-eMMC #258
Comments
I saw you solved this? Do you have an stable / working patch now? |
Hi Igor, Tonight is happy night for me. I succeed to patch U-Boot (v2015.10) and kernel (4.4.6) to work with eMMC on A20-Olinuxino-Lime2-eMMC board. Slow GBit Ethernet has also a fix in U-Boot. U-Boot staff (should work for default case as well - not tested): Mainline kernel staff: Legacy kernel staff: There you are above files archived: Find more information including final patches here, here and here. More testing is advisable before adding to repository. Next step is to prepare u-boot script to boot from available devices. Best regards |
Hi Igor, I have tested patches for vanilla kernel (4.5.1) and mainline U-Boot (v2015-10):
One more question: Is Hans de Goede's solution working / tested and will be official one? Best regards |
We are (temporally) using U-boot 2016.01 for A10 / A20 boards where those problems should not exists. I only tested on Bananas / Cubietruck where same problems emerge. My Lime2 is in use and I hard to do experiments. Tnx for test. |
Thanks Igor, Unfortunately, I have encountered a problem with my last changes (or not) "bricking" my Lime2 board. |
Hi Igor, The problem I reach is "two SD card boot problem" and it is not related to patches. |
I am facing at a problem to write to eMMC from U-Boot (2016.05-rc1 and 2015.10). => setenv boot_targets scsi0 usb0 fel mmc0 mmc2 pxe dhcp Any thoughts how to fix it? |
No, this sounds like a bug to me but am also not much competent around u-boot. Try denx mailing list. |
Looks more like u-boot configuration issue. There are different ways to store environment, including writing to file on ext4 FS and writing to "raw' sector on MMC. In your case u-boot tries to use the latter, but I believe it needs more build time configuration (or your environment is too big).
|
The size of environment much less than the space on the device |
I have tested the failing case on the second a20-Olinuxino-Lime2-eMMC board I have. And it works fine! |
Good to hear this! Let's close this issue. |
Following Chradev instructions to build an image, when I try to boot kernel, it always reboot and restart the system, in an endless loop (see endless-reboot-loop.log.txt). The loop does not occur when booting from SD card. I also have the same problem to write to eMMC from u-boot with two boards (Lime2 Rev. E):
I tried to remove the cheap-mmc patch (u-boot-02-support-cheap-mmc.patch) without success. Chradev, did you have the same behaviour / solve this for your first board (the one with the error) ? Would you have any leads to troubleshoot or solve this issue ? (PS: I re-open this issue, so do not hesitate to tell me if I was wrong to do this and if I should have open another discussion) |
Hi lauhub, As I can see in endless-reboot-loop.log.txt you try to load system from eMMC which is device 0 for uboot. Your boot script send to kernel "... root=/dev/mmcblk0p1 ..." but the kernel assigns eMMC as mmcblk1 which is causing the system to reboot. You can use my solution to send root with PARTUUID as described in: About the problem to write to eMMC from u-boot I try to comment the issue with Olimex but without success and have not a solution. Currently I overcome this issue by modification of default environment parameters in uboot as described in: Best regards |
Hi Chris, |
There is a new option to A20-Olinuxino-Lime2 HW rev. E with eMMC (4 GB) instead of NAND. eMMC chip is connected to A20 via MMC2 and can be used to boot from.
It could be great if one is able to:
I have A20-Olinuxino-Lime2-eMMC boards and time to take part in the process.
The text was updated successfully, but these errors were encountered: