仔细研究了一下, 发现楼上推荐的 SINA33 不错哦, 刚刚找到了 2015-03-29 资料, 不知道是不是最新的:
https://pan.baidu.com/s/1bnk3gEr
喜欢的可以保存一下.
看下这个驱动:
https://github.com/torvalds/linux/blob/master/drivers/char/hangcheck-timer.c
static DEFINE_TIMER(hangcheck_ticktock, hangcheck_fire);
触发时间间隔在回调函数里面设定.
给你一个晕哥mdev的: https://whycan.cn/t_711.html#p2588
立创商城,搜功率电感,封装选0805。内阻比较大,没用过。
https://so.szlcsc.com/global.html?k=0805功率电感
这个如何:
https://item.szlcsc.com/430003.html
商品目录 功率电感
精度 ±20%
电感值 1uH
直流电阻(内阻) 76mΩ
额定电流 2.4A
请问@晕哥小弟,荔枝派还有哪个 MIPI接口的摄像头可以用呢
drivers/media/video/sunxi-vfe/device$ ls -l *mipi*.c
-rwxrwxr-x 1 whycan whycan 32311 Dec 19 15:33 ar0330_mipi.c
-rwxrwxr-x 1 whycan whycan 31843 Dec 19 15:33 gc1004_mipi.c
-rwxrwxr-x 1 whycan whycan 29016 Dec 19 15:33 gc2355_mipi.c
-rwxrwxr-x 1 whycan whycan 33161 Dec 19 15:33 gc5004_mipi.c
-rwxrwxr-x 1 whycan whycan 25482 Dec 19 15:33 h22_mipi.c
-rwxrwxr-x 1 whycan whycan 25563 Dec 19 15:33 h42_mipi.c
-rwxrwxr-x 1 whycan whycan 28323 Dec 19 15:33 nt99231_mipi.c
-rwxrwxr-x 1 whycan whycan 28122 Dec 19 15:33 ov2710_mipi.c
-rwxrwxr-x 1 whycan whycan 153397 Dec 19 15:33 ov5640_mipi.c
-rwxrwxr-x 1 whycan whycan 40517 Dec 19 15:33 ov5647_mipi.c
-rwxrwxr-x 1 whycan whycan 44179 Dec 19 15:33 s5k4e1_mipi.c
-rwxrwxr-x 1 whycan whycan 235436 Dec 19 15:33 s5k4ec_mipi.c
直接支持 ar0330, gc1004, gc2355,gc5004,h22,h42,nt99231,ov2710,ov5640,ov5647,s5k4e1,s5k4ec 等mipi摄像头。
参考晕哥这个帖子: https://whycan.cn/t_2258.html#p16569
新唐的soc都要在上电前跳线(bootstrap陷入)进入烧录模式, 这点和全志不同。
全志这样做的优势是: 方便.
新唐这样做的优势是: 目标明确,启动速度会更快,应该会少几百条指令时间就能进入对应的存储器加载数据。
叫啥子?
PhoenixCard: PhoenixCard_V104_20110314.rar
死马做活马医, 强行用 mtd erase 命令擦除 ubi0区:
=> mtd erase ubi0
Erasing 0x00000000 ... 0x07efffff (1016 eraseblock(s))
=>
=> ubi part ubi0
=>
重新用 win32diskimager 烧录进去, 启动OK:
[ 1.129118] loop: module loaded
[ 1.139120] spi-nand spi0.0: Winbond SPI NAND was found.
[ 1.145015] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.154359] 2 fixed-partitions partitions found on MTD device spi0.0
[ 1.160720] Creating 2 MTD partitions on "spi0.0":
[ 1.165741] 0x000000000000-0x000000100000 : "boot"
[ 1.175769] 0x000000100000-0x000008000000 : "ubi0"
[ 1.182914] random: fast init done
[ 1.405666] random: crng init done
[ 1.555927] libphy: Fixed MDIO Bus: probed
[ 1.562172] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.567979] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.584497] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.591853] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.599073] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.604128] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.610912] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.616590] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.622720] libphy: stmmac: probed
[ 1.627724] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.634742] libphy: mdio_mux: probed
[ 1.638366] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.645099] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.653544] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.660086] ehci-platform: EHCI generic platform driver
[ 1.666565] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 1.673094] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.681060] ehci-platform 1c1a000.usb: irq 35, io mem 0x01c1a000
[ 1.711605] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.717976] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 1.726288] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.733520] usb usb1: Product: EHCI Host Controller
[ 1.738394] usb usb1: Manufacturer: Linux 4.19.85 ehci_hcd
[ 1.743887] usb usb1: SerialNumber: 1c1a000.usb
[ 1.749396] hub 1-0:1.0: USB hub found
[ 1.753635] hub 1-0:1.0: 1 port detected
[ 1.758905] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.765696] ohci-platform: OHCI generic platform driver
[ 1.771353] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.778233] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.786348] ohci-platform 1c1a400.usb: irq 36, io mem 0x01c1a400
[ 1.866557] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 4.19
[ 1.874878] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.882110] usb usb2: Product: Generic Platform OHCI controller
[ 1.888023] usb usb2: Manufacturer: Linux 4.19.85 ohci_hcd
[ 1.893518] usb usb2: SerialNumber: 1c1a400.usb
[ 1.899072] hub 2-0:1.0: USB hub found
[ 1.903307] hub 2-0:1.0: 1 port detected
[ 1.908864] usbcore: registered new interface driver usb-storage
[ 1.916374] mousedev: PS/2 mouse device common for all mice
[ 1.922888] sun4i-a10-lradc-keys 1c22800.lradc: Linked as a consumer to regulator.1
[ 1.931186] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.940806] i2c /dev entries driver
[ 1.947191] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.958858] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.991665] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 2.000394] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 2.244226] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 2.258227] NET: Registered protocol family 10
[ 2.276046] Segment Routing with IPv6
[ 2.279822] NET: Registered protocol family 17
[ 2.284918] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 2.298195] can: controller area network core (rev 20170425 abi 9)
[ 2.305017] NET: Registered protocol family 29
[ 2.309486] 8021q: 802.1Q VLAN Support v1.8
[ 2.314269] Registering SWP/SWPB emulation handler
[ 2.328377] ubi0: default fastmap pool size: 50
[ 2.333513] ubi0: default fastmap WL pool size: 25
[ 2.338313] ubi0: attaching mtd1
[ 4.500200] ubi0: scanning is finished
[ 4.532000] ubi0: attached mtd1 (name "ubi0", size 127 MiB)
[ 4.537587] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[ 4.544867] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[ 4.551776] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
[ 4.558733] ubi0: good PEBs: 1016, bad PEBs: 0, corrupted PEBs: 0
[ 4.565005] ubi0: user volume: 4, internal volumes: 1, max. volumes count: 128
[ 4.572294] ubi0: max/mean erase counter: 1/0, WL threshold: 128, image sequence number: 1574671118
[ 4.581329] ubi0: available PEBs: 0, total reserved PEBs: 1016, PEBs reserved for bad PEB handling: 20
[ 4.590682] ubi0: background thread "ubi_bgt0d" started, PID 1210
[ 4.596829] hctosys: unable to open rtc device (rtc0)
[ 4.602269] ALSA device list:
[ 4.605244] No soundcards found.
[ 4.619442] UBIFS (ubi0:3): background thread "ubifs_bgt0_3" started, PID 1212
[ 4.753564] UBIFS (ubi0:3): start fixing up free space
[ 5.522755] UBIFS (ubi0:3): free space fixup complete
[ 5.598874] UBIFS (ubi0:3): UBIFS: mounted UBI device 0, volume 3, name "rootfs"
[ 5.606382] UBIFS (ubi0:3): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 5.616312] UBIFS (ubi0:3): FS size: 110342144 bytes (105 MiB, 869 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
[ 5.626919] UBIFS (ubi0:3): reserved for root: 0 bytes (0 KiB)
[ 5.632762] UBIFS (ubi0:3): media format: w4/r0 (latest is w5/r0), UUID C9978655-2A1E-43FF-9481-401E1C7A1FD7, small LPT model
[ 5.650986] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 5.659861] Freeing unused kernel memory: 2048K
[ 5.664630] Run /sbin/init as init process
[ 6.055656] init: Console is alive
[ 6.059475] init: - watchdog -
[ 6.793632] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 6.845266] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 6.863256] init: - preinit -
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 8.494479] mount_root: mounting /dev/root
[ 8.515764] mount_root: loading kmods from internal overlay
[ 8.540814] kmodloader: loading kernel modules from //etc/modules-boot.d/*
[ 8.548758] kmodloader: done loading kernel modules from //etc/modules-boot.d/*
[ 9.219065] block: attempting to load /etc/config/fstab
[ 9.235841] block: unable to load configuration (fstab: Entry not found)
[ 9.242848] block: no usable configuration
[ 9.268207] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 9.310891] procd: - early -
[ 9.317936] procd: - watchdog -
[ 10.795907] procd: - watchdog -
[ 10.799483] procd: - ubus -
[ 10.869830] procd: - init -
Please press Enter to activate this console.
[ 11.800925] kmodloader: loading kernel modules from /etc/modules.d/*
[ 11.870958] urngd: v1.0.1 started.
[ 12.203367] xt_time: kernel timezone is -0000
[ 12.349415] PPP generic driver version 2.4.2
[ 12.357555] NET: Registered protocol family 24
[ 12.386066] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 25.716348] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[ 25.744894] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 25.785550] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 25.840999] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 25.899167] br-lan: port 1(eth0) entered blocking state
[ 25.911868] br-lan: port 1(eth0) entered disabled state
[ 25.931376] device eth0 entered promiscuous mode
[ 25.951495] br-lan: port 1(eth0) entered blocking state
[ 25.956870] br-lan: port 1(eth0) entered forwarding state
[ 26.003582] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 26.724681] br-lan: port 1(eth0) entered disabled state
[ 35.041628] vcc3v3: disabling
[ 35.044623] vcc5v0: disabling
BusyBox v1.31.1 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r11644-205ff32af0
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/#
终于启动, 泪水都快流出来了。
现在还是百思不得其解, 为什么一定要用 mtd erase ubi0 这个擦除命令呢?明明我用win32diskimager校验是正确的!
解压后,用win32diskimager 烧入,校验正确之后再重启。
参考这个: https://lists.denx.de/pipermail/u-boot/2016-February/246137.html
V3s + W25N01GV 操作:
=> mtdparts
device spi-nand0 <0>, # parts = 2
#: name size offset mask_flags
0: boot 0x00100000 0x00000000 0
1: ubi0 0x07f00000 0x00100000 0
active partition: spi-nand0,0 - (boot) 0x00100000 @ 0x00000000
defaults:
mtdids : spi-nand0=0
mtdparts: mtdparts=0:1M(boot),-(ubi0)
=> ubi part ubi0
ubi0 error: scan_peb: bad image sequence number 1573729378 in PEB 97, expected 1574671118
Erase counter header dump:
magic 0x55424923
version 1
ec 1
vid_hdr_offset 2048
data_offset 4096
image_seq 1573729378
hdr_crc 0x23f91fb6
erase counter header hexdump:
00000000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 01 00 00 08 00 00 00 10 00 5d cd 34 62 00 00 00 00 UBI#....................].4b....
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 23 f9 1f b6 ............................#...
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd2, error -22
UBI error: cannot attach mtd2
UBI error: cannot initialize UBI, error -22
UBI init error 22
Please check, if the correct MTD partition is used (size big enough?)
=>
https://unix.stackexchange.com/questions/17574/is-there-a-maximum-size-to-the-bash-history-file
unset HISTSIZE
unset HISTFILESIZE
shopt -s histappend
找到这个, 不知道疗效如何.
不过还是先记录一下文件尺寸吧:
$ ls ~/.bash_history -l
-rw------- 1 whycan whycan 28155 Dec 4 11:40 /home/xgui/.bash_history
试了一下 1Mhz 也不行, 一样的错误。
1Mhz + 1bit , 连固件都加载不了:
[ 8.022389] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 8.033885] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 14.887216] brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
[ 14.906431] brcmfmac: brcmf_c_preinit_dcmds: Retreiving cur_etheraddr failed, -110
[ 14.918075] brcmfmac: brcmf_bus_started: failed: -110
[ 14.927103] brcmfmac: brcmf_sdio_firmware_callback: dongle is not responding
说明 ap6212 不支持 1bit 模式。
你可以减少频率或sdio接口的位元试
&mmc1 { ... //max-frequency = <50000000> max-frequency = <25000000>; //mmc-pwrseq = <&wifi_reg_en>; //bus-width = <4>; bus-width = <1>; non-removable; status = "okay"; brcmf: wifi@1 { reg = <1>; compatible = "brcm,bcm4329-fmac"; }; };
[ 5.255785] Adding 131068k swap on /dev/mmcblk0p3. Priority:-1 extents:1 across:131068k SS
[ 5.716264] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 30 2016 11:30:56 version 7.45.77.h8.4 FWID 01-ee8a6268
[ 6.374033] systemd-journald[79]: Received request to flush runtime journal from PID 1
[ 8.278029] Generic PHY stmmac-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:01, irq=-1)
[ 8.297628] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 8.309395] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 71.002599] random: crng init done
[ 78.067966] brcmfmac: brcmf_sdio_kso_control: max tries: rd_val=0x0 err=0
[ 78.074998] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.083094] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.092092] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.098772] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.107428] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.114493] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.122842] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[ 78.131207] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[ 78.140321] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.147366] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.155600] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.162209] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.171610] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.178115] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.194006] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[ 78.202810] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.209947] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.218546] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.224978] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.233402] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.239785] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.248803] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[ 78.257174] brcmfmac: brcmf_dongle_scantime: Scan assoc time error (-110)
[ 78.264371] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.275769] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.296437] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.303622] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.314350] sunxi-mmc 1c10000.mmc: data error, sending stop command
[ 78.326790] brcmfmac: brcmf_sdio_txfail: sdio error, abort command and terminate frame
[ 78.336296] brcmfmac: brcmf_sdio_dpc: failed backplane access over SDIO, halting operation
[ 78.344757] brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
奇怪了, mmc1 频率都降低到了 6MHz, 还是一样的问题
mmc1: mmc@01c10000 {
compatible = "allwinner,sun7i-a20-mmc";
reg = <0x01c10000 0x1000>;
clocks = <&ccu CLK_BUS_MMC1>,
<&ccu CLK_MMC1>,
<&ccu CLK_MMC1_OUTPUT>,
<&ccu CLK_MMC1_SAMPLE>;
clock-names = "ahb",
"mmc",
"output",
"sample";
resets = <&ccu RST_BUS_MMC1>;
reset-names = "ahb";
interrupts = <GIC_SPI 61 IRQ_TYPE_LEVEL_HIGH>;
pinctrl-names = "default";
pinctrl-0 = <&mmc1_pins>;
status = "disabled";
max-frequency = <6000000>;
#address-cells = <1>;
#size-cells = <0>;
};
U-Boot SPL 2019.10 (Nov 15 2019 - 14:24:05 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x40000
sunxi SPI-NAND: u-boot hcrc OK!
U-Boot 2019.10 (Nov 15 2019 - 14:24:05 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
Loading Environment from UBI... Winbond SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
ubi0 error: scan_peb: bad image sequence number 1573729378 in PEB 97, expected 1573827845
Erase counter header dump:
magic 0x55424923
version 1
ec 1
vid_hdr_offset 2048
data_offset 4096
image_seq 1573729378
hdr_crc 0x23f91fb6
erase counter header hexdump:
00000000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 01 00 00 08 00 00 00 10 00 5d cd 34 62 00 00 00 00 UBI#....................].4b....
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 23 f9 1f b6 ............................#...
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd2, error -22
UBI error: cannot attach mtd2
UBI error: cannot initialize UBI, error -22
UBI init error 22
Please check, if the correct MTD partition is used (size big enough?)
** Cannot find mtd partition "ubi0"
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: phy interface0
WARNING: emac: cannot find pinctrl-0 node
sunxi_set_gate: (CLK#26) unhandled
sunxi_set_reset: (RST#12) unhandled
Could not get PHY for ethernet@1c30000: addr 1
eth-1: ethernet@1c30000
Hit any key to stop autoboot: 0
UBIFS error (pid: 1): cannot open "ubi0:kernel", error -19
Error reading superblock on volume 'ubi0:kernel' errno=-19!
ubifsmount - mount UBIFS volume
Usage:
ubifsmount <volume-name>
- mount 'volume-name' volume
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem
Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem
Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=> nand
Unknown command 'nand' - try 'help'
=>
u-boot have not nand command, how can erase nand?
我看了看主线支持设备里头也没有这个型号,怪哉,这个型号奇奇怪怪
https://whycan.cn/t_561_2.html#p18934
摄像头的 i2c 地址没有检测到吧?
这里有一个差不多的问题: http://xcx1024.com/ArtInfo/705422.html
4、如何提高绘图的效率
我主要做的是电力系统的网络图形的CAD软件,在一个窗口中往往要显示成千上万个电力元件,
而每个元件又是由点、线、圆等基本图形构成。如果真要在一次重绘过程重画这么多元件,
可想而知这个过程是非常漫长的。如果加上了图形的浏览功能,鼠标拖动图形滚动时需要进行
大量的重绘,速度会慢得让用户将无法忍受。怎么办?只有再研究研究MFC的绘图过程了。实际上,在OnDraw(CDC *pDC)中绘制的图并不是所有都显示了的,例如:你在OnDraw中
画了两个矩形,在一次重绘中虽然两个矩形的绘制函数都有执行,但是很有可能只有一个显示了,
这是因为MFC本身为了提高重绘的效率设置了裁剪区。裁剪区的作用就是:只有在这个区内的
绘图过程才会真正有效,在区外的是无效的,即使在区外执行了绘图函数也是不会显示的。因为多数情况下窗口重绘的产生大多是因为窗口部分被遮挡或者窗口有滚动发生,改变的
区域并不是整个图形而只有一小部分,这一部分需要改变的就是pDC中的裁剪区了。因为显示(往内存或者显存都叫显示)比绘图过程的计算要费时得多,有了裁剪区后显示
的就只是应该显示的部分,大大提高了显示效率。但是这个裁剪区是MFC设置的,它已经
为我们提高了显示效率,在进行复杂图形的绘制时如何进一步提高效率呢?那就只有
去掉在裁剪区外的绘图过程了。可以先用pDC->GetClipBox()得到裁剪区,
然后在绘图时判断你的图形是否在这个区内,如果在就画,不在就不画。如果你的绘图过程不复杂,这样做可能对你的绘图效率不会有提高。
我改了一下, 基本没问题了:
lv_thread.h 添加:
public:
bool isrun;
lv_thread.cpp :
void lv_thread::run()
{
isrun = true;
QElapsedTimer timer;
qint64 ms_elapsed;ui_dirty = false;
lv_init();
lv_drv_register();
lv_font_ttf_init();
demo_create();timer.start();
while(isrun)
{
lv_task_handler();
if(ui_dirty)
{
ui_dirty = false;
emit UiUpdate();
}
msleep(1);
ms_elapsed = timer.elapsed();
timer.restart();
lv_tick_inc(ms_elapsed);
}
}
mainwindow.cpp :
MainWindow::~MainWindow()
{
gui_thread.isrun = false;gui_thread.wait(1000000);
delete ui;
}
这样就不会出错了, 窗口退出前, 先退出线程,可能还有别的问题,反正这个问题可以解决了。
准备工作:
sudo apt-get install libavcodec-dev libavformat-dev libavutil-dev libswscale-dev -y
vnc2mpg.c 录像客户端编译方法:
gcc -o vnc2mpg vnc2mpg.c `pkg-config --libs --cflags libavcodec libswscale libavutil libavformat libvncclient`
使用方法:
./vnc2mpg ip:port
会录制成 output.mp4 文件, 可以使用 vlc, ffplay, mplayer等播放。
https://github.com/LibVNC/libvncserver/blob/master/client_examples/backchannel.c
https://github.com/LibVNC/libvncserver/blob/master/client_examples/ppmtest.c
https://github.com/LibVNC/libvncserver/blob/master/client_examples/SDLvncviewer.c
https://github.com/LibVNC/libvncserver/blob/master/client_examples/gtkvncviewer.c
https://github.com/LibVNC/libvncserver/blob/master/client_examples/vnc2mpg.c
libvncclient 这几个demo写得太棒了。
https://github.com/bk138/multivnc
https://stackoverflow.com/questions/55869926/qt-how-to-make-qimage-aware-of-updated-memory-buffer
https://api.kde.org/4.x-api/kdenetwork-apidocs/krdc/html/vncclientthread_8cpp_source.html
https://github.com/LibVNC/libvncserver/blob/master/client_examples/gtkvncviewer.c
https://raw.githubusercontent.com/LibVNC/libvncserver/master/client_examples/gtkvncviewer.c
准备工作:
sudo apt-get install libgtk2.0-dev glib2.0-dev libvncserver-dev -y
编译方法:
gcc -o gtkvncviewer gtkvncviewer.c `pkg-config --cflags --libs glib-2.0` `pkg-config --cflags --libs gtk+-2.0` `pkg-config --libs libvncclient`
运行:
./gtkvncviewer 远程vnc服务器:端口
开启earlyprintk: https://whycan.cn/t_2402.html#p18400
Hey @bamkrsde
我先 git pull, 然后 把 spi clock 修改成了 25000000, win32diskimager burn 之后, 出现这个问题:
U-Boot SPL 2019.10 (Nov 15 2019 - 14:24:05 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
sunxi SPI-NAND: Loading u-boot from 0x40000
sunxi SPI-NAND: u-boot hcrc OK!
U-Boot 2019.10 (Nov 15 2019 - 14:24:05 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
Loading Environment from UBI... Winbond SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
ubi0 error: scan_peb: bad image sequence number 1573729378 in PEB 97, expected 1573827845
Erase counter header dump:
magic 0x55424923
version 1
ec 1
vid_hdr_offset 2048
data_offset 4096
image_seq 1573729378
hdr_crc 0x23f91fb6
erase counter header hexdump:
00000000: 55 42 49 23 01 00 00 00 00 00 00 00 00 00 00 01 00 00 08 00 00 00 10 00 5d cd 34 62 00 00 00 00 UBI#....................].4b....
00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 23 f9 1f b6 ............................#...
ubi0 error: ubi_attach_mtd_dev: failed to attach mtd2, error -22
UBI error: cannot attach mtd2
UBI error: cannot initialize UBI, error -22
UBI init error 22
Please check, if the correct MTD partition is used (size big enough?)
** Cannot find mtd partition "ubi0"
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: phy interface0
WARNING: emac: cannot find pinctrl-0 node
sunxi_set_gate: (CLK#26) unhandled
sunxi_set_reset: (RST#12) unhandled
Could not get PHY for ethernet@1c30000: addr 1
eth-1: ethernet@1c30000
Hit any key to stop autoboot: 0
UBIFS error (pid: 1): cannot open "ubi0:kernel", error -19
Error reading superblock on volume 'ubi0:kernel' errno=-19!
ubifsmount - mount UBIFS volume
Usage:
ubifsmount <volume-name>
- mount 'volume-name' volume
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem
Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
UBIFS not mounted, use ubifs mount to mount volume first!
ubifsload - load file from an UBIFS filesystem
Usage:
ubifsload <addr> <filename> [bytes]
- load file 'filename' to address 'addr'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>
然后 make clean, git reset, 再重新 make & burn, 还是同样的error.
http://www.iceasy.com/5627/1003583476.shtml
http://www.iceasy.com/subject/201911/s11.shtml
把 0.01 的添加到购物车
点右上角注册送20元, 然后两个加到购物车一起付款可以免邮, 这样几毛钱就可以撸到一块 ESP32 开发板
给你一个公用SMS验证的平台, 不用谢.
Hey @bamkrsde, I have executed git pull and use new spinand.config,
并且生成了
bin/targets/sunxi/cortexa7v3sspinand/openwrt-snapshot-r11543+4-47658339b7-sunxi-cortexa7v3sspinand-sun8i-v3s-dolphinpi-ubifs-ubispinand.img.gz
但是在 Linux 出错
MX35LF1GE4AB:
[ 1.133382] loop: module loaded
[ 1.142930] spi-nand spi0.0: unknown raw ID 00000000
[ 1.147940] spi-nand: probe of spi0.0 failed with error -524
[ 1.156532] libphy: Fixed MDIO Bus: probed
[ 1.162605] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.168413] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.185048] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.192416] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.199636] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.204653] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.211438] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.217139] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.223279] libphy: stmmac: probed
[ 1.228298] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.235271] libphy: mdio_mux: probed
[ 1.238896] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.245619] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.253963] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.260505] ehci-platform: EHCI generic platform driver
[ 1.266966] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.273551] ohci-platform: OHCI generic platform driver
[ 1.279426] usbcore: registered new interface driver usb-storage
[ 1.286797] mousedev: PS/2 mouse device common for all mice
[ 1.293417] sun4i-a10-lradc-keys 1c22800.lradc: Linked as a consumer to regulator.1
[ 1.301965] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.311462] i2c /dev entries driver
[ 1.317583] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.329333] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.361721] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.370373] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.614264] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.629369] NET: Registered protocol family 10
[ 1.646612] Segment Routing with IPv6
[ 1.650412] NET: Registered protocol family 17
[ 1.655632] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.668849] can: controller area network core (rev 20170425 abi 9)
[ 1.675716] NET: Registered protocol family 29
[ 1.680188] 8021q: 802.1Q VLAN Support v1.8
[ 1.684923] Registering SWP/SWPB emulation handler
[ 1.700313] UBI error: cannot open mtd 1, error -19
[ 1.705738] hctosys: unable to open rtc device (rtc0)
[ 1.711154] ALSA device list:
[ 1.714320] No soundcards found.
[ 1.718759] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[ 1.727157] Please append a correct "root=" boot option; here are the available partitions:
[ 1.735621] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.743887] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.82 #0
[ 1.749884] Hardware name: Allwinner sun8i Family
[ 1.754622] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 1.762370] [<c0227ae8>] (show_stack) from [<c0838728>] (dump_stack+0x88/0x9c)
[ 1.769596] [<c0838728>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 1.776477] [<c023a7cc>] (panic) from [<c0c013dc>] (mount_block_root+0x1c8/0x280)
[ 1.783960] [<c0c013dc>] (mount_block_root) from [<c0c01618>] (prepare_namespace+0x9c/0x188)
[ 1.792392] [<c0c01618>] (prepare_namespace) from [<c0c00fa8>] (kernel_init_freeable+0x244/0x254)
[ 1.801256] [<c0c00fa8>] (kernel_init_freeable) from [<c084acb4>] (kernel_init+0x8/0x110)
[ 1.809428] [<c084acb4>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 1.816986] Exception stack(0xc3833fb0 to 0xc3833ff8)
[ 1.822032] 3fa0: 00000000 00000000 00000000 00000000
[ 1.830200] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.838366] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.844987] Rebooting in 5 seconds..
W25N01GVxxIG:
[ 1.133799] loop: module loaded
[ 1.143482] spi-nand spi0.0: unknown raw ID 0067aa20
[ 1.148497] spi-nand: probe of spi0.0 failed with error -524
[ 1.157014] libphy: Fixed MDIO Bus: probed
[ 1.163185] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.168993] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.185555] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.192932] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.200152] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.205173] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.212011] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.217667] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.223807] libphy: stmmac: probed
[ 1.228827] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.235802] libphy: mdio_mux: probed
[ 1.239426] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.246166] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.254577] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.261116] ehci-platform: EHCI generic platform driver
[ 1.267594] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.274192] ohci-platform: OHCI generic platform driver
[ 1.280062] usbcore: registered new interface driver usb-storage
[ 1.287399] mousedev: PS/2 mouse device common for all mice
[ 1.293991] sun4i-a10-lradc-keys 1c22800.lradc: Linked as a consumer to regulator.1
[ 1.302572] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.312318] i2c /dev entries driver
[ 1.318294] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.330031] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.361733] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.370401] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.614282] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.629287] NET: Registered protocol family 10
[ 1.646521] Segment Routing with IPv6
[ 1.650313] NET: Registered protocol family 17
[ 1.655507] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 1.668723] can: controller area network core (rev 20170425 abi 9)
[ 1.675545] NET: Registered protocol family 29
[ 1.680014] 8021q: 802.1Q VLAN Support v1.8
[ 1.684792] Registering SWP/SWPB emulation handler
[ 1.700007] UBI error: cannot open mtd 1, error -19
[ 1.705510] hctosys: unable to open rtc device (rtc0)
[ 1.710925] ALSA device list:
[ 1.714088] No soundcards found.
[ 1.718502] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[ 1.726893] Please append a correct "root=" boot option; here are the available partitions:
[ 1.735359] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.743627] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.82 #0
[ 1.749624] Hardware name: Allwinner sun8i Family
[ 1.754362] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 1.762110] [<c0227ae8>] (show_stack) from [<c0838728>] (dump_stack+0x88/0x9c)
[ 1.769339] [<c0838728>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 1.776220] [<c023a7cc>] (panic) from [<c0c013dc>] (mount_block_root+0x1c8/0x280)
[ 1.783701] [<c0c013dc>] (mount_block_root) from [<c0c01618>] (prepare_namespace+0x9c/0x188)
[ 1.792133] [<c0c01618>] (prepare_namespace) from [<c0c00fa8>] (kernel_init_freeable+0x244/0x254)
[ 1.800988] [<c0c00fa8>] (kernel_init_freeable) from [<c084acb4>] (kernel_init+0x8/0x110)
[ 1.809161] [<c084acb4>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 1.816719] Exception stack(0xc3833fb0 to 0xc3833ff8)
[ 1.821765] 3fa0: 00000000 00000000 00000000 00000000
[ 1.829931] 3fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.838097] 3fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.844717] Rebooting in 5 seconds..
可是我打开 make menuconfig > Target Images 并没有发现有关于 ubi image 的相关设置:
│ │ [ ] ramdisk ---- │ │
│ │ *** Root filesystem archives *** │ │
│ │ [ ] cpio.gz │ │
│ │ [ ] tar.gz │ │
│ │ *** Root filesystem images *** │ │
│ │ [*] ext4 ---> │ │
│ │ [*] squashfs ---> │ │
│ │ [*] GZip images │ │
│ │ *** Image Options *** │ │
│ │ (20) Boot (SD Card) filesystem partition size (in MB) │ │
│ │ (2) SPI-NAND pagesize size │ │
│ │ (128) SPI-NAND block-size (in KiB) (NEW) │ │
│ │ (1048576) Offset of ubi in the spi-nand (NEW) │ │
│ │ (104) Root filesystem partition size (in MB)
而且也不存在 bin/targets/sunxi/openwrt-snapshot-r(git-revision)-sunxi-cortexa7-v3s-sun8i-v3s-dolphinpi-ubifs-ubispinand.img.gz 这个文件.
我发现 rootfs 在 0x000000ae0000-0x000008000000 这个位置,
实际上我的 openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-squashfs-spinand.img 这个烧录文件也才 0x6AFE16 个字节,所以根本没有烧录 rootfs
这是我编译出来的文件: openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-20191113.tgz
@bamkrsde 请问这个文件正常吗?
同一个文件烧到 MX flash, 可以识别id并执行mtd分区, 但是 rootfs 有问题:
U-Boot SPL 2019.10 (Nov 13 2019 - 07:58:39 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Macronix MX35LF1GE4AB (c212c2)
U-Boot 2019.10 (Nov 13 2019 - 07:58:39 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
Macronix SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Reading 4194304 byte(s) (2048 page(s)) at offset 0x00110000
Reading 65536 byte(s) (32 page(s)) at offset 0x00100000
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2925512 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Loading Device Tree to 42dfa000, end 42dffa7f ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Wed Nov 13 07:58:39 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line:
[ 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: 53868K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11668K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000267] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000478] Console: colour dummy device 80x30
[ 0.000989] console [tty0] enabled
[ 0.001045] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001082] pid_max: default: 32768 minimum: 301
[ 0.001266] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001298] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002301] CPU: Testing write buffer coherency: ok
[ 0.002891] /cpus/cpu@0 missing clock-frequency property
[ 0.002945] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060201] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080201] rcu: Hierarchical SRCU implementation.
[ 0.120325] smp: Bringing up secondary CPUs ...
[ 0.120377] smp: Brought up 1 node, 1 CPU
[ 0.120396] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120414] CPU: All CPU(s) started in HYP mode.
[ 0.120428] CPU: Virtualization extensions available.
[ 0.123859] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.124635] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.124703] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.125068] pinctrl core: initialized pinctrl subsystem
[ 0.126305] NET: Registered protocol family 16
[ 0.126703] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.127823] No ATAGs?
[ 0.184165] SCSI subsystem initialized
[ 0.184628] usbcore: registered new interface driver usbfs
[ 0.184757] usbcore: registered new interface driver hub
[ 0.186651] usbcore: registered new device driver usb
[ 0.187584] pps_core: LinuxPPS API ver. 1 registered
[ 0.187629] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.187835] PTP clock support registered
[ 0.189454] Advanced Linux Sound Architecture Driver Initialized.
[ 0.195092] clocksource: Switched to clocksource arch_sys_counter
[ 0.225796] NET: Registered protocol family 2
[ 0.227446] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.227532] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.227571] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.227606] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.227769] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.227837] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.228162] NET: Registered protocol family 1
[ 0.228598] kvm [1]: 8-bit VMID
[ 0.229621] kvm [1]: Hyp mode initialized successfully
[ 0.232558] No memory allocated for crashlog
[ 0.233676] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.261675] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.263371] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.291846] io scheduler noop registered
[ 0.291893] io scheduler deadline registered
[ 0.292174] io scheduler cfq registered (default)
[ 0.293061] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.298666] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.506793] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.534322] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 1.091988] console [ttyS0] enabled
[ 1.110222] loop: module loaded
[ 1.120474] spi-nand spi0.0: Macronix SPI NAND was found.
[ 1.126690] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.136019] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.142408] Creating 4 MTD partitions on "spi0.0":
[ 1.147465] 0x000000000000-0x000000100000 : "u-boot"
[ 1.156428] 0x000000100000-0x000000110000 : "dtb"
[ 1.163986] 0x000000110000-0x000000510000 : "kernel"
[ 1.171897] random: fast init done
[ 1.181792] 0x000000ae0000-0x000008000000 : "rootfs"
[ 1.380572] mtd: device 3 (rootfs) set to be root filesystem
[ 1.387486] mtdsplit: no squashfs found in "rootfs"
[ 1.394753] libphy: Fixed MDIO Bus: probed
[ 1.400635] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.406925] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.423247] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.430724] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.438097] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.443077] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.449925] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.455637] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.461321] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address 56:7d:8a:cc:74:72
[ 1.472253] libphy: stmmac: probed
[ 1.477245] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.484189] libphy: mdio_mux: probed
[ 1.488004] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.494383] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.502241] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.509922] ehci-platform: EHCI generic platform driver
[ 1.515824] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.522122] ohci-platform: OHCI generic platform driver
[ 1.528350] usbcore: registered new interface driver usb-storage
[ 1.535928] mousedev: PS/2 mouse device common for all mice
[ 1.541898] sun4i-a10-lradc-keys 1c22800.lradc: Linked as a consumer to regulator.1
[ 1.550870] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.560460] i2c /dev entries driver
[ 1.566751] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.578482] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.612403] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.621164] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.867721] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.882180] NET: Registered protocol family 10
[ 1.899845] Segment Routing with IPv6
[ 1.903662] NET: Registered protocol family 17
[ 1.908801] can: controller area network core (rev 20170425 abi 9)
[ 1.915843] NET: Registered protocol family 29
[ 1.920340] 8021q: 802.1Q VLAN Support v1.8
[ 1.924572] Registering SWP/SWPB emulation handler
[ 1.938349] hctosys: unable to open rtc device (rtc0)
[ 1.943805] ALSA device list:
[ 1.947435] No soundcards found.
[ 1.962482] random: crng init done
[ 1.967813] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 1.975376] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 1th superblock
[ 1.986596] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0xe1a02000)
[ 1.994458] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 2th superblock
[ 2.002307] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 2.009658] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 1th superblock
[ 2.017388] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0xe1a02000)
[ 2.025275] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 2th superblock
[ 2.033097] List of all partitions:
[ 2.036721] 1f00 1024 mtdblock0
[ 2.036727] (driver?)
[ 2.043283] 1f01 64 mtdblock1
[ 2.043286] (driver?)
[ 2.049909] 1f02 4096 mtdblock2
[ 2.049913] (driver?)
[ 2.056552] 1f03 119936 mtdblock3
[ 2.056557] (driver?)
[ 2.063104] No filesystem could mount root, tried:
[ 2.063107] ext3
[ 2.068001] ext2
[ 2.069931] ext4
[ 2.071858] squashfs
[ 2.073784] vfat
[ 2.076075] f2fs
[ 2.078004]
[ 2.081427] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 2.089787] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.81 #0
[ 2.095795] Hardware name: Allwinner sun8i Family
[ 2.100539] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 2.108299] [<c0227ae8>] (show_stack) from [<c07b0588>] (dump_stack+0x88/0x9c)
[ 2.115539] [<c07b0588>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 2.122430] [<c023a7cc>] (panic) from [<c0a01470>] (mount_block_root+0x260/0x280)
[ 2.129925] [<c0a01470>] (mount_block_root) from [<c0a016c8>] (prepare_namespace+0x150/0x188)
[ 2.138459] [<c0a016c8>] (prepare_namespace) from [<c0a00fa4>] (kernel_init_freeable+0x244/0x254)
[ 2.147343] [<c0a00fa4>] (kernel_init_freeable) from [<c07c2b14>] (kernel_init+0x8/0x110)
[ 2.155531] [<c07c2b14>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 2.163104] Exception stack(0xc3839fb0 to 0xc3839ff8)
[ 2.168160] 9fa0: 00000000 00000000 00000000 00000000
[ 2.176343] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 2.184525] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 2.191157] Rebooting in 1 seconds..
请问是我的烧录文件有问题吗?或者是我的烧录方法有问题?
我git pull最新的代码编译, 用 win32diskimager烧录openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-squashfs-spinand.img,
在 w25n01 上 u-boot 可以识别spi nand, 并正常启动, 但是 linux 驱动识别 flash id 出错:
[ 1.108748] loop: module loaded
[ 1.119116] spi-nand spi0.0: unknown raw ID 0067a800
[ 1.124152] spi-nand: probe of spi0.0 failed with error -524
[ 1.132691] libphy: Fixed MDIO Bus: probed
完整log:
U-Boot SPL 2019.10 (Nov 13 2019 - 07:58:39 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
U-Boot 2019.10 (Nov 13 2019 - 07:58:39 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
Winbond SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Reading 4194304 byte(s) (2048 page(s)) at offset 0x00110000
Reading 65536 byte(s) (32 page(s)) at offset 0x00100000
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2925512 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Loading Device Tree to 42dfa000, end 42dffa7f ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Wed Nov 13 07:58:39 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line:
[ 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: 53868K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11668K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000264] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000475] Console: colour dummy device 80x30
[ 0.000988] console [tty0] enabled
[ 0.001046] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001081] pid_max: default: 32768 minimum: 301
[ 0.001258] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001293] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002290] CPU: Testing write buffer coherency: ok
[ 0.002875] /cpus/cpu@0 missing clock-frequency property
[ 0.002929] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060198] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080198] rcu: Hierarchical SRCU implementation.
[ 0.120331] smp: Bringing up secondary CPUs ...
[ 0.120382] smp: Brought up 1 node, 1 CPU
[ 0.120401] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120419] CPU: All CPU(s) started in HYP mode.
[ 0.120433] CPU: Virtualization extensions available.
[ 0.123855] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.124609] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.124679] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.125042] pinctrl core: initialized pinctrl subsystem
[ 0.126280] NET: Registered protocol family 16
[ 0.126678] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.127803] No ATAGs?
[ 0.184168] SCSI subsystem initialized
[ 0.184644] usbcore: registered new interface driver usbfs
[ 0.184774] usbcore: registered new interface driver hub
[ 0.186734] usbcore: registered new device driver usb
[ 0.187656] pps_core: LinuxPPS API ver. 1 registered
[ 0.187699] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.187905] PTP clock support registered
[ 0.189442] Advanced Linux Sound Architecture Driver Initialized.
[ 0.195092] clocksource: Switched to clocksource arch_sys_counter
[ 0.225809] NET: Registered protocol family 2
[ 0.227372] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.227455] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.227491] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.227528] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.227691] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.227757] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.228087] NET: Registered protocol family 1
[ 0.228507] kvm [1]: 8-bit VMID
[ 0.229536] kvm [1]: Hyp mode initialized successfully
[ 0.232458] No memory allocated for crashlog
[ 0.233564] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.261957] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.262527] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.291017] io scheduler noop registered
[ 0.291065] io scheduler deadline registered
[ 0.291344] io scheduler cfq registered (default)
[ 0.292234] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.299122] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.504713] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.532156] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 1.090321] console [ttyS0] enabled
[ 1.108748] loop: module loaded
[ 1.119116] spi-nand spi0.0: unknown raw ID 0067a800
[ 1.124152] spi-nand: probe of spi0.0 failed with error -524
[ 1.132691] libphy: Fixed MDIO Bus: probed
[ 1.138852] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.144690] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.161507] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.168988] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.176318] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.181295] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.188144] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.193813] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.199514] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address da:78:ce:9a:b9:1d
[ 1.210424] libphy: stmmac: probed
[ 1.215605] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.222555] libphy: mdio_mux: probed
[ 1.226417] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.232798] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.240657] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.248329] ehci-platform: EHCI generic platform driver
[ 1.254021] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.260695] ohci-platform: OHCI generic platform driver
[ 1.266752] usbcore: registered new interface driver usb-storage
[ 1.273982] mousedev: PS/2 mouse device common for all mice
[ 1.280555] sun4i-a10-lradc-keys 1c22800.lradc: Linked as a consumer to regulator.1
[ 1.289171] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.298827] i2c /dev entries driver
[ 1.304925] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.316538] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.350727] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.359427] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.607717] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.622591] NET: Registered protocol family 10
[ 1.639716] Segment Routing with IPv6
[ 1.643518] NET: Registered protocol family 17
[ 1.648721] can: controller area network core (rev 20170425 abi 9)
[ 1.655611] NET: Registered protocol family 29
[ 1.660104] 8021q: 802.1Q VLAN Support v1.8
[ 1.664331] Registering SWP/SWPB emulation handler
[ 1.678178] hctosys: unable to open rtc device (rtc0)
[ 1.683634] ALSA device list:
[ 1.687241] No soundcards found.
[ 1.692327] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 1.700139] Please append a correct "root=" boot option; here are the available partitions:
[ 1.708787] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.717080] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.81 #0
[ 1.723091] Hardware name: Allwinner sun8i Family
[ 1.727836] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 1.735598] [<c0227ae8>] (show_stack) from [<c07b0588>] (dump_stack+0x88/0x9c)
[ 1.742838] [<c07b0588>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 1.749728] [<c023a7cc>] (panic) from [<c0a013d8>] (mount_block_root+0x1c8/0x280)
[ 1.757224] [<c0a013d8>] (mount_block_root) from [<c0a016c8>] (prepare_namespace+0x150/0x188)
[ 1.765757] [<c0a016c8>] (prepare_namespace) from [<c0a00fa4>] (kernel_init_freeable+0x244/0x254)
[ 1.774641] [<c0a00fa4>] (kernel_init_freeable) from [<c07c2b14>] (kernel_init+0x8/0x110)
[ 1.782829] [<c07c2b14>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 1.790403] Exception stack(0xc3839fb0 to 0xc3839ff8)
[ 1.795459] 9fa0: 00000000 00000000 00000000 00000000
[ 1.803642] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.811823] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.818456] Rebooting in 1 seconds..
... 接着,继续按楼上的操作, 烧录: openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-squashfs-spinand.img
芯片是: W25N01
U-Boot SPL 2019.10 (Nov 06 2019 - 15:22:33 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Unknown chip aaef
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
直接出错了.
这是我编译出来的镜像: openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-20191109.tgz
我烧录了: openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-squashfs-spinand.img
芯片是: MX35LF1GE4AB
烧录检验通过.
U-Boot SPL 2019.10 (Nov 06 2019 - 15:22:33 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found 1Gb Macronix MX35LF1GE4AB (12c2)
U-Boot 2019.10 (Nov 06 2019 - 15:22:33 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
Macronix SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Reading 4194304 byte(s) (2048 page(s)) at offset 0x00110000
Reading 65536 byte(s) (32 page(s)) at offset 0x00100000
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2926488 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Loading Device Tree to 42dfa000, end 42dff564 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Wed Nov 6 15:22:33 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line:
[ 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: 53872K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11664K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000244] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000446] Console: colour dummy device 80x30
[ 0.000959] console [tty0] enabled
[ 0.001015] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001051] pid_max: default: 32768 minimum: 301
[ 0.001232] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001262] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002255] CPU: Testing write buffer coherency: ok
[ 0.002849] /cpus/cpu@0 missing clock-frequency property
[ 0.002899] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060201] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080200] rcu: Hierarchical SRCU implementation.
[ 0.120332] smp: Bringing up secondary CPUs ...
[ 0.120385] smp: Brought up 1 node, 1 CPU
[ 0.120404] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120424] CPU: All CPU(s) started in HYP mode.
[ 0.120437] CPU: Virtualization extensions available.
[ 0.130492] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.131250] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.131315] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.131698] pinctrl core: initialized pinctrl subsystem
[ 0.132908] NET: Registered protocol family 16
[ 0.133323] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.134458] No ATAGs?
[ 0.194159] SCSI subsystem initialized
[ 0.194635] usbcore: registered new interface driver usbfs
[ 0.194742] usbcore: registered new interface driver hub
[ 0.196686] usbcore: registered new device driver usb
[ 0.197634] pps_core: LinuxPPS API ver. 1 registered
[ 0.197681] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.197867] PTP clock support registered
[ 0.199511] Advanced Linux Sound Architecture Driver Initialized.
[ 0.205114] clocksource: Switched to clocksource arch_sys_counter
[ 0.234962] NET: Registered protocol family 2
[ 0.236457] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.236539] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.236581] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.236615] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.236789] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.236857] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.237153] NET: Registered protocol family 1
[ 0.237581] kvm [1]: 8-bit VMID
[ 0.238796] kvm [1]: Hyp mode initialized successfully
[ 0.241690] No memory allocated for crashlog
[ 0.242785] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.271900] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.272522] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.300925] io scheduler noop registered
[ 0.300972] io scheduler deadline registered
[ 0.301262] io scheduler cfq registered (default)
[ 0.302145] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.308939] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.510833] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.540412] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 1.098018] console [ttyS0] enabled
[ 1.116105] loop: module loaded
[ 1.126324] spi-nand spi0.0: Macronix SPI NAND was found.
[ 1.131770] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.141481] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.148044] Creating 4 MTD partitions on "spi0.0":
[ 1.152867] 0x000000000000-0x000000100000 : "u-boot"
[ 1.161783] 0x000000100000-0x000000110000 : "dtb"
[ 1.169454] 0x000000110000-0x000000510000 : "kernel"
[ 1.177299] random: fast init done
[ 1.187059] 0x000000510000-0x000008000000 : "rootfs"
[ 1.390267] mtd: device 3 (rootfs) set to be root filesystem
[ 1.397186] 1 squashfs-split partitions found on MTD device rootfs
[ 1.403415] 0x0000006c0000-0x000008000000 : "rootfs_data"
[ 1.413642] libphy: Fixed MDIO Bus: probed
[ 1.419807] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.426188] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.442506] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.449995] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.457326] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.462302] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.469156] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.474822] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.480523] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address 42:79:e1:88:2c:cf
[ 1.491443] libphy: stmmac: probed
[ 1.496510] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.503463] libphy: mdio_mux: probed
[ 1.507280] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.513652] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.521464] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.529164] ehci-platform: EHCI generic platform driver
[ 1.534841] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.541506] ohci-platform: OHCI generic platform driver
[ 1.547507] usbcore: registered new interface driver usb-storage
[ 1.554751] mousedev: PS/2 mouse device common for all mice
[ 1.562236] i2c /dev entries driver
[ 1.568482] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.579501] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.613385] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.627785] NET: Registered protocol family 10
[ 1.644737] Segment Routing with IPv6
[ 1.649246] NET: Registered protocol family 17
[ 1.653821] can: controller area network core (rev 20170425 abi 9)
[ 1.660941] NET: Registered protocol family 29
[ 1.665869] 8021q: 802.1Q VLAN Support v1.8
[ 1.670131] Registering SWP/SWPB emulation handler
[ 1.683595] hctosys: unable to open rtc device (rtc0)
[ 1.689293] ALSA device list:
[ 1.692293] No soundcards found.
[ 1.698260] random: crng init done
[ 1.709119] squashfs: SQUASHFS error: unable to read inode lookup table
[ 1.721311] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 1.728794] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 1th superblock
[ 1.739992] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x3137cd11)
[ 1.748044] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 2th superblock
[ 1.755841] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 1.763077] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 1th superblock
[ 1.770819] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x3137cd11)
[ 1.778686] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 2th superblock
[ 1.786526] List of all partitions:
[ 1.790054] 1f00 1024 mtdblock0
[ 1.790059] (driver?)
[ 1.796716] 1f01 64 mtdblock1
[ 1.796721] (driver?)
[ 1.803278] 1f02 4096 mtdblock2
[ 1.803280] (driver?)
[ 1.809897] 1f03 125888 mtdblock3
[ 1.809901] (driver?)
[ 1.816534] 1f04 124160 mtdblock4
[ 1.816538] (driver?)
[ 1.823086] No filesystem could mount root, tried:
[ 1.823089] ext3
[ 1.827992] ext2
[ 1.829922] ext4
[ 1.831849] squashfs
[ 1.833775] vfat
[ 1.836065] f2fs
[ 1.837994]
[ 1.841416] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[ 1.849776] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.81 #0
[ 1.855783] Hardware name: Allwinner sun8i Family
[ 1.860526] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 1.868286] [<c0227ae8>] (show_stack) from [<c07b0568>] (dump_stack+0x88/0x9c)
[ 1.875527] [<c07b0568>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 1.882418] [<c023a7cc>] (panic) from [<c0a01470>] (mount_block_root+0x260/0x280)
[ 1.889914] [<c0a01470>] (mount_block_root) from [<c0a016c8>] (prepare_namespace+0x150/0x188)
[ 1.898448] [<c0a016c8>] (prepare_namespace) from [<c0a00fa4>] (kernel_init_freeable+0x244/0x254)
[ 1.907332] [<c0a00fa4>] (kernel_init_freeable) from [<c07c2af4>] (kernel_init+0x8/0x110)
[ 1.915520] [<c07c2af4>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 1.923092] Exception stack(0xc3839fb0 to 0xc3839ff8)
[ 1.928149] 9fa0: 00000000 00000000 00000000 00000000
[ 1.936331] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.944513] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.951145] Rebooting in 1 seconds..
Linux驱动也识别到了 mtd 分区
但是仍然出现这种错误:
[ 1.709119] squashfs: SQUASHFS error: unable to read inode lookup table
[ 1.721311] F2FS-fs (mtdblock3): Magic Mismatch, valid(0xf2f52010) - read(0x0)
[ 1.728794] F2FS-fs (mtdblock3): Can't find valid F2FS filesystem in 1th superblock
...
还是无法启动到shell.
写入MX35LF1GE4AB 成功,但是校验失败(verified error).
U-Boot SPL 2019.10 (Nov 08 2019 - 14:19:42 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Macronix MX35LF1GE4AB (c212c2)
U-Boot 2019.10 (Nov 08 2019 - 14:19:42 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
Macronix SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Reading 4194304 byte(s) (2048 page(s)) at offset 0x00110000
Reading 65536 byte(s) (32 page(s)) at offset 0x00100000
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2926096 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Loading Device Tree to 42dfa000, end 42dff97e ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Fri Nov 8 14:19:42 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line:
[ 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: 53872K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11664K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000256] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000463] Console: colour dummy device 80x30
[ 0.000974] console [tty0] enabled
[ 0.001032] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001069] pid_max: default: 32768 minimum: 301
[ 0.001248] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001282] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002280] CPU: Testing write buffer coherency: ok
[ 0.002857] /cpus/cpu@0 missing clock-frequency property
[ 0.002911] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060194] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080195] rcu: Hierarchical SRCU implementation.
[ 0.120333] smp: Bringing up secondary CPUs ...
[ 0.120384] smp: Brought up 1 node, 1 CPU
[ 0.120403] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120421] CPU: All CPU(s) started in HYP mode.
[ 0.120435] CPU: Virtualization extensions available.
[ 0.130471] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.131255] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.131322] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.131687] pinctrl core: initialized pinctrl subsystem
[ 0.132939] NET: Registered protocol family 16
[ 0.133342] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.134494] No ATAGs?
[ 0.194249] SCSI subsystem initialized
[ 0.194720] usbcore: registered new interface driver usbfs
[ 0.194820] usbcore: registered new interface driver hub
[ 0.196679] usbcore: registered new device driver usb
[ 0.197568] pps_core: LinuxPPS API ver. 1 registered
[ 0.197611] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.197805] PTP clock support registered
[ 0.199484] Advanced Linux Sound Architecture Driver Initialized.
[ 0.205116] clocksource: Switched to clocksource arch_sys_counter
[ 0.234991] NET: Registered protocol family 2
[ 0.236604] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.236686] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.236724] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.236758] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.236926] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.236992] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.237286] NET: Registered protocol family 1
[ 0.237706] kvm [1]: 8-bit VMID
[ 0.238827] kvm [1]: Hyp mode initialized successfully
[ 0.241804] No memory allocated for crashlog
[ 0.242917] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.270608] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.271719] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.301399] io scheduler noop registered
[ 0.301447] io scheduler deadline registered
[ 0.301758] io scheduler cfq registered (default)
[ 0.302671] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.308330] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.512330] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.541630] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 1.099299] console [ttyS0] enabled
[ 1.117472] loop: module loaded
[ 1.127627] spi-nand spi0.0: unknown raw ID 00000000
[ 1.132664] spi-nand: probe of spi0.0 failed with error -524
[ 1.141238] libphy: Fixed MDIO Bus: probed
[ 1.147395] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.153232] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.170054] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.177526] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.184771] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.189823] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.196674] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.202339] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.208039] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address aa:13:f1:02:85:f1
[ 1.218953] libphy: stmmac: probed
[ 1.223958] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.230974] libphy: mdio_mux: probed
[ 1.234620] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.241378] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.249868] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.257244] ehci-platform: EHCI generic platform driver
[ 1.262925] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.269533] ohci-platform: OHCI generic platform driver
[ 1.275624] usbcore: registered new interface driver usb-storage
[ 1.282880] mousedev: PS/2 mouse device common for all mice
[ 1.289410] sun4i-a10-lradc-keys 1c22800.lradc: Linked as a consumer to regulator.1
[ 1.298061] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.307715] i2c /dev entries driver
[ 1.313865] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.325438] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.357997] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.366486] sunxi-mmc 1c10000.mmc: allocated mmc-pwrseq
[ 1.607757] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.622639] NET: Registered protocol family 10
[ 1.639745] Segment Routing with IPv6
[ 1.643552] NET: Registered protocol family 17
[ 1.648767] can: controller area network core (rev 20170425 abi 9)
[ 1.655668] NET: Registered protocol family 29
[ 1.660166] 8021q: 802.1Q VLAN Support v1.8
[ 1.664394] Registering SWP/SWPB emulation handler
[ 1.678287] hctosys: unable to open rtc device (rtc0)
[ 1.683745] ALSA device list:
[ 1.687367] No soundcards found.
[ 1.692454] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 1.700263] Please append a correct "root=" boot option; here are the available partitions:
[ 1.708928] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.717218] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.81 #0
[ 1.723227] Hardware name: Allwinner sun8i Family
[ 1.727973] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 1.735735] [<c0227ae8>] (show_stack) from [<c07b0588>] (dump_stack+0x88/0x9c)
[ 1.742974] [<c07b0588>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 1.749865] [<c023a7cc>] (panic) from [<c0a013d8>] (mount_block_root+0x1c8/0x280)
[ 1.757361] [<c0a013d8>] (mount_block_root) from [<c0a016c8>] (prepare_namespace+0x150/0x188)
[ 1.765894] [<c0a016c8>] (prepare_namespace) from [<c0a00fa4>] (kernel_init_freeable+0x244/0x254)
[ 1.774778] [<c0a00fa4>] (kernel_init_freeable) from [<c07c2b14>] (kernel_init+0x8/0x110)
[ 1.782968] [<c07c2b14>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 1.790541] Exception stack(0xc3839fb0 to 0xc3839ff8)
[ 1.795597] 9fa0: 00000000 00000000 00000000 00000000
[ 1.803780] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.811962] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.818593] Rebooting in 1 seconds..
果然启动到文件系统就失败了, 看来得用 TF 卡烧录了.
我克隆了最新的代码,编译,烧录到 w25n01, 发现spl 已经识别,但是u-boot还是无法启动:
U-Boot SPL 2019.10 (Nov 08 2019 - 14:19:42 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found Winbond W25N01GVxxIG (efaa21)
U-Boot 2019.10 (Nov 08 2019 - 14:19:42 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
unknown raw ID 43d60da0
MTD device spi-nand0 not found, ret -19
unknown raw ID 43d60d68
MTD device spi-nand0 not found, ret -19
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>
@bamkrsde 嗯,我收到了立创商城寄的mx35lf1ge, 直接焊上了, 没有重新编译, 还是用 v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z 配合 Win32DiskImager 把 openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-ext4-spinand.img.gz 文件写入U盘, 可以启动,然后挂了(go die):
first board log:
U-Boot SPL 2019.10 (Nov 06 2019 - 15:22:33 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Found 1Gb Macronix MX35LF1GE4AB (12c2)
U-Boot 2019.10 (Nov 06 2019 - 15:22:33 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
Macronix SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Reading 4194304 byte(s) (2048 page(s)) at offset 0x00110000
Reading 65536 byte(s) (32 page(s)) at offset 0x00100000
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2926488 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Loading Device Tree to 42dfa000, end 42dff564 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Wed Nov 6 15:22:33 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line:
[ 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: 53872K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11664K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000008] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000021] Switching to timer-based delay loop, resolution 41ns
[ 0.000247] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000449] Console: colour dummy device 80x30
[ 0.000983] console [tty0] enabled
[ 0.001038] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001074] pid_max: default: 32768 minimum: 301
[ 0.001253] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001283] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002283] CPU: Testing write buffer coherency: ok
[ 0.002866] /cpus/cpu@0 missing clock-frequency property
[ 0.002918] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060215] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080217] rcu: Hierarchical SRCU implementation.
[ 0.120345] smp: Bringing up secondary CPUs ...
[ 0.120396] smp: Brought up 1 node, 1 CPU
[ 0.120415] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120433] CPU: All CPU(s) started in HYP mode.
[ 0.120447] CPU: Virtualization extensions available.
[ 0.130506] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.131269] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.131336] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.131712] pinctrl core: initialized pinctrl subsystem
[ 0.132932] NET: Registered protocol family 16
[ 0.133351] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.134476] No ATAGs?
[ 0.194247] SCSI subsystem initialized
[ 0.194721] usbcore: registered new interface driver usbfs
[ 0.194821] usbcore: registered new interface driver hub
[ 0.196717] usbcore: registered new device driver usb
[ 0.197651] pps_core: LinuxPPS API ver. 1 registered
[ 0.197699] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.197899] PTP clock support registered
[ 0.199511] Advanced Linux Sound Architecture Driver Initialized.
[ 0.205121] clocksource: Switched to clocksource arch_sys_counter
[ 0.235036] NET: Registered protocol family 2
[ 0.237363] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.237449] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.237489] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.237525] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.237701] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.237770] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.238078] NET: Registered protocol family 1
[ 0.238511] kvm [1]: 8-bit VMID
[ 0.239548] kvm [1]: Hyp mode initialized successfully
[ 0.242453] No memory allocated for crashlog
[ 0.243570] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.271888] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.272487] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.300972] io scheduler noop registered
[ 0.301021] io scheduler deadline registered
[ 0.301310] io scheduler cfq registered (default)
[ 0.302194] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.308932] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.513447] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.541364] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 1.099019] console [ttyS0] enabled
[ 1.117046] loop: module loaded
[ 1.127192] spi-nand spi0.0: Macronix SPI NAND was found.
[ 1.132635] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 1.142260] 4 fixed-partitions partitions found on MTD device spi0.0
[ 1.149054] Creating 4 MTD partitions on "spi0.0":
[ 1.153888] 0x000000000000-0x000000100000 : "u-boot"
[ 1.162762] 0x000000100000-0x000000110000 : "dtb"
[ 1.170464] 0x000000110000-0x000000510000 : "kernel"
[ 1.178289] random: fast init done
[ 1.188154] 0x000000510000-0x000008000000 : "rootfs"
[ 1.391344] mtd: device 3 (rootfs) set to be root filesystem
[ 1.398237] mtdsplit: no squashfs found in "rootfs"
[ 1.405643] libphy: Fixed MDIO Bus: probed
[ 1.411370] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.417467] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.433782] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.441188] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.448525] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.453500] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.460316] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.465996] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.471679] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address 5a:99:4a:6f:94:54
[ 1.482623] libphy: stmmac: probed
[ 1.487657] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.494612] libphy: mdio_mux: probed
[ 1.498425] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.504801] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.610981] dwmac-sun8i 1c30000.ethernet: EMAC reset timeout
[ 1.617068] dwmac-sun8i 1c30000.ethernet: Error: Failed to register MDIO bus for child /soc/ethernet@1c30000/mdio-mux/mdio@1
[ 1.628595] dwmac-sun8i 1c30000.ethernet: Error: No acceptable child buses found
[ 1.636123] dwmac-sun8i 1c30000.ethernet: Failed to register mux
[ 1.643252] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.650346] ehci-platform: EHCI generic platform driver
[ 1.656144] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.662437] ohci-platform: OHCI generic platform driver
[ 1.668654] usbcore: registered new interface driver usb-storage
[ 1.676223] mousedev: PS/2 mouse device common for all mice
[ 1.683453] i2c /dev entries driver
[ 1.689483] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.700452] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.734544] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.748787] NET: Registered protocol family 10
[ 1.766142] Segment Routing with IPv6
[ 1.769949] NET: Registered protocol family 17
[ 1.774478] can: controller area network core (rev 20170425 abi 9)
[ 1.781814] NET: Registered protocol family 29
[ 1.786734] 8021q: 802.1Q VLAN Support v1.8
[ 1.790993] Registering SWP/SWPB emulation handler
[ 1.804486] hctosys: unable to open rtc device (rtc0)
[ 1.810155] ALSA device list:
[ 1.813156] No soundcards found.
[ 1.819214] random: crng init done
[ 1.848699] EXT4-fs (mtdblock3): mounted filesystem without journal. Opts: (null)
[ 1.862355] VFS: Mounted root (ext4 filesystem) readonly on device 31:3.
[ 1.879659] Freeing unused kernel memory: 2048K
[ 1.892064] Run /sbin/init as init process
[ 2.491845] init: Console is alive
[ 2.495869] init: - watchdog -
[ 2.991315] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 2.998738] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 3.016715] init: - preinit -
[ 3.801329] libphy: PHY stmmac-0:00 not found
[ 3.806010] platform 1c30000.ethernet eth0: Could not attach to PHY
[ 3.812303] platform 1c30000.ethernet eth0: stmmac_open: Cannot attach to PHY (error: -19)
ip: SIOCSIFFLAGS: No such device
sendto(): Network unreachable
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
[ 6.977190] mount_root: Could not open mtd device: /dev/mtd3
[ 6.982987] mount_root: reading rootfs failed
[ 6.987684] mount_root: mounting /dev/root
[ 7.007906] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 7.087687] procd: - early -
[ 7.090759] procd: - watchdog -
[ 8.496679] procd: - watchdog -
[ 8.500294] procd: - ubus -
[ 8.559004] procd: - init -
Please press Enter to activate this console.
[ 9.052689] kmodloader: loading kernel modules from /etc/modules.d/*
[ 9.193019] urngd: v1.0.1 started.
[ 9.295762] xt_time: kernel timezone is -0000
[ 9.330440] PPP generic driver version 2.4.2
[ 9.338350] NET: Registered protocol family 24
[ 9.360056] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 13.500533] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[ 13.515118] pgd = 9b1f735a
[ 13.517838] [00000000] *pgd=43039003, *pmd=43aa7003, *pte=00000000
[ 13.524045] Internal error: Oops: 207 [#1] PREEMPT SMP ARM
[ 13.529532] Modules linked in: pppoe ppp_async iptable_nat ipt_MASQUERADE xt_state xt_nat xt_conntrack xt_REDIRECT xt_FLOWOFFLOAD pppox ppp_generic nf_nat_ipv4 nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack ipt_REJECT xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables crc_ccitt rtc_sunxi nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6
[ 13.578038] CPU: 0 PID: 1 Comm: procd Not tainted 4.19.81 #0
[ 13.583701] Hardware name: Allwinner sun8i Family
[ 13.588425] PC is at sunxi_wdt_ping+0x14/0x2c
[ 13.592787] LR is at sunxi_wdt_ping+0x14/0x2c
[ 13.597146] pc : [<c063430c>] lr : [<c063430c>] psr: 60000013
[ 13.603413] sp : c3839e98 ip : 82416480 fp : 00000003
[ 13.608639] r10: 2463a4a8 r9 : c3a6c300 r8 : c3a6c3ac
[ 13.613866] r7 : 00000001 r6 : fa5518d4 r5 : 00000000 r4 : c48a2ca0
[ 13.620394] r3 : 00000000 r2 : c08168b4 r1 : 00000003 r0 : c3a6c100
[ 13.626924] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 13.634060] Control: 30c5387d Table: 43151200 DAC: fffffffd
[ 13.639809] Process procd (pid: 1, stack limit = 0x3214faef)
[ 13.645471] Stack: (0xc3839e98 to 0xc383a000)
[ 13.649832] 9e80: c3a6c100 c3a6c300
[ 13.658016] 9ea0: fa5518d4 c0632ff8 00000000 c3a6c100 c3a6c300 ffffe000 00000001 00000001
[ 13.666199] 9ec0: c3a6c344 ffffe000 00000001 c3a6c3ac c3a6c300 00000004 00000001 c0633210
[ 13.674382] 9ee0: 00000001 c063316c 0001b82f c3839f80 00000000 00000000 00000004 c03482a4
[ 13.682565] 9f00: 0010ad85 00000000 c314c414 00000001 24523af9 00000003 0000000d 00000000
[ 13.690748] 9f20: 1d75f8f9 00000000 0000000c 00000000 17eae7b9 00000000 00000001 c3834000
[ 13.698931] 9f40: c025d6ec 00000100 00000200 00000001 c3bcd240 0001b82f c3839f80 c034854c
[ 13.707114] 9f60: 0000015a c0201324 c3bcd240 c3bcd240 0001b82f 00000001 00000000 c034873c
[ 13.715297] 9f80: 00000000 00000000 00000006 00000000 00000000 0002e004 00000004 c0201324
[ 13.723480] 9fa0: c3838000 c0201120 00000000 00000000 00000003 0001b82f 00000001 00000000
[ 13.731662] 9fc0: 00000000 00000000 0002e004 00000004 ffffffff 00000000 0000201d 00000001
[ 13.739846] 9fe0: beee5df0 beee5de0 b6f0cf48 b6f0c418 60000010 00000003 00000000 00000000
[ 13.748045] [<c063430c>] (sunxi_wdt_ping) from [<c0632ff8>] (__watchdog_ping+0x84/0x1a8)
[ 13.756146] [<c0632ff8>] (__watchdog_ping) from [<c0633210>] (watchdog_write+0xa4/0xc8)
[ 13.764163] [<c0633210>] (watchdog_write) from [<c03482a4>] (__vfs_write+0x1c/0x138)
[ 13.771917] [<c03482a4>] (__vfs_write) from [<c034854c>] (vfs_write+0xb4/0x170)
[ 13.779234] [<c034854c>] (vfs_write) from [<c034873c>] (ksys_write+0x50/0x9c)
[ 13.786378] [<c034873c>] (ksys_write) from [<c0201120>] (ret_fast_syscall+0x0/0x4c)
[ 13.794036] Exception stack(0xc3839fa8 to 0xc3839ff0)
[ 13.799092] 9fa0: 00000000 00000000 00000003 0001b82f 00000001 00000000
[ 13.807275] 9fc0: 00000000 00000000 0002e004 00000004 ffffffff 00000000 0000201d 00000001
[ 13.815456] 9fe0: beee5df0 beee5de0 b6f0cf48 b6f0c418
[ 13.820516] Code: e590304c e1c346d0 f57ff04e ebefe620 (e5d52000)
[ 14.145132] ---[ end trace 1f0f0284e0e109fc ]---
[ 14.149791] Kernel panic - not syncing: Fatal exception
[ 14.155035] Rebooting in 3 seconds..
[ 17.158667] Unable to handle kernel NULL pointer dereference at virtual address 00000001
[ 17.166765] pgd = 9b1f735a
[ 17.169476] [00000001] *pgd=43039003, *pmd=43aa7003, *pte=00000000
[ 17.175674] Internal error: Oops: 207 [#2] PREEMPT SMP ARM
[ 17.181159] Modules linked in: pppoe ppp_async iptable_nat ipt_MASQUERADE xt_state xt_nat xt_conntrack xt_REDIRECT xt_FLOWOFFLOAD pppox ppp_generic nf_nat_ipv4 nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack ipt_REJECT xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables crc_ccitt rtc_sunxi nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6
[ 17.229648] CPU: 0 PID: 1 Comm: procd Tainted: G D 4.19.81 #0
[ 17.236696] Hardware name: Allwinner sun8i Family
[ 17.241419] PC is at sunxi_wdt_restart+0x10/0xe4
[ 17.246041] LR is at watchdog_restart_notifier+0x18/0x28
[ 17.251353] pc : [<c0634224>] lr : [<c0632a48>] psr: a0000193
[ 17.257620] sp : c3839cb0 ip : 00000000 fp : 00000000
[ 17.262846] r10: 0ccccb60 r9 : c093291c r8 : c48a2ca0
[ 17.268072] r7 : 00000000 r6 : 00000000 r5 : fffffffe r4 : 00000000
[ 17.274600] r3 : c3a6c100 r2 : 00000000 r1 : 00000000 r0 : c3a6c100
[ 17.281130] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
[ 17.288354] Control: 30c5387d Table: 43151200 DAC: fffffffd
[ 17.294102] Process procd (pid: 1, stack limit = 0x3214faef)
[ 17.299764] Stack: (0xc3839cb0 to 0xc383a000)
[ 17.304125] 9ca0: 00000000 fffffffe 00000000 00000000
[ 17.312308] 9cc0: 00000000 c0632a48 00000000 c02575ec c0c64278 00000000 00000000 00000bb8
[ 17.320491] 9ce0: c0c0a434 c0257820 00000000 00000000 00000000 c0c63968 00000bb8 c0226950
[ 17.328674] 9d00: 00000001 c0c63968 00000bb8 c023a8e4 00000000 c3839d2c c0c09e64 0000000b
[ 17.336856] 9d20: ffffe000 c0227e4c c08cf6c0 03599000 00000000 00000001 c3838210 0000000b
[ 17.345039] 9d40: c3124800 00000000 c3839e48 00000207 c3124800 00000207 00010000 c312483c
[ 17.353222] 9d60: 00000014 c022bec0 00000000 c022c150 c0c04cbc e37a0ee2 00000002 00000000
[ 17.361405] 9d80: c3bbf200 c0c09f94 00000207 c022bed0 00000000 c3839e48 c3838000 2463a4a8
[ 17.369588] 9da0: 00000003 c022c320 06e2fb84 00000000 e37a0ee2 c3bbf180 c3834080 c3bbf200
[ 17.377771] 9dc0: c3fe8e00 c07cd7bc c0c04cbc c3fe8d80 c0c04cbc c026ace4 c39d8540 800c000a
[ 17.385954] 9de0: 00000004 c39d8540 00000004 c07b763c 00000003 00ffffff 00000000 fffffffe
[ 17.394136] 9e00: 00000000 c02575ec c0c633bc 00000002 c3314000 00000000 c3fe8d80 c3834000
[ 17.402319] 9e20: c3bbf180 00000000 c3124800 ffffe000 c063430c 60000013 ffffffff c3839e7c
[ 17.410502] 9e40: c3a6c3ac c0201ab0 c3a6c100 00000003 c08168b4 00000000 c48a2ca0 00000000
[ 17.418685] 9e60: fa5518d4 00000001 c3a6c3ac c3a6c300 2463a4a8 00000003 82416480 c3839e98
[ 17.426868] 9e80: c063430c c063430c 60000013 ffffffff c48a2ca0 bf000000 c3a6c100 c3a6c300
[ 17.435051] 9ea0: fa5518d4 c0632ff8 00000000 c3a6c100 c3a6c300 ffffe000 00000001 00000001
[ 17.443233] 9ec0: c3a6c344 ffffe000 00000001 c3a6c3ac c3a6c300 00000004 00000001 c0633210
[ 17.451416] 9ee0: 00000001 c063316c 0001b82f c3839f80 00000000 00000000 00000004 c03482a4
[ 17.459598] 9f00: 0010ad85 00000000 c314c414 00000001 24523af9 00000003 0000000d 00000000
[ 17.467780] 9f20: 1d75f8f9 00000000 0000000c 00000000 17eae7b9 00000000 00000001 c3834000
[ 17.475964] 9f40: c025d6ec 00000100 00000200 00000001 c3bcd240 0001b82f c3839f80 c034854c
[ 17.484146] 9f60: 0000015a c0201324 c3bcd240 c3bcd240 0001b82f 00000001 00000000 c034873c
[ 17.492329] 9f80: 00000000 00000000 00000006 00000000 00000000 0002e004 00000004 c0201324
[ 17.500511] 9fa0: c3838000 c0201120 00000000 00000000 00000003 0001b82f 00000001 00000000
[ 17.508693] 9fc0: 00000000 00000000 0002e004 00000004 ffffffff 00000000 0000201d 00000001
[ 17.516876] 9fe0: beee5df0 beee5de0 b6f0cf48 b6f0c418 60000010 00000003 00000000 00000000
[ 17.525071] [<c0634224>] (sunxi_wdt_restart) from [<c0632a48>] (watchdog_restart_notifier+0x18/0x28)
[ 17.534221] [<c0632a48>] (watchdog_restart_notifier) from [<c02575ec>] (notifier_call_chain+0x2c/0x6c)
[ 17.543539] [<c02575ec>] (notifier_call_chain) from [<c0257820>] (atomic_notifier_call_chain+0x34/0x48)
[ 17.552946] [<c0257820>] (atomic_notifier_call_chain) from [<c0226950>] (machine_restart+0x58/0x80)
[ 17.562006] [<c0226950>] (machine_restart) from [<c023a8e4>] (panic+0x204/0x278)
[ 17.569415] [<c023a8e4>] (panic) from [<c0227e4c>] (die+0x360/0x37c)
[ 17.575781] [<c0227e4c>] (die) from [<c022bec0>] (__do_kernel_fault.part.0+0x64/0x74)
[ 17.583620] [<c022bec0>] (__do_kernel_fault.part.0) from [<c022c150>] (do_page_fault+0x280/0x2b0)
[ 17.592499] [<c022c150>] (do_page_fault) from [<c022c320>] (do_DataAbort+0x30/0xb0)
[ 17.600164] [<c022c320>] (do_DataAbort) from [<c0201ab0>] (__dabt_svc+0x50/0x80)
[ 17.607561] Exception stack(0xc3839e48 to 0xc3839e90)
[ 17.612616] 9e40: c3a6c100 00000003 c08168b4 00000000 c48a2ca0 00000000
[ 17.620800] 9e60: fa5518d4 00000001 c3a6c3ac c3a6c300 2463a4a8 00000003 82416480 c3839e98
[ 17.628980] 9e80: c063430c c063430c 60000013 ffffffff
[ 17.634042] [<c0201ab0>] (__dabt_svc) from [<c063430c>] (sunxi_wdt_ping+0x14/0x2c)
[ 17.641620] [<c063430c>] (sunxi_wdt_ping) from [<c0632ff8>] (__watchdog_ping+0x84/0x1a8)
[ 17.649719] [<c0632ff8>] (__watchdog_ping) from [<c0633210>] (watchdog_write+0xa4/0xc8)
[ 17.657733] [<c0633210>] (watchdog_write) from [<c03482a4>] (__vfs_write+0x1c/0x138)
[ 17.665484] [<c03482a4>] (__vfs_write) from [<c034854c>] (vfs_write+0xb4/0x170)
[ 17.672801] [<c034854c>] (vfs_write) from [<c034873c>] (ksys_write+0x50/0x9c)
[ 17.679942] [<c034873c>] (ksys_write) from [<c0201120>] (ret_fast_syscall+0x0/0x4c)
[ 17.687600] Exception stack(0xc3839fa8 to 0xc3839ff0)
[ 17.692655] 9fa0: 00000000 00000000 00000003 0001b82f 00000001 00000000
[ 17.700837] 9fc0: 00000000 00000000 0002e004 00000004 ffffffff 00000000 0000201d 00000001
[ 17.709018] 9fe0: beee5df0 beee5de0 b6f0cf48 b6f0c418
[ 17.714076] Code: e92d41f0 e590304c e5937064 e5938060 (e5d73001)
[ 17.720177] ---[ end trace 1f0f0284e0e109fd ]---
[ 17.724795] Kernel panic - not syncing: Fatal exception
[ 17.730028] Rebooting in 3 seconds..
[ 20.733652] Unable to handle kernel NULL pointer dereference at virtual address 00000001
[ 20.741746] pgd = 9b1f735a
[ 20.744455] [00000001] *pgd=43039003, *pmd=43aa7003, *pte=00000000
[ 20.750649] Internal error: Oops: 207 [#3] PREEMPT SMP ARM
[ 20.756134] Modules linked in: pppoe ppp_async iptable_nat ipt_MASQUERADE xt_state xt_nat xt_conntrack xt_REDIRECT xt_FLOWOFFLOAD pppox ppp_generic nf_nat_ipv4 nf_nat nf_flow_table_hw nf_flow_table nf_conntrack_rtcache nf_conntrack ipt_REJECT xt_time xt_tcpudp xt_multiport xt_mark xt_mac xt_limit xt_comment xt_TCPMSS xt_LOG slhc nf_reject_ipv4 nf_log_ipv4 nf_defrag_ipv6 nf_defrag_ipv4 iptable_mangle iptable_filter ip_tables crc_ccitt rtc_sunxi nf_log_ipv6 nf_log_common ip6table_mangle ip6table_filter ip6_tables ip6t_REJECT x_tables nf_reject_ipv6
[ 20.804600] CPU: 0 PID: 1 Comm: procd Tainted: G D 4.19.81 #0
[ 20.811648] Hardware name: Allwinner sun8i Family
[ 20.816357] PC is at sunxi_wdt_restart+0x10/0xe4
[ 20.820977] LR is at watchdog_restart_notifier+0x18/0x28
[ 20.826289] pc : [<c0634224>] lr : [<c0632a48>] psr: a0000193
[ 20.832556] sp : c3839ac8 ip : 00000000 fp : 00000000
[ 20.837782] r10: 0ccccb60 r9 : c093291c r8 : c48a2ca0
[ 20.843008] r7 : 00000000 r6 : 00000000 r5 : fffffffe r4 : 00000000
[ 20.849535] r3 : c3a6c100 r2 : 00000000 r1 : 00000000 r0 : c3a6c100
[ 20.856063] Flags: NzCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment user
[ 20.863287] Control: 30c5387d Table: 43151200 DAC: fffffffd
[ 20.869034] Process procd (pid: 1, stack limit = 0x3214faef)
[ 20.874694] Stack: (0xc3839ac8 to 0xc383a000)
[ 20.879056] 9ac0: 00000000 fffffffe 00000000 00000000 00000000 c0632a48
[ 20.887239] 9ae0: 00000000 c02575ec c0c64278 00000000 00000000 00000bb8 c0c0a434 c0257820
[ 20.895422] 9b00: 00000000 00000000 00000000 c0c63968 00000bb8 c0226950 00000001 c0c63968
[ 20.903605] 9b20: 00000bb8 c023a8e4 c3838000 c3839b44 c0c09e64 0000000b ffffe000 c0227e4c
[ 20.911787] 9b40: c08cf6c0 03599000 00000001 00000001 c3838210 0000000b c3124800 00000001
[ 20.919970] 9b60: c3839c60 00000207 c3124800 00000207 c3838000 0ccccb60 00000000 c022bec0
[ 20.928153] 9b80: 00000001 c022c150 37bc7700 c383582c c3fe7aa8 00041351 37d42a3e c0c09f94
[ 20.936336] 9ba0: 00000207 c022bed0 00000001 c3839c60 c3838000 0ccccb60 00000000 c022c320
[ 20.944519] 9bc0: c04f0540 c3818000 c3819220 c0537650 00000001 c07adde4 0000001e 00000000
[ 20.952701] 9be0: c0c98b80 00000003 c3839c18 c0c65f04 00000000 c0257828 c0c98b80 00000004
[ 20.960884] 9c00: c3839c38 c0c65f04 00000000 c0257828 00000000 00025d9b c3808400 0000000a
[ 20.969066] 9c20: c0c65f04 c0539538 00000000 c0c65eeb c3819220 00000000 c3808400 00000000
[ 20.977249] 9c40: 00000006 c0c47b30 c0634224 a0000193 ffffffff c3839c94 c48a2ca0 c0201ab0
[ 20.985432] 9c60: c3a6c100 00000000 00000000 c3a6c100 00000000 fffffffe 00000000 00000000
[ 20.993614] 9c80: c48a2ca0 c093291c 0ccccb60 00000000 00000000 c3839cb0 c0632a48 c0634224
[ 21.001797] 9ca0: a0000193 ffffffff c0c659d0 bf000000 00000000 fffffffe 00000000 00000000
[ 21.009980] 9cc0: 00000000 c0632a48 00000000 c02575ec c0c64278 00000000 00000000 00000bb8
[ 21.018162] 9ce0: c0c0a434 c0257820 00000000 00000000 00000000 c0c63968 00000bb8 c0226950
[ 21.026345] 9d00: 00000001 c0c63968 00000bb8 c023a8e4 00000000 c3839d2c c0c09e64 0000000b
[ 21.034527] 9d20: ffffe000 c0227e4c c08cf6c0 03599000 00000000 00000001 c3838210 0000000b
[ 21.042710] 9d40: c3124800 00000000 c3839e48 00000207 c3124800 00000207 00010000 c312483c
[ 21.050893] 9d60: 00000014 c022bec0 00000000 c022c150 c0c04cbc e37a0ee2 00000002 00000000
[ 21.059076] 9d80: c3bbf200 c0c09f94 00000207 c022bed0 00000000 c3839e48 c3838000 2463a4a8
[ 21.067258] 9da0: 00000003 c022c320 06e2fb84 00000000 e37a0ee2 c3bbf180 c3834080 c3bbf200
[ 21.075441] 9dc0: c3fe8e00 c07cd7bc c0c04cbc c3fe8d80 c0c04cbc c026ace4 c39d8540 800c000a
[ 21.083624] 9de0: 00000004 c39d8540 00000004 c07b763c 00000003 00ffffff 00000000 fffffffe
[ 21.091806] 9e00: 00000000 c02575ec c0c633bc 00000002 c3314000 00000000 c3fe8d80 c3834000
[ 21.099989] 9e20: c3bbf180 00000000 c3124800 ffffe000 c063430c 60000013 ffffffff c3839e7c
[ 21.108172] 9e40: c3a6c3ac c0201ab0 c3a6c100 00000003 c08168b4 00000000 c48a2ca0 00000000
[ 21.116354] 9e60: fa5518d4 00000001 c3a6c3ac c3a6c300 2463a4a8 00000003 82416480 c3839e98
[ 21.124537] 9e80: c063430c c063430c 60000013 ffffffff c48a2ca0 bf000000 c3a6c100 c3a6c300
[ 21.132720] 9ea0: fa5518d4 c0632ff8 00000000 c3a6c100 c3a6c300 ffffe000 00000001 00000001
[ 21.140903] 9ec0: c3a6c344 ffffe000 00000001 c3a6c3ac c3a6c300 00000004 00000001 c0633210
[ 21.149085] 9ee0: 00000001 c063316c 0001b82f c3839f80 00000000 00000000 00000004 c03482a4
[ 21.157268] 9f00: 0010ad85 00000000 c314c414 00000001 24523af9 00000003 0000000d 00000000
[ 21.165450] 9f20: 1d75f8f9 00000000 0000000c 00000000 17eae7b9 00000000 00000001 c3834000
[ 21.173633] 9f40: c025d6ec 00000100 00000200 00000001 c3bcd240 0001b82f c3839f80 c034854c
[ 21.181816] 9f60: 0000015a c0201324 c3bcd240 c3bcd240 0001b82f 00000001 00000000 c034873c
[ 21.189998] 9f80: 00000000 00000000 00000006 00000000 00000000 0002e004 00000004 c0201324
[ 21.198180] 9fa0: c3838000 c0201120 00000000 00000000 00000003 0001b82f 00000001 00000000
[ 21.206363] 9fc0: 00000000 00000000 0002e004 00000004 ffffffff 00000000 0000201d 00000001
[ 21.214545] 9fe0: beee5df0 beee5de0 b6f0cf48 b6f0c418 60000010 00000003 00000000 00000000
[ 21.222732] [<c0634224>] (sunxi_wdt_restart) from [<c0632a48>] (watchdog_restart_notifier+0x18/0x28)
[ 21.231877] [<c0632a48>] (watchdog_restart_notifier) from [<c02575ec>] (notifier_call_chain+0x2c/0x6c)
[ 21.241193] [<c02575ec>] (notifier_call_chain) from [<c0257820>] (atomic_notifier_call_chain+0x34/0x48)
[ 21.250597] [<c0257820>] (atomic_notifier_call_chain) from [<c0226950>] (machine_restart+0x58/0x80)
[ 21.259654] [<c0226950>] (machine_restart) from [<c023a8e4>] (panic+0x204/0x278)
[ 21.267063] [<c023a8e4>] (panic) from [<c0227e4c>] (die+0x360/0x37c)
[ 21.273426] [<c0227e4c>] (die) from [<c022bec0>] (__do_kernel_fault.part.0+0x64/0x74)
[ 21.281265] [<c022bec0>] (__do_kernel_fault.part.0) from [<c022c150>] (do_page_fault+0x280/0x2b0)
[ 21.290143] [<c022c150>] (do_page_fault) from [<c022c320>] (do_DataAbort+0x30/0xb0)
[ 21.297805] [<c022c320>] (do_DataAbort) from [<c0201ab0>] (__dabt_svc+0x50/0x80)
[ 21.305204] Exception stack(0xc3839c60 to 0xc3839ca8)
[ 21.310260] 9c60: c3a6c100 00000000 00000000 c3a6c100 00000000 fffffffe 00000000 00000000
[ 21.318443] 9c80: c48a2ca0 c093291c 0ccccb60 00000000 00000000 c3839cb0 c0632a48 c0634224
[ 21.326622] 9ca0: a0000193 ffffffff
[ 21.330120] [<c0201ab0>] (__dabt_svc) from [<c0634224>] (sunxi_wdt_restart+0x10/0xe4)
[ 21.337958] [<c0634224>] (sunxi_wdt_restart) from [<c0632a48>] (watchdog_restart_notifier+0x18/0x28)
[ 21.347100] [<c0632a48>] (watchdog_restart_notifier) from [<c02575ec>] (notifier_call_chain+0x2c/0x6c)
[ 21.356413] [<c02575ec>] (notifier_call_chain) from [<c0257820>] (atomic_notifier_call_chain+0x34/0x48)
[ 21.365814] [<c0257820>] (atomic_notifier_call_chain) from [<c0226950>] (machine_restart+0x58/0x80)
[ 21.374868] [<c0226950>] (machine_restart) from [<c023a8e4>] (panic+0x204/0x278)
[ 21.382272] [<c023a8e4>] (panic) from [<c0227e4c>] (die+0x360/0x37c)
[ 21.388632] [<c0227e4c>] (die) from [<c022bec0>] (__do_kernel_fault.part.0+0x64/0x74)
[ 21.396470] [<c022bec0>] (__do_kernel_fault.part.0) from [<c022c150>] (do_page_fault+0x280/0x2b0)
[ 21.405348] [<c022c150>] (do_page_fault) from [<c022c320>] (do_DataAbort+0x30/0xb0)
[ 21.413010] [<c022c320>] (do_DataAbort) from [<c0201ab0>] (__dabt_svc+0x50/0x80)
[ 21.420408] Exception stack(0xc3839e48 to 0xc3839e90)
[ 21.425463] 9e40: c3a6c100 00000003 c08168b4 00000000 c48a2ca0 00000000
[ 21.433646] 9e60: fa5518d4 00000001 c3a6c3ac c3a6c300 2463a4a8 00000003 82416480 c3839e98
[ 21.441826] 9e80: c063430c c063430c 60000013 ffffffff
[ 21.446885] [<c0201ab0>] (__dabt_svc) from [<c063430c>] (sunxi_wdt_ping+0x14/0x2c)
[ 21.454463] [<c063430c>] (sunxi_wdt_ping) from [<c0632ff8>] (__watchdog_ping+0x84/0x1a8)
[ 21.462562] [<c0632ff8>] (__watchdog_ping) from [<c0633210>] (watchdog_write+0xa4/0xc8)
[ 21.470574] [<c0633210>] (watchdog_write) from [<c03482a4>] (__vfs_write+0x1c/0x138)
[ 21.478326] [<c03482a4>] (__vfs_write) from [<c034854c>] (vfs_write+0xb4/0x170)
[ 21.485643] [<c034854c>] (vfs_write) from [<c034873c>] (ksys_write+0x50/0x9c)
[ 21.492783] [<c034873c>] (ksys_write) from [<c0201120>] (ret_fast_syscall+0x0/0x4c)
[ 21.500441] Exception stack(0xc3839fa8 to 0xc3839ff0)
[ 21.505496] 9fa0: 00000000 00000000 00000003 0001b82f 00000001 00000000
[ 21.513678] 9fc0: 00000000 00000000 0002e004 00000004 ffffffff 00000000 0000201d 00000001
[ 21.521859] 9fe0: beee5df0 beee5de0 b6f0cf48 b6f0c418
[ 21.526916] Code: e92d41f0 e590304c e5937064 e5938060 (e5d73001)
[ 21.533013] ---[ end trace 1f0f0284e0e109fe ]---
[ 21.537631] Kernel panic - not syncing: Fatal exception
[ 21.542864] Rebooting in 3 seconds..
second board log:
Macronix SPI NAND was found.
128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
Reading 4194304 byte(s) (2048 page(s)) at offset 0x00110000
Reading 65536 byte(s) (32 page(s)) at offset 0x00100000
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2926488 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Loading Device Tree to 42dfa000, end 42dff564 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Wed Nov 6 15:22:33 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line:
[ 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: 53872K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11664K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000244] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000448] Console: colour dummy device 80x30
[ 0.000962] console [tty0] enabled
[ 0.001017] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.001055] pid_max: default: 32768 minimum: 301
[ 0.001240] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001275] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.002288] CPU: Testing write buffer coherency: ok
[ 0.002870] /cpus/cpu@0 missing clock-frequency property
[ 0.002923] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060210] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080211] rcu: Hierarchical SRCU implementation.
[ 0.120336] smp: Bringing up secondary CPUs ...
[ 0.120388] smp: Brought up 1 node, 1 CPU
[ 0.120407] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120425] CPU: All CPU(s) started in HYP mode.
[ 0.120439] CPU: Virtualization extensions available.
[ 0.130495] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.131268] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.131337] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.131716] pinctrl core: initialized pinctrl subsystem
[ 0.132939] NET: Registered protocol family 16
[ 0.133356] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.134489] No ATAGs?
[ 0.194248] SCSI subsystem initialized
[ 0.194718] usbcore: registered new interface driver usbfs
[ 0.194818] usbcore: registered new interface driver hub
[ 0.196723] usbcore: registered new device driver usb
[ 0.197666] pps_core: LinuxPPS API ver. 1 registered
[ 0.197711] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.197897] PTP clock support registered
[ 0.199560] Advanced Linux Sound Architecture Driver Initialized.
[ 0.205141] clocksource: Switched to clocksource arch_sys_counter
[ 0.235420] NET: Registered protocol family 2
[ 0.236282] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.236361] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.236400] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.236436] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.236604] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.236670] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.236968] NET: Registered protocol family 1
[ 0.237397] kvm [1]: 8-bit VMID
[ 0.238780] kvm [1]: Hyp mode initialized successfully
[ 0.241670] No memory allocated for crashlog
[ 0.242770] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.271535] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.272119] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.300727] io scheduler noop registered
[ 0.300776] io scheduler deadline registered
[ 0.301059] io scheduler cfq registered (default)
[ 0.301940] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.308737] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.512060] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.541058] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 1.098698] console [ttyS0] enabled
[ 1.116842] loop: module loaded
[ 1.126992] spi-nand spi0.0: unknown raw ID 00000000
[ 1.132031] spi-nand: probe of spi0.0 failed with error -524
[ 1.140622] libphy: Fixed MDIO Bus: probed
[ 1.146689] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.152523] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.169153] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.176574] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.183817] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.188858] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.195709] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.201376] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.207079] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address 3a:a3:f2:3f:4f:74
[ 1.218005] libphy: stmmac: probed
[ 1.223040] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.230077] libphy: mdio_mux: probed
[ 1.233729] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.240489] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.248536] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.255102] ehci-platform: EHCI generic platform driver
[ 1.261809] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.268408] ohci-platform: OHCI generic platform driver
[ 1.274297] usbcore: registered new interface driver usb-storage
[ 1.281700] mousedev: PS/2 mouse device common for all mice
[ 1.289216] i2c /dev entries driver
[ 1.295415] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.306484] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.337964] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.350386] NET: Registered protocol family 10
[ 1.368902] Segment Routing with IPv6
[ 1.373185] NET: Registered protocol family 17
[ 1.378002] can: controller area network core (rev 20170425 abi 9)
[ 1.384836] NET: Registered protocol family 29
[ 1.389951] 8021q: 802.1Q VLAN Support v1.8
[ 1.394215] Registering SWP/SWPB emulation handler
[ 1.407868] hctosys: unable to open rtc device (rtc0)
[ 1.413327] ALSA device list:
[ 1.416879] No soundcards found.
[ 1.421965] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 1.429716] Please append a correct "root=" boot option; here are the available partitions:
[ 1.438435] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 1.446732] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.81 #0
[ 1.452740] Hardware name: Allwinner sun8i Family
[ 1.457487] [<c022af40>] (unwind_backtrace) from [<c0227ae8>] (show_stack+0x10/0x14)
[ 1.465248] [<c0227ae8>] (show_stack) from [<c07b0568>] (dump_stack+0x88/0x9c)
[ 1.472486] [<c07b0568>] (dump_stack) from [<c023a7cc>] (panic+0xec/0x278)
[ 1.479378] [<c023a7cc>] (panic) from [<c0a013d8>] (mount_block_root+0x1c8/0x280)
[ 1.486874] [<c0a013d8>] (mount_block_root) from [<c0a016c8>] (prepare_namespace+0x150/0x188)
[ 1.495408] [<c0a016c8>] (prepare_namespace) from [<c0a00fa4>] (kernel_init_freeable+0x244/0x254)
[ 1.504292] [<c0a00fa4>] (kernel_init_freeable) from [<c07c2af4>] (kernel_init+0x8/0x110)
[ 1.512480] [<c07c2af4>] (kernel_init) from [<c02011f8>] (ret_from_fork+0x14/0x3c)
[ 1.520053] Exception stack(0xc3839fb0 to 0xc3839ff8)
[ 1.525109] 9fa0: 00000000 00000000 00000000 00000000
[ 1.533292] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 1.541474] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[ 1.548107] Rebooting in 1 seconds..
请问是我这种烧录方法不对吗?
@bamkrsde 感谢回复, 发现立创商城也有mx35lf1ge这个芯片出售, https://so.szlcsc.com/global.html?k=mx35lf1ge
批量价7¥人民币, 我晚点下单去买两个.
还有一个问题我没有明白, 在 Linux driver 里面已经支持了市面上所有spi nand 芯片, 为什么你的固件只支持 mx35lf1ge 这一个呢?
前面@晕哥 提供的固件就支持了好几种spi nand芯片。
最新消息, 我用 v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z 配合 Win32DiskImager 把 openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-ext4-spinand.img.gz 文件写入U盘, spl可以启动,然后挂了:
W25N01, GD5F1GQ4UCYIG 都是一样的结果:
U-Boot SPL 2019.10 (Nov 06 2019 - 15:22:33 +0000)
DRAM: 64 MiB
Trying to boot from sunxi SPI-NAND
sunxi SPI-NAND: Unknown chip aaef
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ###
期待楼主把其他 SPI NAND 都测试一遍 ^_^
根据这个手册, 应该输出 00EFAA21 才对, 实际上是显示006faa20, 我可以保证硬件没有问题.
我另外一块V3s + Winbond W25N01 的板子, 用上面的USB启动, 能在电脑端看到128M的U盘,但是用openwrt也是一样的结果:
[ 1.103306] console [ttyS0] enabled
[ 1.121267] loop: module loaded
[ 1.131387] spi-nand spi0.0: unknown raw ID 006faa20
[ 1.137160] spi-nand: probe of spi0.0 failed with error -524
[ 1.144897] libphy: Fixed MDIO Bus: probed
[ 1.150980] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
我重新找了一片旧板子, 用 @晕哥 linux5.1的 usb启动 固件, 控制台是 UART0, log显示spi nand 正常, 可以变成一个U盘(USB DISK)
参考: V3s/S3/f1c100s通过USB启动Linux,并把SD NAND/TF卡挂载为U盘, 可以dd或Win32DiskImager任烧写
2019-05-19 更新:
------------------------------------
w25n01 spi nand 芯片挂载 u盘均成功: https://whycan.cn/t_2461.html#p19212本站下载: v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.1.0-rc4-00035-g0b5cbfb-dirty (root@test4) (gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7n May 6 03:51:59 EDT 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
....
[ 0.904750] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.916248] spi-nand spi0.0: GigaDevice SPI NAND was found.
[ 0.921916] spi-nand spi0.0: 128 MiB, block size: 128 KiB, page size: 2048, OOB size: 64
[ 0.932856] libphy: Fixed MDIO Bus: probed
但是用 openwrt 的 sd card img:
[ 1.101827] console [ttyS0] enabled
[ 1.119819] loop: module loaded
[ 1.129893] spi-nand spi0.0: unknown raw ID 006478e4
[ 1.134904] spi-nand: probe of spi0.0 failed with error -524
[ 1.143418] libphy: Fixed MDIO Bus: probed
[ 1.149457] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.155776] dwmac-sun8i 1c30000.ethernet: No regulator found
我焊上了 GD5F1GQ4UCYIG, 期待 ID 是: C8 B1 48, 可是linux log提示: unknown raw ID e458a464:
[ 1.121140] loop: module loaded
[ 1.131309] spi-nand spi0.0: unknown raw ID e458a464
[ 1.137088] spi-nand: probe of spi0.0 failed with error -524
[ 1.144842] libphy: Fixed MDIO Bus: probed
[ 1.150935] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
不知道是不是没有焊接好?
焊了一片 gd 的 5F1G04 还是出现一样的错误:
U-Boot SPL 2019.10 (Nov 06 2019 - 15:22:33 +0000)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2019.10 (Nov 06 2019 - 15:22:33 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
unknown raw ID 43d60dc8
MTD device spi-nand0 not found, ret -19
unknown raw ID 43d60d90
MTD device spi-nand0 not found, ret -19
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>
然后我手动执行命令:
fatload mmc 0 $fdt_addr_r dtb
fatload mmc 0 $kernel_addr_r uImage
setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
bootm $kernel_addr_r - $fdt_addr_r
然后才启动:
=> fatload mmc 0 $fdt_addr_r dtb
9573 bytes read in 4 ms (2.3 MiB/s)
=> loadkernel fatload mmc 0 $kernel_addr_r uImage
Unknown command 'loadkernel' - try 'help'
=> fatload mmc 0 $kernel_addr_r uImage
2926552 bytes read in 157 ms (17.8 MiB/s)
=> setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
=> bootm $kernel_addr_r - $fdt_addr_r
## Booting kernel from Legacy Image at 41000000 ...
Image Name: ARM OpenWrt Linux-4.19.81
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2926488 Bytes = 2.8 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Kernel Image
Using Device Tree in place at 41800000, end 41805564
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.81 (root@test5) (gcc version 8.3.0 (OpenWrt GCC 8.3.0 r11430-68d12ac1fe)) #0 SMP PREEMPT Wed Nov 6 15:22:33 2019
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=30c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Dolphin PI
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] random: get_random_bytes called from start_kernel+0x7c/0x42c with crng_init=0
[ 0.000000] percpu: Embedded 15 pages/cpu s31244 r8192 d22004 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16240
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait
[ 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: 53872K/65536K available (5928K kernel code, 396K rwdata, 1644K rodata, 2048K init, 242K bss, 11664K reserved, 0K cma-reserved, 0K highmem)
[ 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] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (7945 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (2048 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 397 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 243 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000246] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000448] Console: colour dummy device 80x30
[ 0.000504] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000520] pid_max: default: 32768 minimum: 301
[ 0.000691] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000707] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001622] CPU: Testing write buffer coherency: ok
[ 0.002183] /cpus/cpu@0 missing clock-frequency property
[ 0.002212] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.060207] Setting up static identity map for 0x40200000 - 0x40200060
[ 0.080209] rcu: Hierarchical SRCU implementation.
[ 0.120334] smp: Bringing up secondary CPUs ...
[ 0.120362] smp: Brought up 1 node, 1 CPU
[ 0.120372] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.120380] CPU: All CPU(s) started in HYP mode.
[ 0.120385] CPU: Virtualization extensions available.
[ 0.130551] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.131308] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.131343] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.131700] pinctrl core: initialized pinctrl subsystem
[ 0.132893] NET: Registered protocol family 16
[ 0.133367] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.134565] No ATAGs?
[ 0.194178] SCSI subsystem initialized
[ 0.194601] usbcore: registered new interface driver usbfs
[ 0.194675] usbcore: registered new interface driver hub
[ 0.196554] usbcore: registered new device driver usb
[ 0.197429] pps_core: LinuxPPS API ver. 1 registered
[ 0.197447] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.197606] PTP clock support registered
[ 0.199223] Advanced Linux Sound Architecture Driver Initialized.
[ 0.204945] clocksource: Switched to clocksource arch_sys_counter
[ 0.236731] NET: Registered protocol family 2
[ 0.237572] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.237617] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.237641] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.237664] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.237815] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.237866] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.238141] NET: Registered protocol family 1
[ 0.238675] kvm [1]: 8-bit VMID
[ 0.239435] kvm [1]: Hyp mode initialized successfully
[ 0.242242] No memory allocated for crashlog
[ 0.243301] workingset: timestamp_bits=14 max_order=14 bucket_order=0
[ 0.270420] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.271385] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.301294] io scheduler noop registered
[ 0.301317] io scheduler deadline registered
[ 0.301580] io scheduler cfq registered (default)
[ 0.302426] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.307911] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.510540] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.518801] console [ttyS0] disabled
[ 0.540248] 1c28800.serial: ttyS0 at MMIO 0x1c28800 (irq = 30, base_baud = 1500000) is a U6_16550A
[ 1.103214] console [ttyS0] enabled
[ 1.121140] loop: module loaded
[ 1.131309] spi-nand spi0.0: unknown raw ID e458a464
[ 1.137088] spi-nand: probe of spi0.0 failed with error -524
[ 1.144842] libphy: Fixed MDIO Bus: probed
[ 1.150935] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 1.157253] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 1.173557] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 1.180995] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 1.188288] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 1.193249] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 1.200076] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 1.205749] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 1.211421] dwmac-sun8i 1c30000.ethernet (unnamed net_device) (uninitialized): device MAC address 32:5c:bd:76:99:1b
[ 1.222308] libphy: stmmac: probed
[ 1.227287] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 1.234233] libphy: mdio_mux: probed
[ 1.238027] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 1.244386] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 1.252188] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.259846] ehci-platform: EHCI generic platform driver
[ 1.265716] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.271953] ohci-platform: OHCI generic platform driver
[ 1.278131] usbcore: registered new interface driver usb-storage
[ 1.285694] mousedev: PS/2 mouse device common for all mice
[ 1.292903] i2c /dev entries driver
[ 1.298995] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.310046] sunxi-mmc 1c0f000.mmc: Linked as a consumer to regulator.2
[ 1.344096] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.358630] NET: Registered protocol family 10
[ 1.375988] Segment Routing with IPv6
[ 1.379769] NET: Registered protocol family 17
[ 1.384750] can: controller area network core (rev 20170425 abi 9)
[ 1.391859] NET: Registered protocol family 29
[ 1.396812] 8021q: 802.1Q VLAN Support v1.8
[ 1.401146] Registering SWP/SWPB emulation handler
[ 1.415155] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.423934] hctosys: unable to open rtc device (rtc0)
[ 1.430217] ALSA device list:
[ 1.433201] No soundcards found.
[ 1.436883] mmc0: new high speed SD card at address 0001
[ 1.443621] Waiting for root device /dev/mmcblk0p2...
[ 1.460188] mmcblk0: mmc0:0001 MS 1.83 GiB
[ 1.476884] mmcblk0: p1 p2
[ 1.558165] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[ 1.566112] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.575818] Freeing unused kernel memory: 2048K
[ 1.580512] Run /sbin/init as init process
[ 1.687264] init: Console is alive
[ 1.690997] init: - watchdog -
[ 1.803800] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 1.811179] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 1.821368] init: - preinit -
[ 2.079822] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.113169] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.139990] random: jshn: uninitialized urandom read (4 bytes read)
[ 2.166368] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[ 2.177796] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 2.185409] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 2.193072] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 2.201794] 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
[ 5.344628] mount_root: mounting /dev/root
[ 5.379114] random: fast init done
[ 5.382883] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 5.482515] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 5.530067] procd: - early -
[ 5.533099] procd: - watchdog -
[ 6.929323] procd: - watchdog -
[ 6.932886] procd: - ubus -
[ 6.949210] urandom_read: 1 callbacks suppressed
[ 6.949222] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.987345] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.994250] random: ubusd: uninitialized urandom read (4 bytes read)
[ 7.001779] procd: - init -
Please press Enter to activate this console.
[ 7.354365] kmodloader: loading kernel modules from /etc/modules.d/*
[ 7.470453] urngd: v1.0.1 started.
[ 7.493438] xt_time: kernel timezone is -0000
[ 7.546241] PPP generic driver version 2.4.2
[ 7.553852] NET: Registered protocol family 24
[ 7.589369] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 7.596678] random: crng init done
[ 7.600091] random: 3 urandom warning(s) missed due to ratelimiting
[ 18.119323] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[ 18.157530] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 18.164866] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 18.255391] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 18.283313] br-lan: port 1(eth0) entered blocking state
[ 18.305348] br-lan: port 1(eth0) entered disabled state
[ 18.311258] device eth0 entered promiscuous mode
[ 18.326425] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 31.844972] vcc3v0: disabling
[ 31.847967] vcc5v0: disabling
BusyBox v1.31.0 () built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
OpenWrt SNAPSHOT, r11430-68d12ac1fe
-----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/#
root@OpenWrt:/# cat /proc/mtd
dev: size erasesize name
root@OpenWrt:/#
root@OpenWrt:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 104816 6736 95952 7% /
tmpfs 27960 48 27912 0% /tmp
tmpfs 512 0 512 0% /dev
root@OpenWrt:/# ifconfig
br-lan Link encap:Ethernet HWaddr 32:5C:BD:76:99:1B
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fdeb:9556:12eb::1/60 Scope:Global
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 32:5C:BD:76:99:1B
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:32 Base address:0xe000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:140 errors:0 dropped:0 overruns:0 frame:0
TX packets:140 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:9520 (9.2 KiB) TX bytes:9520 (9.2 KiB)
root@OpenWrt:/#
AWTK也支持单色屏,虽然体积大点,不过可以让单色屏和彩色屏公用同一套代码。
AWTK + TOS 在STM32F103上的demo1大小:
```
Program Size: Code=183778 RO-data=229094 RW-data=1120 ZI-data=55056
```有兴趣的朋友可以试试。
请问是哪个仓库呢? 有没有现成的工程?
按楼主的步奏,我编译成功了: https://whycan.cn/t_3168.html#p27029
https://whycan.cn/t_2091.html#p19696
ESP8089 驱动会奔溃(driver panic)
把这个文件 openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-ext4-sdcard.img 写到TF卡插到海豚派启动,
会提示没有找到SPI NAND
U-Boot SPL 2019.10 (Nov 06 2019 - 15:22:33 +0000)
DRAM: 64 MiB
Trying to boot from MMC1
U-Boot 2019.10 (Nov 06 2019 - 15:22:33 +0000) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Dolphin Pi
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
In: serial@01c28800
Out: serial@01c28800
Err: serial@01c28800
Net: No ethernet found.
Hit any key to stop autoboot: 0
unknown raw ID 43d60dc8
MTD device spi-nand0 not found, ret -19
unknown raw ID 43d60d90
MTD device spi-nand0 not found, ret -19
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>
因为我这片买的是 SPI NOR 的板子, 晚点换个 SPI NAND 试一试。
编译完成, 生成了几个镜像文件:
root@xgui:/opt/openwrt/bin/targets/sunxi/cortexa7# find /opt/openwrt/ |grep img.gz$ |xargs ls -l
-rw-r--r-- 1 root root 5528281 Nov 7 01:23 /opt/openwrt/bin/targets/sunxi/cortexa7/openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-ext4-sdcard.img.gz
-rw-r--r-- 1 root root 5511748 Nov 7 01:23 /opt/openwrt/bin/targets/sunxi/cortexa7/openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-ext4-spinand.img.gz
-rw-r--r-- 1 root root 4896001 Nov 7 01:23 /opt/openwrt/bin/targets/sunxi/cortexa7/openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-squashfs-sdcard.img.gz
-rw-r--r-- 1 root root 4878068 Nov 7 01:23 /opt/openwrt/bin/targets/sunxi/cortexa7/openwrt-sunxi-cortexa7-sun8i-v3s-dolphinpi-squashfs-spinand.img.gz
可以用GitHub Action编译,然后下载最终的固件,超级爽,还不要钱
还有这种操作 ^_^
http://www.ruanyifeng.com/blog/2019/09/getting-started-with-github-actions.html
root@xgui:/opt/openwrt# sudo apt-get install qtwayland5 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
qtwayland5
0 upgraded, 1 newly installed, 0 to remove and 115 not upgraded.
Need to get 117 kB of archives.
After this operation, 846 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu bionic/universe amd64 qtwayland5 amd64 5.9.5-0ubuntu1 [117 kB]
Fetched 117 kB in 1s (189 kB/s)
Selecting previously unselected package qtwayland5:amd64.
(Reading database ... 163653 files and directories currently installed.)
Preparing to unpack .../qtwayland5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking qtwayland5:amd64 (5.9.5-0ubuntu1) ...
Setting up qtwayland5:amd64 (5.9.5-0ubuntu1) ...
root@xgui:/opt/openwrt#
root@xgui:/opt/openwrt# ls "/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland-egl.so"
/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland-egl.so
执行下面的命令安装, 就有了 /usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland-egl.so
sudo apt-get install qtwayland5 -y
-- Looking for getgrnam_r
-- Looking for getgrnam_r - found
-- Looking for getpwnam_r
-- Looking for getpwnam_r - found
-- Looking for getpid
-- Looking for getpid - found
-- Looking for getvfsbyname
-- Looking for getvfsbyname - not found
-- Looking for lchflags
-- Looking for lchflags - not found
-- Looking for lchown
-- Looking for lchown - found
-- Looking for link
-- Looking for link - found
-- Looking for lstat
-- Looking for lstat - found
-- Looking for lutimes
-- Looking for lutimes - found
-- Looking for mbrtowc
-- Looking for mbrtowc - found
-- Looking for memmove
-- Looking for memmove - found
-- Looking for mkdir
-- Looking for mkdir - found
-- Looking for mkfifo
-- Looking for mkfifo - found
-- Looking for mknod
-- Looking for mknod - found
-- Looking for mkstemp
-- Looking for mkstemp - found
-- Looking for nl_langinfo
-- Looking for nl_langinfo - found
-- Looking for openat
-- Looking for openat - found
-- Looking for posix_spawnp
-- Looking for posix_spawnp - found
-- Looking for readlink
-- Looking for readlink - found
-- Looking for readpassphrase
-- Looking for readpassphrase - not found
-- Looking for setenv
-- Looking for setenv - found
-- Looking for statfs
-- Looking for statfs - found
-- Looking for statvfs
-- Looking for statvfs - found
-- Looking for strchr
-- Looking for strchr - found
-- Looking for strerror
-- Looking for strerror - found
-- Looking for strncpy_s
-- Looking for strncpy_s - not found
-- Looking for strrchr
-- Looking for strrchr - found
-- Looking for symlink
-- Looking for symlink - found
-- Looking for timegm
-- Looking for timegm - found
-- Looking for tzset
-- Looking for tzset - found
-- Looking for utimes
-- Looking for utimes - found
-- Looking for utimensat
-- Looking for utimensat - found
-- Looking for vfork
-- Looking for vfork - found
-- Looking for wcrtomb
-- Looking for wcrtomb - found
-- Looking for wcscmp
-- Looking for wcscmp - found
-- Looking for wcscpy
-- Looking for wcscpy - found
-- Looking for wcslen
-- Looking for wcslen - found
-- Looking for wctomb
-- Looking for wctomb - found
-- Looking for _ctime64_s
-- Looking for _ctime64_s - not found
-- Looking for _fseeki64
-- Looking for _fseeki64 - not found
-- Looking for _get_timezone
-- Looking for _get_timezone - not found
-- Looking for _localtime64_s
-- Looking for _localtime64_s - not found
-- Looking for _mkgmtime64
-- Looking for _mkgmtime64 - not found
-- Looking for cygwin_conv_path
-- Looking for cygwin_conv_path - not found
-- Looking for fseeko
-- Looking for fseeko - found
-- Looking for vprintf
-- Looking for vprintf - found
-- Looking for wmemcmp
-- Looking for wmemcmp - found
-- Looking for wmemcpy
-- Looking for wmemcpy - found
-- Looking for wmemmove
-- Looking for wmemmove - found
-- Performing Test HAVE_STRUCT_VFSCONF
-- Performing Test HAVE_STRUCT_VFSCONF - Failed
-- Performing Test HAVE_STRUCT_XVFSCONF
-- Performing Test HAVE_STRUCT_XVFSCONF - Failed
-- Performing Test HAVE_READDIR_R
-- Performing Test HAVE_READDIR_R - Success
-- Performing Test HAVE_DIRFD
-- Performing Test HAVE_DIRFD - Success
-- Performing Test HAVE_READLINKAT
-- Performing Test HAVE_READLINKAT - Success
-- Performing Test MAJOR_IN_MKDEV
-- Performing Test MAJOR_IN_MKDEV - Failed
-- Performing Test MAJOR_IN_SYSMACROS
-- Performing Test MAJOR_IN_SYSMACROS - Success
-- Performing Test HAVE_LZMA_STREAM_ENCODER_MT
-- Performing Test HAVE_LZMA_STREAM_ENCODER_MT - Failed
-- Looking for EFTYPE
-- Looking for EFTYPE - not found
-- Looking for EILSEQ
-- Looking for EILSEQ - found
-- Looking for D_MD_ORDER
-- Looking for D_MD_ORDER - not found
-- Looking for INT32_MAX
-- Looking for INT32_MAX - found
-- Looking for INT32_MIN
-- Looking for INT32_MIN - found
-- Looking for INT64_MAX
-- Looking for INT64_MAX - found
-- Looking for INT64_MIN
-- Looking for INT64_MIN - found
-- Looking for INTMAX_MAX
-- Looking for INTMAX_MAX - found
-- Looking for INTMAX_MIN
-- Looking for INTMAX_MIN - found
-- Looking for UINT32_MAX
-- Looking for UINT32_MAX - found
-- Looking for UINT64_MAX
-- Looking for UINT64_MAX - found
-- Looking for UINTMAX_MAX
-- Looking for UINTMAX_MAX - found
-- Looking for SIZE_MAX
-- Looking for SIZE_MAX - found
-- Looking for SSIZE_MAX
-- Looking for SSIZE_MAX - found
-- Performing Test HAVE_STRUCT_TM_TM_GMTOFF
-- Performing Test HAVE_STRUCT_TM_TM_GMTOFF - Success
-- Performing Test HAVE_STRUCT_TM___TM_GMTOFF
-- Performing Test HAVE_STRUCT_TM___TM_GMTOFF - Failed
-- Performing Test HAVE_STRUCT_STATFS_F_NAMEMAX
-- Performing Test HAVE_STRUCT_STATFS_F_NAMEMAX - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME
-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIME - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success
-- Performing Test HAVE_STRUCT_STAT_ST_MTIME_N
-- Performing Test HAVE_STRUCT_STAT_ST_MTIME_N - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_UMTIME
-- Performing Test HAVE_STRUCT_STAT_ST_UMTIME - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIME_USEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIME_USEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE
-- Performing Test HAVE_STRUCT_STAT_ST_BLKSIZE - Success
-- Performing Test HAVE_STRUCT_STAT_ST_FLAGS
-- Performing Test HAVE_STRUCT_STAT_ST_FLAGS - Failed
-- Performing Test HAVE_STRUCT_STATVFS_F_IOSIZE
-- Performing Test HAVE_STRUCT_STATVFS_F_IOSIZE - Failed
-- Check size of dev_t
-- Check size of dev_t - done
-- Check size of gid_t
-- Check size of gid_t - done
-- Check size of id_t
-- Check size of id_t - done
-- Check size of mode_t
-- Check size of mode_t - done
-- Check size of off_t
-- Check size of off_t - done
-- Check size of size_t
-- Check size of size_t - done
-- Check size of ssize_t
-- Check size of ssize_t - done
-- Check size of uid_t
-- Check size of uid_t - done
-- Check size of pid_t
-- Check size of pid_t - done
-- Check size of intptr_t
-- Check size of intptr_t - done
-- Check size of wchar_t
-- Check size of wchar_t - done
-- Checking _FILE_OFFSET_BITS for large files
-- Checking _FILE_OFFSET_BITS for large files - not needed
-- Checking support for ARCHIVE_CRYPTO_MD5_LIBC
-- Checking support for ARCHIVE_CRYPTO_MD5_LIBC -- not found
-- Checking support for ARCHIVE_CRYPTO_RMD160_LIBC
-- Checking support for ARCHIVE_CRYPTO_RMD160_LIBC -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA1_LIBC
-- Checking support for ARCHIVE_CRYPTO_SHA1_LIBC -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBC
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBC -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBC
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBC -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBC
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBC -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBC2
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBC2 -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBC2
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBC2 -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBC2
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBC2 -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBC3
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBC3 -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBC3
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBC3 -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBC3
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBC3 -- not found
-- Checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM
-- Checking support for ARCHIVE_CRYPTO_MD5_LIBSYSTEM -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM
-- Checking support for ARCHIVE_CRYPTO_SHA1_LIBSYSTEM -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBSYSTEM -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM
-- Checking support for ARCHIVE_CRYPTO_SHA384_LIBSYSTEM -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBSYSTEM -- not found
-- Checking support for ARCHIVE_CRYPTO_MD5_OPENSSL
-- Checking support for ARCHIVE_CRYPTO_MD5_OPENSSL -- not found
-- Checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL
-- Checking support for ARCHIVE_CRYPTO_RMD160_OPENSSL -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL
-- Checking support for ARCHIVE_CRYPTO_SHA1_OPENSSL -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL
-- Checking support for ARCHIVE_CRYPTO_SHA256_OPENSSL -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL
-- Checking support for ARCHIVE_CRYPTO_SHA384_OPENSSL -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL
-- Checking support for ARCHIVE_CRYPTO_SHA512_OPENSSL -- not found
-- Checking support for ARCHIVE_CRYPTO_MD5_LIBMD
-- Checking support for ARCHIVE_CRYPTO_MD5_LIBMD -- not found
-- Checking support for ARCHIVE_CRYPTO_RMD160_LIBMD
-- Checking support for ARCHIVE_CRYPTO_RMD160_LIBMD -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA1_LIBMD
-- Checking support for ARCHIVE_CRYPTO_SHA1_LIBMD -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBMD
-- Checking support for ARCHIVE_CRYPTO_SHA256_LIBMD -- not found
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBMD
-- Checking support for ARCHIVE_CRYPTO_SHA512_LIBMD -- not found
-- Checking for curses support
-- Checking for curses support - Success
-- Looking for wsyncup in /usr/lib/x86_64-linux-gnu/libcurses.so
-- Looking for wsyncup in /usr/lib/x86_64-linux-gnu/libcurses.so - found
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncurses.so
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncurses.so - found
-- Found Curses: /usr/lib/x86_64-linux-gnu/libncurses.so
-- Looking for elf.h
-- Looking for elf.h - found
-- Looking for a Fortran compiler
-- Looking for a Fortran compiler - NOTFOUND
-- Performing Test run_pic_test
-- Performing Test run_pic_test - Success
-- Performing Test run_inlines_hidden_test
-- Performing Test run_inlines_hidden_test - Success
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:27 (mes sage):
The imported target "Qt5::Gui" references the file
"/usr/lib/x86_64-linux-gnu/qt5/plugins/platforms/libqwayland-egl.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QWaylandEglPlatformIntegrati onPlugin.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:171 (_qt5_Gui_check_ file_exists)
/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5Gui_QWaylandEglPlatformIntegrationPl ugin.cmake:4 (_populate_Gui_plugin_properties)
/usr/lib/x86_64-linux-gnu/cmake/Qt5Gui/Qt5GuiConfig.cmake:179 (include)
/usr/lib/x86_64-linux-gnu/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake:101 (find_pa ckage)
Tests/CMakeLists.txt:1344 (find_package)
-- Configuring incomplete, errors occurred!
See also "/opt/openwrt/build_dir/host/cmake-3.15.1/CMakeFiles/CMakeOutput.log".
See also "/opt/openwrt/build_dir/host/cmake-3.15.1/CMakeFiles/CMakeError.log".
---------------------------------------------
Error when bootstrapping CMake:
Problem while running initial CMake
---------------------------------------------
Makefile:49: recipe for target '/opt/openwrt/build_dir/host/cmake-3.15.1/.config ured' failed
make[3]: *** [/opt/openwrt/build_dir/host/cmake-3.15.1/.configured] Error 11
make[3]: Leaving directory '/opt/openwrt/tools/cmake'
time: tools/cmake/compile#558.68#85.65#647.80
tools/Makefile:157: recipe for target 'tools/cmake/compile' failed
make[2]: *** [tools/cmake/compile] Error 2
make[2]: Leaving directory '/opt/openwrt'
tools/Makefile:155: recipe for target '/opt/openwrt/staging_dir/host/stamp/.tool s_compile_yynyynnyyynyyyyynyynnyyyynyyyyyyyyyyyyyyynynynnyyynnyyy' failed
make[1]: *** [/opt/openwrt/staging_dir/host/stamp/.tools_compile_yynyynnyyynyyyy ynyynnyyyynyyyyyyyyyyyyyyynynynnyyynnyyy] Error 2
make[1]: Leaving directory '/opt/openwrt'
/opt/openwrt/include/toplevel.mk:225: recipe for target 'world' failed
make: *** [world] Error 2
又出现了一个编译错误。
https://blog.csdn.net/tx422/article/details/78593860
编译错误 you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this
export FORCE_UNSAFE_CONFIGURE=1
root@test5:~# startxfce4
/usr/bin/startxfce4: Starting X server
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.9.0-8-armmp-lpae armv7l Debian
Current Operating System: Linux test5 4.15.0-licheepi-nano+ #2 Tue Aug 27 15:20:21 CST 2019 armv5tejl
Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw vt.global_cursor_default=0
Build Date: 03 November 2018 04:54:31AM
xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support)
Current version of pixman: 0.34.0
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Nov 3 17:28:43 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
MESA-LOADER: failed to retrieve device information
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabi/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/sun4i-drm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: sun4i-drm
gbm: failed to open any driver (search paths /usr/lib/arm-linux-gnueabi/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: No such file or directory
failed to load driver: kms_swrast
EGL_MESA_drm_image required.
(EE)
Fatal server error:
(EE) AddScreen/ScreenInit failed for driver 0
(EE)
(EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
xinit: giving up
xinit: unable to connect to X server: Bad file descriptor
xinit: server error
root@test5:~#
root@test5:~# cat /var/log/Xorg.1.log
[ 311.849]
X.Org X Server 1.19.2
Release Date: 2017-03-02
[ 311.851] X Protocol Version 11, Revision 0
[ 311.851] Build Operating System: Linux 4.9.0-8-armmp-lpae armv7l Debian
[ 311.851] Current Operating System: Linux test5 4.15.0-licheepi-nano+ #2 Tue Aug 27 15:20:21 CST 2019 armv5tejl
[ 311.852] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk0p2 rw vt.global_cursor_default=0
[ 311.853] Build Date: 03 November 2018 04:54:31AM
[ 311.854] xorg-server 2:1.19.2-1+deb9u5 (https://www.debian.org/support)
[ 311.854] Current version of pixman: 0.34.0
[ 311.855] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 311.855] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 311.858] (==) Log file: "/var/log/Xorg.1.log", Time: Thu Nov 3 17:21:50 2016
[ 311.877] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 311.942] (==) No Layout section. Using the first Screen section.
[ 311.943] (==) No screen section available. Using defaults.
[ 311.943] (**) |-->Screen "Default Screen Section" (0)
[ 311.943] (**) | |-->Monitor "<default monitor>"
[ 311.947] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 311.948] (==) Automatically adding devices
[ 311.948] (==) Automatically enabling devices
[ 311.949] (==) Automatically adding GPU devices
[ 311.949] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 311.956] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[ 311.956] Entry deleted from font path.
[ 311.957] (==) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
built-ins
[ 311.957] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 311.958] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 311.958] (II) Loader magic: 0x66cf60
[ 311.960] (II) Module ABI versions:
[ 311.961] X.Org ANSI C Emulation: 0.4
[ 311.961] X.Org Video Driver: 23.0
[ 311.961] X.Org XInput driver : 24.1
[ 311.962] X.Org Server Extension : 10.0
[ 312.029] (--) using VT number 2
[ 312.030] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 312.087] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 312.101] (II) no primary bus or device found
[ 312.102] falling back to /sys/devices/platform/display-engine/drm/card0
[ 312.102] (II) LoadModule: "glx"
[ 312.107] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 312.252] (II) Module glx: vendor="X.Org Foundation"
[ 312.252] compiled for 1.19.2, module version = 1.0.0
[ 312.253] ABI class: X.Org Server Extension, version 10.0
[ 312.254] (==) Matched modesetting as autoconfigured driver 0
[ 312.254] (==) Matched fbdev as autoconfigured driver 1
[ 312.254] (==) Assigned the driver to the xf86ConfigLayout
[ 312.255] (II) LoadModule: "modesetting"
[ 312.257] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 312.262] (II) Module modesetting: vendor="X.Org Foundation"
[ 312.262] compiled for 1.19.2, module version = 1.19.2
[ 312.262] Module class: X.Org Video Driver
[ 312.263] ABI class: X.Org Video Driver, version 23.0
[ 312.263] (II) LoadModule: "fbdev"
[ 312.266] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 312.280] (II) Module fbdev: vendor="X.Org Foundation"
[ 312.280] compiled for 1.19.0, module version = 0.4.4
[ 312.281] Module class: X.Org Video Driver
[ 312.282] ABI class: X.Org Video Driver, version 23.0
[ 312.282] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 312.283] (II) FBDEV: driver for framebuffer: fbdev
[ 312.320] (II) modeset(0): using drv /dev/dri/card0
[ 312.321] (WW) Falling back to old probe method for fbdev
[ 312.321] (II) Loading sub module "fbdevhw"
[ 312.321] (II) LoadModule: "fbdevhw"
[ 312.323] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 312.346] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 312.346] compiled for 1.19.2, module version = 0.0.2
[ 312.347] ABI class: X.Org Video Driver, version 23.0
[ 312.348] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 312.358] (II) modeset(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 24/32
[ 312.359] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 312.360] (==) modeset(0): RGB weight 888
[ 312.360] (==) modeset(0): Default visual is TrueColor
[ 312.361] (II) Loading sub module "glamoregl"
[ 312.361] (II) LoadModule: "glamoregl"
[ 312.363] (II) Loading /usr/lib/xorg/modules/libglamoregl.so
[ 313.317] (II) Module glamoregl: vendor="X.Org Foundation"
[ 313.317] compiled for 1.19.2, module version = 1.0.0
[ 313.318] ABI class: X.Org ANSI C Emulation, version 0.4
[ 313.318] (II) glamor: OpenGL accelerated X.org driver based.
[ 314.112] (II) glamor: EGL version 1.4 (DRI2):
[ 314.113] EGL_MESA_drm_image required.
[ 314.116] (EE) modeset(0): glamor initialization failed
[ 314.117] (II) modeset(0): ShadowFB: preferred NO, enabled NO
[ 314.119] (II) modeset(0): Output None-1 has no monitor section
[ 314.132] (II) modeset(0): EDID for output None-1
[ 314.134] (II) modeset(0): Printing probed modes for output None-1
[ 314.134] (II) modeset(0): Modeline "800x480"x61.6 30.00 800 840 888 928 480 493 496 525 (32.3 kHz eP)
[ 314.135] (II) modeset(0): Output None-1 connected
[ 314.135] (II) modeset(0): Using exact sizes for initial modes
[ 314.135] (II) modeset(0): Output None-1 using initial mode 800x480 +0+0
[ 314.136] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 314.136] (==) modeset(0): DPI set to (96, 96)
[ 314.137] (II) Loading sub module "fb"
[ 314.137] (II) LoadModule: "fb"
[ 314.139] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 314.153] (II) Module fb: vendor="X.Org Foundation"
[ 314.154] compiled for 1.19.2, module version = 1.0.0
[ 314.154] ABI class: X.Org ANSI C Emulation, version 0.4
[ 314.155] (II) UnloadModule: "fbdev"
[ 314.155] (II) Unloading fbdev
[ 314.156] (II) UnloadSubModule: "fbdevhw"
[ 314.157] (II) Unloading fbdevhw
[ 314.158] (==) Depth 24 pixmap format is 32 bpp
[ 314.180] (EE)
Fatal server error:
[ 314.182] (EE) AddScreen/ScreenInit failed for driver 0
[ 314.182] (EE)
[ 314.183] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 314.183] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.
[ 314.184] (EE)
[ 314.280] (EE) Server terminated with error (1). Closing log file.
悲剧, f1c100s debian xfce4 桌面启动失败。
root@xgui:/# apt-get install xfce
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package xfce
root@xgui:/# apt-get install xfce4
Reading package lists... Done
Building dependency tree... Done
The following additional packages will be installed:
adwaita-icon-theme at-spi2-core cpp cpp-6 dbus dbus-user-session dbus-x11 dconf-gsettings-backend dconf-service desktop-base desktop-file-utils
dosfstools eject exfat-fuse exfat-utils exo-utils fontconfig fontconfig-config fonts-dejavu-core fuse gdisk glib-networking
glib-networking-common glib-networking-services gnome-accessibility-themes gnome-icon-theme gnome-themes-standard gnome-themes-standard-data
groff-base gsettings-desktop-schemas gstreamer1.0-plugins-base gtk-update-icon-cache gtk2-engines-pixbuf gtk2-engines-xfce gvfs gvfs-common
gvfs-daemons gvfs-libs hicolor-icon-theme iso-codes keyboard-configuration krb5-locales libaacs0 libasound2 libasound2-data libasound2-plugins
libasyncns0 libatasmart4 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatkmm-1.6-1v5 libatspi2.0-0 libavahi-client3 libavahi-common-data
libavahi-common3 libavcodec57 libavresample3 libavutil55 libbdplus0 libbluray1 libcairo-gobject2 libcairo2 libcairomm-1.0-1v5 libcanberra-gtk3-0
libcanberra-gtk3-module libcanberra0 libcap2-bin libcdparanoia0 libcolord2 libcroco3 libcups2 libdatrie1 libdbus-1-3 libdbus-glib-1-2 libdconf1
libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl1-mesa libepoxy0 libevdev2 libexif12 libexo-1-0 libexo-common
libexo-helpers libexpat1 libflac8 libfontconfig1 libfontenc1 libfreetype6 libfuse2 libgail-common libgail18 libgarcon-1-0 libgarcon-common
libgbm1 libgck-1-0 libgcr-3-common libgcr-base-3-1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
libglib2.0-0 libglib2.0-data libglibmm-2.4-1v5 libglu1-mesa libgomp1 libgraphite2-3 libgsm1 libgssapi-krb5-2 libgstreamer-plugins-base1.0-0
libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkmm-3.0-1v5 libgudev-1.0-0
libharfbuzz0b libical2 libice6 libicu57 libimobiledevice6 libinput-bin libinput10 libisl15 libjack-jackd2-0 libjbig0 libjpeg62-turbo
libjson-glib-1.0-0 libjson-glib-1.0-common libk5crypto3 libkeybinder-3.0-0 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2
liblightdm-gobject-1-0 libltdl7 libmp3lame0 libmpc3 libmpfr4 libmtdev1 libnotify-bin libnotify4 libnspr4 libnss3 libntfs-3g871 libogg0
libopenjp2-7 libopus0 liborc-0.4-0 libpam-cap libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangomm-1.4-1v5 libparted2
libpciaccess0 libperl5.24 libpixman-1-0 libplist3 libpng16-16 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpoppler-glib8
libpoppler64 libproxy1v5 libpulse-mainloop-glib0 libpulse0 libpulsedsp librest-0.7-0 librsvg2-2 librsvg2-common libsamplerate0 libsecret-1-0
libsecret-common libsensors4 libshine3 libsigc++-2.0-0v5 libsm6 libsnappy1v5 libsndfile1 libsoup-gnome2.4-1 libsoup2.4-1 libsoxr0 libspeex1
libspeexdsp1 libstartup-notification0 libswresample2 libtdb1 libthai-data libthai0 libtheora0 libthunarx-2-0 libtiff5 libtumbler-1-0 libtwolame0
libtxc-dxtn-s2tc libudisks2-0 libupower-glib3 liburi-perl libusb-1.0-0 libusbmuxd4 libutempter0 libva-drm1 libva-x11-1 libva1 libvdpau-va-gl1
libvdpau1 libvisual-0.4-0 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx4 libwacom-bin libwacom-common libwacom2 libwavpack1 libwayland-client0
libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwebp6 libwebpmux2 libwebrtc-audio-processing1 libwnck-common libwnck22 libwrap0
libx11-6 libx11-data libx11-xcb1 libx264-148 libx265-95 libxau6 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util0 libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6
libxfce4panel-2.0-4 libxfce4ui-1-0 libxfce4ui-2-0 libxfce4ui-common libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util7
libxfconf-0-2 libxfixes3 libxfont1 libxfont2 libxft2 libxi6 libxinerama1 libxkbcommon0 libxkbfile1 libxklavier16 libxml2 libxmu6 libxmuu1 libxpm4
libxrandr2 libxrender1 libxres1 libxshmfence1 libxss1 libxt6 libxtst6 libxv1 libxvidcore4 libxxf86dga1 libxxf86vm1 libzvbi-common libzvbi0
light-locker lightdm lightdm-gtk-greeter man-db mesa-va-drivers mesa-vdpau-drivers notification-daemon ntfs-3g orage parted pavucontrol perl
perl-modules-5.24 policykit-1 poppler-data pulseaudio pulseaudio-utils rename rtkit sgml-base shared-mime-info tango-icon-theme tcpd thunar
thunar-data thunar-volman tumbler tumbler-common ucf udisks2 upower usbmuxd va-driver-all vdpau-driver-all x11-apps x11-common x11-session-utils
x11-utils x11-xkb-utils x11-xserver-utils xauth xbitmaps xdg-user-dirs xfce4-appfinder xfce4-notifyd xfce4-panel xfce4-pulseaudio-plugin
xfce4-session xfce4-settings xfconf xfdesktop4 xfdesktop4-data xfonts-100dpi xfonts-75dpi xfonts-base xfonts-encodings xfonts-scalable
xfonts-utils xfwm4 xinit xkb-data xml-core xorg xorg-docs-core xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
xserver-xorg-video-fbdev xserver-xorg-video-radeon xserver-xorg-video-vesa xterm
Suggested packages:
cpp-doc gcc-6-locales cdtool setcd groff gvfs-backends isoquery alsa-utils libbluray-bdj libcanberra-gtk0 libcanberra-pulse colord cups-common
krb5-doc krb5-user libvisual-0.4-plugins gstreamer1.0-tools libusbmuxd-tools jackd2 liblcms2-utils opus-tools libparted-dev libparted-i18n
pciutils librsvg2-bin lm-sensors speex libwww-perl devhelp accountsservice xserver-xephyr less www-browser sox parted-doc perl-doc
libterm-readline-gnu-perl | libterm-readline-perl-perl make poppler-utils ghostscript fonts-japanese-mincho | fonts-ipafont-mincho
fonts-japanese-gothic | fonts-ipafont-gothic fonts-arphic-ukai fonts-arphic-uming fonts-nanum pavumeter paman paprefs avahi-daemon sgml-base-doc
kdelibs-data thunar-archive-plugin thunar-media-tags-plugin tumbler-plugins-extra btrfs-progs | btrfs-tools cryptsetup-bin mdadm reiserfsprogs
xfsprogs mesa-utils nickle cairo-5c xfce4-goodies xfce4-power-manager gtk3-engines-xfce sudo fortunes-mod pm-utils menu xfwm4-themes debhelper
xorg-docs x11-xfs-utils xinput firmware-amd-graphics xserver-xorg-video-r128 xserver-xorg-video-mach64 xfonts-cyrillic
The following NEW packages will be installed:
adwaita-icon-theme at-spi2-core cpp cpp-6 dbus dbus-user-session dbus-x11 dconf-gsettings-backend dconf-service desktop-base desktop-file-utils
dosfstools eject exfat-fuse exfat-utils exo-utils fontconfig fontconfig-config fonts-dejavu-core fuse gdisk glib-networking
glib-networking-common glib-networking-services gnome-accessibility-themes gnome-icon-theme gnome-themes-standard gnome-themes-standard-data
groff-base gsettings-desktop-schemas gstreamer1.0-plugins-base gtk-update-icon-cache gtk2-engines-pixbuf gtk2-engines-xfce gvfs gvfs-common
gvfs-daemons gvfs-libs hicolor-icon-theme iso-codes keyboard-configuration krb5-locales libaacs0 libasound2 libasound2-data libasound2-plugins
libasyncns0 libatasmart4 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data libatkmm-1.6-1v5 libatspi2.0-0 libavahi-client3 libavahi-common-data
libavahi-common3 libavcodec57 libavresample3 libavutil55 libbdplus0 libbluray1 libcairo-gobject2 libcairo2 libcairomm-1.0-1v5 libcanberra-gtk3-0
libcanberra-gtk3-module libcanberra0 libcap2-bin libcdparanoia0 libcolord2 libcroco3 libcups2 libdatrie1 libdbus-1-3 libdbus-glib-1-2 libdconf1
libdrm-amdgpu1 libdrm-freedreno1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libegl1-mesa libepoxy0 libevdev2 libexif12 libexo-1-0 libexo-common
libexo-helpers libexpat1 libflac8 libfontconfig1 libfontenc1 libfreetype6 libfuse2 libgail-common libgail18 libgarcon-1-0 libgarcon-common
libgbm1 libgck-1-0 libgcr-3-common libgcr-base-3-1 libgdk-pixbuf2.0-0 libgdk-pixbuf2.0-common libgl1-mesa-dri libgl1-mesa-glx libglapi-mesa
libglib2.0-0 libglib2.0-data libglibmm-2.4-1v5 libglu1-mesa libgomp1 libgraphite2-3 libgsm1 libgssapi-krb5-2 libgstreamer-plugins-base1.0-0
libgstreamer1.0-0 libgtk-3-0 libgtk-3-bin libgtk-3-common libgtk2.0-0 libgtk2.0-bin libgtk2.0-common libgtkmm-3.0-1v5 libgudev-1.0-0
libharfbuzz0b libical2 libice6 libicu57 libimobiledevice6 libinput-bin libinput10 libisl15 libjack-jackd2-0 libjbig0 libjpeg62-turbo
libjson-glib-1.0-0 libjson-glib-1.0-common libk5crypto3 libkeybinder-3.0-0 libkeyutils1 libkrb5-3 libkrb5support0 liblcms2-2
liblightdm-gobject-1-0 libltdl7 libmp3lame0 libmpc3 libmpfr4 libmtdev1 libnotify-bin libnotify4 libnspr4 libnss3 libntfs-3g871 libogg0
libopenjp2-7 libopus0 liborc-0.4-0 libpam-cap libpam-systemd libpango-1.0-0 libpangocairo-1.0-0 libpangoft2-1.0-0 libpangomm-1.4-1v5 libparted2
libpciaccess0 libperl5.24 libpixman-1-0 libplist3 libpng16-16 libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpoppler-glib8
libpoppler64 libproxy1v5 libpulse-mainloop-glib0 libpulse0 libpulsedsp librest-0.7-0 librsvg2-2 librsvg2-common libsamplerate0 libsecret-1-0
libsecret-common libsensors4 libshine3 libsigc++-2.0-0v5 libsm6 libsnappy1v5 libsndfile1 libsoup-gnome2.4-1 libsoup2.4-1 libsoxr0 libspeex1
libspeexdsp1 libstartup-notification0 libswresample2 libtdb1 libthai-data libthai0 libtheora0 libthunarx-2-0 libtiff5 libtumbler-1-0 libtwolame0
libtxc-dxtn-s2tc libudisks2-0 libupower-glib3 liburi-perl libusb-1.0-0 libusbmuxd4 libutempter0 libva-drm1 libva-x11-1 libva1 libvdpau-va-gl1
libvdpau1 libvisual-0.4-0 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx4 libwacom-bin libwacom-common libwacom2 libwavpack1 libwayland-client0
libwayland-cursor0 libwayland-egl1-mesa libwayland-server0 libwebp6 libwebpmux2 libwebrtc-audio-processing1 libwnck-common libwnck22 libwrap0
libx11-6 libx11-data libx11-xcb1 libx264-148 libx265-95 libxau6 libxaw7 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-render0
libxcb-shape0 libxcb-shm0 libxcb-sync1 libxcb-util0 libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 libxext6
libxfce4panel-2.0-4 libxfce4ui-1-0 libxfce4ui-2-0 libxfce4ui-common libxfce4ui-utils libxfce4util-bin libxfce4util-common libxfce4util7
libxfconf-0-2 libxfixes3 libxfont1 libxfont2 libxft2 libxi6 libxinerama1 libxkbcommon0 libxkbfile1 libxklavier16 libxml2 libxmu6 libxmuu1 libxpm4
libxrandr2 libxrender1 libxres1 libxshmfence1 libxss1 libxt6 libxtst6 libxv1 libxvidcore4 libxxf86dga1 libxxf86vm1 libzvbi-common libzvbi0
light-locker lightdm lightdm-gtk-greeter man-db mesa-va-drivers mesa-vdpau-drivers notification-daemon ntfs-3g orage parted pavucontrol perl
perl-modules-5.24 policykit-1 poppler-data pulseaudio pulseaudio-utils rename rtkit sgml-base shared-mime-info tango-icon-theme tcpd thunar
thunar-data thunar-volman tumbler tumbler-common ucf udisks2 upower usbmuxd va-driver-all vdpau-driver-all x11-apps x11-common x11-session-utils
x11-utils x11-xkb-utils x11-xserver-utils xauth xbitmaps xdg-user-dirs xfce4 xfce4-appfinder xfce4-notifyd xfce4-panel xfce4-pulseaudio-plugin
xfce4-session xfce4-settings xfconf xfdesktop4 xfdesktop4-data xfonts-100dpi xfonts-75dpi xfonts-base xfonts-encodings xfonts-scalable
xfonts-utils xfwm4 xinit xkb-data xml-core xorg xorg-docs-core xserver-common xserver-xorg xserver-xorg-core xserver-xorg-input-all
xserver-xorg-input-libinput xserver-xorg-input-wacom xserver-xorg-legacy xserver-xorg-video-all xserver-xorg-video-amdgpu xserver-xorg-video-ati
xserver-xorg-video-fbdev xserver-xorg-video-radeon xserver-xorg-video-vesa xterm
0 upgraded, 375 newly installed, 0 to remove and 0 not upgraded.
Need to get 158 MB of archives.
After this operation, 578 MB of additional disk space will be used.
Do you want to continue? [Y/n]
本来想跑个桌面, 装一个 xfce4 的, 结果提示要 578M, 好吓人的体积啊, Linux下面有没有好用的精简桌面呢?
有没有划算的流量卡推荐?
这个8元的联通卡我看到的时候已经没有了,捶胸顿足 https://whycan.cn/t_2723.html
320x480界面xfce4
vncserver :1 -geometry 320x480 -depth 32 -pixelformat rgb8888
480x320界面xfce4
vncserver :1 -geometry 480x320 -depth 32 -pixelformat rgb8888
xfce4 清除配置文件:
mv ~/.config/xfce4/ ~/.config/xfce4.bak/
https://askubuntu.com/questions/224006/resetting-xfce-panels-to-default-settings
第四个出场的是 lxqt, 这个可能有点重量级, 提示有300MB, 用命令安装:
sudo apt install lxqt
修改vnc启动文件 ~/.vnc/xstartup
#!/bin/sh
/usr/bin/startlxqt &
然后运行 vncserver 即可, 用vnc客户端连入即可。
参考 https://www.tecmint.com/install-lxqt-desktop-in-ubuntu-fedora/
第三个出场的是 lxde, 用命令安装:
sudo apt install openbox-lxde-session
修改vnc启动文件 ~/.vnc/xstartup
#!/bin/sh
/usr/bin/startlxde &
然后运行 vncserver 即可, 用vnc客户端连入即可。
#
# miraclecast needs systemd and a glibc toolchain w/ threads and wchar
#
# BR2_PACKAGE_MJPEGTOOLS is not set
# BR2_PACKAGE_MODPLUGTOOLS is not set
# BR2_PACKAGE_MOTION is not set
# BR2_PACKAGE_MPD is not set
# BR2_PACKAGE_MPD_MPC is not set
# BR2_PACKAGE_MPG123 is not set
# BR2_PACKAGE_MPV is not set
# BR2_PACKAGE_MULTICAT is not set
# BR2_PACKAGE_MUSEPACK is not set
# BR2_PACKAGE_NCMPC is not set
# BR2_PACKAGE_OPUS_TOOLS is not set
BR2_PACKAGE_PULSEAUDIO_HAS_ATOMIC=y
# BR2_PACKAGE_PULSEAUDIO is not set
# BR2_PACKAGE_SOX is not set
# BR2_PACKAGE_SQUEEZELITE is not set
# BR2_PACKAGE_TSTOOLS is not set
# BR2_PACKAGE_TWOLAME is not set
# BR2_PACKAGE_UDPXY is not set
# BR2_PACKAGE_UPMPDCLI is not set
# BR2_PACKAGE_V4L2GRAB is not set
果然有 BR2_PACKAGE_MPV , 但是我还没有玩过这个.
果然过期了, 2018.05版本就过期了, 不说我还不知道呢。
这么好用的软件包为什么要踢出去呢?难道只能用回旧版本buildroot?
#
# Legacy options removed in 2018.05
#
# BR2_PACKAGE_MEDIAART_BACKEND_NONE is not set
# BR2_PACKAGE_MEDIAART_BACKEND_GDK_PIXBUF is not set
# BR2_PACKAGE_TI_SGX_AM335X is not set
# BR2_PACKAGE_TI_SGX_AM437X is not set
# BR2_PACKAGE_TI_SGX_AM4430 is not set
# BR2_PACKAGE_TI_SGX_AM5430 is not set
# BR2_PACKAGE_JANUS_AUDIO_BRIDGE is not set
# BR2_PACKAGE_JANUS_ECHO_TEST is not set
# BR2_PACKAGE_JANUS_RECORDPLAY is not set
# BR2_PACKAGE_JANUS_SIP_GATEWAY is not set
# BR2_PACKAGE_JANUS_STREAMING is not set
# BR2_PACKAGE_JANUS_TEXT_ROOM is not set
# BR2_PACKAGE_JANUS_VIDEO_CALL is not set
# BR2_PACKAGE_JANUS_VIDEO_ROOM is not set
# BR2_PACKAGE_JANUS_MQTT is not set
# BR2_PACKAGE_JANUS_RABBITMQ is not set
# BR2_PACKAGE_JANUS_REST is not set
# BR2_PACKAGE_JANUS_UNIX_SOCKETS is not set
# BR2_PACKAGE_JANUS_WEBSOCKETS is not set
# BR2_PACKAGE_IPSEC_SECCTX_DISABLE is not set
# BR2_PACKAGE_IPSEC_SECCTX_ENABLE is not set
# BR2_PACKAGE_IPSEC_SECCTX_KERNEL is not set
# BR2_PACKAGE_LIBTFDI_CPP is not set
# BR2_PACKAGE_JQUERY_UI_THEME_BLACK_TIE is not set
# BR2_PACKAGE_JQUERY_UI_THEME_BLITZER is not set
# BR2_PACKAGE_JQUERY_UI_THEME_CUPERTINO is not set
# BR2_PACKAGE_JQUERY_UI_THEME_DARK_HIVE is not set
# BR2_PACKAGE_JQUERY_UI_THEME_DOT_LUV is not set
# BR2_PACKAGE_JQUERY_UI_THEME_EGGPLANT is not set
# BR2_PACKAGE_JQUERY_UI_THEME_EXCITE_BIKE is not set
# BR2_PACKAGE_JQUERY_UI_THEME_FLICK is not set
# BR2_PACKAGE_JQUERY_UI_THEME_HOT_SNEAKS is not set
# BR2_PACKAGE_JQUERY_UI_THEME_HUMANITY is not set
# BR2_PACKAGE_JQUERY_UI_THEME_LE_FROG is not set
# BR2_PACKAGE_JQUERY_UI_THEME_MINT_CHOC is not set
# BR2_PACKAGE_JQUERY_UI_THEME_OVERCAST is not set
# BR2_PACKAGE_JQUERY_UI_THEME_PEPPER_GRINDER is not set
# BR2_PACKAGE_JQUERY_UI_THEME_REDMOND is not set
# BR2_PACKAGE_JQUERY_UI_THEME_SMOOTHNESS is not set
# BR2_PACKAGE_JQUERY_UI_THEME_SOUTH_STREET is not set
# BR2_PACKAGE_JQUERY_UI_THEME_START is not set
# BR2_PACKAGE_JQUERY_UI_THEME_SUNNY is not set
# BR2_PACKAGE_JQUERY_UI_THEME_SWANKY_PURSE is not set
# BR2_PACKAGE_JQUERY_UI_THEME_TRONTASTIC is not set
# BR2_PACKAGE_JQUERY_UI_THEME_UI_DARKNESS is not set
# BR2_PACKAGE_JQUERY_UI_THEME_UI_LIGHTNESS is not set
# BR2_PACKAGE_JQUERY_UI_THEME_VADER is not set
# BR2_PACKAGE_BLUEZ5_PLUGINS_HEALTH is not set
# BR2_PACKAGE_BLUEZ5_PLUGINS_MIDI is not set
# BR2_PACKAGE_BLUEZ5_PLUGINS_NFC is not set
# BR2_PACKAGE_BLUEZ5_PLUGINS_SAP is not set
# BR2_PACKAGE_BLUEZ5_PLUGINS_SIXAXIS is not set
# BR2_PACKAGE_TRANSMISSION_REMOTE is not set
# BR2_PACKAGE_LIBKCAPI_APPS is not set
# BR2_PACKAGE_MPLAYER is not set
# BR2_PACKAGE_MPLAYER_MPLAYER is not set
# BR2_PACKAGE_MPLAYER_MENCODER is not set
# BR2_PACKAGE_LIBPLAYER_MPLAYER is not set
后来终于找到解决方法了: https://stackoverflow.com/questions/17048072/sdl-2-undefined-reference-to-winmain16-and-several-sdl-functions
#define SDL_MAIN_HANDLED
in your main file, BEFORE the line
#include <SDL2/SDL.h>
17:37:26: 为项目example_viewer执行步骤 ...
17:37:26: 配置没有改变, 跳过 qmake 步骤。
17:37:26: 正在启动 "D:\Qt\Qt5.12.3\Tools\mingw730_32\bin\mingw32-make.exe" -j2
D:/Qt/Qt5.12.3/Tools/mingw730_32/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory 'F:/libvncserver/build-example_viewer-Desktop_Qt_5_12_3_MinGW_32_bit-Debug'
gcc -c -fno-keep-inline-dllexport -g -Wall -W -Wextra -DUNICODE -D_UNICODE -DWIN32 -DMINGW_HAS_SECURE_API=1 -DQT_QML_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../example -I. -I../../libvncserver -I../common -I../libvncserver -I../zlib-1.2.11 -I../sdl/include/SDL2 -ID:/Qt/Qt5.12.3/5.12.3/mingw73_32/include -ID:/Qt/Qt5.12.3/5.12.3/mingw73_32/include/QtGui -ID:/Qt/Qt5.12.3/5.12.3/mingw73_32/include/QtANGLE -ID:/Qt/Qt5.12.3/5.12.3/mingw73_32/include/QtCore -Idebug -ID:/Qt/Qt5.12.3/5.12.3/mingw73_32/mkspecs/win32-g++ -o debug/SDLvncviewer.o ../client_examples/SDLvncviewer.c
../client_examples/SDLvncviewer.c: In function 'kbd_leds':
../client_examples/SDLvncviewer.c:214:33: warning: unused parameter 'cl' [-Wunused-parameter]
static void kbd_leds(rfbClient* cl, int value, int pad) {
^~
../client_examples/SDLvncviewer.c:214:52: warning: unused parameter 'pad' [-Wunused-parameter]
static void kbd_leds(rfbClient* cl, int value, int pad) {
^~~
../client_examples/SDLvncviewer.c: In function 'got_selection':
../client_examples/SDLvncviewer.c:421:38: warning: unused parameter 'cl' [-Wunused-parameter]
static void got_selection(rfbClient *cl, const char *text, int len)
^~
../client_examples/SDLvncviewer.c:421:64: warning: unused parameter 'len' [-Wunused-parameter]
static void got_selection(rfbClient *cl, const char *text, int len)
^~~
../client_examples/SDLvncviewer.c: In function 'get_credential':
../client_examples/SDLvncviewer.c:429:49: warning: unused parameter 'cl' [-Wunused-parameter]
static rfbCredential* get_credential(rfbClient* cl, int credentialType){
^~
g++ -static -Wl,-subsystem,windows -mthreads -o debug/example_viewer.exe @object_script.example_viewer.Debug -lws2_32 -L../sdl/lib -lSDL2 -LD:/Qt/Qt5.12.3/5.12.3/mingw73_32/lib D:/Qt/Qt5.12.3/5.12.3/mingw73_32/lib/libQt5Guid.a D:/Qt/Qt5.12.3/5.12.3/mingw73_32/lib/libQt5Cored.a
d:/Qt/Qt5.12.3/Tools/mingw730_32/bin/../lib/gcc/i686-w64-mingw32/7.3.0/../../../../i686-w64-mingw32/lib/../lib\libmingw32.a(lib32_libmingw32_a-crt0_c.o):crt0_c.c:(.text.startup+0x39): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
mingw32-make[1]: *** [Makefile.Debug:137: debug/example_viewer.exe] Error 1
mingw32-make[1]: Leaving directory 'F:/libvncserver/build-example_viewer-Desktop_Qt_5_12_3_MinGW_32_bit-Debug'
mingw32-make: *** [Makefile:38: debug] Error 2
17:37:37: 进程"D:\Qt\Qt5.12.3\Tools\mingw730_32\bin\mingw32-make.exe"退出,退出代码 2 。
Error while building/deploying project example_viewer (kit: Desktop Qt 5.12.3 MinGW 32-bit)
When executing step "Make"
17:37:38: Elapsed time: 00:11.
Linux下交叉编译Windows版本的SDL View:
wget https://www.libsdl.org/release/SDL2-2.0.10.tar.gz
sudo apt-get install autoconf -y
tar xvf SDL2-2.0.10.tar.gz
cd SDL2-2.0.10/
./autogen.sh
./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32/
checking whether to install sdl2-config... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sdl2-config
config.status: creating sdl2-config.cmake
config.status: creating SDL2.spec
config.status: creating sdl2.pc
config.status: creating include/SDL_config.h
config.status: executing libtool commands
config.status: executing sdl2_config commands
config.status: executing summary commands
SDL2 Configure Summary:
Building Shared Libraries
Building Static Libraries
Enabled modules : atomic audio video render events joystick haptic sensor power filesystem threads timers file loadso cpuinfo assembly
Assembly Math : mmx 3dnow sse
Audio drivers : disk dummy winmm directsound wasapi
Video drivers : dummy opengl opengl_es1 opengl_es2 vulkan d3d9 d3d11
Input drivers :
Using libsamplerate : NO
Using libudev : NO
Using dbus : NO
Using ime : NO
Using ibus : NO
Using fcitx : NO
wget https://github.com/LibVNC/libvncserver/archive/LibVNCServer-0.9.11.tar.gz
tar xvf LibVNCServer-0.9.11.tar.gz
cd LibVNCServer-0.9.11
./autogen.sh
./configure --host=i686-w64-mingw32 --prefix=/usr/i686-w64-mingw32/ --without-tightvnc-filetransfer
make
i686-w64-mingw32-gcc -o SDLvncviewer SDLvncviewer.c -lvncclient -lSDL2 -lws2_32
vnc客户端可以愉快的玩耍了: https://whycan.cn/t_3129.html#p26500
腾讯云服务器跑vnc服务的方法: https://whycan.cn/t_1516.html#p26502
sudo apt-get install -y vnc4server
sudo apt-get install -y xfce4 xfce4-goodies
mkdir -p ~/.vnc/
chmod +x ~/.vnc/xstartup
#!/bin/bash
xrdb $HOME/.Xresources
startxfce4 &
参考: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-18-04
sudo apt-get install libSDL2-dev -y #下载SDL2开发包
git clone https://github.com/LibVNC/libvncserver.git #克隆源码
cd libvncserver/client_examples
gcc -o SDLvncviewer SDLvncviewer.c -lvncserver -lvncclient -I/usr/include/SDL2 -lSDL2 #编译
SDLvncviewer 192.168.1.5 #连接vnc服务器
腾讯云 ubuntu18.04 服务器直接运行会提示两个错误:
root@ubuntu:~# /usr/share/tencent-qq/qq
/usr/share/tencent-qq/qq: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
root@ubuntu:~# /usr/share/tencent-qq/qq
/usr/share/tencent-qq/qq: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory
需要先安装依赖包:
sudo apt-get install libgtk2.0-bin libnss3 -y
wget https://qd.myapp.com/myapp/qqteam/linuxQQ/linuxqq_2.0.0-b1-1024_amd64.deb
sudo dpkg -i linuxqq_2.0.0-b1-1024_amd64.deb
装完后中文字体显示框框
把微软雅黑拷贝到 /usr/share/fonts/winFonts/ 腾讯云服务器, X终端也可以显示QQ登录界面的汉字了。
PCF8563 断电一分钟,然后接上电源, 重启, 发现还是一样的错误。
但是 hwclock -w 运行 OK
reboot 之后:
# dmesg |grep rtc
[ 0.767704] rtc rtc0: invalid alarm value: 1970-1-11 39:0:0
[ 0.768092] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 0.816290] rtc-pcf8563 0-0051: setting system clock to 1970-01-01 00:25:47 UTC (1547)
#
#
# date
Thu Jan 1 00:27:03 UTC 1970
现在正常了。
https://forums.xilinx.com/t5/Embedded-Linux/RTC-retrieved-date-time-is-not-valid/td-p/266324
可是这是什么原因造成的呢?
This warning message occurs when the VL flag in the RTC's SECONDS register is set. This flag gets set when VDD falls below a certain threshold (like low battery). It stays set until cleared by writing a zero to bit 7 of the SECONDS register (offset 0x02).
dmesg | grep rtc 打印什么出来?
reboot一下,是否能读到,不要断电
# dmesg |grep rtc
[ 0.765311] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 0.765647] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 0.814268] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 0.814307] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[ 2.166936] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
reboot 之后也是这个错误, 我的是 pcf8563, 电压我看了也没问题, 3.0v
[ 0.814189] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[ 0.814228] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock我的也出现这种问题了。
突然发错回错一个帖子了: https://whycan.cn/t_686.html#p25771
https://bookstack.cn/read/AWTK/docs-framebuffer.md
三个framebuffer,一个online供LCD显示,一个offline供GUI绘制,一个为下一个要显示的framebuffer。
https://github.com/zlgopen/awtk/blob/master/docs/vs_debug.md
在Visual Studio中调试AWTK
scons编译时并没有生成Visual Studio的工程,如果需要个在Visual Studio中调试AWTK应用程序,可按下列步骤进行:1.打开Visual Studio。
2.在『文件』菜单中点击『打开』并选中『项目』。
3.选择awtk\bin\demoui.exe (或者其它要调试的可执行文件)。
4.在项目设置中设置调试参数(可选)。
5.进行调试。
参考: How to: Debug an Executable Not Part of a Visual Studio Solution
#sudo ./demoui
app_root_is_valid:43 app_root != NULL
try /opt/awtk-ubuntu/awtk-linux-fb/release/bin
app_root=/opt/awtk-ubuntu/awtk-linux-fb/release
fb_info_t: /dev/fb0
fb_info_t: xres=800 yres=600 bits_per_pixel=32 mem_size=1920000
fb_info_t: red(16 8) green(8 8) blue(0 8)
line_length=3200 mem_size=1920000 smem_len=15728640
xres_virtual =2048 yres_virtual=1920 xpanstep=1 ywrapstep=0
main_loop_init:72 lcd != NULL
tk_init:210 loop != NULL
Build at: Oct 16 2019 11:05:29
main_loop_run:28 l != NULL && l->run != NULL
main_loop_destroy:57 l != NULL && l->destroy != NULL
object_unref:74 obj != NULL && obj->vt != NULL && obj->ref_count > 0
#
#
奇怪, 我的 ubuntu 14.04 跑不了,回去也用 18.04 试一试吧。
root@whycan-MacBookAir:/opt/rootfs# debootstrap --foreign --verbose --arch=armhf stretch rootfs http://ftp2.cn.debian.org/debian
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional required dependencies: libaudit-common libaudit1 libbz2-1.0 libcap-ng0 libdb5.3 libdebconfclient0 libgcrypt20 libgpg-error0 liblz4-1 libncursesw5 libsemanage-common libsemanage1 libsystemd0 libudev1 libustr-1.0-1
I: Found additional base dependencies: dmsetup gnupg-agent libapparmor1 libassuan0 libbsd0 libcap2 libcryptsetup4 libdevmapper1.02.1 libdns-export162 libelf1 libfastjson4 libffi6 libgmp10 libgnutls30 libhogweed4 libidn11 libidn2-0 libip4tc0 libip6tc0 libiptc0 libisc-export160 libksba8 liblocale-gettext-perl liblognorm5 libmnl0 libncurses5 libnetfilter-conntrack3 libnettle6 libnfnetlink0 libnpth0 libp11-kit0 libpsl5 libseccomp2 libsqlite3-0 libtasn1-6 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libunistring0 libxtables12 pinentry-curses xxd
I: Checking component main on http://ftp2.cn.debian.org/debian...
I: Retrieving libacl1 2.2.52-3+b1
I: Validating libacl1 2.2.52-3+b1
I: Retrieving adduser 3.115
I: Validating adduser 3.115
I: Retrieving libapparmor1 2.11.0-3+deb9u2
I: Validating libapparmor1 2.11.0-3+deb9u2
I: Retrieving apt 1.4.9
I: Validating apt 1.4.9
I: Retrieving apt-utils 1.4.9
I: Validating apt-utils 1.4.9
I: Retrieving libapt-inst2.0 1.4.9
I: Validating libapt-inst2.0 1.4.9
I: Retrieving libapt-pkg5.0 1.4.9
I: Validating libapt-pkg5.0 1.4.9
I: Retrieving libattr1 1:2.4.47-2+b2
I: Validating libattr1 1:2.4.47-2+b2
I: Retrieving libaudit-common 1:2.6.7-2
I: Validating libaudit-common 1:2.6.7-2
I: Retrieving libaudit1 1:2.6.7-2
I: Validating libaudit1 1:2.6.7-2
I: Retrieving base-files 9.9+deb9u11
I: Validating base-files 9.9+deb9u11
I: Retrieving base-passwd 3.5.43
I: Validating base-passwd 3.5.43
I: Retrieving bash 4.4-5
I: Validating bash 4.4-5
I: Retrieving libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Validating libdns-export162 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Retrieving libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Validating libisc-export160 1:9.10.3.dfsg.P4-12.3+deb9u5
I: Retrieving bsdmainutils 9.0.12+nmu1
I: Validating bsdmainutils 9.0.12+nmu1
I: Retrieving libbz2-1.0 1.0.6-8.1
I: Validating libbz2-1.0 1.0.6-8.1
I: Retrieving libdebconfclient0 0.227
I: Validating libdebconfclient0 0.227
I: Retrieving coreutils 8.26-3
I: Validating coreutils 8.26-3
I: Retrieving cpio 2.11+dfsg-6
I: Validating cpio 2.11+dfsg-6
I: Retrieving cron 3.0pl1-128+deb9u1
I: Validating cron 3.0pl1-128+deb9u1
I: Retrieving libcryptsetup4 2:1.7.3-4
I: Validating libcryptsetup4 2:1.7.3-4
I: Retrieving dash 0.5.8-2.4
I: Validating dash 0.5.8-2.4
I: Retrieving libdb5.3 5.3.28-12+deb9u1
I: Validating libdb5.3 5.3.28-12+deb9u1
I: Retrieving debconf 1.5.61
I: Validating debconf 1.5.61
I: Retrieving debconf-i18n 1.5.61
I: Validating debconf-i18n 1.5.61
I: Retrieving debian-archive-keyring 2017.5+deb9u1
I: Validating debian-archive-keyring 2017.5+deb9u1
I: Retrieving debianutils 4.8.1.1
I: Validating debianutils 4.8.1.1
I: Retrieving diffutils 1:3.5-3
I: Validating diffutils 1:3.5-3
I: Retrieving dmidecode 3.0-4
I: Validating dmidecode 3.0-4
I: Retrieving dpkg 1.18.25
I: Validating dpkg 1.18.25
I: Retrieving e2fslibs 1.43.4-2
I: Validating e2fslibs 1.43.4-2
I: Retrieving e2fsprogs 1.43.4-2
I: Validating e2fsprogs 1.43.4-2
I: Retrieving libcomerr2 1.43.4-2
I: Validating libcomerr2 1.43.4-2
I: Retrieving libss2 1.43.4-2
I: Validating libss2 1.43.4-2
I: Retrieving libelf1 0.168-1
I: Validating libelf1 0.168-1
I: Retrieving findutils 4.6.0+git+20161106-2
I: Validating findutils 4.6.0+git+20161106-2
I: Retrieving gcc-6-base 6.3.0-18+deb9u1
I: Validating gcc-6-base 6.3.0-18+deb9u1
I: Retrieving libgcc1 1:6.3.0-18+deb9u1
I: Validating libgcc1 1:6.3.0-18+deb9u1
I: Retrieving libstdc++6 6.3.0-18+deb9u1
I: Validating libstdc++6 6.3.0-18+deb9u1
I: Retrieving libgdbm3 1.8.3-14
I: Validating libgdbm3 1.8.3-14
I: Retrieving libc-bin 2.24-11+deb9u4
I: Validating libc-bin 2.24-11+deb9u4
I: Retrieving libc6 2.24-11+deb9u4
I: Validating libc6 2.24-11+deb9u4
I: Retrieving multiarch-support 2.24-11+deb9u4
I: Validating multiarch-support 2.24-11+deb9u4
I: Retrieving libgmp10 2:6.1.2+dfsg-1
I: Validating libgmp10 2:6.1.2+dfsg-1
I: Retrieving gnupg 2.1.18-8~deb9u4
I: Validating gnupg 2.1.18-8~deb9u4
I: Retrieving gnupg-agent 2.1.18-8~deb9u4
I: Validating gnupg-agent 2.1.18-8~deb9u4
I: Retrieving gpgv 2.1.18-8~deb9u4
I: Validating gpgv 2.1.18-8~deb9u4
I: Retrieving libgnutls30 3.5.8-5+deb9u4
I: Validating libgnutls30 3.5.8-5+deb9u4
I: Retrieving grep 2.27-2
I: Validating grep 2.27-2
I: Retrieving gzip 1.6-5+b1
I: Validating gzip 1.6-5+b1
I: Retrieving hostname 3.18+b1
I: Validating hostname 3.18+b1
I: Retrieving ifupdown 0.8.19
I: Validating ifupdown 0.8.19
I: Retrieving init 1.48
I: Validating init 1.48
I: Retrieving init-system-helpers 1.48
I: Validating init-system-helpers 1.48
I: Retrieving iproute2 4.9.0-1+deb9u1
I: Validating iproute2 4.9.0-1+deb9u1
I: Retrieving iptables 1.6.0+snapshot20161117-6
I: Validating iptables 1.6.0+snapshot20161117-6
I: Retrieving libip4tc0 1.6.0+snapshot20161117-6
I: Validating libip4tc0 1.6.0+snapshot20161117-6
I: Retrieving libip6tc0 1.6.0+snapshot20161117-6
I: Validating libip6tc0 1.6.0+snapshot20161117-6
I: Retrieving libiptc0 1.6.0+snapshot20161117-6
I: Validating libiptc0 1.6.0+snapshot20161117-6
I: Retrieving libxtables12 1.6.0+snapshot20161117-6
I: Validating libxtables12 1.6.0+snapshot20161117-6
I: Retrieving iputils-ping 3:20161105-1
I: Validating iputils-ping 3:20161105-1
I: Retrieving isc-dhcp-client 4.3.5-3+deb9u1
I: Validating isc-dhcp-client 4.3.5-3+deb9u1
I: Retrieving isc-dhcp-common 4.3.5-3+deb9u1
I: Validating isc-dhcp-common 4.3.5-3+deb9u1
I: Retrieving kmod 23-2
I: Validating kmod 23-2
I: Retrieving libkmod2 23-2
I: Validating libkmod2 23-2
I: Retrieving libassuan0 2.4.3-2
I: Validating libassuan0 2.4.3-2
I: Retrieving libbsd0 0.8.3-1
I: Validating libbsd0 0.8.3-1
I: Retrieving libcap-ng0 0.7.7-3+b1
I: Validating libcap-ng0 0.7.7-3+b1
I: Retrieving libcap2 1:2.25-1
I: Validating libcap2 1:2.25-1
I: Retrieving libestr0 0.1.10-2
I: Validating libestr0 0.1.10-2
I: Retrieving libfastjson4 0.99.4-1
I: Validating libfastjson4 0.99.4-1
I: Retrieving libffi6 3.2.1-6
I: Validating libffi6 3.2.1-6
I: Retrieving libgcrypt20 1.7.6-2+deb9u3
I: Validating libgcrypt20 1.7.6-2+deb9u3
I: Retrieving libgpg-error0 1.26-2
I: Validating libgpg-error0 1.26-2
I: Retrieving libidn11 1.33-1
I: Validating libidn11 1.33-1
I: Retrieving libidn2-0 0.16-1+deb9u1
I: Validating libidn2-0 0.16-1+deb9u1
I: Retrieving libksba8 1.3.5-2
I: Validating libksba8 1.3.5-2
I: Retrieving liblocale-gettext-perl 1.07-3+b1
I: Validating liblocale-gettext-perl 1.07-3+b1
I: Retrieving liblogging-stdlog0 1.0.5-2+b2
I: Validating liblogging-stdlog0 1.0.5-2+b2
I: Retrieving liblognorm5 2.0.1-1.1+b1
I: Validating liblognorm5 2.0.1-1.1+b1
I: Retrieving libmnl0 1.0.4-2
I: Validating libmnl0 1.0.4-2
I: Retrieving libnetfilter-conntrack3 1.0.6-2
I: Validating libnetfilter-conntrack3 1.0.6-2
I: Retrieving libnfnetlink0 1.0.1-3
I: Validating libnfnetlink0 1.0.1-3
I: Retrieving libpipeline1 1.4.1-2
I: Validating libpipeline1 1.4.1-2
I: Retrieving libpsl5 0.17.0-3
I: Validating libpsl5 0.17.0-3
I: Retrieving libseccomp2 2.3.1-2.1+deb9u1
I: Validating libseccomp2 2.3.1-2.1+deb9u1
I: Retrieving libselinux1 2.6-3+b3
I: Validating libselinux1 2.6-3+b3
I: Retrieving libsemanage-common 2.6-2
I: Validating libsemanage-common 2.6-2
I: Retrieving libsemanage1 2.6-2
I: Validating libsemanage1 2.6-2
I: Retrieving libsepol1 2.6-2
I: Validating libsepol1 2.6-2
I: Retrieving libtasn1-6 4.10-1.1+deb9u1
I: Validating libtasn1-6 4.10-1.1+deb9u1
I: Retrieving libtext-charwidth-perl 0.04-7+b6
I: Validating libtext-charwidth-perl 0.04-7+b6
I: Retrieving libtext-iconv-perl 1.7-5+b4
I: Validating libtext-iconv-perl 1.7-5+b4
I: Retrieving libtext-wrapi18n-perl 0.06-7.1
I: Validating libtext-wrapi18n-perl 0.06-7.1
I: Retrieving libunistring0 0.9.6+really0.9.3-0.1
I: Validating libunistring0 0.9.6+really0.9.3-0.1
I: Retrieving logrotate 3.11.0-0.1
I: Validating logrotate 3.11.0-0.1
I: Retrieving lsb-base 9.20161125
I: Validating lsb-base 9.20161125
I: Retrieving dmsetup 2:1.02.137-2
I: Validating dmsetup 2:1.02.137-2
I: Retrieving libdevmapper1.02.1 2:1.02.137-2
I: Validating libdevmapper1.02.1 2:1.02.137-2
I: Retrieving liblz4-1 0.0~r131-2+b1
I: Validating liblz4-1 0.0~r131-2+b1
I: Retrieving mawk 1.3.3-17+b3
I: Validating mawk 1.3.3-17+b3
I: Retrieving nano 2.7.4-1
I: Validating nano 2.7.4-1
I: Retrieving libncurses5 6.0+20161126-1+deb9u2
I: Validating libncurses5 6.0+20161126-1+deb9u2
I: Retrieving libncursesw5 6.0+20161126-1+deb9u2
I: Validating libncursesw5 6.0+20161126-1+deb9u2
I: Retrieving libtinfo5 6.0+20161126-1+deb9u2
I: Validating libtinfo5 6.0+20161126-1+deb9u2
I: Retrieving ncurses-base 6.0+20161126-1+deb9u2
I: Validating ncurses-base 6.0+20161126-1+deb9u2
I: Retrieving ncurses-bin 6.0+20161126-1+deb9u2
I: Validating ncurses-bin 6.0+20161126-1+deb9u2
I: Retrieving netbase 5.4
I: Validating netbase 5.4
I: Retrieving libhogweed4 3.3-1+b2
I: Validating libhogweed4 3.3-1+b2
I: Retrieving libnettle6 3.3-1+b2
I: Validating libnettle6 3.3-1+b2
I: Retrieving libnewt0.52 0.52.19-1+b1
I: Validating libnewt0.52 0.52.19-1+b1
I: Retrieving whiptail 0.52.19-1+b1
I: Validating whiptail 0.52.19-1+b1
I: Retrieving libnpth0 1.3-1
I: Validating libnpth0 1.3-1
I: Retrieving libssl1.1 1.1.0k-1~deb9u1
I: Validating libssl1.1 1.1.0k-1~deb9u1
I: Retrieving libssl1.0.2 1.0.2s-1~deb9u1
I: Validating libssl1.0.2 1.0.2s-1~deb9u1
I: Retrieving libp11-kit0 0.23.3-2
I: Validating libp11-kit0 0.23.3-2
I: Retrieving libpam-modules 1.1.8-3.6
I: Validating libpam-modules 1.1.8-3.6
I: Retrieving libpam-modules-bin 1.1.8-3.6
I: Validating libpam-modules-bin 1.1.8-3.6
I: Retrieving libpam-runtime 1.1.8-3.6
I: Validating libpam-runtime 1.1.8-3.6
I: Retrieving libpam0g 1.1.8-3.6
I: Validating libpam0g 1.1.8-3.6
I: Retrieving libpcre3 2:8.39-3
I: Validating libpcre3 2:8.39-3
I: Retrieving perl-base 5.24.1-3+deb9u5
I: Validating perl-base 5.24.1-3+deb9u5
I: Retrieving pinentry-curses 1.0.0-2
I: Validating pinentry-curses 1.0.0-2
I: Retrieving libpopt0 1.16-10+b2
I: Validating libpopt0 1.16-10+b2
I: Retrieving libprocps6 2:3.3.12-3+deb9u1
I: Validating libprocps6 2:3.3.12-3+deb9u1
I: Retrieving procps 2:3.3.12-3+deb9u1
I: Validating procps 2:3.3.12-3+deb9u1
I: Retrieving libreadline7 7.0-3
I: Validating libreadline7 7.0-3
I: Retrieving readline-common 7.0-3
I: Validating readline-common 7.0-3
I: Retrieving rsyslog 8.24.0-1
I: Validating rsyslog 8.24.0-1
I: Retrieving sed 4.4-1
I: Validating sed 4.4-1
I: Retrieving sensible-utils 0.0.9+deb9u1
I: Validating sensible-utils 0.0.9+deb9u1
I: Retrieving login 1:4.4-4.1
I: Validating login 1:4.4-4.1
I: Retrieving passwd 1:4.4-4.1
I: Validating passwd 1:4.4-4.1
I: Retrieving libslang2 2.3.1-5
I: Validating libslang2 2.3.1-5
I: Retrieving libsqlite3-0 3.16.2-5+deb9u1
I: Validating libsqlite3-0 3.16.2-5+deb9u1
I: Retrieving libsystemd0 232-25+deb9u12
I: Validating libsystemd0 232-25+deb9u12
I: Retrieving libudev1 232-25+deb9u12
I: Validating libudev1 232-25+deb9u12
I: Retrieving systemd 232-25+deb9u12
I: Validating systemd 232-25+deb9u12
I: Retrieving systemd-sysv 232-25+deb9u12
I: Validating systemd-sysv 232-25+deb9u12
I: Retrieving udev 232-25+deb9u12
I: Validating udev 232-25+deb9u12
I: Retrieving sysvinit-utils 2.88dsf-59.9
I: Validating sysvinit-utils 2.88dsf-59.9
I: Retrieving tar 1.29b-1.1
I: Validating tar 1.29b-1.1
I: Retrieving tasksel 3.39
I: Validating tasksel 3.39
I: Retrieving tasksel-data 3.39
I: Validating tasksel-data 3.39
I: Retrieving tzdata 2019b-0+deb9u1
I: Validating tzdata 2019b-0+deb9u1
I: Retrieving libustr-1.0-1 1.0.4-6
I: Validating libustr-1.0-1 1.0.4-6
I: Retrieving bsdutils 1:2.29.2-1+deb9u1
I: Validating bsdutils 1:2.29.2-1+deb9u1
I: Retrieving libblkid1 2.29.2-1+deb9u1
I: Validating libblkid1 2.29.2-1+deb9u1
I: Retrieving libfdisk1 2.29.2-1+deb9u1
I: Validating libfdisk1 2.29.2-1+deb9u1
I: Retrieving libmount1 2.29.2-1+deb9u1
I: Validating libmount1 2.29.2-1+deb9u1
I: Retrieving libsmartcols1 2.29.2-1+deb9u1
I: Validating libsmartcols1 2.29.2-1+deb9u1
I: Retrieving libuuid1 2.29.2-1+deb9u1
I: Validating libuuid1 2.29.2-1+deb9u1
I: Retrieving mount 2.29.2-1+deb9u1
I: Validating mount 2.29.2-1+deb9u1
I: Retrieving util-linux 2.29.2-1+deb9u1
I: Validating util-linux 2.29.2-1+deb9u1
I: Retrieving vim-common 2:8.0.0197-4+deb9u3
I: Validating vim-common 2:8.0.0197-4+deb9u3
I: Retrieving vim-tiny 2:8.0.0197-4+deb9u3
I: Validating vim-tiny 2:8.0.0197-4+deb9u3
I: Retrieving xxd 2:8.0.0197-4+deb9u3
I: Validating xxd 2:8.0.0197-4+deb9u3
I: Retrieving wget 1.18-5+deb9u3
I: Validating wget 1.18-5+deb9u3
I: Retrieving libxapian30 1.4.3-2+deb9u3
I: Validating libxapian30 1.4.3-2+deb9u3
I: Retrieving liblzma5 5.2.2-1.2+b1
I: Validating liblzma5 5.2.2-1.2+b1
I: Retrieving zlib1g 1:1.2.8.dfsg-5
I: Validating zlib1g 1:1.2.8.dfsg-5
I: Chosen extractor for .deb packages: dpkg-deb
I: Extracting libacl1...
I: Extracting libattr1...
I: Extracting libaudit-common...
I: Extracting libaudit1...
I: Extracting base-files...
I: Extracting base-passwd...
I: Extracting bash...
I: Extracting libbz2-1.0...
I: Extracting libdebconfclient0...
I: Extracting coreutils...
I: Extracting dash...
I: Extracting libdb5.3...
I: Extracting debconf...
I: Extracting debianutils...
I: Extracting diffutils...
I: Extracting dpkg...
I: Extracting e2fslibs...
I: Extracting e2fsprogs...
I: Extracting libcomerr2...
I: Extracting libss2...
I: Extracting findutils...
I: Extracting gcc-6-base...
I: Extracting libgcc1...
I: Extracting libc-bin...
I: Extracting libc6...
I: Extracting multiarch-support...
I: Extracting grep...
I: Extracting gzip...
I: Extracting hostname...
I: Extracting init-system-helpers...
I: Extracting libcap-ng0...
I: Extracting libgcrypt20...
I: Extracting libgpg-error0...
I: Extracting libselinux1...
I: Extracting libsemanage-common...
I: Extracting libsemanage1...
I: Extracting libsepol1...
I: Extracting lsb-base...
I: Extracting liblz4-1...
I: Extracting mawk...
I: Extracting libncursesw5...
I: Extracting libtinfo5...
I: Extracting ncurses-base...
I: Extracting ncurses-bin...
I: Extracting libpam-modules...
I: Extracting libpam-modules-bin...
I: Extracting libpam-runtime...
I: Extracting libpam0g...
I: Extracting libpcre3...
I: Extracting perl-base...
I: Extracting sed...
I: Extracting sensible-utils...
I: Extracting login...
I: Extracting passwd...
I: Extracting libsystemd0...
I: Extracting libudev1...
I: Extracting sysvinit-utils...
I: Extracting tar...
I: Extracting tzdata...
I: Extracting libustr-1.0-1...
I: Extracting bsdutils...
I: Extracting libblkid1...
I: Extracting libfdisk1...
I: Extracting libmount1...
I: Extracting libsmartcols1...
I: Extracting libuuid1...
I: Extracting mount...
I: Extracting util-linux...
I: Extracting liblzma5...
I: Extracting zlib1g...
安装的包挺全的。
https://getbootstrap.com/docs/4.3/examples/floating-labels/
找到一个bootstrap 类似效果的 demo
https://developers.google.com/recaptcha/docs/v3
https://developers.google.com/recaptcha/docs/verify
谷歌这个 reCAPTCHA 还提供给第三方,开放式的。
这篇文章说得比较透彻: 与恼人的验证码说拜拜,Google用一次点击区分人与机器
Google没有采用传统的失真单词验证码方式,他们的reCaptcha功能会在“不经意间”收集大量信息,包括IP地址和cookies,然后通过收集这些数据看对方是否和过去在互联网上的行为一致,来判定这个用户究竟是不是机器人。Shet表示,即便是鼠标在复选框上轻微的移动,都可以让Google判断出对方是否是一个自动机器人。
“Google创建了一个人类行为模型,”Shet说道,“很多线索都会用于判断对方是否是一个机器人。”他补充称,Google还会使用其他变量,但是目前这些变量不能对外透露,因为一旦透露出去,就会被那些机器人高手利用,优化自己的软件来对抗Google。