qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests/acceptance: expand Orange Pi PC SD images for NetBSD,


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] tests/acceptance: expand Orange Pi PC SD images for NetBSD, Armbian above nearest power of two
Date: Sun, 25 Oct 2020 13:11:55 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 10/25/20 2:31 AM, Philippe Mathieu-Daudé wrote:
Hi Niek,

On 10/24/20 11:52 PM, Niek Linnenbank wrote:
The acceptance tests for the Orange Pi PC need to expand the SD card images to a size which is a power of two. As Qemu uses the size of the SD image file as well for the size of the emulated SD card, this can sometimes give problems
for guests that assume a certain minimum size of the SD card.

This commit resolves the following acceptance test error for the NetBSD 9.0 test of the Orange Pi PC by increasing the size of the expanded SD card image to two times
the nearest power of two:

    (5/5) tests/acceptance/boot_linux_console.py:BootLinuxConsole.test_arm_orangepi_uboot_netbsd9: |console: U-Boot SPL 2020.01+dfsg-1 (Jan 08 2020 - 08:19:44 +0000)
   console: DRAM: 1024 MiB
   console: Failed to set core voltage! Can't set CPU frequency
   /console: Trying to boot from MMC1
   console: U-Boot 2020.01+dfsg-1 (Jan 08 2020 - 08:19:44 +0000) Allwinner Technology
   ...
   console: Starting kernel ...
   console: [   1.0000000] NetBSD/evbarm (fdt) booting ...
   ...
   console: [   1.3300167] sdmmc0: SD card status: 4-bit, C0
   console: [   1.3300167] ld0 at sdmmc0: <0xaa:0x5859:QEMU!:0x01:0xdeadbeef:0x062>

The test has this comment:

    # This test download a 304MB compressed image and expand it to 2GB

Once uncompressed the image is ~1.2GB before rounding to 2GB.

   console: [   1.3430678] ld0: 1024 MB, 1040 cyl, 32 head, 63 sec, 512 bytes/sect x 2097152 sectors

Why the card appears as 1GB??     ^^^^^^^

Can you try reverting commit 6d2d4069c47?
("sd: Correct the maximum size of a Standard Capacity SD Memory Card")

Now I remember, I hit the similar problem 2 years ago :S

See the description of the C_SIZE field in CSD register:

  "To indicate 2 GByte card, BLOCK_LEN shall be 1024 bytes."

This model uses a fixed BLOCK_LEN = 512 bytes.


   console: [   1.4102580] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
   console: [   2.0674392] WARNING: 4 errors while detecting hardware; check system log.
   console: [   2.0674392] boot device: ld0
   console: [   2.0775401] root on ld0a dumps on ld0b
   console: [   2.0977679] vfs_mountroot: can't open root device
   console: [   2.0977679] cannot mount root, error = 6
   INTERRUPTED: Test interrupted by SIGTERM\nRunner error occurred: Timeout reached.

Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>
Based-on: ("[RFC PATCH 0/4] tests/acceptance: Test U-Boot/Linux from Armbian 20.08 on Orange Pi PC")
---
  tests/acceptance/boot_linux_console.py | 10 +++++-----
  1 file changed, 5 insertions(+), 5 deletions(-)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]