您尚未登录。

楼主 #1 2019-07-05 09:39:01

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

内核突然出现5秒重启 ,以前用的好好的

VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    3.796839] Please append a correct "root=" boot option; here are the available partitions:
[    3.805187] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    3.813530] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #8
[    3.820825] Hardware name: Allwinner sun8i Family
[    3.825564] [<c010e58c>] (unwind_backtrace) from [<c010b290>] (show_stack+0x10/0x14)
[    3.833313] [<c010b290>] (show_stack) from [<c066229c>] (dump_stack+0x84/0x98)
[    3.840538] [<c066229c>] (dump_stack) from [<c011b6a8>] (panic+0xdc/0x248)
[    3.847413] [<c011b6a8>] (panic) from [<c0901170>] (mount_block_root+0x188/0x25c)
[    3.854891] [<c0901170>] (mount_block_root) from [<c0901364>] (mount_root+0x120/0x128)
[    3.862799] [<c0901364>] (mount_root) from [<c09014b0>] (prepare_namespace+0x144/0x188)
[    3.870796] [<c09014b0>] (prepare_namespace) from [<c0900dc0>] (kernel_init_freeable+0x1bc/0x1cc)
[    3.879661] [<c0900dc0>] (kernel_init_freeable) from [<c0675174>] (kernel_init+0x8/0x108)
[    3.887833] [<c0675174>] (kernel_init) from [<c0107618>] (ret_from_fork+0x14/0x3c)
[    3.895407] Rebooting in 5 seconds..

离线

#2 2019-07-05 09:41:14

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

1. 看的 bootargs 的 root 参数是什么
2. 检查是否生成了 mtdX/mtdblockX 分区
3. 检查分区里面的根文件系统是否正常





离线

楼主 #3 2019-07-05 09:45:08

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

1. 看的 bootargs 的 root 参数是什么
2. 检查是否生成了 mtdX/mtdblockX 分区
3. 检查分区里面的根文件系统是否正常


分区正常出来了

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.13.16-licheepi-zero+ (root@ubuntu) (gcc version 6.1.1 20160711 (Linaro GCC 6.1-2016.08)) #8 SMP Thu Jul 4 18:34:46 PDT 2019
[    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 @c3d07000 s33868 r8192 d23476 u65536
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 15660
[    0.000000] Kernel command line: console=ttyS0,115200 earlyprintk panic=5 rootwait mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=31:03 rw rootfstype=jffs2 vt.global_cursor_default=0
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 52660K/63136K available (6144K kernel code, 232K rwdata, 1452K rodata, 1024K init, 264K bss, 10476K 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 : 0xc4000000 - 0xff800000   ( 952 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc3da8000   (  61 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0700000   (7136 kB)
[    0.000000]       .init : 0xc0900000 - 0xc0a00000   (1024 kB)
[    0.000000]       .data : 0xc0a00000 - 0xc0a3a0c0   ( 233 kB)
[    0.000000]        .bss : 0xc0a41868 - 0xc0a83b2c   ( 265 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU event tracing is enabled.
[    0.000000]  RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[    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] 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.000009] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000021] Switching to timer-based delay loop, resolution 41ns
[    0.000185] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000417] Console: colour dummy device 80x30
[    0.000455] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000472] pid_max: default: 32768 minimum: 301
[    0.000600] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000616] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001231] CPU: Testing write buffer coherency: ok
[    0.001611] /cpus/cpu@0 missing clock-frequency property
[    0.001633] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002076] Setting up static identity map for 0x40100000 - 0x40100060
[    0.002260] Hierarchical SRCU implementation.
[    0.002783] smp: Bringing up secondary CPUs ...
[    0.002796] smp: Brought up 1 node, 1 CPU
[    0.002806] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.002813] CPU: All CPU(s) started in SVC mode.
[    0.003591] devtmpfs: initialized
[    0.006841] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.007128] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.007155] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.007322] pinctrl core: initialized pinctrl subsystem
[    0.008217] random: get_random_u32 called from bucket_table_alloc+0xf4/0x244 with crng_init=0
[    0.008361] NET: Registered protocol family 16
[    0.008897] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.010164] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.010182] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.023537] SCSI subsystem initialized
[    0.023849] usbcore: registered new interface driver usbfs
[    0.023925] usbcore: registered new interface driver hub
[    0.024022] usbcore: registered new device driver usb
[    0.024272] pps_core: LinuxPPS API ver. 1 registered
[    0.024284] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024306] PTP clock support registered
[    0.024543] Advanced Linux Sound Architecture Driver Initialized.
[    0.026451] clocksource: Switched to clocksource arch_sys_counter
[    0.037466] NET: Registered protocol family 2
[    0.038057] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038092] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038115] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038246] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038295] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038517] NET: Registered protocol family 1
[    0.039115] RPC: Registered named UNIX socket transport module.
[    0.039133] RPC: Registered udp transport module.
[    0.039139] RPC: Registered tcp transport module.
[    0.039146] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041151] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050043] NFS: Registering the id_resolver key type
[    0.050098] Key type id_resolver registered
[    0.050107] Key type id_legacy registered
[    0.051157] random: fast init done
[    0.054133] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054157] io scheduler noop registered
[    0.054165] io scheduler deadline registered
[    0.054419] io scheduler cfq registered (default)
[    0.054431] io scheduler mq-deadline registered
[    0.054438] io scheduler kyber registered
[    0.058938] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.128681] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.132001] console [ttyS0] disabled
[    0.152279] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 33, base_baud = 1500000) is a U6_16550A
[    0.736463] console [ttyS0] enabled
[    0.761500] 1c28800.serial: ttyS1 at MMIO 0x1c28800 (irq = 34, base_baud = 1500000) is a U6_16550A
[    0.775020] m25p80 spi32766.0: mx25l12805d (16384 Kbytes)
[    0.780557] spi32766.0: parser cmdlinepart: 4
[    0.784912] 4 cmdlinepart partitions found on MTD device spi32766.0
[    0.791201] Creating 4 MTD partitions on "spi32766.0":
[    0.796344] 0x000000000000-0x000000100000 : "uboot"
[    0.801886] 0x000000100000-0x000000110000 : "dtb"
[    0.807119] 0x000000110000-0x000000510000 : "kernel"
[    0.812435] 0x000000510000-0x000001000000 : "rootfs"
[    0.818313] libphy: Fixed MDIO Bus: probed
[    0.822914] dwmac-sun8i 1c30000.ethernet: PTP uses main clock
[    0.828796] dwmac-sun8i 1c30000.ethernet: No regulator found
[    0.834507] dwmac-sun8i 1c30000.ethernet: Will use internal PHY
[    0.840535] dwmac-sun8i 1c30000.ethernet: Current syscon value is not the default 148000 (expect 38000)
[    0.850111] dwmac-sun8i 1c30000.ethernet: Chain mode enabled
[    0.855768] dwmac-sun8i 1c30000.ethernet: No HW DMA feature register supported
[    0.863007] dwmac-sun8i 1c30000.ethernet: Normal descriptors
[    0.868673] dwmac-sun8i 1c30000.ethernet: RX Checksum Offload Engine supported
[    0.875885] dwmac-sun8i 1c30000.ethernet: COE Type 2
[    0.880854] dwmac-sun8i 1c30000.ethernet: TX Checksum insertion supported
[    0.887828] libphy: stmmac: probed
[    0.893107] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.899767] ehci-platform: EHCI generic platform driver
[    0.905289] ehci-platform 1c1a000.usb: EHCI Host Controller
[    0.910975] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[    0.918931] ehci-platform 1c1a000.usb: irq 25, io mem 0x01c1a000
[    0.946471] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[    0.953720] hub 1-0:1.0: USB hub found
[    0.957666] hub 1-0:1.0: 1 port detected
[    0.962212] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.968517] ohci-platform: OHCI generic platform driver
[    0.974064] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[    0.980796] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[    0.988761] ohci-platform 1c1a400.usb: irq 26, io mem 0x01c1a400
[    1.061592] hub 2-0:1.0: USB hub found
[    1.065412] hub 2-0:1.0: 1 port detected
[    1.073038] udc-core: couldn't find an available UDC - added [g_cdc] to list of pending drivers
[    1.082834] sun6i-rtc 1c20400.rtc: rtc core: registered rtc-sun6i as rtc0
[    1.089736] sun6i-rtc 1c20400.rtc: RTC enabled
[    1.094286] i2c /dev entries driver
[    3.526457] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[    3.532998] edt_ft5x06 0-0038: touchscreen probe failed
[    3.538294] edt_ft5x06: probe of 0-0038 failed with error -110
[    3.544937] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    3.606500] sunxi-mmc 1c0f000.mmc: base:0xc42dd000 irq:23
[    3.613412] usbcore: registered new interface driver usbhid
[    3.619084] usbhid: USB HID core driver
[    3.624780] NET: Registered protocol family 17
[    3.629458] Key type dns_resolver registered
[    3.633910] Registering SWP/SWPB emulation handler
[    3.644523] simple-framebuffer 43da8000.framebuffer: framebuffer at 0x43da8000, 0x258000 bytes, mapped to 0xc4480000
[    3.655179] simple-framebuffer 43da8000.framebuffer: format=x8r8g8b8, mode=1024x600x32, linelength=4096
[    3.677182] Console: switching to colour frame buffer device 128x37
[    3.693078] simple-framebuffer 43da8000.framebuffer: fb0: simplefb registered!
[    3.701660] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    3.713002] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[    3.718841] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 3
[    3.727944] hub 3-0:1.0: USB hub found
[    3.731800] hub 3-0:1.0: 1 port detected
[    3.737041] using random self ethernet address
[    3.741531] using random host ethernet address
[    3.747124] usb0: HOST MAC 3a:34:80:a4:25:8f
[    3.751444] usb0: MAC 22:25:e8:9a:98:76
[    3.755320] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[    3.762859] g_cdc gadget: g_cdc ready
[    3.766891] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01 16:49:37 UTC (60577)
[    3.775436] vcc3v0: disabling
[    3.778511] vcc5v0: disabling
[    3.781482] ALSA device list:
[    3.784444]   No soundcards found.
[    3.789191] VFS: Cannot open root device "31:03" or unknown-block(31,3): error -19
[    3.796839] Please append a correct "root=" boot option; here are the available partitions:
[    3.805187] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,3)
[    3.813530] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.13.16-licheepi-zero+ #8
[    3.820825] Hardware name: Allwinner sun8i Family
[    3.825564] [<c010e58c>] (unwind_backtrace) from [<c010b290>] (show_stack+0x10/0x14)
[    3.833313] [<c010b290>] (show_stack) from [<c066229c>] (dump_stack+0x84/0x98)
[    3.840538] [<c066229c>] (dump_stack) from [<c011b6a8>] (panic+0xdc/0x248)
[    3.847413] [<c011b6a8>] (panic) from [<c0901170>] (mount_block_root+0x188/0x25c)
[    3.854891] [<c0901170>] (mount_block_root) from [<c0901364>] (mount_root+0x120/0x128)
[    3.862799] [<c0901364>] (mount_root) from [<c09014b0>] (prepare_namespace+0x144/0x188)
[    3.870796] [<c09014b0>] (prepare_namespace) from [<c0900dc0>] (kernel_init_freeable+0x1bc/0x1cc)
[    3.879661] [<c0900dc0>] (kernel_init_freeable) from [<c0675174>] (kernel_init+0x8/0x108)
[    3.887833] [<c0675174>] (kernel_init) from [<c0107618>] (ret_from_fork+0x14/0x3c)
[    3.895407] Rebooting in 5 seconds..

离线

楼主 #4 2019-07-05 09:46:53

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

#define CONFIG_BOOTCOMMAND   "sf probe 0; "                           \
                             "sf read 0x41800000 0x100000 0x10000; "  \
                             "sf read 0x41000000 0x110000 0x400000; " \
                             "bootz 0x41000000 - 0x41800000"

#define CONFIG_BOOTARGS      "console=ttyS0,115200 earlyprintk panic=5 rootwait " \
                             "mtdparts=spi32766.0:1M(uboot)ro,64k(dtb)ro,4M(kernel)ro,-(rootfs) root=/dev/mtdblock3 rw rootfstype=jffs2 vt.global_cursor_default=0"

离线

#5 2019-07-05 10:07:06

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

文件系统被破坏?或者驱动里面没有编译对应的文件系统, JFFS2 ?





离线

楼主 #6 2019-07-05 10:09:59

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

文件系统被破坏?或者驱动里面没有编译对应的文件系统, JFFS2 ?


这个文件系统是我以前用了好久 的后面一直没有改过,,我不知道你说的驱动里面没有编译对于的文件系统是指的哪里  就是使用的jffs2

最近编辑记录 无情一刀 (2019-07-05 10:11:06)

离线

#7 2019-07-05 10:31:44

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

看 JFFS2 有没有编译进去.

[    0.053635] NET: Registered protocol family 1
[    0.520722] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.529909] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.532383] random: fast init done
[    0.536428] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)





离线

楼主 #8 2019-07-05 10:43:57

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

看 JFFS2 有没有编译进去.

[    0.053635] NET: Registered protocol family 1
[    0.520722] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.529909] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.532383] random: fast init done
[    0.536428] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)


没有编译进去 需要在设置下吗

[    0.024304] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.024324] PTP clock support registered
[    0.024558] Advanced Linux Sound Architecture Driver Initialized.
[    0.026438] clocksource: Switched to clocksource arch_sys_counter
[    0.037419] NET: Registered protocol family 2
[    0.038003] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.038036] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.038060] TCP: Hash tables configured (established 1024 bind 1024)
[    0.038196] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.038244] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.038465] NET: Registered protocol family 1
[    0.039062] RPC: Registered named UNIX socket transport module.
[    0.039079] RPC: Registered udp transport module.
[    0.039085] RPC: Registered tcp transport module.
[    0.039091] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.041262] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.050195] NFS: Registering the id_resolver key type
[    0.050250] Key type id_resolver registered
[    0.050258] Key type id_legacy registered
[    0.051297] random: fast init done
[    0.054232] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.054254] io scheduler noop registered
[    0.054262] io scheduler deadline registered
[    0.054522] io scheduler cfq registered (default)
[    0.054534] io scheduler mq-deadline registered
[    0.054541] io scheduler kyber registered

离线

#9 2019-07-05 10:45:58

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

当然需要, menuconfig 然后进入 filesystem,然后杂项,勾选 jffs2





离线

楼主 #10 2019-07-05 11:47:24

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

当然需要, menuconfig 然后进入 filesystem,然后杂项,勾选 jffs2


加上了 出现启动不了 就是一直在Starting kernel ...

U-Boot 2017.01-rc2-00073-gdd6e874-dirty (Jul 04 2019 - 19:01:27 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 1024x600 lcd console (overscan 0x0)
dotclock: 46000kHz = 46000kHz: (1 * 3MHz * 92) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff36 ... OK

Starting kernel ...

离线

#11 2019-07-05 11:51:24

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

你的 zImage 超过 0x400000 (4M) 了?





离线

楼主 #12 2019-07-05 12:00:50

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

你的 zImage 超过 0x400000 (4M) 了?


没有超过 我看了下是3833KB

离线

#13 2019-07-05 13:54:04

阿黄
会员
注册时间: 2018-10-03
已发帖子: 299
积分: 134

Re: 内核突然出现5秒重启 ,以前用的好好的

我的有时候也会突然出现, 经常运行1-2个小时,有时候3-5小时会出现,有时候又整天不出现。但实际上板子只是通电在那边跑着,没有什么外部因素导致。

离线

#14 2019-07-05 14:13:11

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

去把 earlyprink 开起来: https://whycan.cn/t_2402.html

看log才知道什么问题.





离线

楼主 #15 2019-07-05 15:02:24

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

去把 earlyprink 开起来: https://whycan.cn/t_2402.html

看log才知道什么问题.


跟你里面的问题是一样的
我以前可以跑起来的就是这个0x01c28000地址
CONFIG_DEBUG_UART_PHYS=0x01c28000
CONFIG_DEBUG_UART_VIRT=0xf1c28000

离线

楼主 #16 2019-07-05 15:21:01

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

无情一刀 说:
晕哥 说:

去把 earlyprink 开起来: https://whycan.cn/t_2402.html

看log才知道什么问题.


跟你里面的问题是一样的 还是一样的

Uncompressing Linux... done, booting the kernel.

我以前可以跑起来的就是这个0x01c28000地址
CONFIG_DEBUG_UART_PHYS=0x01c28000
CONFIG_DEBUG_UART_VIRT=0xf1c28000

离线

#17 2019-07-05 15:22:26

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

那跑起来显示什么





离线

楼主 #18 2019-07-05 15:40:50

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

晕哥 说:

那跑起来显示什么

-Boot 2017.01-rc2-00073-gdd6e874-dirty (Jul 04 2019 - 19:01:27 -0700) Allwinner Technology

CPU:   Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM:  64 MiB
MMC:   SUNXI SD/MMC: 0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
*** Warning - bad CRC, using default environment

Setting up a 1024x600 lcd console (overscan 0x0)
dotclock: 46000kHz = 46000kHz: (1 * 3MHz * 92) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff36 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

就这样啥也不显示了

离线

#19 2019-07-05 15:54:57

smartcar
会员
注册时间: 2018-02-19
已发帖子: 735
积分: 735

Re: 内核突然出现5秒重启 ,以前用的好好的

Uncompressing Linux... done, booting the kernel.



这个就是  earlyprink 显示的内容,看起来解压正常,而且试图引导linux了。

离线

楼主 #20 2019-07-06 10:21:01

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: 内核突然出现5秒重启 ,以前用的好好的

今天来试试 里面的都按照该了
出来的还是

Setting up a 1024x600 lcd console (overscan 0x0)
dotclock: 46000kHz = 46000kHz: (1 * 3MHz * 92) / 6
In:    serial@01c28000
Out:   serial@01c28000
Err:   serial@01c28000
Net:   phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot:  0
SF: Detected mx25l12805 with page size 256 Bytes, erase size 64 KiB, total 16 MiB
device 0 offset 0x100000, size 0x10000
SF: 65536 bytes @ 0x100000 Read: OK
device 0 offset 0x110000, size 0x400000
SF: 4194304 bytes @ 0x110000 Read: OK
## Flattened Device Tree blob at 41800000
   Booting using the fdt blob at 0x41800000
   Loading Device Tree to 42dfa000, end 42dfff36 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
就一直是这样的了

离线

#21 2019-07-06 10:26:54

晕哥
管理员
注册时间: 2017-09-06
已发帖子: 9,342
积分: 9202

Re: 内核突然出现5秒重启 ,以前用的好好的

换以前能用的 zImage 和 dtb, 逐个替换排除问题。





离线

#22 2019-12-23 13:13:34

Helloafer
会员
注册时间: 2019-10-19
已发帖子: 14
积分: 14

Re: 内核突然出现5秒重启 ,以前用的好好的

解决了吗?我碰到同样的问题

离线

#23 2019-12-23 13:55:29

湘楚浪子
会员
注册时间: 2019-12-22
已发帖子: 40
积分: 39.5

Re: 内核突然出现5秒重启 ,以前用的好好的

没有生成 /dev/mtd* 分区, 或者没有启用 MTD2BLOCK,导致没有生成 /dev/mtdblock* 吧。

离线

页脚

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

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