donj Posted June 12, 2016 Share Posted June 12, 2016 I have a cubieboard2 (A20 - sunxi 7i) and i have attached an Foresee EMMC to it and i am able to boot a customised Sunxi-Kernel (3.4.104) from it. I also have an SDCARD with Armbian (Legacy) Jessie which also boots fine. My question is what do i need to do in order to get Armbian (legacy) Jessie to be able to mount the emmc? When i boot up Armbian via the sdcard, i can't see the emmc. Am i doing something wrong, or do i need to make some changes to the .fex file? Should i use the Armbian tool to make changes to the .fex file and roll a new u-boot, if so, can you guide me as to what changes i need to make in order to see both the sdcard and emmc flash devices from Armbian. By the way, I love Armbian (you guys have done a brilliant job), i think it is awesome and i want to use it as my default os on my emmc. Link to comment Share on other sites More sharing options...
Igor Posted June 13, 2016 Share Posted June 13, 2016 Usually you need to add support to u-boot. If this is done the same way as on Lime2, than take a look on this patch: https://github.com/igorpecovnik/lib/blob/master/patch/u-boot/u-boot-default/add-emmc-lime2.patch.disabled Thanks Link to comment Share on other sites More sharing options...
zador.blood.stained Posted June 13, 2016 Share Posted June 13, 2016 For booting from eMMC u-boot patch is needed, assuming it is connected as MMC2. For mounting eMMC (while booting system from SD) in OS you only need to enable it in .fex/.bin configuration with proper detection flags, after that check your dmesg for any SD/MMC errors if new device node did not appear in /dev Link to comment Share on other sites More sharing options...
donj Posted June 16, 2016 Author Share Posted June 16, 2016 Hi Gents, Thanks for your help with this. Your feedback is exactly what i needed. I have 2 questions, because i don't want to mess this up: 1. What is the best way to apply the patch (https://github.com/igorpecovnik/lib/blob/master/patch/u-boot/u-boot-default/add-emmc-lime2.patch.disabled) 2. What changes do i need to make to .fex/.bin configuration and what are the proper detection flags if i did want to mount eMMC while booting system from SD. Thanks in advance. Link to comment Share on other sites More sharing options...
Igor Posted June 21, 2016 Share Posted June 21, 2016 Edit your board configuration, located in /boot/bin/cubieboard2.bin You need to convert it from bin to fex (bin2fex cubieboard2.bin cubiboard2.fex), edit, and convert back (fex2bin cubieboard2.fex cubiboard2.bin). I think you need to disable NAND and enable eMMC: [mmc2_para] sdc_used = 1 [nand_para] nand_used = 0 If you want to boot from this eMMC than, you need to patch u-boot, add the same parameters, and hope they work: https://github.com/igorpecovnik/lib/blob/master/patch/u-boot/u-boot-default/add-emmc-lime2.patch.disabled to cubieboard2 config, recompile u-boot, install it and install system on eMMC. In theory you should be able to boot from it. Link to comment Share on other sites More sharing options...
Recommended Posts