We have seen a number of SD issues in the bootloader related to getting stuck in loops waiting for state changes that don't happen, but I think we have them all fixed in the bootloader source we use in AOSP. 

Can you flash the loader and fip from the AOSP hikey/installer directory and see if you can reproduce?

Haojian: did those fixes not make it to the upstream openplatformpackage project?

-john

On Feb 13, 2017 1:42 AM, "Viresh Kumar" <viresh.kumar@linaro.org> wrote:
Hi Guys,

I am looking to setup dual boot with Android (emmc) and Ubuntu (SD) on
hikey board. And am facing some difficulties currently.

I took bootloaders from here:
http://builds.96boards.org/snapshots/hikey/linaro/uefi-openplatformpkg/57/

Debian SD card image from:
http://builds.96boards.org/snapshots/reference-platform/debian/latest/hikey/
and did dd to the SD card which has boot and rootfs
partitions now.

I took AOSP images from here:
http://builds.96boards.org/releases/hikey/linaro/aosp/latest/
and I am using boot_fat.uefi.img.

Now when the SD card isn't inserted and pin 5-6 are shorted, the board
boots into fastboot with options to boot from SD, emmc, etc. I can boot
into emmc and boot android just fine. All works fine. If I insert the SD
card now, I can see the partitions in /dev/block/mmcblk1**.

But, if I insert the SD card before booting up, then I get this on terminal:
http://pastebin.com/A7JkPZS7 and don't see any more prints after that.

If I power on the board before inserting SD card and get up to the menu,
where I can select SD or emmc or fastboot and then insert SD card, the
minicom terminal hangs.

I have tried two 8 GB SDHC cards from Trascend and sandisk already.

Any clues ?

--
viresh
_______________________________________________
Dev mailing list
Dev@lists.96boards.org
https://lists.96boards.org/mailman/listinfo/dev