OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 1251|回复: 5

使用脚本固化系统到 TF(SD)卡,不能挂载根文件系统报故障Kernel panicexitcode=0x0000000b,排除了编译器原因和根文件压缩原因

[复制链接]

33

主题

218

帖子

0

精华

高级会员

Rank: 4

积分
568
金钱
568
注册时间
2015-1-12
在线时间
75 小时
发表于 2022-9-25 15:07:06 | 显示全部楼层 |阅读模式
5金钱
使用脚本固化系统到 TF(SD)卡,不能挂载根文件系统报故障Kernel panicexitcode=0x0000000b,排除了编译器原因和根文件压缩原因
启动信息如下:
U-Boot 2016.03 (Sep 25 2022 - 11:20:15 +0800)

CPU:   Freescale i.MX6UL rev1.2 528 MHz (running at 396 MHz)
CPU:   Industrial temperature grade (-40C to 105C) at 38C
Reset cause: POR
Board: I.MX6U ALPHA|MINI
I2C:   ready
DRAM:  512 MiB
MMC:   FSL_SDHC: 0, FSL_SDHC: 1
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
switch to partitions #0, OK
mmc0 is current device
Net:   FEC1
Error: FEC1 address not set.

Normal Boot
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc0 is current device
switch to partitions #0, OK
mmc0 is current device
reading boot.scr
** Unable to read file boot.scr **
reading zImage
6785360 bytes read in 367 ms (17.6 MiB/s)
Booting from mmc ...
reading imx6ull-14x14-emmc-7-1024x600-c.dtb
39323 bytes read in 22 ms (1.7 MiB/s)
Kernel image @ 0x80800000 [ 0x000000 - 0x678950 ]
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 83000000, end 8300c99a

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.1.15-g06f53e4 (alientek@ubuntu) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Sat Nov 27 18:39:27 CST 2021
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Freescale i.MX6 ULL 14x14 EVK Board
[    0.000000] Reserved memory: created CMA memory pool at 0x98000000, size 128 MiB
[    0.000000] Reserved memory: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] PERCPU: Embedded 12 pages/cpu @97b8f000 s16780 r8192 d24180 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 375264K/524288K available (8551K kernel code, 449K rwdata, 2964K rodata, 528K init, 452K bss, 17952K reserved, 131072K 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 : 0xa0800000 - 0xff000000   (1512 MB)
[    0.000000]     lowmem  : 0x80000000 - 0xa0000000   ( 512 MB)
[    0.000000]     pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
[    0.000000]     modules : 0x7f000000 - 0x7fe00000   (  14 MB)
[    0.000000]       .text : 0x80008000 - 0x80b47274   (11517 kB)
[    0.000000]       .init : 0x80b48000 - 0x80bcc000   ( 528 kB)
[    0.000000]       .data : 0x80bcc000 - 0x80c3c7e0   ( 450 kB)
[    0.000000]        .bss : 0x80c3f000 - 0x80cb00c4   ( 453 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 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 16
[    0.000000] mxc_clocksource_init 3000000
[    0.000000] Switching to timer-based delay loop, resolution 333ns
[    0.000016] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[    0.000056] clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[    0.002904] Console: colour dummy device 80x30
[    0.002944] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[    0.002979] pid_max: default: 32768 minimum: 301
[    0.003206] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.003237] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.004618] CPU: Testing write buffer coherency: ok
[    0.005105] /cpus/cpu@0 missing clock-frequency property
[    0.005147] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.005258] Setting up static identity map for 0x80008280 - 0x800082d8
[    0.041186] Brought up 1 CPUs
[    0.041225] SMP: Total of 1 processors activated (6.00 BogoMIPS).
[    0.041245] CPU: All CPU(s) started in SVC mode.
[    0.042320] devtmpfs: initialized
[    0.059449] device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"
[    0.066070] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.066986] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.076954] pinctrl core: initialized pinctrl subsystem
[    0.079669] NET: Registered protocol family 16
[    0.097573] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.121346] cpuidle: using governor ladder
[    0.151410] cpuidle: using governor menu
[    0.201076] failed to find ocotp node
[    0.201490] failed to find ocotp node
[    0.201988] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.202018] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.206488] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[    0.207277] imx6ul-pinctrl 2290000.iomuxc-snvs: initialized IMX pinctrl driver
[    0.279222] mxs-dma 1804000.dma-apbh: initialized
[    0.286429] SCSI subsystem initialized
[    0.287776] usbcore: registered new interface driver usbfs
[    0.287990] usbcore: registered new interface driver hub
[    0.288220] usbcore: registered new device driver usb
[    0.290858] i2c i2c-0: IMX I2C adapter registered
[    0.290905] i2c i2c-0: can't use DMA
[    0.293313] i2c i2c-1: IMX I2C adapter registered
[    0.293361] i2c i2c-1: can't use DMA
[    0.293698] Linux video capture interface: v2.00
[    0.293905] pps_core: LinuxPPS API ver. 1 registered
[    0.293929] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.294010] PTP clock support registered
[    0.296995] MIPI CSI2 driver module loaded
[    0.297734] Advanced Linux Sound Architecture Driver Initialized.
[    0.299960] Bluetooth: Core ver 2.20
[    0.300089] NET: Registered protocol family 31
[    0.300114] Bluetooth: HCI device and connection manager initialized
[    0.300154] Bluetooth: HCI socket layer initialized
[    0.300187] Bluetooth: L2CAP socket layer initialized
[    0.300272] Bluetooth: SCO socket layer initialized
[    0.302953] Switched to clocksource mxc_timer1
[    0.329863] NET: Registered protocol family 2
[    0.331471] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.331604] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.331763] TCP: Hash tables configured (established 4096 bind 4096)
[    0.331894] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.331955] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.332379] NET: Registered protocol family 1
[    0.333214] RPC: Registered named UNIX socket transport module.
[    0.333246] RPC: Registered udp transport module.
[    0.333266] RPC: Registered tcp transport module.
[    0.333285] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.336796] imx rpmsg driver is registered.
[    0.338902] Bus freq driver module loaded
[    0.341124] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.358281] VFS: Disk quotas dquot_6.6.0
[    0.358809] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.364633] NFS: Registering the id_resolver key type
[    0.364745] Key type id_resolver registered
[    0.364766] Key type id_legacy registered
[    0.364954] jffs2: version 2.2. (NAND) &#169; 2001-2006 Red Hat, Inc.
[    0.366891] fuse init (API version 7.23)
[    0.378007] io scheduler noop registered
[    0.378059] io scheduler deadline registered
[    0.378570] io scheduler cfq registered (default)
[    0.379724] imx-weim 21b8000.weim: Driver registered.
[    0.386583] backlight supply power not found, using dummy regulator
[    0.387915] MIPI DSI driver module loaded
[    0.388422] MIPI DSI driver module loaded
[    0.394650] 21c8000.lcdif supply lcd not found, using dummy regulator
[    0.502731] mxsfb 21c8000.lcdif: failed to find mxc display driver
[    0.517173] Console: switching to colour frame buffer device 128x37
[    0.554205] mxsfb 21c8000.lcdif: initialized
[    0.556356] imx-sdma 20ec000.sdma: no event needs to be remapped
[    0.556570] imx-sdma 20ec000.sdma: loaded firmware 3.3
[    0.563994] imx-sdma 20ec000.sdma: initialized
[    0.566285] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 19, base_baud = 5000000) is a IMX
[    1.261844] console [ttymxc0] enabled
[    1.267483] 21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 233, base_baud = 5000000) is a IMX
[    1.280660] ap3216c 0-001e: ap3216c init failed
[    1.285357] ap3216c: probe of 0-001e failed with error -1
[    1.292857] Unhandled fault: external abort on non-linefetch (0x008) at 0xa094800c
[    1.300475] pgd = 80004000
[    1.303207] [a094800c] *pgd=94005811, *pte=02284653, *ppte=02284453
[    1.309586] Internal error: : 8 [#1] PREEMPT SMP ARM
[    1.314573] Modules linked in:
[    1.317680] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.15-g06f53e4 #1
[    1.324402] Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[    1.330606] task: 94060000 ti: 94064000 task.ti: 94064000
[    1.336041] PC is at imx_rng_init+0x28/0x2a8
[    1.340340] LR is at set_current_rng+0xc8/0x164
[    1.344896] pc : [<803622f8>]    lr : [<80361d38>]    psr: a0000113
[    1.344896] sp : 94065e00  ip : 00000000  fp : 00000000
[    1.356399] r10: 97bb1f30  r9 : 80bfa37c  r8 : 80bfa488
[    1.361646] r7 : 80bfa488  r6 : 80bfa4b4  r5 : 80bfa394  r4 : 942a35c0
[    1.368196] r3 : a0948000  r2 : 00000000  r1 : 00000001  r0 : 80bfa488
[    1.374750] Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    1.382082] Control: 10c53c7d  Table: 8000406a  DAC: 00000015
[    1.387851] Process swapper/0 (pid: 1, stack limit = 0x94064210)
[    1.393878] Stack: (0x94065e00 to 0x94066000)
[    1.398272] 5e00: 80bfa488 80c96f40 80bfa488 80bfa394 80bfa4b4 80bfa488 80c96f40 80361d38
[    1.406481] 5e20: 00000000 80bfa394 80bfa4b4 80bfa488 80c96f40 80362038 80bfa410 940fb400
[    1.414694] 5e40: 942a35c0 80c96f5c 940fb410 00000000 97bb1f30 80b87818 80c97058 940fb410
[    1.422904] 5e60: 80bfa444 fffffdfb 00000000 80ba422c 80bc5858 80388978 80c97058 940fb410
[    1.431113] 5e80: 80bfa444 00000000 00000000 80387214 940fb410 80bfa444 940fb444 80bfb150
[    1.439321] 5ea0: 00000000 80387424 00000000 80bfa444 80387398 803858a0 9403095c 940f85b4
[    1.447531] 5ec0: 80bfa444 942a1480 00000000 803869a4 80a5651c 80bd1920 942a34c0 80bfa444
[    1.455740] 5ee0: 80bd1920 942a34c0 80b8772c 80387a24 80bfa430 80bd1920 942a34c0 80388a08
[    1.463949] 5f00: 80bd1920 80bd1920 942a34c0 80009718 80ba4208 80141ccc 00000000 94031a00
[    1.472158] 5f20: 00000000 80bd9b68 60000113 00000000 97fffab6 97fffab4 80857b64 8004e8ec
[    1.480369] 5f40: 00000000 80a8fa58 00000006 00000006 80bd9b50 0000013b 00000006 80c3f000
[    1.488579] 5f60: 0000013b 00000006 80c3f000 80c3f000 80ba4224 80b48dbc 00000006 00000006
[    1.496788] 5f80: 80b48594 80052fac 00000000 8081f930 00000000 00000000 00000000 00000000
[    1.504995] 5fa0: 00000000 8081f938 00000000 8000f528 00000000 00000000 00000000 00000000
[    1.513204] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    1.521412] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 7eb77edf fcdb9f53
[    1.529649] [<803622f8>] (imx_rng_init) from [<80361d38>] (set_current_rng+0xc8/0x164)
[    1.537611] [<80361d38>] (set_current_rng) from [<80362038>] (hwrng_register+0x190/0x1b8)
[    1.545828] [<80362038>] (hwrng_register) from [<80b87818>] (imx_rng_probe+0xd4/0x134)
[    1.553783] [<80b87818>] (imx_rng_probe) from [<80388978>] (platform_drv_probe+0x44/0xac)
[    1.562006] [<80388978>] (platform_drv_probe) from [<80387214>] (driver_probe_device+0x174/0x2b4)
[    1.570918] [<80387214>] (driver_probe_device) from [<80387424>] (__driver_attach+0x8c/0x90)
[    1.579395] [<80387424>] (__driver_attach) from [<803858a0>] (bus_for_each_dev+0x68/0x9c)
[    1.587612] [<803858a0>] (bus_for_each_dev) from [<803869a4>] (bus_add_driver+0x148/0x1f0)
[    1.595915] [<803869a4>] (bus_add_driver) from [<80387a24>] (driver_register+0x78/0xf8)
[    1.603956] [<80387a24>] (driver_register) from [<80388a08>] (__platform_driver_probe+0x20/0xac)
[    1.612781] [<80388a08>] (__platform_driver_probe) from [<80009718>] (do_one_initcall+0x8c/0x1d4)
[    1.621698] [<80009718>] (do_one_initcall) from [<80b48dbc>] (kernel_init_freeable+0x144/0x1e4)
[    1.630443] [<80b48dbc>] (kernel_init_freeable) from [<8081f938>] (kernel_init+0x8/0xe8)
[    1.638576] [<8081f938>] (kernel_init) from [<8000f528>] (ret_from_fork+0x14/0x2c)
[    1.646180] Code: e5832010 e1a08000 e5832000 e5943000 (e593200c)
[    1.652347] ---[ end trace ed7a46d3c0fdd97d ]---
[    1.657263] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.657263]
[    1.666442] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    1.666442]
[   82.942992] random: nonblocking pool is initialized

环境变量,uboot编译器和bdinfo如下:
=> print
baudrate=115200
board_name=EVK
board_rev=14X14
boot_fdt=try
bootcmd=run findfdt;mmc dev ${mmcdev};mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if run loadimage; then run mmcboot; else run netboot; fi; fi; else run netboot; fi
bootcmd_mfg=run mfgtool_args;bootz ${loadaddr} ${initrd_addr} ${fdt_addr};
bootdelay=1
bootscript=echo Running bootscript from mmc ...; source
console=ttymxc0
ethact=FEC1
ethprime=FEC
fdt_addr=0x83000000
fdt_file=imx6ull-14x14-emmc-7-1024x600-c.dtb
fdt_high=0xffffffff
findfdt=if test $fdt_file = undefined; then if test $board_name = EVK && test $board_rev = 9X9; then setenv fdt_file imx6ull-9x9-evk.dtb; fi; if test $board_name = EVK && test $board_rev = 14X14; then setenv fdt_file imx6ull-14x14-evk.dtb; fi; if test $fdt_file = undefined; then echo WARNING: Could not determine dtb to use; fi; fi;
image=zImage
initrd_addr=0x83800000
initrd_high=0xffffffff
ip_dyn=yes
loadaddr=0x80800000
loadbootscript=fatload mmc ${mmcdev}{mmcpart} ${loadaddr} ${script};
loadfdt=fatload mmc ${mmcdev}{mmcpart} ${fdt_addr} ${fdt_file}
loadimage=fatload mmc ${mmcdev}{mmcpart} ${loadaddr} ${image}
logo_file=alientek.bmp
mfgtool_args=setenv bootargs console=${console},${baudrate} rdinit=/linuxrc g_mass_storage.stall=0 g_mass_storage.removable=1 g_mass_storage.file=/fat g_mass_storage.ro=1 g_mass_storage.idVendor=0x066F g_mass_storage.idProduct=0x37FF g_mass_storage.iSerialNumber="" clk_ignore_unused
mmcargs=setenv bootargs console=${console},${baudrate} root=${mmcroot}
mmcautodetect=yes
mmcboot=echo Booting from mmc ...; run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
mmcdev=0
mmcpart=1
mmcroot=/dev/mmcblk0p2 rootwait rw
netargs=setenv bootargs console=${console},${baudrate} root=/dev/nfs ip=dhcp nfsroot=${serverip}{nfsroot},v3,tcp
netboot=echo Booting from net ...; run netargs; if test ${ip_dyn} = yes; then setenv get_cmd dhcp; else setenv get_cmd tftp; fi; ${get_cmd} ${image}; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if ${get_cmd} ${fdt_addr} ${fdt_file}; then bootz ${loadaddr} - ${fdt_addr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot load the DT; fi; fi; else bootz; fi;
panel=ATK-LCD-7-1024x600
script=boot.scr
splashimage=0x88000000
splashpos=m,m
stderr=serial
stdin=serial
stdout=serial

Environment size: 2581/8188 bytes
=> version

U-Boot 2016.03 (Sep 25 2022 - 11:20:15 +0800)
arm-poky-linux-gnueabi-gcc (GCC) 5.3.0
GNU ld (GNU Binutils) 2.26.0.20160226
=> bdinfo
arch_number = 0x00000000
boot_params = 0x80000100
DRAM bank   = 0x00000000
-> start    = 0x80000000
-> size     = 0x20000000
eth0name    = FEC1
ethaddr     = (not set)
current eth = FEC1
ip_addr     = <NULL>
baudrate    = 115200 bps
TLB addr    = 0x9FFF0000
relocaddr   = 0x9FF56000
reloc off   = 0x18756000
irq_sp      = 0x9EF53EA0
sp start    = 0x9EF53E90

大佬们谁能帮忙查看处理下

正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

33

主题

218

帖子

0

精华

高级会员

Rank: 4

积分
568
金钱
568
注册时间
2015-1-12
在线时间
75 小时
 楼主| 发表于 2022-9-27 09:39:34 | 显示全部楼层
有问题,希望大神们能看到,帮忙解决。顶
回复

使用道具 举报

1

主题

96

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
426
金钱
426
注册时间
2021-3-9
在线时间
56 小时
发表于 2022-10-17 09:46:09 | 显示全部楼层
核心板是nand的话要用nand版本的uboot启动
回复

使用道具 举报

33

主题

218

帖子

0

精华

高级会员

Rank: 4

积分
568
金钱
568
注册时间
2015-1-12
在线时间
75 小时
 楼主| 发表于 2022-10-18 10:11:32 | 显示全部楼层
xiaoxiao315 发表于 2022-10-17 09:46
核心板是nand的话要用nand版本的uboot启动

从SD卡启动系统,核心板还用区分是NAND还是EMMC版本吗?
回复

使用道具 举报

1

主题

96

帖子

0

精华

中级会员

Rank: 3Rank: 3

积分
426
金钱
426
注册时间
2021-3-9
在线时间
56 小时
发表于 2022-10-20 13:01:41 | 显示全部楼层
yuanzinpl 发表于 2022-10-18 10:11
从SD卡启动系统,核心板还用区分是NAND还是EMMC版本吗?

核心板的存储不一样上面的ddr大小也不一样,有可能是ddr导致的问题
回复

使用道具 举报

33

主题

218

帖子

0

精华

高级会员

Rank: 4

积分
568
金钱
568
注册时间
2015-1-12
在线时间
75 小时
 楼主| 发表于 2022-11-26 22:43:36 | 显示全部楼层
xiaoxiao315 发表于 2022-10-20 13:01
核心板的存储不一样上面的ddr大小也不一样,有可能是ddr导致的问题

试过了,不是这个原因。不知道是否和内存厂家有关系吗?我用的内存不是原子教材中的内存
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-11-25 06:50

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表