linaro omap3 image doesn't boot on qemu if built with swapfile

Bug #713101 reported by Peter Maydell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro QEMU
Fix Released
Medium
Peter Maydell

Bug Description

Image built like this:
 linaro-media-create --image_file beagle_sd.img --image_size 2G --swap_file 200 --dev beagle --binary linaro-natty-headless-tar-20110203-1.tar.gz --hwpack hwpack_linaro-omap3_20110203-0_armel_supported.tar.gz

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/swapon/egrep being blocked for more than 120s; I guess we've deadlocked in the MMC code somehow.)

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.

Revision history for this message
Peter Maydell (pmaydell) wrote :

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.

Changed in qemu-linaro:
milestone: none → 2011.03
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Peter Maydell (pmaydell)
Revision history for this message
Michael Hope (michaelh1) wrote :

Agreed. Providing it has a work-around and is documented in the release notes, then rc2 is fine. Note that the instructions on:
 https://wiki.linaro.org/Releases/GettingInstallingTesting

turn on swap by default. I'll ask Jamie if we can update these.

Revision history for this message
Peter Maydell (pmaydell) wrote :
Changed in qemu-linaro:
status: Confirmed → Fix Committed
Peter Maydell (pmaydell)
Changed in qemu-linaro:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.