您尚未登录。

楼主 # 2021-12-18 11:29:18

gerryqd
会员
注册时间: 2021-11-22
已发帖子: 10
积分: 5

NUC980 板折腾笔记

多谢 晕哥 搞得活动。

第一印象

板子很大, 串口很多, 接口丰富


第二印象

资料很少

上电

1. 虽然很多个串口, 但是, 看 log 的话,一般是从第1个串口, 参考 https://whycan.com/t_7492.html 焊接上串口。
上电, 启动。 可以看到 log。 用户名密码 直接挡住。

2. 重新上电, 进入 uboot,printenv 可以。 发现网络也可以。

=> printenv 
baudrate=115200
bootargs=noinitrd ubi.mtd=2 root=ubi0:rootfs rw rootfstype=ubifs console=ttyS0,115200n8 rdinit=/sbin/init mem=64M mtdparts=nand0:0x200000@0x0(u-boot),0x1400000@0x200000(kernel),-(rootfs)
bootcmd=run img_get;bootm 0x7FC0
bootdelay=2
ethact=emac
img_get=nand read 0x7FC0 0x200000 0x760000
ipaddr=192.168.11.10
serverip=192.168.11.100
stderr=serial
stdin=serial
stdout=serial

Environment size: 412/65532 bytes

3. 折腾网络

PC 设定为 192.168.11.100, 用 tftpd64 设定服务器

尝试执行

tftpboot 7fc0 uImage

出错(当然文件不存在), 至少工作了。

待续

离线

楼主 #1 2021-12-18 13:36:46

gerryqd
会员
注册时间: 2021-11-22
已发帖子: 10
积分: 5

Re: NUC980 板折腾笔记

4. Setup buildroot

https://github.com/OpenNuvoton/NUC970_Buildroot.git

选个配置,进行编译

nuvoton_nuc980_iot_defconfig
make

编译完成后,获取到 uImage, 放到 tftpd64 的目录, 在 uboot 端执行

tftpboot 7fc0 uImage
bootm 7fc0

执行成功, 正常起来。 不过好像中间有个地方停留了很久,没有仔细看。

离线

楼主 #2 2021-12-18 13:42:35

gerryqd
会员
注册时间: 2021-11-22
已发帖子: 10
积分: 5

Re: NUC980 板折腾笔记

5. 自废武功

=> nand info

Device 0: nand0, sector size 128 KiB
  Page size       2048 b
  OOB size          64 b
  Erase size    131072 b
  subpagesize     2048 b
  options     0x40000008
  bbt options 0x    8000
=> nand bad

Device 0 bad blocks:
=> nand scrub.chip

NAND scrub.chip: device 0 whole chip
Warning: scrub option will erase all factory set bad blocks!
         There is no reliable way to recover them.
         Use this command only for testing purposes if you
         are sure of what you are doing!

Really scrub this NAND flash? <y/N>
y
Erasing at 0x7fe0000 -- 100% complete.
OK
=> 

重新上电

NUC980 IBR 20180813
Boot from NAND
No image in NAND, USB boot

NUC980 IBR 20180813
Boot from NAND
No image in NAND, USB boot

貌似只有 SPL ? 烧写在了 SPI Nor ?

离线

#3 2021-12-18 18:30:13

yangquan3
会员
所在地: 中国深圳
注册时间: 2019-07-19
已发帖子: 10
积分: 104
个人网站

Re: NUC980 板折腾笔记

真开源新唐NUC980开发板子支持openwrt

https://gitee.com/hewenhao/nuc980_ylx/

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn