[问题] jffs2 挂载问题

楼主: kaijajan (kj)   2018-02-22 11:29:51
请教版上高手
小弟我从nor开机kernel挂载会碰到奇怪的状况
导致其它的driver/networking都无法正常加载
但仍然会进到filesystem中,只是所有的driver都没起来
如果是用nfs开机的话 driver 会全部都正常
直接去mount mtdblock没有看到错误讯息
有针对kernel丢出来的讯息去debug
但似乎kernel在spi-nor.c里面似乎顺利执行也没有什么特殊的错误
filesystem 是用 buildroot 建出来的
nor的开机讯息如下:
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.59 ([email protected]) (gcc version 6.2.1
20161016 (Linaro GCC 6.2-2016.11) )
#1 PREEMPT Wed Feb 21 14:44:10 CST 2018
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7),
cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing
instruction cache
[ 0.000000] OF: fdt:Machine model: TI AM437x
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 48 MiB at 0xbd000000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM437x ES1.2 (neon)
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total
pages: 260416
[ 0.000000] Kernel command line: console=ttyO0,115200n8
root=/dev/mtdblock5 rw rootfstype=jffs2 rootwait=1
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288
bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 977312K/1048576K available (7168K kernel code, 292K
rwdata, 2416K rodata, 1024K init, 281K bss, 22112K reserved, 49152K
cma-reserved, 212992K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0b00000 - 0xc0c00000 (1024 kB)
[ 0.000000] .data : 0xc0c00000 - 0xc0c49048 ( 293 kB)
[ 0.000000] .bss : 0xc0c49048 - 0xc0c8f834 ( 282 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C: platform modifies aux control register: 0x0e030000 ->
0x3e430000
[ 0.000000] L2C: DT/platform modifies aux control register: 0x0e030000 ->
0x3e430000
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] OMAP L2C310: ROM does not support power control setting
[ 0.000000] L2C-310 dynamic clock gating disabled, standby mode disabled
[ 0.000000] L2C-310 cache controller enabled, 16 ways, 256 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c9, AUX_CTRL 0x4e430000
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000011] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every
89478484971ns
[ 0.000028] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff,
max_idle_ns: 79635851949 ns
[ 0.000036] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000374] clocksource: 32k_counter: mask: 0xffffffff max_cycles:
0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000382] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.000697] Console: colour dummy device 80x30
[ 0.000721] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[ 0.000727] This ensures that you still see kernel messages. Please
[ 0.000732] update your kernel commandline.
[ 0.000750] Calibrating delay loop... 1987.37 BogoMIPS (lpj=9936896)
[ 0.060164] pid_max: default: 32768 minimum: 301
[ 0.060287] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.060297] Mountpoint-cache hash table entries: 2048 (order: 1, 8192
bytes)
[ 0.061043] CPU: Testing write buffer coherency: ok
[ 0.061390] Setting up static identity map for 0x80100000 - 0x80100060
[ 0.062136] EFI services will not be available.
[ 0.062912] devtmpfs: initialized
[ 0.072402] VFP support v0.3: implementor 41 architecture 3 part 30
variant 9 rev 4
[ 0.072679] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff,
max_idle_ns: 19112604462750000 ns
[ 0.072701] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.075915] pinctrl core: initialized pinctrl subsystem
[ 0.076975] NET: Registered protocol family 16
[ 0.078242] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.170175] cpuidle: using governor ladder
[ 0.200162] cpuidle: using governor menu
[ 0.206882] OMAP GPIO hardware version 0.1
[ 0.218935] No ATAGs?
[ 0.218963] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1
watchpoint registers.
[ 0.218974] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.256431] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.259374] omap_i2c 44e0b000.i2c: could not find pctldev for node
/[email protected]/[email protected]/[email protected]/[email protected]/i2c0_pins,
deferring probe
[ 0.259426] omap_i2c 4802a000.i2c: could not find pctldev for node
/[email protected]/[email protected]/[email protected]/[email protected]/i2c1_pins,
deferring probe
[ 0.259503] media: Linux media interface: v0.10
[ 0.259544] Linux video capture interface: v2.00
[ 0.259588] pps_core: LinuxPPS API ver. 1 registered
[ 0.259595] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo
Giometti <[email protected]>
[ 0.259615] PTP clock support registered
[ 0.259646] EDAC MC: Ver: 3.0.0
[ 0.260581] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[ 0.260898] Advanced Linux Sound Architecture Driver Initialized.
[ 0.261882] clocksource: Switched to clocksource timer1
[ 0.269793] NET: Registered protocol family 2
[ 0.270520] TCP established hash table entries: 8192 (order: 3, 32768
bytes)
[ 0.270586] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.270661] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.270800] UDP hash table entries: 512 (order: 1, 8192 bytes)
[ 0.270821] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
[ 0.270973] NET: Registered protocol family 1
[ 0.271352] RPC: Registered named UNIX socket transport module.
[ 0.271362] RPC: Registered udp transport module.
[ 0.271368] RPC: Registered tcp transport module.
[ 0.271373] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.273528] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[ 0.278604] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.279342] NFS: Registering the id_resolver key type
[ 0.279387] Key type id_resolver registered
[ 0.279393] Key type id_legacy registered
[ 0.279432] ntfs: driver 2.1.32 [Flags: R/O].
[ 0.279635] jffs2: version 2.2. (NAND) (SUMMARY) ?2001-2006 Red Hat, Inc.
[ 0.281317] bounce: pool size: 64 pages
[ 0.281510] Block layer SCSI generic (bsg) driver version 0.4 loaded
(major 246)
[ 0.281521] io scheduler noop registered
[ 0.281527] io scheduler deadline registered
[ 0.281651] io scheduler cfq registered (default)
[ 0.283142] pinctrl-single 44e10800.pinmux: 199 pins at pa f9e10800 size
796
[ 0.330070] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
[ 0.332445] omap8250 44e09000.serial: No clock speed specified: using
default: 48000000
[ 0.333199] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud
= 3000000) is a 8250
[ 0.986796] console [ttyS0] enabled
[ 0.991743] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
[ 0.998555] [drm] Initialized
[ 1.014505] brd: module loaded
[ 1.023442] loop: module loaded
[ 1.029328] m25p80 spi0.0: mx66l51235l (65536 Kbytes)
[ 1.034605] 6 ofpart partitions found on MTD device spi0.0
[ 1.040116] Creating 6 MTD partitions on "spi0.0":
[ 1.044955] 0x000000000000-0x000000080000 : "QSPI.U_BOOT"
[ 1.051465] 0x000000080000-0x000000100000 : "QSPI.U_BOOT.backup"
[ 1.058476] 0x000000100000-0x000000110000 : "QSPI.U_BOOT_ENV"
[ 1.065174] 0x000000110000-0x000000120000 : "QSPI.FDT"
[ 1.071227] 0x000000120000-0x000000920000 : "QSPI.KERNEL"
[ 1.077594] 0x000000920000-0x000004000000 : "QSPI.FILESYSTEM"
[ 1.084919] libphy: Fixed MDIO Bus: probed
[ 1.161948] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
[ 1.168082] davinci_mdio 4a101000.mdio: detected phy mask fffffff9
[ 1.175762] libphy: 4a101000.mdio: probed
[ 1.179807] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01,
driver Micrel KSZ9031 Gigabit PHY
[ 1.189594] davinci_mdio 4a101000.mdio: phy[2]: device 4a101000.mdio:02,
driver Micrel KSZ9031 Gigabit PHY
[ 1.200006] cpsw 4a100000.ethernet: Detected MACID = bc:83:85:fa:60:3d
[ 1.206822] cpsw 4a100000.ethernet: device node lookup for pps timer failed
[ 1.213912] cpsw 4a100000.ethernet: cpts: overflow check period 500
(jiffies)
[ 1.221874] cpsw 4a100000.ethernet: cpsw: Detected MACID =
aa:bb:cc:dd:ee:ff
[ 1.230262] mousedev: PS/2 mouse device common for all mice
[ 1.236246] i2c /dev entries driver
[ 1.241356] cpuidle: enable-method property 'ti,am4372' found operations
[ 1.306013] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.314276] NET: Registered protocol family 10
[ 1.321259] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.330028] NET: Registered protocol family 17
[ 1.334823] Key type dns_resolver registered
[ 1.339319] omap_voltage_late_init: Voltage driver support not added
[ 1.366673] mmc0: new high speed MMC card at address 0001
[ 1.372785] mmcblk0: mmc0:0001 8GME4R 7.28 GiB
[ 1.377646] mmcblk0boot0: mmc0:0001 8GME4R partition 1 4.00 MiB
[ 1.384054] mmcblk0boot1: mmc0:0001 8GME4R partition 2 4.00 MiB
[ 1.391453] mmcblk0: p1 p2 p3 p4
[ 1.409812] at24 0-0050: 8192 byte 24c64 EEPROM, writable, 1 bytes/write
[ 1.416686] omap_i2c 44e0b000.i2c: bus 0 rev0.12 at 100 kHz
[ 1.423329] omap_i2c 4802a000.i2c: bus 1 rev0.12 at 400 kHz
[ 1.430512] hctosys: unable to open rtc device (rtc0)
[ 1.436336] ALSA device list:
[ 1.439328] No soundcards found.
[ 1.509985] random: fast init done
[ 2.223428] VFS: Mounted root (jffs2 filesystem) on device 31:5.
[ 2.230595] devtmpfs: mounted
[ 2.235521] Freeing unused kernel memory: 1024K
Starting logging: OK
从这开始出错后,其它所有的driver全部都没加载
[ 3.160148]
作者: leolarrel (真.粽子无双)   2018-02-22 14:46:00
WARNING 有时后不算错误,kernel 还是会继续跑,所以rootcause可能不是在这个点上
作者: ackman   2018-02-23 07:37:00
TI这颗应该要跑的应该是spi-ti-spi.c这个driver,而不是spi-nor.c?可能确定一下device tree是否为ti,am4372-qspi,

Links booklink

Contact Us: admin [ a t ] ucptt.com