您尚未登录。

楼主 # 2021-12-19 00:54:25

丨晋丨
会员
注册时间: 2021-01-06
已发帖子: 20
积分: 170

《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

big_smile 正文开始 big_smile

SDK和资料:

cool

SDK结构:

官方介绍:Tina Linux 系统介绍
Tina Linux 基于 openwrt-14.07 版本的,可以参考下 MT7628学习笔记(3)——openwrt源码目录分析(OpenWrt CC1505 版本移植)

Tina-SDK/
├── build	# 构建系统文件
├── config	# 配置菜单的界面以及一些固定的配置项,该配置菜单基于内核的 mconf 规格编写
├── Config.in	# 菜单项配置文件。和 make menuconfig 相关联的文件
├── device	# 用于存放方案的配置文件,包括内核配置、env 配置、分区表配置、sys_config.fex(全志定制板级配置文件)、board.dts(linux标准设备树文件) 等
├── dl		# 软件包文件
├── lichee	# 存放 bootloader、linux内核、DSP等代码
├── Makefile	# 在顶层目录执行 make 命令的入口文件
├── out		# 编译相关的临时文件和最终镜像文件 ,编译后自动生成此目录
├── package	# 存放Tina系统支持的软件包源码和编译规则
├── prebuilt	# 存放预编译交叉编译器
├── rules.mk	# 定义了 Makefile 中使用的一些通用变量和函数
├── scripts	# 存放host端(PC端,下同)或target端(小机端,即目标机器,下同)使用的一些脚本
├── target	# 存放目标板相关的配置以及sdk和toolchain生成的规格
├── tmp		# 临时文件夹。编译过程中的临时文件保存。
├── toolchain	# 交叉工具链构建配置、规则
└── tools	# 存放 host 端工具的编译规则

cool

环境配置:
# 更新
$ sudo apt-get update

# 安装依赖包
$ sudo apt-get install build-essential subversion git-core libncurses5-dev zlib1g-dev gawk flex quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lib32z1 lib32z1-dev lib32stdc++6 libstdc++6 -y

# Ubuntu 16.04以上版本执行
sudo apt-get install libc6:i386 libstdc++6:i386 lib32ncurses5 lib32z1

cool

打补丁匹配麻雀开发板:

5寸800x480,4.3寸480x272补丁:芒果派麻雀固件与源码补丁2021-12-16.7z

补丁修改文件分析:
config 配置修改:

lichee/
└── brandy-2.0
    └── u-boot-2018
        └── .config

以下是 .config 配置文件修改的地方:

#
# sunxi board feature
#
CONFIG_SUNXI_ADVERT_PICTURE=y

#
# SUNXI LOGO DISPLAY
#
# CONFIG_HDMI2_DISP2_SUNXI is not set

#
# LCD panels select
#
CONFIG_LCD_SUPPORT_WILLIAMLCD=y
CONFIG_LCD_SUPPORT_LQ101R1SX03=y
CONFIG_LCD_SUPPORT_INET_DSI_PANEL=y
# CONFIG_LCD_SUPPORT_BP101WX1 is not set
# CONFIG_LCD_SUPPORT_K101IM2QA04 is not set
# CONFIG_LCD_SUPPORT_K101IM2BYL02L is not set
# CONFIG_LCD_SUPPORT_FX070 is not set
# CONFIG_LCD_SUPPORT_K080_IM2HYL802R_800X1280 is not set
# CONFIG_LCD_SUPPORT_TFT08006 is not set

在以下位置增加对应的开发板/方案配置:

.
├── device
│   └── config
│       └── chips
│           └── d1
│               └── configs
│                   ├── mangopi_mq_rgb480x272_rtp
│                   └── mangopi_mq_rgb800x480_gt9xx
├── package
│   └── allwinner
│       └── alsa-conf-aw
│           └── files
│               └── d1
│                   ├── d1-mangopi_mq_rgb480x272_rtp
│                   └── d1-mangopi_mq_rgb800x480_gt9xx
└── target
    └── allwinner
        ├── d1-mangopi_mq_rgb480x272_rtp
        └── d1-mangopi_mq_rgb800x480_gt9xx

开发板/方案名的定义在:/target/allwinner/d1-mangopi_mq_rgb800x480_gt9xx/vendorsetup.sh:

add_lunch_combo d1_mangopi_mq_rgb800x480_gt9xx-tina

cool

配置和编译:
# 把补丁解压到SDK目录下就行了
tar -xzvf d1-mangopi_mq_20211216.tgz	<sdk目录>

选择对应的开发板/方案 d1_mangopi_mq_rgb800x480_gt9xx-tina

# 获取环境变量(打开新终端时执行)
source build/envsetup.sh

# 方案选择(打开新终端时执行)
$ lunch

You're building on Linux

Lunch menu... pick a combo:
     1. d1_mangopi_mq_rgb480x272_rtp-tina	# 麻雀 480x272屏
     2. d1_mangopi_mq_rgb800x480_gt9xx-tina	# 麻雀 800x480屏
     3. d1_nezha_min-tina					# d1_nezha-tina 是哪吒d1标准方案
     4. d1_nezha-tina						# d1_nezha_min-tina 是哪吒d1只能让系统跑起来的最小系统方案

Which would you like? [Default d1_nezha]: 2
============================================
TINA_BUILD_TOP=/home/pjw/Allwinner/D1s/tina-d1-open
TINA_TARGET_ARCH=riscv
TARGET_PRODUCT=d1_mangopi_mq_rgb800x480_gt9xx
TARGET_PLATFORM=d1
TARGET_BOARD=d1-mangopi_mq_rgb800x480_gt9xx
TARGET_PLAN=mangopi_mq_rgb800x480_gt9xx
TARGET_BUILD_VARIANT=tina
TARGET_BUILD_TYPE=release
TARGET_KERNEL_VERSION=5.4
TARGET_UBOOT=u-boot-2018
TARGET_CHIP=sun20iw1p1
============================================

# 编译
make -j16
# 编译完成
#### make completed successfully (25:29 (mm:ss)) ####

# 打包,将编译好的固件打包成一个.img格式的固件。
# 固件路径 /out/d1-mangopi_mq_rgb800x480_gt9xx/tina_d1-mangopi_mq_rgb800x480_gt9xx_uart0.img
pack

# BuildImg 0
# Dragon execute image.cfg SUCCESS !
# ----------image is for nand/emmc----------
# ----------image is at----------
# 
# tina-d1-open/out/d1-mangopi_mq_rgb800x480_gt9xx/tina_d1-mangopi_mq_rgb800x480_gt9xx_uart0.img
# 
# pack finish

单独编译命令:

# 单独编译boot0和uboot:(可在Tina任意目录下使用)
mboot
# 单独编译boot0:(可在Tina任意目录下使用)
mboot0
# 单独编译uboot:(可在Tina任意目录下使用)
muboot
# 单独编译内核:(可在Tina任意目录下使用)
mkernel

# 单独编译某个包:(只能在编译的包路径下操作)
# 如包路径为 tina/package/utils/rwcheck,则需要进入到 tina/package/utils/rwcheck路径下再输入 mm 命令,
# 编译出来对应的安装包的路径在 tina/out/d1-nezha/packages/base下
mm

# 在根目录下编译某个软件包:(需要在根目录下操作)
make <应用包的路径>/install	# 如 make package/utils/rwcheck/install

# 在根目录下清空应用包临时文件:(需要在根目录下操作)
make <应用包的路径>/clean		# 如 make package/utils/rwcheck/clean

cool

烧录:

全志在线开发者社区——工具下载
固件在 out/d1-mangopi_mq_rgb800x480_gt9xx/tina_d1-mangopi_mq_rgb800x480_gt9xx_uart0.img,这里使用 PhoenixCard 烧录:
FluxBB bbcode 烧录

cool

上电运行:

TF卡插入开发板上电,uart0 为控制台。

**uart0 引脚示意:**
FluxBB bbcode uart0

**运行图:**
FluxBB bbcode uart0


cool

附LOG:
[32]HELLO! BOOT0 is starting!
[35]BOOT0 commit : 27369ab
[38]set pll start
[39]periph0 has been enabled
[42]set pll end
[44][pmu]: bus read error
[46]board init ok
[48]ZQ value = 0x2f***********
[51]get_pmu_exist() = -1
[53]ddr_efuse_type: 0xa
[56][AUTO DEBUG] single rank and full DQ!
[60]ddr_efuse_type: 0xa
[63][AUTO DEBUG] rank 0 row = 13 
[66][AUTO DEBUG] rank 0 bank = 4 
[69][AUTO DEBUG] rank 0 page size = 2 KB 
[73]DRAM BOOT DRIVE INFO: V0.24
[75]DRAM CLK = 528 MHz
[78]DRAM Type = 2 (2:DDR2,3:DDR3)
[81]DRAMC read ODT  off.
[83]DRAM ODT off.
[85]ddr_efuse_type: 0xa
[88]DRAM SIZE =64 M
[91]DRAM simple test OK.
[93]dram size =64
[95]card no is 0
[97]sdcard 0 line count 4
[99][mmc]: mmc driver ver 2021-04-2 16:45
[108][mmc]: Wrong media type 0x0
[111][mmc]: ***Try SD card 0***
[120][mmc]: HSSDR52/SDR25 4 bit
[123][mmc]: 50000000 Hz
[125][mmc]: 29819 MB
[127][mmc]: ***SD/MMC 0 init OK!!!***
[175]Loading boot-pkg Succeed(index=0).
[179]Entry_name        = opensbi
[182]Entry_name        = u-boot
[185]Entry_name        = dtb
[188]mmc not para
[190]Jump to second Boot.

OpenSBI v0.6
   ____                    _____ ____ _____
  / __ \                  / ____|  _ \_   _|
 | |  | |_ __   ___ _ __ | (___ | |_) || |
 | |  | | '_ \ / _ \ '_ \ \___ \|  _ < | |
 | |__| | |_) |  __/ | | |____) | |_) || |_
  \____/| .__/ \___|_| |_|_____/|____/_____|
        | |
        |_|

Platform Name          : T-HEAD Xuantie Platform
Platform HART Features : RV64ACDFIMSUVX
Platform Max HARTs     : 1
Current Hart           : 0
Firmware Base          : 0x40000400
Firmware Size          : 75 KB
Runtime SBI Version    : 0.2

MIDELEG : 0x0000000000000222
MEDELEG : 0x000000000000b1ff
PMP0    : 0x0000000040000000-0x000000004001ffff (A)
PMP1    : 0x0000000040000000-0x000000007fffffff (A,R,W,X)
PMP2    : 0x0000000080000000-0x00000000bfffffff (A,R,W,X)
PMP3    : 0x0000000000020000-0x0000000000027fff (A,ÿ

U-Boot 2018.05-g0a88ac9-config-dirty (Dec 18 2021 - 22:57:39 +0800) Allwinner Technology

[00.273]DRAM:  64 MiB
[00.276]Relocation Offset is: 01ef0000
[00.280]secure enable bit: 0
[00.283]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=300Mhz
[00.289]flash init start
[00.291]workmode = 0,storage type = 1
[00.295][mmc]: mmc driver ver uboot2018:2021-04-16 14:23:00-1
[00.300][mmc]: get sdc_type fail and use default host:tm1.
[00.306][mmc]: can't find node "mmc0",will add new node
[00.311][mmc]: fdt err returned <no error>
[00.315][mmc]: Using default timing para
[00.319][mmc]: SUNXI SDMMC Controller Version:0x50310
[00.336][mmc]: card_caps:0x3000000a
[00.339][mmc]: host_caps:0x3000003f
[00.343]sunxi flash init ok
[00.345]line:714 init_clocks
__clk_init: clk pll_periph0x2 already initialized
register fix_factor clk error
[00.355]drv_disp_init
fdt_getprop_u32 s_pwm.pwm-base fail
[00.371]drv_disp_init finish
[00.374]boot_gui_init:start
[00.377]set disp.dev2_output_type fail. using defval=0
[00.383]boot_gui_init:finish
partno erro : can't find partition bootloader
54 bytes read in 1 ms (52.7 KiB/s)
[00.399]bmp_name=bootlogo.bmp size 1152054
1152054 bytes read in 49 ms (22.4 MiB/s)
[00.467]Loading Environment from SUNXI_FLASH... OK
[00.486]out of usb burn from boot: not need burn key
root_partition is rootfs
set root to /dev/mmcblk0p5
[00.496]update part info
[00.498]update bootcmd
[00.501]change working_fdt 0x42aafda8 to 0x42a8fda8
[00.522]update dts
Hit any key to stop autoboot:  0 
[00.563]LCD open finish
Android's image name: d1-mangopi_mq_rg
No reserved memory region found in source FDT
[00.949]
Starting kernel ...

[00.952][mmc]: MMC Device 2 not found
[00.955][mmc]: mmc 2 not find, so not exit
[    0.000000] OF: fdt: Ignoring memory range 0x40000000 - 0x40200000
[    0.000000] Linux version 5.4.61 (pjw@pjw-virtual-machine) (riscv64-unknown-linux-gnu-gcc (C-SKY RISCV Tools V1.8.4 B20200702) 8.1.0, GNU ld (GNU Binutils) 2.32) #2 PREEMPT Sat Dec 18 15:37:58 UTC 2021
[    0.000000] cma: Reserved 8 MiB at 0x0000000043800000
[    0.000000] Zone ranges:
[    0.000000]   DMA32    [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000040200000-0x0000000043ffffff]
[    0.000000] On node 0 totalpages: 15872
[    0.000000]   DMA32 zone: 217 pages used for memmap
[    0.000000]   DMA32 zone: 0 pages reserved
[    0.000000]   DMA32 zone: 15872 pages, LIFO batch:3
[    0.000000] elf_hwcap is 0x20112d
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 15655
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p5 init=/sbin/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:dsp0@mmcblk0p6:recovery@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun20iw1p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.05-g0a88ac9-config-dirty(12/18/2021-22:57:39) 
[    0.000000] Dentry cache hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.000000] Sorting __ex_table...
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 42144K/63488K available (6130K kernel code, 659K rwdata, 2113K rodata, 196K init, 254K bss, 13152K reserved, 8192K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 0, nr_irqs: 0, preallocated irqs: 0
[    0.000000] plic: mapped 200 interrupts with 1 handlers for 2 contexts.
[    0.000000] riscv_timer_init_dt: Registering clocksource cpuid [0] hartid [0]
[    0.000000] clocksource: riscv_clocksource: mask: 0xffffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000007] sched_clock: 64 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000029] riscv_timer_clockevent depends on broadcast, but no broadcast function available
[    0.000378] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.001010] Console: colour dummy device 80x25
[    0.001057] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.001077] pid_max: default: 32768 minimum: 301
[    0.001304] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.001327] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.003484] ASID allocator initialised with 65536 entries
[    0.003698] rcu: Hierarchical SRCU implementation.
[    0.004457] devtmpfs: initialized
[    0.020602] random: get_random_u32 called from bucket_table_alloc.isra.31+0x4e/0x15e with crng_init=0
[    0.021640] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.021678] futex hash table entries: 256 (order: 0, 6144 bytes, linear)
[    0.022256] pinctrl core: initialized pinctrl subsystem
[    0.023841] NET: Registered protocol family 16
[    0.025962] DMA: preallocated 256 KiB pool for atomic allocations
[    0.026731] cpuidle: using governor menu
[    0.069987] rtc_ccu: sunxi ccu init OK
[    0.078133] clock: sunxi ccu init OK
[    0.079228] clock: sunxi ccu init OK
[    0.125461] iommu: Default domain type: Translated 
[    0.125670] sunxi iommu: irq = 4
[    0.126981] SCSI subsystem initialized
[    0.127407] usbcore: registered new interface driver usbfs
[    0.127510] usbcore: registered new interface driver hub
[    0.127636] usbcore: registered new device driver usb
[    0.127860] mc: Linux media interface: v0.10
[    0.127951] videodev: Linux video capture interface: v2.00
[    0.129292] sunxi-msgbox-amp 3003000.msgbox: invalid resource
[    0.130075] Advanced Linux Sound Architecture Driver Initialized.
[    0.130879] Bluetooth: Core ver 2.22
[    0.130974] NET: Registered protocol family 31
[    0.130987] Bluetooth: HCI device and connection manager initialized
[    0.131011] Bluetooth: HCI socket layer initialized
[    0.131027] Bluetooth: L2CAP socket layer initialized
[    0.131067] Bluetooth: SCO socket layer initialized
[    0.131418] pwm module init!
[    0.133107] g2d 5410000.g2d: Adding to iommu group 0
[    0.133678] G2D: rcq version initialized.major:250
[    0.135267] clocksource: Switched to clocksource riscv_clocksource
[    0.148997] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
[    0.167955] thermal_sys: Registered thermal governor 'step_wise'
[    0.167961] thermal_sys: Registered thermal governor 'user_space'
[    0.168566] NET: Registered protocol family 2
[    0.169492] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.169539] TCP established hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.169560] TCP bind hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.169576] TCP: Hash tables configured (established 512 bind 512)
[    0.169752] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.169800] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.170094] NET: Registered protocol family 1
[    0.172975] Initialise system trusted keyrings
[    0.173308] workingset: timestamp_bits=62 max_order=14 bucket_order=0
[    0.181408] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.202219] Key type asymmetric registered
[    0.202237] Asymmetric key parser 'x509' registered
[    0.202264] io scheduler mq-deadline registered
[    0.202273] io scheduler kyber registered
[    0.202295] atomic64_test: passed
[    0.203688] [DISP]disp_module_init
[    0.204327] disp 5000000.disp: Adding to iommu group 0
[    0.204980] [DISP] disp_init,line:2385:
[    0.204987] smooth display screen:0 type:1 mode:4
[    0.233110] disp 5000000.disp: 5000000.disp supply vcc-lcd not found, using dummy regulator
[    0.233389] disp 5000000.disp: 5000000.disp supply vcc-pd not found, using dummy regulator
[    0.246182] [DISP] disp_sys_pwm_request,line:442:
[    0.246190] disp_sys_pwm_request pwm 8 fail! -517
[    0.246206] [DISP] disp_sys_pwm_config,line:509:
[    0.246209] disp_sys_pwm_Config, handle is NULL!
[    0.246897] display_fb_request,fb_id:0
[    0.266810] disp_al_manager_apply ouput_type:1
[    0.266957] [DISP] lcd_clk_config,line:731:
[    0.266972] disp 0, clk: pll(198000000),clk(198000000),dclk(33000000) dsi_rate(198000000)
[    0.266972]      clk real:pll(288000000),clk(288000000),dclk(48000000) dsi_rate(0)
[    0.267035] [DISP] disp_sys_gpio_request,line:276:
[    0.267042] disp_sys_gpio_request failed, gpio_name=lcd_bl_en, gpio=123, value=0, ret=-517
[    0.267057] [DISP] disp_sys_pwm_request,line:442:
[    0.267061] disp_sys_pwm_request pwm 8 fail! -517
[    0.267709] [DISP]disp_module_init finish
[    0.268674] sunxi_sid_init()506 - insmod ok
[    0.277213] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
[    0.277872] uart uart0: get regulator failed
[    0.277904] uart uart0: uart0 supply uart not found, using dummy regulator
[    0.278337] uart0: ttyS0 at MMIO 0x2500000 (irq = 18, base_baud = 1500000) is a SUNXI
[    0.278370] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n
[    1.083751] printk: console [ttyS0] enabled
[    1.089461] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
[    1.101010] uart uart1: get regulator failed
[    1.105909] uart uart1: uart1 supply uart not found, using dummy regulator
[    1.114022] uart1: ttyS1 at MMIO 0x2500400 (irq = 19, base_baud = 1500000) is a SUNXI
[    1.123699] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
[    1.135229] uart uart3: get regulator failed
[    1.140134] uart uart3: uart3 supply uart not found, using dummy regulator
[    1.148242] uart3: ttyS3 at MMIO 0x2500c00 (irq = 21, base_baud = 1500000) is a SUNXI
[    1.158315] misc dump reg init
[    1.162720] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
[    1.169985] sunxi-rfkill soc@3000000:rfkill@0: devm_pinctrl_get() failed!
[    1.177665] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
[    1.184983] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
[    1.192430] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
[    1.199022] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
[    1.206001] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
[    1.213876] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
[    1.222084] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
[    1.229842] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
[    1.236652] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=207 assert=0
[    1.244850] [ADDR_MGT] addr_mgt_probe: module version: v1.0.9
[    1.252621] [ADDR_MGT] addr_mgt_probe: success.
[    1.259293] libphy: Fixed MDIO Bus: probed
[    1.263870] CAN device driver interface
[    1.268622] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.276040] sunxi-ehci: EHCI SUNXI driver
[    1.281083] get ehci0-controller wakeup-source is fail.
[    1.287100] sunxi ehci0-controller don't init wakeup source
[    1.293363] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xffffffe00090fb58, 0x:ffffffd004078000, irq_no:2e
[    1.306927] [sunxi-ehci0]: Not init ehci0
[    1.311835] get ehci1-controller wakeup-source is fail.
[    1.317847] sunxi ehci1-controller don't init wakeup source
[    1.324107] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xffffffe00090ff18, 0x:ffffffd00407c000, irq_no:31
[    1.337694] hci: sunxi_insmod_ehci()600 WARN: get supply failed
[    1.344339] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller
[    1.351658] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1
[    1.361592] sunxi-ehci 4200000.ehci1-controller: irq 49, io mem 0x04200000
[    1.395322] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00
[    1.404280] hub 1-0:1.0: USB hub found
[    1.408624] hub 1-0:1.0: 1 port detected
[    1.413949] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.421024] sunxi-ohci: OHCI SUNXI driver
[    1.426221] get ohci0-controller wakeup-source is fail.
[    1.432177] sunxi ohci0-controller don't init wakeup source
[    1.438513] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xffffffe000910698
[    1.448997] [sunxi-ohci0]: Not init ohci0
[    1.453909] get ohci1-controller wakeup-source is fail.
[    1.459928] sunxi ohci1-controller don't init wakeup source
[    1.466255] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xffffffe000910a58
[    1.476742] hci: sunxi_insmod_ohci()265 WARN: get supply failed
[    1.483442] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller
[    1.490737] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2
[    1.500632] sunxi-ohci 4200400.ohci1-controller: irq 50, io mem 0x04200400
[    1.580462] hub 2-0:1.0: USB hub found
[    1.584711] hub 2-0:1.0: 1 port detected
[    1.590498] usbcore: registered new interface driver uas
[    1.596761] usbcore: registered new interface driver usb-storage
[    1.603618] usbcore: registered new interface driver ums-alauda
[    1.610493] usbcore: registered new interface driver ums-cypress
[    1.617343] usbcore: registered new interface driver ums-datafab
[    1.624164] usbcore: registered new interface driver ums_eneub6250
[    1.631200] usbcore: registered new interface driver ums-freecom
[    1.638116] usbcore: registered new interface driver ums-isd200
[    1.644793] usbcore: registered new interface driver ums-jumpshot
[    1.651814] usbcore: registered new interface driver ums-karma
[    1.658530] usbcore: registered new interface driver ums-onetouch
[    1.665493] usbcore: registered new interface driver ums-realtek
[    1.672320] usbcore: registered new interface driver ums-sddr09
[    1.679074] usbcore: registered new interface driver ums-sddr55
[    1.685879] usbcore: registered new interface driver ums-usbat
[    1.692926] mousedev: PS/2 mouse device common for all mice
[    1.700036] ts probe start
[    1.700466] input: 2009c00.rtp as /devices/platform/soc@3000000/2009c00.rtp/input/input0
[    1.713196] ts probe success
[    1.713644] sunxi_gpadc_init,1968, success
[    1.722396] sunxi-rtc 7090000.rtc: errata__fix_alarm_day_reg_default_value(): ALARM0_DAY_REG=0, set it to 1
[    1.734837] sunxi-rtc 7090000.rtc: registered as rtc0
[    1.740707] sunxi-rtc 7090000.rtc: setting system clock to 1970-01-01T00:00:02 UTC (2)
[    1.749660] sunxi-rtc 7090000.rtc: sunxi rtc probed
[    1.755578] i2c /dev entries driver
[    1.759591] IR NEC protocol handler initialized
[    1.764681] IR RC5(x/sz) protocol handler initialized
[    1.770367] IR RC6 protocol handler initialized
[    1.775497] IR JVC protocol handler initialized
[    1.780549] IR Sony protocol handler initialized
[    1.785765] IR SANYO protocol handler initialized
[    1.791011] IR Sharp protocol handler initialized
[    1.796324] IR MCE Keyboard/mouse protocol handler initialized
[    1.802828] IR XMP protocol handler initialized
[    1.807947] ir_imon_decoder: IR iMON protocol handler initialized
[    1.814742] IR RCMM protocol handler initialized
[    1.820691] sunxi cedar version 1.1
[    1.824872] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
[    1.831247] VE: install start!!!
[    1.831247] 
[    1.836868] VE: cedar-ve the get irq is 6
[    1.836868] 
[    1.843249] VE: ve_debug_proc_info:(____ptrval____), data:(____ptrval____), lock:(____ptrval____)
[    1.843249] 
[    1.854904] VE: install end!!!
[    1.854904] 
[    1.861509] sunxi-wdt 6011000.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    1.870764] Bluetooth: HCI UART driver ver 2.3
[    1.875866] Bluetooth: HCI UART protocol H4 registered
[    1.881597] Bluetooth: HCI UART protocol BCSP registered
[    1.887617] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    1.894924] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
[    1.901442] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
[    1.908035] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
[    1.908035] 
[    1.916766] [XR_BT_LPM] bluesleep_probe: uart_index(1)
[    1.925893] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    1.935977] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
[    1.942150] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
[    1.948573] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
[    1.954984] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
[    1.961464] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
[    1.968070] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
[    1.974578] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
[    1.981158] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
[    1.988240] sunxi-mmc 4020000.sdmmc: Got CD GPIO
[    1.993776] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail
[    2.000494] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.011716] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
[    2.031930] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.056464] sunxi-mmc 4020000.sdmmc: detmode:gpio irq
[    2.062181] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.074561] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.19 2021-03-24 19:50)
[    2.084645] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
[    2.091004] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
[    2.097444] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
[    2.103909] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
[    2.110405] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.122029] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
[    2.128577] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
[    2.135106] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
[    2.141790] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
[    2.148405] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
[    2.157969] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.170245] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.181504] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[    2.190470] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.202105] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.226496] sunxi-mmc 4021000.sdmmc: detmode:manually by software
[    2.234170] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    2.241853] usbcore: registered new interface driver usbhid
[    2.241896] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[    2.255040] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.266688] usbhid: USB HID core driver
[    2.273173] usbcore: registered new interface driver snd-usb-audio
[    2.281915] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.292268] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[    2.304446] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
[    2.317286] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.328755] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.335993] [AUDIOCODEC][sunxi_codec_parse_params][2094]:digital_vol:0, lineout_vol:26, mic1gain:19, mic2gain:19 pa_msleep:120, pa_level:1, pa_pwr_level:1
[    2.335993] 
[    2.353087] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.360061] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[    2.371723] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.378601] [AUDIOCODEC][sunxi_codec_parse_params][2130]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
[    2.389486] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[    2.396340] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[    2.407664] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[    2.419946] [AUDIOCODEC][sunxi_internal_codec_probe][2266]:codec probe finished
[    2.428392] mmc0: new high speed SDHC card at address 59b4
[    2.436132] sid_rd_ver_reg()254 - ver >= 4, soc ver:5
[    2.441856] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
[    2.453205] mmcblk0: mmc0:59b4 SD32G 29.1 GiB 
[    2.461074] [SNDCODEC][sunxi_card_init][583]:card init finished
[    2.468586]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
[    2.479298] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
[    2.490874] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input1
[    2.503208] [SNDCODEC][sunxi_card_dev_probe][832]:register card finished
[    2.511697] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: id:sunxi,dsp-msgbox new channel: 0x202 -> 0x102!
[    2.523412] rpmsg_hifi 3003000.msgbox.sunxi,dsp-msgbox.514.258: rpmsg hifi[0] client driver is probed
[    2.535793] NET: Registered protocol family 10
[    2.542337] Segment Routing with IPv6
[    2.546847] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.554411] NET: Registered protocol family 17
[    2.559606] can: controller area network core (rev 20170425 abi 9)
[    2.566730] NET: Registered protocol family 29
[    2.571736] can: raw protocol (rev 20170425)
[    2.576552] can: broadcast manager protocol (rev 20170425 t)
[    2.582903] can: netlink gateway (rev 20190810) max_hops=1
[    2.589432] Bluetooth: RFCOMM TTY layer initialized
[    2.594933] Bluetooth: RFCOMM socket layer initialized
[    2.600817] Bluetooth: RFCOMM ver 1.11
[    2.606224] Loading compiled-in X.509 certificates
[    2.614481] HDMI 2.0 driver init start!
[    2.618880] boot_hdmi=false
[    2.622076] ERROR: pinctrl_get for HDMI2.0 DDC fail
[    2.629333] HDMI2.0 module init end
[    2.657396] twi twi2: twi2 supply twi not found, using dummy regulator
[    2.670933] sunxi_i2c_probe()2262 - [i2c2] probe success
[    2.680492] debugfs: Directory '2031000.dmic' with parent 'snddmic' already present!
[    2.691179] sunxi-audio-card 2031060.sounddmic: dmic-hifi <-> 2031000.dmic mapping ok
[    2.703778] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[    2.715049] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[    2.722818] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    2.732571] clk: Not disabling unused clocks
[    2.737496] ALSA device list:
[    2.740813]   #0: audiocodec
[    2.744052]   #1: snddmic
[    2.747067] cfg80211: failed to load regulatory.db
[    2.752517] alloc_fd: slot 0 not NULL!
[    2.761489] random: fast init done
[    2.765924] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
[    2.776777] devtmpfs: mounted
[    2.780331] Freeing unused kernel memory: 196K
[    2.785441] This architecture does not have kernel memory protection.
[    2.792664] Run /sbin/init as init process
[    3.230648] [SNDCODEC][sunxi_check_hs_detect_status][191]:plugin --> switch:1
[    3.466769] init: Console is alive
[    3.470967] init: - watchdog -
[    3.474554] init: - preinit -
[    3.809432] random: procd: uninitialized urandom read (4 bytes read)
formating /dev/by-name/UDISK to ext4
/etc/preinit: line 1: mkfs.ext4: not found
[    4.644963] mount_root: mounting /dev/root
[    4.650933] mount_root: loading kmods from internal overlay
[    4.757375] block: attempting to load /etc/config/fstab
[    4.786172] block: extroot: device not present, retrying in 5 seconds
[    6.285306] 
[    6.285306] insmod_device_driver
[    6.285306] 
[    6.495312] hdmi_hpd_sys_config_release
[    9.854842] block: extroot: cannot find device UDISK
[    9.874398] procd: - early -
[    9.878876] procd: - watchdog -
[    9.968645] random: procd: uninitialized urandom read (4 bytes read)
[   10.336545] procd: - watchdog -
[   10.340421] procd: - ubus -
[   10.344383] procd (1): /proc/111/oom_adj is deprecated, please use /proc/111/oom_score_adj instead.
[   10.425752] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.635513] random: ubusd: uninitialized urandom read (4 bytes read)
[   10.686614] procd: - init -
Please press Enter to activate this console.
[   12.582460] file system registered
[   12.716312] fuse: init (API version 7.31)
[   12.722555] configfs-gadget 4100000.udc-controller: failed to start g1: -19
[   12.905865] usbcore: registered new interface driver uvcvideo
[   12.912316] USB Video Class driver (1.1.1)
[   13.096152] get ctp_power is fail, -22
[   13.100338] get ctp_power_ldo_vol is fail, -22
[   13.125447] sunxi_ctp_startup: ctp_power_io is invalid.
[   13.131370] get ctp_gesture_wakeup fail, no gesture wakeup
[   13.172249] gt9xxnew_ts 2-0014: 2-0014 supply ctp not found, using dummy regulator
[   13.225582] read descriptors
[   13.228813] read strings
[   13.393375] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[   13.401011] input: gt9xxnew_ts as /devices/virtual/input/input2
[   13.441063] android_work: sent uevent USB_STATE=CONNECTED
[   13.665997] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[   13.712563] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[   13.899833] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[   13.949044] sunxi_set_cur_vol_work()394 WARN: get power supply failed
[   14.154446] configfs-gadget gadget: high-speed config #1: c
[   14.160907] android_work: sent uevent USB_STATE=CONFIGURED
[   17.369795] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
[   18.614753] ======== XRADIO WIFI OPEN ========
[   18.631487] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[   18.650641] [XRADIO] Allocated hw_priv @ (____ptrval____)
[   18.677573] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[   18.720124] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[   19.144997] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   19.156454] [XRADIO] Detect SDIO card 1
[   19.171843] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[   19.200309] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   19.233396] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   19.258942] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   19.282578] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[   19.312443] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   19.334590] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   19.362126] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[   19.385778] mmc1: new high speed SDIO card at address 0001
[   21.205455] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
[   21.395632] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   21.402442] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   21.409240] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   21.416055] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   21.423080] mmc1: card 0001 removed
[   21.434823] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[   21.446344] [XRADIO] Remove SDIO card 1
[   21.466709] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   21.480440] [SBUS_ERR] sdio probe timeout!
[   21.495369] [XRADIO_ERR] sbus_sdio_init failed
[   21.500572] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[   21.515063] xradio_core_init failed (-110)!
[   21.540702] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   21.579142] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   21.586875] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   21.593741] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   21.622898] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   21.640936] xt_time: kernel timezone is -0000
[   21.663575] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   21.671221] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   21.678862] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   21.686502] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   21.693299] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[   24.666119] ======== XRADIO WIFI OPEN ========
[   24.681704] [XRADIO] Driver Label:XR_V02.16.84_P2P_HT40_01.31   
[   24.693785] [XRADIO] Allocated hw_priv @ (____ptrval____)
[   24.715437] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
[   24.755393] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
[   25.118477] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   25.134807] [XRADIO] Detect SDIO card 1
[   25.150400] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[   25.178864] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   25.222566] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   25.247709] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   25.271433] sunxi-mmc 4021000.sdmmc: card claims to support voltages below defined range
[   25.301001] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   25.323125] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
[   25.350702] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
[   25.378497] mmc1: new high speed SDIO card at address 0001
[   27.205473] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success
[   27.396178] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   27.402989] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   27.409788] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   27.416599] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !!
[   27.423610] mmc1: card 0001 removed
[   27.435147] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
[   27.446685] [XRADIO] Remove SDIO card 1
[   27.466707] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
[   27.485217] [SBUS_ERR] sdio probe timeout!
[   27.495013] [XRADIO_ERR] sbus_sdio_init failed
[   27.500202] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
[   27.514733] xradio_core_init failed (-110)!
[   27.540277] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   27.578724] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   27.586457] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
[   27.593325] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   27.668549] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
[   27.692998] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   27.700623] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   27.708244] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   27.715867] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
[   27.722638] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
Trying to connect to SWUpdate...
[   32.211668] [SNDCODEC][sunxi_card_hw_params][620]:stream_flag: 0



BusyBox v1.27.2 () built-in shell (ash)

 _____  _              __     _
|_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
  | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
  | |  | || | || _ |  |_____||_||_|_||___||_,_|
  |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
 ----------------------------------------------
 Tina Linux (Neptune, 5C1C9C53)
 ----------------------------------------------
root@TinaLinux:/# 

最近编辑记录 丨晋丨 (2021-12-19 01:01:18)

离线

楼主 #1 2021-12-19 00:56:21

丨晋丨
会员
注册时间: 2021-01-06
已发帖子: 20
积分: 170

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

占楼备用,后面添加详细内容。 lol

补丁包修改:

上面运行后发现刚上电屏幕很亮,但是过一会屏幕就变暗了(或者说变蓝了),这不能忍。

原因分析:
通过日志看到是在启动内核后变暗的。
这个是启动内核后出现的,看一下内核设备树,可以发现 PD17 引脚被 dmic 占用了:
tina-d1-open/lichee/linux-5.4/arch/riscv/boot/dts/sunxi/sun20iw1p1.dtsi:

rgb18_pins_a: rgb18@0 {
	pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", \
		"PD6", "PD7", "PD8", "PD9", "PD10", "PD11", \
		"PD12", "PD13", "PD14", "PD15", "PD16", "PD17", \
		"PD18", "PD19", "PD20", "PD21";
	function = "lcd0";
	drive-strength = <30>;
	bias-disable;
};

tina-d1-open/device/config/chips/d1/configs/mangopi_mq_rgb800x480_gt9xx/board.dts:(这里是编译后拷贝了 linux-5.4/board.dts)

dmic_pins_a: dmic@0 {
	/* DMIC_PIN: CLK, DATA0, DATA1, DATA2 */
	pins = "PE17", "PB11", "PB10", "PD17";
	function = "dmic";
	drive-strength = <20>;
	bias-disable;
};

LCD部分原理图:
FluxBB bbcod

修改方法:
修改设备树,把 `dmic` 关了。
tina-d1-open/device/config/chips/d1/configs/mangopi_mq_rgb800x480_gt9xx/linux-5.4/board.dts
tina-d1-open/device/config/chips/d1/configs/mangopi_mq_rgb480x272_rtp/linux-5.4/board.dts

&dmic {
	pinctrl-names   = "default","sleep";
	pinctrl-0       = <&dmic_pins_a>;
	pinctrl-1       = <&dmic_pins_b>;
	status = "disabled";
};

修改后补丁包和镜像:
芒果派麻雀固件与源码补丁2021-12-19(修改LCD变暗问题).zip

最近编辑记录 丨晋丨 (2021-12-19 12:12:01)

离线

#2 2021-12-19 10:50:14

mango
会员
所在地: 芒果派1
注册时间: 2017-12-02
已发帖子: 779
积分: 730

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

发支付宝账号以及订单号到 m@widora.io ,据说可以白嫖板子 big_smile






歪朵拉开源硬件: https://widora.cn
淘宝:  https://widora.taobao.com/

离线

#3 2021-12-19 11:29:00

wenunit
会员
注册时间: 2020-04-22
已发帖子: 30
积分: 0

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

该评论内容与本帖子无关,鼓励各位坑友积极发言讨论与帖子有关的内容!

离线

  • 不通过:其他

楼主 #4 2021-12-19 12:06:39

丨晋丨
会员
注册时间: 2021-01-06
已发帖子: 20
积分: 170

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

mango 说:

发支付宝账号以及订单号到 m@widora.io ,据说可以白嫖板子 big_smile

那我就不客气了,芒果大佬 big_smile ,可以不支付宝,直接下批次新版本板子出来发我一个吗 tongue

离线

楼主 #5 2021-12-19 12:17:34

丨晋丨
会员
注册时间: 2021-01-06
已发帖子: 20
积分: 170

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

丨晋丨 说:

占楼备用,后面添加详细内容。 lol

补丁包修改:

这个我有个问题,
我修改设备树后使用 make -j16 ,再 pack 是正常的,镜像是29.9M。
但是使用 mkernel 单独编译,再 pack 打包出来的镜像文件只有 20.2M,没有包含文件系统。

不知道怎么回事

离线

#6 2021-12-19 19:09:38

mango
会员
所在地: 芒果派1
注册时间: 2017-12-02
已发帖子: 779
积分: 730

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

丨晋丨 说:
mango 说:

发支付宝账号以及订单号到 m@widora.io ,据说可以白嫖板子 big_smile

那我就不客气了,芒果大佬 big_smile ,可以不支付宝,直接下批次新版本板子出来发我一个吗 tongue

妥妥的可以啊






歪朵拉开源硬件: https://widora.cn
淘宝:  https://widora.taobao.com/

离线

#7 2021-12-19 19:30:15

EATtomatoes
会员
注册时间: 2020-08-13
已发帖子: 1
积分: 1

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

保姆寄级教程,真的棒的很,480X272的RGB-LCD也点亮了。_20211219192759.png

离线

#8 2021-12-19 21:45:57

来一颗糖
会员
注册时间: 2019-01-21
已发帖子: 15
积分: 89.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

该评论内容与本帖子无关,鼓励各位坑友积极发言讨论与帖子有关的内容!

离线

  • 不通过:其他

#9 2021-12-19 22:09:25

wsxiaoping3
会员
注册时间: 2021-12-07
已发帖子: 3
积分: 3

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

很好的教程,不然我们还要摸索好长时间。

离线

#10 2021-12-19 22:10:25

吴助建
会员
注册时间: 2021-12-08
已发帖子: 104
积分: 17

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

发现问题:
用12月16号的补丁,能正常编译。
再打上19号的补丁,却要求重新配置,一堆的选择项,不知道是什么原因?用的是480x272的电阻屏。
刚开始用linux,不了解linux。

还有,别再要求积分下载,用不起。
关键是:下载浪费积分不说,还不好用。
从网站上下载资料,就跟赌博一样,一个不小心,下载无用的东西。

最近编辑记录 吴助建 (2021-12-19 22:24:09)

离线

楼主 #11 2021-12-19 23:16:32

丨晋丨
会员
注册时间: 2021-01-06
已发帖子: 20
积分: 170

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

吴助建 说:

发现问题:
用12月16号的补丁,能正常编译。
再打上19号的补丁,却要求重新配置,一堆的选择项,不知道是什么原因?用的是480x272的电阻屏。
刚开始用linux,不了解linux。

还有,别再要求积分下载,用不起。
关键是:下载浪费积分不说,还不好用。
从网站上下载资料,就跟赌博一样,一个不小心,下载无用的东西。

@吴助建
1、要修改的内容都很写明白了,修改两个地方就可以
2、19号的你可以跟16号的对比下,只是修改了说的那两个地方
3、19号只是提供个可以直接用的补丁和固件,方便大家可以直接测试,要不要积分也不是我决定的 smile
4、你说的要配置一堆的选择项看看是不是哪里的配置变了

这个我都是自己用了没问题才发的,不坑人 big_smile ,上面那个也用了没问题啊

最近编辑记录 丨晋丨 (2021-12-19 23:19:51)

离线

#12 2021-12-20 14:46:12

zuoyi
会员
注册时间: 2018-05-29
已发帖子: 14
积分: 13.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

谢谢分享,已编译出来并成功启动,不过没有屏,没有测试屏
编译环境:ubuntu   20.04.2
踩了跟这个一样的坑:【加精】在Ubuntu21.04中编译Tina SDKV1.01 版本 踩坑记录

最近编辑记录 zuoyi (2021-12-20 14:49:20)

离线

#13 2021-12-20 14:54:33

XIVN1987
会员
注册时间: 2019-08-30
已发帖子: 247
积分: 308.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

感谢楼主的分享。。
我执行lunch,选择板子后报下面的错,,请问您知道什么原因吗?

vision_opencv
vmtouch
vnstat
vpnc
wayland
webkitgtk
weston
wget
wolfssl
wpan
wrt350nv2
xfsprogs
xkeyboard
xtables
xupnpd
xz
yaml
zeromq
zlib
zope.interface
zstd
** Do you have the right repo manifest?
-bash: cd: too many arguments

最近编辑记录 XIVN1987 (2021-12-20 16:41:20)

离线

#14 2021-12-20 16:07:07

hox
会员
注册时间: 2020-02-17
已发帖子: 46
积分: 34.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

感谢楼主,写的很详细。自己试了下没点亮,晚上学习下你的再试试

离线

#15 2021-12-20 16:44:07

vegetableswim
会员
注册时间: 2020-07-20
已发帖子: 9
积分: 14

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

感谢分享!到手后想copy d1_min的方案,烧录后启动停在某位置,第一次接触tina,还没研究透

离线

楼主 #16 2021-12-20 18:38:08

丨晋丨
会员
注册时间: 2021-01-06
已发帖子: 20
积分: 170

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

XIVN1987 说:

感谢楼主的分享。。
我执行lunch,选择板子后报下面的错,,请问您知道什么原因吗?

@XIVN1987
这是你自己从官方 repo 下载的吧?看看是不是repo 出错了,没同步完成

最近编辑记录 丨晋丨 (2021-12-20 18:39:08)

离线

#17 2021-12-20 20:42:17

XIVN1987
会员
注册时间: 2019-08-30
已发帖子: 247
积分: 308.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

丨晋丨 说:

@XIVN1987
这是你自己从官方 repo 下载的吧?看看是不是repo 出错了,没同步完成

是从官方下载的,,
同步成功了,,文件夹大小12GB

离线

#19 2021-12-20 21:53:41

vjcmain
会员
注册时间: 2020-10-02
已发帖子: 13
积分: 7.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

感谢楼主,写的很详细。自己试了下没点亮,晚上学习下你的再试试

离线

#20 2021-12-21 09:58:00

jokeyli
会员
注册时间: 2021-09-11
已发帖子: 7
积分: 6.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

坐等开发板开售,马上入手一块

离线

#21 2021-12-21 11:26:00

642242855
会员
注册时间: 2019-10-31
已发帖子: 204
积分: 101

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

有没有用在wsl环境里编译正常的 big_smile

离线

#22 2021-12-21 22:30:10

XIVN1987
会员
注册时间: 2019-08-30
已发帖子: 247
积分: 308.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

丨晋丨 说:

@XIVN1987
这是你自己从官方 repo 下载的吧?看看是不是repo 出错了,没同步完成

我找到原因了,,是因为我在我的.bashrc文件中做了如下定义:

function cd() {
    builtin cd "$@" && ls
}

也就是cd到一个目录后,自动执行ls显示当前目录的内容。。
好吧,,算是偷懒的代价吧 sad

离线

#23 2021-12-21 22:37:34

642242855
会员
注册时间: 2019-10-31
已发帖子: 204
积分: 101

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

libfakeroot.c: In function 'setxattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
   99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
      |                                        ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
    9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
      |                                           ^
libfakeroot.c:1658:5: note: in expansion of macro 'INT_NEXT_STAT'
 1658 |   r=INT_NEXT_STAT(path, &st);
      |     ^~~~~~~~~~~~~
libfakeroot.c: In function 'lsetxattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
  100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
   13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1679:5: note: in expansion of macro 'INT_NEXT_LSTAT'
 1679 |   r=INT_NEXT_LSTAT(path, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fsetxattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
  101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
   11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1700:5: note: in expansion of macro 'INT_NEXT_FSTAT'
 1700 |   r=INT_NEXT_FSTAT(fd, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'getxattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
   99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
      |                                        ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
    9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
      |                                           ^
libfakeroot.c:1721:5: note: in expansion of macro 'INT_NEXT_STAT'
 1721 |   r=INT_NEXT_STAT(path, &st);
      |     ^~~~~~~~~~~~~
libfakeroot.c: In function 'lgetxattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
  100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
   13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1742:5: note: in expansion of macro 'INT_NEXT_LSTAT'
 1742 |   r=INT_NEXT_LSTAT(path, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fgetxattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
  101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
   11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1763:5: note: in expansion of macro 'INT_NEXT_FSTAT'
 1763 |   r=INT_NEXT_FSTAT(fd, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'listxattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
   99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
      |                                        ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
    9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
      |                                           ^
libfakeroot.c:1784:5: note: in expansion of macro 'INT_NEXT_STAT'
 1784 |   r=INT_NEXT_STAT(path, &st);
      |     ^~~~~~~~~~~~~
libfakeroot.c: In function 'llistxattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
  100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
   13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1805:5: note: in expansion of macro 'INT_NEXT_LSTAT'
 1805 |   r=INT_NEXT_LSTAT(path, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'flistxattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
  101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
   11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1826:5: note: in expansion of macro 'INT_NEXT_FSTAT'
 1826 |   r=INT_NEXT_FSTAT(fd, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'removexattr':
libfakeroot.c:99:40: error: '_STAT_VER' undeclared (first use in this function)
   99 | #define INT_NEXT_STAT(a,b) NEXT_STAT64(_STAT_VER,a,b)
      |                                        ^~~~~~~~~
fakerootconfig.h:9:43: note: in definition of macro 'NEXT_STAT64'
    9 | #define NEXT_STAT64(a,b,c) next___xstat64(a,b,c)
      |                                           ^
libfakeroot.c:1847:5: note: in expansion of macro 'INT_NEXT_STAT'
 1847 |   r=INT_NEXT_STAT(path, &st);
      |     ^~~~~~~~~~~~~
libfakeroot.c: In function 'lremovexattr':
libfakeroot.c:100:42: error: '_STAT_VER' undeclared (first use in this function)
  100 | #define INT_NEXT_LSTAT(a,b) NEXT_LSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:13:45: note: in definition of macro 'NEXT_LSTAT64'
   13 | #define NEXT_LSTAT64(a,b,c) next___lxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1868:5: note: in expansion of macro 'INT_NEXT_LSTAT'
 1868 |   r=INT_NEXT_LSTAT(path, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fremovexattr':
libfakeroot.c:101:42: error: '_STAT_VER' undeclared (first use in this function)
  101 | #define INT_NEXT_FSTAT(a,b) NEXT_FSTAT64(_STAT_VER,a,b)
      |                                          ^~~~~~~~~
fakerootconfig.h:11:45: note: in definition of macro 'NEXT_FSTAT64'
   11 | #define NEXT_FSTAT64(a,b,c) next___fxstat64(a,b,c)
      |                                             ^
libfakeroot.c:1889:5: note: in expansion of macro 'INT_NEXT_FSTAT'
 1889 |   r=INT_NEXT_FSTAT(fd, &st);
      |     ^~~~~~~~~~~~~~
libfakeroot.c: In function 'fts_read':
libfakeroot.c:1953:22: warning: passing argument 1 of 'send_get_stat64' from incompatible pointer type [-Wincompatible-pointer-types]
 1953 |     SEND_GET_STAT64(r->fts_statp, _STAT_VER);
      |                     ~^~~~~~~~~~~
      |                      |
      |                      struct stat *
libfakeroot.c:89:46: note: in definition of macro 'SEND_GET_STAT64'
   89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
      |                                              ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected 'struct stat64 *' but argument is of type 'struct stat *'
  209 | extern void send_get_stat64(struct stat64 *buf);
      |                             ~~~~~~~~~~~~~~~^~~
libfakeroot.c: In function 'fts_children':
libfakeroot.c:1976:24: warning: passing argument 1 of 'send_get_stat64' from incompatible pointer type [-Wincompatible-pointer-types]
 1976 |       SEND_GET_STAT64(r->fts_statp, _STAT_VER);
      |                       ~^~~~~~~~~~~
      |                        |
      |                        struct stat *
libfakeroot.c:89:46: note: in definition of macro 'SEND_GET_STAT64'
   89 | #define SEND_GET_STAT64(a,b) send_get_stat64(a)
      |                                              ^
In file included from libfakeroot.c:60:
communicate.h:209:44: note: expected 'struct stat64 *' but argument is of type 'struct stat *'
  209 | extern void send_get_stat64(struct stat64 *buf);
      |                             ~~~~~~~~~~~~~~~^~~
make[6]: *** [Makefile:638: libfakeroot.lo] Error 1
make[6]: Leaving directory '/home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2'
make[5]: *** [Makefile:660: all-recursive] Error 1
make[5]: Leaving directory '/home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2'
make[4]: *** [Makefile:434: all] Error 2
make[4]: Leaving directory '/home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2'
make[3]: *** [Makefile:21: /home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/compile_dir/host/fakeroot-1.20.2/.built] Error 2
make[3]: Leaving directory '/home/yangmei/D1/tools/fakeroot'
make[2]: *** [tools/Makefile:135: tools/fakeroot/compile] Error 2
make[2]: Leaving directory '/home/yangmei/D1'
make[1]: *** [tools/Makefile:133: /home/yangmei/D1/out/d1-mangopi_mq_rgb800x480_gt9xx/staging_dir/target/stamp/.tools_install_yyyynyyynyyyyyyynnnyyyyyyyyyyynnyyyyyyyynyyynyyyyy] Error 2
make[1]: Leaving directory '/home/yangmei/D1'
make: *** [/home/yangmei/D1/build/toplevel.mk:306:world] 错误 2

#### make failed to build some targets (10:45 (mm:ss)) ####

出错,不知道啥原因

离线

#24 2021-12-22 16:26:19

阿黄
会员
注册时间: 2018-10-03
已发帖子: 299
积分: 134

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

按照官方repo教程,下载了官方的1.0.1版本,然后安装了芒果1216版本patch,按照本网页编译方法选择 d1-mangopi_mq_rgb480x272_rtp
编译报错:

gdbusauth.c: In function '_g_dbus_auth_run_server':
gdbusauth.c:1298:11: error: '%s' directive argument is null [-Werror=format-overflow=]
 1298 |           debug_print ("SERVER: WaitingForBegin, read '%s'", line);
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors

解决方法:

find ./ -name "gdbusauth.c"

找到该文件,以及同目录下的gdbusmessage.c,修改以下内容:
gdbusauth.c文件中1299行,

debug_print ("SERVER: WaitingForBegin, read '%s'", line);

前面加上 if(line != NULL )
gdbusmessage.c文件第2699行,在

tupled_signature_str = g_strdup_printf("(%s)",signature_str);

前加上 if(signature_str != NULL )

重新make

离线

#25 2021-12-22 23:04:54

hox
会员
注册时间: 2020-02-17
已发帖子: 46
积分: 34.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

请教一下老哥你提供的 480272 电阻屏固件触摸是正常的么?按你的保姆教程搭建编译成功点亮了麻雀家的电阻屏,lvgl demo 界面触摸没有反应,还没接串口调试,先伸手问一下:),感谢。
PS 编译默认用的 ubuntu 20.04 有坑,看晕哥提了一句 18.04 ,果断新建一个 18.04 虚拟机,一起正常

离线

#26 2021-12-24 10:48:40

642242855
会员
注册时间: 2019-10-31
已发帖子: 204
积分: 101

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

@hox
难道我的也是系统的问题,我用的21.04,试下18的

离线

#27 2021-12-24 17:11:30

642242855
会员
注册时间: 2019-10-31
已发帖子: 204
积分: 101

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

用18.04的版本成功

离线

#28 2021-12-25 00:03:05

savebox
会员
注册时间: 2019-11-26
已发帖子: 17
积分: 10.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

系统已经可以编译成功了.
但是在make menuconfig 的时候选上 gdb 和 gdbserver 后,就无法编译成功了.
想问下现在这个 tinalinux  能成功编译 gdb 和 gdbserver 吗?
看Tina_Linux_Debug_System_User_Guide是没问题的

离线

#29 2021-12-27 14:56:10

忘忘大礼包
会员
注册时间: 2021-12-27
已发帖子: 7
积分: 64

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

已下单,坐等ing, 期待的搓手手~:D

离线

#30 2022-01-10 17:09:55

642242855
会员
注册时间: 2019-10-31
已发帖子: 204
积分: 101

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

小白问下怎么编译lvgl放linux上去运行的

离线

#31 2022-01-20 20:14:29

razor7788
会员
注册时间: 2022-01-20
已发帖子: 1
积分: 1

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

很详细了 不知道问啥我没成功

离线

#32 2022-01-22 14:51:12

lieves
会员
注册时间: 2022-01-22
已发帖子: 1
积分: 1

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

在全志提供的虚拟机里面编译没有问题,生成文件正常,但使用自己的ubuntu20.04编译就无法通过。

离线

#33 2022-02-21 16:11:56

cencheng
会员
注册时间: 2022-02-09
已发帖子: 2
积分: 2

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

按照教程在  ubuntu18.04 编译成功,谢谢楼主,之前都玩的STM32,现在小白一个,有没有大侠知道或者指点一下:何修改这个LVGL,在这个LVGL上点LED灯,我想知道我该修改哪些地方,如何操作,感激不敬

离线

#34 2022-02-27 10:30:28

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

如何用摄像头wifi,音频

离线

#35 2022-03-26 21:03:44

teemooo
会员
注册时间: 2022-03-26
已发帖子: 1
积分: 1

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

Tina系统上面的驱动都齐全吗

离线

#36 2022-04-05 07:56:55

yelong98
会员
注册时间: 2020-06-03
已发帖子: 97
积分: 59.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

全志新发布的d1s-tina2.0sdk也能直接用这个补丁么

离线

#37 2022-05-04 13:32:31

soso
会员
注册时间: 2022-05-03
已发帖子: 98
积分: 160

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

12 楼顶起,之前没看到这个帖子,基本上所有坑又过了一遍。。。这个帖子必须置顶

离线

#38 2022-05-15 16:28:13

yelong98
会员
注册时间: 2020-06-03
已发帖子: 97
积分: 59.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

请教老铁们. d1s怎么适配电阻屏的触摸?想把lvgl加个触摸

离线

#39 2022-06-05 16:27:15

szricky
会员
注册时间: 2022-06-04
已发帖子: 3
积分: 14

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

新发布的d1s-tina2.0sdk, 用这个补丁貌似不行,还得改一下。

有认改过么? :-p

离线

#40 2022-06-05 16:33:09

哇酷小二
管理员
所在地: 你猜
注册时间: 2020-04-22
已发帖子: 3,384
积分: 1902
个人网站

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

szricky 说:

新发布的d1s-tina2.0sdk, 用这个补丁貌似不行,还得改一下。

有认改过么? :-p

2.0的不行的。





离线

#41 2022-06-05 20:51:41

szricky
会员
注册时间: 2022-06-04
已发帖子: 3
积分: 14

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

mangopi-mq的 tina系统:目前只支持 XR829的无线网卡,请问 RTL8189的网卡有补丁么? 或者测试固件也行。

我5月份买的麻雀 mq,都已经是 RTL8189的硬件了。

小二能否回我一下信息?如果没有的话我自己搞也行,想拿一个能跑的固件先测试。 非常感谢!

最近编辑记录 szricky (2022-06-06 16:05:42)

离线

#42 2022-07-22 17:51:22

xiaobo
会员
注册时间: 2022-07-22
已发帖子: 1
积分: 1

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

资料好久没更新了 目前显得有点乱  老板可否重新梳理下SDK呢

离线

#43 2022-08-28 15:36:25

小王子&木头人
会员
注册时间: 2018-05-08
已发帖子: 72
积分: 4

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

有没有D1s 的 spi nand移植烧录教程

离线

#44 2022-08-31 13:58:28

huhujiajia
会员
注册时间: 2022-08-31
已发帖子: 3
积分: 3

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

最近也在做这块,搜到了就来参考一下,楼主写的已经很详细了

离线

#45 2022-09-04 14:53:29

tang6397
会员
注册时间: 2020-06-27
已发帖子: 95
积分: 94.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

Tina Linux SDK 的根目录下,执行 make kernel_menuconfig 报错
Prerequisite check failed. Use FORCE=1 to override.
make: *** [out/host/.prereq-build] Error 1
网上找的修改prereq-build.mk 和 下载patch文件 的办法都不行, 求助!

离线

#46 2022-10-31 14:01:29

zhuacai
会员
注册时间: 2017-12-16
已发帖子: 234
积分: 233.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

𣎴能驱动摄像头吗,全网都没看到有人驱动过摄像头

离线

#47 2022-12-13 09:38:57

soso
会员
注册时间: 2022-05-03
已发帖子: 98
积分: 160

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

zhuacai 说:

𣎴能驱动摄像头吗,全网都没看到有人驱动过摄像头

赶紧摇人,大佬出来解决一波~~

离线

#48 2022-12-13 10:44:28

吴助建
会员
注册时间: 2021-12-08
已发帖子: 104
积分: 17

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

楼主,LVGL的DEMO源码在哪个目录啊?
我找了半开,也没找到。

离线

#50 2023-05-02 08:11:37

暗水天狼
会员
注册时间: 2023-04-15
已发帖子: 12
积分: 12

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

有朋友测试过Wayland吗?

离线

#52 2023-10-19 10:30:50

lizimu
会员
注册时间: 2023-10-16
已发帖子: 1
积分: 1

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

如果自己摸索不知道要多久才能解决问题,前人栽树,后人乘凉。

离线

#54 2024-04-18 20:18:08

吴助建
会员
注册时间: 2021-12-08
已发帖子: 104
积分: 17

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

@丨晋丨
百度云下载的 sdk,缺不少东西:
lichee 目录下,缺 brandy-2.0 文件夹。
要目录下,缺 toolchain 文件夹。
需要到其它项目复制,才行。

离线

#55 2024-04-19 11:53:50

吴助建
会员
注册时间: 2021-12-08
已发帖子: 104
积分: 17

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

新版的sdk, 跟这个教程不一样。
生成的img, 就3个img , 不知道如何用。
boot.img(7.4M)/d1s-nezha-boot.img(7.4M)/rootfs.img(125.8M).

跟原来的 tina_d1-mangopi_mq_rgb480x272_rtp_uart0_20211216.img, 完全不一个路子啊。
这个img,直接 dd 写入 tf 卡,就能用。
上面那3个img, 不知道要如何用?

谁有原版的,能给我吗?

原版的简单明了,新版的,没个说明,跟所有的文档都对不上。

离线

#56 2024-07-17 16:51:56

一篮子bug
会员
注册时间: 2019-08-23
已发帖子: 85
积分: 74.5

Re: 《MangoPi-MQ 麻雀D1s上手教程》Tina系统编译烧录及基础分析

@吴助建
你应该只执行了make,后面tina_d1-mangopi_mq_rgb480x272_rtp_uart0_20211216.img是pack命令生成的

离线

页脚

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

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