本帖最后由 zljiu 于 2021-8-14 17:06 编辑
使用LEDE 内核版本4.4.194比较官方内核生成patch 移植成功,可以网页更新UBIFS
启动log 不支持更新内核
Boot from SPI-NAND
DDR-OK
4-bit
finish SPI dowd
SPL load main U-Boot from SPI NAND Flash! (Feb 20 2019 09:12:29)
U-Boot 2016.11-g8127c47 (Feb 20 2019 - 09:12:26 +0800)
CPU: NUC980
Board: NUC980
DRAM: 64 MiB
SF: Detected W25N01GV with page size 2 KiB, erase size 128 KiB, total 128 MiB
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot: 0
SF: Detected W25N01GV with page size 2 KiB, erase size 128 KiB, total 128 MiB
device 0 offset 0x200000, size 0x800000
SF: 8388608 bytes @ 0x200000 Read: OK
## Booting kernel from Legacy Image at 00007fc0 ...
Image Name:
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6073280 Bytes = 5.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
XIP Kernel Image ... OK
Starting kernel ...
SF: Detected W25N01GV with page size 2 KiB, erase size 128 KiB, total 128 MiB
SF: Device[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.4.194 (legend@legend) (gcc version 5.4.0 (LEDE GCC 5.4.0 unknown) ) #0 PREEMPT Tue Nov 19 05:51:15 2019
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: NUC980
[ 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 rootfstype=ubifs ubi.mtd=2 root=ubi0:rootfs console=ttyS0,115200n8 mem=64M init=/sbin/init rw
[ 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: 58732K/65536K available (3966K kernel code, 282K rwdata, 1524K rodata, 156K init, 200K bss, 6804K 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 - 0xc0564f04 (5492 kB)
[ 0.000000] .init : 0xc0565000 - 0xc058c000 ( 156 kB)
[ 0.000000] .data : 0xc058c000 - 0xc05d2bc0 ( 283 kB)
[ 0.000000] .bss : 0xc05d2bc0 - 0xc0604db4 ( 201 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.185666] console [ttyS0] enabled
[ 0.189149] Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
[ 0.262791] pid_max: default: 32768 minimum: 301
[ 0.267649] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.274333] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.283474] CPU: Testing write buffer coherency: ok
[ 0.289449] Setting up static identity map for 0x8400 - 0x843c
[ 0.321208] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.332016] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.338599] pinctrl core: initialized pinctrl subsystem
[ 0.346024] NET: Registered protocol family 16
[ 0.506799] SCSI subsystem initialized
[ 0.516391] usbcore: registered new interface driver usbfs
[ 0.524441] usbcore: registered new interface driver hub
[ 0.531258] usbcore: registered new device driver usb
[ 0.544266] clocksource: Switched to clocksource nuc980-timer5
[ 0.632516] NET: Registered protocol family 2
[ 0.640858] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.648683] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.655508] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.662083] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.668199] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.675391] NET: Registered protocol family 1
[ 0.680591] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.693549] Crashlog allocated RAM at address 0x3f00000
[ 0.775641] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.785049] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.869733] io scheduler noop registered (default)
[ 0.875433] nuc980_gpio_probe - pdev = nuc980-gpio
[ 0.884683] nuc980_dma_probe - pdev = nuc980-dma
[ 0.910333] nuc980-dma nuc980-dma: NUC980 DMA ready
[ 1.456849] nuc980-uart.0: ttyS0 at I/O 0x0 (irq = 36, base_baud = 750000) is a NUC980
[ 1.467966] nuc980-uart.1: ttyS1 at I/O 0x0 (irq = 37, base_baud = 9375000) is a NUC980
[ 1.478916] nuc980-uart.2: ttyS2 at I/O 0x0 (irq = 38, base_baud = 9375000) is a NUC980
[ 1.565541] brd: module loaded
[ 1.577591] RX nuc980_qspi0_probe: dma0chan0 module removed
[ 1.583224] TX nuc980_qspi0_probe: dma0chan1 module removed
[ 1.608991] libphy: nuc980_rmii0: probed
[ 1.683433] libphy: nuc980_rmii1: probed
[ 1.693058] PPP generic driver version 2.4.2
[ 1.700133] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.708549] nuc980-ehci nuc980-ehci: Nuvoton NUC980 EHCI Host Controller
[ 1.715841] nuc980-ehci nuc980-ehci: new USB bus registered, assigned bus number 1
[ 1.724016] nuc980-ehci nuc980-ehci: irq 23, io mem 0xb0015000
[ 1.744474] nuc980-ehci nuc980-ehci: USB 2.0 started, EHCI 0.95
[ 1.754058] hub 1-0:1.0: USB hub found
[ 1.758691] hub 1-0:1.0: 2 ports detected
[ 1.764983] ehci-platform: EHCI generic platform driver
[ 1.771416] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.778608] usb_hcd_nuc980_probe, id = 0, name: nuc980-ohci.0, 0
[ 1.785249] nuc980-ohci nuc980-ohci.0: Nuvoton NUC980 OHCI Host Controller
[ 1.792216] nuc980-ohci nuc980-ohci.0: new USB bus registered, assigned bus number 2
[ 1.800316] nuc980-ohci nuc980-ohci.0: irq 24, io mem 0xb0017000
[ 1.870024] hub 2-0:1.0: USB hub found
[ 1.874774] hub 2-0:1.0: 8 ports detected
[ 1.881983] usb_hcd_nuc980_probe, id = 1, name: nuc980-ohci.1, 0
[ 1.888791] usb_hcd_nuc980_probe, id = 2, name: nuc980-ohci.2, 0
[ 1.895641] usb_hcd_nuc980_probe, id = 3, name: nuc980-ohci.3, 0
[ 1.902158] usb_hcd_nuc980_probe, id = 4, name: nuc980-ohci.4, 0
[ 1.909224] usb_hcd_nuc980_probe, id = 5, name: nuc980-ohci.5, 0
[ 1.916283] usb_hcd_nuc980_probe, id = 6, name: nuc980-ohci.6, 0
[ 1.922891] ohci-platform: OHCI generic platform driver
[ 1.930449] usbcore: registered new interface driver usb-storage
[ 1.938674] usbcore: registered new interface driver usbserial
[ 1.945983] usbcore: registered new interface driver option
[ 1.952699] usbserial: USB Serial support registered for GSM modem (1-port)
[ 1.967174] do_sha - sha last has no data!
[ 1.971258] alg: hash: Test 1 failed for nuc980-sha1
[ 1.977574] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 1.983974] 00000010: 00 00 00 00
[ 1.988424] do_sha - sha last has no data!
[ 1.992499] alg: hash: Test 1 failed for nuc980-sha224
[ 1.997891] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.004524] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.010608] do_sha - sha last has no data!
[ 2.014974] alg: hash: Test 1 failed for nuc980-sha256
[ 2.020083] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.026716] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.033841] do_sha - sha last has no data!
[ 2.038224] alg: hash: Test 1 failed for nuc980-sha384
[ 2.043333] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.049958] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.056616] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.063733] do_sha - sha last has no data!
[ 2.068074] alg: hash: Test 1 failed for nuc980-sha512
[ 2.073183] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.079816] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.086483] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.092883] 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
[ 2.100149] alg: No test for hmac-sha1 (nuc980-hmac-sha1)
[ 2.106383] alg: No test for hmac-sha224 (nuc980-hmac-sha224)
[ 2.112724] alg: No test for hmac-sha256 (nuc980-hmac-sha256)
[ 2.119299] alg: No test for hmac-sha384 (nuc980-hmac-sha384)
[ 2.125908] alg: No test for hmac-sha512 (nuc980-hmac-sha512)
[ 2.131708] NUC980 Crypto engine enabled.
[ 2.154758] usbcore: registered new interface driver usbhid
[ 2.160299] usbhid: USB HID core driver
[ 2.176683] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa
[ 2.182999] nand: Winbond W25N01GV 1G 3.3V
[ 2.187591] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 2.195374] nand: WARNING: spi0.0: the ECC used on your system is too weak compared to the one required by the NAND chip
[ 2.206408] Scanning device for bad blocks
[ 2.576099] Creating 3 MTD partitions on "nand0":
[ 2.580791] 0x000000000000-0x000000200000 : "u-boot"
[ 2.591858] 0x000000200000-0x000001600000 : "Kernel"
[ 2.602983] 0x000001600000-0x000008000000 : "rootfs"
[ 2.616008] mtd: device 2 (rootfs) set to be root filesystem
[ 2.623099] mtdsplit: no squashfs found in "rootfs"
[ 2.638041] NET: Registered protocol family 10
[ 2.648124] NET: Registered protocol family 17
[ 2.652849] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.665999] 8021q: 802.1Q VLAN Support v1.8
[ 2.670283] lib80211: common routines for IEEE802.11 drivers
[ 2.687324] ubi0: attaching mtd2
[ 3.957283] ubi0: scanning is finished
[ 3.987283] ubi0: attached mtd2 (name "rootfs", size 106 MiB)
[ 3.992991] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 4.000108] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 4.007066] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 4.013974] ubi0: good PEBs: 848, bad PEBs: 0, corrupted PEBs: 0
[ 4.020374] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 4.027808] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 957642553
[ 4.037016] ubi0: available PEBs: 0, total reserved PEBs: 848, PEBs reserved for bad PEB handling: 20
[ 4.046341] ubi0: background thread "ubi_bgt0d" started, PID 1103
[ 4.086008] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 1105
[ 4.277691] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 4.285216] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 4.295191] UBIFS (ubi0:0): FS size: 103231488 bytes (98 MiB, 813 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 4.305749] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 4.311549] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 17CCEA80-C408-4362-BECF-EF1DC049714E, small LPT model
[ 4.325241] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 4.333041] Freeing unused kernel memory: 156K
[ 4.854883] init: Console is alive
[ 5.482049] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 5.596933] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 5.620358] init: - preinit -
[ 6.432324] random: jshn: uninitialized urandom read (4 bytes read, 59 bits of entropy available)
[ 6.568058] random: jshn: uninitialized urandom read (4 bytes read, 60 bits of entropy available)
[ 6.738008] random: jshn: uninitialized urandom read (4 bytes read, 60 bits of entropy available)
[ 6.861383] random: jshn: uninitialized urandom read (4 bytes read, 60 bits of entropy available)
[ 7.011583] random: jshn: uninitialized urandom read (4 bytes read, 60 bits of entropy available)
[ 7.185324] nuc980-emac0 nuc980-emac0: eth0 is OPENED
[ 7.191158] 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.604849] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 10.694108] mount_root: mounting /dev/root
- config restore -
[ 10.913483] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 11.051883] procd: - early -
[ 14.708499] procd: - ubus -
[ 14.869366] random: ubusd: uninitialized urandom read (4 bytes read, 76 bits of entropy available)
[ 14.914191] random: ubusd: uninitialized urandom read (4 bytes read, 76 bits of entropy available)
[ 14.938116] random: ubusd: uninitialized urandom read (4 bytes read, 76 bits of entropy available)
[ 14.953983] random: ubusd: uninitialized urandom read (4 bytes read, 76 bits of entropy available)
[ 14.988108] random: ubusd: uninitialized urandom read (4 bytes read, 76 bits of entropy available)
[ 15.008816] procd: - init -
Please press Enter to activate this console.
[ 16.559324] kmodloader: loading kernel modules from /etc/modules.d/*
[ 16.638424] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 16.771191] usbcore: registered new interface driver cdc_acm
[ 16.784558] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 16.808574] usbcore: registered new interface driver cdc_wdm
[ 16.846399] usbcore: registered new interface driver ch341
[ 16.855183] usbserial: USB Serial support registered for ch341-uart
[ 16.876924] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f
[ 16.894808] Backport generated by backports.git backports-20160324-13-g24da7d3c
[ 16.917066] usbcore: registered new interface driver cp210x
[ 16.932608] usbserial: USB Serial support registered for cp210x
[ 16.975033] usbcore: registered new interface driver ftdi_sio
[ 16.982616] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 17.010524] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 17.119399] nf_conntrack version 0.5.0 (920 buckets, 3680 max)
[ 17.235333] usbcore: registered new interface driver pl2303
[ 17.244558] usbserial: USB Serial support registered for pl2303
[ 17.265316] NET: Registered protocol family 24
[ 17.321291] usbcore: registered new interface driver r8152
[ 17.444124] xt_time: kernel timezone is -0000
[ 17.466249] usbcore: registered new interface driver cdc_ether
[ 18.527216] usbcore: registered new interface driver mt7601u
[ 18.601566] usbcore: registered new interface driver qmi_wwan
[ 18.631216] usbcore: registered new interface driver rndis_host
[ 18.683541] usbcore: registered new interface driver rtl8187
[ 18.921691] usbcore: registered new interface driver rtl8192cu
[ 18.934949] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 31.214466] random: nonblocking pool is initialized
BusyBox v1.25.1 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (17.01-SNAPSHOT, unknown)
\________\/ -----------------------------------------------------------
root@LEDE:/# [ 49.755208] nuc980-emac0 nuc980-emac0: eth0 is OPENED
[ 49.774874] device eth0 entered promiscuous mode
[ 49.800616] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 49.924591] nuc980-emac1 nuc980-emac1: eth1 is OPENED
[ 49.930424] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[ 53.645041] br-lan: port 1(eth0) entered forwarding state
[ 53.650566] br-lan: port 1(eth0) entered forwarding state
[ 53.713941] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[ 55.644433] br-lan: port 1(eth0) entered forwarding state
|