[U-Boot] NDS32 toolchain?

Rick Chen rickchen36 at gmail.com
Thu Jun 7 08:18:01 UTC 2018


2018-05-28 14:45 GMT+08:00 Rick Chen <rickchen36 at gmail.com>:
> 2018-05-14 19:16 GMT+08:00 Tom Rini <trini at konsulko.com>:
>> On Mon, May 14, 2018 at 04:31:27PM +0800, Rick Chen wrote:
>>> >> > > > > Related, is there a QEMU target for nds32 that we could leverage
>>> >> > > > > so that once the toolchain issue is resolved we can update
>>> >> > > > > .travis.yml to run
>>> >> > > tests on it?
>>> >> > > > > Thanks!
>>> >> > > >
>>> >> > > > I am applying the QEMU offering permit.
>>> >> > > > If it is ok. I will prepare it for you.
>>> >> > >
>>> >> >
>>> >> > Because I always verify NDS32 on board (AG101P or AE3XX).
>>> >> > I never verify it on NDS32 QEMU.
>>> >> > It seem still have some problems, maybe need some time to debug for work.
>>> >> >
>>> >> > But the RISC-V QEMU is available noe.
>>> >> > Maybe I can give it to you for trying.
>>> >>
>>> >> Adding riscv to the test.py + QEMU section of .travis.yml would be great!
>>> >>
>>> >
>>> > I find it seem get qemu from upstream in .travis.yml
>>> > git clone git://git.qemu.org/qemu.git
>>> > But I am not sure if Andes have any schedule to push qemu to upstream.
>>> > I will keep study it and try to add.
>>>
>>> Hi Tom
>>>
>>> After studing test.py and find it will clone
>>> git://github.com/swarren/uboot-test-hooks.git in travis flow.
>>> It seem that I shall create some files (eq conf.qemu-nx25_na) in
>>> uboot-test-hooks\bin\travis-ci\
>>> May I ask how shall I submit these files into the uboot-test-hooks git repo ?
>>
>> The usual github workflow, fork the repository and then submit a PR
>> there with your changes.  Thanks again!
>>
>> --
>> Tom
>
> Hi Tom
>
> cmchen have send 2 patch (one for riscv, one for nds32) to uboot-test-hooks.git
>
> After the patch has been accepted.I can verify the trivas flow.
> Then I will send patchs to support riscv and nds32 QEMU in test.py
>
>
>
> Following are the running message in my local env (not in travis flow)
>
> (venv) rick at atcsqa06[/NOBACKUP/sqa3/User/rick/v5-qemu/ae250/tmp/u-boot-riscv](13:57)$
> python ./test/py/test.py --bd qemu-ax25 --build
> +make O=/NOBACKUP/sqa3/User/rick/v5-qemu/ae250/tmp/u-boot-riscv/build-qemu-ax25
> -s qemu-ax25_defconfig
> +make O=/NOBACKUP/sqa3/User/rick/v5-qemu/ae250/tmp/u-boot-riscv/build-qemu-ax25
> -s -j8
> make[1]: Warning: File '.config' has modification time 0.74 s in the future
> make[2]: Warning: File 'include/config/auto.conf' has modification
> time 1.1 s in the future
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: Warning: File 'include/autoconf.mk' has modification time
> 0.63 s in the future
> make[2]: Warning: File 'include/autoconf.mk' has modification time
> 0.42 s in the future
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: Warning: File 'include/autoconf.mk' has modification time
> 0.41 s in the future
> make[2]: Warning: File 'include/config/auto.conf' has modification
> time 0.47 s in the future
> make[3]: Warning: File 'include/autoconf.mk' has modification time 0.3
> s in the future
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[3]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[3]: Warning: File 'drivers/crypto/fsl/built-in.o' has
> modification time 0.96 s in the future
> make[3]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: Warning: File 'drivers/mmc/built-in.o' has modification time
> 0.99 s in the future
> make[3]: Warning: File 'arch/riscv/dts/.ae350.dtb.cmd' has
> modification time 1 s in the future
> make[3]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[2]: Warning: File 'lib/efi_selftest/built-in.o' has modification
> time 0.94 s in the future
> riscv64-linux-ld.bfd:
> Warning: Init __global_pointer$ failed. Can not find __global_pointer$
> and .sdata section.
>
> make[2]: warning:  Clock skew detected.  Your build may be incomplete.
> make[1]: warning:  Clock skew detected.  Your build may be incomplete.
> +u-boot-test-flash qemu-ax25 na
> ====================================================================
> test session starts
> ====================================================================
> platform linux2 -- Python 2.7.12, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
> rootdir: /NOBACKUP/sqa3/User/rick/v5-qemu/ae250/tmp/u-boot-riscv/test/py,
> inifile: pytest.ini
> collected 110 items
>
> test/py/tests/test_000_version.py .
>
>         [  0%]
> test/py/tests/test_dfu.py s
>
>         [  0%]
> test/py/tests/test_efi_loader.py .sssss
>
>         [  0%]
> test/py/tests/test_efi_selftest.py ss
>
>         [  0%]
> test/py/tests/test_env.py ........
>
>         [  0%]
> test/py/tests/test_fit.py s
>
>         [  0%]
> test/py/tests/test_gpt.py sssssss
>
>         [  0%]
> test/py/tests/test_help.py .
>
>         [  0%]
> test/py/tests/test_hush_if_test.py
> ......................................................s
>                                             [  0%]
> test/py/tests/test_log.py ss
>
>         [  0%]
> test/py/tests/test_md.py ..
>
>         [  0%]
> test/py/tests/test_mmc_rd.py s
>
>         [  0%]
> test/py/tests/test_net.py .sssss
>
>         [  0%]
> test/py/tests/test_ofplatdata.py s
>
>         [  0%]
> test/py/tests/test_sandbox_exit.py ss
>
>         [  0%]
> test/py/tests/test_sf.py ssss
>
>         [  0%]
> test/py/tests/test_shell_basics.py ....
>
>         [  0%]
> test/py/tests/test_sleep.py .
>
>         [  0%]
> test/py/tests/test_ums.py s
>
>         [  0%]
> test/py/tests/test_unknown_cmd.py .
>
>         [  0%]
> test/py/tests/test_ut.py ss
>
>         [  0%]
> test/py/tests/test_vboot.py s
>
> =========================================================== 74 passed,
> 36 skipped in 3.67 seconds
> ===========================================================
>
> Rick

Hi Tom

Sorry for the late delivary.


TOOLCHAIN

NDS32 toolchain is ready here
https://github.com/vincentzwc/prebuilt-nds32-toolchain/releases/tag/20180521

After verify travis-ci ok, I will send a patch to support NDS32
toolchain in travis-ci.


QEMU
NDS32 & RISC-V qemu is ready here
ftp://ftp.andestech.com

After verify travis-ci ok, I will send two patchs to support NDS32 &
RISC-V qemu in test.py.

Rick


More information about the U-Boot mailing list