NUC980 Ubuntu20.04开发环境安装

两种方式

(1)在windows下安装虚拟机开发

直接在github或者gitee下载NUC970/NUC980/N9H30 BSP 使用的 VMWare Linux 開發環境,国内用户建议在gitee上下载,地址:
https://gitee.com/OpenNuvoton/NUC970_NUC980_N9H30_VMWare_Linux_develop_environment

下载完成后,解压缩后,用vmware软件打开ubuntu_NUC970_980_Linux目录下的Ubuntu 64-bit_nuvoton.vmx虚拟机文件即可。

登陆名:nuvoton
密码: user

(2)在Linux下搭建环境开发(ubuntu20.04 64bit)

a、通过repo下载相关源代码及工具文件,参考官方NUC980 Linux 4.4 BSP User Manual CHT.pdf文档(也可以直接一个一个地手动GIT下载),主要下载内容有:

https://gitee.com/OpenNuvoton/NUC970_U-Boot_v2016.11.git
https://gitee.com/OpenNuvoton/NUC980_Linux_Applications.git
https://gitee.com/OpenNuvoton/NUC970_Buildroot.git
https://gitee.com/OpenNuvoton/NUC980_NonOS_BSP.git
https://gitee.com/OpenNuvoton/NUC980-linux-4.4.y.git
https://gitee.com/OpenNuvoton/NUC980_NuWriter_CMD.git

b、安装所需的软件包,如下:

sudo apt install libc6-dev-i386
sudo apt install lib32z1
sudo apt install lib32ncurses6
sudo apt install lib32stdc++6

c、下载工具链 nuc980bsp.tar.gz,解压后进入目录,运行安装即可:

sudo ./install.sh

d、设置环境变量PATH

export ARCH=arm
export CROSS_COMPILE=/usr/local/arm_linux_4.8/bin/arm-nuvoton-linux-uclibceabi-
export PATH=/usr/local/arm_linux_4.8/bin:$PATH

完成后,进入uboot目录测试一下,是否编译通过,如下:


zhy@zhy-TravelMate-P259-G2-MG:~/Desktop/nuc980_env/NUC970_U-Boot_v2016.11$ ls configs/nuc*
configs/nuc970_defconfig           configs/nuc980_defconfig
configs/nuc970_eth2uart_defconfig  configs/nuc980_eth2uart_defconfig
configs/nuc970_tomato_defconfig    configs/nuc980_iot_defconfig
configs/nuc980_chili_defconfig     configs/nuc980_lorag_defconfig


zhy@zhy-TravelMate-P259-G2-MG:~/Desktop/nuc980_env/NUC970_U-Boot_v2016.11$ make nuc980_defconfig
#
# configuration written to .config
#



zhy@zhy-TravelMate-P259-G2-MG:~/Desktop/nuc980_env/NUC970_U-Boot_v2016.11$ make
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CC      lib/asm-offsets.s
  CHK     include/generated/generic-asm-offsets.h
  CC      arch/arm/lib/asm-offsets.s
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/envcrc.o
  WRAP    tools/lib/crc32.c
  HOSTCC  tools/lib/crc32.o
  WRAP    tools/common/env_embedded.c
  HOSTCC  tools/common/env_embedded.o
  WRAP    tools/lib/sha1.c
  HOSTCC  tools/lib/sha1.o
  HOSTLD  tools/envcrc
  HOSTCC  tools/gen_eth_addr
  ...
  ...
  ...
  LD      spl/drivers/built-in.o
  LD      spl/dts/built-in.o
  LD      spl/fs/built-in.o
  LDS     spl/u-boot-spl.lds
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  COPY    spl/u-boot-spl.bin
  ./scripts/check-config.sh u-boot.cfg \
  ./scripts/config_whitelist.txt . 1>&2

工具链工作正常

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值