Do the same thing--add 'edu' on 'virt' and run u-boot -- on WSL ubuntu

4 篇文章 0 订阅

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
=>

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值