WSL ubuntu is 18.04, the gcc and arm-linux-gnueabihf-gcc are all from APT and are all 7.4. So u-boot build won't report gcc version issue.
chunxie@xixi:~$ gcc --version
gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
chunxie@xixi:~$ arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The QEMU is from APT and model 'virt' supports 'edu' by default.
So the only thing needed is build u-boot. it's the same as previous blog.
And it works.
chunxie@xixi:~/u-boot$ qemu-system-arm -M virt-2.7 -nographic -m 512 -kernel u-boot -device edu -monitor telnet:127.0.0.1:4444,server,nowait
U-Boot 2019.07-rc1-00506-g90176e3be6 (May 15 2019 - 21:12:21 +0800)
DRAM: 512 MiB
WARNING: Caches not enabled
Flash: 128 MiB
*** Warning - bad CRC, using default environment
In: pl011@9000000
Out: pl011@9000000
Err: pl011@9000000
Net: No ethernet found.
Hit any key to stop autoboot: 0
=> pci
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
00.00.00 0x1b36 0x0008 Bridge device 0x00
00.01.00 0x1af4 0x1000 Network controller 0x00
00.02.00 0x1234 0x11e8 Build before PCI Rev2.0 0xff
=>