linaro omap3 image doesn't boot on qemu if built with swapfile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro QEMU |
Fix Released
|
Medium
|
Peter Maydell |
Bug Description
Image built like this:
linaro-
and run with
qemu-system-arm -M beaglexm -sd beagle_sd.img -serial stdio
hangs after mounting the root filesystem. (If you leave it five minutes or so then the kernel will print messages about mmcqd/kjournald
This is with qemu-linaro 2011.02-0 RC2, image built with linaro-image-tools 0.4.3-0ubuntu2 on natty.
Not sure if this is a regression; I don't generally make images with swap.
Changed in qemu-linaro: | |
status: | Fix Committed → Fix Released |
This is happening because swapon() causes the kernel to issue block erase commands to the MMC card. The kernel expects completion to be signalled by setting both CC (command complete) and TC (transfer complete) status bits, but the omap3_mmc model is only setting TC. There's a relevant TODO note in the model source.
SInce I don't think this is a regression, and 2011.02 release is Tuesday, I propose to fix this for 2011.03 rather than throw a fix into 2011.02 at the last minute.