@jr_online
也感谢您陪我聊天解闷
whycan 发布的最佳帖子
-
回复: 用3个IO口控制6个LED灯,怎么做到的? [转载]
二、总结提升
以上其实是用了一种叫“查理复用”(Charlieplex)的方法。
为什么叫查理复用?很简单,因为这个方法来源于美信半导体公司的工程师Charlie Allen。
查理复用是一种能够在驱动LED,特别是驱动大量LED时有效地节约GPIO的方法。
使用该方法,n个GPIO可以驱动 n*(n-1) 个LED,所以:-
使用2个GPIO可以驱动2个LED。
-
使用3个GPIO可以驱动6个LED。
-
使用4个GPIO可以驱动12个LED。
以此类推。
这种方式能够实现的基础是:
单片机GPIO的三个状态:高电平、低电平、高阻态。LED具有单向导电性。
查理复用设计的方法:
-
任意两个GPIO引脚之间串入两个LED,这两个LED为并联,且LED方向相反。
-
当你想要点亮某个特定的LED时,就将其两端所连接到的GPIO引脚分别设定为高电平和低电平,其它剩余的GPIO引脚设定为高阻态。
-
前面电动牙刷中6个LED灯的电路,就是这么设计的。
-
-
回复: t113s3_mq_r电容触摸
参考哪吒的SDK:
board.dts配置:
&twi2 { clock-frequency = <400000>; pinctrl-0 = <&twi2_pins_a>; pinctrl-1 = <&twi2_pins_b>; pinctrl-names = "default", "sleep"; dmas = <&dma 45>, <&dma 45>; dma-names = "tx", "rx"; status = "okay"; ctp@14 { compatible = "allwinner,goodix"; device_type = "ctp"; reg = <0x14>; status = "okay"; ctp_name = "gt9xxnew_ts"; ctp_twi_id = <0x2>; ctp_twi_addr = <0x14>; ctp_screen_max_x = <0x320>; ctp_screen_max_y = <0x500>; ctp_revert_x_flag = <0x0>; ctp_revert_y_flag = <0x1>; ctp_exchange_x_y_flag = <0x0>; ctp_int_port = <&pio PG 14 GPIO_ACTIVE_HIGH>; ctp_wakeup = <&pio PG 15 GPIO_ACTIVE_HIGH>; }; };
驱动开启以下选项:
CONFIG_TOUCHSCREEN_GT9XXNEW_TS CONFIG_TOUCHSCREEN_GT9XXNEWDUP_TS
-
回复: 芒果派麻雀到手试玩
@jr_online
还要配置 uboot-board.dts。
linux的驱动和 board.dts 暂时可以不用配置。重新编译boot命令: mboot
-
回复: 芒果派麻雀到手试玩
@jr_online
在 u-boot 里面调试,可以输出一些调试信息,一般在u-boot开屏之后,Linux不再自动开屏了。可以接个逻辑分析仪看下时序。
-
回复: 请问下,T113-S3TinaLinux,如何新增文件到根文件系统中
@wjp2547532 在 请问下,T113-S3TinaLinux,如何新增文件到根文件系统中 中说:
package/busybox-init-base-files/Makefile中添加
感谢分享,收藏!!!
-
回复: 真离谱:使用主线Buildroot编译Tina Linux系统,然后使用全志官方PhoenixSuit烧写SPI NAND
在楼主的耐心帮助下,终于编译打包成功!
找到编译出错的原因了, 我用了电脑里面已有的 dl/ 目录,这里面的 linux/git/ 和 uboot/git 与楼主的环境冲突。 删除这些冲突目录就好了。
-
回复: T113 tina PC端不能通过adb和目标板进行文件传输
@jr_online
最优解是用编译文件系统的同一个 gcc 命令,这样 就不需要静态链接 libc 了。 -
回复: T113 tina PC端不能通过adb和目标板进行文件传输
@jr_online
Makefile 里面的 LDFLAGS 环境变量,或者链接那个命令行的最后面。 -
回复: v3s,想在我的lcd屏手指触摸的位置上显示鼠标,该怎么选
@whycan 在 v3s,想在我的lcd屏手指触摸的位置上显示鼠标,该怎么选 中说:
有没有 /dev/mouse /dev/mice 设备生成?
先确保插入usb鼠标有设备生成,然后启动Qt app设置环境变量就能看到鼠标了。
-
回复: T113 tina PC端不能通过adb和目标板进行文件传输
@jr_online
前面那个命令是手动把usb otg 切换到device状态。后面那个你用 gcc静态链接应该就没问题了,命令行加 -static
-
回复: v3s,想在我的lcd屏手指触摸的位置上显示鼠标,该怎么选
如果你的Qt应用程序正在使用linuxfb平台插件运行,那么可以通过设置QT_QPA_FB_HIDECURSOR环境变量来控制鼠标光标是否显示。
export QT_QPA_FB_HIDECURSOR=0
在上述命令中,0表示不隐藏鼠标光标,即显示鼠标光标。
-
回复: 【极简操作】使用builroot 2021一键编译生成D1 nezha 系统镜像!
rm output/target; find output/build/ -name .stamp_target_installed |xargs rm ; make
执行这个命令, 药到病除。
-
开源基于全志V3s & RP2040(树莓派) 的3D打印机主板,klipper上下位机一体
看了社区里几位大佬的V3s项目做的
做出了挺久了没时间整理,今天搞出来
镜像晚点整理发出来
V3s运行klipper,RP2040做klipper下位机
已经实测过一段时间了,只有一个问题,内存太少,CPU资源也不够,长时间打印可能会报错:lol:。
玩玩还是不错的,
目前只有触摸没有验证AD格式原理图: Explorer.7z
-
回复: 请教一下各位大佬,T113 如何进入FEL BOOT?
不插TF卡,并且下拉 SPI FLASH 的 CS/MISO/MOSI 引脚,插入USB OTG 即进入FEL。
-
回复: T113-S3 / V853 安全固件学习记录
①执行 ./scripts/createkeys 生成密钥
②生成安全固件:pack -s ==> tina_t113-whycanpij_uart3_secure_v0.img用 PhoenixSuit.exe 烧录上面的安全固件,用dragonsn.exe烧录out/板级目录/keys/rotpk.bin
-
回复: T113-S3 / V853 安全固件学习记录
如何判断 anti-brush bit 是否烧写?
因为只有 anti-brush bit 烧写后才能启动安全固件,所以如果是安全启动,anti-brush bit
就一定烧写了。安全启动过程中有一些特有的打印,如“sboot commit...”、“OLD version:...
”、“NEW version: ...”、“secure enable bit: 1”等等,可用来进行判断。如何判断 rotpk.bin 是否烧写?
反证法。烧录使用其他 key 签名的安全固件(安全版本号一致),如果不能启动,则表明已经烧写 rotpk。
sboot 启动 log 中如果有 “have rotpk, do check”,表明 rotpk.bin 已经烧写。
[89]HELLO! SBOOT is starting! [92]sboot commit : 88480af-dirty [95]set pll start [101]periph0 has been enabled [104]set pll end [106][pmu]: bus read error [108]board init ok [110]ZQ value = 0x2f [112]get_pmu_exist() = -1 [115]DRAM BOOT DRIVE INFO: V0.33 [118]DRAM CLK = 936 MHz [120]DRAM Type = 3 (2:DDR2,3:DDR3) [123]DRAMC read ODT off. [126]DRAM ODT value: 0x42. [128]ddr_efuse_type: 0xa [131]DRAM SIZE =128 M [133]dram_tpr4:0x0 [135]PLL_DDR_CTRL_REG:0xf8004d00 [138]DRAM_CLK_REG:0xc0000000 [141][TIMING DEBUG] MR2= 0x20 [145]DRAM simple test OK. [147]rtc standby flag is 0x0, super standby flag is 0x0 [152]dram size =128 [154]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [159]block from 8 to 32 [266]Check is correct. [268]dma 0x32cd8 int is not used yet [271]dma 0x32cd8 int is free, you do not need to free it again [277]OLD version: 0.0 [279]NEW version: 0.0 [282]have rotpk, do check [331]load rotpk hash [425]load boot-key hash [427]load boot hash [481]monitor entry=0x0 [483]uboot entry=0x43000000 [486]optee entry=0x41b00000 [489]opensbi entry=0x0 [491]no need rotpk flag [493]run out of boot0 M/TC: OP-TEE version: 6aef7bb2-dirty (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Fri Jul 23 09:25:11 UTC 2021 arm U-Boot 2018.05-g24521d6-dirty (Dec 30 2022 - 16:57:32 +0800) Allwinner Technology [00.546]CPU: Allwinner Family [00.549]Model: sun8iw20 I2C: FDT ERROR:fdt_set_all_pin:[twi0]-->FDT_ERR_BADPATH FDT ERROR:fdt_set_all_pin:[twi1]-->FDT_ERR_BADPATH ready [00.570]DRAM: 128 MiB [00.574]Relocation Offset is: 04ecc000 [00.598]secure enable bit: 1 [00.600]smc_tee_inform_fdt failed with: -65526[00.605]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.611]gic: sec monitor mode [00.614]flash init start [00.616]workmode = 0,storage type = 0 sspi->base_addr = 0x4025000, the SPI control register: [VER] 0x4025000 = 0x00010001, [GCR] 0x4025004 = 0x00000083, [TCR] 0x4025008 = 0x00000184 [ICR] 0x4025010 = 0x00000f00, [ISR] 0x4025014 = 0x00000032, [FCR] 0x4025018 = 0x00200020 [FSR] 0x402501c = 0x00000000, [WCR] 0x4025020 = 0x00000000, [CCR] 0x4025024 = 0x00000002 [SDC] 0x4025028 = 0x00002000, [BCR] 0x4025030 = 0x00000000, [TCR] 0x4025034 = 0x00000000 [BCC] 0x4025038 = 0x20000000, [DMA] 0x4025088 = 0x000000e5 [00.663]sunxi-spinand-phy: not detect any munufacture from id table [00.670]sunxi-spinand-phy: get spi-nand Model from fdt fail [00.675]sunxi-spinand-phy: get phy info from fdt fail device nand0 <nand>, # parts = 4 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: sys 0x07b00000 0x00500000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) [00.792]ubi0: attaching mtd4 [00.897]ubi0: scanning is finished [00.904]ubi0: attached mtd4 (name "sys", size 123 MiB) [00.909]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [00.915]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [00.921]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [00.927]ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0 [00.933]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [00.939]ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [00.947]ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20 [00.956]sunxi flash init ok [00.958]line:703 init_clocks [00.961]drv_disp_init fdt get node offset faill: hdmi [00.974]drv_disp_init finish [00.977]boot_gui_init:start [00.979]set disp.dev2_output_type fail. using defval=0 [01.116]set disp.fb0_width fail. using defval=0 [01.120]set disp.fb0_height fail. using defval=0 [01.124]boot_gu[01.126]smallwitpi lcd_panel_init 187 xxxxxxxxxxxxxxxxxx i_init:finish [01.419]LCD open finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [01.489]bmp_name=bootlogo.bmp size 691254 691254 bytes read in 36 ms (18.3 MiB/s) [01.648]Loading Environment from SUNXI_FLASH... OK [01.669]Item0 (Map) magic is bad secure storage read widevine fail [01.675]secure storage read widevine fail with:-1 secure storage read ec_key fail [01.683]secure storage read ec_key fail with:-1 secure storage read ec_cert1 fail [01.690]secure storage read ec_cert1 fail with:-1 secure storage read ec_cert2 fail [01.697]secure storage read ec_cert2 fail with:-1 secure storage read ec_cert3 fail [01.705]secure storage read ec_cert3 fail with:-1 secure storage read rsa_key fail [01.712]secure storage read rsa_key fail with:-1 secure storage read rsa_cert1 fail [01.720]secure storage read rsa_cert1 fail with:-1 secure storage read rsa_cert2 fail [01.727]secure storage read rsa_cert2 fail with:-1 secure storage read rsa_cert3 fail [01.735]secure storage read rsa_cert3 fail with:-1 [01.739]out of usb burn from boot: not need burn key [01.755]update bootcmd [01.768]change working_fdt 0x43e8be70 to 0x43e6be70 [01.788]update dts Hit any key to stop autoboot: 0 pubkey boot valid [02.108]no vendor_boot partition is found Android's image name: t113-whycanpij [02.119]Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.4.61 (whycan@ubuntu) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #87 SMP PREEMPT Fri Dec 30 09:20:00 UTC 2022 [ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: sun8iw20 [ 0.000000] printk: bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 32 MiB at 0x46000000 [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440 [ 0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: ubi.mtd=sys ubi.block=0,rootfs earlyprintk=sunxi-uart,0x02500C00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/ubiblock0_5 rootfstype=squashfs init=/pseudo_init partitions=mbr@ubi0_0:boot-resource@ubi0_1:env@ubi0_2:env-redund@ubi0_3:boot@ubi0_4:rootfs@ubi0_5:private@ubi0_6:rootfs_data@ubi0_7:UDISK@ubi0_8: cma=32M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.hardware=sun8iw20p1 boot_type=5 androidboot.boot_type=5 gpt=1 androidboot.verifiedbootstate=<NULL> uboot_message=2018.05-g24521d6-dirty(12/30/2022-16:57:32) disp_reserve=3686400,0x43f0f000 aw-ubi-spinand.ubootblks=24 androidboot.dramsize=128 [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 81376K/131072K available (6144K kernel code, 292K rwdata, 1704K rodata, 1024K init, 1173K bss, 16928K reserved, 32768K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, 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: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] random: get_random_bytes called from start_kernel+0x264/0x3e8 with crng_init=0 [ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.008017] Switching to timer-based delay loop, resolution 41ns [ 0.014186] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.023909] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.034285] pid_max: default: 32768 minimum: 301 [ 0.039026] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.046385] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.054719] CPU: Testing write buffer coherency: ok [ 0.059951] /cpus/cpu@0 missing clock-frequency property [ 0.065275] /cpus/cpu@1 missing clock-frequency property [ 0.070631] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.076785] Setting up static identity map for 0x40100000 - 0x40100060 [ 0.083459] rcu: Hierarchical SRCU implementation. [ 0.088668] smp: Bringing up secondary CPUs ... [ 0.094317] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.094437] smp: Brought up 1 node, 2 CPUs [ 0.104233] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.110438] CPU: All CPU(s) started in SVC mode. [ 0.115526] devtmpfs: initialized [ 0.130336] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.138460] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.148317] futex hash table entries: 512 (order: 3, 32768 bytes, linear) [ 0.156466] pinctrl core: initialized pinctrl subsystem [ 0.162996] NET: Registered protocol family 16 [ 0.168947] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.211786] rtc_ccu: sunxi ccu init OK [ 0.217860] ccu: sunxi ccu init OK [ 0.221652] r_ccu: sunxi ccu init OK [ 0.267228] iommu: Default domain type: Translated [ 0.272309] sunxi iommu: irq = 24 [ 0.276786] SCSI subsystem initialized [ 0.280879] usbcore: registered new interface driver usbfs [ 0.286902] usbcore: registered new interface driver hub [ 0.292334] usbcore: registered new device driver usb [ 0.297633] videodev: Linux video capture interface: v2.00 [ 0.304158] Advanced Linux Sound Architecture Driver Initialized. [ 0.310943] Bluetooth: Core ver 2.22 [ 0.314620] NET: Registered protocol family 31 [ 0.319084] Bluetooth: HCI device and connection manager initialized [ 0.325770] Bluetooth: HCI socket layer initialized [ 0.330656] Bluetooth: L2CAP socket layer initialized [ 0.335766] Bluetooth: SCO socket layer initialized [ 0.340916] pwm module init! [ 0.345200] g2d 5410000.g2d: Adding to iommu group 0 [ 0.350604] G2D: rcq version initialized.major:252 [ 0.356312] clocksource: Switched to clocksource arch_sys_counter [ 0.370899] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver [ 0.380582] NET: Registered protocol family 2 [ 0.385487] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) [ 0.393911] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.401666] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear) [ 0.408749] TCP: Hash tables configured (established 1024 bind 1024) [ 0.415208] UDP hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.421784] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear) [ 0.428964] NET: Registered protocol family 1 [ 0.434314] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator [ 0.444662] spi spi0: spi0 supply spi not found, using dummy regulator [ 0.451459] sunxi_spi_resource_get()2151 - [spi0] SPI MASTER MODE [ 0.457646] sunxi_spi_resource_get()2189 - Failed to get sample mode [ 0.464008] sunxi_spi_resource_get()2194 - Failed to get sample delay [ 0.470471] sunxi_spi_resource_get()2198 - sample_mode:-1431633921 sample_delay:-1431633921 [ 0.478873] sunxi_spi_clk_init()2240 - [spi0] mclk 100000000 [ 0.485149] sunxi_spi_probe()2653 - [spi0]: driver probe succeed, base c881f000, irq 41 [ 0.495175] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.509716] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.515727] ntfs: driver 2.1.32 [Flags: R/W]. [ 0.548780] io scheduler mq-deadline registered [ 0.553319] io scheduler kyber registered [ 0.559376] [DISP]disp_module_init [ 0.563337] disp 5000000.disp: Adding to iommu group 0 [ 0.569104] [DISP] parser_disp_init_para,line:1430: [ 0.569108] of_property_read fb0_width fail [ 0.578192] [DISP] disp_init,line:2386: [ 0.578196] smooth display screen:0 type:1 mode:4 [ 0.603262] display_fb_request,fb_id:0 [ 0.613050] Freeing logo buffer memory: 3600K [ 0.617975] disp_al_manager_apply ouput_type:1 [ 0.622590] [DISP] lcd_clk_config,line:744: [ 0.622601] disp 0, clk: pll(396000000),clk(396000000),dclk(66000000) dsi_rate(66000000) [ 0.622601] clk real:pll(396000000),clk(396000000),dclk(99000000) dsi_rate(150000000) [ 0.626870] [DISP]disp_module_init finish [ 0.643628] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator [ 0.648932] sunxi_sid_init()551 - insmod ok [ 0.662671] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator [ 0.672968] uart uart1: get regulator failed [ 0.677301] uart uart1: uart1 supply uart not found, using dummy regulator [ 0.684464] uart1: ttyS1 at MMIO 0x2500400 (irq = 34, base_baud = 1500000) is a SUNXI [ 0.692980] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator [ 0.703210] uart uart3: get regulator failed [ 0.707600] uart uart3: uart3 supply uart not found, using dummy regulator [ 0.714753] uart3: ttyS3 at MMIO 0x2500c00 (irq = 35, base_baud = 1500000) is a SUNXI [ 0.722630] sw_console_setup()1808 - console setup baud 115200 parity n bits 8, flow n ▒[ 0.730613] printk: console [ttyS3] enabled [ 0.730613] printk: console [ttyS3] enabled [ 0.739535] printk: bootconsole [earlycon0] disabled [ 0.739535] printk: bootconsole [earlycon0] disabled [ 0.751034] misc dump reg init [ 0.755554] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9 [ 0.762838] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed [ 0.770142] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed [ 0.777543] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1) [ 0.784031] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power. [ 0.790935] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1) [ 0.798626] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1 [ 0.806425] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1 [ 0.814484] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled [ 0.822099] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power. [ 0.828838] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1) [ 0.836326] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=141 assert=0 [ 0.843809] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator [ 0.855603] [ADDR_MGT] addr_mgt_probe: module version: v1.0.10 [ 0.862825] [ADDR_MGT] addr_mgt_probe: success. [ 0.868317] dma-buf: Running sanitycheck [ 0.872688] dma-buf: Running dma_fence [ 0.876901] sizeof(dma_fence)=48 [ 0.880604] dma-buf: Running dma_fence/sanitycheck [ 0.885945] dma-buf: Running dma_fence/test_signaling [ 0.891624] dma-buf: Running dma_fence/test_add_callback [ 0.897558] dma-buf: Running dma_fence/test_late_add_callback [ 0.903943] dma-buf: Running dma_fence/test_rm_callback [ 0.909774] dma-buf: Running dma_fence/test_late_rm_callback [ 0.916065] dma-buf: Running dma_fence/test_status [ 0.921399] dma-buf: Running dma_fence/test_error [ 0.926651] dma-buf: Running dma_fence/test_wait [ 0.931790] dma-buf: Running dma_fence/test_wait_timeout [ 0.976326] dma-buf: Running dma_fence/test_stub [ 0.981479] dma-buf: Running dma_fence/race_signal_callback [ 1.056337] thread_signal_callback[0] completed 36911 passes, 81 misses [ 1.063731] thread_signal_callback[1] completed 36925 passes, 96 misses [ 1.136320] thread_signal_callback[0] completed 40806 passes, 40806 misses [ 1.144000] thread_signal_callback[1] completed 40759 passes, 40758 misses [ 1.152224] sunxi-spinand: AW SPINand MTD Layer Version: 2.0 20201228 [ 1.159535] sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.10 20200306 [ 1.167456] sunxi-spinand-phy: not detect any munufacture from id table [ 1.174822] sunxi-spinand-phy: get spi-nand Model from fdt fail [ 1.181424] sunxi-spinand-phy: get phy info from fdt fail [ 1.187439] sunxi-spinand-phy: not detect munufacture from fdt [ 1.194045] sunxi-spinand-phy: detect munufacture from id table: Winbond [ 1.201509] sunxi-spinand-phy: detect spinand id: ff21aaef ffffffff [ 1.208495] sunxi-spinand-phy: ========== arch info ========== [ 1.214978] sunxi-spinand-phy: Model: W25N01GVZEIG [ 1.221666] sunxi-spinand-phy: Munufacture: Winbond [ 1.227874] sunxi-spinand-phy: DieCntPerChip: 1 [ 1.233484] sunxi-spinand-phy: BlkCntPerDie: 1024 [ 1.239397] sunxi-spinand-phy: PageCntPerBlk: 64 [ 1.245114] sunxi-spinand-phy: SectCntPerPage: 4 [ 1.250743] sunxi-spinand-phy: OobSizePerPage: 64 [ 1.256466] sunxi-spinand-phy: BadBlockFlag: 0x0 [ 1.262278] sunxi-spinand-phy: OperationOpt: 0x7 [ 1.268099] sunxi-spinand-phy: MaxEraseTimes: 65000 [ 1.274101] sunxi-spinand-phy: EccFlag: 0x0 [ 1.279927] sunxi-spinand-phy: EccType: 2 [ 1.285544] sunxi-spinand-phy: EccProtectedType: 3 [ 1.291165] sunxi-spinand-phy: ======================================== [ 1.298547] sunxi-spinand-phy: [ 1.302036] sunxi-spinand-phy: ========== physical info ========== [ 1.308933] sunxi-spinand-phy: TotalSize: 128 M [ 1.314258] sunxi-spinand-phy: SectorSize: 512 B [ 1.319655] sunxi-spinand-phy: PageSize: 2 K [ 1.324787] sunxi-spinand-phy: BlockSize: 128 K [ 1.330148] sunxi-spinand-phy: OOBSize: 64 B [ 1.335379] sunxi-spinand-phy: ======================================== [ 1.342752] sunxi-spinand-phy: [ 1.346239] sunxi-spinand-phy: ========== logical info ========== [ 1.353029] sunxi-spinand-phy: TotalSize: 128 M [ 1.358364] sunxi-spinand-phy: SectorSize: 512 B [ 1.363693] sunxi-spinand-phy: PageSize: 4 K [ 1.368831] sunxi-spinand-phy: BlockSize: 256 K [ 1.374152] sunxi-spinand-phy: OOBSize: 128 B [ 1.379500] sunxi-spinand-phy: ======================================== [ 1.386954] sunxi-spinand-phy: block lock register: 0x00 [ 1.393016] sunxi-spinand-phy: feature register: 0x19 [ 1.398646] sunxi-spinand-phy: sunxi physic nand init end [ 1.405014] Creating 4 MTD partitions on "sunxi_mtd_nand": [ 1.411169] 0x000000000000-0x000000100000 : "boot0" [ 1.427262] 0x000000100000-0x000000400000 : "uboot" [ 1.436221] random: fast init done [ 1.447264] 0x000000400000-0x000000500000 : "secure_storage" [ 1.467253] 0x000000500000-0x000008000000 : "sys" [ 1.688037] libphy: Fixed MDIO Bus: probed [ 1.693495] sunxi gmac driver's version: 1.0.0 [ 1.698636] gmac-power0: NULL [ 1.701935] gmac-power1: NULL [ 1.705230] gmac-power2: NULL [ 1.709578] Failed to alloc md5 [ 1.713079] eth0: Use random mac address [ 1.717779] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.725041] sunxi-ehci: EHCI SUNXI driver [ 1.729988] get ehci0-controller wakeup-source is fail. [ 1.735898] sunxi ehci0-controller don't init wakeup source [ 1.742120] [sunxi-ehci0]: probe, pdev->name: 4101000.ehci0-controller, sunxi_ehci: 0xc0b65538, 0x:c8881000, irq_no:3c [ 1.754027] [sunxi-ehci0]: Not init ehci0 [ 1.758776] get ehci1-controller wakeup-source is fail. [ 1.764673] sunxi ehci1-controller don't init wakeup source [ 1.770891] [sunxi-ehci1]: probe, pdev->name: 4200000.ehci1-controller, sunxi_ehci: 0xc0b65a58, 0x:c8885000, irq_no:3e [ 1.782826] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply drvvbus not found, using dummy regulator [ 1.795234] sunxi-ehci 4200000.ehci1-controller: 4200000.ehci1-controller supply hci not found, using dummy regulator [ 1.807325] sunxi-ehci 4200000.ehci1-controller: EHCI Host Controller [ 1.814531] sunxi-ehci 4200000.ehci1-controller: new USB bus registered, assigned bus number 1 [ 1.824482] sunxi-ehci 4200000.ehci1-controller: irq 62, io mem 0x04200000 [ 1.856339] sunxi-ehci 4200000.ehci1-controller: USB 2.0 started, EHCI 1.00 [ 1.864969] hub 1-0:1.0: USB hub found [ 1.869212] hub 1-0:1.0: 1 port detected [ 1.874223] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.881152] sunxi-ohci: OHCI SUNXI driver [ 1.886105] get ohci0-controller wakeup-source is fail. [ 1.892045] sunxi ohci0-controller don't init wakeup source [ 1.898262] [sunxi-ohci0]: probe, pdev->name: 4101400.ohci0-controller, sunxi_ohci: 0xc0b657c8 [ 1.907851] [sunxi-ohci0]: Not init ohci0 [ 1.912580] get ohci1-controller wakeup-source is fail. [ 1.918504] sunxi ohci1-controller don't init wakeup source [ 1.924708] [sunxi-ohci1]: probe, pdev->name: 4200400.ohci1-controller, sunxi_ohci: 0xc0b65ce8 [ 1.934326] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply drvvbus not found, using dummy regulator [ 1.946753] sunxi-ohci 4200400.ohci1-controller: 4200400.ohci1-controller supply hci not found, using dummy regulator [ 1.958859] sunxi-ohci 4200400.ohci1-controller: OHCI Host Controller [ 1.966071] sunxi-ohci 4200400.ohci1-controller: new USB bus registered, assigned bus number 2 [ 1.975887] sunxi-ohci 4200400.ohci1-controller: irq 63, io mem 0x04200400 [ 2.051188] hub 2-0:1.0: USB hub found [ 2.055402] hub 2-0:1.0: 1 port detected [ 2.060601] i2c /dev entries driver [ 2.064585] sunxi cedar version 1.1 [ 2.068693] sunxi-cedar 1c0e000.ve: Adding to iommu group 0 [ 2.074928] VE: sunxi_cedar_probe power-domain init!!! [ 2.080665] VE: install start!!! [ 2.080665] [ 2.086170] VE: cedar-ve the get irq is 42 [ 2.086170] [ 2.092580] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval) [ 2.092580] [ 2.101795] VE: install end!!! [ 2.101795] [ 2.106838] VE: sunxi_cedar_probe [ 2.110815] Bluetooth: HCI UART driver ver 2.3 [ 2.115756] Bluetooth: HCI UART protocol H4 registered [ 2.121495] Bluetooth: HCI UART protocol BCSP registered [ 2.127417] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10 [ 2.134569] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1 [ 2.140932] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1 [ 2.147455] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled! [ 2.147455] [ 2.156064] [XR_BT_LPM] bluesleep_probe: uart_index(1) [ 2.164088] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02) [ 2.174002] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8 [ 2.180172] sunxi-mmc 4020000.sdmmc: No vmmc regulator found [ 2.186484] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found [ 2.192871] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found [ 2.199269] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found [ 2.205755] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found [ 2.212250] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found [ 2.218744] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found [ 2.225659] sunxi-mmc 4020000.sdmmc: Got CD GPIO [ 2.230978] sunxi-mmc 4020000.sdmmc: set cd-gpios as 24M fail [ 2.237609] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.248690] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator [ 2.268766] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.293088] sunxi-mmc 4020000.sdmmc: detmode:gpio irq [ 2.298752] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.306908] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.21 2021-11-18 10:02) [ 2.319742] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8 [ 2.325895] sunxi-mmc 4021000.sdmmc: No vmmc regulator found [ 2.332222] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found [ 2.338627] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found [ 2.345010] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found [ 2.351513] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found [ 2.358009] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found [ 2.364501] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found [ 2.371014] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed [ 2.380336] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.391429] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 2.411538] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.435686] sunxi-mmc 4021000.sdmmc: detmode:manually by software [ 2.443311] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 2.450473] sunxi_led_probe()1751 - start [ 2.454945] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 2.461776] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.466365] sunxi_get_str_of_property()1597 - failed to get the string of propname led_regulator! [ 2.476343] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 2.483192] sunxi_register_led_classdev()1485 - led_classdev start [ 2.496850] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.502632] sunxi_led_probe()1847 - finish [ 2.509508] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.513219] usbcore: registered new interface driver usbkbd [ 2.520584] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.525807] usbcore: registered new interface driver usbmouse [ 2.533357] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 2.538835] exFAT: Version 1.3.0 [ 2.545538] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 2.551211] [AUDIOCODEC][sunxi_codec_parse_params][2412]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1 [ 2.551211] [ 2.577235] [AUDIOCODEC][sunxi_codec_parse_params][2448]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0 [ 2.588523] [AUDIOCODEC][sunxi_internal_codec_probe][2609]:codec probe finished [ 2.597693] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present! [ 2.607470] [SNDCODEC][sunxi_card_init][583]:card init finished [ 2.614539] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok [ 2.625433] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0 [ 2.637437] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished [ 2.646595] NET: Registered protocol family 10 [ 2.652623] Segment Routing with IPv6 [ 2.656762] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch [ 2.664168] NET: Registered protocol family 17 [ 2.669288] Bluetooth: RFCOMM TTY layer initialized [ 2.674730] Bluetooth: RFCOMM socket layer initialized [ 2.680587] Bluetooth: RFCOMM ver 1.11 [ 2.685474] Registering SWP/SWPB emulation handler [ 2.705336] sunxi-i2c sunxi-i2c0: sunxi-i2c0 supply twi not found, using dummy regulator [ 2.715369] sunxi-i2c sunxi-i2c0: probe success [ 2.722731] ubi0: attaching mtd3 [ 2.982486] random: crng init done [ 3.024909] ubi0: scanning is finished [ 3.040171] ubi0: attached mtd3 (name "sys", size 123 MiB) [ 3.046277] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [ 3.053951] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [ 3.061516] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [ 3.069266] ubi0: good PEBs: 492, bad PEBs: 0, corrupted PEBs: 0 [ 3.075944] ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [ 3.083994] ubi0: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0 [ 3.093292] ubi0: available PEBs: 0, total reserved PEBs: 492, PEBs reserved for bad PEB handling: 20 [ 3.103570] ubi0: background thread "ubi_bgt0d" started, PID 907 [ 3.111495] block ubiblock0_5: created from ubi0:5(rootfs) [ 3.120462] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 3.126389] clk: Not disabling unused clocks [ 3.130098] cfg80211: failed to load regulatory.db [ 3.134823] ALSA device list: [ 3.143437] #0: audiocodec [ 3.146700] alloc_fd: slot 0 not NULL! [ 3.154297] VFS: Mounted root (squashfs filesystem) readonly on device 254:0. [ 3.164553] devtmpfs: mounted [ 3.169860] Freeing unused kernel memory: 1024K [ 3.206447] Run /pseudo_init as init process mount: mounting none on /dev failed: Resource busy [ 3.419778] UBIFS (ubi0:7): Mounting in unauthenticated mode [ 3.426204] UBIFS (ubi0:7): background thread "ubifs_bgt0_7" started, PID 944 [ 3.507710] UBIFS (ubi0:7): recovery needed [ 3.629165] UBIFS (ubi0:7): recovery completed [ 3.634232] UBIFS (ubi0:7): UBIFS: mounted UBI device 0, volume 7, name "rootfs_data" [ 3.642978] UBIFS (ubi0:7): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes [ 3.654018] UBIFS (ubi0:7): FS size: 43352064 bytes (41 MiB, 168 LEBs), journal size 2064385 bytes (1 MiB, 8 LEBs) [ 3.665539] UBIFS (ubi0:7): reserved for root: 2047624 bytes (1999 KiB) [ 3.672905] UBIFS (ubi0:7): media format: w5/r0 (latest is w5/r0), UUID 666D6CE4-87B8-4FAD-ACEA-AE9FDFC0CEC8, small LPT model can't run '/etc/preinit': No such file or directory mount: mounting proc on /proc failed: Resource busy hostname: can't open '/etc/hostname': No such file or directory ------run rc.preboot file----- [ 3.808674] UBIFS (ubi0:8): Mounting in unauthenticated mode [ 3.815109] UBIFS (ubi0:8): background thread "ubifs_bgt0_8" started, PID 973 [ 3.926193] UBIFS (ubi0:8): UBIFS: mounted UBI device 0, volume 8, name "UDISK" [ 3.934364] UBIFS (ubi0:8): LEB size: 258048 bytes (252 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes [ 3.945427] UBIFS (ubi0:8): FS size: 6451200 bytes (6 MiB, 25 LEBs), journal size 2064385 bytes (1 MiB, 6 LEBs) [ 3.956672] UBIFS (ubi0:8): reserved for root: 304706 bytes (297 KiB) [ 3.963836] UBIFS (ubi0:8): media format: w5/r0 (latest is w5/r0), UUID F8A2B032-4867-4AEF-BF86-67BFD7817832, small LPT model ------run rc.modules file----- [ 4.109940] usbcore: registered new interface driver usb-storage [ 4.120725] sunxi_gpadc_init,2151, success [ 4.125637] sunxi_gpadc_setup: get channel scan data failed [ 4.132432] input: sunxi-gpadc0 as /devices/virtual/input/input1 [ 4.147926] get ctp_power is fail, -22 [ 4.152118] get ctp_power_ldo_vol is fail, -22 [ 4.157167] sunxi_ctp_startup: ctp_power_io is invalid. [ 4.163011] get ctp_gesture_wakeup fail, no gesture wakeup [ 4.169143] gt9xxnew_ts 0-0014: 0-0014 supply ctp not found, using dummy regulator [ 4.336455] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.344521] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.352210] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.360264] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.367944] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.375995] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.383670] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.391721] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.399411] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.407468] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.415028] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -22! Process reset. [ 4.576319] <<-GTP-ERROR->> GTP i2c test failed time 1. [ 4.606430] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.614482] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.622149] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.630202] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.637878] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.645934] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.653616] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.661663] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.669338] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.677392] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.684942] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -22! Process reset. [ 4.846318] <<-GTP-ERROR->> GTP i2c test failed time 2. [ 4.876429] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.884482] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.892153] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.900212] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.907887] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.915938] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.923610] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.931667] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.939343] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 4.947396] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 4.954946] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -22! Process reset. [ 5.116335] <<-GTP-ERROR->> GTP i2c test failed time 3. [ 5.146431] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.154483] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.162155] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.170208] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.177884] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.185938] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.193613] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.201662] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.209340] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.217395] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.224942] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -22! Process reset. [ 5.386319] <<-GTP-ERROR->> GTP i2c test failed time 4. [ 5.416433] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.424495] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.432173] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.440226] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.447901] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.455953] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.463626] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.471684] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.479361] sunxi-i2c sunxi-i2c0: SLA+W has been transmitted; ACK not received [ 5.487420] sunxi-i2c sunxi-i2c0: engine-mode: xfer failed(dev addr:0x14) [ 5.494975] <<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -22! Process reset. [ 5.656318] <<-GTP-ERROR->> GTP i2c test failed time 5. [ 5.686315] I2C communication ERROR! [ 5.686344] regulator-dummy: Underflow of regulator enable count [ 5.697217] gt9xxnew_ts: probe of 0-0014 failed with error -1 [ 5.798694] Error: Driver 'gt9xxnew_ts' is already registered, aborting... insmod: can't insert '/lib/modules/5.4.61/gt9xxnew_ts.ko': Operation not permitted [ 5.978071] ======== XRADIO WIFI OPEN ======== [ 5.983541] [XRADIO] Driver Label:XR_V02.16.85_P2P_HT40_01.31 [ 5.990298] [XRADIO] Allocated hw_priv @ 6a6dd56c [ 5.996120] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 6.012417] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 6.219546] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 6.230595] [XRADIO] Detect SDIO card 1 [ 6.245050] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 6.265188] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 6.289968] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 6.304469] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 6.326548] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 6.338060] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 6.349797] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 6.362401] mmc1: new high speed SDIO card at address 0001 [ 6.369022] [SBUS] XRadio Device:sdio clk=50000000 [ 6.383775] [XRADIO] XRADIO_HW_REV 1.0 detected. [ 6.466734] [XRADIO] xradio_update_dpllctrl: DPLL_CTRL Sync=0x00c00000. [ 6.498652] [XRADIO] Bootloader complete [ 6.586371] [XRADIO] Firmware completed. [ 6.592491] [WSM] Firmware Label:XR_C09.08.52.73_DBG_02.122 2GHZ HT40 May 18 2021 13:36:09 [ 6.601826] [XRADIO] Firmware Startup Done. [ 6.606861] [XRADIO_WRN] enable Multi-Rx! [ 6.612100] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' [ 6.716639] sunxi_usb_udc 4100000.udc-controller: 4100000.udc-controller supply udc not found, using dummy regulator Successfully initialized wpa_supplicant [ 6.833756] ieee80211_do_open: vif_type=2, p2p=0, ch=3, addr=14:4f:45:4b:74:5d [ 6.841893] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0, addr=14:4f:45:4b:74:5d [ 6.857334] [AP_WRN] BSS_CHANGED_ASSOC but driver is unjoined. ------run rc.final file----- numid=30,iface=MIXER,name='Headphone Switch' ; type=BOOLEAN,access=rw------,values=1 : values=on ------light up RGB LED----- [ 7.094079] file system registered [ 7.111625] configfs-gadget 4100000.udc-controller: failed to start g1: -19 sh: write error: No such device [ 7.134424] read descriptors [ 7.137781] read strings [ 7.382009] android_work: sent uevent USB_STATE=CONNECTED [ 7.479380] configfs-gadget gadget: high-speed config #1: c [ 7.485687] android_work: sent uevent USB_STATE=CONFIGURED ------light up LED----- BusyBox v1.27.2 () built-in shell (ash) ------run profile file----- _____ _ __ _ |_ _||_| ___ _ _ | | |_| ___ _ _ _ _ | | _ | || | | |__ | || || | ||_'_| | | | || | || _ | |_____||_||_|_||___||_,_| |_| |_||_|_||_|_| Tina is Based on OpenWrt! ---------------------------------------------- Tina Linux (Neptune, 61CC0487) ---------------------------------------------- Wed Jun 1 00:00:00 GMT 2022 nodev debugfs root@TinaLinux:/# [ 33.156354] usb1-vbus: disabling
各镜像在哪个阶段进行校验?
默认配置情况下,会对 sboot、opensbi、u-boot、kernel 进行校验。
brom 运行阶段对 sboot 进行校验。如果 sboot 能启动,表明已经经过了校验。
sboot 运行阶段对 opensbi 与 u-boot 进行校验。
uboot 运行阶段会对 kernel 进行校验。
-
回复: ubuntu18.04 d1 dependency install failed
I found a solution,hope it works for others as well visit this website -> https://repogen.simplylinux.ch/ and choose your 'country' and 'release' along with necessary 'branches' and 'updates' and go to end of the page till 'Generate list' button and click it to get your new sources.list copy the text in 'sources list' text field and open sources.list file in /etc/apt/ in local file system and open in editable mode i.e., in sudo mode to edit, replace the current data with newly copy data and save it open terminal enter these commands : sudo apt-get update sudo apt-get install lib32stdc++6 you are done. Now, just check if the problem with making AVD is gone or not. Share Improve this answer Follow
-
回复: D1/D1S 的区别是啥?
D1-H / D1 与D1s 比较图 ,一眼看出区别
https://bbs.aw-ol.com/topic/1181名称 D1-H D1s 制程 22nm 22nm CPU XuanTie C906 RISC-V CPU @1.008GHz XuanTie C906 RISC-V CPU @1.008GHz 内存 外置 DDR2/DDR3 SDRAM @ 792MHz 内置 64 MB DDR2 @ 533MHz 外存 SD3.0/SDIO3.0/eMMC5.0 SD3.0/SDIO3.0/eMMC5.0 DSP HiFi4 DSP 无 编码器 JPEG/MJPEG 1080P@60fps JPEG/MJPEG 1080P@60fps 解码器 最大4K,支持格式: H.265, H.264, MPEG-1/2/4, JPEG, VC1, Xvid, Sorenson Spark 最大1080p,支持格式: H.265, H.264, MPEG-1/2/4, JPEG, VC1, Xvid, Sorenson Spark 图形 SmartColor2.0,DI 1080p@60fps,G2D SmartColor2.0,DI 1080p@60fps,G2D 视频输出 HDMI 4K@30fps, RGB 1080p@60fps, Dual link LVDS 1080p@60fps,, 4 lane MIPI DSI 1920 x 1200@60fps, CVBS 支持 NTSC与PAL制式 RGB 1080p@60fps, Dual link LVDS 1080p@60fps,, 4 lane MIPI DSI 1920 x 1200@60fps, CVBS 支持 NTSC与PAL制式 视频输入 8位CSI支持DVP, CVBS 输入支持 NTSC与PAL制式 8位CSI支持DVP, CVBS 输入支持 NTSC与PAL制式 音频Codec 2 DAC, 3 ADC, LINEOUTLP/N, LINEOUTRP/N, HPOUTL/R, MICIN1P/1N, MICIN2P/2N, MICIN3P/3N, LINEINL/R, FMINL/R 2 DAC, 3 ADC, HPOUTL/R , MICIN3P/N, LINEINL/R, FMINL/R I2S 3*I2S 2*I2S DMIC 最大 8 DMIC 最大 8 DMIC OWA OWA TX 与 OWA RX, 支持 S/PDIF 接口 OWA TX 与 OWA RX, 支持 S/PDIF 接口 安全 AES, DES, 3DES, RSA, MD5, SHA, HMAC, 2kbit OTP efuse AES, DES, 3DES, RSA, MD5, SHA, HMAC, 2kbit OTP efuse 外设 USB 2.0 DRD (USB0) , USB 2.0 HOST (USB1), 10/100/1000 Mbps RGMII 或 RMII 接口, 6 个 UART 控制器, 2 个 SPI controllers (SPI0, SPI1), 4 个 TWI 控制器, CIR RX and CIR TX, 8 个独立 PWM 通道, 2-ch GPADC, 4-ch TPADC, 1-ch LRADC, LEDC USB 2.0 DRD (USB0) , USB 2.0 HOST (USB1), 10/100/1000 Mbps RGMII 或 RMII 接口, 6 个 UART 控制器, 2 个 SPI controllers (SPI0, SPI1), 4 个 TWI 控制器, CIR RX and CIR TX, 8 个独立 PWM 通道, 2-ch GPADC, 4-ch TPADC, LEDC 封装 LFBGA 337, 13 mm x 13 mm eLQFP128, 14 mm x 14 mm x 1.4 mm 图片版本
D1-H / D1 与D1s 比较图 ,一眼看出区别
https://bbs.aw-ol.com/topic/1181 -
回复: F133-A/D1S芒果派MQ-R在tina-sdk2.0下无法识别电阻触摸屏
@exoy28
可能是依赖的某些so有问题,或者不存在用 xxx-objdump -x 可执行文件 |grep NEED 一个一个检查一下:
$ prebuilt/gcc/linux-x86/riscv/toolchain-thead-glibc/riscv64-glibc-gcc-thead_20200702/bin/riscv64-unknown-linux-gnu-objdump -x ./out/d1s-nezha/staging_dir/target/rootfs/bin/busybox |grep NEED NEEDED libcrypt.so.1 NEEDED libm.so.6 NEEDED libc.so.6
-
回复: D1-H Tinalinux下spi1 slave模式如何使用
4.2 Slave 模式驱动范例
需要在 board.dts 中相应的 SPI 节点设备配置 spi_slave_mode = <1>。
4.2.1 Slave 写数据
以 spidev1.0 设备为例,发送 0~9 十个数据:1 #define DEVICE_NAME "/dev/spidev1.0" 2 #define HEAD_LEN 5 3 #define PKT_MAX_LEN 0x40 4 #define STATUS_LEN 0x01 5 6 #define SUNXI_OP_WRITE 0x01 7 #define SUNXI_OP_READ 0x03 8 9 #define STATUS_WRITABLE 0x02 10 #define STATUS_READABLE 0x04 11 12 #define WRITE_DELAY 200 13 #define READ_DELAY 100000 14 15 void dump_data(unsigned char *buf, unsigned int len) 16 { 17 unsigned int i; 18 unsigned char tmp[len*2], cnt = 0; 19 20 for (i = 0; i < len; i++) { 21 if (i%0x10== 0) 22 cnt += sprintf(tmp + cnt, "0x%08x: ", i); 23 24 cnt += sprintf(tmp + cnt, "%02x ", buf[i]); 25 26 if ( (i%0x10== 0x0f) || (i == (len -1)) ) { 27 printf("%s\n", tmp); 28 cnt = 0; 29 } 30 } 31 } 32 33 void batch_rand(char *buf, unsigned int length) 34 { 35 unsigned int i; 36 srand(time(0)); 37 38 for(i = 0; i < length; i++) { 39 *(buf + i) = rand() % 256; 40 } 41 } 42 43 int main(int argc, const char *argv[]) 44 { 45 unsigned int length = 0, test_len; 46 char wbuf_head[HEAD_LEN] = {SUNXI_OP_WRITE, 0x00, 0x00, 0x00, 0x00}; 47 char rbuf_head[HEAD_LEN] = {SUNXI_OP_READ, 0x00, 0x00, 0x00, 0x00}; 48 char wbuf[PKT_MAX_LEN], rbuf[PKT_MAX_LEN], i, time; 49 int fd, ret; 50 51 test_len = 10;//send 10 numbers 52 if (test_len > PKT_MAX_LEN) { 53 printf("invalid argument, numbers must less 64B\n"); 54 return -1; 55 } 56 57 wbuf_head[4] = test_len; 58 rbuf_head[4] = test_len; 59 60 for (i = 0; i < test_len; i++) 61 wbuf[i] = i; 62 printf("wbuf:\n"); 63 dump_data(wbuf, test_len); 64 65 fd = open(DEVICE_NAME, O_RDWR); 66 if (fd <= 0) { 67 printf("Fail to to open %s\n", DEVICE_NAME); 68 ret = -1; 69 return ret; 70 } 71 72 {//write 73 if (write(fd, wbuf_head, HEAD_LEN) != HEAD_LEN) { 74 printf("W Fail to write head\n"); 75 ret = -1; 76 goto err; 77 } else 78 printf("W write head successful\n"); 79 80 usleep(WRITE_DELAY); 81 82 if (write(fd, wbuf, test_len) != test_len) { 83 printf("W Fail to write data\n"); 84 ret = -1; 85 goto err; 86 } else 87 printf("W write data successful\n"); 88 89 usleep(READ_DELAY); 90 } 91 92 err: 93 if (fd > 0) 94 close(fd); 95 96 return ret; 97 }
4.2.2 Slave 读数据
以 spidev1.0 设备为例,读十个数据:1 #define DEVICE_NAME "/dev/spidev1.0" 2 #define HEAD_LEN 5 3 #define PKT_MAX_LEN 0x40 4 #define STATUS_LEN 0x01 5 6 #define SUNXI_OP_WRITE 0x01 7 #define SUNXI_OP_READ 0x03 8 9 #define STATUS_WRITABLE 0x02 10 #define STATUS_READABLE 0x04 11 12 #define WRITE_DELAY 200 13 #define READ_DELAY 100000 15 void dump_data(unsigned char *buf, unsigned int len) 16 { 17 unsigned int i; 18 unsigned char tmp[len*2], cnt = 0; 19 20 for (i = 0; i < len; i++) { 21 if (i%0x10== 0) 22 cnt += sprintf(tmp + cnt, "0x%08x: ", i); 23 24 cnt += sprintf(tmp + cnt, "%02x ", buf[i]); 25 26 if ( (i%0x10== 0x0f) || (i == (len -1)) ) { 27 printf("%s\n", tmp); 28 cnt = 0; 29 } 30 } 31 } 32 33 void batch_rand(char *buf, unsigned int length) 34 { 35 unsigned int i; 36 srand(time(0)); 37 38 for(i = 0; i < length; i++) { 39 *(buf + i) = rand() % 256; 40 } 41 } 42 43 int main(int argc, const char *argv[]) 44 { 45 unsigned int length = 0, test_len; 46 char wbuf_head[HEAD_LEN] = {SUNXI_OP_WRITE, 0x00, 0x00, 0x00, 0x00}; 47 char rbuf_head[HEAD_LEN] = {SUNXI_OP_READ, 0x00, 0x00, 0x00, 0x00}; 48 char wbuf[PKT_MAX_LEN], rbuf[PKT_MAX_LEN], i, time; 49 int fd, ret; 50 51 test_len = 10; 52 if (test_len > PKT_MAX_LEN) { 53 printf("inval argument, numbers must less 64B\n"); 54 return -1; 55 } 56 57 wbuf_head[4] = test_len; 58 rbuf_head[4] = test_len; 59 60 fd = open(DEVICE_NAME, O_RDWR); 61 if (fd <= 0) { 62 printf("Fail to to open %s\n", DEVICE_NAME); 63 ret = -1; 64 return ret; 65 } 66 67 {//read 68 if (write(fd, rbuf_head, HEAD_LEN) != HEAD_LEN) { 69 printf("R Fail to write head\n"); 70 ret = -1; 71 goto err; 72 } else 73 printf("R write head successful\n"); 75 usleep(READ_DELAY); 76 77 if (read(fd, rbuf, test_len) != test_len) { 78 printf("R Fail to read data\n"); 79 ret = -1; 80 goto err; 81 } else 82 printf("R read data successful\n"); 83 84 usleep(READ_DELAY); 85 86 } 87 88 printf("rbuf:\n"); 89 dump_data(rbuf, test_len); 90 91 err: 92 if (fd > 0) 93 close(fd); 94 95 return ret; 96 }
-
回复: 请问有C语言接口接口获取eth的网速1Gbps / 100Mbps吗?
root@TinaLinux:/# cat /sys/devices/platform/soc/gmac0/net/eth0/speed
100 -
回复: 谁有D1-H sd card image 文件
复制这段内容后打开百度网盘APP,操作更方便哦。 链接:https://pan.baidu.com/s/1h-yRCvY3I7fhlVL9tVIfvw?pwd=awol
提取码:awol -
回复: 在D1的tina上整上overlayfs
@whycan
今天复盘发现前面修改的不到位,[ 4.728131] random: procd: uninitialized urandom read (4 bytes read) formating /dev/by-name/UDISK to ext4 mkfs.ext4: error while loading shared libraries: libext2fs.so.2: cannot open shared object file: No such file or directo formating /dev/by-name/rootfs_data to ext4 mkfs.ext4: error while loading shared libraries: libext2fs.so.2: cannot open shared object file: No such file or directo [ 4.922229] mount_root: mounting /dev/root [ 4.929631] mount_root: loading kmods from internal overlay
提示缺库: libext2fs.so.2
修改文件 package/utils/e2fsprogs/Makefile:
$ repo diff package/utils/e2fsprogs/Makefile project package/ diff --git a/utils/e2fsprogs/Makefile b/utils/e2fsprogs/Makefile index 837e77dd..5a99a673 100644 --- a/utils/e2fsprogs/Makefile +++ b/utils/e2fsprogs/Makefile @@ -173,6 +173,8 @@ define Package/e2fsprogs/install $(LN) e2fsck $(1)/usr/sbin/fsck.ext4 $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libe2p.so.* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libext2fs.so.2* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libcom_err.so.2* $(1)/usr/lib/ $(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/lib/functions/fsck $(INSTALL_DATA) ./files/e2fsck.sh $(1)/lib/functions/fsck/
启动格式化正常:
Writing superblocks and filesystem accounting information: 0/15 done formating /dev/by-name/rootfs_data to ext4 mke2fs 1.46.4 (18-Aug-2021) [ 10.606705] random: mkfs.ext4: uninitialized urandom read (16 bytes read) [ 10.614536] random: mkfs.ext4: uninitialized urandom read (16 bytes read) Creating filesystem with 12800 1k blocks and 3200 inodes Filesystem UUID: 53820334-39e9-4e0f-87dc-f4d06ba4c2f7 Superblock backups stored on blocks: 8193 Allocating group tables: done Writing inode tables: done Creating journal (1024 blocks): done Writing superblocks and filesystem accounting information: done [ 10.971936] mount_root: mounting /dev/root [ 10.977198] mount_root: loading kmods from internal overlay [ 11.156955] block: attempting to load /etc/config/fstab e2fsck 1.46.4 (18-Aug-2021) /dev/by-name/UDISK: clean, 11/115920 files, 16835/462727 blocks [ 11.328707] EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: [ 11.352305] mount_root: switched to extroot [ 11.369502] procd: - early - [ 11.373087] procd: - watchdog -
挂载正常:
root@TinaLinux:/# mount /dev/root on /rom type squashfs (ro,noatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=504672k,nr_inodes=126168,mode=755) proc on /proc type proc (rw,nosuid,nodev,noexec,noatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,noatime) tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime) /dev/by-name/UDISK on /overlay type ext4 (rw,relatime) overlayfs:/overlay on / type overlay (rw,noatime,lowerdir=/,upperdir=/overlay/upper,workdir=/overlay/work) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600,ptmxmode=000) debugfs on /sys/kernel/debug type debugfs (rw,noatime) none on /sys/kernel/config type configfs (rw,relatime) adb on /dev/usb-ffs/adb type functionfs (rw,relatime) /dev/mmcblk0p1 on /mnt/SDCARD type vfat (rw,relatime,fmask=0000,dmask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
读写正常:
root@TinaLinux:/# mkdir -p /opt/ root@TinaLinux:/# root@TinaLinux:/# touch /opt/test.txt root@TinaLinux:/# root@TinaLinux:/#
root@TinaLinux:/# ls /overlay/upper/ etc opt root@TinaLinux:/# root@TinaLinux:/# root@TinaLinux:/# ls /overlay/upper/opt/ test.txt
打包命令:
tar cvf /mnt/hgfs/D/tina_d1_open_v2_for_ext4_overlay_20220320A.tar device/config/chips/d1-h/configs/nezha/sys_partition.fex target/allwinner/d1-h-nezha/base-files/etc/config/fstab target/allwinner/d1-h-nezha/defconfig package/utils/e2fsprogs/Makefile
-
回复: 有关编译c内联矢量指令时,unknown register name ‘v1’ in ‘asm’的问题
@zny666
不应该是 riscv64***-gcc 命令吗? -
回复: 增加Package, 生成的so 无法自动添加到 /usr/lib中
试一试这个,用buildroot:
--来自百度网盘超级会员V4的分享
hi,这是我用百度网盘分享的内容~复制这段内容打开「百度网盘」APP即可获取
链接:https://pan.baidu.com/s/1tADvigD1xtOWqieJmcuPkA?pwd=awol
提取码:awol -
回复: D1s 烧录/调试 SPI NOR FLASH 记录
然后我使用 mboot0 & pack 单独编译出 boot0_spinor.fex, 用xboot的xfel工具,发现居然spinor 初始化失败,一脸懵。
-
回复: D1s 烧录/调试 SPI NOR FLASH 记录
再跟进去, 发现居然 flash id 为零, 这就奇怪了, xfel 都可以烧录,boot0居然告诉我没有flash id。
-
回复: D1s 烧录/调试 SPI NOR FLASH 记录
然后我使用了逻辑分析仪, 一发狠, 连goto 死循环代码都用上了,发现在死循环期间,逻辑分析仪上面啥数据都没有。
-
回复: D1s 烧录/调试 SPI NOR FLASH 记录
我想起了 melis,赶紧克隆/编译/烧录 melis到spi nor, 发现一切正常,实在没有办法,只能比较 sys_config.fex,不比不知道,一比吓一跳,竟然是因为sys_config.fex 里面没有添加 spi 节点。。
-
回复: D1s 烧录/调试 SPI NOR FLASH 记录
(中间省略一万字。。。)
现在 boot0 和 uboot 也起来了, 单独烧录 boot0_nor.fex@0x00000 和 boot_package.fex@0x10000,这样按韦老师那个方法可以用buildroot重新构建编译环境问题不大了。
中间碰到一个 xfel 的bug, 不能在非零地址烧录文件,导致浪费了很多时间,后来把整个flash反复读出来几次才发现是没有烧录进去。
-
回复: 【开源开发板】D1s-Nezha开发板全全开源上架(内含购买链接和全部软硬件资料)
@rockenergytech
D1 SDK TINA v1.0 / v2.0 默认就是使用 SPI NAND的。 -
回复: 【开源开发板】D1s-Nezha开发板全全开源上架(内含购买链接和全部软硬件资料)
@rockenergytech
我记得D1s那个板级文件默认是spi nor 配置? -
全志D1s可以申请样片了,本站网友开源原理图与PCB送三片D1s芯片(不能与其他网友作品雷同),还能送三片液晶显示屏
优秀作品列表:
网友 @Excelsior 分享的 D1s 开源原理图与 PCB,待验证
https://bbs.aw-ol.com/topic/489/share/1围观全栈大佬 @lovexulu 的D1s开发板
https://bbs.aw-ol.com/topic/425/share/24液晶随便挑一款吧,资料基本都齐全:
链接1: https://whycan.cn/t_3083.html 3.2 寸 360x640 R61523 I80 8bit/16bit 的IPS 51pin
链接2: https://whycan.cn/t_3347.html 3.0寸 320x480 i80 HX8357 液晶
链接3: https://whycan.cn/t_3307.html 3.97 NT35510 480x800 液晶
链接4: https://whycan.cn/t_3378.html 4.3寸 NT33516 960x540 全新总成
链接5: https://whycan.cn/t_3437.html 4.63寸 854x480 NT35510 TFT 液晶 -
回复: D1s D1 与 D1-H 开源项目合集
SCH & PCB: D1s_开源文件_LCEDA格式.rar
fusion360 格式结构文件:
零部件1.step
零部件3.step切片文件:
D1S02gd.stl
D1S02g.stl转载地址:
围观全栈大佬 @lovexulu 的D1s开发板 (开源在29楼)
https://bbs.aw-ol.com/topic/425/share/29 -
回复: D1s D1 与 D1-H 开源项目合集
板子功能:
1、一路CAN和一路RS485通信
2、TF卡
3、SPI FLASH
4、USB0和USB1
5、音频输入和音频输出
6、RGB565接口TFTLCD显示屏接口
7、DEBUG调试串口-USB转TTL电路版图片
PCB文件: F133_TEST_BOARD.rar
PDF原理图: F133_TEST_BOARD.pdf
-
回复: D1s D1 与 D1-H 开源项目合集
【开源】YuzukiNezha D1s 核心板 Mini-PICE 核心板
https://debugdump.com/topic/922/share/2 -
回复: 请问如何用命令行调整背光亮度?
可能只能用 ioctl 命令控制背光,但是我测试了一下,并没有什么作用,而且屏幕都黑了。
https://blog.csdn.net/weixin_43772810/article/details/111617402
#include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <stdlib.h> #include <unistd.h> #include <fcntl.h> #include <sys/ioctl.h> //disp驱动部分命令(与背光相关,内核目录:/include/video/sunxi_display2.h) #define DISP_LCD_SET_BRIGHTNESS 0x102 #define DISP_LCD_GET_BRIGHTNESS 0x103 #define DISP_LCD_BACKLIGHT_ENABLE 0x104 #define DISP_LCD_BACKLIGHT_DISABLE 0x105 #define BRIGHTNESS_MAX 255 //最大亮度 int main(int argc, char *argv[]) { int fd; unsigned long args[3]={0}; /*打开disp设备文件*/ fd = open("/dev/disp", O_RDWR, 0); if(fd < 0) { printf("open /dev/disp failed.\n"); return -1; } /*打印旧的背光值*/ args[0] = 0; //选择fb0(lcd0) printf("the old lcd%d brightness is %d\n",\ args[0],ioctl(fd,DISP_LCD_GET_BRIGHTNESS,args)); if(argc != 2) { printf("ERROR: the right format: ./app [brightness]\n"); return -1; } int brightness = atoi(argv[1]); if(brightness < 0 || brightness > BRIGHTNESS_MAX) { printf("ERROR: the range is 0 to %d\n",BRIGHTNESS_MAX); return -1; } /*参数数组填参*/ args[0] = 0; args[1] = brightness; //背光值(本人配置里最高为255) args[2] = 0; //暂时用不到的参数 ioctl(fd,DISP_LCD_SET_BRIGHTNESS,args); printf("the new lcd%d brightness is %d\n",\ args[0],ioctl(fd,DISP_LCD_GET_BRIGHTNESS,args)); close(fd); return 0; }
-
回复: 是不是驱动开启旋转之后,就没有/dev/fb0了?
感觉没有/dev/fb0,需要在应用刷屏的地方调用驱动的FBIOPAN_DISPLAY接口,同步旋转后的buffer才会显示到LCD上。
-
回复: D1哪吒板开发入门,开箱即食,有带SDK的虚拟机下载
D1 / D1s TINA v2.0 百度云盘下载:
链接: https://pan.baidu.com/s/1rTyKuWIwMUlBY4xLJofWEg?pwd=awol
提取码:awol①解压: cat tina_d1_open_v2.tar.bz2.a* | tar -xjv ②从本地repo仓库同步SDK repo sync -l ③ source build/envsetup.sh ④ lunch ⑤ make ⑥ pack
建议先安装一下软件包避免编译或打包出错:
sudo apt-get install build-essential subversion git-core repo 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 \ libncurses-dev zlib1g-dev gawk openssl libssl-dev linux-tools-common gperf -y
-
回复: T113 emmc启动,挂载rootfs失败
@xucw15990192241 在 T113 emmc启动,挂载rootfs失败 中说:
[ 2.249963] sun8iw20-pinctrl 2000000.pinctrl: pin PC2 already requested by 4025000.spi; cannot claim for 4022000.sdmmc
[ 2.261942] sun8iw20-pinctrl 2000000.pinctrl: pin-66 (4022000.sdmmc) status -22
[ 2.270096] sun8iw20-pinctrl 2000000.pinctrl: could not request pin 66 (PC2) from group PC2 on device 2000000.pinctrl
[ 2.282043] sunxi-mmc 4022000.sdmmc: Error applying setting, reverse things back
[ 2.290332] sunxi-mmc: probe of 4022000.sdmmc failed with error -22需要先解决这个问题.
-
回复: 使用D1-H驱动树莓派DSI屏幕
这里有逻辑分析仪抓到的数据: https://bbs.aw-ol.com/topic/263/share/15
这里有i2c数据生成软件: https://bbs.aw-ol.com/topic/263/share/35