启动失败, 没有生成分区:
[0]HELLO! BOOT0 is starting!
[2]boot0 commit : 80628dcde5dc4ecdc757a9e782c58d7cf1abf959
[60]dram size =64
[62]card no is 1
[63]sdcard 1 line count 1
[66][mmc]: mmc driver ver 2018-5-23 16:07:00
[70][mmc]: mmc_get_timing_cfg: input para error!
[74][mmc]: mmc_get_timing_cfg: input para error!
[84][mmc]: Wrong media type 0xffffff00
[87][mmc]: ***Try SD card 1***
[97][mmc]: DS26/SDR12 1 bit
[100][mmc]: 25000000 Hz
[102][mmc]: 120 MB
[104][mmc]: ***SD/MMC 1 init OK!!!***
[389]Loading boot-pkg Succeed(index=0).
[401]Ready to disable icache.
[404]Jump to secend Boot.
U-Boot 2014.07 (Aug 21 2019 - 14:53:36) Allwinner Technology
uboot commit : 78cb55af380c57c0278162e241a9999cdc16e1d6
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.452]pmbus: ready
axp: get node[/soc/pmu0] error
axp_probe error
[0.459]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: 03520000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
workmode = 0,storage type = 6
[0.542]MMC: 1
SUNXI SD/MMC: 1
used mbr [0], count = 8
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: 2701616 Bytes = 2.6 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 8100f31f
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 (cube@global) (gcc version 6.4.1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #46 Wed Mar 31 01:28:24 UTC 2021
[ 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 c0574d14, node_mem_map c05a2000
[ 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 pages: 16256
[ 0.000000] Kernel command line: enforcing=1 earlyprintk=sunxi-uart,0x01c25000 initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p7 init=/pseudo_init rdinit=/rdinit partitions=bootlogo@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:rootfs_data@mmcblk0p8:misc@mmcblk0p9:private@mmcblk0p10:UDISK@mmcblk0p1 cma=32M rootdelay=5 fb_base=0x83f00000 androidboot.serialno=0000000000000000000 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: 26220k/26220k available, 39316k 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 - 0xc046ff84 (4512 kB)
[ 0.000000] .init : 0xc0470000 - 0xc048e038 ( 121 kB)
[ 0.000000] .data : 0xc0490000 - 0xc0575688 ( 918 kB)
[ 0.000000] .bss : 0xc0575688 - 0xc05a1eb0 ( 179 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 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.005322] Calibrating delay loop... 275.25 BogoMIPS (lpj=1376256)
[ 0.075251] pid_max: default: 32768 minimum: 301
[ 0.080431] Mount-cache hash table entries: 512
[ 0.086406] CPU: Testing write buffer coherency: ok
[ 0.092199] Setting up static identity map for 0xc036a8b0 - 0xc036a908
[ 0.101497] devtmpfs: initialized
[ 0.107107] pinctrl core: initialized pinctrl subsystem
[ 0.119514] NET: Registered protocol family 16
[ 0.127530] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.135198] dump_class_init,844, success
[ 0.144032] sun3iw1p1-pinctrl pio: initialized sunXi PIO driver
[ 0.167624] bio: create slab <bio-0> at 0
[ 0.173163] pwm module init!
[ 0.177947] SCSI subsystem initialized
[ 0.182125] usbcore: registered new interface driver usbfs
[ 0.188009] usbcore: registered new interface driver hub
[ 0.193892] usbcore: registered new device driver usb
[ 0.201429] gpio=0,mul_sel=0,pull=0,drv_level=0,data=0
[ 0.207145] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.215693] pcf857x 0-0020: retry commucation.7
[ 0.220658] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.229183] pcf857x 0-0020: retry commucation.6
[ 0.234161] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.242679] pcf857x 0-0020: retry commucation.5
[ 0.247632] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.256148] pcf857x 0-0020: retry commucation.4
[ 0.261099] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.269615] pcf857x 0-0020: retry commucation.3
[ 0.274590] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.283102] pcf857x 0-0020: retry commucation.2
[ 0.288056] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.296569] pcf857x 0-0020: retry commucation.1
[ 0.301519] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.310063] pcf857x: probe of 0-0020 failed with error -70
[ 0.319617] Linux video capture interface: v2.00
[ 0.325055] Advanced Linux Sound Architecture Driver Initialized.
[ 0.333025] cfg80211: Calling CRDA to update world regulatory domain
[ 0.341786] Switching to clocksource sun3i high-res couter
[ 0.366810] get det_vbus is fail, 84
[ 0.372227] NET: Registered protocol family 2
[ 0.378897] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.386012] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.392672] TCP: Hash tables configured (established 512 bind 512)
[ 0.399223] TCP: reno registered
[ 0.402616] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.408728] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.415828] NET: Registered protocol family 1
[ 0.433908] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.440566] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.447001] msgmni has been set to 115
[ 0.454226] io scheduler noop registered
[ 0.458516] io scheduler cfq registered (default)
[ 0.463391] [pm]aw_pm_init!
[ 0.466658] [pm]valid
[ 0.469154] [pm]valid
[ 0.471879] [DISP]disp_module_init
[ 0.527678] pll_freq=297000000HZ, lcd_dclk_freq=33000000HZ, clk_div=9
[ 0.535051] num_screens=1
[ 0.537937] screen_id=0
[ 0.540518] para->mclk[MOD_CLK_LCD1CH0]=0xc180c340
[ 0.545468] para->mclk[MOD_CLK_LCD1CH1]=0xc180c440
[ 0.550471] disp tv init
[ 0.553140] tcon_clk=0xc180c340, tcon_clk_parent=0x0
[ 0.558309] tcon_clk=0xc180c340, tcon_clk_parent=0xc1804400
[ 0.564056] tve_clk=0xc180c440, tve_clk_parent=0xc1804400
[ 0.569652] disp al tv init
[ 0.575338] fetch script datadisp.screen2_output_type fail
[ 0.581431] fetch script datadisp.screen2_output_mode fail
[ 0.589813] fetch script datadisp.fb2_format fail
[ 0.594988] fetch script datadisp.fb2_scaler_mode_enable fail
[ 0.601295] fetch script datadisp.fb2_width fail
[ 0.606379] fetch script datadisp.fb2_height fail
[ 0.634570] [DISP]disp_module_init finish
[ 0.652813] uart1: ttyS1 at MMIO 0x1c25400 (irq = 104) is a SUNXI
[ 0.659255] sw_console_setup()1324 - console setup baud 115200 parity n bits 8, flow n
[ 0.667416] console [ttyS1] enabled, bootconsole disabled
[ 0.667416] console [ttyS1] enabled, bootconsole disabled
[ 0.679980] misc dump reg init
[ 0.684659] sunxi-wlan wlan: wlan_busnum (0)
[ 0.689548] sunxi-wlan wlan: wlan_power_num (0)
[ 0.694593] sunxi-wlan wlan: Missing wlan_io_regulator.
[ 0.700448] sunxi-wlan wlan: io_regulator_name ((null))
[ 0.706281] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[ 0.714141] ------------SUNXI_RF: Set regon for SUN3IW1P1_R6!----------------
[ 0.722115] sunxi-wlan wlan: wlan_regon gpio=-1048149120 mul-sel=-1048355436 pull=-1048355480 drv_level=-1072832404 data=-1072834700
[ 0.735755] sunxi-wlan wlan: can't request wlan_regon gpio 2041
[ 0.742392] platform wlan: Driver sunxi-wlan requests probe deferral
[ 0.749825] lradc_battery_probe:lradc_battery_probe ++++++
[ 0.755922] lradc_battery_dts_parse:lradc_battery_dts_parse ++++++
[ 0.762888] key base: f1c23400
[ 0.766414] irq num: 114 !
[ 0.769488] battery_data_hw_init:battery_data_hw_init ++++++
[ 0.775824] lradc_battery_probe:lradc_battery_probe ------
[ 0.783473] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.792078] gpio_request failed
[ 0.795590] get regulator_io is no nocare
[ 0.800318] sunxi_hcd_host0 1c13000.otghci0-controller: sunxi_hcd host driver
[ 0.808347] sunxi_hcd_host0 1c13000.otghci0-controller: new USB bus registered, assigned bus number 1
[ 0.820179] hub 1-0:1.0: USB hub found
[ 0.824397] hub 1-0:1.0: 1 port detected
[ 0.829345] wrn: hcd is not enable, need not stop hcd
[ 0.835697] sunxi_keyboard_startup: keyboard has no clk.
[ 0.842313] input: sunxi-keyboard as /devices/virtual/input/input0
[ 0.850363] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[ 0.857463] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x51)
[ 0.866732] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[ 0.873977] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 0.881633] sunxi cedar version 0.1
[ 0.885746] VE: install start!!!
[ 0.885746]
[ 0.891243] cedar_ve: cedar-ve the get irq is 103
[ 0.897074] VE: install end!!!
[ 0.897074]
[ 0.903272] sunxi-mmc sdc1: SD/MMC/SDIO Host Controller Driver(v0.91 2018-5-29 14:19) Compiled in Mar 31 2021 at 01:27:46
[ 0.915759] sunxi-mmc sdc1: regulator prop vmmc,str none
[ 0.921757] sunxi-mmc sdc1: regulator prop vqmmc,str none
[ 0.927829] sunxi-mmc sdc1: regulator prop vdmmc,str none
[ 0.933830] sunxi-mmc sdc1: Failed getting OCR mask: 0
[ 0.940999] sunxi-mmc sdc1: ***set host ocr***
[ 0.946349] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 0.967701] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 0.997778] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.008698] sunxi-mmc sdc1: base:0xf1c10000 irq:106
[ 1.018345] failed to get gpio-spk and gpio_num
[ 1.026625] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTR
[ 1.034719] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTL
[ 1.042720] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKL
[ 1.050501] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKR
[ 1.058271] sunxi-codec-machine sound.2: ASoC: DAPM unknown pin External Speaker
[ 1.067637] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.086452] sunxi-codec-machine sound.2: sun3iw1codec <-> 1c23c00.cpudai0-controller mapping ok
[ 1.096428] sunxi-codec-machine sound.2: ASoC: no sink widget found for MainMic Bias
[ 1.105107] sunxi-codec-machine sound.2: ASoC: Failed to add route External MainMic -> direct -> MainMic Bias
[ 1.116166] sunxi-codec-machine sound.2: ASoC: no source widget found for MainMic Bias
[ 1.124996] sunxi-codec-machine sound.2: ASoC: Failed to add route MainMic Bias -> direct -> MIC1P
[ 1.134972] sunxi-codec-machine sound.2: ASoC: no source widget found for MainMic Bias
[ 1.143793] sunxi-codec-machine sound.2: ASoC: Failed to add route MainMic Bias -> direct -> MIC1N
[ 1.154912] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.166637] sunxi-mmc sdc1: smc 0 p1 err, cmd 1, RTO !!
[ 1.172623] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[ 1.184725] ipip: IPv4 over IPv4 tunneling driver
[ 1.191225] gre: GRE over IPv4 demultiplexor driver
[ 1.196661] ip_gre: GRE over IPv4 tunneling driver
[ 1.205436] TCP: cubic registered
[ 1.209240] Initializing XFRM netlink socket
[ 1.214035] NET: Registered protocol family 17
[ 1.219108] NET: Registered protocol family 15
[ 1.224579] VFP support v0.3: not present
[ 1.230266] [LCD]lcd_module_init
[ 1.237861] enhance_en=1
[ 1.240731] matrixresult:(0x0, 0x3c4, 0x0, 0x0)
[ 1.245902] pll_freq=297000000HZ, lcd_dclk_freq=33000000HZ, clk_div=9
[ 1.253162] clk_div=9
[ 1.255704] [DISP] disp_sys_gpio_request,line:303: disp_sys_gpio_request failed, gpio_name=lcd_gpio_0, gpio=2043, ret=-517
[ 1.269863] [LCD]open, step 0 finish
[ 1.307692] [LCD]open, step 1 finish
[ 1.367662] [LCD]open, step 2 finish
[ 1.487678] ------------[ cut here ]------------
[ 1.492877] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[ 1.500678] invalid GPIO -517
[ 1.503995] Modules linked in:
[ 1.507407] CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted 3.10.65 #46
[ 1.514445] Workqueue: events start_work
[ 1.518890] Backtrace:
[ 1.521682] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[ 1.531100] r7:0000007e r6:c042213d r5:00000009 r4:c185bda8
[ 1.537504] [<c001351c>] (show_stack+0x0/0x1c) from [<c0367810>] (dump_stack+0x20/0x28)
[ 1.546501] [<c03677f0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[ 1.556457] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[ 1.567015] r9:c0587480 r8:c0422f52 r7:00000001 r6:00000000 r5:c18cb3c0
r4:fffffdfb
[ 1.575858] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c014bb98>] (gpio_to_desc+0x28/0x4c)
[ 1.585652] r3:fffffdfb r2:c042212c
[ 1.589733] [<c014bb70>] (gpio_to_desc+0x0/0x4c) from [<c014bc3c>] (gpio_get_value_cansleep+0x10/0x44)
[ 1.600161] [<c014bc2c>] (gpio_get_value_cansleep+0x0/0x44) from [<c015a7fc>] (disp_sys_gpio_set_direction+0x20/0xb8)
[ 1.612074] [<c015a7dc>] (disp_sys_gpio_set_direction+0x0/0xb8) from [<c0170d5c>] (disp_lcd_gpio_set_direction+0xa8/0xc8)
[ 1.624297] r5:c18cb3c0 r4:c1814000
[ 1.628361] [<c0170cb4>] (disp_lcd_gpio_set_direction+0x0/0xc8) from [<c016c730>] (bsp_disp_lcd_gpio_set_direction+0x38/0x44)
[ 1.640959] r7:c1814000 r6:c0587208 r5:00000001 r4:00000000
[ 1.647313] [<c016c6f8>] (bsp_disp_lcd_gpio_set_direction+0x0/0x44) from [<c0177274>] (sunxi_lcd_gpio_set_direction+0x20/0x30)
[ 1.660017] r5:00000000 r4:00000003
[ 1.664045] [<c0177254>] (sunxi_lcd_gpio_set_direction+0x0/0x30) from [<c017a9c0>] (LCD_bl_open+0x28/0x3c)
[ 1.674866] [<c017a998>] (LCD_bl_open+0x0/0x3c) from [<c0154010>] (drv_lcd_enable+0xa0/0xe0)
[ 1.684302] [<c0153f70>] (drv_lcd_enable+0x0/0xe0) from [<c015415c>] (start_work+0x10c/0x1cc)
[ 1.693812] r9:c0587480 r8:c0422f6f r7:00000001 r6:c0422eff r5:c05876f4
r4:00000000
[ 1.702605] [<c0154050>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[ 1.712436] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[ 1.723334] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[ 1.733982] r5:c049cbd0 r4:c1822e40
[ 1.738060] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[ 1.747076] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[ 1.756019] r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[ 1.762363] ---[ end trace da7037649a2b707d ]---
[ 1.767487] ------------[ cut here ]------------
[ 1.772703] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[ 1.780465] invalid GPIO -517
[ 1.783751] Modules linked in:
[ 1.787153] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G W 3.10.65 #46
[ 1.795245] Workqueue: events start_work
[ 1.799645] Backtrace:
[ 1.802419] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[ 1.811852] r7:0000007e r6:c042213d r5:00000009 r4:c185bda0
[ 1.818249] [<c001351c>] (show_stack+0x0/0x1c) from [<c0367810>] (dump_stack+0x20/0x28)
[ 1.827211] [<c03677f0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[ 1.837150] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[ 1.847725] r9:c0587480 r8:c0422f52 r7:00000001 r6:00000000 r5:c18cb3c0
r4:00000000
[ 1.856531] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c014bb98>] (gpio_to_desc+0x28/0x4c)
[ 1.866328] r3:fffffdfb r2:c042212c
[ 1.870388] [<c014bb70>] (gpio_to_desc+0x0/0x4c) from [<c014c628>] (gpio_direction_output+0x14/0x20)
[ 1.880644] [<c014c614>] (gpio_direction_output+0x0/0x20) from [<c015a808>] (disp_sys_gpio_set_direction+0x2c/0xb8)
[ 1.892287] r5:c18cb3c0 r4:fffffdfb
[ 1.896340] [<c015a7dc>] (disp_sys_gpio_set_direction+0x0/0xb8) from [<c0170d5c>] (disp_lcd_gpio_set_direction+0xa8/0xc8)
[ 1.908562] r5:c18cb3c0 r4:c1814000
[ 1.912588] [<c0170cb4>] (disp_lcd_gpio_set_direction+0x0/0xc8) from [<c016c730>] (bsp_disp_lcd_gpio_set_direction+0x38/0x44)
[ 1.925186] r7:c1814000 r6:c0587208 r5:00000001 r4:00000000
[ 1.931571] [<c016c6f8>] (bsp_disp_lcd_gpio_set_direction+0x0/0x44) from [<c0177274>] (sunxi_lcd_gpio_set_direction+0x20/0x30)
[ 1.944261] r5:00000000 r4:00000003
[ 1.948318] [<c0177254>] (sunxi_lcd_gpio_set_direction+0x0/0x30) from [<c017a9c0>] (LCD_bl_open+0x28/0x3c)
[ 1.959134] [<c017a998>] (LCD_bl_open+0x0/0x3c) from [<c0154010>] (drv_lcd_enable+0xa0/0xe0)
[ 1.968577] [<c0153f70>] (drv_lcd_enable+0x0/0xe0) from [<c015415c>] (start_work+0x10c/0x1cc)
[ 1.978092] r9:c0587480 r8:c0422f6f r7:00000001 r6:c0422eff r5:c05876f4
r4:00000000
[ 1.986848] [<c0154050>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[ 1.996681] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[ 2.007572] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[ 2.018225] r5:c049cbd0 r4:c1822e40
[ 2.022246] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[ 2.031333] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[ 2.040283] r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[ 2.046593] ---[ end trace da7037649a2b707e ]---
[ 2.051757] gpiod_direction_output: invalid GPIO
[ 2.056910] [DISP] disp_sys_gpio_set_direction,line:413: gpio_direction_output fail!
[ 2.065839] ------------[ cut here ]------------
[ 2.071040] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[ 2.078823] invalid GPIO -517
[ 2.082109] Modules linked in:
[ 2.085511] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G W 3.10.65 #46
[ 2.093607] Workqueue: events start_work
[ 2.098000] Backtrace:
[ 2.100783] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[ 2.110215] r7:0000007e r6:c042213d r5:00000009 r4:c185bda8
[ 2.116574] [<c001351c>] (show_stack+0x0/0x1c) from [<c0367810>] (dump_stack+0x20/0x28)
[ 2.125583] [<c03677f0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[ 2.135516] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[ 2.146097] r9:c0587480 r8:c0422f52 r7:00000001 r6:00000000 r5:c18cb3c0
r4:00000001
[ 2.154919] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c014bb98>] (gpio_to_desc+0x28/0x4c)
[ 2.164727] r3:fffffdfb r2:c042212c
[ 2.168785] [<c014bb70>] (gpio_to_desc+0x0/0x4c) from [<c014be10>] (gpio_set_value_cansleep+0x14/0x6c)
[ 2.179226] [<c014bdfc>] (gpio_set_value_cansleep+0x0/0x6c) from [<c015a8f8>] (disp_sys_gpio_set_value+0x18/0x4c)
[ 2.190650] r5:c18cb3c0 r4:c1814000
[ 2.194720] [<c015a8e0>] (disp_sys_gpio_set_value+0x0/0x4c) from [<c0170c94>] (disp_lcd_gpio_set_value+0xa8/0xc8)
[ 2.206191] [<c0170bec>] (disp_lcd_gpio_set_value+0x0/0xc8) from [<c016c6ec>] (bsp_disp_lcd_gpio_set_value+0x38/0x44)
[ 2.218021] r7:c1814000 r6:c0587208 r5:00000001 r4:00000000
[ 2.224372] [<c016c6b4>] (bsp_disp_lcd_gpio_set_value+0x0/0x44) from [<c0177244>] (sunxi_lcd_gpio_set_value+0x20/0x30)
[ 2.236297] r5:00000000 r4:00000003
[ 2.240362] [<c0177224>] (sunxi_lcd_gpio_set_value+0x0/0x30) from [<c017a9d0>] (LCD_bl_open+0x38/0x3c)
[ 2.250800] [<c017a998>] (LCD_bl_open+0x0/0x3c) from [<c0154010>] (drv_lcd_enable+0xa0/0xe0)
[ 2.260260] [<c0153f70>] (drv_lcd_enable+0x0/0xe0) from [<c015415c>] (start_work+0x10c/0x1cc)
[ 2.269749] r9:c0587480 r8:c0422f6f r7:00000001 r6:c0422eff r5:c05876f4
r4:00000000
[ 2.278567] [<c0154050>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[ 2.288382] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[ 2.299265] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[ 2.309928] r5:c049cbd0 r4:c1822e40
[ 2.313945] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[ 2.323005] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[ 2.331942] r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[ 2.338285] ---[ end trace da7037649a2b707f ]---
[ 2.343428] [LCD]open, step 3 finish
[ 2.348160] [LCD]lcd_module_init finish
[ 2.353074] sunxi-wlan wlan: wlan_busnum (0)
[ 2.357969] sunxi-wlan wlan: wlan_power_num (0)
[ 2.363059] sunxi-wlan wlan: Missing wlan_io_regulator.
[ 2.368932] sunxi-wlan wlan: io_regulator_name ((null))
[ 2.374837] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[ 2.382752] ------------SUNXI_RF: Set regon for SUN3IW1P1_R6!----------------
[ 2.390749] sunxi-wlan wlan: wlan_regon gpio=-1048149120 mul-sel=-1047954028 pull=-1047954072 drv_level=-1072832404 data=-1072834700
[ 2.404420] sunxi-wlan wlan: can't request wlan_regon gpio 2041
[ 2.411093] platform wlan: Driver sunxi-wlan requests probe deferral
[ 2.418505] usb_serial_number:20080411
[ 2.423183] file system registered
[ 2.429913] android_usb gadget: Mass Storage Function, version: 2009/09/11
[ 2.437695] android_usb gadget: Number of LUNs=3
[ 2.442830] lun0: LUN: removable file: (no medium)
[ 2.448338] lun1: LUN: removable file: (no medium)
[ 2.453756] lun2: LUN: removable file: (no medium)
[ 2.460116] android_usb gadget: android_usb ready
[ 2.465769] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x51)
[ 2.475048] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[ 2.481812] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[ 2.489748] ALSA device list:
[ 2.493060] #0: audiocodec
[ 2.497049] Waiting 5sec before mounting root device...
[ 4.387635]
[ 4.387635] insmod_device_driver
[ 4.387635]
[ 4.394804] device_chose finished 77!
[ 7.508034] VFS: Cannot open root device "mmcblk0p7" or unknown-block(0,0): error -6
[ 7.516732] Please append a correct "root=" boot option; here are the available partitions:
[ 7.526104] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
sdc1相关日志:
[ 0.903272] sunxi-mmc sdc1: SD/MMC/SDIO Host Controller Driver(v0.91 2018-5-29 14:19) Compiled in Mar 31 2021 at 01:27:46
[ 0.915759] sunxi-mmc sdc1: regulator prop vmmc,str none
[ 0.921757] sunxi-mmc sdc1: regulator prop vqmmc,str none
[ 0.927829] sunxi-mmc sdc1: regulator prop vdmmc,str none
[ 0.933830] sunxi-mmc sdc1: Failed getting OCR mask: 0
[ 0.940999] sunxi-mmc sdc1: ***set host ocr***
[ 0.946349] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 0.967701] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 0.997778] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.008698] sunxi-mmc sdc1: base:0xf1c10000 irq:106
.....
[ 1.154912] sunxi-mmc sdc1: sdc set ios: clk 400000Hz bm OD pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.166637] sunxi-mmc sdc1: smc 0 p1 err, cmd 1, RTO !!
[ 1.172623] sunxi-mmc sdc1: sdc set ios: clk 0Hz bm OD pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
这是烧录日志:
[0]beign to init dram
[23]init dram ok
U-Boot 2014.07 (Aug 21 2019 - 14:53:36) Allwinner Technology
uboot commit : 78cb55af380c57c0278162e241a9999cdc16e1d6
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
[3.021]pmbus: ready
axp: get node[/soc/pmu0] error
axp_probe error
[3.027]PMU: cpux 408 Mhz,AXI=408 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz
DRAM: 32 MiB
[3.037]fdt addr: 0x809e7820
[3.039]gd->fdt_size: 0xc320
Relocation Offset is: 01520000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
[3.109]flash init start
workmode = 16,storage type = 3
try card 1
[3.115][mmc]: mmc driver ver 2018-12-27 9:21:00
SUNXI SD/MMC: 1
[3.133][mmc]: ************Try SD card 1************
[3.143][mmc]: host caps: 0x23
[3.146][mmc]: MID 00 PSN 00000289
[3.149][mmc]: PNM APPSD -- 0x41-50-50-53-44
[3.153][mmc]: PRV 0.0
[3.155][mmc]: MDT m-3 y-2018
[3.158][mmc]: user capacity : 120 MB
[3.161][mmc]: cache size 0 KB
[3.164][mmc]: cache ctl 0
[3.166][mmc]: SD/MMC 1 init OK!!!
[3.170][mmc]: End mmc_init_boot
read mbr copy[0] failed
read mbr copy[1] failed
read mbr copy[2] failed
read mbr copy[3] failed
[3.182]flash init end
[3.184]try to burn key
[3.188]inter uboot shell
Hit any key to stop autoboot: 0
work mode=0x10
run usb efex
delay time 2500
int sunxi_dma_init---
irq enable
sunxi_dma_install_int ok
usb init ok
set address 0x1
SUNXI_EFEX_ERASE_TAG
erase_flag = 0x0
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
the 0 mbr table is ok
the 1 mbr table is ok
the 2 mbr table is ok
the 3 mbr table is ok
*************MBR DUMP***************
total mbr part 8
part[0] name :bootlogo
part[0] classname :DISK
part[0] addrlo :0x2000
part[0] lenlo :0x400
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2400
part[1] lenlo :0x200
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x2600
part[2] lenlo :0x3000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0x5600
part[3] lenlo :0xc800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs_data
part[4] classname :DISK
part[4] addrlo :0x11e00
part[4] lenlo :0xc800
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :misc
part[5] classname :DISK
part[5] addrlo :0x1e600
part[5] lenlo :0x200
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :private
part[6] classname :DISK
part[6] addrlo :0x1e800
part[6] lenlo :0x200
part[6] user_type :32768
part[6] keydata :0
part[6] ro :0
part[7] name :UDISK
part[7] classname :DISK
part[7] addrlo :0x1ea00
part[7] lenlo :0x0
part[7] user_type :33024
part[7] keydata :0
part[7] ro :0
total part: 9
mbr 0, 2000, 8000
bootlogo 1, 400, 8000
env 2, 200, 8000
boot 3, 3000, 8000
rootfs 4, c800, 8000
rootfs_data 5, c800, 8000
misc 6, 200, 8000
private 7, 200, 8000
UDISK 8, 0, 8100
not need erase flash
sunxi_sprite_erase_flash, erase_flag=0
private part exist
the 0 mbr table is ok
*************MBR DUMP***************
total mbr part 8
part[0] name :bootlogo
part[0] classname :DISK
part[0] addrlo :0x2000
part[0] lenlo :0x400
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2400
part[1] lenlo :0x200
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x2600
part[2] lenlo :0x3000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0x5600
part[3] lenlo :0xc800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs_data
part[4] classname :DISK
part[4] addrlo :0x11e00
part[4] lenlo :0xc800
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :misc
part[5] classname :DISK
part[5] addrlo :0x1e600
part[5] lenlo :0x200
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :private
part[6] classname :DISK
part[6] addrlo :0x1e800
part[6] lenlo :0x200
part[6] user_type :32768
part[6] keydata :0
part[6] ro :0
part[7] name :UDISK
part[7] classname :DISK
part[7] addrlo :0x1ea00
part[7] lenlo :0x0
part[7] user_type :33024
part[7] keydata :0
part[7] ro :0
begin to store data
part name bootlogo
keydata = 0x0
part name env
keydata = 0x0
part name boot
keydata = 0x0
part name rootfs
keydata = 0x0
part name rootfs_data
keydata = 0x0
part name misc
keydata = 0x0
part name private
keydata = 0x0
find keypart private
keypart read start: 0x1e800, sectors 0x200
keypart part private read end: 0x1e800, sectors 0x200
part name UDISK
keydata = 0x0
need_erase_flag = 0
begin to erase
finish erase
rewrite
keypart write start: 0x1e800, sectors 0x200
keypart write end: 0x1e800, sectors 0x200
flash exit
SUNXI_EFEX_MBR_TAG
mbr size = 0x10000
begin to write standard mbr
successed to write standard mbr
sunxi_sprite_verify_mbr_from_flash
the 0 mbr table is ok
the 1 mbr table is ok
the 2 mbr table is ok
the 3 mbr table is ok
*************MBR DUMP***************
total mbr part 8
part[0] name :bootlogo
part[0] classname :DISK
part[0] addrlo :0x2000
part[0] lenlo :0x400
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2400
part[1] lenlo :0x200
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x2600
part[2] lenlo :0x3000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0x5600
part[3] lenlo :0xc800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs_data
part[4] classname :DISK
part[4] addrlo :0x11e00
part[4] lenlo :0xc800
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :misc
part[5] classname :DISK
part[5] addrlo :0x1e600
part[5] lenlo :0x200
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :private
part[6] classname :DISK
part[6] addrlo :0x1e800
part[6] lenlo :0x200
part[6] user_type :32768
part[6] keydata :0
part[6] ro :0
part[7] name :UDISK
part[7] classname :DISK
part[7] addrlo :0x1ea00
part[7] lenlo :0x0
part[7] user_type :33024
part[7] keydata :0
part[7] ro :0
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
FEX_CMD_fes_verify_value, start 0x2000, size high 0x0:low 0x4b036
FEX_CMD_fes_verify_value 0x60b4446e
FEX_CMD_fes_verify_value, start 0x2400, size high 0x0:low 0x20000
FEX_CMD_fes_verify_value 0xc6018f2f
FEX_CMD_fes_verify_value, start 0x2600, size high 0x0:low 0x293970
FEX_CMD_fes_verify_value 0x84267db2
FEX_CMD_fes_verify_value, start 0x5600, size high 0x0:low 0x500000
FEX_CMD_fes_verify_value 0xd944b7f
bootfile_mode=4
SUNXI_EFEX_BOOT1_TAG
boot1 size = 0xb8000
uboot_pkg magic 0x89119800
uboot size = 0xb8000
storage type = 6
mmc down uboot
uboot_pkg magic 0x89119800
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
bootfile_mode=4
SUNXI_EFEX_BOOT0_TAG
boot0 size = 0x8000
production_media:6!
[24.614][mmc]: write mmc info ok
dram para[0] = ea00018e
dram para[1] = 6f6f6275
dram para[2] = 74
dram para[3] = c378ee87
dram para[4] = 4000
dram para[5] = a4000
dram para[6] = a4000
dram para[7] = 2e302e33
dram para[8] = 30
dram para[9] = 2e302e31
dram para[10] = 30
dram para[11] = 80800000
dram para[12] = 80000000
dram para[13] = 0
dram para[14] = 0
dram para[15] = 0
dram para[16] = 0
dram para[17] = 0
dram para[18] = 0
dram para[19] = 0
dram para[20] = 0
dram para[21] = 0
dram para[22] = 0
dram para[23] = 0
dram para[24] = 0
dram para[25] = 0
dram para[26] = 0
dram para[27] = 0
dram para[28] = 0
dram para[29] = 0
dram para[30] = 0
dram para[31] = 0
storage type = 6
card1 download boot0
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
sunxi_efex_next_action=2
exit usb
sunxi dma exit
next work 2
SUNXI_UPDATE_NEXT_ACTION_REBOOT
set next mode 14
sunxi dma exit
[0]HELLO! BOOT0 is starting!
[2]boot0 commit : 80628dcde5dc4ecdc757a9e782c58d7cf1abf959
[60]dram size =64
[62]card no is 1
[63]sdcard 1 line count 1
[65][mmc]: mmc driver ver 2018-5-23 16:07:00
[69][mmc]: mmc_get_timing_cfg: input para error!
[74][mmc]: mmc_get_timing_cfg: input para error!
[84][mmc]: Wrong media type 0xffffff00
[87][mmc]: ***Try SD card 1***
[97][mmc]: DS26/SDR12 1 bit
[100][mmc]: 25000000 Hz
[102][mmc]: 120 MB
[103][mmc]: ***SD/MMC 1 init OK!!!***
[389]Loading boot-pkg Succeed(index=0).
[401]Ready to disable icache.
[404]Jump to secend Boot.
target/allwinner/violin-F1C200s/configs/sys_config.fex
;A31 PAD application
;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
;---------------------------------------------------------------------------------------------------------
[product]
version = "100"
machine = "evb"
[platform]
eraseflag = 1
debug_mode = 1
;----------------------------------------------------------------------------------
; system configuration
; ?
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
;----------------------------------------------------------------------------------
; storage_type 0:nand 1:sd 2:emmc 3:spinor 4:emmc3 5:spinand 6:sd1
;
; as spi0 and sdc0 both use PC0-PC2
; for spinor, set [target] storage_type = 3, [spi0] spi0_used = 1 , [sdc1] sdc1_used = 0
; for spinand, set [target] storage_type = 5, [spi0] spi0_used = 1 , [sdc1] sdc1_used = 0
; for sd1, set [target] storage_type = 6, [spi0] spi0_used = 0 , [sdc1] sdc1_used = 1
;----------------------------------------------------------------------------------
[target]
boot_clock = 408
storage_type = 6
burn_key = 0
[norflash]
size = 16
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1200
dcdc3_vol = 1200
dcdc4_vol = 1200
dcdc5_vol = 1500
aldo2_vol = 1800
aldo3_vol = 3000
;[power_ctrl]
;power_off_key = port:PD14<0><0><default><1>
;power_on = port:PD15<1><0><default><0>
[pwr_ctrl]
power_off_key = port:PD20<0><0><default><1>
power_on = port:PA1<1><default><default><0>
pwroff_gpio_is_irq = 0
[card_boot]
logical_start = 40960
sprite_gpio0 =
;card_no = 1
;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>
[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 8
sdc_clk = port:PC5<3><1><3><default>
sdc_cmd = port:PC6<3><1><3><default>
sdc_d0 = port:PC8<3><1><3><default>
sdc_d1 = port:PC9<3><1><3><default>
sdc_d2 = port:PC10<3><1><3><default>
sdc_d3 = port:PC11<3><1><3><default>
sdc_d4 = port:PC12<3><1><3><default>
sdc_d5 = port:PC13<3><1><3><default>
sdc_d6 = port:PC14<3><1><3><default>
sdc_d7 = port:PC15<3><1><3><default>
sdc_emmc_rst = port:PC16<3><1><3><default>
sdc_ds = port:PC01<3><1><3><default>
[card1_boot_para]
card_ctrl = 1
card_high_speed = 1
card_line = 1
sdc_clk = port:PC0<3><1><3><default>
sdc_cmd = port:PC1<3><1><3><default>
sdc_d0 = port:PC2<3><1><3><default>
[twi_para]
twi_port = 0
twi_scl = port:PD12<3><default><default><default>
twi_sda = port:PD00<3><default><default><default>
[uart_para]
uart_debug_port = 1
uart_debug_tx = port:PA2<5><1><default><default>
uart_debug_rx = port:PA3<5><1><default><default>
[jtag_para]
jtag_enable = 0
jtag_ms = port:PH9<3><default><default><default>
jtag_ck = port:PH10<3><default><default><default>
jtag_do = port:PH11<3><default><default><default>
jtag_di = port:PH12<3><default><default><default>
;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]
dram_clk = 480
dram_type = 3
dram_zq = 0x77bb
dram_odt_en = 1
dram_para1 = 0x004319f4
dram_para2 = 0x5
dram_mr0 = 0x620
dram_mr1 = 0x0
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x06141B10
dram_tpr1 = 0x40416
dram_tpr2 = 0x03030306
dram_tpr3 = 0x2006
dram_tpr4 = 0x05040405
dram_tpr5 = 0x05050302
dram_tpr6 = 0x90006644
dram_tpr7 = 0x42c21590
dram_tpr8 = 0xd05612c0
dram_tpr9 = 0x00083def
dram_tpr10 = 0x18082356
dram_tpr11 = 0x32034156
dram_tpr12 = 0
dram_tpr13 = 0
;----------------------------------------------------------------------------------
;i2c configuration
;----------------------------------------------------------------------------------
[twi0]
twi0_used = 1
twi0_scl = port:PD12<3><default><default><default>
twi0_sda = port:PD00<3><default><default><default>
[twi1]
twi1_used = 0
twi1_scl = port:PB00<2><default><default><default>
twi1_sda = port:PB01<2><default><default><default>
[twi2]
twi2_used = 0
twi2_scl = port:PD15<4><default><default><default>
twi2_sda = port:PD16<4><default><default><default>
;----------------------------------------------------------------------------------
;TWI device configuration
;compatible --- device name
;reg --- device address
;----------------------------------------------------------------------------------
;[twi0/twi_board0]
;compatible =
;reg =
[io_expand]
compatible = "nxp,pcf8574a"
reg = 0x20
gpio_base = 2040
;int-gpio = port:PE09<6><default><1><1>
;----------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;----------------------------------------------------------------------------------
[uart0]
uart0_used = 0
uart0_port = 0
uart0_type = 2
uart0_tx = port:PF2<3><1><default><default>
uart0_rx = port:PF4<3><1><default><default>
[uart1]
uart1_used = 1
uart1_port = 1
uart1_type = 2
uart1_tx = port:PA2<5><1><default><default>
uart1_rx = port:PA3<5><1><default><default>
;----------------------------------------------------------------------------------
;SPI controller configuration
;----------------------------------------------------------------------------------
[spi0]
spi0_used = 0
spi0_cs_number = 1
spi0_cs_bitmap = 1
spi0_cs0 = port:PC1<2><1><default><default>
spi0_sclk = port:PC0<2><default><default><default>
spi0_mosi = port:PC3<2><default><default><default>
spi0_miso = port:PC2<2><default><default><default>
[spi1]
spi1_used = 0
spi1_cs_number = 1
spi1_cs_bitmap = 1
spi1_cs0 = port:PE07<4><1><default><default>
spi1_sclk = port:PE09<4><default><default><default>
spi1_mosi = port:PE08<4><default><default><default>
spi1_miso = port:PE10<4><default><default><default>
;----------------------------------------------------------------------------------
;SPI device configuration
;compatible --- device name
;spi-max-frequency --- work frequency
;reg --- chip select
;optional properties: spi-cpha, spi-cpol, spi-cs-high
;----------------------------------------------------------------------------------
;[spi0/spi_board0]
;compatible =
;spi-max-frequency =
;reg =
;spi-cpha
;spi-cpol
;spi-cs-high
;----------------------------------------------------------------------------------
;resistance tp configuration
;----------------------------------------------------------------------------------
[rtp_para]
rtp_used = 0
rtp_screen_size = 5
rtp_regidity_level = 5
rtp_press_threshold_enable = 0
rtp_press_threshold = 0x1f40
rtp_sensitive_level = 0xf
rtp_exchange_x_y_flag = 0
;----------------------------------------------------------------------------------
;capacitor tp configuration
;external int function
;wakeup output function
;notice --- tp_int_port & tp_io_port use the same port
;----------------------------------------------------------------------------------
[ctp]
ctp_used = 1
ctp_twi_id = 0
ctp_twi_addr = 0x48
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 1
ctp_revert_y_flag = 1
ctp_exchange_x_y_flag = 1
;ctp_int_port = port:PE12<6><default><default><1>
;ctp_wakeup = 2045
[twi0/touchscreen1]
compatible = "ctp_icn85xx"
reg = 0x48
;----------------------------------------------------------------------------------
;touch key configuration
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =
;----------------------------------------------------------------------------------
;motor configuration
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
;motor_shake = port:power3<1><default><default><1>
[nand0_para]
nand0_support_2ch = 0
nand0_used = 0
nand0_we = port:PC00<2><0><1><default>
nand0_ale = port:PC01<2><0><1><default>
nand0_cle = port:PC02<2><0><1><default>
nand0_ce0 = port:PC03<2><1><1><default>
nand0_nre = port:PC04<2><0><1><default>
nand0_rb0 = port:PC05<2><1><1><default>
nand0_d0 = port:PC06<2><0><1><default>
nand0_d1 = port:PC07<2><0><1><default>
nand0_d2 = port:PC08<2><0><1><default>
nand0_d3 = port:PC09<2><0><1><default>
nand0_d4 = port:PC10<2><0><1><default>
nand0_d5 = port:PC11<2><0><1><default>
nand0_d6 = port:PC12<2><0><1><default>
nand0_d7 = port:PC13<2><0><1><default>
nand0_ndqs = port:PC14<2><0><1><default>
nand0_regulator1 = "vcc-nand"
nand0_regulator2 = "none"
nand0_cache_level = 0x55aaaa55
nand0_flush_cache_num = 0x55aaaa55
nand0_capacity_level = 0x55aaaa55
nand0_id_number_ctl = 0x55aaaa55
nand0_print_level = 0x55aaaa55
nand0_p0 = 0x55aaaa55
nand0_p1 = 0x55aaaa55
nand0_p2 = 0x55aaaa55
nand0_p3 = 0x55aaaa55
;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4
fb0_framebuffer_num = 2
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_format = 0
fb0_width = 0
fb0_height = 0
fb1_framebuffer_num = 0
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_format = 0
fb1_width = 0
fb1_height = 0
lcd0_backlight = 50
lcd1_backlight = 50
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50
;----------------------------------------------------------------------------------
;lcd0 configuration
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0]
lcd_used = 1
;-------------------------------------
; avdisplay lcd
;-------------------------------------
lcd_driver_name = "ili6122_800x480"
lcd_if = 0
lcd_x = 800
lcd_y = 480
lcd_width = 109
lcd_height = 63
lcd_dclk_freq = 33
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 1
lcd_hbp = 55
lcd_ht = 1056
lcd_hspw = 20
lcd_vbp = 35
lcd_vt = 525
lcd_vspw = 10
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_hv_vspw = 10
lcd_hv_hspw = 20
lcd_hv_sync_polarity = 3
;-------------------------------------
; qiutianwei lcd
;-------------------------------------
;lcd_x = 800
;lcd_y = 480
;lcd_width = 108
;lcd_height = 64
;lcd_dclk_freq = 33
;lcd_pwm_used = 1
;lcd_pwm_ch = 0
;lcd_pwm_freq = 50000
;lcd_pwm_pol = 1
;lcd_hbp = 88
;lcd_ht = 928
;lcd_hspw = 48
;lcd_vbp = 35
;lcd_vt = 525
;lcd_vspw = 3
;lcd_hv_if = 0
;lcd_hv_smode = 0
;lcd_hv_s888_if = 0
;lcd_hv_syuv_if = 0
;lcd_hv_vspw = 10
;lcd_hv_hspw = 123
;lcd_x = 1024
;lcd_y = 600
;lcd_width = 154
;lcd_height = 86
;lcd_dclk_freq = 50
;lcd_pwm_used = 1
;lcd_pwm_ch = 0
;lcd_pwm_freq = 50000
;lcd_pwm_pol = 1
;lcd_hbp = 160
;lcd_ht = 1344
;lcd_hspw = 48
;lcd_vbp = 23
;lcd_vt = 635
;lcd_vspw = 3
;lcd_hv_if = 0
;lcd_hv_smode = 0
;lcd_hv_s888_if = 0
;lcd_hv_syuv_if = 0
;lcd_hv_vspw = 10
;lcd_hv_hspw = 123
lcd_lvds_if = 0
lcd_lvds_colordepth = 1
lcd_lvds_mode = 0
lcd_lvds_ch = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 1
lcd_rb_swap = 1
lcd_io_phase = 0x0000
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0
deu_mode = 0
lcdgamma4iep = 22
lcd_io_cfg0 = 0x00000000
smart_color = 90
;lcd_bl_en_used = 0
;lcd_bl_en = port:PE12<1><0><default><1>
;lcd_power = port:PE06<1><0><default><0>
lcd_gpio_0 = 2043
;lcdd2 = port:PD00<2><0><default><default>
lcdd3 = port:PD01<2><0><default><default>
lcdd4 = port:PD02<2><0><default><default>
lcdd5 = port:PD03<2><0><default><default>
lcdd6 = port:PD04<2><0><default><default>
lcdd7 = port:PD05<2><0><default><default>
lcdd10 = port:PD06<2><0><default><default>
lcdd11 = port:PD07<2><0><default><default>
lcdd12 = port:PD08<2><0><default><default>
lcdd13 = port:PD09<2><0><default><default>
lcdd14 = port:PD10<2><0><default><default>
lcdd15 = port:PD11<2><0><default><default>
;lcdd18 = port:PD12<2><0><default><default>
lcdd19 = port:PD13<2><0><default><default>
lcdd20 = port:PD14<2><0><default><default>
lcdd21 = port:PD15<2><0><default><default>
lcdd22 = port:PD16<2><0><default><default>
lcdd23 = port:PD17<2><0><default><default>
lcdclk = port:PD18<2><0><3><default>
lcdde = port:PD19<2><0><3><default>
lcdhsync = port:PD20<2><0><3><default>
lcdvsync = port:PD21<2><0><3><default>
;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 0
;pwm_positive = port:PH00<2><0><default><default>
pwm_positive = port:PE12<4><0><default><default>
[pwm1_para]
pwm_used = 0
pwm_positive = port:PE06<3><0><default><default>
;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip(x)_used: 0:disable 1:enable
;vip(x)_isp_used 0:not use isp 1:use isp
;vip(x)_fmt: 0:yuv 1:bayer raw rgb
;vip(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip(x)_iovdd: camera module io power handle string, pmu power supply
;vip(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip(x)_avdd: camera module analog power handle string, pmu power supply
;vip(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip(x)_dvdd: camera module core power handle string, pmu power supply
;vip(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------
[vip0]
vip0_used = 1
vip0_csi_pck = port:PE02<2><default><default><default>
vip0_csi_mck = port:PE11<2><1><3><0>
vip0_csi_hsync = port:PE00<2><default><default><default>
vip0_csi_vsync = port:PE01<2><default><default><default>
vip0_csi_d0 = port:PE03<2><default><default><default>
vip0_csi_d1 = port:PE04<2><default><default><default>
vip0_csi_d2 = port:PE05<2><default><default><default>
vip0_csi_d3 = port:PE06<2><default><default><default>
vip0_csi_d4 = port:PE07<2><default><default><default>
vip0_csi_d5 = port:PE08<2><default><default><default>
vip0_csi_d6 = port:PE09<2><default><default><default>
vip0_csi_d7 = port:PE10<2><default><default><default>
;vip0_csi_sck = port:PD12<2><default><default><default>
;vip0_csi_sda = port:PD00<2><default><default><default>
vip0_mname = "gc0308"
vip0_twi_addr = 0x42
vip0_twi_id = 0
vip0_isp_used = 0
vip0_fmt = 0
vip0_stby_mode = 0
vip0_vflip = 0
vip0_hflip = 0
vip0_iovdd = ""
vip0_iovdd_vol = 2800000
vip0_avdd = ""
vip0_avdd_vol = 2800000
vip0_dvdd = ""
vip0_dvdd_vol = 1500000
vip0_afvdd = ""
vip0_afvdd_vol = 2800000
vip0_power_en =
vip0_reset = 2044
vip0_pwdn = ""
vip0_flash_en =
vip0_flash_mode =
vip0_af_pwdn =
;--------------------------------------------------------------------------------
;tv configuration
;
;--------------------------------------------------------------------------------
[tvout_para]
tvout_used =
tvout_channel_num =
tv_en =
[tvin_para]
tvin_used =
tvin_channel_num =
; ------------------------------------------------------------------------------|
; de-interlace configuration
;--------------------------------------------------------------------------------
[di]
di_used = 0
;--------------------------------------------------------------------------------
; SDMMC PINS MAPPING |
; ------------------------------------------------------------------------------|
; Config Guide |
; sdc_used: 1-enable card, 0-disable card |
; sdc_detmode: card detect mode |
; 1-detect card by gpio polling |
; 2-detect card by gpio irq(must use IO with irq function) |
; 3-no detect, always in for boot card |
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert|
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit |
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO |
; sdc_isio: for sdio card |
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for|
; SD3.0 or eMMC4.5, regulator must be configured. the value is |
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2" |
; other: GPIO Mapping configuration |
; ------------------------------------------------------------------------------|
; Note: |
; 1 if detmode=2, sdc_det's config=6 |
; else if detmode=1, sdc_det's config=0 |
; else sdc_det IO is not necessary |
; 2 if the customer wants to support UHS-I and HS200 features, he must provide|
; an independent power supply for the card. This is only used in platforms |
; that supports SD3.0 cards and eMMC4.4+ flashes |
;--------------------------------------------------------------------------------
[sdc0]
sdc0_used = 0
sdc0_detmode = 4
sdc0_buswidth = 4
sdc0_d1 = port:PF00<2><1><3><default>
sdc0_d0 = port:PF01<2><1><3><default>
sdc0_clk = port:PF02<2><1><3><default>
sdc0_cmd = port:PF03<2><1><3><default>
sdc0_d3 = port:PF04<2><1><3><default>
sdc0_d2 = port:PF05<2><1><3><default>
sdc0_det =
sdc0_use_wp = 0
sdc0_wp =
sdc0_isio = 0
sdc0_regulator = "none"
vmmc = "none"
vqmmc = "none"
vdmmc = "none"
[sdc1]
sdc1_used = 1
sdc1_detmode = 3
sdc1_buswidth = 1
sdc1_clk = port:PC00<3><1><2><default>
sdc1_cmd = port:PC01<3><1><2><default>
sdc1_d0 = port:PC02<3><1><2><default>
sdc1_det =
sdc1_use_wp = 0
sdc1_wp =
sdc1_isio = 1
sdc1_regulator = "none"
vmmc = "none"
vqmmc = "none"
vdmmc = "none"
; ------------------------------------------------------------------------------|
; sim card configuration
;--------------------------------------------------------------------------------
[smc]
smc_used =
smc_rst =
smc_vppen =
smc_vppp =
smc_det =
smc_vccen =
smc_sck =
smc_sda =
;--------------------------------
;[usbc0]:控制器0的配置。
;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
;--------------------------------
;--------------------------------
;--- USB0控制标志
;--------------------------------
;[usbc0]
;usbc0_used = 0
;usb_port_type = 2
;usb_detect_type = 1
;usb_id_gpio = port:PH09<0><1><default><default>
;usb_det_vbus_gpio = "axp_ctrl"
;usb_drv_vbus_gpio = port:PB07<1><0><default><0>
;usb_host_init_state = 0
;usb_regulator_io = "nocare"
;usb_regulator_vol = 0
;usb_wakeup_suspend = 0
;--- USB Device
;usb_luns = 3
;usb_serial_unique = 0
;usb_serial_number = "20080411"
[usbc0]
usbc0_used = 1
usb_port_type = 0
usb_detect_type = 1
usb_id_gpio =
usb_det_vbus_gpio =
usb_board_sel = 1
usb_drv_vbus_gpio = 2047
usb_host_init_state = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_wakeup_suspend = 0
; USB Device
usb_luns = 3
usb_serial_unique = 0
usb_serial_number = "20080411"
;--------------------------------
;--- USB1控制标志
;--------------------------------
;[usbc1]
;usbc1_used = 0
;usb_drv_vbus_gpio = port:PB06<1><0><default><0>
;usb_host_init_state = 1
;usb_regulator_io = "nocare"
;usb_regulator_vol = 0
;usb_wakeup_suspend = 0
;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 0
gsensor_twi_id = 2
gsensor_twi_addr = 0x18
gsensor_int1 = port:PA09<6><1><default><default>
gsensor_int2 =
;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]
;--------------------------------------------------------------------------------
;wlan configuration
;clocks: 32k clk
;wlan_power_num: the number of inputs for wifi power
;wlan_power(n): wifi power(n)
;wlan_io_regulator: the power of wifi io
;wlan_busnum: no. of bus(usb or bus)
;wlan_regon: wifi function enable/reset io
;wlan_hostwake: wifi device wake-up host
;status: okay
;--------------------------------------------------------------------------------
[wlan]
wlan_used = 1
compatible = "allwinner,sunxi-wlan"
wlan_busnum = 0
;wlan_power_num =
;wlan_power1 =
;wlan_io_regulator =
wlan_board_sel = 1
;wlan_hostwake = port:PD13<6><default><default><default>
wlan_hostwake = port:PD21<6><default><default><1>
;wlan_regon = port:PD16<1><1><3><0>
wlan_regon = 2041
;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 2
gy_twi_addr = 0x6a
gy_int1 = port:PA10<6><1><default><default>
gy_int2 =
;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 2
ls_twi_addr = 0x23
ls_int = port:PA12<6><1><default><default>
;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 2
compass_twi_addr = 0x0d
compass_int = port:PA11<6><1><default><default>
;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used =
bt_uart_id =
bt_wakeup =
bt_gpio =
bt_rst =
;--------------------------------------------------------------------------------
; NOTE :Make sure spdif_used = 0x1,spdifmach_used = 0x1,
; if register the sound card spdif.
;--------------------------------------------------------------------------------
[audiospdif]
audiospdif_used = 0
[spdif_machine]
spdif_machine_used = 0
;----------------------------------------------------------------------------------
; NOTE :Make sure hdmi_used = 0x1,hdmimach_used = 0x1,
; if register the sound card hdmi.
;---------------------------------------------------------------------------------
[audiohdmi]
audiohdmi_used = 0
[hdmi_machine]
hdmi_machine_used = 0
;--------------------------------------------------------------------------------
;allwinner,pcm_lrck_period :16/32/64/128/256
;allwinner,pcm_lrckr_period :no use
;allwinner,slot_width_select :16bits/20bits/24bits/32bits
;allwinner,pcm_lsb_first :0: msb first; 1: lsb first
;allwinner,tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;allwinner,rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;allwinner,daudio_master :1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;allwinner,audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;allwinner,signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;allwinner,frametype :0: long frame = 2 clock width; 1: short frame
;allwinner,tdm_config :0:pcm 1:i2s
;allwinner,daudio0_used :0:not use 1:use
;-------------------------------------------------------------------------------
; NOTE :Make sure daudio0mach_used = 0x1,daudio0_used = 0x1,
; if register the sound card DAUDIO0.
;--------------------------------------------------------------------------------
;[daudio0_machine]
;daudio0_machine_used = 0
;-----------------------------------------------------------------------------
;[daudio0]
;pcm_lrck_period = 0x20
;pcm_lrckr_period = 0x01
;slot_width_select = 0x10
;pcm_lsb_first = 0x0
;tx_data_mode = 0x0
;rx_data_mode = 0x0
;daudio_master = 0x04
;audio_format = 0x01
;signal_inversion = 0x01
;frametype = 0x0
;tdm_config = 0x01
;daudio0_used = 0
;--------------------------------------------------------------------------------------
;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step
;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step
;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/step
;allwinner,maingain : mainmic gain:0x0---0x7 0x0-0db 0x1:24db 3db/step
;allwinner,headsetmicgain : headphonemic gain:0x0---0x7 0x0-0db 0x1:24db 3db/step
;allwinner,adcagc_cfg : 1:use adcagc 0:no use
;allwinner,adcdrc_cfg : 1:use adcdrc 0:no use
;allwinner,adchpf_cfg : 1:use adchpf 0:no use
;allwinner,dacdrc_cfg : 1:use adcdrc 0:no use
;allwinner,dachpf_cfg : 1:use adchpf 0:no use
;allwinner,aif2config : 1:use aif2 0:no use
;allwinner,aif3config : 1:use aif3 0:no use
;--------------------------------------------------------------------------------
; NOTE :Make sure audiocodec_machine_used = 0x1,sun50i2s_used = 0x1
; sun50codec_used = 0x1,if register the sound card audiocodec.
;---------------------------------------------------------------------------------
;[audiocodec_machine]
;audiocodec_machine_used = 0
;-------------------------------------------------------------------------------------
;used ---0:not used,1:used
;pmu_id ---0:axp19x,1:axp209,2:axp22x,3:axp806,4:axp808,5:axp809,6:axp803,7:axp813
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1)
;pmu_chg_ic_temp ---intelligence charge pmu temperature. when it is 0, this function is closed.
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_runtime_chgcur ---set initial charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_ac_vol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_ac_cur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbpc_vol ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbpc_cur ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_chgled_func ---CHGKED pin control, 0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A, 1:type B
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_bat_temp_enable ---battery temp detect enable
;pmu_bat_charge_ltf ---charge battery temp low threshold voltage
;pmu_bat_charge_htf ---charge battery temp high threshold voltage
;pmu_bat_shutdown_ltf ---shutdown battery temp low threshold voltage
;pmu_bat_shutdown_htf ---shutdown battery temp high threshold voltage
;pmu_bat_temp_para1 ---battery temp -25 voltage
;pmu_bat_temp_para2 ---battery temp -15 voltage
;pmu_bat_temp_para3 ---battery temp -10 voltage
;pmu_bat_temp_para4 ---battery temp -5 voltage
;pmu_bat_temp_para5 ---battery temp 0 voltage
;pmu_bat_temp_para6 ---battery temp 5 voltage
;pmu_bat_temp_para7 ---battery temp 10 voltage
;pmu_bat_temp_para8 ---battery temp 20 voltage
;pmu_bat_temp_para9 ---battery temp 30 voltage
;pmu_bat_temp_para10 ---battery temp 40 voltage
;pmu_bat_temp_para11 ---battery temp 45 voltage
;pmu_bat_temp_para12 ---battery temp 50 voltage
;pmu_bat_temp_para13 ---battery temp 55 voltage
;pmu_bat_temp_para14 ---battery temp 60 voltage
;pmu_bat_temp_para15 ---battery temp 70 voltage
;pmu_bat_temp_para16 ---battery temp 80 voltage
;pmu_powkey_off_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_powkey_off_func ---set pek off func, 0:shutdown,1:restart
;pmu_powkey_off_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_powkey_long_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_powkey_on_time ---set pek on time,ms,128/1000/2000/3000
;--------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------
;pmu0 is axp81x
;--------------------------------------------------------------------------------------------------------
[pmu0]
used = 0
pmu_id = 6
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
pmu_chg_ic_temp = 0
pmu_battery_rdc = 100
pmu_battery_cap = 0
pmu_runtime_chgcur = 450
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_ac_vol = 4000
pmu_ac_cur = 0
pmu_usbpc_vol = 4400
pmu_usbpc_cur = 500
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 5
pmu_bat_para10 = 8
pmu_bat_para11 = 9
pmu_bat_para12 = 10
pmu_bat_para13 = 13
pmu_bat_para14 = 16
pmu_bat_para15 = 20
pmu_bat_para16 = 33
pmu_bat_para17 = 41
pmu_bat_para18 = 46
pmu_bat_para19 = 50
pmu_bat_para20 = 53
pmu_bat_para21 = 57
pmu_bat_para22 = 61
pmu_bat_para23 = 67
pmu_bat_para24 = 73
pmu_bat_para25 = 78
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 93
pmu_bat_para30 = 94
pmu_bat_para31 = 95
pmu_bat_para32 = 100
pmu_bat_temp_enable = 0
pmu_bat_charge_ltf = 2261
pmu_bat_charge_htf = 388
pmu_bat_shutdown_ltf = 3200
pmu_bat_shutdown_htf = 237
pmu_bat_temp_para1 = 7466
pmu_bat_temp_para2 = 4480
pmu_bat_temp_para3 = 3518
pmu_bat_temp_para4 = 2786
pmu_bat_temp_para5 = 2223
pmu_bat_temp_para6 = 1788
pmu_bat_temp_para7 = 1448
pmu_bat_temp_para8 = 969
pmu_bat_temp_para9 = 664
pmu_bat_temp_para10 = 466
pmu_bat_temp_para11 = 393
pmu_bat_temp_para12 = 333
pmu_bat_temp_para13 = 283
pmu_bat_temp_para14 = 242
pmu_bat_temp_para15 = 179
pmu_bat_temp_para16 = 134
pmu_powkey_off_time = 6000
pmu_powkey_off_func = 0
pmu_powkey_off_en = 1
pmu_powkey_long_time = 1500
pmu_powkey_on_time = 1000
;--------------------------------------------------------------------------------------------------------
;pmu0 is axp81x
;regulator tree
;--------------------------------------------------------------------------------------------------------
[pmu0_regu]
regulator_count = 23
regulator1 = "axp28_rtc"
regulator2 = "axp28_aldo1"
regulator3 = "axp28_aldo2"
regulator4 = "axp28_aldo3"
regulator5 = "axp28_dldo1"
regulator6 = "axp28_dldo2"
regulator7 = "axp28_dldo3"
regulator8 = "axp28_dldo4"
regulator9 = "axp28_eldo1"
regulator0 = "axp28_eldo2"
regulator11 = "axp28_eldo3"
regulator12 = "axp28_fldo1"
regulator13 = "axp28_fldo2"
regulator14 = "axp28_dcdc1"
regulator15 = "axp28_dcdc2"
regulator16 = "axp28_dcdc3"
regulator17 = "axp28_dcdc4"
regulator18 = "axp28_dcdc5"
regulator19 = "axp28_dcdc6"
regulator20 = "axp28_dcdc7"
regulator21 = "axp28_gpio0ldo"
regulator22 = "axp28_gpio1ldo"
;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; max_freq: cpu maximum frequency, based on Hz
; min_freq: cpu minimum frequency, based on Hz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1344Mhz, 1536Mhz]
; LV2: core vdd is 1.46v if cpu frequency is (1200Mhz, 1344Mhz]
; LV3: core vdd is 1.32v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz]
; LV6: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
; LV7: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
; LV8: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
;extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 480000000
LV_count = 8
LV1_freq = 1536000000
LV1_volt = 1500
LV2_freq = 1344000000
LV2_volt = 1460
LV3_freq = 1200000000
LV3_volt = 1320
LV4_freq = 1008000000
LV4_volt = 1200
LV5_freq = 816000000
LV5_volt = 1100
LV6_freq = 648000000
LV6_volt = 1040
LV7_freq = 0
LV7_volt = 1040
LV8_freq = 0
LV8_volt = 1040
;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 0
Vdevice_0 = port:PC00<4><1><2><default>
Vdevice_1 = port:PC01<4><1><2><default>
[fel_key]
keyen_flag = 1
fel_key_max = 426
fel_key_min = 256
离线
芯天下 XTSD01GLGEAG
离线
错误:
[ 1.166637] sunxi-mmc sdc1: smc 0 p1 err, cmd 1, RTO !!
跟踪代码: lichee/linux-3.10/drivers/mmc/host/sunxi-mmc.c
static void sunxi_mmc_dump_errinfo(struct sunxi_mmc_host *host)
{
struct mmc_command *cmd = host->mrq->cmd;
struct mmc_data *data = host->mrq->data;
/* For some cmds timeout is normal with sd/mmc cards */
/*
if ((host->int_sum & SDXC_INTERRUPT_ERROR_BIT) == SDXC_RESP_TIMEOUT && (cmd->opcode == SD_IO_SEND_OP_COND || cmd->opcode == SD_IO_RW_DIRECT))
return;
*/
dev_err(mmc_dev(host->mmc),
"smc %d p%d err, cmd %d,%s%s%s%s%s%s%s%s%s%s !!\n",
host->mmc->index, host->phy_index, cmd->opcode,
data ? (data->flags & MMC_DATA_WRITE ? " WR" : " RD") : "",
host->int_sum & SDXC_RESP_ERROR ? " RE" : "",
host->int_sum & SDXC_RESP_CRC_ERROR ? " RCE" : "",
host->int_sum & SDXC_DATA_CRC_ERROR ? " DCE" : "",
host->int_sum & SDXC_RESP_TIMEOUT ? " RTO" : "",
host->int_sum & SDXC_DATA_TIMEOUT ? " DTO" : "",
host->int_sum & SDXC_FIFO_RUN_ERROR ? " FE" : "",
host->int_sum & SDXC_HARD_WARE_LOCKED ? " HL" : "",
host->int_sum & SDXC_START_BIT_ERROR ? " SBE" : "",
host->int_sum & SDXC_END_BIT_ERROR ? " EBE" : "");
/*sunxi_mmc_dumphex32(host,"sunxi mmc",host->reg_base,0x180);*/
/*sunxi_mmc_dump_des(host,host->sg_cpu,PAGE_SIZE);*/
}
SDXC_RESP_TIMEOUT 这个错误?
响应超时?
离线
各位大佬, 还能抢救一下这个 SD NAND 吗?
离线
修改 target/allwinner/violin-F1C200s/configs/sys_config.fex 从SDC0 (TF卡)启动:
;A31 PAD application
;---------------------------------------------------------------------------------------------------------
; 说明: 脚本中的字符串区分大小写,用户可以修改"="后面的数值,但是不要修改前面的字符串
; 描述gpio的形式:Port:端口+组内序号<功能分配><内部电阻状态><驱动能力><输出电平状态>
;---------------------------------------------------------------------------------------------------------
[product]
version = "100"
machine = "evb"
[platform]
eraseflag = 1
debug_mode = 1
;----------------------------------------------------------------------------------
; system configuration
; ?
;dcdc1_vol ---set dcdc1 voltage,mV,1600-3400,100mV/step
;dcdc2_vol ---set dcdc2 voltage,mV,600-1540,20mV/step
;dcdc3_vol ---set dcdc3 voltage,mV,600-1860,20mV/step
;dcdc4_vol ---set dcdc4 voltage,mV,600-1540,20mV/step
;dcdc5_vol ---set dcdc5 voltage,mV,1000-2550,50mV/step
;aldo2_vol ---set aldo2 voltage,mV,700-3300,100mV/step
;aldo3_vol ---set aldo3 voltage,mV,700-3300,100mV/step
;----------------------------------------------------------------------------------
;----------------------------------------------------------------------------------
; storage_type 0:nand 1:sd 2:emmc 3:spinor 4:emmc3 5:spinand 6:sd1
;
; as spi0 and sdc0 both use PC0-PC2
; for spinor, set [target] storage_type = 3, [spi0] spi0_used = 1 , [sdc1] sdc1_used = 0
; for spinand, set [target] storage_type = 5, [spi0] spi0_used = 1 , [sdc1] sdc1_used = 0
; for sd1, set [target] storage_type = 6, [spi0] spi0_used = 0 , [sdc1] sdc1_used = 1
;----------------------------------------------------------------------------------
[target]
boot_clock = 408
storage_type = 1
burn_key = 0
[norflash]
size = 16
[power_sply]
dcdc1_vol = 3000
dcdc2_vol = 1200
dcdc3_vol = 1200
dcdc4_vol = 1200
dcdc5_vol = 1500
aldo2_vol = 1800
aldo3_vol = 3000
;[power_ctrl]
;power_off_key = port:PD14<0><0><default><1>
;power_on = port:PD15<1><0><default><0>
[pwr_ctrl]
power_off_key = port:PD20<0><0><default><1>
power_on = port:PA1<1><default><default><0>
pwroff_gpio_is_irq = 0
[card_boot]
logical_start = 40960
sprite_gpio0 =
card_no = 1
;---------------------------------------------------------------------------------------------------------
; if 1 == standby_mode, then support super standby;
; else, support normal standby.
;---------------------------------------------------------------------------------------------------------
[pm_para]
standby_mode = 1
[card0_boot_para]
card_ctrl = 0
card_high_speed = 1
card_line = 4
sdc_d1 = port:PF0<2><1><2><default>
sdc_d0 = port:PF1<2><1><2><default>
sdc_clk = port:PF2<2><1><2><default>
sdc_cmd = port:PF3<2><1><2><default>
sdc_d3 = port:PF4<2><1><2><default>
sdc_d2 = port:PF5<2><1><2><default>
[card2_boot_para]
card_ctrl = 2
card_high_speed = 1
card_line = 8
sdc_clk = port:PC5<3><1><3><default>
sdc_cmd = port:PC6<3><1><3><default>
sdc_d0 = port:PC8<3><1><3><default>
sdc_d1 = port:PC9<3><1><3><default>
sdc_d2 = port:PC10<3><1><3><default>
sdc_d3 = port:PC11<3><1><3><default>
sdc_d4 = port:PC12<3><1><3><default>
sdc_d5 = port:PC13<3><1><3><default>
sdc_d6 = port:PC14<3><1><3><default>
sdc_d7 = port:PC15<3><1><3><default>
sdc_emmc_rst = port:PC16<3><1><3><default>
sdc_ds = port:PC01<3><1><3><default>
[card1_boot_para]
card_ctrl = 1
card_high_speed = 1
card_line = 1
sdc_clk = port:PC0<3><1><3><default>
sdc_cmd = port:PC1<3><1><3><default>
sdc_d0 = port:PC2<3><1><3><default>
[twi_para]
twi_port = 0
twi_scl = port:PD12<3><default><default><default>
twi_sda = port:PD00<3><default><default><default>
[uart_para]
uart_debug_port = 1
uart_debug_tx = port:PA2<5><1><default><default>
uart_debug_rx = port:PA3<5><1><default><default>
[jtag_para]
jtag_enable = 0
jtag_ms = port:PH9<3><default><default><default>
jtag_ck = port:PH10<3><default><default><default>
jtag_do = port:PH11<3><default><default><default>
jtag_di = port:PH12<3><default><default><default>
;*****************************************************************************
;sdram configuration
;
;*****************************************************************************
[dram_para]
dram_clk = 480
dram_type = 3
dram_zq = 0x77bb
dram_odt_en = 1
dram_para1 = 0x004319f4
dram_para2 = 0x5
dram_mr0 = 0x620
dram_mr1 = 0x0
dram_mr2 = 0x8
dram_mr3 = 0
dram_tpr0 = 0x06141B10
dram_tpr1 = 0x40416
dram_tpr2 = 0x03030306
dram_tpr3 = 0x2006
dram_tpr4 = 0x05040405
dram_tpr5 = 0x05050302
dram_tpr6 = 0x90006644
dram_tpr7 = 0x42c21590
dram_tpr8 = 0xd05612c0
dram_tpr9 = 0x00083def
dram_tpr10 = 0x18082356
dram_tpr11 = 0x32034156
dram_tpr12 = 0
dram_tpr13 = 0
;----------------------------------------------------------------------------------
;i2c configuration
;----------------------------------------------------------------------------------
[twi0]
twi0_used = 1
twi0_scl = port:PD12<3><default><default><default>
twi0_sda = port:PD00<3><default><default><default>
[twi1]
twi1_used = 0
twi1_scl = port:PB00<2><default><default><default>
twi1_sda = port:PB01<2><default><default><default>
[twi2]
twi2_used = 0
twi2_scl = port:PD15<4><default><default><default>
twi2_sda = port:PD16<4><default><default><default>
;----------------------------------------------------------------------------------
;TWI device configuration
;compatible --- device name
;reg --- device address
;----------------------------------------------------------------------------------
;[twi0/twi_board0]
;compatible =
;reg =
[io_expand]
compatible = "nxp,pcf8574a"
reg = 0x20
gpio_base = 2040
;int-gpio = port:PE09<6><default><1><1>
;----------------------------------------------------------------------------------
;uart configuration
;uart_type --- 2 (2 wire), 4 (4 wire), 8 (8 wire, full function)
;----------------------------------------------------------------------------------
[uart0]
uart0_used = 0
uart0_port = 0
uart0_type = 2
uart0_tx = port:PF2<3><1><default><default>
uart0_rx = port:PF4<3><1><default><default>
[uart1]
uart1_used = 1
uart1_port = 1
uart1_type = 2
uart1_tx = port:PA2<5><1><default><default>
uart1_rx = port:PA3<5><1><default><default>
;----------------------------------------------------------------------------------
;SPI controller configuration
;----------------------------------------------------------------------------------
[spi0]
spi0_used = 0
spi0_cs_number = 1
spi0_cs_bitmap = 1
spi0_cs0 = port:PC1<2><1><default><default>
spi0_sclk = port:PC0<2><default><default><default>
spi0_mosi = port:PC3<2><default><default><default>
spi0_miso = port:PC2<2><default><default><default>
[spi1]
spi1_used = 0
spi1_cs_number = 1
spi1_cs_bitmap = 1
spi1_cs0 = port:PE07<4><1><default><default>
spi1_sclk = port:PE09<4><default><default><default>
spi1_mosi = port:PE08<4><default><default><default>
spi1_miso = port:PE10<4><default><default><default>
;----------------------------------------------------------------------------------
;SPI device configuration
;compatible --- device name
;spi-max-frequency --- work frequency
;reg --- chip select
;optional properties: spi-cpha, spi-cpol, spi-cs-high
;----------------------------------------------------------------------------------
;[spi0/spi_board0]
;compatible =
;spi-max-frequency =
;reg =
;spi-cpha
;spi-cpol
;spi-cs-high
;----------------------------------------------------------------------------------
;resistance tp configuration
;----------------------------------------------------------------------------------
[rtp_para]
rtp_used = 0
rtp_screen_size = 5
rtp_regidity_level = 5
rtp_press_threshold_enable = 0
rtp_press_threshold = 0x1f40
rtp_sensitive_level = 0xf
rtp_exchange_x_y_flag = 0
;----------------------------------------------------------------------------------
;capacitor tp configuration
;external int function
;wakeup output function
;notice --- tp_int_port & tp_io_port use the same port
;----------------------------------------------------------------------------------
[ctp]
ctp_used = 1
ctp_twi_id = 0
ctp_twi_addr = 0x48
ctp_screen_max_x = 800
ctp_screen_max_y = 480
ctp_revert_x_flag = 1
ctp_revert_y_flag = 1
ctp_exchange_x_y_flag = 1
;ctp_int_port = port:PE12<6><default><default><1>
;ctp_wakeup = 2045
[twi0/touchscreen1]
compatible = "ctp_icn85xx"
reg = 0x48
;----------------------------------------------------------------------------------
;touch key configuration
;----------------------------------------------------------------------------------
[tkey_para]
tkey_used = 0
tkey_twi_id =
tkey_twi_addr =
tkey_int =
;----------------------------------------------------------------------------------
;motor configuration
;----------------------------------------------------------------------------------
[motor_para]
motor_used = 0
;motor_shake = port:power3<1><default><default><1>
[nand0_para]
nand0_support_2ch = 0
nand0_used = 0
nand0_we = port:PC00<2><0><1><default>
nand0_ale = port:PC01<2><0><1><default>
nand0_cle = port:PC02<2><0><1><default>
nand0_ce0 = port:PC03<2><1><1><default>
nand0_nre = port:PC04<2><0><1><default>
nand0_rb0 = port:PC05<2><1><1><default>
nand0_d0 = port:PC06<2><0><1><default>
nand0_d1 = port:PC07<2><0><1><default>
nand0_d2 = port:PC08<2><0><1><default>
nand0_d3 = port:PC09<2><0><1><default>
nand0_d4 = port:PC10<2><0><1><default>
nand0_d5 = port:PC11<2><0><1><default>
nand0_d6 = port:PC12<2><0><1><default>
nand0_d7 = port:PC13<2><0><1><default>
nand0_ndqs = port:PC14<2><0><1><default>
nand0_regulator1 = "vcc-nand"
nand0_regulator2 = "none"
nand0_cache_level = 0x55aaaa55
nand0_flush_cache_num = 0x55aaaa55
nand0_capacity_level = 0x55aaaa55
nand0_id_number_ctl = 0x55aaaa55
nand0_print_level = 0x55aaaa55
nand0_p0 = 0x55aaaa55
nand0_p1 = 0x55aaaa55
nand0_p2 = 0x55aaaa55
nand0_p3 = 0x55aaaa55
;----------------------------------------------------------------------------------
;disp init configuration
;
;disp_mode (0:screen0<screen0,fb0>)
;screenx_output_type (0:none; 1:lcd; 3:hdmi;)
;screenx_output_mode (used for hdmi output, 0:480i 1:576i 2:480p 3:576p 4:720p50)
; (5:720p60 6:1080i50 7:1080i60 8:1080p24 9:1080p50 10:1080p60)
;fbx format (4:RGB655 5:RGB565 6:RGB556 7:ARGB1555 8:RGBA5551 9:RGB888 10:ARGB8888 12:ARGB4444)
;fbx pixel sequence (0:ARGB 1:BGRA 2:ABGR 3:RGBA)
;fb0_scaler_mode_enable(scaler mode enable, used FE)
;fbx_width,fbx_height (framebuffer horizontal/vertical pixels, fix to output resolution while equal 0)
;lcdx_backlight (lcd init backlight,the range:[0,256],default:197
;lcdx_yy (lcd init screen bright/contrast/saturation/hue, value:0~100, default:50/50/57/50)
;lcd0_contrast (LCD contrast, 0~100)
;lcd0_saturation (LCD saturation, 0~100)
;lcd0_hue (LCD hue, 0~100)
;----------------------------------------------------------------------------------
[disp]
disp_init_enable = 1
disp_mode = 0
screen0_output_type = 1
screen0_output_mode = 4
screen1_output_type = 1
screen1_output_mode = 4
fb0_framebuffer_num = 2
fb0_pixel_sequence = 0
fb0_scaler_mode_enable = 0
fb0_format = 0
fb0_width = 0
fb0_height = 0
fb1_framebuffer_num = 0
fb1_pixel_sequence = 0
fb1_scaler_mode_enable = 0
fb1_format = 0
fb1_width = 0
fb1_height = 0
lcd0_backlight = 50
lcd1_backlight = 50
lcd0_bright = 50
lcd0_contrast = 50
lcd0_saturation = 57
lcd0_hue = 50
lcd1_bright = 50
lcd1_contrast = 50
lcd1_saturation = 57
lcd1_hue = 50
;----------------------------------------------------------------------------------
;lcd0 configuration
;lcd_if: 0:hv(sync+de); 1:8080; 2:ttl; 3:lvds; 4:dsi; 5:edp; 6:extend dsi
;lcd_x: lcd horizontal resolution
;lcd_y: lcd vertical resolution
;lcd_width: width of lcd in mm
;lcd_height: height of lcd in mm
;lcd_dclk_freq: in MHZ unit
;lcd_pwm_freq: in HZ unit
;lcd_pwm_pol: lcd backlight PWM polarity
;lcd_pwm_max_limit lcd backlight PWM max limit(<=255)
;lcd_hbp: hsync back porch
;lcd_ht: hsync total cycle
;lcd_vbp: vsync back porch
;lcd_vt: vysnc total cycle
;lcd_hspw: hsync plus width
;lcd_vspw: vysnc plus width
;lcd_lvds_if: 0:single link; 1:dual link
;lcd_lvds_colordepth: 0:8bit; 1:6bit
;lcd_lvds_mode: 0:NS mode; 1:JEIDA mode
;lcd_frm: 0:disable; 1:enable rgb666 dither; 2:enable rgb656 dither
;lcd_io_phase: 0:noraml; 1:intert phase(0~3bit: vsync phase; 4~7bit:hsync phase;
; 8~11bit:dclk phase; 12~15bit:de phase)
;lcd_gamma_en lcd gamma correction enable
;lcd_bright_curve_en lcd bright curve correction enable
;lcd_cmap_en lcd color map function enable
;deu_mode 0:smoll lcd screen; 1:large lcd screen(larger than 10inch)
;lcdgamma4iep: Smart Backlight parameter, lcd gamma vale * 10;
; decrease it while lcd is not bright enough; increase while lcd is too bright
;smart_color 90:normal lcd screen 65:retina lcd screen(9.7inch)
;----------------------------------------------------------------------------------
[lcd0]
lcd_used = 1
;-------------------------------------
; avdisplay lcd
;-------------------------------------
lcd_driver_name = "ili6122_800x480"
lcd_if = 0
lcd_x = 800
lcd_y = 480
lcd_width = 109
lcd_height = 63
lcd_dclk_freq = 33
lcd_pwm_used = 1
lcd_pwm_ch = 0
lcd_pwm_freq = 50000
lcd_pwm_pol = 1
lcd_hbp = 55
lcd_ht = 1056
lcd_hspw = 20
lcd_vbp = 35
lcd_vt = 525
lcd_vspw = 10
lcd_hv_if = 0
lcd_hv_smode = 0
lcd_hv_s888_if = 0
lcd_hv_syuv_if = 0
lcd_hv_vspw = 10
lcd_hv_hspw = 20
lcd_hv_sync_polarity = 3
;-------------------------------------
; qiutianwei lcd
;-------------------------------------
;lcd_x = 800
;lcd_y = 480
;lcd_width = 108
;lcd_height = 64
;lcd_dclk_freq = 33
;lcd_pwm_used = 1
;lcd_pwm_ch = 0
;lcd_pwm_freq = 50000
;lcd_pwm_pol = 1
;lcd_hbp = 88
;lcd_ht = 928
;lcd_hspw = 48
;lcd_vbp = 35
;lcd_vt = 525
;lcd_vspw = 3
;lcd_hv_if = 0
;lcd_hv_smode = 0
;lcd_hv_s888_if = 0
;lcd_hv_syuv_if = 0
;lcd_hv_vspw = 10
;lcd_hv_hspw = 123
;lcd_x = 1024
;lcd_y = 600
;lcd_width = 154
;lcd_height = 86
;lcd_dclk_freq = 50
;lcd_pwm_used = 1
;lcd_pwm_ch = 0
;lcd_pwm_freq = 50000
;lcd_pwm_pol = 1
;lcd_hbp = 160
;lcd_ht = 1344
;lcd_hspw = 48
;lcd_vbp = 23
;lcd_vt = 635
;lcd_vspw = 3
;lcd_hv_if = 0
;lcd_hv_smode = 0
;lcd_hv_s888_if = 0
;lcd_hv_syuv_if = 0
;lcd_hv_vspw = 10
;lcd_hv_hspw = 123
lcd_lvds_if = 0
lcd_lvds_colordepth = 1
lcd_lvds_mode = 0
lcd_lvds_ch = 0
lcd_lvds_bitwidth = 0
lcd_lvds_io_cross = 0
lcd_cpu_if = 0
lcd_frm = 1
lcd_rb_swap = 1
lcd_io_phase = 0x0000
lcd_gamma_en = 0
lcd_bright_curve_en = 0
lcd_cmap_en = 0
deu_mode = 0
lcdgamma4iep = 22
lcd_io_cfg0 = 0x00000000
smart_color = 90
;lcd_bl_en_used = 0
;lcd_bl_en = port:PE12<1><0><default><1>
;lcd_power = port:PE06<1><0><default><0>
lcd_gpio_0 = 2043
;lcdd2 = port:PD00<2><0><default><default>
lcdd3 = port:PD01<2><0><default><default>
lcdd4 = port:PD02<2><0><default><default>
lcdd5 = port:PD03<2><0><default><default>
lcdd6 = port:PD04<2><0><default><default>
lcdd7 = port:PD05<2><0><default><default>
lcdd10 = port:PD06<2><0><default><default>
lcdd11 = port:PD07<2><0><default><default>
lcdd12 = port:PD08<2><0><default><default>
lcdd13 = port:PD09<2><0><default><default>
lcdd14 = port:PD10<2><0><default><default>
lcdd15 = port:PD11<2><0><default><default>
;lcdd18 = port:PD12<2><0><default><default>
lcdd19 = port:PD13<2><0><default><default>
lcdd20 = port:PD14<2><0><default><default>
lcdd21 = port:PD15<2><0><default><default>
lcdd22 = port:PD16<2><0><default><default>
lcdd23 = port:PD17<2><0><default><default>
lcdclk = port:PD18<2><0><3><default>
lcdde = port:PD19<2><0><3><default>
lcdhsync = port:PD20<2><0><3><default>
lcdvsync = port:PD21<2><0><3><default>
;----------------------------------------------------------------------------------
;pwm config
;----------------------------------------------------------------------------------
[pwm0_para]
pwm_used = 0
;pwm_positive = port:PH00<2><0><default><default>
pwm_positive = port:PE12<4><0><default><default>
[pwm1_para]
pwm_used = 0
pwm_positive = port:PE06<3><0><default><default>
;--------------------------------------------------------------------------------
;vip (video input port) configuration
;vip(x)_used: 0:disable 1:enable
;vip(x)_isp_used 0:not use isp 1:use isp
;vip(x)_fmt: 0:yuv 1:bayer raw rgb
;vip(x)_stby_mode: 0:not shut down power at standby 1:shut down power at standby
;vip(x)_vflip: flip in vertical direction 0:disable 1:enable
;vip(x)_hflip: flip in horizontal direction 0:disable 1:enable
;vip(x)_iovdd: camera module io power handle string, pmu power supply
;vip(x)_iovdd_vol: camera module io power voltage, pmu power supply
;vip(x)_avdd: camera module analog power handle string, pmu power supply
;vip(x)_avdd_vol: camera module analog power voltage, pmu power supply
;vip(x)_dvdd: camera module core power handle string, pmu power supply
;vip(x)_dvdd_vol: camera module core power voltage, pmu power supply
;vip(x)_afvdd: camera module vcm power handle string, pmu power supply
;vip(x)_afvdd_vol: camera module vcm power voltage, pmu power supply
;fill voltage in uV, e.g. iovdd = 2.8V, vip_devx_iovdd_vol = 2800000
;fill handle string as below:
;axp22_eldo3
;axp22_dldo4
;axp22_eldo2
;fill handle string "" when not using any pmu power supply
;--------------------------------------------------------------------------------
[vip0]
vip0_used = 1
vip0_csi_pck = port:PE02<2><default><default><default>
vip0_csi_mck = port:PE11<2><1><3><0>
vip0_csi_hsync = port:PE00<2><default><default><default>
vip0_csi_vsync = port:PE01<2><default><default><default>
vip0_csi_d0 = port:PE03<2><default><default><default>
vip0_csi_d1 = port:PE04<2><default><default><default>
vip0_csi_d2 = port:PE05<2><default><default><default>
vip0_csi_d3 = port:PE06<2><default><default><default>
vip0_csi_d4 = port:PE07<2><default><default><default>
vip0_csi_d5 = port:PE08<2><default><default><default>
vip0_csi_d6 = port:PE09<2><default><default><default>
vip0_csi_d7 = port:PE10<2><default><default><default>
;vip0_csi_sck = port:PD12<2><default><default><default>
;vip0_csi_sda = port:PD00<2><default><default><default>
vip0_mname = "gc0308"
vip0_twi_addr = 0x42
vip0_twi_id = 0
vip0_isp_used = 0
vip0_fmt = 0
vip0_stby_mode = 0
vip0_vflip = 0
vip0_hflip = 0
vip0_iovdd = ""
vip0_iovdd_vol = 2800000
vip0_avdd = ""
vip0_avdd_vol = 2800000
vip0_dvdd = ""
vip0_dvdd_vol = 1500000
vip0_afvdd = ""
vip0_afvdd_vol = 2800000
vip0_power_en =
vip0_reset = 2044
vip0_pwdn = ""
vip0_flash_en =
vip0_flash_mode =
vip0_af_pwdn =
;--------------------------------------------------------------------------------
;tv configuration
;
;--------------------------------------------------------------------------------
[tvout_para]
tvout_used =
tvout_channel_num =
tv_en =
[tvin_para]
tvin_used =
tvin_channel_num =
; ------------------------------------------------------------------------------|
; de-interlace configuration
;--------------------------------------------------------------------------------
[di]
di_used = 0
;--------------------------------------------------------------------------------
; SDMMC PINS MAPPING |
; ------------------------------------------------------------------------------|
; Config Guide |
; sdc_used: 1-enable card, 0-disable card |
; sdc_detmode: card detect mode |
; 1-detect card by gpio polling |
; 2-detect card by gpio irq(must use IO with irq function) |
; 3-no detect, always in for boot card |
; 4-manually insert and remove by /proc/driver/sunxi-mmc.x/insert|
; sdc_buswidth: card bus width, 1-1bit, 4-4bit, 8-8bit |
; sdc_use_wp: 1-with write protect IO, 0-no write protect IO |
; sdc_isio: for sdio card |
; sdc_regulator: power control.if card supports UHS-I/DDR and HS200 timing for|
; SD3.0 or eMMC4.5, regulator must be configured. the value is |
; the ldo name of AXP221, eg: sdc_regulator = "axp22_eldo2" |
; other: GPIO Mapping configuration |
; ------------------------------------------------------------------------------|
; Note: |
; 1 if detmode=2, sdc_det's config=6 |
; else if detmode=1, sdc_det's config=0 |
; else sdc_det IO is not necessary |
; 2 if the customer wants to support UHS-I and HS200 features, he must provide|
; an independent power supply for the card. This is only used in platforms |
; that supports SD3.0 cards and eMMC4.4+ flashes |
;--------------------------------------------------------------------------------
[sdc0]
sdc0_used = 1
sdc0_detmode = 4
sdc0_buswidth = 4
sdc0_d1 = port:PF00<2><1><3><default>
sdc0_d0 = port:PF01<2><1><3><default>
sdc0_clk = port:PF02<2><1><3><default>
sdc0_cmd = port:PF03<2><1><3><default>
sdc0_d3 = port:PF04<2><1><3><default>
sdc0_d2 = port:PF05<2><1><3><default>
sdc0_det =
sdc0_use_wp = 0
sdc0_wp =
sdc0_isio = 0
sdc0_regulator = "none"
vmmc = "none"
vqmmc = "none"
vdmmc = "none"
[sdc1]
sdc1_used = 0
sdc1_detmode = 3
sdc1_buswidth = 1
sdc1_clk = port:PC00<3><1><2><default>
sdc1_cmd = port:PC01<3><1><2><default>
sdc1_d0 = port:PC02<3><1><2><default>
sdc1_det =
sdc1_use_wp = 0
sdc1_wp =
sdc1_isio = 1
sdc1_regulator = "none"
vmmc = "none"
vqmmc = "none"
vdmmc = "none"
; ------------------------------------------------------------------------------|
; sim card configuration
;--------------------------------------------------------------------------------
[smc]
smc_used =
smc_rst =
smc_vppen =
smc_vppp =
smc_det =
smc_vccen =
smc_sck =
smc_sda =
;--------------------------------
;[usbc0]:控制器0的配置。
;usb_used:USB使能标志。置1,表示系统中USB模块可用,置0,则表示系统USB禁用。
;usb_port_type:USB端口的使用情况。 0:device only;1:host only;2:OTG
;usb_detect_type:USB端口的检查方式。0:不做检测;1:vbus/id检查;2:id/dpdm检查
;usb_id_gpio:USB ID pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio:USB DET_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_drv_vbus_gpio:USB DRY_VBUS pin脚配置。具体请参考gpio配置说明。
;usb_det_vbus_gpio: "axp_ctrl",表示axp 提供
;--------------------------------
;--------------------------------
;--- USB0控制标志
;--------------------------------
;[usbc0]
;usbc0_used = 0
;usb_port_type = 2
;usb_detect_type = 1
;usb_id_gpio = port:PH09<0><1><default><default>
;usb_det_vbus_gpio = "axp_ctrl"
;usb_drv_vbus_gpio = port:PB07<1><0><default><0>
;usb_host_init_state = 0
;usb_regulator_io = "nocare"
;usb_regulator_vol = 0
;usb_wakeup_suspend = 0
;--- USB Device
;usb_luns = 3
;usb_serial_unique = 0
;usb_serial_number = "20080411"
[usbc0]
usbc0_used = 1
usb_port_type = 0
usb_detect_type = 1
usb_id_gpio =
usb_det_vbus_gpio =
usb_board_sel = 1
usb_drv_vbus_gpio = 2047
usb_host_init_state = 0
usb_regulator_io = "nocare"
usb_regulator_vol = 0
usb_wakeup_suspend = 0
; USB Device
usb_luns = 3
usb_serial_unique = 0
usb_serial_number = "20080411"
;--------------------------------
;--- USB1控制标志
;--------------------------------
;[usbc1]
;usbc1_used = 0
;usb_drv_vbus_gpio = port:PB06<1><0><default><0>
;usb_host_init_state = 1
;usb_regulator_io = "nocare"
;usb_regulator_vol = 0
;usb_wakeup_suspend = 0
;--------------------------------------------------------------------------------
; G sensor configuration
; gs_twi_id --- TWI ID for controlling Gsensor (0: TWI0, 1: TWI1, 2: TWI2)
;--------------------------------------------------------------------------------
[gsensor_para]
gsensor_used = 0
gsensor_twi_id = 2
gsensor_twi_addr = 0x18
gsensor_int1 = port:PA09<6><1><default><default>
gsensor_int2 =
;--------------------------------------------------------------------------------
; gps gpio configuration
; gps_spi_id --- the index of SPI controller. 0: SPI0, 1: SPI1, 2: SPI2, 15: no SPI used
; gps_spi_cs_num --- the chip select number of SPI controller. 0: SPI CS0, 1: SPI CS1
; gps_lradc --- the lradc number for GPS used. 0 and 1 is valid, set 2 if not use lradc
;--------------------------------------------------------------------------------
[gps_para]
;--------------------------------------------------------------------------------
;wlan configuration
;clocks: 32k clk
;wlan_power_num: the number of inputs for wifi power
;wlan_power(n): wifi power(n)
;wlan_io_regulator: the power of wifi io
;wlan_busnum: no. of bus(usb or bus)
;wlan_regon: wifi function enable/reset io
;wlan_hostwake: wifi device wake-up host
;status: okay
;--------------------------------------------------------------------------------
[wlan]
wlan_used = 1
compatible = "allwinner,sunxi-wlan"
wlan_busnum = 0
;wlan_power_num =
;wlan_power1 =
;wlan_io_regulator =
wlan_board_sel = 1
;wlan_hostwake = port:PD13<6><default><default><default>
wlan_hostwake = port:PD21<6><default><default><1>
;wlan_regon = port:PD16<1><1><3><0>
wlan_regon = 2041
;--------------------------------------------------------------------------------
;gyroscope
;--------------------------------------------------------------------------------
[gy_para]
gy_used = 0
gy_twi_id = 2
gy_twi_addr = 0x6a
gy_int1 = port:PA10<6><1><default><default>
gy_int2 =
;--------------------------------------------------------------------------------
;light sensor
;--------------------------------------------------------------------------------
[ls_para]
ls_used = 0
ls_twi_id = 2
ls_twi_addr = 0x23
ls_int = port:PA12<6><1><default><default>
;--------------------------------------------------------------------------------
;compass
;--------------------------------------------------------------------------------
[compass_para]
compass_used = 0
compass_twi_id = 2
compass_twi_addr = 0x0d
compass_int = port:PA11<6><1><default><default>
;--------------------------------------------------------------------------------
;blue tooth
;bt_used ---- blue tooth used (0- no used, 1- used)
;bt_uard_id ---- uart index
;--------------------------------------------------------------------------------
[bt_para]
bt_used =
bt_uart_id =
bt_wakeup =
bt_gpio =
bt_rst =
;--------------------------------------------------------------------------------
; NOTE :Make sure spdif_used = 0x1,spdifmach_used = 0x1,
; if register the sound card spdif.
;--------------------------------------------------------------------------------
[audiospdif]
audiospdif_used = 0
[spdif_machine]
spdif_machine_used = 0
;----------------------------------------------------------------------------------
; NOTE :Make sure hdmi_used = 0x1,hdmimach_used = 0x1,
; if register the sound card hdmi.
;---------------------------------------------------------------------------------
[audiohdmi]
audiohdmi_used = 0
[hdmi_machine]
hdmi_machine_used = 0
;--------------------------------------------------------------------------------
;allwinner,pcm_lrck_period :16/32/64/128/256
;allwinner,pcm_lrckr_period :no use
;allwinner,slot_width_select :16bits/20bits/24bits/32bits
;allwinner,pcm_lsb_first :0: msb first; 1: lsb first
;allwinner,tx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;allwinner,rx_data_mode :0: 16bit linear PCM; 1: 8bit linear PCM; 2: 8bit u-law; 3: 8bit a-law
;allwinner,daudio_master :1: SND_SOC_DAIFMT_CBM_CFM(codec clk & FRM master) use
; 2: SND_SOC_DAIFMT_CBS_CFM(codec clk slave & FRM master) not use
; 3: SND_SOC_DAIFMT_CBM_CFS(codec clk master & frame slave) not use
; 4: SND_SOC_DAIFMT_CBS_CFS(codec clk & FRM slave) use
;allwinner,audio_format: 1:SND_SOC_DAIFMT_I2S(standard i2s format). use
; 2:SND_SOC_DAIFMT_RIGHT_J(right justfied format).
; 3:SND_SOC_DAIFMT_LEFT_J(left justfied format)
; 4:SND_SOC_DAIFMT_DSP_A(pcm. MSB is available on 2nd BCLK rising edge after LRC rising edge). use
; 5:SND_SOC_DAIFMT_DSP_B(pcm. MSB is available on 1nd BCLK rising edge after LRC rising edge)
;allwinner,signal_inversion:1:SND_SOC_DAIFMT_NB_NF(normal bit clock + frame) use
; 2:SND_SOC_DAIFMT_NB_IF(normal BCLK + inv FRM)
; 3:SND_SOC_DAIFMT_IB_NF(invert BCLK + nor FRM) use
; 4:SND_SOC_DAIFMT_IB_IF(invert BCLK + FRM)
;allwinner,frametype :0: long frame = 2 clock width; 1: short frame
;allwinner,tdm_config :0:pcm 1:i2s
;allwinner,daudio0_used :0:not use 1:use
;-------------------------------------------------------------------------------
; NOTE :Make sure daudio0mach_used = 0x1,daudio0_used = 0x1,
; if register the sound card DAUDIO0.
;--------------------------------------------------------------------------------
;[daudio0_machine]
;daudio0_machine_used = 0
;-----------------------------------------------------------------------------
;[daudio0]
;pcm_lrck_period = 0x20
;pcm_lrckr_period = 0x01
;slot_width_select = 0x10
;pcm_lsb_first = 0x0
;tx_data_mode = 0x0
;rx_data_mode = 0x0
;daudio_master = 0x04
;audio_format = 0x01
;signal_inversion = 0x01
;frametype = 0x0
;tdm_config = 0x01
;daudio0_used = 0
;--------------------------------------------------------------------------------------
;allwinner,headphonevol :headphone volume:0x0--0x3f 0db--(-62db) 1db/step
;allwinner,spkervol : speaker volume:0x0--0x1f 0db-(-43.5db) 1.5db/step
;allwinner,earpiecevol : earpiece volume:0x0--0x1f 0db-(-43.5db) 1.5db/step
;allwinner,maingain : mainmic gain:0x0---0x7 0x0-0db 0x1:24db 3db/step
;allwinner,headsetmicgain : headphonemic gain:0x0---0x7 0x0-0db 0x1:24db 3db/step
;allwinner,adcagc_cfg : 1:use adcagc 0:no use
;allwinner,adcdrc_cfg : 1:use adcdrc 0:no use
;allwinner,adchpf_cfg : 1:use adchpf 0:no use
;allwinner,dacdrc_cfg : 1:use adcdrc 0:no use
;allwinner,dachpf_cfg : 1:use adchpf 0:no use
;allwinner,aif2config : 1:use aif2 0:no use
;allwinner,aif3config : 1:use aif3 0:no use
;--------------------------------------------------------------------------------
; NOTE :Make sure audiocodec_machine_used = 0x1,sun50i2s_used = 0x1
; sun50codec_used = 0x1,if register the sound card audiocodec.
;---------------------------------------------------------------------------------
;[audiocodec_machine]
;audiocodec_machine_used = 0
;-------------------------------------------------------------------------------------
;used ---0:not used,1:used
;pmu_id ---0:axp19x,1:axp209,2:axp22x,3:axp806,4:axp808,5:axp809,6:axp803,7:axp813
;pmu_twi_addr ---slave address
;pmu_twi_id ---i2c bus number (0 TWI0, 1 TWI2, 2 TWI3)
;pmu_irq_id ---irq number (0 irq0,1 irq1)
;pmu_chg_ic_temp ---intelligence charge pmu temperature. when it is 0, this function is closed.
;pmu_battery_rdc ---battery initial resistance
;pmu_battery_cap ---battery capability,mAh
;pmu_runtime_chgcur ---set initial charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_suspend_chgcur ---set suspend charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_shutdown_chgcur ---set shutdown charging current limite,mA, 300/450/600/750/900/1050/1200/1350/1500/1650/1800/1950/
;pmu_init_chgvol ---set initial charing target voltage,mV,4100/4220/4200/4240
;pmu_ac_vol ---set usb-ac limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_ac_cur ---set usb-ac limited current level,mA,500/900, 0 - not limite
;pmu_usbpc_vol ---set usb-pc limited voltage level,mV,4000/4100/4200/4300/4400/4500/4600/4700,0 - not limite
;pmu_usbpc_cur ---set usb-pc limited current level,mA,500/900, 0 - not limite
;pmu_battery_warning_level1 ---low power warning high level,5%-20%,1%/step
;pmu_battery_warning_level2 ---low power warning low level,0%-15%,1%/step
;pmu_chgled_func ---CHGKED pin control, 0:controlled by pmu,1:controlled by Charger
;pmu_chgled_type ---CHGLED Type select when pmu_chgled_func=0,0:Type A, 1:type B
;pmu_bat_para1 ---battery indication at 3.13V
;pmu_bat_para2 ---battery indication at 3.27V
;pmu_bat_para3 ---battery indication at 3.34V
;pmu_bat_para4 ---battery indication at 3.41V
;pmu_bat_para5 ---battery indication at 3.48V
;pmu_bat_para6 ---battery indication at 3.52V
;pmu_bat_para7 ---battery indication at 3.55V
;pmu_bat_para8 ---battery indication at 3.57V
;pmu_bat_para9 ---battery indication at 3.59V
;pmu_bat_para10 ---battery indication at 3.61V
;pmu_bat_para11 ---battery indication at 3.63V
;pmu_bat_para12 ---battery indication at 3.64V
;pmu_bat_para13 ---battery indication at 3.66V
;pmu_bat_para14 ---battery indication at 3.7V
;pmu_bat_para15 ---battery indication at 3.73V
;pmu_bat_para16 ---battery indication at 3.77V
;pmu_bat_para17 ---battery indication at 3.78V
;pmu_bat_para18 ---battery indication at 3.8V
;pmu_bat_para19 ---battery indication at 3.82V
;pmu_bat_para20 ---battery indication at 3.84V
;pmu_bat_para21 ---battery indication at 3.85V
;pmu_bat_para22 ---battery indication at 3.87V
;pmu_bat_para23 ---battery indication at 3.91V
;pmu_bat_para24 ---battery indication at 3.94V
;pmu_bat_para25 ---battery indication at 3.98V
;pmu_bat_para26 ---battery indication at 4.01V
;pmu_bat_para27 ---battery indication at 4.05V
;pmu_bat_para28 ---battery indication at 4.08V
;pmu_bat_para29 ---battery indication at 4.1V
;pmu_bat_para30 ---battery indication at 4.12V
;pmu_bat_para31 ---battery indication at 4.14V
;pmu_bat_para32 ---battery indication at 4.15V
;pmu_bat_temp_enable ---battery temp detect enable
;pmu_bat_charge_ltf ---charge battery temp low threshold voltage
;pmu_bat_charge_htf ---charge battery temp high threshold voltage
;pmu_bat_shutdown_ltf ---shutdown battery temp low threshold voltage
;pmu_bat_shutdown_htf ---shutdown battery temp high threshold voltage
;pmu_bat_temp_para1 ---battery temp -25 voltage
;pmu_bat_temp_para2 ---battery temp -15 voltage
;pmu_bat_temp_para3 ---battery temp -10 voltage
;pmu_bat_temp_para4 ---battery temp -5 voltage
;pmu_bat_temp_para5 ---battery temp 0 voltage
;pmu_bat_temp_para6 ---battery temp 5 voltage
;pmu_bat_temp_para7 ---battery temp 10 voltage
;pmu_bat_temp_para8 ---battery temp 20 voltage
;pmu_bat_temp_para9 ---battery temp 30 voltage
;pmu_bat_temp_para10 ---battery temp 40 voltage
;pmu_bat_temp_para11 ---battery temp 45 voltage
;pmu_bat_temp_para12 ---battery temp 50 voltage
;pmu_bat_temp_para13 ---battery temp 55 voltage
;pmu_bat_temp_para14 ---battery temp 60 voltage
;pmu_bat_temp_para15 ---battery temp 70 voltage
;pmu_bat_temp_para16 ---battery temp 80 voltage
;pmu_powkey_off_time ---set pek off time,ms, 4000/6000/8000/10000
;pmu_powkey_off_func ---set pek off func, 0:shutdown,1:restart
;pmu_powkey_off_en ---set pek offlevel powerdown or not, 0:not powerdown,1:powerdown
;pmu_powkey_long_time ---set pek pek long irq time,ms,1000/1500/2000/2500
;pmu_powkey_on_time ---set pek on time,ms,128/1000/2000/3000
;--------------------------------------------------------------------------------------------------------
;--------------------------------------------------------------------------------------------------------
;pmu0 is axp81x
;--------------------------------------------------------------------------------------------------------
[pmu0]
used = 0
pmu_id = 6
pmu_twi_addr = 0x34
pmu_twi_id = 1
pmu_irq_id = 0
pmu_chg_ic_temp = 0
pmu_battery_rdc = 100
pmu_battery_cap = 0
pmu_runtime_chgcur = 450
pmu_suspend_chgcur = 1500
pmu_shutdown_chgcur = 1500
pmu_init_chgvol = 4200
pmu_ac_vol = 4000
pmu_ac_cur = 0
pmu_usbpc_vol = 4400
pmu_usbpc_cur = 500
pmu_battery_warning_level1 = 15
pmu_battery_warning_level2 = 0
pmu_chgled_func = 0
pmu_chgled_type = 0
pmu_bat_para1 = 0
pmu_bat_para2 = 0
pmu_bat_para3 = 0
pmu_bat_para4 = 0
pmu_bat_para5 = 0
pmu_bat_para6 = 0
pmu_bat_para7 = 0
pmu_bat_para8 = 0
pmu_bat_para9 = 5
pmu_bat_para10 = 8
pmu_bat_para11 = 9
pmu_bat_para12 = 10
pmu_bat_para13 = 13
pmu_bat_para14 = 16
pmu_bat_para15 = 20
pmu_bat_para16 = 33
pmu_bat_para17 = 41
pmu_bat_para18 = 46
pmu_bat_para19 = 50
pmu_bat_para20 = 53
pmu_bat_para21 = 57
pmu_bat_para22 = 61
pmu_bat_para23 = 67
pmu_bat_para24 = 73
pmu_bat_para25 = 78
pmu_bat_para26 = 84
pmu_bat_para27 = 88
pmu_bat_para28 = 92
pmu_bat_para29 = 93
pmu_bat_para30 = 94
pmu_bat_para31 = 95
pmu_bat_para32 = 100
pmu_bat_temp_enable = 0
pmu_bat_charge_ltf = 2261
pmu_bat_charge_htf = 388
pmu_bat_shutdown_ltf = 3200
pmu_bat_shutdown_htf = 237
pmu_bat_temp_para1 = 7466
pmu_bat_temp_para2 = 4480
pmu_bat_temp_para3 = 3518
pmu_bat_temp_para4 = 2786
pmu_bat_temp_para5 = 2223
pmu_bat_temp_para6 = 1788
pmu_bat_temp_para7 = 1448
pmu_bat_temp_para8 = 969
pmu_bat_temp_para9 = 664
pmu_bat_temp_para10 = 466
pmu_bat_temp_para11 = 393
pmu_bat_temp_para12 = 333
pmu_bat_temp_para13 = 283
pmu_bat_temp_para14 = 242
pmu_bat_temp_para15 = 179
pmu_bat_temp_para16 = 134
pmu_powkey_off_time = 6000
pmu_powkey_off_func = 0
pmu_powkey_off_en = 1
pmu_powkey_long_time = 1500
pmu_powkey_on_time = 1000
;--------------------------------------------------------------------------------------------------------
;pmu0 is axp81x
;regulator tree
;--------------------------------------------------------------------------------------------------------
[pmu0_regu]
regulator_count = 23
regulator1 = "axp28_rtc"
regulator2 = "axp28_aldo1"
regulator3 = "axp28_aldo2"
regulator4 = "axp28_aldo3"
regulator5 = "axp28_dldo1"
regulator6 = "axp28_dldo2"
regulator7 = "axp28_dldo3"
regulator8 = "axp28_dldo4"
regulator9 = "axp28_eldo1"
regulator0 = "axp28_eldo2"
regulator11 = "axp28_eldo3"
regulator12 = "axp28_fldo1"
regulator13 = "axp28_fldo2"
regulator14 = "axp28_dcdc1"
regulator15 = "axp28_dcdc2"
regulator16 = "axp28_dcdc3"
regulator17 = "axp28_dcdc4"
regulator18 = "axp28_dcdc5"
regulator19 = "axp28_dcdc6"
regulator20 = "axp28_dcdc7"
regulator21 = "axp28_gpio0ldo"
regulator22 = "axp28_gpio1ldo"
;----------------------------------------------------------------------------------
; dvfs voltage-frequency table configuration
;
; max_freq: cpu maximum frequency, based on Hz
; min_freq: cpu minimum frequency, based on Hz
;
; LV_count: count of LV_freq/LV_volt, must be < 16
;
; LV1: core vdd is 1.50v if cpu frequency is (1344Mhz, 1536Mhz]
; LV2: core vdd is 1.46v if cpu frequency is (1200Mhz, 1344Mhz]
; LV3: core vdd is 1.32v if cpu frequency is (1008Mhz, 1200Mhz]
; LV4: core vdd is 1.20v if cpu frequency is (816Mhz, 1008Mhz]
; LV5: core vdd is 1.10v if cpu frequency is (648Mhz, 816Mhz]
; LV6: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
; LV7: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
; LV8: core vdd is 1.04v if cpu frequency is (120Mhz, 648Mhz]
;
;----------------------------------------------------------------------------------
[dvfs_table]
;extremity_freq = 1344000000
max_freq = 1200000000
min_freq = 480000000
LV_count = 8
LV1_freq = 1536000000
LV1_volt = 1500
LV2_freq = 1344000000
LV2_volt = 1460
LV3_freq = 1200000000
LV3_volt = 1320
LV4_freq = 1008000000
LV4_volt = 1200
LV5_freq = 816000000
LV5_volt = 1100
LV6_freq = 648000000
LV6_volt = 1040
LV7_freq = 0
LV7_volt = 1040
LV8_freq = 0
LV8_volt = 1040
;----------------------------------------------------------------------------------
;virtual device
;virtual device for pinctrl testing
;device have pin PA1 PA2
;----------------------------------------------------------------------------------
[Vdevice]
Vdevice_used = 0
Vdevice_0 = port:PC00<4><1><2><default>
Vdevice_1 = port:PC01<4><1><2><default>
[fel_key]
keyen_flag = 1
fel_key_max = 426
fel_key_min = 256
正常烧录到TF卡:
[0]beign to init dram
[23]init dram ok
U-Boot 2014.07 (Aug 21 2019 - 14:53:36) Allwinner Technology
uboot commit : 78cb55af380c57c0278162e241a9999cdc16e1d6
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
[2.997]pmbus: ready
axp: get node[/soc/pmu0] error
axp_probe error
[3.003]PMU: cpux 408 Mhz,AXI=408 Mhz
PLL6=600 Mhz,AHB1=200 Mhz, APB1=100Mhz
DRAM: 32 MiB
[3.013]fdt addr: 0x809e7820
[3.015]gd->fdt_size: 0xc320
Relocation Offset is: 01520000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
[3.085]flash init start
workmode = 16,storage type = 3
try card 1
[3.091][mmc]: mmc driver ver 2018-12-27 9:21:00
SUNXI SD/MMC: 1
[3.109][mmc]: ************Try SD card 1************
[3.119][mmc]: host caps: 0x23
[3.122][mmc]: MID 00 PSN 00000289
[3.125][mmc]: PNM APPSD -- 0x41-50-50-53-44
[3.129][mmc]: PRV 0.0
[3.131][mmc]: MDT m-3 y-2018
[3.134][mmc]: user capacity : 120 MB
[3.137][mmc]: cache size 0 KB
[3.140][mmc]: cache ctl 0
[3.142][mmc]: SD/MMC 1 init OK!!!
[3.146][mmc]: End mmc_init_boot
read mbr copy[0] failed
read mbr copy[1] failed
read mbr copy[2] failed
read mbr copy[3] failed
[3.158]flash init end
[3.160]try to burn key
[3.164]inter uboot shell
Hit any key to stop autoboot: 0
work mode=0x10
run usb efex
delay time 2500
int sunxi_dma_init---
irq enable
sunxi_dma_install_int ok
usb init ok
set address 0x1
SUNXI_EFEX_ERASE_TAG
erase_flag = 0x0
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
the 0 mbr table is ok
the 1 mbr table is ok
the 2 mbr table is ok
the 3 mbr table is ok
*************MBR DUMP***************
total mbr part 8
part[0] name :bootlogo
part[0] classname :DISK
part[0] addrlo :0x2000
part[0] lenlo :0x400
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2400
part[1] lenlo :0x200
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x2600
part[2] lenlo :0x3000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0x5600
part[3] lenlo :0xc800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs_data
part[4] classname :DISK
part[4] addrlo :0x11e00
part[4] lenlo :0xc800
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :misc
part[5] classname :DISK
part[5] addrlo :0x1e600
part[5] lenlo :0x200
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :private
part[6] classname :DISK
part[6] addrlo :0x1e800
part[6] lenlo :0x200
part[6] user_type :32768
part[6] keydata :0
part[6] ro :0
part[7] name :UDISK
part[7] classname :DISK
part[7] addrlo :0x1ea00
part[7] lenlo :0x0
part[7] user_type :33024
part[7] keydata :0
part[7] ro :0
total part: 9
mbr 0, 2000, 8000
bootlogo 1, 400, 8000
env 2, 200, 8000
boot 3, 3000, 8000
rootfs 4, c800, 8000
rootfs_data 5, c800, 8000
misc 6, 200, 8000
private 7, 200, 8000
UDISK 8, 0, 8100
not need erase flash
sunxi_sprite_erase_flash, erase_flag=0
private part exist
the 0 mbr table is ok
*************MBR DUMP***************
total mbr part 8
part[0] name :bootlogo
part[0] classname :DISK
part[0] addrlo :0x2000
part[0] lenlo :0x400
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2400
part[1] lenlo :0x200
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x2600
part[2] lenlo :0x3000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0x5600
part[3] lenlo :0xc800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs_data
part[4] classname :DISK
part[4] addrlo :0x11e00
part[4] lenlo :0xc800
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :misc
part[5] classname :DISK
part[5] addrlo :0x1e600
part[5] lenlo :0x200
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :private
part[6] classname :DISK
part[6] addrlo :0x1e800
part[6] lenlo :0x200
part[6] user_type :32768
part[6] keydata :0
part[6] ro :0
part[7] name :UDISK
part[7] classname :DISK
part[7] addrlo :0x1ea00
part[7] lenlo :0x0
part[7] user_type :33024
part[7] keydata :0
part[7] ro :0
begin to store data
part name bootlogo
keydata = 0x0
part name env
keydata = 0x0
part name boot
keydata = 0x0
part name rootfs
keydata = 0x0
part name rootfs_data
keydata = 0x0
part name misc
keydata = 0x0
part name private
keydata = 0x0
find keypart private
keypart read start: 0x1e800, sectors 0x200
keypart part private read end: 0x1e800, sectors 0x200
part name UDISK
keydata = 0x0
need_erase_flag = 0
begin to erase
finish erase
rewrite
keypart write start: 0x1e800, sectors 0x200
keypart write end: 0x1e800, sectors 0x200
flash exit
SUNXI_EFEX_MBR_TAG
mbr size = 0x10000
begin to write standard mbr
successed to write standard mbr
sunxi_sprite_verify_mbr_from_flash
the 0 mbr table is ok
the 1 mbr table is ok
the 2 mbr table is ok
the 3 mbr table is ok
*************MBR DUMP***************
total mbr part 8
part[0] name :bootlogo
part[0] classname :DISK
part[0] addrlo :0x2000
part[0] lenlo :0x400
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x2400
part[1] lenlo :0x200
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x2600
part[2] lenlo :0x3000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0x5600
part[3] lenlo :0xc800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :rootfs_data
part[4] classname :DISK
part[4] addrlo :0x11e00
part[4] lenlo :0xc800
part[4] user_type :32768
part[4] keydata :0
part[4] ro :0
part[5] name :misc
part[5] classname :DISK
part[5] addrlo :0x1e600
part[5] lenlo :0x200
part[5] user_type :32768
part[5] keydata :0
part[5] ro :0
part[6] name :private
part[6] classname :DISK
part[6] addrlo :0x1e800
part[6] lenlo :0x200
part[6] user_type :32768
part[6] keydata :0
part[6] ro :0
part[7] name :UDISK
part[7] classname :DISK
part[7] addrlo :0x1ea00
part[7] lenlo :0x0
part[7] user_type :33024
part[7] keydata :0
part[7] ro :0
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
FEX_CMD_fes_verify_value, start 0x2000, size high 0x0:low 0x4b036
FEX_CMD_fes_verify_value 0x60b4446e
FEX_CMD_fes_verify_value, start 0x2400, size high 0x0:low 0x20000
FEX_CMD_fes_verify_value 0xc6018f2f
FEX_CMD_fes_verify_value, start 0x2600, size high 0x0:low 0x293970
FEX_CMD_fes_verify_value 0x4ad56ee9
FEX_CMD_fes_verify_value, start 0x5600, size high 0x0:low 0x500000
FEX_CMD_fes_verify_value 0x4224501f
bootfile_mode=4
SUNXI_EFEX_BOOT1_TAG
boot1 size = 0xb8000
uboot_pkg magic 0x89119800
uboot size = 0xb8000
storage type = 6
mmc down uboot
uboot_pkg magic 0x89119800
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
bootfile_mode=4
SUNXI_EFEX_BOOT0_TAG
boot0 size = 0x8000
production_media:6!
[24.660][mmc]: write mmc info ok
dram para[0] = ea00018e
dram para[1] = 6f6f6275
dram para[2] = 74
dram para[3] = c378ee87
dram para[4] = 4000
dram para[5] = a4000
dram para[6] = a4000
dram para[7] = 2e302e33
dram para[8] = 30
dram para[9] = 2e302e31
dram para[10] = 30
dram para[11] = 80800000
dram para[12] = 80000000
dram para[13] = 0
dram para[14] = 0
dram para[15] = 0
dram para[16] = 0
dram para[17] = 0
dram para[18] = 0
dram para[19] = 0
dram para[20] = 0
dram para[21] = 0
dram para[22] = 0
dram para[23] = 0
dram para[24] = 0
dram para[25] = 0
dram para[26] = 0
dram para[27] = 0
dram para[28] = 0
dram para[29] = 0
dram para[30] = 0
dram para[31] = 0
storage type = 6
card1 download boot0
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
sunxi_efex_next_action=2
exit usb
sunxi dma exit
next work 2
SUNXI_UPDATE_NEXT_ACTION_REBOOT
set next mode 14
sunxi dma exit
[0]HELLO! BOOT0 is starting!
[2]boot0 commit : 80628dcde5dc4ecdc757a9e782c58d7cf1abf959
[60]dram size =64
[62]card no is 1
[63]sdcard 1 line count 1
[65][mmc]: mmc driver ver 2018-5-23 16:07:00
[69][mmc]: mmc_get_timing_cfg: input para error!
[74][mmc]: mmc_get_timing_cfg: input para error!
[84][mmc]: Wrong media type 0xffffff00
[87][mmc]: ***Try SD card 1***
[97][mmc]: DS26/SDR12 1 bit
[100][mmc]: 25000000 Hz
[102][mmc]: 120 MB
[103][mmc]: ***SD/MMC 1 init OK!!!***
[388]Loading boot-pkg Succeed(index=0).
[401]Ready to disable icache.
[403]Jump to secend Boot.
这是日志:
U-Boot 2014.07 (Aug 21 2019 - 14:53:36) Allwinner Technology
uboot commit : 78cb55af380c57c0278162e241a9999cdc16e1d6
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.452]pmbus: ready
axp: get node[/soc/pmu0] error
axp_probe error
[0.459]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: 03520000
axp: get node[/soc/pmu0] error
int sunxi_dma_init---
irq enable
workmode = 0,storage type = 6
[0.542]MMC: 1
SUNXI SD/MMC: 1
used mbr [0], count = 8
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: 2701616 Bytes = 2.6 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 8100f31f
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 (cube@global) (gcc version 6.4.1 (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) ) #49 Wed Mar 31 03:13:49 UTC 2021
[ 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 c0574d14, node_mem_map c05a2000
[ 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 pages: 16256
[ 0.000000] Kernel command line: enforcing=1 earlyprintk=sunxi-uart,0x01c25000 initcall_debug=0 console=ttyS1,115200 loglevel=8 root=/dev/mmcblk0p7 init=/pseudo_init rdinit=/rdinit partitions=bootlogo@mmcblk0p2:env@mmcblk0p5:boot@mmcblk0p6:rootfs@mmcblk0p7:rootfs_data@mmcblk0p8:misc@mmcblk0p9:private@mmcblk0p10:UDISK@mmcblk0p1 cma=32M rootdelay=5 fb_base=0x83f00000 androidboot.serialno=0000000000000000000 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: 26220k/26220k available, 39316k 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 - 0xc046ff84 (4512 kB)
[ 0.000000] .init : 0xc0470000 - 0xc048e038 ( 121 kB)
[ 0.000000] .data : 0xc0490000 - 0xc0575688 ( 918 kB)
[ 0.000000] .bss : 0xc0575688 - 0xc05a1eb0 ( 179 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 178956ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.005329] Calibrating delay loop... 275.25 BogoMIPS (lpj=1376256)
[ 0.075252] pid_max: default: 32768 minimum: 301
[ 0.080434] Mount-cache hash table entries: 512
[ 0.086432] CPU: Testing write buffer coherency: ok
[ 0.092226] Setting up static identity map for 0xc036a8b0 - 0xc036a908
[ 0.101524] devtmpfs: initialized
[ 0.107140] pinctrl core: initialized pinctrl subsystem
[ 0.119530] NET: Registered protocol family 16
[ 0.127535] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.135202] dump_class_init,844, success
[ 0.144039] sun3iw1p1-pinctrl pio: initialized sunXi PIO driver
[ 0.167696] bio: create slab <bio-0> at 0
[ 0.173223] pwm module init!
[ 0.178008] SCSI subsystem initialized
[ 0.182187] usbcore: registered new interface driver usbfs
[ 0.188070] usbcore: registered new interface driver hub
[ 0.193954] usbcore: registered new device driver usb
[ 0.201483] gpio=0,mul_sel=0,pull=0,drv_level=0,data=0
[ 0.207196] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.215739] pcf857x 0-0020: retry commucation.7
[ 0.220704] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.229230] pcf857x 0-0020: retry commucation.6
[ 0.234205] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.242722] pcf857x 0-0020: retry commucation.5
[ 0.247678] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.256197] pcf857x 0-0020: retry commucation.4
[ 0.261148] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.269665] pcf857x 0-0020: retry commucation.3
[ 0.274643] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.283157] pcf857x 0-0020: retry commucation.2
[ 0.288109] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.296625] pcf857x 0-0020: retry commucation.1
[ 0.301577] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x48, dev addr: 0x20)
[ 0.310124] pcf857x: probe of 0-0020 failed with error -70
[ 0.319638] Linux video capture interface: v2.00
[ 0.325064] Advanced Linux Sound Architecture Driver Initialized.
[ 0.333034] cfg80211: Calling CRDA to update world regulatory domain
[ 0.341798] Switching to clocksource sun3i high-res couter
[ 0.366826] get det_vbus is fail, 84
[ 0.372247] NET: Registered protocol family 2
[ 0.378927] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.386042] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.392703] TCP: Hash tables configured (established 512 bind 512)
[ 0.399260] TCP: reno registered
[ 0.402654] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.408766] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.415866] NET: Registered protocol family 1
[ 0.433911] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.440563] jffs2: version 2.2. © 2001-2006 Red Hat, Inc.
[ 0.446990] msgmni has been set to 115
[ 0.454234] io scheduler noop registered
[ 0.458527] io scheduler cfq registered (default)
[ 0.463400] [pm]aw_pm_init!
[ 0.466662] [pm]valid
[ 0.469156] [pm]valid
[ 0.471883] [DISP]disp_module_init
[ 0.527687] pll_freq=297000000HZ, lcd_dclk_freq=33000000HZ, clk_div=9
[ 0.535065] num_screens=1
[ 0.537956] screen_id=0
[ 0.540536] para->mclk[MOD_CLK_LCD1CH0]=0xc180c340
[ 0.545486] para->mclk[MOD_CLK_LCD1CH1]=0xc180c440
[ 0.550486] disp tv init
[ 0.553154] tcon_clk=0xc180c340, tcon_clk_parent=0x0
[ 0.558324] tcon_clk=0xc180c340, tcon_clk_parent=0xc1804400
[ 0.564071] tve_clk=0xc180c440, tve_clk_parent=0xc1804400
[ 0.569668] disp al tv init
[ 0.575330] fetch script datadisp.screen2_output_type fail
[ 0.581422] fetch script datadisp.screen2_output_mode fail
[ 0.589802] fetch script datadisp.fb2_format fail
[ 0.594977] fetch script datadisp.fb2_scaler_mode_enable fail
[ 0.601283] fetch script datadisp.fb2_width fail
[ 0.606372] fetch script datadisp.fb2_height fail
[ 0.634538] [DISP]disp_module_init finish
[ 0.652774] uart1: ttyS1 at MMIO 0x1c25400 (irq = 104) is a SUNXI
[ 0.659218] sw_console_setup()1324 - console setup baud 115200 parity n bits 8, flow n
[ 0.667380] console [ttyS1] enabled, bootconsole disabled
[ 0.667380] console [ttyS1] enabled, bootconsole disabled
[ 0.679949] misc dump reg init
[ 0.684602] sunxi-wlan wlan: wlan_busnum (0)
[ 0.689487] sunxi-wlan wlan: wlan_power_num (0)
[ 0.694530] sunxi-wlan wlan: Missing wlan_io_regulator.
[ 0.700384] sunxi-wlan wlan: io_regulator_name ((null))
[ 0.706217] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[ 0.714077] ------------SUNXI_RF: Set regon for SUN3IW1P1_R6!----------------
[ 0.722050] sunxi-wlan wlan: wlan_regon gpio=-1048149120 mul-sel=-1048355436 pull=-1048355480 drv_level=-1072832404 data=-1072834700
[ 0.735692] sunxi-wlan wlan: can't request wlan_regon gpio 2041
[ 0.742330] platform wlan: Driver sunxi-wlan requests probe deferral
[ 0.749769] lradc_battery_probe:lradc_battery_probe ++++++
[ 0.755867] lradc_battery_dts_parse:lradc_battery_dts_parse ++++++
[ 0.762831] key base: f1c23400
[ 0.766360] irq num: 114 !
[ 0.769433] battery_data_hw_init:battery_data_hw_init ++++++
[ 0.775769] lradc_battery_probe:lradc_battery_probe ------
[ 0.783441] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.792039] gpio_request failed
[ 0.795548] get regulator_io is no nocare
[ 0.800275] sunxi_hcd_host0 1c13000.otghci0-controller: sunxi_hcd host driver
[ 0.808308] sunxi_hcd_host0 1c13000.otghci0-controller: new USB bus registered, assigned bus number 1
[ 0.820143] hub 1-0:1.0: USB hub found
[ 0.824361] hub 1-0:1.0: 1 port detected
[ 0.829317] wrn: hcd is not enable, need not stop hcd
[ 0.835676] sunxi_keyboard_startup: keyboard has no clk.
[ 0.842293] input: sunxi-keyboard as /devices/virtual/input/input0
[ 0.850338] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[ 0.857438] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x51)
[ 0.866707] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[ 0.873945] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[ 0.881597] sunxi cedar version 0.1
[ 0.885716] VE: install start!!!
[ 0.885716]
[ 0.891211] cedar_ve: cedar-ve the get irq is 103
[ 0.897041] VE: install end!!!
[ 0.897041]
[ 0.903793] sunxi-mmc sdc0: SD/MMC/SDIO Host Controller Driver(v0.91 2018-5-29 14:19) Compiled in Mar 31 2021 at 03:13:29
[ 0.916288] sunxi-mmc sdc0: regulator prop vmmc,str none
[ 0.922289] sunxi-mmc sdc0: regulator prop vqmmc,str none
[ 0.928370] sunxi-mmc sdc0: regulator prop vdmmc,str none
[ 0.934373] sunxi-mmc sdc0: Failed getting OCR mask: 0
[ 0.941525] sunxi-mmc sdc0: ***set host ocr***
[ 0.946844] sunxi-mmc sdc0: sdc set ios: clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 0.967712] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 0.997861] sunxi-mmc sdc0: base:0xf1c0f000 irq:106
[ 1.003317] sunxi-mmc sdc0: smc 0 p0 err, cmd 52, RTO !!
[ 1.010174] sunxi-mmc sdc0: smc 0 p0 err, cmd 52, RTO !!
[ 1.016170] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.030402] failed to get gpio-spk and gpio_num
[ 1.038916] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTR
[ 1.046912] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin HPOUTL
[ 1.054916] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKL
[ 1.062699] sunxi-internal-codec 1c23c00.codec: ASoC: DAPM unknown pin SPKR
[ 1.070465] sunxi-codec-machine sound.2: ASoC: DAPM unknown pin External Speaker
[ 1.079811] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[ 1.098652] sunxi-codec-machine sound.2: sun3iw1codec <-> 1c23c00.cpudai0-controller mapping ok
[ 1.108567] sunxi-codec-machine sound.2: ASoC: no sink widget found for MainMic Bias
[ 1.117172] sunxi-codec-machine sound.2: ASoC: Failed to add route External MainMic -> direct -> MainMic Bias
[ 1.128241] sunxi-codec-machine sound.2: ASoC: no source widget found for MainMic Bias
[ 1.137035] sunxi-codec-machine sound.2: ASoC: Failed to add route MainMic Bias -> direct -> MIC1P
[ 1.147017] sunxi-codec-machine sound.2: ASoC: no source widget found for MainMic Bias
[ 1.155843] sunxi-codec-machine sound.2: ASoC: Failed to add route MainMic Bias -> direct -> MIC1N
[ 1.168168] sunxi-mmc sdc0: smc 0 p0 err, cmd 5, RTO !!
[ 1.174900] sunxi-mmc sdc0: smc 0 p0 err, cmd 5, RTO !!
[ 1.181713] sunxi-mmc sdc0: smc 0 p0 err, cmd 5, RTO !!
[ 1.188013] ipip: IPv4 over IPv4 tunneling driver
[ 1.193289] sunxi-mmc sdc0: smc 0 p0 err, cmd 5, RTO !!
[ 1.199951] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[ 1.211425] gre: GRE over IPv4 demultiplexor driver
[ 1.216856] ip_gre: GRE over IPv4 tunneling driver
[ 1.222429] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[ 1.235486] TCP: cubic registered
[ 1.239299] Initializing XFRM netlink socket
[ 1.245259] NET: Registered protocol family 17
[ 1.251369] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing LEGACY(SDR12) dt B
[ 1.262278] NET: Registered protocol family 15
[ 1.267832] VFP support v0.3: not present
[ 1.274792] [LCD]lcd_module_init
[ 1.282517] enhance_en=1
[ 1.285393] matrixresult:(0x0, 0x3c4, 0x0, 0x0)
[ 1.290671] pll_freq=297000000HZ, lcd_dclk_freq=33000000HZ, clk_div=9
[ 1.297940] clk_div=9
[ 1.300480] [DISP] disp_sys_gpio_request,line:303: disp_sys_gpio_request failed, gpio_name=lcd_gpio_0, gpio=2043, ret=-517
[ 1.314739] [LCD]open, step 0 finish
[ 1.326092] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 1.337023] sunxi-mmc sdc0: sdc set ios: clk 400000Hz bm PP pm ON vdd 16 width 1 timing SD-HS(SDR25) dt B
[ 1.347848] sunxi-mmc sdc0: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 1 timing SD-HS(SDR25) dt B
[ 1.358788] [LCD]open, step 1 finish
[ 1.362975] sunxi-mmc sdc0: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 4 timing SD-HS(SDR25) dt B
[ 1.373949] mmc0: new high speed SD card at address 0002
[ 1.380792] mmcblk0: mmc0:0002 N/A 1.85 GiB
[ 1.387718] mmcblk0:
[ 1.417735] [LCD]open, step 2 finish
[ 1.537691] ------------[ cut here ]------------
[ 1.542890] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[ 1.550688] invalid GPIO -517
[ 1.554007] Modules linked in:
[ 1.557415] CPU: 0 PID: 9 Comm: kworker/0:1 Not tainted 3.10.65 #49
[ 1.564454] Workqueue: events start_work
[ 1.568853] Backtrace:
[ 1.571669] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[ 1.581082] r7:0000007e r6:c042213d r5:00000009 r4:c185bda8
[ 1.587489] [<c001351c>] (show_stack+0x0/0x1c) from [<c0367810>] (dump_stack+0x20/0x28)
[ 1.596495] [<c03677f0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[ 1.606454] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[ 1.617014] r9:c0587480 r8:c0422f52 r7:00000001 r6:00000000 r5:c18cb3c0
r4:fffffdfb
[ 1.625857] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c014bb98>] (gpio_to_desc+0x28/0x4c)
[ 1.635654] r3:fffffdfb r2:c042212c
[ 1.639732] [<c014bb70>] (gpio_to_desc+0x0/0x4c) from [<c014bc3c>] (gpio_get_value_cansleep+0x10/0x44)
[ 1.650160] [<c014bc2c>] (gpio_get_value_cansleep+0x0/0x44) from [<c015a7fc>] (disp_sys_gpio_set_direction+0x20/0xb8)
[ 1.662068] [<c015a7dc>] (disp_sys_gpio_set_direction+0x0/0xb8) from [<c0170d5c>] (disp_lcd_gpio_set_direction+0xa8/0xc8)
[ 1.674288] r5:c18cb3c0 r4:c1814000
[ 1.678355] [<c0170cb4>] (disp_lcd_gpio_set_direction+0x0/0xc8) from [<c016c730>] (bsp_disp_lcd_gpio_set_direction+0x38/0x44)
[ 1.690949] r7:c1814000 r6:c0587208 r5:00000001 r4:00000000
[ 1.697308] [<c016c6f8>] (bsp_disp_lcd_gpio_set_direction+0x0/0x44) from [<c0177274>] (sunxi_lcd_gpio_set_direction+0x20/0x30)
[ 1.710005] r5:00000000 r4:00000003
[ 1.714031] [<c0177254>] (sunxi_lcd_gpio_set_direction+0x0/0x30) from [<c017a9c0>] (LCD_bl_open+0x28/0x3c)
[ 1.724852] [<c017a998>] (LCD_bl_open+0x0/0x3c) from [<c0154010>] (drv_lcd_enable+0xa0/0xe0)
[ 1.734289] [<c0153f70>] (drv_lcd_enable+0x0/0xe0) from [<c015415c>] (start_work+0x10c/0x1cc)
[ 1.743806] r9:c0587480 r8:c0422f6f r7:00000001 r6:c0422eff r5:c05876f4
r4:00000000
[ 1.752602] [<c0154050>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[ 1.762436] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[ 1.773323] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[ 1.783966] r5:c049cbd0 r4:c1822e40
[ 1.788047] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[ 1.797065] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[ 1.806007] r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[ 1.812349] ---[ end trace 70e512b2faf07e20 ]---
[ 1.817470] ------------[ cut here ]------------
[ 1.822685] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[ 1.830452] invalid GPIO -517
[ 1.833739] Modules linked in:
[ 1.837142] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G W 3.10.65 #49
[ 1.845237] Workqueue: events start_work
[ 1.849635] Backtrace:
[ 1.852417] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[ 1.861850] r7:0000007e r6:c042213d r5:00000009 r4:c185bda0
[ 1.868252] [<c001351c>] (show_stack+0x0/0x1c) from [<c0367810>] (dump_stack+0x20/0x28)
[ 1.877212] [<c03677f0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[ 1.887149] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[ 1.897737] r9:c0587480 r8:c0422f52 r7:00000001 r6:00000000 r5:c18cb3c0
r4:00000000
[ 1.906547] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c014bb98>] (gpio_to_desc+0x28/0x4c)
[ 1.916350] r3:fffffdfb r2:c042212c
[ 1.920415] [<c014bb70>] (gpio_to_desc+0x0/0x4c) from [<c014c628>] (gpio_direction_output+0x14/0x20)
[ 1.930673] [<c014c614>] (gpio_direction_output+0x0/0x20) from [<c015a808>] (disp_sys_gpio_set_direction+0x2c/0xb8)
[ 1.942311] r5:c18cb3c0 r4:fffffdfb
[ 1.946368] [<c015a7dc>] (disp_sys_gpio_set_direction+0x0/0xb8) from [<c0170d5c>] (disp_lcd_gpio_set_direction+0xa8/0xc8)
[ 1.958591] r5:c18cb3c0 r4:c1814000
[ 1.962618] [<c0170cb4>] (disp_lcd_gpio_set_direction+0x0/0xc8) from [<c016c730>] (bsp_disp_lcd_gpio_set_direction+0x38/0x44)
[ 1.975216] r7:c1814000 r6:c0587208 r5:00000001 r4:00000000
[ 1.981609] [<c016c6f8>] (bsp_disp_lcd_gpio_set_direction+0x0/0x44) from [<c0177274>] (sunxi_lcd_gpio_set_direction+0x20/0x30)
[ 1.994306] r5:00000000 r4:00000003
[ 1.998378] [<c0177254>] (sunxi_lcd_gpio_set_direction+0x0/0x30) from [<c017a9c0>] (LCD_bl_open+0x28/0x3c)
[ 2.009199] [<c017a998>] (LCD_bl_open+0x0/0x3c) from [<c0154010>] (drv_lcd_enable+0xa0/0xe0)
[ 2.018638] [<c0153f70>] (drv_lcd_enable+0x0/0xe0) from [<c015415c>] (start_work+0x10c/0x1cc)
[ 2.028152] r9:c0587480 r8:c0422f6f r7:00000001 r6:c0422eff r5:c05876f4
r4:00000000
[ 2.036907] [<c0154050>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[ 2.046740] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[ 2.057636] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[ 2.068279] r5:c049cbd0 r4:c1822e40
[ 2.072290] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[ 2.081376] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[ 2.090326] r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[ 2.096630] ---[ end trace 70e512b2faf07e21 ]---
[ 2.101788] gpiod_direction_output: invalid GPIO
[ 2.106940] [DISP] disp_sys_gpio_set_direction,line:413: gpio_direction_output fail!
[ 2.115867] ------------[ cut here ]------------
[ 2.121068] WARNING: at drivers/gpio/gpiolib.c:126 gpio_to_desc+0x28/0x4c()
[ 2.128850] invalid GPIO -517
[ 2.132136] Modules linked in:
[ 2.135537] CPU: 0 PID: 9 Comm: kworker/0:1 Tainted: G W 3.10.65 #49
[ 2.143633] Workqueue: events start_work
[ 2.148030] Backtrace:
[ 2.150816] [<c0013328>] (dump_backtrace+0x0/0x104) from [<c0013534>] (show_stack+0x18/0x1c)
[ 2.160249] r7:0000007e r6:c042213d r5:00000009 r4:c185bda8
[ 2.166611] [<c001351c>] (show_stack+0x0/0x1c) from [<c0367810>] (dump_stack+0x20/0x28)
[ 2.175631] [<c03677f0>] (dump_stack+0x0/0x28) from [<c001b9dc>] (warn_slowpath_common+0x54/0x70)
[ 2.185557] [<c001b988>] (warn_slowpath_common+0x0/0x70) from [<c001ba30>] (warn_slowpath_fmt+0x38/0x40)
[ 2.196130] r9:c0587480 r8:c0422f52 r7:00000001 r6:00000000 r5:c18cb3c0
r4:00000001
[ 2.204942] [<c001b9f8>] (warn_slowpath_fmt+0x0/0x40) from [<c014bb98>] (gpio_to_desc+0x28/0x4c)
[ 2.214752] r3:fffffdfb r2:c042212c
[ 2.218811] [<c014bb70>] (gpio_to_desc+0x0/0x4c) from [<c014be10>] (gpio_set_value_cansleep+0x14/0x6c)
[ 2.229254] [<c014bdfc>] (gpio_set_value_cansleep+0x0/0x6c) from [<c015a8f8>] (disp_sys_gpio_set_value+0x18/0x4c)
[ 2.240676] r5:c18cb3c0 r4:c1814000
[ 2.244751] [<c015a8e0>] (disp_sys_gpio_set_value+0x0/0x4c) from [<c0170c94>] (disp_lcd_gpio_set_value+0xa8/0xc8)
[ 2.256235] [<c0170bec>] (disp_lcd_gpio_set_value+0x0/0xc8) from [<c016c6ec>] (bsp_disp_lcd_gpio_set_value+0x38/0x44)
[ 2.268065] r7:c1814000 r6:c0587208 r5:00000001 r4:00000000
[ 2.274413] [<c016c6b4>] (bsp_disp_lcd_gpio_set_value+0x0/0x44) from [<c0177244>] (sunxi_lcd_gpio_set_value+0x20/0x30)
[ 2.286339] r5:00000000 r4:00000003
[ 2.290405] [<c0177224>] (sunxi_lcd_gpio_set_value+0x0/0x30) from [<c017a9d0>] (LCD_bl_open+0x38/0x3c)
[ 2.300833] [<c017a998>] (LCD_bl_open+0x0/0x3c) from [<c0154010>] (drv_lcd_enable+0xa0/0xe0)
[ 2.310298] [<c0153f70>] (drv_lcd_enable+0x0/0xe0) from [<c015415c>] (start_work+0x10c/0x1cc)
[ 2.319799] r9:c0587480 r8:c0422f6f r7:00000001 r6:c0422eff r5:c05876f4
r4:00000000
[ 2.328622] [<c0154050>] (start_work+0x0/0x1cc) from [<c0031cc0>] (process_one_work+0x1e8/0x330)
[ 2.338430] [<c0031ad8>] (process_one_work+0x0/0x330) from [<c0031e38>] (process_scheduled_works+0x30/0x34)
[ 2.349323] [<c0031e08>] (process_scheduled_works+0x0/0x34) from [<c0032b78>] (worker_thread+0x1e0/0x358)
[ 2.359984] r5:c049cbd0 r4:c1822e40
[ 2.363999] [<c0032998>] (worker_thread+0x0/0x358) from [<c0037cf8>] (kthread+0xa8/0xb4)
[ 2.373062] [<c0037c50>] (kthread+0x0/0xb4) from [<c000f930>] (ret_from_fork+0x14/0x24)
[ 2.382004] r7:00000000 r6:00000000 r5:c0037c50 r4:c1849e7c
[ 2.388345] ---[ end trace 70e512b2faf07e22 ]---
[ 2.393488] [LCD]open, step 3 finish
[ 2.398172] [LCD]lcd_module_init finish
[ 2.403096] sunxi-wlan wlan: wlan_busnum (0)
[ 2.407996] sunxi-wlan wlan: wlan_power_num (0)
[ 2.413084] sunxi-wlan wlan: Missing wlan_io_regulator.
[ 2.418954] sunxi-wlan wlan: io_regulator_name ((null))
[ 2.424856] sunxi-wlan wlan: request pincrtl handle for device [wlan] failed
[ 2.432767] ------------SUNXI_RF: Set regon for SUN3IW1P1_R6!----------------
[ 2.440761] sunxi-wlan wlan: wlan_regon gpio=-1048149120 mul-sel=-1047954028 pull=-1047954072 drv_level=-1072832404 data=-1072834700
[ 2.454439] sunxi-wlan wlan: can't request wlan_regon gpio 2041
[ 2.461118] platform wlan: Driver sunxi-wlan requests probe deferral
[ 2.468529] usb_serial_number:20080411
[ 2.473268] file system registered
[ 2.480051] android_usb gadget: Mass Storage Function, version: 2009/09/11
[ 2.487827] android_usb gadget: Number of LUNs=3
[ 2.493057] lun0: LUN: removable file: (no medium)
[ 2.498545] lun1: LUN: removable file: (no medium)
[ 2.503959] lun2: LUN: removable file: (no medium)
[ 2.510318] android_usb gadget: android_usb ready
[ 2.515978] sunxi_i2c_do_xfer()928 - [i2c0] incomplete xfer (status: 0x20, dev addr: 0x51)
[ 2.525253] rtc-pcf8563 0-0051: pcf8563_get_datetime: read error
[ 2.532018] rtc-pcf8563 0-0051: hctosys: unable to read the hardware clock
[ 2.539921] ALSA device list:
[ 2.543227] #0: audiocodec
[ 2.547201] Waiting 5sec before mounting root device...
[ 4.387660]
[ 4.387660] insmod_device_driver
[ 4.387660]
[ 4.394817] device_chose finished 77!
[ 7.558115] VFS: Cannot open root device "mmcblk0p7" or unknown-block(179,7): error -6
[ 7.567005] Please append a correct "root=" boot option; here are the available partitions:
[ 7.576388] b300 1949696 mmcblk0 driver: mmcblk
[ 7.582360] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,7)
检测到了卡, 但是生成分区失败:
[ 1.362975] sunxi-mmc sdc0: sdc set ios: clk 50000000Hz bm PP pm ON vdd 16 width 4 timing SD-HS(SDR25) dt B
[ 1.373949] mmc0: new high speed SD card at address 0002
[ 1.380792] mmcblk0: mmc0:0002 N/A 1.85 GiB
[ 1.387718] mmcblk0:
离线
貌似这种TF卡驱动应该没问题, 为什么没有生成分区呢?是打包有问题?烧录有问题?挂UBUNTU看看情况去
离线
果然只有一个分区,这是为什么呢?
离线
uboot烧录部分改对了没
https://whycan.com/files/members/5755/2021-03-31_113740.png
果然只有一个分区,这是为什么呢?
离线
uboot烧录部分改对了没
无根浮萍 说:https://whycan.com/files/members/5755/2021-03-31_113740.png
果然只有一个分区,这是为什么呢?
请问应该怎么修改呢?我几乎翻越了所有tina文档,都木找到有。
离线
意思是你这个自己没有修改过TINA的boot, 直接就烧录了对吗?
我用的是V3S 的tina3.5, 是自己魔改,要看看代码。
TeveT 说:uboot烧录部分改对了没
无根浮萍 说:https://whycan.com/files/members/5755/2021-03-31_113740.png
果然只有一个分区,这是为什么呢?
请问应该怎么修改呢?我几乎翻越了所有tina文档,都木找到有。
离线
感谢,对的,我以为理所当然的可以,555555
意思是你这个自己没有修改过TINA的boot, 直接就烧录了对吗?
我用的是V3S 的tina3.5, 是自己魔改,要看看代码。无根浮萍 说:TeveT 说:uboot烧录部分改对了没
请问应该怎么修改呢?我几乎翻越了所有tina文档,都木找到有。
离线