[FFE] support emulated systems w/ > 2G of memory

Bug #1030588 reported by dann frazier on 2012-07-29
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qemu-linaro (Ubuntu)

Bug Description

Allows the usage of the highbank model on amd64 systems.

[Test Case]
On an amd64 system w/ > 4G of RAM:
$ sudo qemu-system-arm -nographic -M highbank -m 4089 -kernel ~/vmlinuz-3.2.0-2000-highbank -append console=ttyAMA0 -dtb ~/highbank.dtb

You can use the vmlinuz and highbank.dtb files from the latest linux-image-XXX-highbank package.

When things work, you'll see kernel boot messages. When they don't, you'll get an error:
qemu: could not load kernel '/home/ubuntu/vmlinuz-3.2.0-2000-highbank'
[Regression Potential]
The only issue I can see is if a caller was counting on size overflow behavior, which seems unlikely.

[Original Report]
Please apply this patch from upstream:
This patch allows QEMU to support emulated systems with > 2G of memory, a requirement for supporting the Calxeda "highbank" target.

Related branches

dann frazier (dannf) wrote :

This avoids the following error with qemu-system_1.0.50-2012.03-0ubuntu3:

ubuntu@server-1343577662-az-3-region-a-geo-1:~$ sudo qemu-system-arm -nographic -M highbank -m 4089 -kernel ~/vmlinuz-3.2.0-2000-highbank -append console=ttyAMA0 -dtb ~/highbank.dtb
qemu: could not load kernel '/home/ubuntu/vmlinuz-3.2.0-2000-highbank'

Bryce Harrington (bryce) on 2012-08-16
description: updated
dann frazier (dannf) on 2012-08-16
description: updated
Fathi Boudra (fboudra) wrote :

This is fixed since Linaro QEMU 2012.06 release.
We plan to get Linaro QEMU 2012.08 release uploaded before the FF.

Changed in qemu-linaro (Ubuntu Quantal):
assignee: nobody → Fathi Boudra (fboudra)
status: New → Confirmed
Fathi Boudra (fboudra) on 2012-08-21
Changed in qemu-linaro (Ubuntu Quantal):
status: Confirmed → In Progress
Fathi Boudra (fboudra) on 2012-09-07
summary: - support emulated systems w/ > 2G of memory
+ [FFE] support emulated systems w/ > 2G of memory
Micah Gersten (micahg) wrote :

Unsubscribing sponsors until this FFe is approved

Changed in qemu-linaro (Ubuntu Quantal):
status: In Progress → New
assignee: Fathi Boudra (fboudra) → nobody
Iain Lane (laney) wrote :

OK, approved. Please get this uploaded soon.

Changed in qemu-linaro (Ubuntu Quantal):
status: New → Triaged
Changed in qemu-linaro (Ubuntu Quantal):
status: Triaged → Fix Released
Michael Vogt (mvo) wrote :

This appears to be already fixed in quantal by now?

From the changelog:
qemu-linaro (1.1.50-2012.08-0ubuntu1) quantal; urgency=low

  * New upstream release.
    - support emulated systems with more than 2G of memory. (LP: #1030588)

Unsubscribing sponsors until this clarified.

Michael Vogt (mvo) wrote :

Should the precise version of this be uploaded as a SRU?

Changed in qemu-linaro (Ubuntu Precise):
status: New → Fix Committed
Michael Vogt (mvo) wrote :

Uploaded now to precise-prposed based on feedback on irc.

Hello dann, or anyone else affected,

Accepted qemu-linaro into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/qemu-linaro/1.0.50-2012.03-0ubuntu2.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
dann frazier (dannf) wrote :

Looks good:

ubuntu@server-1349287797-az-3-region-a-geo-1:~$ sudo qemu-system-arm -nographic -M highbank -m 4089 -kernel ~/vmlinuz-3.2.0-2000-highbank -append console=ttyAMA0 -dtb ~/highbank.dtb
l2x0_priv_write: Bad offset 900
l2x0_priv_write: Bad offset 904
Booting Linux on physical CPU 0
Linux version 3.2.0-2000-highbank (buildd@nikusui) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu3) ) #1-Ubuntu SMP PREEMPT Tue Mar 27 01:49:53 UTC 2012 (Ubuntu 3.2.0-2000.1-highbank 3.2.12)
CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Highbank, model: Calxeda Highbank

tags: added: verification-done
removed: verification-needed

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qemu-linaro - 1.0.50-2012.03-0ubuntu2.1

qemu-linaro (1.0.50-2012.03-0ubuntu2.1) precise-proposed; urgency=low

  * debian/patches/use-an-uint64_t-for-the-max_sz-parameter-in-load_image_targphys.patch:
    Allow loading kernels on systems w/ > 2G emulated memory. LP: #1030588.
  * Enable flat device tree support. LP: #1030594.
 -- dann frazier <email address hidden> Sun, 29 Jul 2012 12:40:25 -0600

Changed in qemu-linaro (Ubuntu Precise):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers