A133 的 otg配置改为 usb_device,开机就炸了
-
/* *usb_used: usb controller enable. 0-disable, 1-enable. *usb_port_type: usb mode. 0-device, 1-host, 2-otg. *usb_detect_type: usb hotplug detect mode. 0-none, 1-vbus/id detect, 2-id/dpdm detect. *usb_drv_vbus_gpio:USB DRY_VBUS pin config or "axp_ctrl" */ usbc0:usbc0@0 { device_type = "usbc0"; usb_port_type = <0x0>; usb_detect_type = <0x0>; usb_id_gpio = <&pio PB 3 0 0 0xffffffff 0xffffffff>; /*usb_det_vbus_gpio = <&pio PH 12 0 0 0xffffffff 0xffffffff>;*/ usb_regulator_io = "nocare"; usb_wakeup_suspend = <0>; usb_luns = <3>; usb_serial_unique = <0>; usb_serial_number = "20080411"; rndis_wceis = <1>; status = "okay"; };
[ 11.571850] init: Running restorecon... [ 11.593527] init: Overriding previous 'ro.' property 'ro.kernel.android.checkjni':'0' with new value '1' [ 11.607685] selinux: avc: denied { set } for scontext=u:r:vendor_init:s0 tcontext=u:object_r:default_prop:s0 tclass=property_service permissive=1 [ 11.607685] [ 11.624963] init: Overriding previous 'ro.' property 'ro.zygote':'zygote32' with new value 'zygote64_32' [ 11.638756] init: Couldn't load property file '/product_services/build.prop': open() failed: No such file or directory: No such file or directory [ 11.653547] init: Couldn't load property file '/factory/factory.prop': open() failed: No such file or directory: No such file or directory [ 11.876234] ueventd: ueventd started! [ 11.885182] selinux: SELinux: Skipping /product/etc/selinux/product_file_contexts: empty file [ 11.885182] [ 11.897239] selinux: SELinux: Loaded file_contexts [ 11.897239] [ 11.904771] ueventd: Parsing file /ueventd.rc... [ 11.911466] ueventd: Parsing file /vendor/ueventd.rc... [ 11.918410] ueventd: Parsing file /odm/ueventd.rc... [ 11.924178] ueventd: Unable to read config file '/odm/ueventd.rc': open() failed: No such file or directory [ 11.935319] ueventd: Parsing file /ueventd.sun50iw10p1.rc... [ 11.941832] ueventd: Unable to read config file '/ueventd.sun50iw10p1.rc': open() failed: No such file or directory [ 11.962798] apexd: Bootstrap subcommand detected [ 12.192659] apexd: wait for '/dev/loop-control' took 196ms [ 12.199352] apexd: Pre-allocated 9 loopback devices [ 12.205377] apexd: Scanning /system/apex for embedded keys [ 12.218087] apexd: Scanning /product/apex for embedded keys [ 12.224907] apexd: ... does not exist. Skipping [ 12.230570] apexd: Scanning /system/apex looking for APEX packages. [ 12.238383] apexd: Found /system/apex/com.android.media.swcodec.apex [ 12.245747] ueventd: Coldboot took 0.29 seconds [ 12.247015] apexd: Skipped when bootstrapping [ 12.247230] apexd: Found /system/apex/com.android.tzdata.apex [ 12.337902] EXT4-fs (loop0): mounted filesystem without journal. Opts: (null) [ 12.418538] EXT4-fs (loop1): mounted filesystem without journal. Opts: (null) [ 12.435582] apexd: 13 output lines suppressed due to ratelimiting [ 12.486940] Registered swp emulation handler [ 12.561408] init: wait for '/dev/block/by-name/media_data' took 0ms [ 12.574804] FAT-fs (mmcblk0p16): bogus number of reserved sectors [ 12.582044] FAT-fs (mmcblk0p16): Can't find a valid FAT filesystem [ 12.622798] logd.auditd: start [ 12.626593] logd.klogd: 12476493880 [ 13.395711] make_f2fs: [ 13.395711] [ 13.400175] make_f2fs: F2FS-tools: mkfs.f2fs Ver: 1.12.0 (2018-11-12) [ 13.400175] [ 13.409213] make_f2fs: [ 13.409213] [ 13.413644] make_f2fs: Info: Disable heap-based policy [ 13.413644] [ 13.421105] make_f2fs: Info: Debug level = 1 [ 13.421105] [ 13.427619] make_f2fs: Info: Trim is enabled [ 13.427619] [ 13.433248] random: crng init done [ 13.433253] random: 7 urandom warning(s) missed due to ratelimiting [ 13.445045] make_f2fs: Info: Set conf for android [ 13.445045] [ 13.452022] make_f2fs: Info: No support kernel version! [ 13.452022] [ 13.459677] make_f2fs: Info: wanted sectors = 2662395 (in 4096 bytes) [ 13.459677] [ 13.468602] make_f2fs: Info: total device sectors = 21299167 (in 512 bytes) [ 13.468602] [ 13.531539] F2FS-fs (mmcblk0p17): Found nat_bits in checkpoint [ 13.691587] F2FS-fs (mmcblk0p17): Mounted with checkpoint version = 58930275 [ 14.108476] EXT4-fs (mmcblk0p7): Ignoring removed nomblk_io_submit option [ 14.118552] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: errors=remount-ro,nomblk_io_submit [ 14.188106] EXT4-fs (mmcblk0p7): Ignoring removed nomblk_io_submit option [ 14.198188] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: barrier=1,data=ordered,nomblk_io_submit,noauto_da_alloc,errors=panic [ 14.375666] EXT4-fs (mmcblk0p11): mounted filesystem with ordered data mode. Opts: errors=panic [ 14.408645] init: 73 output lines suppressed due to ratelimiting [ 14.423505] zram0: detected capacity change from 0 to 1553670144 [ 14.463036] mkswap: Swapspace size: 1517252k, UUID=ac579f37-c51c-4877-9454-2eed9944774d [ 14.473601] Adding 1517252k swap on /dev/block/zram0. Priority:-1 extents:1 across:1517252k SS console:/ $ [ 14.851035] usbcore: registered new interface driver uvcvideo [ 14.857667] USB Video Class driver (1.1.1) [ 14.873483] [ 14.873483] insmod_device_driver [ 14.873483] [ 14.880856] Unable to handle kernel NULL pointer dereference at virtual address 000000c0 [ 14.889960] pgd = ffffff80096b3000 [ 14.893787] [000000c0] *pgd=00000000bf7fe003, *pud=00000000bf7fe003, *pmd=0000000000000000 [ 14.903108] Internal error: Oops: 96000005 [#1] PREEMPT SMP [ 14.909372] Modules linked in: uvcvideo vin_v4l2 imx386_2lane_mipi imx278_mipi gc030a_mipi gc2385_mipi vin_io videobuf2_v4l2 videobuf2_vmalloc videobuf2_dma_contig videobuf2_memops videobuf2_core [ 14.928997] CPU: 1 PID: 1044 Comm: usb_device_chos Not tainted 4.9.170 #47 [ 14.936719] Hardware name: sun50iw10 (DT) [ 14.941231] task: ffffffc07b889d00 task.stack: ffffffc07a63c000 [ 14.947900] PC is at _raw_spin_lock_irqsave+0x2c/0x68 [ 14.953592] LR is at _raw_spin_lock_irqsave+0x28/0x68 [ 14.959274] pc : [<ffffff8008b972bc>] lr : [<ffffff8008b972b8>] pstate: 804001c5 [ 14.967588] sp : ffffffc07a63fd40 [ 14.971321] x29: ffffffc07a63fd40 x28: 0000000000000000 [ 14.977302] x27: 0000000000000000 x26: 0000000000000000 [ 14.983268] x25: 0000000000000000 x24: ffffff80087306a0 [ 14.989244] x23: 0000000000000000 x22: 0000000000000000 [ 14.995219] x21: 00000000000007d0 x20: 0000000000000140 [ 15.001193] x19: 00000000000000c0 x18: ffffff80093fdf10 [ 15.007171] x17: 0000007f8c310d60 x16: ffffff8008242d48 [ 15.013146] x15: ffffffc0fa63fc57 x14: ffffffffffffffff [ 15.019117] x13: ffffffc07a63fc5b x12: 0000000000000001 [ 15.025089] x11: 000000000000002b x10: 0000000000000009 [ 15.031063] x9 : 000000ffffffffff x8 : 0000000000000000 [ 15.037039] x7 : ffffff80093fdf10 x6 : ffffffc07f71b090 [ 15.043011] x5 : 0000000000000000 x4 : ffffffc07a63fd60 [ 15.048990] x3 : ffffff80085d9940 x2 : 00000000000409aa [ 15.054963] x1 : ffffff8008b97290 x0 : ffffffc07b889d00 [ 15.060939] [ 15.060939] SP: 0xffffffc07a63fcc0: [ 15.065747] apexd: Marking APEXd as starting [ 15.067524] apexd: Scanning /system/apex for embedded keys [ 15.068627] apexd: Found bundled key in package /system/apex/com.android.media.swcodec.apex [ 15.070288] apexd: Found bundled key in package /system/apex/com.android.tzdata.apex [ 15.071348] apexd: Found bundled key in package /system/apex/com.android.apex.cts.shim.apex [ 15.072411] apexd: Found bundled key in package /system/apex/com.android.resolv.apex [ 15.073472] apexd: Found bundled key in package /system/apex/com.android.runtime.debug.apex [ 15.074566] apexd: Found bundled key in package /system/apex/com.android.conscrypt.apex [ 15.075585] apexd: Found bundled key in package /system/apex/com.android.media.apex [ 15.076170] apexd: Scanning /product/apex for embedded keys [ 15.146881] fcc0 00000000 00000000 00000000 00000000 087306a0 ffffff80 00000000 00000000 [ 15.156116] fce0 00000000 00000000 00000000 00000000 00000000 00000000 7a63fd40 ffffffc0 [ 15.165345] fd00 08b972b8 ffffff80 7a63fd40 ffffffc0 08b972bc ffffff80 804001c5 00000000 [ 15.174574] fd20 7a63fd40 ffffffc0 08b972b8 ffffff80 ffffffff ffffffff 00000140 00000000 [ 15.183803] fd40 7a63fd60 ffffffc0 085d9940 ffffff80 00000010 00000000 000000c0 00000000 [ 15.193031] fd60 7a63fd90 ffffffc0 086dbf3c ffffff80 00000000 00000000 00000010 00000000 [ 15.202261] fd80 0969eb20 ffffff80 00000000 00000000 7a63fdb0 ffffffc0 08732148 ffffff80 [ 15.211489] fda0 0969e000 ffffff80 093fd000 ffffff80 7a63fdf0 ffffffc0 08730718 ffffff80 [ 15.220719] [ 15.220719] X0: 0xffffffc07b889c80: [ 15.226296] 9c80 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.235524] 9ca0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.244752] 9cc0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.253977] 9ce0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.263204] 9d00 00000012 00000000 ffffffff ffffffff 4161c000 00000000 00000002 00000000 [ 15.272430] 9d20 00000000 00000000 7a63c000 ffffffc0 00000002 00208040 00000000 00000000 [ 15.281659] 9d40 00000000 00000000 00000001 00000001 00000001 00000000 fffeacbd 00000000 [ 15.290884] 9d60 7cd88000 ffffffc0 00000001 00000001 00000078 00000078 00000078 00000000 [ 15.300113] [ 15.300113] X4: 0xffffffc07a63fce0: [ 15.305687] fce0 00000000 00000000 00000000 00000000 00000000 00000000 7a63fd40 ffffffc0 [ 15.314915] fd00 08b972b8 ffffff80 7a63fd40 ffffffc0 08b972bc ffffff80 804001c5 00000000 [ 15.324141] fd20 7a63fd40 ffffffc0 08b972b8 ffffff80 ffffffff ffffffff 00000140 00000000 [ 15.333370] fd40 7a63fd60 ffffffc0 085d9940 ffffff80 00000010 00000000 000000c0 00000000 [ 15.342597] fd60 7a63fd90 ffffffc0 086dbf3c ffffff80 00000000 00000000 00000010 00000000 [ 15.351824] fd80 0969eb20 ffffff80 00000000 00000000 7a63fdb0 ffffffc0 08732148 ffffff80 [ 15.361052] fda0 0969e000 ffffff80 093fd000 ffffff80 7a63fdf0 ffffffc0 08730718 ffffff80 [ 15.370280] fdc0 0969e9e8 ffffff80 08eacf10 ffffff80 0969e9f0 ffffff80 7b889d00 ffffffc0 [ 15.379510] [ 15.379510] X6: 0xffffffc07f71b010: [ 15.385087] b010 08003000 ffffff80 00000044 00000000 7f7170a0 ffffffc0 7f71b090 ffffffc0 [ 15.394315] b030 09622a30 ffffff80 00000000 00000000 7f71b080 ffffffc0 08082b68 ffffff80 [ 15.403544] b050 7a63fa60 ffffffc0 ffffffff 0000007f 416b5000 00000000 08113be8 ffffff80 [ 15.412771] b070 80400145 00000000 00000000 00000000 7a63fb90 ffffffc0 7a63fa60 ffffffc0 [ 15.422001] b090 00000000 00000000 00000000 00000000 7b80c4f0 ffffffc0 00000000 00000000 [ 15.431228] b0b0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.440458] b0d0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.449685] b0f0 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.458915] [ 15.458915] X13: 0xffffffc07a63fbdb: [ 15.464589] fbd8 7c611c00 ffffffc0 093fd000 ffffff80 7c611c68 ffffffc0 00000000 00000000 [ 15.473818] fbf8 00000160 00000000 7a63fc40 ffffffc0 000409aa 00000000 7b889d00 ffffffc0 [ 15.483047] fc18 08b97290 ffffff80 000409aa 00000000 085d9940 ffffff80 7a63fd60 ffffffc0 [ 15.492276] fc38 00000000 00000000 7f71b090 ffffffc0 093fdf10 ffffff80 00000000 00000000 [ 15.501505] fc58 ffffffff 000000ff 00000009 00000000 0000002b 00000000 00000001 00000000 [ 15.510728] fc78 7a63fc5b ffffffc0 ffffffff ffffffff fa63fc57 ffffffc0 08242d48 ffffff80 [ 15.519957] fc98 8c310d60 0000007f 093fdf10 ffffff80 000000c0 00000000 00000140 00000000 [ 15.529182] fcb8 000007d0 00000000 00000000 00000000 00000000 00000000 087306a0 ffffff80 [ 15.538410] fcd8 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 [ 15.547638] [ 15.547638] X15: 0xffffffc0fa63fbd7: [ 15.553311] fbd4 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.562548] fbf4 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.571777] fc14 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.581007] fc34 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.590236] fc54 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.599465] fc74 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.608692] fc94 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.617920] fcb4 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.627145] fcd4 ******** ******** ******** ******** ******** ******** ******** ******** [ 15.636380] [ 15.636380] X29: 0xffffffc07a63fcc0: [ 15.642054] fcc0 00000000 00000000 00000000 00000000 087306a0 ffffff80 00000000 00000000 [ 15.651282] fce0 00000000 00000000 00000000 00000000 00000000 00000000 7a63fd40 ffffffc0 [ 15.660509] fd00 08b972b8 ffffff80 7a63fd40 ffffffc0 08b972bc ffffff80 804001c5 00000000 [ 15.669739] fd20 7a63fd40 ffffffc0 08b972b8 ffffff80 ffffffff ffffffff 00000140 00000000 [ 15.678967] fd40 7a63fd60 ffffffc0 085d9940 ffffff80 00000010 00000000 000000c0 00000000 [ 15.688194] fd60 7a63fd90 ffffffc0 086dbf3c ffffff80 00000000 00000000 00000010 00000000 [ 15.697422] fd80 0969eb20 ffffff80 00000000 00000000 7a63fdb0 ffffffc0 08732148 ffffff80 [ 15.706649] fda0 0969e000 ffffff80 093fd000 ffffff80 7a63fdf0 ffffffc0 08730718 ffffff80 [ 15.715878] [ 15.717550] Process usb_device_chos (pid: 1044, stack limit = 0xffffffc07a63c000) [ 15.725961] Stack: (0xffffffc07a63fd40 to 0xffffffc07a640000) [ 15.732417] fd40: ffffffc07a63fd60 ffffff80085d9940 0000000000000010 00000000000000c0 [ 15.741219] fd60: ffffffc07a63fd90 ffffff80086dbf3c 0000000000000000 0000000000000010 [ 15.750022] fd80: ffffff800969eb20 0000000000000000 ffffffc07a63fdb0 ffffff8008732148 [ 15.758824] fda0: ffffff800969e000 ffffff80093fd000 ffffffc07a63fdf0 ffffff8008730718 [ 15.767625] fdc0: ffffff800969e9e8 ffffff8008eacf10 ffffff800969e9f0 ffffffc07b889d00 [ 15.776427] fde0: ffffffc07a63fdf0 00000000000409aa ffffffc07a63fe20 ffffff80080d06cc [ 15.785229] fe00: ffffffc07a49d880 ffffff800961e910 ffffff8008e28400 ffffffc07b889d00 [ 15.794030] fe20: 0000000000000000 ffffff80080834f0 ffffff80080d05e0 ffffffc07a49d880 [ 15.802831] fe40: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.811634] fe60: 0000000000000000 ffffffc07a49d880 0000000000000000 0000000000000000 [ 15.820435] fe80: ffffffc000000000 ffffffc07a63fe88 ffffffc07a63fe88 0000000000000000 [ 15.829235] fea0: 0000000000000000 ffffffc07a63fea8 ffffffc07a63fea8 00000000000409aa [ 15.838037] fec0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.846839] fee0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.855641] ff00: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.864442] ff20: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.873245] ff40: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.882045] ff60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.890847] ff80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.899648] ffa0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.908451] ffc0: 0000000000000000 0000000000000005 0000000000000000 0000000000000000 [ 15.917252] ffe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000 [ 15.926052] Call trace: [ 15.928796] Exception stack(0xffffffc07a63fb50 to 0xffffffc07a63fc80) [ 15.936034] fb40: 00000000000000c0 0000007fffffffff [ 15.944835] fb60: 00000000416b5000 ffffff8008b972bc 00000000804001c5 ffffffc07734e700 [ 15.953636] fb80: ffffffc078c52280 00000000000409aa 0000000000000140 ffffffc07734e700 [ 15.962437] fba0: ffffffc07a63fbc0 ffffff8008120750 0000000000000000 ffffff80093fd000 [ 15.971238] fbc0: ffffffc07a63fc90 ffffff8008119394 ffffffc078c52280 ffffffc07c611c00 [ 15.980040] fbe0: ffffff80093fd000 ffffffc07c611c68 0000000000000000 0000000000000160 [ 15.988842] fc00: ffffffc07a63fc40 00000000000409aa ffffffc07b889d00 ffffff8008b97290 [ 15.997644] fc20: 00000000000409aa ffffff80085d9940 ffffffc07a63fd60 0000000000000000 [ 16.006446] fc40: ffffffc07f71b090 ffffff80093fdf10 0000000000000000 000000ffffffffff [ 16.015245] fc60: 0000000000000009 000000000000002b 0000000000000001 ffffffc07a63fc5b [ 16.024054] [<ffffff8008b972bc>] _raw_spin_lock_irqsave+0x2c/0x68 [ 16.030909] [<ffffff80085d9940>] pm_wakeup_event+0x30/0x60 [ 16.037077] [<ffffff80086dbf3c>] dual_role_instance_changed+0x2c/0x78 [ 16.044318] [<ffffff8008732148>] usb_msg_center+0x168/0x248 [ 16.050581] [<ffffff8008730718>] usb_device_scan_thread+0x78/0x98 [ 16.057432] [<ffffff80080d06cc>] kthread+0xec/0x100 [ 16.062913] [<ffffff80080834f0>] ret_from_fork+0x10/0x20 [ 16.068885] Code: d50342df 52800020 97d5123f f9800271 (885ffe60) [ 16.075734] ---[ end trace 98cea79dca8f21d1 ]--- [ 16.080920] Kernel panic - not syncing: Fatal exception [ 16.086790] SMP: stopping secondary CPUs [ 16.091203] Kernel Offset: disabled [ 16.095137] Memory Limit: none [ 16.098583] ---[ end Kernel panic - not syncing: Fatal exception [ 16.105330] sunxi dump enabled [ 16.108755] dump regs done [ 16.111844] flush cache done [ 16.115097] crashdump enter NOTICE: sunxi_usb_dev_register NOTICE: sunxi_usb_main_loop weak:otg_phy_config NOTICE: usb init ok set address 0xb set address 0xb ok
-
改回去
然后把 PB3 PH14 两个都上拉就能进入usb_device了。
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号