I have an i.MX6Q SabreSD EVK (MCIMX6Q-SDB) that came with an SD card. The SD card has the label:
Using this SD card I am able to boot from Either SD Card 3 (J507 connector), or SD Card 2 (J500 connector) slots.
I have then built a stock AOSP using the instructions in the Android Users Guide ( from android_O8.0.0_1.0.0_docs.tar.gz ).
chmod a+x ~/bin/repo
make -j40 2>&1 | tee build-log.txt
I flashed this image to an 8Gb SD card using the mfg tool from (android_O8.0.0_1.0.0_tools.tar.gz).
I can now boot this image from SD3 on the EVK, however I cannot boot this image fully when I try to boot from SD2. It appears to get partially through the Android load, and then hangs without ever showing the Android Desktop. I have attached the logs of the boot.
The default u-boot variables are as follows:
Environment size: 311/8188 bytes
It does boot like this, however the Android users guide has the following:
The mmcX value changes depending on the boot mode. These are the correct values:
Header 1 Header 2 Hardware port U-Boot device in
eMMC mmc2 SD2 mmc3 SD3 mmc1
If I try to enter the command for SD2 (mmc3) I get the following:
=> setenv bootcmd boota mmc3
=> setenv fastboot_dev mmc3
=> setenv bootargs console=ttymxc0,115200 androidboot.console=ttymxc0 consoleblank=0 vmalloc=400M init=/init video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32 video=mxcfb1:off video=mxcfb2:off video=mxcfb3:off androidboot.hardware=freescale cma=384M
MMC Device 3 not found
I don't think this is the issue since it does appear to boot in to Android at least partially with the default u-boot settings.
How do I get my image to boot from SD2? It does partially load, however it looks like it might not be mounting the card correctly perhaps? Do I need to alter u-boot env / u-boot device tree / kernel device tree / something else?