今天遇到一个奇怪的问题,我32M SPI Flash上刷入的系统,在串口终端下输入reboot重启系统,结果系统会反复重启,重启若干次以后(次数不一定)最后进入到系统。进入到系统后,貌似正常运行。
启动日志:
[ 1.471784] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.483289] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.489140] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.498612] hub 3-0:1.0: USB hub found
[ 1.502524] hub 3-0:1.0: 1 port detected
[ 1.507903] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T19:25:12 UTC (69912)
[ 1.516544] vcc3v0: disabling
[ 1.519587] vcc5v0: disabling
[ 1.522556] ALSA device list:
[ 1.525520] No soundcards found.
[ 1.531353] random: fast init done
[ 1.575947] random: crng init done
[ 1.978432] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 2.191968] hub 1-1:1.0: USB hub found
[ 2.196112] hub 1-1:1.0: 4 ports detected
[ 2.618933] usb 1-1.1: new full-speed USB device number 3 using ehci-platform
[ 2.889517] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
[ 3.098792] usb 1-1.3: new high-speed USB device number 4 using ehci-platform
[ 3.364986] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 3.379465] scsi host0: usb-storage 1-1.3:1.0
[ 4.410958] scsi 0:0:0:0: Direct-Access USB SG Flash 1.00 PQ: 0 ANSI: 6
[ 4.423302] sd 0:0:0:0: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
[ 4.436926] sd 0:0:0:0: [sda] Write Protect is off
[ 4.447657] sd 0:0:0:0: [sda] No Caching mode page found
[ 4.453108] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 4.478072] sda: sda1
[ 4.489290] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 4.920960] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 4.928814] devtmpfs: mounted
U-Boot SPL 2017.01-rc2-00073-gdd6e8740dc-dirty (Apr 22 2020 - 09:13:27)
DRAM: 64 MiB
Trying to boot from sunxi SPI
U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Apr 22 2020 - 09:13:27 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00073-gdd6e8740dc-dirty (Apr 22 2020 - 09:13:27 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment
Setting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
SF: Detected mx25l25635f with page size 256 Bytes, erase size 64 KiB, total 32 MiB
device 0 offset 0x80000, size 0x4000
SF: 16384 bytes @ 0x80000 Read: OK
device 0 offset 0x90000, size 0x470000
SF: 4653056 bytes @ 0x90000 Read: OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42dfa000, end 42dffd80 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.2.0-licheepi-zero+ (xlee@ubuntu) (gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu1)) #16 SMP Sun Aug 2 12:45:11 CST 2020
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 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: Lichee Pi Zero
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu s34508 r8192 d22836 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 15883
[ 0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi0.0:512k(uboot),64k(dtb)ro,4544k(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2 init=/linuxrc vt.global_cur
sor_default=0
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 52512K/64036K available (7168K kernel code, 311K rwdata, 1820K rodata, 1024K init, 253K bss, 11524K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 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] random: get_random_bytes called from start_kernel+0x2f8/0x494 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (virt).
[ 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.000019] Switching to timer-based delay loop, resolution 41ns
[ 0.000206] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000441] Console: colour dummy device 80x30
[ 0.000499] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000514] pid_max: default: 32768 minimum: 301
[ 0.000681] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000694] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001497] CPU: Testing write buffer coherency: ok
[ 0.002023] /cpus/cpu@0 missing clock-frequency property
[ 0.002050] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002825] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003035] rcu: Hierarchical SRCU implementation.
[ 0.003558] smp: Bringing up secondary CPUs ...
[ 0.003581] smp: Brought up 1 node, 1 CPU
[ 0.003590] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003597] CPU: All CPU(s) started in SVC mode.
[ 0.004680] devtmpfs: initialized
[ 0.008215] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.008513] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.008544] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.008807] pinctrl core: initialized pinctrl subsystem
[ 0.009857] NET: Registered protocol family 16
[ 0.010547] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.011867] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.011886] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.036084] SCSI subsystem initialized
[ 0.036379] usbcore: registered new interface driver usbfs
[ 0.036435] usbcore: registered new interface driver hub
[ 0.036538] usbcore: registered new device driver usb
[ 0.036743] mc: Linux media interface: v0.10
[ 0.036788] videodev: Linux video capture interface: v2.00
[ 0.037031] Advanced Linux Sound Architecture Driver Initialized.
[ 0.038386] clocksource: Switched to clocksource arch_sys_counter
[ 0.050993] NET: Registered protocol family 2
[ 0.051807] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.051847] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.051870] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.051892] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.052040] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.052089] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.052392] NET: Registered protocol family 1
[ 0.054358] Initialise system trusted keyrings
[ 0.054752] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.061979] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.062329] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.098138] Key type asymmetric registered
[ 0.098163] Asymmetric key parser 'x509' registered
[ 0.098283] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.098297] io scheduler mq-deadline registered
[ 0.098304] io scheduler kyber registered
[ 0.099433] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.103240] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.172045] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.174478] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.175605] printk: console [ttyS0] disabled
[ 0.195919] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[ 0.722612] printk: console [ttyS0] enabled
[ 0.727415] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[ 0.758850] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 34, base_baud = 1500000) is a U6_16550A
[ 0.789739] 1c28800.serial: ttyS2 at MMIO 0x1c28800 (irq = 35, base_baud = 1500000) is a U6_16550A
[ 0.825470] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pc not found, using dummy regulator
[ 0.837276] m25p80 spi0.0: mx25l25635e (32768 Kbytes)
[ 0.842435] 4 cmdlinepart partitions found on MTD device spi0.0
[ 0.848373] Creating 4 MTD partitions on "spi0.0":
[ 0.853170] 0x000000000000-0x000000080000 : "uboot"
[ 0.860016] 0x000000080000-0x000000090000 : "dtb"
[ 0.866530] 0x000000090000-0x000000500000 : "kernel"
[ 0.873399] 0x000000500000-0x000002000000 : "rootfs"
[ 0.880923] libphy: Fixed MDIO Bus: probed
[ 0.885628] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[ 0.891537] dwmac-sun8i 1c30000.ethernet: No regulator found
[ 0.897760] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 38000 (expect 58000)
[ 0.907164] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[ 0.914406] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[ 0.921638] dwmac-sun8i 1c30000.ethernet: COE Type 2
[ 0.926598] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[ 0.933390] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[ 0.939054] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[ 0.944957] libphy: stmmac: probed
[ 0.949197] dwmac-sun8i 1c30000.ethernet: Found internal PHY node
[ 0.955483] libphy: mdio_mux: probed
[ 0.959177] dwmac-sun8i 1c30000.ethernet: Switch mux to internal PHY
[ 0.965533] dwmac-sun8i 1c30000.ethernet: Powering internal PHY
[ 0.972714] libphy: mdio_mux: probed
[ 0.976647] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.983291] ehci-platform: EHCI generic platform driver
[ 0.988839] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.994481] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 1.002474] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[ 1.038389] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 1.045599] hub 1-0:1.0: USB hub found
[ 1.049568] hub 1-0:1.0: 1 port detected
[ 1.054185] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.060518] ohci-platform: OHCI generic platform driver
[ 1.066090] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 1.072823] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 1.080812] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[ 1.153509] hub 2-0:1.0: USB hub found
[ 1.157371] hub 2-0:1.0: 1 port detected
[ 1.164675] usbcore: registered new interface driver cdc_acm
[ 1.170452] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 1.178599] usbcore: registered new interface driver usb-storage
[ 1.184718] usbcore: registered new interface driver usbserial_generic
[ 1.191345] usbserial: USB Serial support registered for generic
[ 1.197384] usbcore: registered new interface driver ch341
[ 1.202958] usbserial: USB Serial support registered for ch341-uart
[ 1.209309] usbcore: registered new interface driver usb_serial_simple
[ 1.215856] usbserial: USB Serial support registered for carelink
[ 1.222000] usbserial: USB Serial support registered for zio
[ 1.227676] usbserial: USB Serial support registered for funsoft
[ 1.233721] usbserial: USB Serial support registered for flashloader
[ 1.240109] usbserial: USB Serial support registered for google
[ 1.246045] usbserial: USB Serial support registered for libtransistor
[ 1.252622] usbserial: USB Serial support registered for vivopay
[ 1.258664] usbserial: USB Serial support registered for moto_modem
[ 1.264946] usbserial: USB Serial support registered for motorola_tetra
[ 1.271618] usbserial: USB Serial support registered for novatel_gps
[ 1.277988] usbserial: USB Serial support registered for hp4x
[ 1.283770] usbserial: USB Serial support registered for suunto
[ 1.289722] usbserial: USB Serial support registered for siemens_mpi
[ 1.298082] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.303260] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.307929] i2c /dev entries driver
[ 1.312936] input: ns2009_ts as /devices/platform/soc/1c2ac00.i2c/i2c-0/0-0048/input/input0
[ 1.322691] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.331400] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.367896] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.375461] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.386877] usbcore: registered new interface driver usbhid
[ 1.392548] usbhid: USB HID core driver
[ 1.398851] Initializing XFRM netlink socket
[ 1.403168] NET: Registered protocol family 17
[ 1.408231] Registering SWP/SWPB emulation handler
[ 1.414298] Loading compiled-in X.509 certificates
[ 1.424375] simple-framebuffer 43e89000.framebuffer: framebuffer at 0x43e89000, 0x177000 bytes, mapped to 0x(ptrval)
[ 1.435028] simple-framebuffer 43e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[ 1.450906] Console: switching to colour frame buffer device 100x30
[ 1.462995] simple-framebuffer 43e89000.framebuffer: fb0: simplefb registered!
[ 1.471873] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.483384] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.489241] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[ 1.498743] hub 3-0:1.0: USB hub found
[ 1.502626] hub 3-0:1.0: 1 port detected
[ 1.507991] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T19:25:22 UTC (69922)
[ 1.516624] vcc3v0: disabling
[ 1.519671] vcc5v0: disabling
[ 1.522642] ALSA device list:
[ 1.525607] No soundcards found.
[ 1.531464] random: fast init done
[ 1.576059] random: crng init done
[ 1.978976] usb 1-1: new high-speed USB device number 2 using ehci-platform
[ 2.191870] hub 1-1:1.0: USB hub found
[ 2.198210] hub 1-1:1.0: 4 ports detected
[ 2.628983] usb 1-1.1: new full-speed USB device number 3 using ehci-platform
[ 2.899513] cdc_acm 1-1.1:1.0: ttyACM0: USB ACM device
[ 3.108818] usb 1-1.3: new high-speed USB device number 4 using ehci-platform
[ 3.374599] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[ 3.387379] scsi host0: usb-storage 1-1.3:1.0
[ 4.411310] scsi 0:0:0:0: Direct-Access USB SG Flash 1.00 PQ: 0 ANSI: 6
[ 4.422302] sd 0:0:0:0: [sda] 62914560 512-byte logical blocks: (32.2 GB/30.0 GiB)
[ 4.435889] sd 0:0:0:0: [sda] Write Protect is off
[ 4.448119] sd 0:0:0:0: [sda] No Caching mode page found
[ 4.453546] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 4.476976] sda: sda1
[ 4.488158] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 4.920343] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 4.928088] devtmpfs: mounted
[ 4.932613] Freeing unused kernel memory: 1024K
[ 4.937313] Run /linuxrc as init process
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Populating /dev using udev: [ 6.000578] udevd[111]: starting version 3.2.9
[ 6.930564] udevd[112]: starting eudev-3.2.9
[ 9.848390] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 9.854945] input input0: Poll touch data failed: -110
done
Initializing random number generator: OK
Saving random seed: OK
Starting network: [ 10.047364] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY]
[ 10.056360] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 10.063781] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 10.071460] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 10.077990] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
[ 10.089548] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
OK
Starting dropbear sshd: OK
[ 10.755898] FAT-fs (sda1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
modify ip address
Stopping network: [ 10.871990] dwmac-sun8i 1c30000.ethernet eth0: Link is Down
OK
Starting network: [ 10.990080] dwmac-sun8i 1c30000.ethernet eth0: PHY [0.1:01] driver [Generic PHY]
[ 10.999058] dwmac-sun8i 1c30000.ethernet eth0: No Safety Features support found
[ 11.006381] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 11.014079] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 11.020631] dwmac-sun8i 1c30000.ethernet eth0: configuring for phy/mii link mode
OK
Welcome to Buildroot for the LicheePi Zero
licheepi-zero login:
从启动信息看,好像没有看出哪里出错了,请教一下这是什么问题?
离线
看不出来. 硬件有没有问题?
离线
<code>
[ 4.478072] sda: sda1
[ 4.489290] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 4.920960] VFS: Mounted root (jffs2 filesystem) on device 31:3.
[ 4.928814] devtmpfs: mounted
U-Boot SPL 2017.01-rc2-00073-gdd6e8740dc-dirty (Apr 22 2020 - 09:13:27)
DRAM: 64 MiB
Trying to boot from sunxi SPI
</code>
这个地方无任何征兆的重启? 如果是的话,多数是电源问题,可能在这个时候耗电量突然增加后,电压被拉低导致系统复位。
离线
谢谢,我再尝试一下。
离线