From patchwork Thu Mar 26 16:05:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 244341 List-Id: U-Boot discussion From: bmeng.cn at gmail.com (Bin Meng) Date: Thu, 26 Mar 2020 09:05:07 -0700 Subject: [PATCH 1/3] travis-ci: Add EFI grub2 and fit image configuration for qemu-riscv64 Message-ID: <1585238709-2822-1-git-send-email-bmeng.cn@gmail.com> This adds EFI grub2 and fit image configuration for qemu-riscv64 target used for test. Signed-off-by: Bin Meng --- py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py b/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py index 9ad819c..a86e0bd 100644 --- a/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py +++ b/py/travis-ci/u_boot_boardenv_qemu_riscv64_na.py @@ -1,5 +1,10 @@ +import os import travis_tftp env__net_dhcp_server = True env__net_tftp_readable_file = travis_tftp.file2env('u-boot') env__efi_loader_helloworld_file = travis_tftp.file2env('lib/efi_loader/helloworld.efi') +env__efi_loader_grub_file = travis_tftp.file2env('grub_riscv64.efi') +env__efi_fit_tftp_file = { + "dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'], +} From patchwork Thu Mar 26 16:05:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 244336 List-Id: U-Boot discussion From: bmeng.cn at gmail.com (Bin Meng) Date: Thu, 26 Mar 2020 09:05:08 -0700 Subject: [PATCH 2/3] travis-ci: Add qemu-riscv32 target In-Reply-To: <1585238709-2822-1-git-send-email-bmeng.cn@gmail.com> References: <1585238709-2822-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1585238709-2822-2-git-send-email-bmeng.cn@gmail.com> Add support for testing qemu-riscv32_defconfig. Signed-off-by: Bin Meng --- bin/travis-ci/conf.qemu-riscv32_na | 11 +++++++++++ py/travis-ci/u_boot_boardenv_qemu_riscv32_na.py | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 bin/travis-ci/conf.qemu-riscv32_na create mode 100644 py/travis-ci/u_boot_boardenv_qemu_riscv32_na.py diff --git a/bin/travis-ci/conf.qemu-riscv32_na b/bin/travis-ci/conf.qemu-riscv32_na new file mode 100644 index 0000000..3eb9880 --- /dev/null +++ b/bin/travis-ci/conf.qemu-riscv32_na @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: MIT +# +# Copyright (c) 2020 Bin Meng + +console_impl=qemu +qemu_machine="virt" +qemu_binary="qemu-system-riscv32" +qemu_extra_args="-m 1G -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-device,netdev=net0" +qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/u-boot" +reset_impl=none +flash_impl=none diff --git a/py/travis-ci/u_boot_boardenv_qemu_riscv32_na.py b/py/travis-ci/u_boot_boardenv_qemu_riscv32_na.py new file mode 100644 index 0000000..ba6c122 --- /dev/null +++ b/py/travis-ci/u_boot_boardenv_qemu_riscv32_na.py @@ -0,0 +1,10 @@ +import os +import travis_tftp + +env__net_dhcp_server = True +env__net_tftp_readable_file = travis_tftp.file2env('u-boot') +env__efi_loader_helloworld_file = travis_tftp.file2env('lib/efi_loader/helloworld.efi') +env__efi_loader_grub_file = travis_tftp.file2env('grub_riscv32.efi') +env__efi_fit_tftp_file = { + "dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'], +} From patchwork Thu Mar 26 16:05:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bin Meng X-Patchwork-Id: 244338 List-Id: U-Boot discussion From: bmeng.cn at gmail.com (Bin Meng) Date: Thu, 26 Mar 2020 09:05:09 -0700 Subject: [PATCH 3/3] travis-ci: Add qemu-riscv{32,64}_spl targets In-Reply-To: <1585238709-2822-1-git-send-email-bmeng.cn@gmail.com> References: <1585238709-2822-1-git-send-email-bmeng.cn@gmail.com> Message-ID: <1585238709-2822-3-git-send-email-bmeng.cn@gmail.com> Add support for testing qemu-riscv{32,64}_spl_defconfig. Unlike qemu-riscv{32,64} targets, this creates a 4-core SMP configuration to cover U-Boot SMP codes testing. Signed-off-by: Bin Meng --- bin/travis-ci/conf.qemu-riscv32_spl_na | 11 +++++++++++ bin/travis-ci/conf.qemu-riscv64_spl_na | 11 +++++++++++ py/travis-ci/u_boot_boardenv_qemu_riscv32_spl_na.py | 10 ++++++++++ py/travis-ci/u_boot_boardenv_qemu_riscv64_spl_na.py | 10 ++++++++++ 4 files changed, 42 insertions(+) create mode 100644 bin/travis-ci/conf.qemu-riscv32_spl_na create mode 100644 bin/travis-ci/conf.qemu-riscv64_spl_na create mode 100644 py/travis-ci/u_boot_boardenv_qemu_riscv32_spl_na.py create mode 100644 py/travis-ci/u_boot_boardenv_qemu_riscv64_spl_na.py diff --git a/bin/travis-ci/conf.qemu-riscv32_spl_na b/bin/travis-ci/conf.qemu-riscv32_spl_na new file mode 100644 index 0000000..9a76a54 --- /dev/null +++ b/bin/travis-ci/conf.qemu-riscv32_spl_na @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: MIT +# +# Copyright (c) 2020 Bin Meng + +console_impl=qemu +qemu_machine="virt" +qemu_binary="qemu-system-riscv32" +qemu_extra_args="-smp 4 -m 1G -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-device,netdev=net0" +qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/spl/u-boot-spl -device loader,file=${U_BOOT_BUILD_DIR}/u-boot.itb,addr=0x80200000" +reset_impl=none +flash_impl=none diff --git a/bin/travis-ci/conf.qemu-riscv64_spl_na b/bin/travis-ci/conf.qemu-riscv64_spl_na new file mode 100644 index 0000000..c0b961c --- /dev/null +++ b/bin/travis-ci/conf.qemu-riscv64_spl_na @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: MIT +# +# Copyright (c) 2020 Bin Meng + +console_impl=qemu +qemu_machine="virt" +qemu_binary="qemu-system-riscv64" +qemu_extra_args="-smp 4 -m 1G -nographic -netdev user,id=net0,tftp=${UBOOT_TRAVIS_BUILD_DIR} -device virtio-net-device,netdev=net0" +qemu_kernel_args="-kernel ${U_BOOT_BUILD_DIR}/spl/u-boot-spl -device loader,file=${U_BOOT_BUILD_DIR}/u-boot.itb,addr=0x80200000" +reset_impl=none +flash_impl=none diff --git a/py/travis-ci/u_boot_boardenv_qemu_riscv32_spl_na.py b/py/travis-ci/u_boot_boardenv_qemu_riscv32_spl_na.py new file mode 100644 index 0000000..ba6c122 --- /dev/null +++ b/py/travis-ci/u_boot_boardenv_qemu_riscv32_spl_na.py @@ -0,0 +1,10 @@ +import os +import travis_tftp + +env__net_dhcp_server = True +env__net_tftp_readable_file = travis_tftp.file2env('u-boot') +env__efi_loader_helloworld_file = travis_tftp.file2env('lib/efi_loader/helloworld.efi') +env__efi_loader_grub_file = travis_tftp.file2env('grub_riscv32.efi') +env__efi_fit_tftp_file = { + "dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'], +} diff --git a/py/travis-ci/u_boot_boardenv_qemu_riscv64_spl_na.py b/py/travis-ci/u_boot_boardenv_qemu_riscv64_spl_na.py new file mode 100644 index 0000000..a86e0bd --- /dev/null +++ b/py/travis-ci/u_boot_boardenv_qemu_riscv64_spl_na.py @@ -0,0 +1,10 @@ +import os +import travis_tftp + +env__net_dhcp_server = True +env__net_tftp_readable_file = travis_tftp.file2env('u-boot') +env__efi_loader_helloworld_file = travis_tftp.file2env('lib/efi_loader/helloworld.efi') +env__efi_loader_grub_file = travis_tftp.file2env('grub_riscv64.efi') +env__efi_fit_tftp_file = { + "dn" : os.environ['UBOOT_TRAVIS_BUILD_DIR'], +}