qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Niek Linnenbank <nieklinnenbank@gmail.com>
Cc: peter.maydell@linaro.org, jasowang@redhat.com,
	qemu-devel@nongnu.org, "Philippe Mathieu-Daudé" <f4bug@amsat.org>,
	b.galvani@gmail.com, qemu-arm@nongnu.org, imammedo@redhat.com,
	philmd@redhat.com
Subject: Re: [PATCH v7 17/18] tests/boot_linux_console: Test booting NetBSD via U-Boot on OrangePi PC
Date: Wed, 11 Mar 2020 14:02:16 +0000	[thread overview]
Message-ID: <87r1xzf0rb.fsf@linaro.org> (raw)
In-Reply-To: <20200310213203.18730-18-nieklinnenbank@gmail.com>


Niek Linnenbank <nieklinnenbank@gmail.com> writes:

> From: Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> This test boots U-Boot then NetBSD (stored on a SD card) on
> a OrangePi PC board.
>
> As it requires ~1.3GB of storage, it is disabled by default.
>
> U-Boot is built by the Debian project [1], and the SD card image
> is provided by the NetBSD organization [2].
>
> Once the compressed SD card image is downloaded (304MB) and
> extracted, this test is fast:
>
>   $ AVOCADO_ALLOW_LARGE_STORAGE=yes \
>     avocado --show=app,console run -t machine:orangepi-pc \
>       tests/acceptance/boot_linux_console.py
>   console: U-Boot SPL 2020.01+dfsg-1 (Jan 08 2020 - 08:19:44 +0000)
>   console: DRAM: 1024 MiB
>   console: U-Boot 2020.01+dfsg-1 (Jan 08 2020 - 08:19:44 +0000) Allwinner Technology
>   console: CPU:   Allwinner H3 (SUN8I 0000)
>   console: scanning bus usb@1c1b000 for devices... 1 USB Device(s) found
>   console: scanning bus usb@1c1d000 for devices... 1 USB Device(s) found
>   console: scanning usb for storage devices... 0 Storage Device(s) found
>   console: Hit any key to stop autoboot:  0
>   console: => setenv bootargs root=ld0a
>   console: => setenv kernel netbsd-GENERIC.ub
>   console: => setenv fdtfile dtb/sun8i-h3-orangepi-pc.dtb
>   console: => boot
>   console: ## Booting kernel from Legacy Image at 42000000 ...
>   console: Image Name:   NetBSD/earmv7hf 9.0_RC1
>   console: Image Type:   ARM Linux Kernel Image (no loading done) (uncompressed)
>   console: XIP Kernel Image (no loading done)
>   console: Loading Device Tree to 49ff6000, end 49fffe01 ... OK
>   console: Starting kernel ...
>   console: [   1.0000000] NetBSD/evbarm (fdt) booting ...
>   console: [   1.0000000] NetBSD 9.0 (GENERIC) #0: Fri Feb 14 00:06:28 UTC 2020
>   console: [   1.0000000]         mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC
>   console: [   1.0000000] total memory = 1024 MB
>   console: [   1.0000000] avail memory = 1003 MB
>   console: [   1.0000000] armfdt0 (root)
>   console: [   1.0000000] simplebus0 at armfdt0: Xunlong Orange Pi PC
>   console: [   1.0000000] cpu0 at cpus0: Cortex-A7 r0p5 (Cortex V7A core)
>   console: [   1.0000000] cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
>   console: [   1.0000000] cpu0: 32KB/64B 2-way L1 VIPT Instruction cache
>   console: [   1.0000000] cpu0: 32KB/64B 2-way write-back-locking-C L1 PIPT Data cache
>   console: [   1.0000000] cpu0: 2304KB/64B 16-way write-through L2 PIPT Unified cache
>   console: [   1.0000000] vfp0 at cpu0: NEON MPE (VFP 3.0+), rounding, NaN propagation, denormals
>   ...
>   console: [   2.3812082] sdmmc0: SD card status: 4-bit, C0
>   console: [   2.3812082] ld0 at sdmmc0: <0xaa:0x5859:QEMU!:0x01:0xdeadbeef:0x062>
>   console: [   2.4012856] ld0: 1226 MB, 622 cyl, 64 head, 63 sec, 512 bytes/sect x 2511872 sectors
>   console: [   2.5321222] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz
>   console: [   3.1068718] WARNING: 4 errors while detecting hardware; check system log.
>   console: [   3.1179868] boot device: ld0
>   console: [   3.1470623] root on ld0a dumps on ld0b
>   console: [   3.2464436] root file system type: ffs
>   console: [   3.2897123] kern.module.path=/stand/evbarm/9.0/modules
>   console: Mon Feb 17 20:33:35 UTC 2020
>   console: Starting root file system check:
>   PASS (35.96 s)
>   RESULTS    : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
>   JOB TIME   : 36.09 s
>
> Note, this test only took ~65 seconds to run on Travis-CI, see: [3].
>
> This test is based on a description from Niek Linnenbank from [4].
>
> [1] https://wiki.debian.org/InstallingDebianOn/Allwinner#Creating_a_bootable_SD_Card_with_u-boot
> [2] https://wiki.netbsd.org/ports/evbarm/allwinner/
> [3] https://travis-ci.org/philmd/qemu/jobs/638823612#L3778
> [4] https://www.mail-archive.com/qemu-devel@nongnu.org/msg669347.html
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> [NL: changed test to use NetBSD 9.0 final release and -global allwinner-rtc.base-year]
> Tested-by: Niek Linnenbank <nieklinnenbank@gmail.com>
> Signed-off-by: Niek Linnenbank <nieklinnenbank@gmail.com>

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>

-- 
Alex Bennée


  reply	other threads:[~2020-03-11 14:24 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-10 21:31 [PATCH v7 00/18] Add Allwinner H3 SoC and Orange Pi PC Machine Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 01/18] hw/arm: add Allwinner H3 System-on-Chip Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 02/18] hw/arm: add Xunlong Orange Pi PC machine Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 03/18] hw/arm/allwinner-h3: add Clock Control Unit Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 04/18] hw/arm/allwinner-h3: add USB host controller Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 05/18] hw/arm/allwinner-h3: add System Control module Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 06/18] hw/arm/allwinner: add CPU Configuration module Niek Linnenbank
2020-03-11 12:58   ` Alex Bennée
2020-03-10 21:31 ` [PATCH v7 07/18] hw/arm/allwinner: add Security Identifier device Niek Linnenbank
2020-03-11 13:53   ` Alex Bennée
2020-03-11 19:30     ` Niek Linnenbank
2020-03-11 20:04       ` Alex Bennée
2020-03-11 20:10         ` Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 08/18] hw/arm/allwinner: add SD/MMC host controller Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 09/18] hw/arm/allwinner-h3: add EMAC ethernet device Niek Linnenbank
2020-03-11 13:56   ` Alex Bennée
2020-03-10 21:31 ` [PATCH v7 10/18] hw/arm/allwinner-h3: add Boot ROM support Niek Linnenbank
2020-03-11 13:58   ` Alex Bennée
2020-03-11 19:44     ` Niek Linnenbank
2020-03-10 21:31 ` [PATCH v7 11/18] hw/arm/allwinner-h3: add SDRAM controller device Niek Linnenbank
2020-03-11 13:58   ` Alex Bennée
2020-03-10 21:31 ` [PATCH v7 12/18] hw/arm/allwinner: add RTC device support Niek Linnenbank
2020-03-11 13:58   ` Alex Bennée
2020-03-10 21:31 ` [PATCH v7 13/18] tests/boot_linux_console: Add a quick test for the OrangePi PC board Niek Linnenbank
2020-03-11 14:00   ` Alex Bennée
2020-03-10 21:31 ` [PATCH v7 14/18] tests/boot_linux_console: Add initrd test for the Orange Pi " Niek Linnenbank
2020-03-11 14:01   ` Alex Bennée
2020-03-10 21:32 ` [PATCH v7 15/18] tests/boot_linux_console: Add a SD card test for the OrangePi " Niek Linnenbank
2020-03-11 14:01   ` Alex Bennée
2020-03-10 21:32 ` [PATCH v7 16/18] tests/boot_linux_console: Add a SLOW test booting Ubuntu on OrangePi PC Niek Linnenbank
2020-03-11 14:01   ` Alex Bennée
2020-03-10 21:32 ` [PATCH v7 17/18] tests/boot_linux_console: Test booting NetBSD via U-Boot " Niek Linnenbank
2020-03-11 14:02   ` Alex Bennée [this message]
2020-03-10 21:32 ` [PATCH v7 18/18] docs: add Orange Pi PC document Niek Linnenbank
2020-03-11 14:00   ` Alex Bennée
2020-03-11 19:58     ` Niek Linnenbank
2020-03-10 23:09 ` [PATCH v7 00/18] Add Allwinner H3 SoC and Orange Pi PC Machine no-reply
2020-03-11 14:04 ` Alex Bennée
2020-03-11 20:08   ` Niek Linnenbank

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1xzf0rb.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=b.galvani@gmail.com \
    --cc=f4bug@amsat.org \
    --cc=imammedo@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=nieklinnenbank@gmail.com \
    --cc=peter.maydell@linaro.org \
    --cc=philmd@redhat.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).