-
Notifications
You must be signed in to change notification settings - Fork 22
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
hw/arm/aspeed:Added mmc boot support for AST2600 eMMC image. #35
base: master
Are you sure you want to change the base?
Conversation
This patch has been added to boot eMMC image for AST2600 machine on QEMU. Run quemu as follows: ./qemu-system-arm -m 1G -M ast2600-evb -nographic -drive file=mmc-evb-ast2600.img,format=raw,if=sd,index=2 Tested: Booted AST2600 eMMC image on QEMU. Signed-off-by: Shitalkumar Gandhi <shitalkumar.gandhi@seagate.com>
@williamspatrick @amboar @legoater @shenki please review. |
Hi @shitalkumar-gandhi , thanks for the patch. For qemu we try to do upstream first and only accept downstream patches if it's truly necessary (usually outright hacks that have an unfortunate bang-for-buck value). That said you should review the conversation here on this exact topic: openbmc/openbmc#3818 . It's hard to say how the ast2600 evb boot configuration should be managed, and worse, because of the situation upstream with eMMC it's hard to see an way forward that isn't a minefield. Anyway, if you have some thoughts after reading the linked thread I'm interested to hear them :) |
@shitalkumar-gandhi, yes, the QEMU patches should be sent upstream on the qemu-devel mailing list and this patch is changing a default behavior :/ I think the right approach would be to use the boot index of the device on the command line. Could you please check an alternate and easier approach in https://github.com/legoater/qemu/commits/aspeed-6.2 ? The changes add a To boot from emmc on the |
@shitalkumar-gandhi this change won't be acceptable upstream as is because it prevents booting from SPI-NOR (by forcing the boot source to eMMC). Either boot source is valid for the EVB, so we need a solution that allows for both. |
@shitalkumar-gandhi which QEMU repository and which branch are you using ? |
ok @amboar thanks got it, we should have a mechanism that permits both eMMC and flash booting. |
Could you please give us the command line, the reported errors and access to the eMMC image you are using. Thanks |
This patch has been added to boot eMMC image for AST2600 machine on
QEMU.
Run quemu as follows:
./qemu-system-arm -m 1G -M ast2600-evb -nographic -drive
file=mmc-evb-ast2600.img,format=raw,if=sd,index=2
Tested: Booted AST2600 eMMC image on QEMU.
Signed-off-by: Shitalkumar Gandhi shitalkumar.gandhi@seagate.com