荔枝派One启动到uImage之后出错,总是不断重启


#1

串口打印信息如下:

U-Boot SPL 2018.05-rc2-ga5f2a13-dirty (Jun 10 2018 - 14:37:01 +0800)
DRAM: 512 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1

U-Boot 2018.05-rc2-ga5f2a13-dirty (Jun 10 2018 - 14:37:01 +0800) Allwinner Technology

CPU: Allwinner A13 (SUN5I)
Model: Lichee A13
I2C: ready
DRAM: 512 MiB
MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1
Loading Environment from FAT… Card did not respond to voltage select!
** Bad device mmc 1 **
Failed (-5)
Setting up a 1024x768 vga console (overscan 0x0)
In: serial
Out: vga
Err: vga
Allwinner mUSB OTG (Peripheral)
Net:
Warning: usb_ether using MAC address from ROM
eth0: usb_ether
starting USB…
USB0: USB EHCI 0.00
USB1: USB OHCI 0.0
scanning bus 0 for devices… 1 USB Device(s) found
scanning usb for storage devices… 0 Storage Device(s) found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
Found U-Boot script /boot.scr
338 bytes read in 2 ms (165 KiB/s)

Executing script at 43100000

28680 bytes read in 5 ms (5.5 MiB/s)
4324144 bytes read in 355 ms (11.6 MiB/s)

Booting kernel from Legacy Image at 42000000 …

Image Name: Linux-3.4.104+
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4324080 Bytes = 4.1 MiB
Load Address: 40008000
Entry Point: 40008000
Verifying Checksum … OK
Loading Kernel Image … OK

Starting kernel …

<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<5>Linux version 3.4.104+ (liu@liu-virtual-machine) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) ) #1 PREEMPT Sun Jun 10 15:21:43 CST 2018
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: sun5i
<6>Memory Reserved:
<6> SYS : 0x43000000 - 0x4300ffff ( 64 kB)
<6> VE : 0x44000000 - 0x48ffffff ( 80 MB)
<6> LCD : 0x49000000 - 0x4affffff ( 32 MB)
Memory policy: ECC disabled, Data cache writeback
<6>sunxi: Allwinner A13 revision B (AW1625/sun5i) detected.
<7>On node 0 totalpages: 131072
<7>free_area_init_node: node 0, pgdat c08dc14c, node_mem_map d0000000
<7> DMA zone: 512 pages used for memmap
<7> DMA zone: 0 pages reserved
<7> DMA zone: 65024 pages, LIFO batch:15
<7> Normal zone: 512 pages used for memmap
<7> Normal zone: 65024 pages, LIFO batch:15
<7>pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
<7>pcpu-alloc: [0] 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
<5>Kernel command line: console=tty1,115200 root=/dev/mmcblk0p2 rootwait panic=10
<6>PID hash table entries: 2048 (order: 1, 8192 bytes)
<6>Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
<6>Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
<6>Memory: 512MB = 512MB total
<5>Memory: 395164k/395164k available, 129124k reserved, 0K highmem
<5>Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0823fe4 (8304 kB)
.init : 0xc0824000 - 0xc0850000 ( 176 kB)
.data : 0xc0850000 - 0xc08e4728 ( 594 kB)
.bss : 0xc08e474c - 0xc0998720 ( 720 kB)
<6>SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
<6>NR_IRQS:128
<6>sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
<6>Console: colour dummy device 80x30
<6>console [tty1] enabled
<6>Calibrating delay loop… 1001.88 BogoMIPS (lpj=5009408)
<6>pid_max: default: 32768 minimum: 301
<6>Mount-cache hash table entries: 512
<6>Initializing cgroup subsys cpuacct
<6>Initializing cgroup subsys devices
<6>Initializing cgroup subsys freezer
<6>Initializing cgroup subsys blkio
<6>CPU: Testing write buffer coherency: ok
<6>hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
<6>Setting up static identity map for 0x40511df0 - 0x40511e24
<6>devtmpfs: initialized
<6>dummy:
<6>NET: Registered protocol family 16
<6>DMA: preallocated 256 KiB pool for atomic coherent allocations
<6>hw-breakpoint: debug architecture 0x4 unsupported.
<6>Init eGon pin module V2.0
SOFTWINNER DMA Driver, © 2003-2004,2006 Simtec Electronics
<6>Initialize DMAC OK
<6>bio: create slab at 0
<5>SCSI subsystem initialized
<6>usbcore: registered new interface driver usbfs
<6>usbcore: registered new interface driver hub
<6>usbcore: registered new device driver usb
<6>Linux video capture interface: v2.00
<6>Advanced Linux Sound Architecture Driver Version 1.0.25.
<6>Switching to clocksource aw_64bits_counter
<6>cfg80211: Calling CRDA to update world regulatory domain
<5>FS-Cache: Loaded
<6>CacheFiles: Loaded
[usb_manager]: CONFIG_USB_SW_SUNXI_USB0_OTG
[sw_hcd0]: usb host driver initialize…
[sw_hcd0]: open_usb_clock
[sw_hcd0]: host_init_state = 1
[sw_hcd0]: platform is usb host
[sw_hcd0]: sw_hcd_host0: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx (X), HB-ISO Tx (X), SoftConn)
[sw_hcd0]: sw_hcd_init_controller: sw_hcd_host0: USB Host mode controller at f1c13000 using PIO, IRQ 38
<6>sw_hcd_host0 sw_hcd_host0: sw_hcd host driver
<6>sw_hcd_host0 sw_hcd_host0: new USB bus registered, assigned bus number 1
<6>hub 1-0:1.0: USB hub found
<6>hub 1-0:1.0: 1 port detected
wrn: hcd is not enable, need not start hcd
[sw_hcd0]: sw_usb_host0_disable start
-------sw_hcd0_soft_disconnect---------
is_on = 0, hcd0_set_vbus_cnt = 0
[sw_hcd_host0]: Set USB Power Off
wrn: hcd is not enable, need not stop hcd
[sw_hcd0]: close_usb_clock
[sw_hcd0]: sw_usb_host0_disable end
[sw_udc]: udc_init: version 20080411
<6>NET: Registered protocol family 2
<6>IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
<6>TCP established hash table entries: 16384 (order: 5, 131072 bytes)
<6>TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
<6>TCP: Hash tables configured (established 16384 bind 16384)
<6>TCP: reno registered
<6>UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>NET: Registered protocol family 1
<6>RPC: Registered named UNIX socket transport module.
<6>RPC: Registered udp transport module.
<6>RPC: Registered tcp transport module.
<6>RPC: Registered tcp NFSv4.1 backchannel transport module.
<6>audit: initializing netlink socket (disabled)
<5>type=2000 audit(0.329:1): initialized
<5>VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
<5>NFS: Registering the id_resolver key type
<6>NTFS driver 2.1.30 [Flags: R/W].
<6>fuse init (API version 7.18)
<6>msgmni has been set to 771
<6>alg: No test for stdrng (krng)
<6>Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
<6>io scheduler noop registered
<6>io scheduler deadline registered
<6>io scheduler cfq registered (default)
<6>sunxi disp driver loaded (/dev/disp api 1.0)
<6>Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
<6>[uart]: used uart info.: 0x02
<6>[uart]: serial probe 1 irq 2 mapbase 0x01c28400
<6>sunxi-uart.1: ttyS0 at MMIO 0x1c28400 (irq = 2) is a U6_16550A
<6>brd: module loaded
<6>loop: module loaded
nand driver is disabled
[spi]: sw spi init !!
[spi]: Get spi devices number failed
[spi]: register spi devices board info failed
[spi]: bus num = 0, spi used = 1
[spi]: source = sdram_pll_p, src_clk = 816000000, mclk 102000000
<6>sun5i-spi sun5i-spi.0: master is unqueued, this is deprecated
[spi]: allwinners SoC SPI Driver loaded for Bus SPI-0 with 1 Slaves attached
[spi]: [spi-0]: driver probe succeed, base f1c05000, irq 10, dma_id 0!
<4>emac_init fetch emac using configuration failed
<6>emac driver is disabled
<6>ehci_hcd: USB 2.0 ‘Enhanced’ Host Controller (EHCI) Driver
<6>ohci_hcd: USB 1.1 ‘Open’ Host Controller (OHCI) Driver
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
WRN:L430(drivers/usb/host/sw_hci_sunxi.c):ERR: gpio_request failed
WRN:L816(drivers/usb/host/sw_hci_sunxi.c):ERR: alloc_pin failed
<1>Unable to handle kernel NULL pointer dereference at virtual address 00000000
<1>pgd = c0004000
<1>[00000000] *pgd=00000000
<0>Internal error: Oops: 80000005 [#1] PREEMPT ARM
Modules linked in:
CPU: 0 Not tainted (3.4.104+ #1)
PC is at 0x0
LR is at sw_ehci_hcd_probe+0xe8/0x304
pc : [<00000000>] lr : [] psr: 20000013
sp : df827e70 ip : 00000400 fp : c0892118
r10: c09912d0 r9 : c08e03f0 r8 : 00000000
r7 : c08924c8 r6 : 00000027 r5 : df954400 r4 : c09912fc
r3 : 00000000 r2 : 00000002 r1 : 00000000 r0 : c09912fc
Flags: nzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
Control: 10c5387d Table: 40004019 DAC: 00000015

LR: 0xc0330afc:
0afc e59f028c e1a0100b ebffcb5b e2505000 0a00004f e5973000 e3a08000 e58580bc
0b1c e1a02008 e58530b8 e897000a e58580c4 e2833001 e0613003 e58530c0 e8970009
0b3c e2601001 e0811003 ebf3a18f e1500008 e58500b0 0a000087 e1a00006 e584502c
0b5c e1a01008 ebfebc1e e2506000 0a00007a e1a01008 e5943090 e1a00004 e12fff33
0b7c e59430a0 e1a00004 e3a01001 e12fff33 e594309c e1a00004 e3a01001 e12fff33
0b9c e5943098 e1a00004 e3a01001 e12fff33 e59530b0 e1a01006 e1a00005 e3a020a0
0bbc e58530f0 ebffcb5e e2506000 1a000057 e1a0000b e1a01005 ebfeb662 e1d934b2
0bdc e3130004 1a000026 e594608c e3a03001 e5843088 e3560000 13a00000 1a000005

SP: 0xdf827df0:
7df0 df8120d8 c077f75b 00000000 df9ff9c0 df827e70 df827e70 00000001 c011b990
7e10 00000000 20000013 ffffffff df827e5c 00000000 c000e598 c09912fc 00000000
7e30 00000002 00000000 c09912fc df954400 00000027 c08924c8 00000000 c08e03f0
7e50 c09912d0 c0892118 00000400 df827e70 c0330b7c 00000000 20000013 ffffffff
7e70 df9ff740 00000000 c0892118 c0892118 c0892120 c098a6d4 c0892118 c08df550
7e90 c0892038 00000000 00000000 c083b9c0 00000000 c02de9b0 00000000 df9ff8c0
7eb0 c0892038 00000000 c0892118 c02dec6c c08921c0 00000000 c0892118 c02dce00
7ed0 df818f5c dfa0bb34 c0892118 c089214c c088eb38 c02de8bc c0892120 c0892118

FP: 0xc0892098:
2098 c088eb38 00000000 00000000 00000000 00000000 c02dfc4c c02dfc68 c02dfc7c
20b8 00000000 00000000 00000000 00000000 dfa0bb80 00000000 00000001 00000000
20d8 01c14400 01c144ff 00000000 00000200 00000000 00000000 00000000 00000028
20f8 00000028 00000000 00000400 00000000 00000000 00000000 c05ae4c4 00000001
2118 c088ea80 dfa0bc00 df9ff6c0 df81d980 dfa06c0c c088ea88 df81d980 c088e948
2138 df9ff740 00000003 00000007 00000000 00000000 00000000 c0892150 c0892150
2158 c088eb38 c0892038 c09912fc 00000000 00000000 00000000 00000000 00000000
2178 c0892500 00000000 ffffffff 00000000 00000000 c089218c c089218c 00000000

R0: 0xc099127c:
127c 00000000 00000000 00000000 00000000 00000000 df871540 00000000 c0991298
129c c0991298 00000000 00000000 c0867870 00000000 00000001 00000001 00000000
12bc c05ad8b8 c09912c0 c09912c0 0bd00000 00002000 00000000 c09912fc 00000000
12dc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
12fc 00000001 652d7773 31696368 00000000 00000000 00000000 00000000 00000000
131c 00000000 f1c14000 c0892110 df954400 00000000 00000000 00000000 00000000
133c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
135c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R4: 0xc099127c:
127c 00000000 00000000 00000000 00000000 00000000 df871540 00000000 c0991298
129c c0991298 00000000 00000000 c0867870 00000000 00000001 00000001 00000000
12bc c05ad8b8 c09912c0 c09912c0 0bd00000 00002000 00000000 c09912fc 00000000
12dc 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
12fc 00000001 652d7773 31696368 00000000 00000000 00000000 00000000 00000000
131c 00000000 f1c14000 c0892110 df954400 00000000 00000000 00000000 00000000
133c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
135c 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R5: 0xdf954380:
4380 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
43a0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
43c0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
43e0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
4400 c0892118 ffffffff c078b318 00000001 00000000 00000001 00000000 00000000
4420 00000000 00000000 00000000 00000000 df954430 df954430 00000000 00000000
4440 00000000 00000001 c078bd68 00000020 00000000 00000000 00000000 00000000
4460 00000000 00000000 00000000 00000000 00000000 c0968dc0 c03233b4 df954400

R7: 0xc0892448:
2448 00000000 00000000 01c1c400 01c1c4ff 00000000 00000200 00000000 00000000
2468 00000000 00000041 00000041 00000000 00000400 00000000 00000000 00000000
2488 ffffffff 00000000 01c1c000 01c1c0ff 00000000 00000200 00000000 00000000
24a8 00000000 00000028 00000028 00000000 00000400 00000000 00000000 00000000
24c8 01c14000 01c140ff df9ff6c0 00000200 c085f4b4 c08773cc 00000000 00000027
24e8 00000027 df9ff6c0 00000400 00000000 00000000 00000000 ffffffff 00000000
2508 00050070 0a000000 00000000 00000024 00000000 00000000 00000000 c078c778
2528 00000000 00000000 c033b5b0 00000000 c033ba4c 00000000 c033b968 c033b924

R9: 0xc08e0370:
0370 00000117 00000000 c078845c c05ad834 c078a950 c078a900 000000ba 00000000
0390 c078845c c05ad920 c078b0f0 c078b004 000006e7 00000000 c078845c c05ad958
03b0 c078b1c4 c078b16c 00000092 00000000 c078845c c05adc9c c078b22c c078b1e0
03d0 000000d9 00000000 c078845c c05adc80 c078b22c c078b200 000000f4 00000000
03f0 c078bd00 c05ae23c c078bd48 c078b2d8 00000097 00000000 c078bd00 c05adffc
0410 c078bd48 c078b338 000000da 00000000 c078bd00 c05adffc c078bd48 c078b410
0430 00000112 00000000 c078bd00 c05ae1a0 c078bd0c c078b4a0 000000a1 00000000
0450 c078bd00 c05ae100 c078b9e8 c07c6f04 00000304 00000000 c078bd00 c05ae10c

R10: 0xc0991250:
1250 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1270 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
1290 df871540 00000000 c0991298 c0991298 00000000 00000000 c0867870 00000000
12b0 00000001 00000001 00000000 c05ad8b8 c09912c0 c09912c0 0bd00000 00002000
12d0 00000000 c09912fc 00000000 00000000 00000000 00000000 00000000 00000000
12f0 00000000 00000000 00000000 00000001 652d7773 31696368 00000000 00000000
1310 00000000 00000000 00000000 00000000 f1c14000 c0892110 df954400 00000000
1330 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
<0>Process swapper (pid: 1, stack limit = 0xdf8262e8)
<0>Stack: (0xdf827e70 to 0xdf828000)
<0>7e60: df9ff740 00000000 c0892118 c0892118
<0>7e80: c0892120 c098a6d4 c0892118 c08df550 c0892038 00000000 00000000 c083b9c0
<0>7ea0: 00000000 c02de9b0 00000000 df9ff8c0 c0892038 00000000 c0892118 c02dec6c
<0>7ec0: c08921c0 00000000 c0892118 c02dce00 df818f5c dfa0bb34 c0892118 c089214c
<0>7ee0: c088eb38 c02de8bc c0892120 c0892118 c088eb38 c02ddd80 c0892120 00000000
<0>7f00: c088ea80 c02dc3dc 00000000 00000000 00000000 c0265f1c c08924c8 c0033148
<0>7f20: c085f4b4 00000002 c0892110 c0892118 c08e4780 c08e4780 000000c4 c083b9c0
<0>7f40: 00000000 c02dff64 00000001 c09912fc 00000006 c08e4780 c08e4780 c083ba74
<0>7f60: c084ebd4 c0008658 00000008 d0401131 c05a3d54 df826028 df827fa4 c07fcd2c
<0>7f80: c073bb40 00000006 d0401139 00000006 df818cd0 c084ebd4 00000006 c08e4780
<0>7fa0: c08e4780 c082421c 000000c4 c08476c0 c08476b4 c0824948 00000006 00000006
<0>7fc0: c082421c c08247cc c000f910 00000013 00000000 00000000 c08247cc c000f910
<0>7fe0: 00000013 00000000 00000000 00000000 00000000 c000f910 ffbdffff ffffffff
c0330b7c (sw_ehci_hcd_probe+0xe8/0x304) from c02de9b0 (driver_probe_device+0x98/0x354)
c02de9b0 (driver_probe_device+0x98/0x354) from c02dce00 (bus_for_each_drv+0x58/0x8c)
c02dce00 (bus_for_each_drv+0x58/0x8c) from c02de8bc (device_attach+0x78/0x80)
c02de8bc (device_attach+0x78/0x80) from c02ddd80 (bus_probe_device+0x84/0xa8)
c02ddd80 (bus_probe_device+0x84/0xa8) from c02dc3dc (device_add+0x530/0x618)
c02dc3dc (device_add+0x530/0x618) from c02dff64 (platform_device_add+0x104/0x1e4)
c02dff64 (platform_device_add+0x104/0x1e4) from c083ba74 (sw_hci_sunxi_init+0xb4/0x100)
c083ba74 (sw_hci_sunxi_init+0xb4/0x100) from c0008658 (do_one_initcall+0x11c/0x174)
c0008658 (do_one_initcall+0x11c/0x174) from [] (kernel_init+0x17c/0x214)
c0824948 (kernel_init+0x17c/0x214) from c000f910 (kernel_thread_exit+0x0/0x8)
<0>Code: bad PC value
<4>—[ end trace fe19e83a8bd67cd2 ]—
<0>Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

<0>Rebooting in 10 seconds…

看教程说是 usb的fex部分或者驱动改下,但实在不知道怎么改,不知道有没有人解决了这个问题