您尚未登录。

#1 全志 SOC » tpkey-f1c200s 加载成功 但是不工作 » 2023-05-19 15:08:35

Mr.Liu
回复: 0

tp_key0:tp_key@0x01c24800{
compatible = "allwinner,tp_key";
reg = <0x0 0x01c24800 0x0 0xf0>;
interrupts = <20>;
key_cnt = <5>;
key1 = <280 115>;
key2 = <600 114>;
key3 = <980 139>;
key4 = <1167 102>;
key5 = <1300 28>;
status = "okay";
};

使用的PA0
启动的时候已经加载成功,但是
PA0 一直3.8V?!
这是为何?

#3 全志 SOC » F1C200S TF卡启动 卡在 VFS: Cannot open root device "mmcblk0p6" or unknown » 2023-01-06 15:32:38

Mr.Liu
回复: 2

使用PhoenixSuit工具烧录成功
tiny200 R3
卡在 VFS: Cannot open root device "mmcblk0p6" or unknown-b
系统 Tina 3.5.1
请问如何处理?


U-Boot 2014.07 (Jul 31 2018 - 14:59:19) Allwinner Technology

uboot commit : 6604446f7bddb8fe53f2b993100929f92a5f4d6e

i2c_init: by cpux
[I2C-DEBUG]:i2c_set_clock() 354
[I2C-ERROR]:twi_send_clk_9pulse() 136 SDA is still Stuck Low, failed.
i2c_init ok
[0.444]pmbus:   ready
axp: get node[/soc/pmu0] error
axp_probe error
[0.450]PMU: cpux 408 Mhz,AXI=408 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz
key value = 4294967295, fel_key = [256,426]
DRAM:  64 MiB
Relocation Offset is: 03524000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
workmode = 0,storage type = 6
[0.533]MMC:      1
SUNXI SD/MMC: 1
used mbr [0], count = 8
env and backup env are not synchronized,now to synchronize
logo addr = 0x83f00000
sunxi_read_bootlogo: read bootlogo partition successful
do not find fastboot status flag
--------fastboot partitions--------
-total partitions:8-
-name-        -start-       -size-
bootlogo    : 400000        80000
env         : 480000        40000
boot        : 4c0000        600000
rootfs      : ac0000        1900000
rootfs_data : 23c0000       1900000
misc        : 3cc0000       40000
private     : 3d00000       40000
UDISK       : 3d40000       0
-----------------------------------
disable nand error: FDT_ERR_BADPATH
disable nand error: FDT_ERR_BADPATH
## error: update_fdt_dram_para : FDT_ERR_NOTFOUND
PowerBus = 0( 2:vBus 3:acBus other: not exist)
no battery exist
sunxi_bmp_logo_display
Hit any key to stop autoboot:  0
## Booting kernel from Legacy Image at 80007fc0 ...
   Image Name:   ARM OpenWrt Linux-3.10.65
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2902336 Bytes = 2.8 MiB
   Load Address: 80008000
   Entry Point:  80008000
   XIP Kernel Image ... OK
   reserving fdt memory region: addr=81000000 size=10000
   Using Device Tree in place at 81000000, end 8100f3df

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.65 (l@l-VirtualBox) (gcc version 6.4                                                                                                                                                             .1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #51 Fri Jan 6 07:08:41 UTC 2023
[    0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Allwinner A1X (Device Tree), model: sun3iw1p1
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] cma: CMA: reserved 32 MiB at 82000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat c05dd90c, node_mem_map c060e00                                                                                                                                                             0
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag                                                                                                                                                             es: 16256
[    0.000000] Kernel command line: enforcing=1 earlyprintk=sunxi-uart,0x01c2500                                                                                                                                                             0 initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p6 init=/pse                                                                                                                                                             udo_init rdinit=/rdinit partitions=bootlogo@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0                                                                                                                                                             p6:rootfs@mmcblk0p7:rootfs_data@mmcblk0p8:misc@mmcblk0p9:private@mmcblk0p10:UDIS                                                                                                                                                             K@mmcblk0p1 cma=32M rootdelay=5 fb_base=0x83f00000 androidboot.serialno=00000000                                                                                                                                                             00000000000 boot_type=6
[    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: 64MB = 64MB total
[    0.000000] Memory: 25788k/25788k available, 39748k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc4800000 - 0xff000000   ( 936 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04cff84   (4896 kB)
[    0.000000]       .init : 0xc04d0000 - 0xc04ee8e8   ( 123 kB)
[    0.000000]       .data : 0xc04f0000 - 0xc05de228   ( 953 kB)
[    0.000000]        .bss : 0xc05de228 - 0xc060d4c0   ( 189 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] of_sunxi_clocks_init : sunxi_clk_base[0xf1c20000]
[    0.000000] pll_cpu-set_default_rate=552000000 success!
[    0.000000] pll_video-set_default_rate=297000000 success!
[    0.000000] pll_ddr-set_default_rate=312000000 success!
[    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 17895                                                                                                                                                             6ms
[    0.000000] Console: colour dummy device 80x30
[    0.005326] Calibrating delay loop... 275.25 BogoMIPS (lpj=1376256)
[    0.075252] pid_max: default: 32768 minimum: 301
[    0.080431] Mount-cache hash table entries: 512
[    0.086388] CPU: Testing write buffer coherency: ok
[    0.092164] Setting up static identity map for 0xc03b37f8 - 0xc03b3850
[    0.101428] devtmpfs: initialized
[    0.107067] pinctrl core: initialized pinctrl subsystem
[    0.119420] NET: Registered protocol family 16
[    0.127429] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.135090] dump_class_init,844, success
[    0.143949] sun3iw1p1-pinctrl pio: initialized sunXi PIO driver
[    0.167944] bio: create slab <bio-0> at 0
[    0.173480] pwm module init!
[    0.178247] SCSI subsystem initialized
[    0.182527] usbcore: registered new interface driver usbfs
[    0.188345] usbcore: registered new interface driver hub
[    0.194224] usbcore: registered new device driver usb
[    0.201750] gpio=0,mul_sel=0,pull=0,drv_level=0,data=0
[    0.207471] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.216022] pcf857x 0-0020: retry commucation.7
[    0.220983] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.229506] pcf857x 0-0020: retry commucation.6
[    0.234484] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.243006] pcf857x 0-0020: retry commucation.5
[    0.247955] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.256473] pcf857x 0-0020: retry commucation.4
[    0.261420] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.269940] pcf857x 0-0020: retry commucation.3
[    0.274912] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.283427] pcf857x 0-0020: retry commucation.2
[    0.288373] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.296890] pcf857x 0-0020: retry commucation.1
[    0.301835] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, de                                                                                                                                                             v addr: 0x20)
[    0.310380] pcf857x: probe of 0-0020 failed with error -70
[    0.319965] Linux video capture interface: v2.00
[    0.325382] Advanced Linux Sound Architecture Driver Initialized.
[    0.333353] cfg80211: Calling CRDA to update world regulatory domain
[    0.340857] Switching to clocksource sun3i high-res couter
[    0.366760] get det_vbus is fail, 84
[    0.372119] NET: Registered protocol family 2
[    0.378733] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.385849] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.392520] TCP: Hash tables configured (established 512 bind 512)
[    0.399088] TCP: reno registered
[    0.402484] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.408594] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.415677] NET: Registered protocol family 1
[    0.436050] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.442805] msgmni has been set to 114
[    0.450042] io scheduler noop registered
[    0.454212] io scheduler cfq registered (default)
[    0.459190] [pm]aw_pm_init!
[    0.462470] [pm]valid
[    0.464875] [pm]valid
[    0.467692] [DISP]disp_module_init
[    0.526744] pll_freq=297000000HZ, lcd_dclk_freq=33000000HZ, clk_div=9
[    0.534153] num_screens=1
[    0.537017] screen_id=0
[    0.539596] para->mclk[MOD_CLK_LCD1CH0]=0xc180c340
[    0.544546] para->mclk[MOD_CLK_LCD1CH1]=0xc180c440
[    0.549546] disp tv init
[    0.552215] tcon_clk=0xc180c340, tcon_clk_parent=0x0
[    0.557387] tcon_clk=0xc180c340, tcon_clk_parent=0xc1804400
[    0.563136] tve_clk=0xc180c440, tve_clk_parent=0xc1804400
[    0.568738] disp al tv init
[    0.574419] fetch script datadisp.screen2_output_type fail
[    0.580509] fetch script datadisp.screen2_output_mode fail
[    0.588871] fetch script datadisp.fb2_format fail
[    0.594047] fetch script datadisp.fb2_scaler_mode_enable fail
[    0.600349] fetch script datadisp.fb2_width fail
[    0.605435] fetch script datadisp.fb2_height fail
[    0.633748] [DISP]disp_module_init finish
[    0.652188] uart1: ttyS1 at MMIO 0x1c25400 (irq = 104) is a SUNXI
[    0.658632] sw_console_setup()1324 - console setup baud 115200 parity n bits                                                                                                                                                              8, flow n
[    0.666854] console [ttyS1] enabled, bootconsole disabled
[    0.666854] console [ttyS1] enabled, bootconsole disabled
[    0.679426] misc dump reg init
[    0.684584] [NAND]Failed to insmod nand!!!
[    0.689742] sunxi-wlan wlan: wlan_busnum (0)
[    0.694501] sunxi-wlan wlan: wlan_power_num (0)
[    0.699629] sunxi-wlan wlan: Missing wlan_io_regulator.
[    0.705436] sunxi-wlan wlan: io_regulator_name ((null))
[    0.711319] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[    0.719180] ------------SUNXI_RF: Set regon for SUN3IW1P1_R6!----------------
[    0.727157] sunxi-wlan wlan: wlan_regon gpio=-1048148608  mul-sel=-1048355436                                                                                                                                                               pull=-1048355480  drv_level=-1072827436  data=-1072829732
[    0.740804] sunxi-wlan wlan: can't request wlan_regon gpio 2041
[    0.747441] platform wlan: Driver sunxi-wlan requests probe deferral
[    0.754833] lradc_battery_probe:lradc_battery_probe ++++++
[    0.761012] lradc_battery_dts_parse:lradc_battery_dts_parse ++++++
[    0.767952] key base: f1c23400
[    0.771476] irq num: 114 !
[    0.774480] battery_data_hw_init:battery_data_hw_init ++++++
[    0.780883] lradc_battery_probe:lradc_battery_probe ------
[    0.787709] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.795515] usbcore: registered new interface driver usb-storage
[    0.802391] usbcore: registered new interface driver ums-alauda
[    0.809151] usbcore: registered new interface driver ums-cypress
[    0.815910] usbcore: registered new interface driver ums-datafab
[    0.822741] usbcore: registered new interface driver ums_eneub6250
[    0.829744] usbcore: registered new interface driver ums-freecom
[    0.836489] usbcore: registered new interface driver ums-isd200
[    0.843235] usbcore: registered new interface driver ums-jumpshot
[    0.850159] usbcore: registered new interface driver ums-karma
[    0.856788] usbcore: registered new interface driver ums-onetouch
[    0.863681] usbcore: registered new interface driver ums-realtek
[    0.870509] usbcore: registered new interface driver ums-sddr09
[    0.877236] usbcore: registered new interface driver ums-sddr55
[    0.883888] usbcore: registered new interface driver ums-usbat
[    0.891321] gpio_request failed
[    0.894830] get regulator_io is no nocare
[    0.899530] sunxi_hcd_host0 1c13000.otghci0-controller: sunxi_hcd host driver
[    0.907549] sunxi_hcd_host0 1c13000.otghci0-controller: new USB bus registere                                                                                                                                                             d, assigned bus number 1
[    0.919284] hub 1-0:1.0: USB hub found
[    0.923506] hub 1-0:1.0: 1 port detected
[    0.928442] wrn: hcd is not enable, need not stop hcd
[    0.934795] sunxi_keyboard_startup: keyboard has no clk.
[    0.941322] input: sunxi-keyboard as /devices/virtual/input/input0
[    0.949387] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    0.956477] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x20, de                                                                                                                                                             v addr: 0x51)
[    0.965745] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[    0.972942] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    0.980593] sunxi cedar version 0.1
[    0.984706] VE: install start!!!
[    0.984706]
[    0.990166] cedar_ve: cedar-ve the get irq is 103
[    0.996025] VE: install end!!!
[    0.996025]
[    1.002233] sunxi-mmc sdc1: SD/MMC/SDIO Host Controller Driver(v0.91 2018-5-2                                                                                                                                                             9 14:19) Compiled in Jan  6 2023 at 02:10:49
[    1.014718] sunxi-mmc sdc1: Can't get vmmc regulator string
[    1.020995] sunxi-mmc sdc1: Can't get vqmmc regulator string
[    1.027353] sunxi-mmc sdc1: Can't get vdmmc regulator string
[    1.033642] sunxi-mmc sdc1: Failed getting OCR mask: 0
[    1.040828] sunxi-mmc sdc1: ***set host ocr***
[    1.046180] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 t                                                                                                                                                             iming LEGACY(SDR12) dt B
[    1.066751] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 widt                                                                                                                                                             h 1 timing LEGACY(SDR12) dt B
[    1.096845] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 widt                                                                                                                                                             h 1 timing LEGACY(SDR12) dt B
[    1.107765] sunxi-mmc sdc1: base:0xf1c10000 irq:106
[    1.117523] failed to get gpio-spk and gpio_num
[    1.125882] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTR
[    1.133982] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTL
[    1.141985] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKL
[    1.149762] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKR
[    1.157530] sunxi-codec-machine sound.2: ASoC: DAPM unknown pin External Spea                                                                                                                                                             ker
[    1.166888] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 widt                                                                                                                                                             h 1 timing LEGACY(SDR12) dt B
[    1.185665] sunxi-codec-machine sound.2:  sun3iw1codec <-> 1c23c00.cpudai0-co                                                                                                                                                             ntroller mapping ok
[    1.195640] sunxi-codec-machine sound.2: ASoC: no sink widget found for MainM                                                                                                                                                             ic Bias
[    1.204323] sunxi-codec-machine sound.2: ASoC: Failed to add route External M                                                                                                                                                             ainMic -> direct -> MainMic Bias
[    1.215374] sunxi-codec-machine sound.2: ASoC: no source widget found for Mai                                                                                                                                                             nMic Bias
[    1.224202] sunxi-codec-machine sound.2: ASoC: Failed to add route MainMic Bi                                                                                                                                                             as -> direct -> MIC1P
[    1.234178] sunxi-codec-machine sound.2: ASoC: no source widget found for Mai                                                                                                                                                             nMic Bias
[    1.243001] sunxi-codec-machine sound.2: ASoC: Failed to add route MainMic Bi                                                                                                                                                             as -> direct -> MIC1N
[    1.254118] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 widt                                                                                                                                                             h 1 timing LEGACY(SDR12) dt B
[    1.265852] sunxi-mmc sdc1: smc 0 p1 err, cmd 1, RTO !!
[    1.271835] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 t                                                                                                                                                             iming LEGACY(SDR12) dt B
[    1.284080] ipip: IPv4 over IPv4 tunneling driver
[    1.290600] gre: GRE over IPv4 demultiplexor driver
[    1.296031] ip_gre: GRE over IPv4 tunneling driver
[    1.304836] TCP: cubic registered
[    1.308644] Initializing XFRM netlink socket
[    1.313431] NET: Registered protocol family 17
[    1.318502] NET: Registered protocol family 15
[    1.323977] VFP support v0.3: not present
[    1.329654] [LCD]lcd_module_init
[    1.337237] enhance_en=1
[    1.340114] matrixresult:(0x0, 0x3c4, 0x0, 0x0)
[    1.345282] pll_freq=297000000HZ, lcd_dclk_freq=33000000HZ, clk_div=9
[    1.352546] clk_div=9
[    1.355086] [DISP] disp_sys_gpio_request,line:303:    disp_sys_gpio_request f                                                                                                                                                             ailed, gpio_name=lcd_gpio_0, gpio=2043, ret=-517
[    1.369187] [LCD]open, step 0 finish
[    1.406749] [LCD]open, step 1 finish
[    1.466718] [LCD]open, step 2 finish
[    1.586733] ------------[ cut here ]------------
[    1.591930] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[    1.599719] invalid GPIO -517
[    1.603039] Modules linked in:
[    1.606445] CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted 3.10.65 #51
[    1.613480] Workqueue: events start_work
[    1.617886] Backtrace:
[    1.620701] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[    1.630116]  r7:0000007e r6:c047465a r5:00000009 r4:c185bda8
[    1.636516] [<c001351c>] (show_stack+0x0/0x1c) from [<c03b0700>] (dump_stack+0x20/0x28)
[    1.645507] [<c03b06e0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[    1.655461] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[    1.666019]  r9:c05f0380 r8:c04754ea r7:00000001 r6:00000000 r5:c18ce3c0
r4:fffffdfb
[    1.674864] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c017fb98>] (gpio_to_desc+0x28/0x4c)
[    1.684651]  r3:fffffdfb r2:c0474649
[    1.688730] [<c017fb70>] (gpio_to_desc+0x0/0x4c) from [<c017fc3c>] (gpio_get_value_cansleep+0x10/0x44)
[    1.699134] [<c017fc2c>] (gpio_get_value_cansleep+0x0/0x44) from [<c018fbd0>] (disp_sys_gpio_set_direction+0x20/0xb8)
[    1.710994] [<c018fbb0>] (disp_sys_gpio_set_direction+0x0/0xb8) from [<c01a6130>] (disp_lcd_gpio_set_direction+0xa8/0xc8)
[    1.723201]  r5:c18ce3c0 r4:c1814000
[    1.727266] [<c01a6088>] (disp_lcd_gpio_set_direction+0x0/0xc8) from [<c01a1b04>] (bsp_disp_lcd_gpio_set_direction+0x38/0x44)
[    1.739868]  r7:c1814000 r6:c05f0108 r5:00000001 r4:00000000
[    1.746222] [<c01a1acc>] (bsp_disp_lcd_gpio_set_direction+0x0/0x44) from [<c01ac648>] (sunxi_lcd_gpio_set_direction+0x20/0x30)
[    1.758922]  r5:00000000 r4:00000003
[    1.762933] [<c01ac628>] (sunxi_lcd_gpio_set_direction+0x0/0x30) from [<c01afd94>] (LCD_bl_open+0x28/0x3c)
[    1.773743] [<c01afd6c>] (LCD_bl_open+0x0/0x3c) from [<c01893e4>] (drv_lcd_enable+0xa0/0xe0)
[    1.783175] [<c0189344>] (drv_lcd_enable+0x0/0xe0) from [<c0189530>] (start_work+0x10c/0x1cc)
[    1.792692]  r9:c05f0380 r8:c0475507 r7:00000001 r6:c0475497 r5:c05f05f4
r4:00000000
[    1.801479] [<c0189424>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[    1.811304] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[    1.822187] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[    1.832831]  r5:c04fcbd0 r4:c1822e40
[    1.836915] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[    1.845930] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[    1.854877]  r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[    1.861221] ---[ end trace d6a845cbc9034914 ]---
[    1.866341] ------------[ cut here ]------------
[    1.871563] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[    1.879324] invalid GPIO -517
[    1.882610] Modules linked in:
[    1.886014] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G        W    3.10.65 #51
[    1.894109] Workqueue: events start_work
[    1.898507] Backtrace:
[    1.901287] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[    1.910719]  r7:0000007e r6:c047465a r5:00000009 r4:c185bda0
[    1.917108] [<c001351c>] (show_stack+0x0/0x1c) from [<c03b0700>] (dump_stack+0x20/0x28)
[    1.926058] [<c03b06e0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[    1.935983] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[    1.946559]  r9:c05f0380 r8:c04754ea r7:00000001 r6:00000000 r5:c18ce3c0
r4:00000000
[    1.955388] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c017fb98>] (gpio_to_desc+0x28/0x4c)
[    1.965180]  r3:fffffdfb r2:c0474649
[    1.969238] [<c017fb70>] (gpio_to_desc+0x0/0x4c) from [<c0180628>] (gpio_direction_output+0x14/0x20)
[    1.979470] [<c0180614>] (gpio_direction_output+0x0/0x20) from [<c018fbdc>] (disp_sys_gpio_set_direction+0x2c/0xb8)
[    1.991098]  r5:c18ce3c0 r4:fffffdfb
[    1.995102] [<c018fbb0>] (disp_sys_gpio_set_direction+0x0/0xb8) from [<c01a6130>] (disp_lcd_gpio_set_direction+0xa8/0xc8)
[    2.007322]  r5:c18ce3c0 r4:c1814000
[    2.011346] [<c01a6088>] (disp_lcd_gpio_set_direction+0x0/0xc8) from [<c01a1b04>] (bsp_disp_lcd_gpio_set_direction+0x38/0x44)
[    2.023946]  r7:c1814000 r6:c05f0108 r5:00000001 r4:00000000
[    2.030342] [<c01a1acc>] (bsp_disp_lcd_gpio_set_direction+0x0/0x44) from [<c01ac648>] (sunxi_lcd_gpio_set_direction+0x20/0x30)
[    2.043041]  r5:00000000 r4:00000003
[    2.047089] [<c01ac628>] (sunxi_lcd_gpio_set_direction+0x0/0x30) from [<c01afd94>] (LCD_bl_open+0x28/0x3c)
[    2.057897] [<c01afd6c>] (LCD_bl_open+0x0/0x3c) from [<c01893e4>] (drv_lcd_enable+0xa0/0xe0)
[    2.067326] [<c0189344>] (drv_lcd_enable+0x0/0xe0) from [<c0189530>] (start_work+0x10c/0x1cc)
[    2.076839]  r9:c05f0380 r8:c0475507 r7:00000001 r6:c0475497 r5:c05f05f4
r4:00000000
[    2.085590] [<c0189424>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[    2.095417] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[    2.106291] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[    2.116933]  r5:c04fcbd0 r4:c1822e40
[    2.120944] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[    2.130024] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[    2.138979]  r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[    2.145285] ---[ end trace d6a845cbc9034915 ]---
[    2.150450] gpiod_direction_output: invalid GPIO
[    2.155609] [DISP] disp_sys_gpio_set_direction,line:413:    gpio_direction_output fail!
[    2.164542] ------------[ cut here ]------------
[    2.169746] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[    2.177531] invalid GPIO -517
[    2.180819] Modules linked in:
[    2.184225] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G        W    3.10.65 #51
[    2.192323] Workqueue: events start_work
[    2.196722] Backtrace:
[    2.199504] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[    2.208932]  r7:0000007e r6:c047465a r5:00000009 r4:c185bda8
[    2.215282] [<c001351c>] (show_stack+0x0/0x1c) from [<c03b0700>] (dump_stack+0x20/0x28)
[    2.224276] [<c03b06e0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[    2.234203] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[    2.244778]  r9:c05f0380 r8:c04754ea r7:00000001 r6:00000000 r5:c18ce3c0
r4:00000001
[    2.253598] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c017fb98>] (gpio_to_desc+0x28/0x4c)
[    2.263410]  r3:fffffdfb r2:c0474649
[    2.267472] [<c017fb70>] (gpio_to_desc+0x0/0x4c) from [<c017fe10>] (gpio_set_value_cansleep+0x14/0x6c)
[    2.277893] [<c017fdfc>] (gpio_set_value_cansleep+0x0/0x6c) from [<c018fccc>] (disp_sys_gpio_set_value+0x18/0x4c)
[    2.289312]  r5:c18ce3c0 r4:c1814000
[    2.293337] [<c018fcb4>] (disp_sys_gpio_set_value+0x0/0x4c) from [<c01a6068>] (disp_lcd_gpio_set_value+0xa8/0xc8)
[    2.304795] [<c01a5fc0>] (disp_lcd_gpio_set_value+0x0/0xc8) from [<c01a1ac0>] (bsp_disp_lcd_gpio_set_value+0x38/0x44)
[    2.316668]  r7:c1814000 r6:c05f0108 r5:00000001 r4:00000000
[    2.323028] [<c01a1a88>] (bsp_disp_lcd_gpio_set_value+0x0/0x44) from [<c01ac618>] (sunxi_lcd_gpio_set_value+0x20/0x30)
[    2.334965]  r5:00000000 r4:00000003
[    2.339017] [<c01ac5f8>] (sunxi_lcd_gpio_set_value+0x0/0x30) from [<c01afda4>] (LCD_bl_open+0x38/0x3c)
[    2.349436] [<c01afd6c>] (LCD_bl_open+0x0/0x3c) from [<c01893e4>] (drv_lcd_enable+0xa0/0xe0)
[    2.358893] [<c0189344>] (drv_lcd_enable+0x0/0xe0) from [<c0189530>] (start_work+0x10c/0x1cc)
[    2.368386]  r9:c05f0380 r8:c0475507 r7:00000001 r6:c0475497 r5:c05f05f4
r4:00000000
[    2.377222] [<c0189424>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[    2.387031] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[    2.397907] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[    2.408569]  r5:c04fcbd0 r4:c1822e40
[    2.412580] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[    2.421640] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[    2.430580]  r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[    2.436919] ---[ end trace d6a845cbc9034916 ]---
[    2.442061] [LCD]open, step 3 finish
[    2.447243] [LCD]lcd_module_init finish
[    2.452208] sunxi-wlan wlan: wlan_busnum (0)
[    2.457111] sunxi-wlan wlan: wlan_power_num (0)
[    2.462202] sunxi-wlan wlan: Missing wlan_io_regulator.
[    2.468071] sunxi-wlan wlan: io_regulator_name ((null))
[    2.473977] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[    2.481887] ------------SUNXI_RF: Set regon for SUN3IW1P1_R6!----------------
[    2.489888] sunxi-wlan wlan: wlan_regon gpio=-1048148608  mul-sel=-1047954028  pull=-1047954072  drv_level=-1072827436  data=-1072829732
[    2.503573] sunxi-wlan wlan: can't request wlan_regon gpio 2041
[    2.510249] platform wlan: Driver sunxi-wlan requests probe deferral
[    2.517666] usb_serial_number:20080411
[    2.522432] file system registered
[    2.529200] android_usb gadget: Mass Storage Function, version: 2009/09/11
[    2.536982] android_usb gadget: Number of LUNs=3
[    2.542222]  lun0: LUN: removable file: (no medium)
[    2.547716]  lun1: LUN: removable file: (no medium)
[    2.553130]  lun2: LUN: removable file: (no medium)
[    2.559502] android_usb gadget: android_usb ready
[    2.565154] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x51)
[    2.574434] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[    2.581191] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[    2.589096] ALSA device list:
[    2.592499]   #0: audiocodec
[    2.596450] Waiting 5sec before mounting root device...
[    4.386703]
[    4.386703] insmod_device_driver
[    4.386703]
[    4.393858] device_chose finished 77!
[    7.607106] VFS: Cannot open root device "mmcblk0p6" or unknown-block(0,0): error -6
[    7.615802] Please append a correct "root=" boot option; here are the available partitions:
[    7.625173] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

#4 全志 SOC » H616+AXP313a boot 不断重启,什么原因?请指教 » 2022-08-26 09:31:25

Mr.Liu
回复: 0

U-Boot SPL 2021.10-armbian (Aug 25 2022 - 17:13:08 +0800)
WS > Skip chip ID checlDRAM: 1024 MiB
Trying to boot from MMC1

NOTICE:  BL31: v2.7(debug):8ef86301-dirty
NOTICE:  BL31: Built : 17:07:29, Aug 25 2022
NOTICE:  BL31: Detected Allwinner H616 SoC (1823)
NOTICE:  BL31: Found U-Boot DTB at 0x4a082570, model: OrangePi Zero2
INFO:    ARM GICv2 driver initialized
INFO:    Configuring SPC Controller
INFO:    BL31: WS-master prevent pmix setup
INFO:    BL31: Platform setup done
INFO:    BL31: Initializing runtime services
INFO:    BL31: cortex_a53: CPU workaround for 855873 was applied
INFO:    BL31: cortex_a53: CPU workaround for 1530924 was applied
INFO:    PSCI: Suspend is unavailable
INFO:    BL31: Preparing for EL3 exit to normal world
INFO:    Entry point address = 0x4a000000
INFO:    SPSR = 0x3c9
INFO:    Changed devicetree.


U-Boot 2021.10-armbian (Aug 25 2022 - 17:13:08 +0800) Allwinner Technology

CPU:   Allwinner H616 (SUN50I)
Model: OrangePi Zero2
I2C:   ready
DRAM:  1 GiB
MMC:   mmc@4020000: 0
Loading Environment from FAT... Unable to use mmc 0:1... In:    serial@5000000
Out:   serial@5000000
Err:   serial@5000000
Net:   phy interface7
Could not get PHY for ethernet@5020000: addr 1
No ethernet found.

Autoboot in 1 seconds, press <Space> to stop
=>  setenv bootargs rw init=/bin/bash root=/dev/mmcblk0p1 rootwait console=ttyS0,115200 debug panic=30
=> ext4load mmc 0 0x49000000 /boot/dtb/${fdtfile}
22920 bytes read in 5 ms (4.4 MiB/s)
=> ext4load mmc 0 0x46000000 /boot/Image
21934088 bytes read in 908 ms (23 MiB/s)
=> env set fdt_high ffffffff
=> booti 0x46000000 - 0x49000000
## Flattened Device Tree blob at 49000000
   Booting using the fdt blob at 0x49000000
   Loading Device Tree to 0000000049ff7000, end 0000000049fff987 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.15.60-sunxi64 (root@vmcompiler) (aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #trunk SMP Thu Aug 25 17:47:19 +08 2022
[    0.000000] Machine model: OrangePi Zero2
[    0.000000] NUMA: No NUMA configuration found
[    0.000000] NUMA: Faking a node at [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] NUMA: NODE_DATA [mem 0x7fdde100-0x7fddffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000]   DMA32    empty
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040000000-0x000000004007ffff]
[    0.000000]   node   0: [mem 0x0000000040080000-0x000000007fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040000000-0x000000007fffffff]
[    0.000000] cma: Reserved 128 MiB at 0x0000000076c00000
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: PSCIv1.1 detected in firmware.
[    0.000000] psci: Using standard PSCI v0.2 function IDs
[    0.000000] psci: MIGRATE_INFO_TYPE not supported.
[    0.000000] psci: SMC Calling Convention v1.2
[    0.000000] percpu: Embedded 19 pages/cpu s37144 r8192 d32488 u77824
[    0.000000] pcpu-alloc: s37144 r8192 d32488 u77824 alloc=19*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[    0.000000] Detected VIPT I-cache on CPU0
[    0.000000] CPU features: detected: ARM erratum 845719
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
[    0.000000] Policy zone: DMA
[    0.000000] Kernel command line: rw init=/bin/bash root=/dev/mmcblk0p1 rootwait console=ttyS0,115200 debug panic=30
[    0.000000] printk: log_buf_len individual max cpu contribution: 4096 bytes
[    0.000000] printk: log_buf_len total cpu_extra contributions: 12288 bytes
[    0.000000] printk: log_buf_len min size: 16384 bytes
[    0.000000] printk: log_buf_len: 32768 bytes
[    0.000000] printk: early log buf free: 14392(87%)
[    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 874652K/1048576K available (13568K kernel code, 1068K rwdata, 4164K rodata, 2496K init, 321K bss, 42852K reserved, 131072K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] rcu: Hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=4.
[    0.000000]     Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] Root IRQ handler: gic_handle_irq
[    0.000000] GIC: Using split EOI/Deactivate mode
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000000] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000379] Console: colour dummy device 80x25
[    0.000468] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=96000)
[    0.000483] pid_max: default: 32768 minimum: 301
[    0.000557] LSM: Security Framework initializing
[    0.000586] Yama: becoming mindful.
[    0.000675] AppArmor: AppArmor initialized
[    0.000775] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.000790] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    0.002516] rcu: Hierarchical SRCU implementation.
[    0.003701] smp: Bringing up secondary CPUs ...
[    0.004287] Detected VIPT I-cache on CPU1
[    0.004367] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
[    0.004975] Detected VIPT I-cache on CPU2
[    0.005043] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
[    0.005631] Detected VIPT I-cache on CPU3
[    0.005695] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
[    0.005792] smp: Brought up 1 node, 4 CPUs
[    0.005821] SMP: Total of 4 processors activated.
[    0.005829] CPU features: detected: 32-bit EL0 Support
[    0.005836] CPU features: detected: CRC32 instructions
[    0.017870] CPU: All CPU(s) started at EL2
[    0.017919] alternatives: patching kernel code
[    0.019314] devtmpfs: initialized
[    0.023411] Registered cp15_barrier emulation handler
[    0.023442] Registered setend emulation handler
[    0.023615] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.023637] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[    0.028000] pinctrl core: initialized pinctrl subsystem
[    0.029385] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.030862] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[    0.031017] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[    0.031138] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[    0.031211] audit: initializing netlink subsys (disabled)
[    0.031455] audit: type=2000 audit(0.028:1): state=initialized audit_enabled=0 res=1
[    0.032021] thermal_sys: Registered thermal governor 'fair_share'
[    0.032029] thermal_sys: Registered thermal governor 'bang_bang'
[    0.032036] thermal_sys: Registered thermal governor 'step_wise'
[    0.032042] thermal_sys: Registered thermal governor 'user_space'
[    0.032572] cpuidle: using governor menu
[    0.032734] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.032833] ASID allocator initialised with 65536 entries
[    0.033042] Serial: AMBA PL011 UART driver
[    0.046207] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[    0.046234] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[    0.046242] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.046250] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[    0.048057] cryptd: max_cpu_qlen set to 1000
[    0.116413] raid6: neonx8   gen()  1799 MB/s
[    0.184479] raid6: neonx8   xor()  1346 MB/s
[    0.252554] raid6: neonx4   gen()  1843 MB/s
[    0.320622] raid6: neonx4   xor()  1334 MB/s
[    0.388708] raid6: neonx2   gen()  1749 MB/s
[    0.456783] raid6: neonx2   xor()  1223 MB/s
[    0.524864] raid6: neonx1   gen()  1522 MB/s
[    0.592934] raid6: neonx1   xor()  1047 MB/s
[    0.661007] raid6: int64x8  gen()  1252 MB/s
[    0.729085] raid6: int64x8  xor()   659 MB/s
[    0.797161] raid6: int64x4  gen()  1394 MB/s
[    0.865227] raid6: int64x4  xor()   712 MB/s
[    0.933316] raid6: int64x2  gen()  1188 MB/s
[    1.001394] raid6: int64x2  xor()   627 MB/s
[    1.069491] raid6: int64x1  gen()   886 MB/s
[    1.137545] raid6: int64x1  xor()   460 MB/s
[    1.137552] raid6: using algorithm neonx4 gen() 1843 MB/s
[    1.137558] raid6: .... xor() 1334 MB/s, rmw enabled
[    1.137565] raid6: using neon recovery algorithm
[    1.138431] reg-fixed-voltage vccgpu: Fixed regulator specified with variable voltages
[    1.138450] reg-fixed-voltage: probe of vccgpu failed with error -22
[    1.138826] iommu: Default domain type: Translated
[    1.138847] iommu: DMA domain TLB invalidation policy: strict mode
[    1.139171] SCSI subsystem initialized
[    1.139365] usbcore: registered new interface driver usbfs
[    1.139423] usbcore: registered new interface driver hub
[    1.139461] usbcore: registered new device driver usb
[    1.139719] pps_core: LinuxPPS API ver. 1 registered
[    1.139727] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.139749] PTP clock support registered
[    1.140166] ARM FF-A: FFA_VERSION returned not supported
[    1.140532] Advanced Linux Sound Architecture Driver Initialized.
[    1.141199] NetLabel: Initializing
[    1.141211] NetLabel:  domain hash size = 128
[    1.141216] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    1.141281] NetLabel:  unlabeled traffic allowed by default
[    1.141843] clocksource: Switched to clocksource arch_sys_counter
[    1.142052] VFS: Disk quotas dquot_6.6.0
[    1.142108] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.142666] AppArmor: AppArmor Filesystem Enabled
[    1.148488] NET: Registered PF_INET protocol family
[    1.148680] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.149487] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[    1.149521] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.149538] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.149612] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[    1.149736] TCP: Hash tables configured (established 8192 bind 8192)
[    1.149912] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.149959] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.150193] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.151230] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
[    1.156969] Initialise system trusted keyrings
[    1.157053] Key type blacklist registered
[    1.157275] workingset: timestamp_bits=44 max_order=18 bucket_order=0
[    1.162714] zbud: loaded
[    1.164153] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.166472] integrity: Platform Keyring initialized
[    1.210010] xor: automatically using best checksumming function   32regs   
[    1.210039] async_tx: api initialized (async)
[    1.210051] Key type asymmetric registered
[    1.210058] Asymmetric key parser 'x509' registered
[    1.210180] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    1.210356] io scheduler mq-deadline registered
[    1.210367] io scheduler kyber registered
[    1.210555] io scheduler bfq registered
[    1.219177] sun50i-h616-pinctrl 300b000.pinctrl: initialized sunXi PIO driver
[    1.219973] sun50i-h616-r-pinctrl 7022000.pinctrl: initialized sunXi PIO driver
[    1.222399] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.223906] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-ph not found, using dummy regulator
[    1.224443] printk: console [ttyS0] disabled
[    1.224531] 5000000.serial: ttyS0 at MMIO 0x5000000 (irq = 32, base_baud = 1500000) is a 16550A
[    2.187769] printk: console [ttyS0] enabled
[    2.194458] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    2.204769] loop: module loaded
[    2.208708] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pc not found, using dummy regulator
[    2.217692] sun6i-spi 5010000.spi: Failed to request TX DMA channel
[    2.223982] sun6i-spi 5010000.spi: Failed to request RX DMA channel
[    2.230832] spi-nor spi0.0: supply vdd not found, using dummy regulator
[    2.250073] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    2.256974] spi-nor: probe of spi0.0 failed with error -2
[    2.263673] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.270283] ehci-platform: EHCI generic platform driver
[    2.275618] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.281810] ohci-platform: OHCI generic platform driver
[    2.287326] usbcore: registered new interface driver usb-storage
[    2.293916] mousedev: PS/2 mouse device common for all mice
[    2.300506] sun6i-rtc 7000000.rtc: registered as rtc0
[    2.305620] sun6i-rtc 7000000.rtc: setting system clock to 1970-01-02T00:00:04 UTC (86404)
[    2.313990] sun6i-rtc 7000000.rtc: RTC enabled
[    2.318543] i2c_dev: i2c /dev entries driver
[    2.323431] sunxi-wdt 30090a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.332706] sdhci: Secure Digital Host Controller Interface driver
[    2.338950] sdhci: Copyright(c) Pierre Ossman
[    2.343335] Synopsys Designware Multimedia Card Interface Driver
[    2.349711] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.349811] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pf not found, using dummy regulator
[    2.364680] ledtrig-cpu: registered to indicate activity on CPUs
[    2.364975] sun50i-h616-pinctrl 300b000.pinctrl: supply vcc-pi not found, using dummy regulator
[    2.371096] SMCCC: SOC_ID: ID = jep106:091e:1823 Revision = 0x00000000
[    2.379569] sunxi-mmc 4020000.mmc: Got CD GPIO
[    2.386244] hid: raw HID events driver (C) Jiri Kosina
[    2.395621] usbcore: registered new interface driver usbhid
[    2.401199] usbhid: USB HID core driver
[    2.414200] sunxi-mmc 4020000.mmc: initialized, max. request size: 16384 KB, uses new timings mode
[    2.414653] NET: Registered PF_INET6 protocol family
[    2.431457] Segment Routing with IPv6
[    2.435222] In-situ OAM (IOAM) with IPv6
[    2.439239] NET: Registered PF_PACKET protocol family
[    2.444507] 8021q: 802.1Q VLAN Support v1.8
[    2.448861] 9pnet: Installing 9P2000 support
[    2.453239] Key type dns_resolver registered
[    2.457945] registered taskstats version 1
[    2.458156] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.462077] Loading compiled-in X.509 certificates
[    2.475686] mmc0: new high speed SDHC card at address aaaa
[    2.478431] Loaded X.509 cert 'Build time autogenerated kernel key: db547b410d67e79c33dc7f5c06b4cd1f4cb3e184'
[    2.482037] mmcblk0: mmc0:aaaa SL16G 14.8 GiB
[    2.493887] zswap: loaded using pool zstd/z3fold
[    2.501034] Key type ._fscrypt registered
[    2.501534]  mmcblk0: p1
[    2.505080] Key type .fscrypt registered
[    2.511537] Key type fscrypt-provisioning registered
[    2.517567] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=no
[    2.525283] Key type encrypted registered
[    2.529341] AppArmor: AppArmor sha1 policy hashing enabled
[    2.534872] ima: No TPM chip found, activating TPM-bypass!
[    2.540398] ima: Allocated hash algorithm: sha1
[    2.544958] ima: No architecture policies found
[    2.549531] evm: Initialising EVM extended attributes:
[    2.554674] evm: security.selinux
[    2.557991] evm: security.SMACK64
[    2.561299] evm: security.SMACK64EXEC
[    2.564961] evm: security.SMACK64TRANSMUTE
[    2.569056] evm: security.SMACK64MMAP
[    2.572718] evm: security.apparmor
[    2.576120] evm: security.ima
[    2.579089] evm: security.capability
[    2.582662] evm: HMAC attrs: 0x1
[    2.594686] usb1-vbus: supplied by vcc-5v
[    2.599017] sun50i-h616-r-pinctrl 7022000.pinctrl: supply vcc-pl not found, using dummy regulator
[    2.608280] sunxi-rsb 7083000.rsb: RSB running at 3000000 Hz
[    2.614127] sunxi-rsb 7083000.rsb: /soc/rsb@7083000/pmic@745: set runtime address failed: -22
[    2.622829] axp20x-rsb sunxi-rsb-745: AXP20x variant AXP806 found
[    2.629244] axp20x-regulator axp20x-regulator.1: Error setting dcdc frequency: -5
[    2.637050] dcdca: supplied by vcc-5v
[    2.641014] dcdcb: supplied by vcc-5v
[    2.644977] dcdcc: supplied by vcc-5v
[    2.648959] dcdcd: supplied by vcc-5v
[    2.652946] dcdce: supplied by vcc-5v
[    2.656928] aldo1: supplied by vcc-5v
[    2.660889] aldo2: supplied by vcc-5v
[    2.664867] aldo3: supplied by vcc-5v
[    2.668819] bldo1: supplied by vcc-5v
[    2.672778] bldo2: supplied by vcc-5v
[    2.676752] bldo3: supplied by vcc-5v
[    2.680714] bldo4: supplied by vcc-5v
[    2.684696] cldo1: supplied by vcc-5v
[    2.688669] cldo2: supplied by vcc-5v
[    2.692619] cldo3: supplied by vcc-5v
[    2.696579] sw: supplied by regulator-dummy
[    2.700896] axp20x-rsb sunxi-rsb-745: AXP20X driver loaded
[    2.708059] ehci-platform 5200000.usb: EHCI Host Controller
[    2.713725] ehci-platform 5200000.usb: new USB bus registered, assigned bus number 1
[    2.721596] ehci-platform 5200000.usb: irq 36, io mem 0x05200000
[    2.741854] ehci-platform 5200000.usb: USB 2.0 started, EHCI 1.00
[    2.748241] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.15
[    2.756517] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.763742] usb usb1: Product: EHCI Host Controller
[    2.768622] usb usb1: Manufacturer: Linux 5.15.60-sunxi64 ehci_hcd
[    2.774801] usb usb1: SerialNumber: 5200000.usb
[    2.779886] hub 1-0:1.0: USB hub found
[    2.783723] hub 1-0:1.0: 1 port detected
[    2.788582] ohci-platform 5200400.usb: Generic Platform OHCI controller
[    2.795261] ohci-platform 5200400.usb: new USB bus registered, assigned bus number 2
[    2.803142] ohci-platform 5200400.usb: irq 37, io mem 0x05200400
[    2.870083] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.15
[    2.878368] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.885593] usb usb2: Product: Generic Platform OHCI controller
[    2.891516] usb usb2: Manufacturer: Linux 5.15.60-sunxi64 ohci_hcd
[    2.897698] usb usb2: SerialNumber: 5200400.usb
[    2.902789] hub 2-0:1.0: USB hub found
[    2.906627] hub 2-0:1.0: 1 port detected
[    2.911569] usb_phy_generic usb_phy_generic.1.auto: supply vcc not found, using dummy regulator
[    2.920508] usb_phy_generic usb_phy_generic.1.auto: dummy supplies not allowed for exclusive requests
[    2.932618] of_cfs_init
[    2.935276] of_cfs_init: OK
[    2.938383] ALSA device list:
[    2.941351]   No soundcards found.
[    2.945132] md: Waiting for all devices to be available before autodetect
[    2.951959] md: If you don't use raid, use raid=noautodetect
[    2.957612] md: Autodetecting RAID arrays.
[    2.961709] md: autorun ...
[    2.964505] md: ... autorun DONE.
[    3.063547] EXT4-fs (mmcblk0p1): recovery complete
[    3.072447] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null). Quota mode: none.
[    3.082457] VFS: Mounted root (ext4 filesystem) on device 179:1.
[    3.092312] devtmpfs: mounted
[    3.096230] Freeing unused kernel memory: 2496K
[    3.100886] Run /bin/bash as init process
[    3.104900]   with arguments:
[    3.107873]     /bin/bash
[    3.110497]   with environment:
[    3.113634]     HOME=/
[    3.116025]     TERM=linux
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
root@(none):/#

#5 全志 SOC » R3 F1C200S驱动ST7565 128*64 » 2021-12-07 17:25:32

Mr.Liu
回复: 1

Deicetree增加了

&spi1 {
    st7565@0 {
        status = "okay";
        compatible = "sitronix,st7565";
               reg = <0>;
               spi-max-frequency =<15000000>;        //SPI时钟32M
               rotate =<0>;                    //屏幕旋转90度
               bgr; 
               fps =<10>;                      //刷新10帧率
               buswidth =<8>;                   //总线宽度8
               reset-gpios=<&pio 3 18 GPIO_ACTIVE_LOW>;   //GPIOD18
               dc-gpios  =<&pio 3 19 GPIO_ACTIVE_LOW>;   //GPIOD19
               debug =<0>;                     //不开启调试
        };
};

同时也增加了SPI 节点

                spi1: spi@1c06000 {
                        compatible = "allwinner,suniv-f1c100s-spi",
                                         "allwinner,sun8i-h3-spi";
                        reg = <0x01c06000 0x1000>;
                        interrupts = <11>;
                        clocks = <&ccu CLK_BUS_SPI1>, <&ccu CLK_BUS_SPI1>;
                        clock-names = "ahb", "mod";
                        resets = <&ccu RST_BUS_SPI1>;
                        status = "okay";
                        #address-cells = <1>;
                        #size-cells = <0>;
                        bias-pull-up;
                        pinctrl-names = "default";
                        pinctrl-0 = <&spi1_pins>;

                };

同时在IO节点中申明引脚定义

                        spi1_pins: spi1-pins {
                                pins = "PE7", "PE8", "PE9", "PE10";
                                function = "spi1";
                                bias-pull-up;
                        };

设备驱动里没有
找到<*>   Generic FB driver for TFT LCD displays

增加了st7565驱动
原码来自于 https://github.com/zanaster/fbtft/blob/master/fb_st7565.c
编译后
  INSTALL drivers/staging/fbtft/fb_st7565.ko
  INSTALL drivers/staging/fbtft/fbtft.ko

没有成功

#6 Re: 全志 SOC » v3s荔枝派spi启动ssd1306-oled(小白求教) » 2021-11-29 18:05:48

为何我的设备驱动里没有选中 <*> Solomon SSD1307 framebuffer support

#7 Re: 全志 SOC » 请教F1C100S lradc 不产生中断问题 » 2021-07-29 15:40:17

哇酷小二 说:

buildroot 勾选 EVTEST包

测试工作了,怎么按键的时候点亮一个LED呢? 请教下
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 132 (KEY_FRONT)
Properties:
Testing ... (interrupt to exit)
Event: time 3635.574514, type 1 (EV_KEY), code 132 (KEY_FRONT), value 1

#8 Re: 全志 SOC » 请教F1C100S lradc 不产生中断问题 » 2021-07-28 16:55:13

哇酷小二 说:

dts 296行语法错误

evtest 如何安装呢?

#9 Re: 全志 SOC » 请教F1C100S lradc 不产生中断问题 » 2021-07-28 15:21:03

哇酷小二 说:

提示dts不全,缺key map表,你检查一下。

在devicetree.dts 增加后,提示

linux-5.4.99 devicetree.dtb
  DTC     arch/arm/boot/dts/devicetree.dtb
Error: arch/arm/boot/dts/devicetree.dts:296.31-32 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:285: recipe for target 'arch/arm/boot/dts/devicetree.dtb' failed
make[3]: *** [arch/arm/boot/dts/devicetree.dtb] Error 1
Makefile:1262: recipe for target 'devicetree.dtb' failed
make[2]: *** [devicetree.dtb] Error 2
package/pkg-generic.mk:266: recipe for target '/home/fly/mangopi/buildroot-mangopi-r/output/build/linux-5.4.99/.stamp_built' failed
make[1]: *** [/home/fly/mangopi/buildroot-mangopi-r/output/build/linux-5.4.99/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

#10 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-07-28 14:42:41

scy251147 说:

之前和你一样是小白,但是我现在点亮了。

https://www.cnblogs.com/scy251147/p/14920656.html

请教一个问题
board/widora/mangopi/r3/devicetree/linux/devicetree.dts
在deicetree.dts增加
&lradc {
        vref-supply = <&reg_vcc3v3>;
        status = "okay";

        button@200 {
                label = "Volume Up";
                linux,code = <KEY_VOLUMEUP>;
                channel = <0>;
                voltage = <200000>;
        };
};

报错
linux-5.4.99 devicetree.dtb
  DTC     arch/arm/boot/dts/devicetree.dtb
Error: arch/arm/boot/dts/devicetree.dts:296.31-32 syntax error
FATAL ERROR: Unable to parse input tree
scripts/Makefile.lib:285: recipe for target 'arch/arm/boot/dts/devicetree.dtb' failed
make[3]: *** [arch/arm/boot/dts/devicetree.dtb] Error 1
Makefile:1262: recipe for target 'devicetree.dtb' failed
make[2]: *** [devicetree.dtb] Error 2
package/pkg-generic.mk:266: recipe for target '/home/fly/mangopi/buildroot-mangopi-r/output/build/linux-5.4.99/.stamp_built' failed
make[1]: *** [/home/fly/mangopi/buildroot-mangopi-r/output/build/linux-5.4.99/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

#11 Re: 全志 SOC » 请教F1C100S lradc 不产生中断问题 » 2021-07-28 14:33:13

请教
    1.476746] sun4i-a10-lradc-keys 1c23400.lradc: keymap is missing in device tree
[    1.484349] sun4i-a10-lradc-keys: probe of 1c23400.lradc failed with error -22

#13 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-11 18:35:37

Mr.Liu 说:
哇酷小二 说:

我记得不用改 dts,在menuconfig / cmd 里面添加gpio即可,或者你直接改 .config 文件

make uboot-menuconfig
选择完配置,直接make编译?还是 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4

drivers/misc/status_led.c:29:4: error: ‘CONFIG_LED_STATUS_BIT’ undeclared here (not in a function); did you mean ‘CONFIG_LED_STATUS_BOOT’?
  { CONFIG_LED_STATUS_BIT,
    ^~~~~~~~~~~~~~~~~~~~~
    CONFIG_LED_STATUS_BOOT
drivers/misc/status_led.c:30:3: error: ‘CONFIG_LED_STATUS_STATE’ undeclared here (not in a function); did you mean ‘CONFIG_LED_STATUS_BOOT’?
   CONFIG_LED_STATUS_STATE,
   ^~~~~~~~~~~~~~~~~~~~~~~
   CONFIG_LED_STATUS_BOOT
In file included from drivers/misc/status_led.c:8:
include/status_led.h:21:44: error: ‘CONFIG_LED_STATUS_FREQ’ undeclared here (not in a function); did you mean ‘CONFIG_LED_STATUS_ON’?
#define LED_STATUS_PERIOD (CONFIG_SYS_HZ / CONFIG_LED_STATUS_FREQ)
                                            ^~~~~~~~~~~~~~~~~~~~~~
drivers/misc/status_led.c:31:3: note: in expansion of macro ‘LED_STATUS_PERIOD’
   LED_STATUS_PERIOD,
   ^~~~~~~~~~~~~~~~~
scripts/Makefile.build:265: recipe for target 'drivers/misc/status_led.o' failed
make[4]: *** [drivers/misc/status_led.o] Error 1
scripts/Makefile.build:419: recipe for target 'drivers/misc' failed
make[3]: *** [drivers/misc] Error 2
Makefile:1782: recipe for target 'drivers' failed
make[2]: *** [drivers] Error 2
make[2]: *** Waiting for unfinished jobs....
  CC      common/board_r.o
  LD      common/built-in.o
package/pkg-generic.mk:266: recipe for target '/home/fly/mangopi/buildroot-mangopi-r/output/build/uboot-2020.07/.stamp_built' failed
make[1]: *** [/home/fly/mangopi/buildroot-mangopi-r/output/build/uboot-2020.07/.stamp_built] Error 2
Makefile:84: recipe for target '_all' failed
make: *** [_all] Error 2

使用了Enable BOOT LED 报错

#14 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-11 18:25:37

哇酷小二 说:

我记得不用改 dts,在menuconfig / cmd 里面添加gpio即可,或者你直接改 .config 文件

make uboot-menuconfig
选择完配置,直接make编译?还是 make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- -j4

#15 Re: 全志 SOC » 【分享】V3s Licheepi上控制LED灯的方法 » 2021-06-11 17:17:28

@ifree64
只是在sun8i-v3s-licheepi-zero.dts 修改,就可以在ubooting点亮LED,其他位置不用动?

#16 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-11 17:11:00

@哇酷小二
只是修改/uboot-2020.07/arch/arm/dts/suniv-f1c100s-generic.dts
还是其他的地方也需要修改?

#17 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-11 17:09:50

哇酷小二 说:

gpio 命令, 如果没有这个命令就在 make menuconfig 开启这个命令.

抱歉怎么开启呢?

内核配置 还是 哪个位置的配置?

#18 Re: SigmaStar/SSD201/SSD202/SSD212 » 分享一个开机闪灯脚本 » 2021-06-11 17:02:16

阿黄 说:

led子系统不是挺好的吗

具体怎么实现呢?

#19 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-08 18:30:16

@electronic_s
// SPDX-License-Identifier: (GPL-2.0+ OR X11)

/dts-v1/;
#include "suniv-f1c100s.dtsi"

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/leds/common.h>
/ {
        model = "Allwinner F1C100s Generic Device";
        compatible = "allwinner,suniv-f1c100s",
                     "allwinner,suniv";

        aliases {
                serial0 = &uart1;
                spi0 = &spi0;
        };

        chosen {
                stdout-path = "serial0:115200n8";
        };
        leds {
                    compatible = "gpio-leds";
                    lfled {
                                    label = "ledPE3";
                                    gpios = <&pio 4 3 GPIO_ACTIVE_HIGH>;
                                    default-state = "on";
                    };
        };
};
增加了PE3,但是PE3没有输出高

#20 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-04 16:10:31

@哇酷小二
在/uboot-2020.07/arch/arm/dts/suniv-f1c100s-generic.dts增加了


    leds {
                    compatible = "gpio-leds";
                    lfled {
                                    label = "ledPE3";
                                    gpios = <&r_pio 4 3 GPIO_ACTIVE_HIGH>;
                                    default-state = "on";
                    };
    };

重新刷了,PE3 不亮

#21 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-04 14:03:10

Mr.Liu 说:

@electronic_s

我是用的tiny200 suniv-f1c100s-generic.dts在这里增加吗?
buildroot-mangopi-r/output/build/uboot-2020.07/arch/arm/dts/suniv-f1c100s-generic.dts

修改后

执行以下内容
rm ./output/images/*.dtb
make linux-clean-for-rebuild
make linux -j8
make

#22 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-04 12:39:55

@electronic_s

我是用的tiny200 suniv-f1c100s-generic.dts在这里增加吗?
buildroot-mangopi-r/output/build/uboot-2020.07/arch/arm/dts/suniv-f1c100s-generic.dts

#23 Re: 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-03 14:50:26

哇酷小二 说:

gpio 命令, 如果没有这个命令就在 make menuconfig 开启这个命令.

还是不是那么明白,如何操作

#24 全志 SOC » Uboot 启动成功后,如何自动点亮LED » 2021-06-03 13:12:16

Mr.Liu
回复: 19

可以使用
/sys/class/gpio 点亮 LED。

但是如何在uboot 启动成功后,自动点亮LED。需要在哪里编写led驱动呢?

#25 Re: 全志 SOC » tiny200 booting 卡死 » 2021-06-01 18:12:04

哇酷小二 说:
Mr.Liu 说:

谢谢

我用卡启动也是一样的问题,是需要修改bootargs 吗>

devicetree.dts  没记错就是这个文件


谢谢!

#26 Re: 全志 SOC » tiny200 booting 卡死 » 2021-05-31 18:25:57

谢谢

我用卡启动也是一样的问题,是需要修改bootargs 吗>

#27 全志 SOC » tiny200 booting 卡死 » 2021-05-31 16:47:48

Mr.Liu
回复: 5

请问这是为何?
Nor 版本

U-Boot 2020.07 (May 21 2021 - 17:23:32 +0800) Allwinner Technology

CPU:   Allwinner F Series (SUNIV)
Model: Allwinner F1C100s Generic Device
DRAM:  64 MiB
Setting up a 800x480 lcd console (overscan 0x0)
In:    serial
Out:   serial
Err:   serial
Allwinner mUSB OTG (Peripheral)
Card did not respond to voltage select!
Card did not respond to voltage select!
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
=========================
Boot Device: spi
Boot Slot 0: empty
Boot Slot 1: spi-nor
=========================
SF: 524288 bytes @ 0x80000 Read: OK
Unknown command 'bmp' - try 'help'
gpio: pin 134 (gpio 134) value is 1
DFU waiting on SPI-NOR...
musb-hdrc: peripheral reset irq lost!
Booting from SPI-NOR...
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
device 0 offset 0x100000, size 0x500000
SF: 5242880 bytes @ 0x100000 Read: OK
## Loading kernel from FIT Image at 81000000 ...
   Using 'conf@0' configuration
   Trying 'kernel@0' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x810000cc
     Data Size:    4309824 Bytes = 4.1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80000000
     Entry Point:  0x80000000
     Hash algo:    crc32
     Hash value:   a764633f
   Verifying Hash Integrity ... crc32+ OK
f0
     Data Size:    15666 Bytes = 15.3 KiB
     Architecture: ARM
     Hash algo:    crc32
     Hash value:   61472816
   Verifying Hash Integrity ... crc32+ OK
   Booting using the fdt blob at 0x8141c4f0
   Loading Kernel Image
   Loading Device Tree to 817f9000, end 817ffd31 ... OK
[    0.000000] Booting Linux on physical CPU 0x0
VT instruction cache
[    0.000000] OF: fdt: Machine model: Widora MangoPi R3
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x82c00000
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15883
[    0.000000] Kernel command line: console=ttyS0,115200 rootwait init=/preinit root=/dev/mtdblock2 rootfstype=squashfs overlayfsdev=/dev/mtdblock3 net.ifnames=0 vt.global_cursor_default=0
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 37232K/64036K available (6144K kernel code, 248K rwdata, 1676K rodata, 1024K init, 225K bss, 10420K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_byt[    0.000906] Console: colour dummy device 80x30
[    0.001012] Calibrating delay loop... 203.16 BogoMIPS (lpj=1015808)
[    0.070270] pid_max: default: 32768 minimum: 301
[    0.070797] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.070849] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.072808] CPU: Testing write buffer coherency: ok
[    0.074982] Setting up static identity map for 0x80100000 - 0x80100058
[    0.076288] devtmpfs: initial
                                [    0.095194] NET: Registered protocol family 16
[    0.098987] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.101289] cpuidle: using governor menu
[    0.142124] SCSI subsystem initialized
[    0.142533] usbcore: registered new interface driver usbfs
[    0.142707] usbcore: registered new interface driver hub
[    0.142859] usbcore: registered new device driver usb
[    0.143302] mc: Linux media interface: v0.10
[    0.143433] videodev: Linux video capture interface: v2.00
[    0.143555] pps_core: LinuxPPS API ver. 1 registered
[    0.143574] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.143635] PTP clock support registered
[    0.144711] ion_parse_dt_heap_common: id 4 typped to 0x(ptrval)
[    0.150046] simple-framebuffer 83e89000.framebuffer: format=x8r8g8b8, mode=800x480x32, linelength=3200
[    0.176992] Console: switching to colour frame buffer device 100x30
[    0.202236] simple-framebuffer 83e89000.framebuffer: fb0: simplefb registered!
[    0.232814] thermal_sys: Registered thermal governor 'step_wise'
[    0.233573] NET: Registered protocol family 2
[    0.235152] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.235241] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.235303] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.235360] TCP: Hash tables configured (established 1024 bind 1024)
[    0.235680] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.235752] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.236323] NET: Registered protocol family 1
[    0.239190] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.241009] Initialise system trusted keyrings
[    0.241647] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.263822] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.264450] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.378371] Key type asymmetric registered
[    0.378408] Asymmetric key parser 'x509' registered
[    0.378579] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    0.378605] io scheduler mq-deadline registered
[    0.378623] io scheduler kyber registered
[    0.393850] suniv-f1c100s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    0.417516] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    0.423834] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pa not found, using dummy regulator
[    0.425176] printk: console [ttyS0] disabled
[    0.445509] 1c25400.serial: ttyS0 at MMIO 0x1c25400 (irq = 26, base_baud = 6250000) is a 16550A
[    0.912957] printk: console [ttyS0] enabled
[    0.949378] random: fast init done
[    1.344718] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.351374] ehci-platform: EHCI generic platform driver
[    1.363281] ohci-platform: OHCI generic platform driver
[    1.369083] usbcore: registered new interface driver usb-storage
[    1.376047] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[    1.390008] i2c /dev entries driver
[    1.394113] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pd not found, using dummy regulator
[    1.408031] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pe not found, using dummy regulator
[    1.419112] sun4i-csi 1cb0000.csi: Packed (RAW) format enabled.
[    1.427021] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.437105] suniv-f1c100s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[    1.475511] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[    1.485097] usbcore: registered new interface driver usbhid
[    1.490804] usbhid: USB HID core driver
[    1.514368] debugfs: Directory '1c23c00.codec' with parent 'F1C100s Audio Codec' already present!
[    1.529660] sun4i-codec 1c23c00.codec: Codec <-> 1c23c00.codec mapping ok
[    1.546345] NET: Registered protocol family 17
[    1.551068] Key type dns_resolver registered
[    1.556560] Loading compiled-in X.509 certificates
[    1.599605] ALSA device list:
[    1.602594]   #0: F1C100s Audio Codec
[    1.606843] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    1.615600] cfg80211: failed to load regulatory.db
[    1.621704] Waiting for root device /dev/mtdblock2...
[   25.888280] random: crng init done
[   31.848202] vcc3v0: disabling
[   31.851202] vcc3v3: disabling
[   31.854169] vcc5v0: disabling

#28 Re: 全志 SOC » mangopi_r3 nand烧录 » 2021-05-22 11:52:44

还有一个问题,

以下是通过window system 处理的,如何是linux 如何烧录nand呢?

下载NAND的过程是,进入USB模式,电脑接入的是fel设备,先使用sunxi-fel.exe工具下载u-boot-sunxi-with-spl.bin,然后启动uboot,进入DFU模式,电脑接入的是DFU设备,然后再通过dfu-util.exe工具将sysimage-nand.img刷进NAND里面。

#29 全志 SOC » mangopi_r3 nand烧录 » 2021-05-22 11:28:58

Mr.Liu
回复: 2

1.png
无法连接到 DFU
以下是串口输出信息
主机ubuntu 虚拟机 win10
win10无法看到DFU

#30 全志 SOC » BSP - F1C200S » 2020-09-21 10:58:36

Mr.Liu
回复: 0

请问这个官方的BSP都包括哪些,如何获取?

谢谢!

页脚

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

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