您尚未登录。

楼主 # 2021-12-07 16:03:44

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

观海NUC980板折腾专贴(未完,待续)

收到本坛观海为爱发电的板子(活动链接: https://whycan.com/t_7473.html ),收到蛮喜欢,接口丰富,本来本人之前也用NUC972做了一个类似的板,用于替代电力的TTU终端(屌丝应用,没必要上高大上的TTU),后来因为缺少订单没动力折腾,暂停了。现在借观海赠送板子开始一起折腾下,抛个砖,引点玉。现在开贴一起折腾。

原理图,PCB见活动链接。
大部分资料可以在这里找到:
https://github.com/OpenNuvoton

linux内核地址:
https://github.com/OpenNuvoton/NUC980-linux-4.4.y

烧写工具:
https://github.com/OpenNuvoton/NUC980_NuWriter

────────────────────────────────────────────────────────────────────
开始折腾:
1.焊上UART0插针(TTL电平),上电开始看log
2.从github下载资料开始折腾

────────────────────────────────────────────────────────────────────
收到板子启动log如下(默认从NAND启动):

NUC980 IBR 20180813
Boot from NAND
DDR-OK
finish NAND dow頲{
NAND boot!        #S


U-Boot 2016.11-g4680eed (Aug 12 2021 - 11:00:18 +0800)

CPU: NUC980
Board: NUC980
DRAM:  64 MiB
NAND:  128 MiB

NUC980 IBR 20180813
Boot from NAND
DDR-OK
finish NAND dow頲{
NAND boot!        #S


U-Boot 2016.11-g4680eed (Aug 12 2021 - 11:00:18 +0800)

CPU: NUC980
Board: NUC980
DRAM:  64 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   emac
Warning: emac (eth0) using random MAC address - 7e:a4:bf:c0:cd:30

Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x200000, size 0x760000
 7733248 bytes read: OK
## Booting kernel from Legacy Image at 00007fc0 ...
   Image Name:   OpenWrt ARM 4.4.194
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3038889 Bytes = 2.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starti    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.194 (zf@debian9) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-f446e8e) ) #0 PREEMPT Sat May 9 15:23:54 2020
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Nuvoton NUC980 IOT-GateWay Version: 0.1
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: 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)
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 57992K/65536K available (4366K kernel code, 301K rwdata, 1656K rodata, 184K init, 244K bss, 7544K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05e9f04   (6024 kB)
[    0.000000]       .init : 0xc05ea000 - 0xc0618000   ( 184 kB)
[    0.000000]       .data : 0xc0618000 - 0xc06636c4   ( 302 kB)
[    0.000000]        .bss : 0xc06636c4 - 0xc06a07e0   ( 245 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:545
[    0.000000] clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns
[    0.000033] sched_clock: 24 bits at 120kHz, resolution 8333ns, wraps every 69905062489ns
[    0.000733] Console: colour dummy device 80x30
[    0.195441] console [ttyS0] enabled
[    0.198924] Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
[    0.272783] pid_max: default: 32768 minimum: 301
[    0.277641] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.284333] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.293458] CPU: Testing write buffer coherency: ok
[    0.299416] Setting up static identity map for 0x8400 - 0x843c
[    0.351174] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.361958] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.368558] pinctrl core: initialized pinctrl subsystem
[    0.375983] NET: Registered protocol family 16
[    0.383008] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.397366] <DT> nuc980_dt_device_init +
[    0.455041] <DT> nuc980_dt_device_init -
[    0.462208] pinctrl-nuc980 apb:pinctrl@b0000000: initialized NUC980 pinctrl driver
[    0.597591] SCSI subsystem initialized
[    0.608833] usbcore: registered new interface driver usbfs
[    0.616399] usbcore: registered new interface driver hub
[    0.623266] usbcore: registered new device driver usb
[    0.638091] clocksource: Switched to clocksource nuc980-timer5
[    0.729416] NET: Registered protocol family 2
[    0.737358] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.745016] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.751841] TCP: Hash tables configured (established 1024 bind 1024)
[    0.758649] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.764499] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.771691] NET: Registered protocol family 1
[    0.777208] RPC: Registered named UNIX socket transport module.
[    0.783308] RPC: Registered udp transport module.
[    0.787966] RPC: Registered tcp transport module.
[    0.792766] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.800174] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.812808] Crashlog allocated RAM at address 0x3f00000
[    0.896899] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.981549] io scheduler noop registered (default)
[    0.990074] nuc980_gpio_probe - pdev = b0004000.gpio
[    0.998724] nuc980_dma_probe - pdev = b0008000.dma
[    1.025066] nuc980-dma b0008000.dma: NUC980 DMA ready
[    1.569958] b0070000.serial: ttyS0 at I/O 0xf0070000 (irq = 36, base_baud = 750000) is a NUC980
[    1.581899] b0071000.serial: ttyS1 at I/O 0xf0071000 (irq = 37, base_baud = 9375000) is a NUC980
[    1.592949] b0072000.serial: ttyS2 at I/O 0xf0072000 (irq = 38, base_baud = 9375000) is a NUC980
[    1.604208] b0073000.serial: ttyS3 at I/O 0xf0073000 (irq = 43, base_baud = 9375000) is a NUC980
[    1.615608] b0074000.serial: ttyS4 at I/O 0xf0074000 (irq = 39, base_baud = 9375000) is a NUC980
[    1.627008] b0075000.serial: ttyS5 at I/O 0xf0075000 (irq = 44, base_baud = 9375000) is a NUC980
[    1.638466] b0076000.serial: ttyS6 at I/O 0xf0076000 (irq = 40, base_baud = 9375000) is a NUC980
[    1.650033] b0077000.serial: ttyS7 at I/O 0xf0077000 (irq = 45, base_baud = 9375000) is a NUC980
[    1.660999] b0078000.serial: ttyS8 at I/O 0xf0078000 (irq = 41, base_baud = 9375000) is a NUC980
[    1.678616] nuc980 mtd nand driver version: 20180301
[    1.684991] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.692499] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.697099] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.704908] nand: SMRA size 64, 60
[    1.709083] Bad block table found at page 65472, version 0x01
[    1.715116] Bad block table found at page 65408, version 0x01
[    1.721899] 3 cmdlinepart partitions found on MTD device nand0
[    1.727699] Creating 3 MTD partitions on "nand0":
[    1.732699] 0x000000000000-0x000000200000 : "u-boot"
[    1.743849] 0x000000200000-0x000001600000 : "kernel"
[    1.755691] 0x000001600000-0x000008000000 : "rootfs"
[    1.767533] mtd: device 2 (rootfs) set to be root filesystem
[    1.774858] mtdsplit: no squashfs found in "rootfs"
[    1.780274] fmi-sm: registered successfully! mtdid=nand0
[    1.787141] RX nuc980_qspi0_probe: dma0chan0 module removed
[    1.793574] TX nuc980_qspi0_probe: dma0chan1 module removed
[    1.803649] RX nuc980_spi1_probe: dma0chan2 module removed
[    1.810349] TX nuc980_spi1_probe: dma0chan3 module removed
[    1.825616] vcan: Virtual CAN interface driver
[    1.831691] slcan: serial line CAN interface driver
[    1.836533] slcan: 10 dynamic interface channels.
[    1.841849] CAN device driver interface
[    1.851341] nuc980-can1 b00a1000.can: nuc980_can1_platform device registered (regs=f00a1000, irq=59)
[    1.871099] libphy: nuc980_rmii0: probed
[    1.880091] PPP generic driver version 2.4.2
[    1.886949] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.895208] nuc980-ehci b0015000.usbh_ehci: Nuvoton NUC980 EHCI Host Controller
[    1.903174] nuc980-ehci b0015000.usbh_ehci: new USB bus registered, assigned bus number 1
[    1.912308] nuc980-ehci b0015000.usbh_ehci: irq 23, io mem 0xb0015000
[    1.938241] nuc980-ehci b0015000.usbh_ehci: USB 2.0 started, EHCI 0.95
[    1.945558] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.952466] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.959749] usb usb1: Product: Nuvoton NUC980 EHCI Host Controller
[    1.965891] usb usb1: Manufacturer: Linux 4.4.194 ehci_hcd
[    1.971458] usb usb1: SerialNumber: b0015000.usbh_ehci
[    1.978658] pinctrl-nuc980 apb:pinctrl@b0000000: pin PE10 already requested by b0015000.usbh_ehci; cannot claim for usb1
[    1.989991] pinctrl-nuc980 apb:pinctrl@b0000000: pin-74 (usb1) status -22
[    1.996774] pinctrl-nuc980 apb:pinctrl@b0000000: could not request pin 74 (PE10) from group usbh-ppwr-ovc  on device apb:pinctrl@b0000000
[    2.009308] usb usb1: Error applying setting, reverse things back
[    2.016758] hub 1-0:1.0: USB hub found
[    2.021199] hub 1-0:1.0: 2 ports detected
[    2.027266] ehci-platform: EHCI generic platform driver
[    2.034083] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.041666] usb_hcd_nuc980_probe, id = -1, name: b0017000.usbh_ohci, 0
[    2.048774] nuc980-ohci b0017000.usbh_ohci: Nuvoton NUC980 OHCI Host Controller
[    2.056183] nuc980-ohci b0017000.usbh_ohci: new USB bus registered, assigned bus number 2
[    2.064874] nuc980-ohci b0017000.usbh_ohci: irq 24, io mem 0xb0017000
[    2.130974] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.137741] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.145074] usb usb2: Product: Nuvoton NUC980 OHCI Host Controller
[    2.151324] usb usb2: Manufacturer: Linux 4.4.194 ohci_hcd
[    2.156774] usb usb2: SerialNumber: nuc980-ohci
[    2.164358] hub 2-0:1.0: USB hub found
[    2.168983] hub 2-0:1.0: 8 ports detected
[    2.176324] ohci-platform: OHCI generic platform driver
[    2.183974] usbcore: registered new interface driver usb-storage
[    2.192216] usbcore: registered new interface driver usbserial
[    2.199749] usbcore: registered new interface driver option
[    2.206424] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.222316] do_sha - sha last has no data!
[    2.226391] alg: hash: Test 1 failed for nuc980-sha1
[    2.231616] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.238016] 00000010: 00 00 00 00
[    2.242499] do_sha - sha last has no data!
[    2.246574] alg: hash: Test 1 failed for nuc980-sha224
[    2.251966] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.258616] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00
[    2.264708] do_sha - sha last has no data!
[    2.269949] alg: hash: Test 1 failed for nuc980-sha256
[    2.275058] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.281716] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.289091] do_sha - sha last has no data!
[    2.293166] alg: hash: Test 1 failed for nuc980-sha384
[    2.298541] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.304941] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.311591] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.318974] do_sha - sha last has no data!
[    2.323058] alg: hash: Test 1 failed for nuc980-sha512
[    2.328433] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.334833] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.341483] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.347883] 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.355199] alg: No test for hmac-sha1 (nuc980-hmac-sha1)
[    2.361441] alg: No test for hmac-sha224 (nuc980-hmac-sha224)
[    2.367766] alg: No test for hmac-sha256 (nuc980-hmac-sha256)
[    2.374374] alg: No test for hmac-sha384 (nuc980-hmac-sha384)
[    2.381008] alg: No test for hmac-sha512 (nuc980-hmac-sha512)
[    2.386824] NUC980 Crypto engine enabled.
[    2.410166] usbcore: registered new interface driver usbhid
[    2.415699] usbhid: USB HID core driver
[    2.434249] NET: Registered protocol family 10
[    2.444049] NET: Registered protocol family 17
[    2.449308] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.462374] can: controller area network core (rev 20120528 abi 9)
[    2.469166] NET: Registered protocol family 29
[    2.473716] can: raw protocol (rev 20120528)
[    2.477966] can: broadcast manager protocol (rev 20120528 t)
[    2.483908] can: netlink gateway (rev 20130117) max_hops=1
[    2.490899] 8021q: 802.1Q VLAN Support v1.8
[    2.506408] ubi0: attaching mtd2
[    2.871774] ubi0: scanning is finished
[    2.893049] ubi0: attached mtd2 (name "rootfs", size 106 MiB)
[    2.899033] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.905858] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.912841] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.920158] ubi0: good PEBs: 844, bad PEBs: 4, corrupted PEBs: 0
[    2.926124] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.933558] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 565934091
[    2.942766] ubi0: available PEBs: 0, total reserved PEBs: 844, PEBs reserved for bad PEB handling: 16
[    2.952091] ubi0: background thread "ubi_bgt0d" started, PID 1034
[    2.998366] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1041
[    3.022966] UBIFS (ubi0:0): recovery needed
[    3.114966] UBIFS (ubi0:0): recovery completed
[    3.119791] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.127158] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.137183] UBIFS (ubi0:0): FS size: 103231488 bytes (98 MiB, 813 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    3.147741] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    3.153633] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID FE66F50E-7F9E-4193-91A2-B16196A57DDB, small LPT model
[    3.167074] VFS: Mounted root (ubifs filesystem) on device 0:12.
[    3.175324] Freeing unused kernel memory: 184K
[    3.643541] init: Console is alive
[    3.861533] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.921541] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.944399] init: - preinit -
[    4.460266] random: jshn: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
[    4.592558] random: jshn: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
[    4.753816] random: jshn: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
[    4.874916] random: jshn: uninitialized urandom read (4 bytes read, 7 bits of entropy available)
[    5.012891] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[    5.201283] nuc980-emac0 b0012000.emac0: eth0 is OPENED
[    5.207274] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    8.712749] mount_root: mounting /dev/root
[    8.728883] urandom-seed: Seeding with /etc/urandom.seed
[    8.870891] procd: - early -
[   11.451333] procd: - ubus -
[   11.521799] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[   11.613949] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[   11.626524] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[   11.635974] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[   11.647841] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[   11.661524] procd: - init -
Please press Enter to activate this console.
[   12.285099] kmodloader: loading kernel modules from /etc/modules.d/*
[   12.312658] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   12.355683] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.400033] nf_conntrack version 0.5.0 (909 buckets, 3636 max)
[   12.464249] NET: Registered protocol family 24
[   12.516316] xt_time: kernel timezone is -0000
[   12.555824] kmodloader: done loading kernel modules from /etc/modules.d/*
[   22.048708] nuc980-emac0 b0012000.emac0: eth0 is OPENED
[   22.088483] device eth0 entered promiscuous mode
[   22.114574] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready

LEDE login: 
LEDE login: 
LEDE login:

离线

楼主 #1 2021-12-07 16:58:41

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

Re: 观海NUC980板折腾专贴(未完,待续)

U-BOOT篇:

下载uboot:
https://github.com/OpenNuvoton/NUC970_U-Boot_v2016.11
unzip NUC970_U-Boot_v2016.11-master.zip
搞好工具链的path,我之前下过buildroot,所以就直接export了(export PATH=$PATH:/opt/NUC970_Buildroot/output/host/usr/bin)
进入uboot目录 : cd NUC970_U-Boot_v2016.11-master
生成默认的.config:make nuc980_defconfig
开始编译:make
冗长的编译后,看到已经生成了u-boot.bin
──────────────────────────────────────────────────────────────────

  CC      spl/board/nuvoton/nuc980/console.o
  LD      spl/board/nuvoton/nuc980/built-in.o
  CC      spl/common/init/board_init.o
  LD      spl/common/init/built-in.o
  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

──────────────────────────────────────────────────────────────────

能编译不代表能用,容我先检查下配置再烧录测试……

最近编辑记录 hotkey (2021-12-07 17:00:17)

离线

#2 2021-12-07 19:47:26

john78
会员
注册时间: 2018-07-19
已发帖子: 222
积分: 160

Re: 观海NUC980板折腾专贴(未完,待续)

老铁动作这么快,我的还没有收到

离线

#3 2021-12-08 09:54:54

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

Re: 观海NUC980板折腾专贴(未完,待续)

单片机是M0用来当看狗门的,目前不启用。大家要的话可以再沟通

离线

楼主 #4 2021-12-11 00:08:23

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

Re: 观海NUC980板折腾专贴(未完,待续)

这两天忙了下别的项目,稍有延误,各位久等了。
今天解决了在家虚拟机不能上网的问题,现象是桥接获取不到IP,NAT可以上网,增加一张虚拟网卡,然后桥接到虚拟网卡即可。参考帖子:

https://liushiming.cn/article/virtualbox-vm-bridge-network-connect-internet-solution.html

离线

楼主 #5 2022-01-02 00:45:01

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

Re: 观海NUC980板折腾专贴(未完,待续)

U-BOOT篇--编译输出:

Uboot编译完生成了一些文件(下面这段是复制的):
編譯成功後會產生 Main U-Boot 和 SPL U-Boot:
Main U-Boot : 完整功能的 U-Boot
SPL U-Boot : 將 Main U-Boot 從 NAND flash 搬到 DDR 執行
SPL U-Boot 只有 NAND boot 時,才會用到;如果是 SPI boot 或  eMMC boot 只需要 Main U-
Boot

Main U-Boot 和 SPL U-Boot 會分別產生在根目錄以及子目錄 spl 中:
Main U-Boot 的檔案會產生在根目錄
  u-boot - Elf 執行檔 (可透過 GDB 或 IDE 下載)
  u-boot.bin - binary file (可透過 Nu-Writer 燒錄到 NAND/SPI flash、eMMC中)
  u-boot.map – 鏈結對應檔

SPL U-Boot 的檔案會產生在根目錄底下的子目錄 spl 中
  u-boot-spl - Elf 執行檔 (可透過 GDB 或 IDE 下載)
  u-boot-spl.bin - binary file (可透過 Nu-Writer 燒錄到 NAND flash中)
  u-boot-spl.map – 鏈結對應檔


烧录:
1.用nuwriter(我用的1.16的版本),通过USB连接开发板(nand无内容时自动启动到usb boot,当nand内有启动内容事,需要短接2个电阻对地,切换到USB启动)
2.选择NUC980DK61Y.ini,continue
3.选择烧录的目标类型Choose type为NAND,选择Image type为Loade,浏览选择文件“u-boot-spl.bin”,Image execute address默认为200,不改它,点program烧录
4.选择Image type为Data,Image start offset为100000,浏览选择文件“u-boot.bin”,点program烧录
5.重新启动即可进入uboot了。

离线

楼主 #6 2022-01-02 17:11:35

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

Re: 观海NUC980板折腾专贴(未完,待续)

先跑个LEDE吧
git clone https://gitee.com/hewenhao/nuc980_ylx.git
然后make

烧录情况见图

重新启动后,进入uboot没有启动命令,手动输入:
nand read 0x7FC0 0x200000 0x760000
bootm 0x7FC0
正常启动

NUC980 IBR 20180813
Boot from NAND
DDR-OK
finish NAND dow頲{
NAND boot!        #S


U-Boot 2016.11 (Jan 02 2022 - 08:29:18 +0000)

CPU: NUC980
Board: NUC980
DRAM:  64 MiB
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Error: emac address not set.

=> nand read 0x7FC0 0x200000 0x760000

NAND read: device 0 offset 0x200000, size 0x760000
 7733248 bytes read: OK
=> setenv 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)
=> 
=> 
=> saveenv
Saving Environment to NAND...
Erasing NAND...
Erasing at 0xe0000 -- 100% complete.
Writing to NAND... OK
=> bootm 0x7FC0
## Booting kernel from Legacy Image at 00007fc0 ...
   Image Name:   OpenWrt ARM 4.4.194
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3038841 Bytes = 2.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starti    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.194 (hechen@szddt) (gcc version 5.4.0 (LEDE GCC 5.4.0 r0-93414d6) ) #0 PREEMPT Sat Dec 11 02:46:17 2021
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Nuvoton NUC980 IOT-GateWay Version: 0.1
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: 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)
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 57992K/65536K available (4366K kernel code, 301K rwdata, 1656K rodata, 184K init, 244K bss, 7544K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05e9f04   (6024 kB)
[    0.000000]       .init : 0xc05ea000 - 0xc0618000   ( 184 kB)
[    0.000000]       .data : 0xc0618000 - 0xc06636c4   ( 302 kB)
[    0.000000]        .bss : 0xc06636c4 - 0xc06a07e0   ( 245 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:545
[    0.000000] clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns
[    0.000033] sched_clock: 24 bits at 120kHz, resolution 8333ns, wraps every 69905062489ns
[    0.000741] Console: colour dummy device 80x30
[    0.195708] console [ttyS0] enabled
[    0.199191] Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
[    0.272783] pid_max: default: 32768 minimum: 301
[    0.277641] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.284324] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.293458] CPU: Testing write buffer coherency: ok
[    0.299416] Setting up static identity map for 0x8400 - 0x843c
[    0.351208] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.361991] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.368591] pinctrl core: initialized pinctrl subsystem
[    0.376008] NET: Registered protocol family 16
[    0.383041] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.397391] <DT> nuc980_dt_device_init +
[    0.455008] <DT> nuc980_dt_device_init -
[    0.461966] pinctrl-nuc980 apb:pinctrl@b0000000: initialized NUC980 pinctrl driver
[    0.597574] SCSI subsystem initialized
[    0.608741] usbcore: registered new interface driver usbfs
[    0.616308] usbcore: registered new interface driver hub
[    0.623174] usbcore: registered new device driver usb
[    0.638008] clocksource: Switched to clocksource nuc980-timer5
[    0.729791] NET: Registered protocol family 2
[    0.737458] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.745091] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.751941] TCP: Hash tables configured (established 1024 bind 1024)
[    0.758749] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.764599] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.771808] NET: Registered protocol family 1
[    0.777316] RPC: Registered named UNIX socket transport module.
[    0.783433] RPC: Registered udp transport module.
[    0.788208] RPC: Registered tcp transport module.
[    0.792858] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.800316] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.812991] Crashlog allocated RAM at address 0x3f00000
[    0.897033] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.981474] io scheduler noop registered (default)
[    0.989983] nuc980_gpio_probe - pdev = b0004000.gpio
[    0.998599] nuc980_dma_probe - pdev = b0008000.dma
[    1.025158] nuc980-dma b0008000.dma: NUC980 DMA ready
[    1.571383] b0070000.serial: ttyS0 at I/O 0xf0070000 (irq = 36, base_baud = 750000) is a NUC980
[    1.583566] b0071000.serial: ttyS1 at I/O 0xf0071000 (irq = 37, base_baud = 9375000) is a NUC980
[    1.594858] b0072000.serial: ttyS2 at I/O 0xf0072000 (irq = 38, base_baud = 9375000) is a NUC980
[    1.606333] b0073000.serial: ttyS3 at I/O 0xf0073000 (irq = 43, base_baud = 9375000) is a NUC980
[    1.617566] b0074000.serial: ttyS4 at I/O 0xf0074000 (irq = 39, base_baud = 9375000) is a NUC980
[    1.629224] b0075000.serial: ttyS5 at I/O 0xf0075000 (irq = 44, base_baud = 9375000) is a NUC980
[    1.640391] b0076000.serial: ttyS6 at I/O 0xf0076000 (irq = 40, base_baud = 9375000) is a NUC980
[    1.651733] b0077000.serial: ttyS7 at I/O 0xf0077000 (irq = 45, base_baud = 9375000) is a NUC980
[    1.662941] b0078000.serial: ttyS8 at I/O 0xf0078000 (irq = 41, base_baud = 9375000) is a NUC980
[    1.680566] nuc980 mtd nand driver version: 20180301
[    1.686924] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    1.694141] nand: Samsung NAND 128MiB 3,3V 8-bit
[    1.699308] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.706841] nand: SMRA size 64, 60
[    1.711224] Bad block table found at page 65472, version 0x01
[    1.717258] Bad block table found at page 65408, version 0x01
[    1.723841] 3 cmdlinepart partitions found on MTD device nand0
[    1.729908] Creating 3 MTD partitions on "nand0":
[    1.734591] 0x000000000000-0x000000200000 : "u-boot"
[    1.745599] 0x000000200000-0x000001600000 : "kernel"
[    1.757416] 0x000001600000-0x000008000000 : "rootfs"
[    1.770058] mtd: device 2 (rootfs) set to be root filesystem
[    1.776016] mtdsplit: no squashfs found in "rootfs"
[    1.781941] fmi-sm: registered successfully! mtdid=nand0
[    1.789283] RX nuc980_qspi0_probe: dma0chan0 module removed
[    1.794883] TX nuc980_qspi0_probe: dma0chan1 module removed
[    1.805441] RX nuc980_spi1_probe: dma0chan2 module removed
[    1.812124] TX nuc980_spi1_probe: dma0chan3 module removed
[    1.827666] vcan: Virtual CAN interface driver
[    1.833508] slcan: serial line CAN interface driver
[    1.838949] slcan: 10 dynamic interface channels.
[    1.843666] CAN device driver interface
[    1.852924] nuc980-can1 b00a1000.can: nuc980_can1_platform device registered (regs=f00a1000, irq=59)
[    1.872166] libphy: nuc980_rmii0: probed
[    1.881933] PPP generic driver version 2.4.2
[    1.889074] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.896449] nuc980-ehci b0015000.usbh_ehci: Nuvoton NUC980 EHCI Host Controller
[    1.904749] nuc980-ehci b0015000.usbh_ehci: new USB bus registered, assigned bus number 1
[    1.913849] nuc980-ehci b0015000.usbh_ehci: irq 23, io mem 0xb0015000
[    1.938224] nuc980-ehci b0015000.usbh_ehci: USB 2.0 started, EHCI 0.95
[    1.945533] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.952549] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.959858] usb usb1: Product: Nuvoton NUC980 EHCI Host Controller
[    1.965999] usb usb1: Manufacturer: Linux 4.4.194 ehci_hcd
[    1.971566] usb usb1: SerialNumber: b0015000.usbh_ehci
[    1.978774] pinctrl-nuc980 apb:pinctrl@b0000000: pin PE10 already requested by b0015000.usbh_ehci; cannot claim for usb1
[    1.990124] pinctrl-nuc980 apb:pinctrl@b0000000: pin-74 (usb1) status -22
[    1.996908] pinctrl-nuc980 apb:pinctrl@b0000000: could not request pin 74 (PE10) from group usbh-ppwr-ovc  on device apb:pinctrl@b0000000
[    2.009449] usb usb1: Error applying setting, reverse things back
[    2.016908] hub 1-0:1.0: USB hub found
[    2.021358] hub 1-0:1.0: 2 ports detected
[    2.027408] ehci-platform: EHCI generic platform driver
[    2.034216] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.041799] usb_hcd_nuc980_probe, id = -1, name: b0017000.usbh_ohci, 0
[    2.048899] nuc980-ohci b0017000.usbh_ohci: Nuvoton NUC980 OHCI Host Controller
[    2.056308] nuc980-ohci b0017000.usbh_ohci: new USB bus registered, assigned bus number 2
[    2.064983] nuc980-ohci b0017000.usbh_ohci: irq 24, io mem 0xb0017000
[    2.130908] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.137674] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.144999] usb usb2: Product: Nuvoton NUC980 OHCI Host Controller
[    2.151241] usb usb2: Manufacturer: Linux 4.4.194 ohci_hcd
[    2.156691] usb usb2: SerialNumber: nuc980-ohci
[    2.164266] hub 2-0:1.0: USB hub found
[    2.168899] hub 2-0:1.0: 8 ports detected
[    2.176249] ohci-platform: OHCI generic platform driver
[    2.183866] usbcore: registered new interface driver usb-storage
[    2.192099] usbcore: registered new interface driver usbserial
[    2.199608] usbcore: registered new interface driver option
[    2.206291] usbserial: USB Serial support registered for GSM modem (1-port)
[    2.222166] do_sha - sha last has no data!
[    2.226241] alg: hash: Test 1 failed for nuc980-sha1
[    2.231466] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.237858] 00000010: 00 00 00 00
[    2.242358] do_sha - sha last has no data!
[    2.246433] alg: hash: Test 1 failed for nuc980-sha224
[    2.251824] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.258474] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00
[    2.264566] do_sha - sha last has no data!
[    2.269799] alg: hash: Test 1 failed for nuc980-sha256
[    2.274908] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.281566] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.288941] do_sha - sha last has no data!
[    2.293016] alg: hash: Test 1 failed for nuc980-sha384
[    2.298391] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.304791] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.311449] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.318833] do_sha - sha last has no data!
[    2.322908] alg: hash: Test 1 failed for nuc980-sha512
[    2.328283] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.334691] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.341341] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.347741] 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[    2.355049] alg: No test for hmac-sha1 (nuc980-hmac-sha1)
[    2.361291] alg: No test for hmac-sha224 (nuc980-hmac-sha224)
[    2.367624] alg: No test for hmac-sha256 (nuc980-hmac-sha256)
[    2.374224] alg: No test for hmac-sha384 (nuc980-hmac-sha384)
[    2.380858] alg: No test for hmac-sha512 (nuc980-hmac-sha512)
[    2.386666] NUC980 Crypto engine enabled.
[    2.410083] usbcore: registered new interface driver usbhid
[    2.415616] usbhid: USB HID core driver
[    2.434158] NET: Registered protocol family 10
[    2.443916] NET: Registered protocol family 17
[    2.449158] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.462233] can: controller area network core (rev 20120528 abi 9)
[    2.469016] NET: Registered protocol family 29
[    2.473558] can: raw protocol (rev 20120528)
[    2.477808] can: broadcast manager protocol (rev 20120528 t)
[    2.483758] can: netlink gateway (rev 20130117) max_hops=1
[    2.490741] 8021q: 802.1Q VLAN Support v1.8
[    2.506158] ubi0: attaching mtd2
[    2.626724] ubi0: scanning is finished
[    2.663483] gluebi (pid 1): gluebi_resized: got update notification for unknown UBI device 0 volume 0
[    2.672808] ubi0: volume 0 ("rootfs") re-sized from 35 to 824 LEBs
[    2.682124] ubi0: attached mtd2 (name "rootfs", size 106 MiB)
[    2.687841] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    2.694949] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    2.701916] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[    2.709241] ubi0: good PEBs: 844, bad PEBs: 4, corrupted PEBs: 0
[    2.715208] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[    2.722649] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1074586054
[    2.731941] ubi0: available PEBs: 0, total reserved PEBs: 844, PEBs reserved for bad PEB handling: 16
[    2.741266] ubi0: background thread "ubi_bgt0d" started, PID 1034
[    2.828441] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1041
[    2.901191] UBIFS (ubi0:0): start fixing up free space
[    3.181999] UBIFS (ubi0:0): free space fixup complete
[    3.219991] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    3.227366] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    3.258166] UBIFS (ubi0:0): FS size: 103231488 bytes (98 MiB, 813 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[    3.278149] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[    3.283974] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID DC72E02F-B64A-4FD4-BE78-49EF305F0347, small LPT model
[    3.321083] VFS: Mounted root (ubifs filesystem) on device 0:12.
[    3.339358] Freeing unused kernel memory: 184K
[    4.301066] init: Console is alive
[    4.736533] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    4.857858] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    4.891658] init: - preinit -
[    5.903599] random: jshn: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[    6.165941] random: jshn: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[    6.400799] random: jshn: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[    6.523249] random: jshn: uninitialized urandom read (4 bytes read, 10 bits of entropy available)
[    6.662816] random: jshn: uninitialized urandom read (4 bytes read, 11 bits of entropy available)
[    6.854058] nuc980-emac0 b0012000.emac0: eth0 is OPENED
[    6.860299] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level

[   10.350891] mount_root: mounting /dev/root
[   10.371558] urandom-seed: Seed file not found (/etc/urandom.seed)
[   10.493708] procd: - early -


[   13.085291] procd: - ubus -
[   13.248999] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   13.261249] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   13.270641] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   13.282491] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   13.291858] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[   13.305191] procd: - init -
Please press Enter to activate this console.
(none) login: root
Password: 
[   13.940258] kmodloader: loading kernel modules from /etc/modules.d/*
[   13.966941] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.010991] ip_tables: (C) 2000-2006 Netfilter Core Team
[   14.054183] nf_conntrack version 0.5.0 (909 buckets, 3636 max)
[   14.124049] NET: Registered protocol family 24
[   14.175733] xt_time: kernel timezone is -0000
[   14.215241] kmodloader: done loading kernel modules from /etc/modules.d/*
Login incorrect
(none) login: 
(none) login: 
(none) login: 
(none) login: i^H
Password: 
Login incorrect
LEDE login: root
Password: 
[   26.878624] nuc980-emac0 b0012000.emac0: eth0 is OPENED
[   26.928349] device eth0 entered promiscuous mode
[   26.944691] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready



Login incorrectPlease press Enter to activate this console.
root
LEDE login: root
Password: 
Login incorrect
LEDE login: root
Password: 
Login incorrect
LEDE login: root
Password: 
Login incorrectPlease press Enter to activate this console.

LEDE login: 
LEDE login: 
LEDE login: 
LEDE login: 
LEDE login: root[   99.828183] random: nonblocking pool is initialized

Login timed out Please press Enter to activate this console.

离线

楼主 #7 2022-01-03 23:41:56

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

Re: 观海NUC980板折腾专贴(未完,待续)

在uboot下设置启动命令,以后就可以自动启动了
=> setenv bootcmd nand read 0x7FC0 0x200000 0x760000\; bootm 0x7FC0
=> saveenv


不过有人知道默认密码么?

离线

楼主 #8 2022-01-04 01:13:24

hotkey
会员
注册时间: 2019-06-23
已发帖子: 51
积分: 76

Re: 观海NUC980板折腾专贴(未完,待续)

hotkey 说:

在uboot下设置启动命令,以后就可以自动启动了
=> setenv bootcmd nand read 0x7FC0 0x200000 0x760000\; bootm 0x7FC0
=> saveenv


不过有人知道默认密码么?


关于默认密码的问题,修改“nuc980_ylx\package\base-files\files\etc\shadow”内容为:

root:$1$aMtTYtnU$ANsEC6DRimipvGWlEQnhe.:18995:0:99999:7:::
daemon:*:0:0:99999:7:::
ftp:*:0:0:99999:7:::
network:*:0:0:99999:7:::
nobody:*:0:0:99999:7:::
dnsmasq:x:0:0:99999:7:::

这样默认密码就是123456
重新make编译一次,烧录文件即可。
烧录位置

离线

页脚

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

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