@haaland T507不支持真实的4K显示,硬件受限最大支持2k的buffer。所以超过2k的图片就无法显示
Negro 发布的帖子
-
回复: 请问D1-H怎样只更新uboot呢?
@daizebin 应该是uboot的代码被打包在boot_package.fex里面了,所以直接dd boot_package.fex就可以了。偏移地址计算方法其实时没错的,是我看错了boot_package.fex数据的起始地址。正确的应该是这个:
0x01004000 等于10进制的16793600, 16793600 / 1024 = 16400kbyte
-
回复: 请问D1-H怎样只更新uboot呢?
哎呀呀,终于成功啦。原来是我之前地址看错了,导致偏移地址也算错了。
直接dd boot_package.fex 到对应地址就可以了。我执行的命令是
dd if=boot_package.fex of=/dev/mmcblk0 bs=1k seek=16400 -
回复: 请问D1-H怎样只更新uboot呢?
@whycan 请问下晕哥你是从哪里找得到偏移地址的?
我是这样找的
1、在正常运行的板子上dd出30M的数据出来root:/# dd if=/dev/mmcblk0 of=test.img bs=1M count=30 30+0 records in 30+0 records out
2、用vim打开这个test.img,然后用16进制的方式查看数据(vim中执行:%!xxd)
3、在vim中搜索关键字uboot,看到uboot的数据是从地址0x01010c00开始的
换算一下:0x01010c00 就是十进制的16845824 ,单位是byte;
16845824 / 1024 = 16451 kbyte;这个就是我算出来的偏移地址。
4、然后重新编译uboot,得到u-boot.fex文件。同样用vim查看uboot.fex文件,和test.img中找到的uboot数据基本一致,可以判定是u-boot.fex保存在在第三步找到的地址。
5、将u-boot.fex文件复制到板子,执行root:/# dd if=u-boot.fex of=/dev/mmcblk0 bs=1k seek=16451 896+0 records in 896+0 records out
可是这样操作,uboot还是没有改变,蓝瘦。
同样的方法,也尝试过将boot_package.fex 写到找到的地址上,还是没有修改到。因为在test.img的数据中,找不到.bin文件的位置,所以想知道你是怎么找到这个地址的?感觉是我找的文件是不对的。
-
回复: 请问D1-H怎样只更新uboot呢?
@whycan 我试了下,还是不行。甚至直接dd /dev/zero进去这个偏移地址,都还可以正常重启
你的这个偏移地址是在哪里找的呢?会不会是我们芯片不一样会有差异?我试了刷机工具,是可以刷boot0和boot1,可惜拿不到源码来看 -
回复: 请问D1-H怎样只更新uboot呢?
在 /sys/block/mmcblk0bootx里面,echo 0到force_ro里,就可以dd写进去了,不过好像我烧录bin文件到mmcblk0boot0和mmcblk0boot1都不管用,看来我猜错了
有大神知道mmcblk0boot0 mmcblk0boot1 是用来做什么的吗? -
回复: 请问D1-H怎样只更新uboot呢?
@whycan 请教下晕哥,我用的是V853的buildroot。想要单独升级uboot,就将编译出来的u-boot-sun8iw21p1.bin用dd命令烧录到对应的分区。但是这个地址我应该怎么才能找到呢?不想用线刷,想着将bin文件放到板子上,然后在板子上执行dd命令去升级。
板子上fdisk -l是这样的输出,看不到uboot的具体位置:
root:/server# fdisk -l Found valid GPT with protective MBR; using GPT Disk /dev/mmcblk0: 30539776 sectors, 2624M Logical sector size: 512 Disk identifier (GUID): ab6f3888-569a-4926-9668-80941dcb40bc Partition table holds up to 6 entries First usable sector is 49152, last usable sector is 30539742 Number Start (sector) End (sector) Size Name 1 49152 61639 6244K boot-resource 2 61640 62647 504K env 3 62648 87847 12.3M boot 4 87848 88359 256K dtb 5 88360 1112359 500M rootfs 6 1112360 30539742 14.0G UDISK Disk /dev/mmcblk0boot1: 4 MB, 4194304 bytes, 8192 sectors 128 cylinders, 4 heads, 16 sectors/track Units: sectors of 1 * 512 = 512 bytes Disk /dev/mmcblk0boot1 doesn't contain a valid partition table Disk /dev/mmcblk0boot0: 4 MB, 4194304 bytes, 8192 sectors 128 cylinders, 4 heads, 16 sectors/track Units: sectors of 1 * 512 = 512 bytes Disk /dev/mmcblk0boot0 doesn't contain a valid partition table
看到有 /dev/mmcblk0boot0 和 /dev/mmcblk0boot1,想直接dd进去试试看,结果是没权限(已经是root用户)
root:/server# dd if=u-boot-sun8iw21p1.bin of=/dev/mmcblk0boot1 dd: error writing '/dev/mmcblk0boot1': Operation not permitted 1+0 records in 0+0 records out root:/server# dd if=u-boot-sun8iw21p1.bin of=/dev/mmcblk0boot0 dd: error writing '/dev/mmcblk0boot0': Operation not permitted 1+0 records in 0+0 records out root:/# ls -l /dev/mmcblk0* brw-rw---- 1 root disk 179, 0 Jan 1 1970 mmcblk0 brw-rw---- 1 root disk 179, 8 Jan 1 1970 mmcblk0boot0 brw-rw---- 1 root disk 179, 16 Oct 17 10:24 mmcblk0boot1 brw-rw---- 1 root disk 179, 1 Jan 1 1970 mmcblk0p1 brw-rw---- 1 root disk 179, 2 Jan 1 1970 mmcblk0p2 brw-rw---- 1 root disk 179, 3 Jan 1 1970 mmcblk0p3 brw-rw---- 1 root disk 179, 4 Jan 1 1970 mmcblk0p4 brw-rw---- 1 root disk 179, 5 Jan 1 1970 mmcblk0p5 brw-rw---- 1 root disk 179, 6 Jan 1 1970 mmcblk0p6 brw-rw---- 1 root disk 179, 24 Jan 1 1970 mmcblk0rpmb
-
回复: V853 openwrt系统,make menuconfig打开Allwinner > Visiol>LibAWIspApi 报错
我也遇到类似的问题,请问有解决吗?官方有没有办出来帮忙解惑一下呢?
-
回复: F133可以做成按键长按开机关机吗?
@godzhou0909 在 F133可以做成按键长按开机关机吗? 中说:
现在是上电开机,是否可以改成用按键长按开机关机呢?
顶一下,我也想知道,用的是V853+AXP2101,怎么实现上电不自启动,需要长按或短按power按键之类的开机。
-
V853怎么配置单目摄像头?
V853做的板子,buildroot系统,要适配一个gc2503 4land的单目摄像头,,看了文档都是双目的,弄了好久没有弄出图像来,不知道怎么搞了,求指导。以下是做过的操作:
1、DTS的vind节点如下:vind0:vind@0 { vind0_clk = <200000000>; status = "okay"; csi2:csi@2 { pinctrl-names = "default","sleep"; pinctrl-0 = <&ncsi_pins_a>; pinctrl-1 = <&ncsi_pins_b>; status = "disabled"; }; /*offline mode*/ tdm0:tdm@0 { work_mode = <1>; }; isp00:isp@0 { work_mode = <1>; }; scaler00:scaler@0 { work_mode = <1>; }; scaler10:scaler@4 { work_mode = <1>; }; scaler20:scaler@8 { work_mode = <1>; }; scaler30:scaler@12 { work_mode = <1>; }; actuator0:actuator@0 { device_type = "actuator0"; actuator0_name = "ad5820_act"; actuator0_slave = <0x18>; actuator0_af_pwdn = <>; actuator0_afvdd = "afvcc-csi"; actuator0_afvdd_vol = <2800000>; status = "disabled"; }; flash0:flash@0 { device_type = "flash0"; flash0_type = <2>; flash0_en = <>; flash0_mode = <>; flash0_flvdd = ""; flash0_flvdd_vol = <>; status = "disabled"; }; sensor0:sensor@0 { device_type = "sensor0"; sensor0_mname = "gc2053_mipi"; sensor0_twi_cci_id = <1>; sensor0_twi_addr = <0x6e>; sensor0_mclk_id = <0>; sensor0_pos = "rear"; sensor0_isp_used = <1>; sensor0_fmt = <1>; sensor0_stby_mode = <0>; sensor0_vflip = <0>; sensor0_hflip = <0>; sensor0_iovdd-supply = <®_bldo1>; sensor0_iovdd_vol = <1800000>; sensor0_avdd-supply = <®_bldo2>; sensor0_avdd_vol = <2800000>; sensor0_dvdd-supply = <®_dldo2>; sensor0_dvdd_vol = <1200000>; sensor0_power_en = <>; sensor0_reset = <&pio PA 18 1 0 1 0>; sensor0_pwdn = <&pio PA 19 1 0 1 0>; sensor0_sm_hs = <>; sensor0_sm_vs = <>; flash_handle = <&flash0>; act_handle = <&actuator0>; status = "okay"; } /* sensor1:sensor@1 { * device_type = "sensor1"; * sensor1_mname = "gc2053_mipi_2"; * sensor1_twi_cci_id = <0>; * sensor1_twi_addr = <0x7f>; * sensor1_mclk_id = <1>; * sensor1_pos = "front"; * sensor1_isp_used = <1>; * sensor1_fmt = <1>; * sensor1_stby_mode = <0>; * sensor1_vflip = <0>; * sensor1_hflip = <0>; * sensor1_iovdd-supply = <®_aldo2>; * sensor1_iovdd_vol = <1800000>; * sensor1_avdd-supply = <®_bldo2>; * sensor1_avdd_vol = <2800000>; * sensor1_dvdd-supply = <®_dldo2>; * sensor1_dvdd_vol = <1200000>; * sensor1_power_en = <>; * sensor1_reset = <&pio PA 20 1 0 1 0>; * sensor1_pwdn = <&pio PA 21 1 0 1 0>; * sensor1_sm_hs = <>; * sensor1_sm_vs = <>; * flash_handle = <>; * act_handle = <>; * status = "okay"; * }; */ vinc00:vinc@0 { vinc0_csi_sel = <0>; vinc0_mipi_sel = <0>; vinc0_isp_sel = <0>; vinc0_isp_tx_ch = <0>; vinc0_tdm_rx_sel = <0>; vinc0_rear_sensor_sel = <0>; vinc0_front_sensor_sel = <0>; vinc0_sensor_list = <0>; work_mode = <0x1>; status = "okay"; }; /* vinc01:vinc@1 { vinc1_csi_sel = <1>; vinc1_mipi_sel = <1>; vinc1_isp_sel = <1>; vinc1_isp_tx_ch = <0>; vinc1_tdm_rx_sel = <1>; vinc1_rear_sensor_sel = <1>; vinc1_front_sensor_sel = <1>; vinc1_sensor_list = <0>; status = "disabled"; }; vinc02:vinc@2 { vinc2_csi_sel = <2>; vinc2_mipi_sel = <0xff>; vinc2_isp_sel = <2>; vinc2_isp_tx_ch = <2>; vinc2_tdm_rx_sel = <2>; vinc2_rear_sensor_sel = <0>; vinc2_front_sensor_sel = <0>; vinc2_sensor_list = <0>; status = "disabled"; }; vinc03:vinc@3 { vinc3_csi_sel = <0>; vinc3_mipi_sel = <0xff>; vinc3_isp_sel = <0>; vinc3_isp_tx_ch = <0>; vinc3_tdm_rx_sel = <0>; vinc3_rear_sensor_sel = <1>; vinc3_front_sensor_sel = <1>; vinc3_sensor_list = <0>; status = "disabled"; }; vinc10:vinc@4 { vinc4_csi_sel = <0>; vinc4_mipi_sel = <0>; vinc4_isp_sel = <0>; vinc4_isp_tx_ch = <0>; vinc4_tdm_rx_sel = <0>; vinc4_rear_sensor_sel = <0>; vinc4_front_sensor_sel = <0>; vinc4_sensor_list = <0>; work_mode = <0x1>; status = "okay"; }; vinc11:vinc@5 { vinc5_csi_sel = <1>; vinc5_mipi_sel = <1>; vinc5_isp_sel = <1>; vinc5_isp_tx_ch = <0>; vinc5_tdm_rx_sel = <1>; vinc5_rear_sensor_sel = <1>; vinc5_front_sensor_sel = <1>; vinc5_sensor_list = <0>; status = "disabled"; }; vinc12:vinc@6 { vinc6_csi_sel = <2>; vinc6_mipi_sel = <0xff>; vinc6_isp_sel = <0>; vinc6_isp_tx_ch = <0>; vinc6_tdm_rx_sel = <0>; vinc6_rear_sensor_sel = <0>; vinc6_front_sensor_sel = <0>; vinc6_sensor_list = <0>; status = "disabled"; }; vinc13:vinc@7 { vinc7_csi_sel = <2>; vinc7_mipi_sel = <0xff>; vinc7_isp_sel = <0>; vinc7_isp_tx_ch = <0>; vinc7_tdm_rx_sel = <0>; vinc7_rear_sensor_sel = <0>; vinc7_front_sensor_sel = <0>; vinc7_sensor_list = <0>; status = "disabled"; }; vinc20:vinc@8 { vinc8_csi_sel = <0>; vinc8_mipi_sel = <0>; vinc8_isp_sel = <0>; vinc8_isp_tx_ch = <0>; vinc8_tdm_rx_sel = <0>; vinc8_rear_sensor_sel = <0>; vinc8_front_sensor_sel = <0>; vinc8_sensor_list = <0>; work_mode = <1>; status = "okay"; }; vinc21:vinc@9 { vinc9_csi_sel = <2>; vinc9_mipi_sel = <0xff>; vinc9_isp_sel = <0>; vinc9_isp_tx_ch = <0>; vinc9_tdm_rx_sel = <0>; vinc9_rear_sensor_sel = <0>; vinc9_front_sensor_sel = <0>; vinc9_sensor_list = <0>; status = "disabled"; }; vinc22:vinc@10 { vinc10_csi_sel = <2>; vinc10_mipi_sel = <0xff>; vinc10_isp_sel = <0>; vinc10_isp_tx_ch = <0>; vinc10_tdm_rx_sel = <0>; vinc10_rear_sensor_sel = <0>; vinc10_front_sensor_sel = <0>; vinc10_sensor_list = <0>; status = "disabled"; }; vinc23:vinc@11 { vinc11_csi_sel = <2>; vinc11_mipi_sel = <0xff>; vinc11_isp_sel = <0>; vinc11_isp_tx_ch = <0>; vinc11_tdm_rx_sel = <0>; vinc11_rear_sensor_sel = <0>; vinc11_front_sensor_sel = <0>; vinc11_sensor_list = <0>; status = "disabled"; }; vinc30:vinc@12 { vinc12_csi_sel = <0>; vinc12_mipi_sel = <0x0>; vinc12_isp_sel = <0>; vinc12_isp_tx_ch = <0>; vinc12_tdm_rx_sel = <0>; vinc12_rear_sensor_sel = <0>; vinc12_front_sensor_sel = <0>; vinc12_sensor_list = <0>; work_mode = <0x1>; status = "okay"; }; vinc31:vinc@13 { vinc13_csi_sel = <2>; vinc13_mipi_sel = <0xff>; vinc13_isp_sel = <0>; vinc13_isp_tx_ch = <0>; vinc13_tdm_rx_sel = <0>; vinc13_rear_sensor_sel = <0>; vinc13_front_sensor_sel = <0>; vinc13_sensor_list = <0>; status = "disabled"; }; vinc32:vinc@14 { vinc14_csi_sel = <2>; vinc14_mipi_sel = <0xff>; vinc14_isp_sel = <0>; vinc14_isp_tx_ch = <0>; vinc14_tdm_rx_sel = <0>; vinc14_rear_sensor_sel = <0>; vinc14_front_sensor_sel = <0>; vinc14_sensor_list = <0>; status = "disabled"; }; vinc33:vinc@15 { vinc15_csi_sel = <2>; vinc15_mipi_sel = <0xff>; vinc15_isp_sel = <0>; vinc15_isp_tx_ch = <0>; vinc15_tdm_rx_sel = <0>; vinc15_rear_sensor_sel = <0>; vinc15_front_sensor_sel = <0>; vinc15_sensor_list = <0>; status = "disabled"; };*/ };
2、将模块放到板上insmod。可以出来/dev/video0节点
Octops:/server/camera# ls csi_test_mplane v4l2_demo videobuf2-v4l2.ko da380.ko videobuf2-core.ko vin_io.ko gc2053_mipi.ko videobuf2-dma-contig.ko vin_v4l2.ko ism.sh videobuf2-memops.ko Octops:/server/camera# Octops:/server/camera# cat ism.sh insmod videobuf2-core.ko insmod videobuf2-memops.ko insmod videobuf2-dma-contig.ko insmod videobuf2-v4l2.ko insmod vin_io.ko insmod gc2053_mipi.ko insmod vin_v4l2.ko Octops:/server/camera# ./ism.sh [ 90.451429] [VIN_WARN]sensor_helper_probe: cannot get sensor0_cameravdd supply, setting it to NULL! Octops:/server/camera# Octops:/server/camera# ls -l /dev/video0 crw-rw---- 1 root video 81, 0 Jan 1 01:51 /dev/video0 Octops:/server/camera#
3、执行csi_test_mplane如下:
Octops:/server/camera# ./csi_test_mplane open /dev/video0 fd = 3 resolution got from sensor = 640*480 num_planes = 3 VIDIOC_STREAMON ok file length = 307200 76800 76800 file start = 0xb6eee000 0xb6edb000 0xb6ec8000 Got signal 11, exiting ... [ 36.265546] [VIN_ERR]scaler0 channel ID nember is lost!!! Octops:/server/camera# Octops:/server/camera# Octops:/server/camera# ./csi_test_mplane 0 0 1920 1080 /server 1 20000 60 0 open /dev/video0 fd = 3 resolution got from sensor = 1920*1080 num_planes = 3 VIDIOC_STREAMON ok Octops:/server/camera# Octops:/server/camera# ./csi_test_mplane 0 please select the video device: 0-video0 1-video1 ...... 0 please select the camera: 0-dev0 1-dev1 ...... 0 please input the resolution: width height...... 1920 1080 please input the frame saving path...... /server please input the test mode: 0~3...... 1 please input the test_cnt: >=1...... 20 open /dev/video0 fd = 3 resolution got from sensor = 1920*1080 num_planes = 3 VIDIOC_STREAMON ok [ 107.543269] [VIN_ERR]scaler0 channel ID nember is lost!!! VIDIOC_STREAMOFF ok mode 1 test done at the 0 time!! time cost 1.221462(s)
4、i2cdetect测试,发现器件地址对不上
Octops:/server/camera# i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- UU -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- --
问题:
1、想确认下,4land的摄像头,需要专门指定4land吗?怎么指定?
2、出现了video设备是可以说明硬件通了,只需要做软件的调试吗?
3、为什么器件地址会变为原来的一半?
4、有什么办法可以实时预览摄像头吗? -
V853编译buildroot+QT固件,发现QT程序被自动修改/优化了?求助
大家有没有遇到这个情况?求助一下。
Tina的SDK,在tina-v853/out/v853/vision/buildroot/buildroot/target/opt/目录里面添加了一个QT执行文件,大小是2.8M。然后去编译buildroot,不论是./build.sh 编译,还是在buildroot文件目录下直接make,都会发现这个QT执行文件好像被优化了,大小变成2.4M了。但是基本功能没有变化,可以执行起来,就是一些细节上的功能有缺陷。不知道为什么会这样?求助。 -
回复: V853 buildroot系统,SPI通信超时
@chengwei_peng
export后查看引脚属性,依旧是spi3功能没变,我再检查一下是不是我的测波形的方法不对,感谢指导。谢谢 -
回复: V853 buildroot系统,SPI通信超时
@chengwei_peng
感谢回复。
现在这个测试程序是显示可正常发数据了,但是我用示波器量SPI的时钟,发现一直都是低电压,没有方波,MISO,MOSI,CS0三根线都是一只低电平,我甚至是可以echo 235~238 > /sys/class/gpio/export
导出GPIO并控制IO口输出高低电频。这样是正常的吗?虽然设备节/dev/spidev3.0
点出来了,但是总感觉好像这几个IO口没有正确配置成SPI接口。
我用的是buildroot系统。 -
回复: V853 buildroot系统,SPI通信超时
将spi_dbi_enable = <1> 注释掉就可以了
照着前边的spi节点写的dts,不知道这个是做什么用的。 -
回复: V853 buildroot系统,SPI通信超时
想知道DTS里面的这个参数是什么含义呢?
spi_dbi_enable = <1>;我是把这个注释掉之后,就正常了。
-
V853 buildroot系统,SPI通信超时
spi从设备是20MHz的频率,CS是低电平有效。dts配置如下:
&spi3 { clock-frequency = <100000000>; pinctrl-0 = <&spi3_pins_a &spi3_pins_b>; pinctrl-1 = <&spi3_pins_c>; pinctrl-names = "default", "sleep"; spi_slave_mode = <0>; spi_dbi_enable = <1>; spi_cs_bitmap = <1>; spi3_cs_number = <1>; status = "okay"; spidev@0 { device_type = "spidev"; compatible = "rohm,dh2228fv"; spi-max-frequency = <100000000>; reg = <0x0>; spi-cs-high; spi-rx-bus-width = <0x8>; spi-tx-bus-width = <0x8>; status = "okay"; }; }; ... spi3_pins_a: spi3@0 { allwinner,pins = "PH11", "PH12", "PH13"; allwinner,pname = "spi3_sclk", "spi3_mosi","spi3_miso"; allwinner,function = "spi3"; allwinner,muxsel = <6>; allwinner,drive = <1>; allwinner,pull = <0>; }; spi3_pins_b: spi3@1 { allwinner,pins = "PH14"; allwinner,pname = "spi3_cs0"; allwinner,function = "spi3"; allwinner,muxsel = <6>; allwinner,drive = <1>; allwinner,pull = <1>; // only CS should be pulled up }; spi3_pins_c: spi3@2 { allwinner,pins = "PH11", "PH12", "PH13", "PH14"; allwinner,function = "io_disabled"; allwinner,muxsel = <0xf>; allwinner,drive = <1>; allwinner,pull = <0>; };
测试程序是这样的:
#include <stdint.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <getopt.h> #include <fcntl.h> #include <sys/ioctl.h> #include <linux/types.h> #include <linux/spi/spidev.h> static uint8_t mode = 0; /* SPI通信使用全双工,设置CPOL=0,CPHA=0。 */ static uint8_t bits = 8; /* 8bits读写,MSB first。*/ static uint32_t speed = 20 * 1000 * 1000;/* 设置20M传输速度 */ static uint16_t delay = 0; static int g_SPI_Fd = 0; unsigned char r_buf[256]; unsigned char w_buf[256]; int SPI_Write(uint8_t *TxBuf, int len) { int ret; int fd = g_SPI_Fd; ret = write(fd, TxBuf, len); if (ret < 0) printf("SPI Write error\n"); else { int i; printf("\nSPI Write [Len:%d]: ", len); for (i = 0; i < len; i++) { if (i % 8 == 0) printf("\n\t"); printf("0x%02X ", TxBuf[i]); } printf("\n"); } return ret; } static int SPI_Open(const char* device) { int fd; int ret = 0; if (g_SPI_Fd != 0) /* 设备已打开 */ return 0xF1; fd = open(device, O_RDWR); if (fd < 0) printf("can't open device"); else printf("SPI - Open Succeed. Start Init SPI...\n"); g_SPI_Fd = fd; /* * spi mode */ ret = ioctl(fd, SPI_IOC_WR_MODE, &mode); if (ret == -1) printf("can't set spi mode"); ret = ioctl(fd, SPI_IOC_RD_MODE, &mode); if (ret == -1) printf("can't get spi mode"); /* * bits per word */ ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits); if (ret == -1) printf("can't set bits per word"); ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits); if (ret == -1) printf("can't get bits per word"); /* * max speed hz */ ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed); if (ret == -1) printf("can't set max speed hz"); ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed); if (ret == -1) printf("can't get max speed hz"); printf("spi mode: %d\n", mode); printf("bits per word: %d\n", bits); printf("max speed: %d KHz (%d MHz)\n", speed / 1000, speed / 1000 / 1000); return ret; } int SPI_Close(void) { int fd = g_SPI_Fd; if (fd == 0) /* SPI是否已经打开*/ return 0; close(fd); g_SPI_Fd = 0; return 0; } int main(int argc, char* argv[]) { char *str="hello"; int len = 5; SPI_Open("/dev/spidev3.0"); SPI_Write(str, len); SPI_Close(); return 0; }
交叉编译后放到板子上运行,会出现这样的超时报错,想问问看各位有没有什么思路解决,十分感谢。
root:/root# ./spi SPI - Open Succeed. Start Init S[ 586.085918] spi_set_clk()459 - set spi clock 100000000, mclk 20000000 PI... [ 586.095997] spi_set_clk()459 - set spi clock 100000000, mclk 100000000 [ 586.104382] spi_set_clk()459 - set spi clock 20000000, mclk 100000000 spi mode: 0[ 586.111792] sunxi_spi_transfer_one()1433 - [spi3] begin transfer, txbuf df6ab000, rxbuf (null), len 5 bits per word: 8 max speed: 2[ 586.123289] spi_set_clk()459 - set spi clock 20000000, mclk 20000000 0000 KHz (20 MHz) [ 586.133363] sunxi_spi_mode_check()1166 - [spi3] Single mode Half duplex tx [ 586.142730] spi_config_dbi()376 - DBI mode configurate : 40 [ 586.148979] sunxi_spi_xfer()1376 - [spi3] tx -> by ahb [ 586.155060] sunxi_spi_cpu_writel()1250 - t->len = 5 [ 586.160602] 000: 68 65 6c 6c 6f [ 596.275684] sunxi_spi_cpu_writel()1276 - [spi3] cpu transfer data time out! [ 596.283516] sunxi_spi_transfer_one()1462 - [spi3] dump reg: [ 596.289762] 0x04028000: 00010001 00000098 00002104 00000000 [ 596.296582] 0x04028010: 00000000 00000012 00200020 000f0000 [ 596.303189] 0x04028020: 00000000 00000002 00002000 00000000 [ 596.309535] 0x04028030: 00000005 00000005 00000005 00000000 [ 601.351828] sunxi_spi_transfer_one()1471 - [spi3] xfer timeout [ 601.358391] spidev spi3.0: SPI transfer failed: -1 [ 601.364475] spi_master spi3: failed to transfer one message from queue SPI Write error
启动时的spi log
[ 0.650370] sunxi_spi_probe()2251 - [spi3] SPI DBI INTERFACE [ 0.656168] sunxi_spi_probe()2260 - [spi3] SPI MASTER MODE [ 0.661799] sunxi_spi_resource_get()1909 - Failed to get sample mode [ 0.668268] sunxi_spi_resource_get()1914 - Failed to get sample delay [ 0.674824] sunxi_spi_resource_get()1918 - sample_mode:aaaaffff sample_delay:aaaaffff [ 0.682785] spi3 supply spi not found, using dummy regulator [ 0.688624] sunxi_spi_request_gpio()1884 - [spi3] Pinctrl init spi3 [ 0.695128] sunxi_spi_clk_init()1955 - [spi3] mclk 100000000 [ 0.701466] spi_master spi3: spi-tx-bus-width 8 not supported [ 0.707476] spi_master spi3: spi-rx-bus-width 8 not supported [ 0.713865] sunxi_spi_probe()2340 - [spi3]: driver probe succeed, base e0834000, irq 295
-
回复: V853的QT被random进程阻塞了
@sunchipv 在 V853的QT被random进程阻塞了 中说:
haveged -w 1024 -v 1
可以了,谢谢。我将这个命令写到 profile 里面,开机后熵池可以到2000+,可以很快的启动我的QT了。
我也找到了rgnd工具,可以执行rngd -r /dev/urandom -o /dev/random,熵值可以到4000+
-
回复: Tina文件系统添加了一些文件后,rootfs编译不过
实在找不到办法,我就直接把openwrt/include/package-ipkg.mk文件中的判断给删掉了,然后也编译出了固件,系统可以正常使用。就是QT现在启动的时候会被ramdon进程阻塞,开机自动启动QT的话,要等好久。
-
V853的QT被random进程阻塞了
v853编译出来的Openwrt固件,开机自动运行QT,但是要等好久页面才有显示。看到log,应该是被random给阻塞住了。这里也看到有同样的问题:https://bbs.aw-ol.com/topic/449/发现qt应用程序居然要等随机数就绪才能跑
我在menuconfig里面设置了haveged了,但是还是一样的现象。这个有什么办法可以解决吗?我想开机后我的QT可以快速运行起来。
这个是文件系统中队haveged的配置
-
回复: Tina文件系统添加了一些文件后,rootfs编译不过
@yuzukitsuru
我通过以下办法将找到相关的库了
1、通过apt-cache search命令查找到libc.so.6的共享库,然后安装。还有libstdc++.so.6的库也可以这样装,最终安装好的库会在电脑的/usr/arm-linux-gnueabi/lib/下,然后复制到/tina-v853/openwrt/target/v853/v853-vision/busybox-init-base-files/lib里面。gray@PC:~/sdk/tina-v853$ apt-cache search libc | grep armel libc6-armel-armhf-cross - Dummy package to get libc6:armel installed libc6-armel-cross - GNU C Library: Shared libraries (for cross-compiling) libc6-armhf-armel-cross - Dummy package to get libc6:armhf installed libc6-dbg-armel-cross - GNU C Library: detached debugging symbols (for cross-compiling) libc6-dev-armel-armhf-cross - Dummy package to get libc6-dev:armel installed libc6-dev-armel-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling) libc6-dev-armhf-armel-cross - Dummy package to get libc6-dev:armhf installed linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling) gray@PC:~/sdk/tina-v853$ sudo apt-get install -y libc6-armel-cross
2、还缺少QT的库,我之前也交叉编译好了QT库的,所以直接将QT相关的库复制到/tina-v853/openwrt/target/v853/v853-vision/busybox-init-base-files/lib里面。
3、接着./build.sh编译固件。然后就发现个比较蛋疼的问题。我添加的libstdc++.so.6和原有的冲突了。如果在busybox-init-base-files/lib里面去掉这个库,编译又报错说少了这个库。
。。。。。。 Configuring wpa-cli. Configuring liblua5.1.5. Configuring wifimanager-demo. Configuring blkid. Configuring alsa-utils. Configuring lv_g2d_test. Configuring wireless-regdb. Configuring kmod-cfg80211. Collected errors: * check_data_file_clashes: Package busybox-init-base-files wants to install file /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/root-v853-vision/lib/libstdc++.so.6 But that file is already provided by package * libstdcpp6 * opkg_install_cmd: Cannot install package busybox-init-base-files. package/Makefile:66: recipe for target 'package/install' failed make[2]: *** [package/install] Error 255 make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' package/Makefile:111: recipe for target '/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_install' failed make[1]: *** [/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_install] Error 2 make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' /home/gray/sdk/tina-v853/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed make: *** [world] Error 2 make: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' INFO: build_openwrt_rootfs failed
4、所以有什么办法可以搞定这个libstdc++.so.6库的冲突问题呢?
5、还有个疑问点:我试了直接将编译好的QT库放到板子上,是可以正常使用QT的。证明我不用额外添加依赖库编译出来的固件环境是可以支持QT的。为什么将QT程序放到sdk里面编译固件,反而要添加额外的依赖库呢? -
回复: Tina文件系统添加了一些文件后,rootfs编译不过
gray@PC:~/sdk/tina-v853/openwrt/openwrt$ git diff diff --git a/include/toplevel.mk b/include/toplevel.mk index defd5cb..12023b6 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -233,7 +233,7 @@ ifeq ($(SDK),1) else %:: - @+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq + @+$(PREP_MK) $(NO_TRACE_MAKE) -r -s V=sc prereq @( \ cp .config tmp/.config; \ ./scripts/config/conf $(KCONF_FLAGS) --defconfig=tmp/.config -w tmp/.config Config.in > /dev/null 2>&1; \
我在toplevel.mk里面加了V=sc,是可以看到说少了这些库,我应该怎么弄到文件系统里面呢?
-
回复: Tina文件系统添加了一些文件后,rootfs编译不过
@negro 在 Tina文件系统添加了一些文件后,rootfs编译不过 中说:
参考在线文档的说明,在openwrt/target/v853/v853-vision/busybox-init-base-files里面,我创建了一个opt目录,然后在这个opt里面放了QT库,tslib库和一个QT执行文件。然后执行./build.sh就报错了。编译的输出如下:
gray@PC:~/sdk/tina-v853$ ./build.sh ========ACTION List: build_linuxdev;======== options : INFO: ---------------------------------------- INFO: build linuxdev ... INFO: chip: sun8iw21p1 INFO: platform: linux INFO: kernel: linux-4.9 INFO: board: vision INFO: output: /home/gray/sdk/tina-v853/out/v853/vision/openwrt INFO: ---------------------------------------- INFO: don't build dtbo ... INFO: build arisc INFO: build_bootloader: brandy_path= /home/gray/sdk/tina-v853/brandy/brandy-2.0 INFO: skip build brandy. INFO: build kernel ... INFO: Prepare toolchain ... Building kernel /home/gray/sdk/tina-v853/kernel/linux-4.9/output/lib/modules/4.9.191 CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/timeconst.h CHK include/generated/bounds.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h DTC arch/arm/boot/dts/board.dtb Kernel: arch/arm/boot/Image is ready Building modules, stage 2. MODPOST 24 modules Kernel: arch/arm/boot/zImage is ready Kernel: arch/arm/boot/uImage is ready 'arch/arm/boot/Image' -> 'output/bImage' 'arch/arm/boot/uImage' -> 'output/uImage' 'arch/arm/boot/zImage' -> 'output/zImage' Copy rootfs.cpio.gz for arm Building modules [GPU]: No GPU type is configured in /home/gray/sdk/tina-v853/kernel/linux-4.9/.config. INFO: build dts ... INFO: Prepare toolchain ... removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp' removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp' '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.d.dtc.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp' '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.dts.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp' INFO: build rootfs ... ==mkcmd.sh: build_openwrt_rootfs == make: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' CreateSoftLink /home/gray/sdk/tina-v853/openwrt/openwrt/tmp link to /home/gray/sdk/tina-v853/out/v853/vision/openwrt/tmp CreateSoftLink /home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir link to /home/gray/sdk/tina-v853/out/v853/vision/openwrt/staging_dir make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' Check Vendor Package... CreateSoftLink /home/gray/sdk/tina-v853/openwrt/openwrt/package/subpackage link to /home/gray/sdk/tina-v853/openwrt/package end WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-omx/Makefile' has a dependency on 'libgst1gl', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-good', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland-protocols', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'opencv', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1badvideo', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1gl', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-base/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-sunxi-rf-wlan', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'weston', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'wayland', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'qt5-multimediawidgets', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a build dependency on 'libstdcpp', which does not exist copy from /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig target/linux/generic/image/Config.in:12:warning: choice default symbol 'uImage' is not contained in the choice target/linux/generic/image/Config.in:47:warning: choice default symbol 'uImage' is not contained in the choice target/linux/generic/image/Config.in:72:warning: choice default symbol 'CONFIG_BOOT_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice target/linux/generic/image/Config.in:89:warning: choice default symbol 'CONFIG_ROOTFS_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice # # No change to .config # copy to /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' Makefile:29: "NOTE: Will skip kernel build." The command image-prereq(include/kernel-build.mk) execute. time: target/linux/prereq#0.10#0.08#0.18 make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/target/v853' 。。。。。。 mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/usr/bin mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/sys mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/www mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/root ln -sf /proc/mounts /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/mtab rm -f /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var ln -sf /tmp /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp/lock mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc chmod 1777 /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp for conffile in /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/config/*; do if [ -f "$conffile" ]; then grep "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles || echo "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" >> /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles; fi done find /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf Package busybox-init-base-files is missing dependencies for the following libraries: libc.so.6 libm.so.6 libpthread.so.0 libstdc++.so.6 libz.so Makefile:228: recipe for target '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk' failed make[3]: *** [/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk] Error 1 make[3]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/package/allwinner/system/busybox-init-base-files' time: package/subpackage/allwinner/system/busybox-init-base-files/compile#21.92#24.13#44.93 ERROR: package/subpackage/allwinner/system/busybox-init-base-files failed to build. package/Makefile:114: recipe for target 'package/subpackage/allwinner/system/busybox-init-base-files/compile' failed make[2]: *** [package/subpackage/allwinner/system/busybox-init-base-files/compile] Error 1 make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' package/Makefile:110: recipe for target '/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile' failed make[1]: *** [/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' /home/gray/sdk/tina-v853/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed make: *** [world] Error 2 make: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' INFO: build_openwrt_rootfs failed gray@PC:~/sdk/tina-v853$
请问应该要怎么加才对呢?
这个是我的文件目录
-
Tina文件系统添加了一些文件后,rootfs编译不过
参考在线文档的说明,在openwrt/target/v853/v853-vision/busybox-init-base-files里面,我创建了一个opt目录,然后在这个opt里面放了QT库,tslib库和一个QT执行文件。然后执行./build.sh就报错了。编译的输出如下:
gray@PC:~/sdk/tina-v853$ ./build.sh ========ACTION List: build_linuxdev;======== options : INFO: ---------------------------------------- INFO: build linuxdev ... INFO: chip: sun8iw21p1 INFO: platform: linux INFO: kernel: linux-4.9 INFO: board: vision INFO: output: /home/gray/sdk/tina-v853/out/v853/vision/openwrt INFO: ---------------------------------------- INFO: don't build dtbo ... INFO: build arisc INFO: build_bootloader: brandy_path= /home/gray/sdk/tina-v853/brandy/brandy-2.0 INFO: skip build brandy. INFO: build kernel ... INFO: Prepare toolchain ... Building kernel /home/gray/sdk/tina-v853/kernel/linux-4.9/output/lib/modules/4.9.191 CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CHK scripts/mod/devicetable-offsets.h CHK include/generated/timeconst.h CHK include/generated/bounds.h CHK include/generated/asm-offsets.h CALL scripts/checksyscalls.sh CHK include/generated/compile.h DTC arch/arm/boot/dts/board.dtb Kernel: arch/arm/boot/Image is ready Building modules, stage 2. MODPOST 24 modules Kernel: arch/arm/boot/zImage is ready Kernel: arch/arm/boot/uImage is ready 'arch/arm/boot/Image' -> 'output/bImage' 'arch/arm/boot/uImage' -> 'output/uImage' 'arch/arm/boot/zImage' -> 'output/zImage' Copy rootfs.cpio.gz for arm Building modules [GPU]: No GPU type is configured in /home/gray/sdk/tina-v853/kernel/linux-4.9/.config. INFO: build dts ... INFO: Prepare toolchain ... removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp' removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp' '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.d.dtc.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp' '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.dts.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp' INFO: build rootfs ... ==mkcmd.sh: build_openwrt_rootfs == make: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' CreateSoftLink /home/gray/sdk/tina-v853/openwrt/openwrt/tmp link to /home/gray/sdk/tina-v853/out/v853/vision/openwrt/tmp CreateSoftLink /home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir link to /home/gray/sdk/tina-v853/out/v853/vision/openwrt/staging_dir make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' Check Vendor Package... CreateSoftLink /home/gray/sdk/tina-v853/openwrt/openwrt/package/subpackage link to /home/gray/sdk/tina-v853/openwrt/package end WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-omx/Makefile' has a dependency on 'libgst1gl', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-good', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland-protocols', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'opencv', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1badvideo', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1gl', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-base/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'libgstreamer1', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-sunxi-rf-wlan', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'weston', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'wayland', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'qt5-multimediawidgets', which does not exist WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a build dependency on 'libstdcpp', which does not exist copy from /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig target/linux/generic/image/Config.in:12:warning: choice default symbol 'uImage' is not contained in the choice target/linux/generic/image/Config.in:47:warning: choice default symbol 'uImage' is not contained in the choice target/linux/generic/image/Config.in:72:warning: choice default symbol 'CONFIG_BOOT_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice target/linux/generic/image/Config.in:89:warning: choice default symbol 'CONFIG_ROOTFS_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice # # No change to .config # copy to /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' Makefile:29: "NOTE: Will skip kernel build." The command image-prereq(include/kernel-build.mk) execute. time: target/linux/prereq#0.10#0.08#0.18 make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt' make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/target/v853' 。。。。。。 mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/usr/bin mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/sys mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/www mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/root ln -sf /proc/mounts /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/mtab rm -f /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var ln -sf /tmp /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp/lock mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc chmod 1777 /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp for conffile in /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/config/*; do if [ -f "$conffile" ]; then grep "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles || echo "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" >> /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles; fi done find /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf Package busybox-init-base-files is missing dependencies for the following libraries: libc.so.6 libm.so.6 libpthread.so.0 libstdc++.so.6 libz.so Makefile:228: recipe for target '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk' failed make[3]: *** [/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk] Error 1 make[3]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/package/allwinner/system/busybox-init-base-files' time: package/subpackage/allwinner/system/busybox-init-base-files/compile#21.92#24.13#44.93 ERROR: package/subpackage/allwinner/system/busybox-init-base-files failed to build. package/Makefile:114: recipe for target 'package/subpackage/allwinner/system/busybox-init-base-files/compile' failed make[2]: *** [package/subpackage/allwinner/system/busybox-init-base-files/compile] Error 1 make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' package/Makefile:110: recipe for target '/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile' failed make[1]: *** [/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' /home/gray/sdk/tina-v853/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed make: *** [world] Error 2 make: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt' INFO: build_openwrt_rootfs failed gray@PC:~/sdk/tina-v853$
请问应该要怎么加才对呢?
-
回复: 文件系统分区挂载和大小问题
@yuzukitsuru
我在make menuconfig里面的Target Images -> Root filesystem partition size 中改了数值,可以改到根文件分区大小,这么操作应该可以吧?root@TinaLinux:/# df -h Filesystem Size Used Available Use% Mounted on /dev/root 689.0M 463.5M 211.4M 69% / devtmpfs 244.3M 0 244.3M 0% /dev tmpfs 245.9M 4.0K 245.9M 0% /tmp /dev/by-name/UDISK 5.8G 49.3M 5.7G 1% /mnt/UDISK tmpfs 245.9M 0 245.9M 0% /run /dev/mmcblk0p7 5.8G 49.3M 5.7G 1% /server /dev/mmcblk0p1 8.0M 2.1M 5.9M 26% /mnt/extsd root@TinaLinux:/# mount /dev/root on / type ext4 (rw,relatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=250140k,nr_inodes=62535,mode=755) /proc on /proc type proc (rw,relatime) tmpfs on /tmp type tmpfs (rw,relatime) ...
-
文件系统分区挂载和大小问题
- 使用的板子:基于官方的V853芯片做的板子。
- 系统:用的源码包编译出来的openwrt。
问题如下:
1、我将文件系统改为ext4格式,然后根目录大小想要扩大一些,应该修改哪里呢?尝试修改sys_partition.fex文件的rootfs分区大小,但是感觉是随 rootfs.fex大小决定的,修改后看到rootfs的分区没有大小变化。不过我认为实际大小是有变化的,因为修改过后UDISK分区大小是变了。
2、boot分区这个有办法挂载出来的吗?//修改前的分区配置: ...... [partition] name = rootfs size = 252000 downloadfile = "rootfs.fex" user_type = 0x8000 [partition] name = rootfs_data size = 100800 user_type = 0x8000 [partition] name = UDISK user_type = 0x8100 ...... //打包烧录后df -h输出: root@TinaLinux:/rom# df -h Filesystem Size Used Available Use% Mounted on /dev/root 102.4M 45.4M 54.9M 45% / devtmpfs 244.3M 0 244.3M 0% /dev tmpfs 245.9M 8.0K 245.9M 0% /tmp /dev/by-name/UDISK 6.8G 31.6M 6.8G 0% /mnt/UDISK /dev/mmcblk0p7 6.8G 31.6M 6.8G 0% /server /dev/mmcblk0p1 8.0M 1.1M 6.9M 14% /mnt/extsd /dev/mmcblk0p4 102.4M 45.4M 54.9M 45% /rom
//修改后的: ...... [partition] name = rootfs size = 1008000 <==这里改大了 downloadfile = "rootfs.fex" user_type = 0x8000 [partition] name = rootfs_data size = 100800 user_type = 0x8000 [partition] name = UDISK user_type = 0x8100 ...... root@TinaLinux:/# df -h Filesystem Size Used Available Use% Mounted on /dev/root 102.4M 45.4M 54.9M 45% / devtmpfs 244.3M 0 244.3M 0% /dev tmpfs 245.9M 8.0K 245.9M 0% /tmp /dev/by-name/UDISK 6.5G 30.0M 6.4G 0% /mnt/UDISK /dev/mmcblk0p7 6.5G 30.0M 6.4G 0% /server /dev/mmcblk0p1 8.0M 1.1M 6.9M 14% /mnt/extsd
-
回复: V853不使用以太网收发器,直接接芯片的PHY
@yuzukitsuru 是一定要加网络适配器芯片才可以使用有线网络是吧?我看原理图里面是有这部分,虽然被NC掉了。
-
V853不使用以太网收发器,直接接芯片的PHY
请教一下,V853的板子,如果以太网部分不接以太网收发器,直接接到PHY上,这样的话对应的驱动和dts应该怎么配才行呢?
-
回复: 自制的V853板子,串口无法输入,求帮助。
@daizebin 是的,因为有一些硬件做了点小改动可能导致初始化不成功,我也为了排查问题disabled了一些不相关的节点,所以会有一些报错。
-
回复: 自制的V853板子,串口无法输入,求帮助。
@daizebin 哎呀,万分抱歉。真的是硬件问题。debug那边电路图封装弄错了导致debug接口出问题了。感谢回复
-
自制的V853板子,串口无法输入,求帮助。
-
板子:参考官方的V853板子画的,用的PMU,DDR,EMMC是和官网一致的,就是加了一些自己的外围芯片进去。
-
固件:源码编译出来的openwrt固件。dts中就做了一些简单的修改,修改后编译出来的固件可以在官网板子上跑起来。
-
问题:板子上电后,用tf卡升级固件,升级成功后接debug串口开机。然后我是设置了倒数3秒进入uboot的,但是倒数时按任何按键都没有反应,进不去uboot。 系统内核也可以启动,但是起来后也卡住不动了,串口输入没有任何反应。想问下大家有没有遇到过类似的情况。
log如下:
[58]HELLO! BOOT0 is starting! [61]BOOT0 commit : 2a3ec52022 [64]set pll start [65]periph0 has been enabled [68]set pll end [71]PMU: AXP21 [74]board init ok [75]DRAM use external ZQ!! [78]chip id check OK [80]DRAM_VCC set to 1500 mv [83]DRAM BOOT DRIVE INFO: V0.16 [86]DRAM CLK = 936 MHz [88]DRAM Type = 3 (2:DDR2,3:DDR3) [91]DRAMC ZQ value: 0x7b7bfb [94]DRAM ODT value: 0x42. [98]DRAM SIZE =512 M [100]dram_tpr4:0x0 [107]DRAM simple test OK. [109]rtc standby flag is 0x0, super standby flag is 0x0 [114]dram size =512 [117]audio:avcc calibration [120]card no is 2 [121]sdcard 2 line count 8 [124][mmc]: mmc driver ver 2021-12-27 10:07 [133][mmc]: Wrong media type 0x0, but host sdc2, try mmc first [139][mmc]: ***Try MMC card 2*** [154][mmc]: RMCA OK! [156][mmc]: bias 100 [158][mmc]: mmc 2 bias 100 [161][mmc]: MMC 5.1 [163][mmc]: HSSDR52/SDR25 8 bit [166][mmc]: 50000000 Hz [168][mmc]: 7400 MB [170][mmc]: ***SD/MMC 2 init OK!!!*** [223]Loading boot-pkg Succeed(index=0). [227]Entry_name = optee [230]Entry_name = u-boot [237]Entry_name = dtb [240]tunning data addr:0x430003e8 [243]Jump to second Boot. M/TC: OP-TEE version: 15ee1539b (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05)) #1 Tue Mar 29 06:48:41 UTC 2022 arm U-Boot 2018.05-00001-g1444403-dirty (Sep 06 2022 - 10:08:59 +0800) Allwinner Technology [00.417]CPU: Allwinner Family [00.420]Model: sun8iw21 I2C: ready [00.446]DRAM: 512 MiB [00.450]Relocation Offset is: 1ced0000 [00.474]secure enable bit: 0 E/TC:0 fdt_getprop_u32:343 prop trace_level not found [00.489]PMU: AXP21 [00.491]BMU: AXP21 FDT ERROR:fdt_get_regulator_name:get property handle twi-supply error:FDT_ERR_INTERNAL bias_name:pc_bias bias_vol:1800 bias_name:pi_bias bias_vol:1800 [00.515]CPU=900 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=24Mhz MBus=300Mhz [00.521]gic: sec monitor mode sunxi flash map init [00.525]flash init start [00.527]workmode = 0,storage type = 2 [00.531][mmc]: mmc driver ver uboot2018:2021-12-20 13:35:00 [00.536][mmc]: get sdc_type fail and use default host:tm4. [00.543][mmc]: SUNXI SDMMC Controller Version:0x50400 [00.571][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 8 [00.577]sunxi flash init ok [00.580]line:724 init_clocks [00.583]drv_disp_init request pwm success, pwm9:pwm9:0x2000c00. [00.597]drv_disp_init finish [00.601]Loading Environment from SUNXI_FLASH... OK [00.613]boot_gui_init:start [00.616]set disp.dev2_output_type fail. using defval=0 [00.620][ICN6202 TO LVDS] LINE:0146-->lcd_open_flow: [00.625][ICN6202 TO LVDS] LINE:0167-->lcd_power_on: [00.643]boot_gui_init:finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [00.652]bmp_name=bootlogo.bmp size 38454 [00.656][ICN6202 TO LVDS] LINE:0575-->lcd_panel_init: [00.822][ICN6202 TO LVDS] LINE:0620-->lcd_panel_init:initialization:icn6202 init reg from mipi 38454 bytes read in 187 ms (200.2 KiB/s) [00.850]Item0 (Map) magic is bad [00.853]the secure storage item0 copy0 magic is bad [00.858]Item0 (Map) magic is bad [00.861]the secure storage item0 copy1 magic is bad [00.865]Item0 (Map) magic is bad [00.868]out of usb burn from boot: not need burn key root_partition is rootfs set root to /dev/mmcblk0p4 [00.878]update part info [00.880]update bootcmd [00.884]change working_fdt 0x5de8fe70 to 0x5de6fe70 [00.891][mmc]: delete mmc-hs400-1_8v from dtb [00.895][mmc]: delete mmc-hs200-1_8v from dtb [00.899][mmc]: get max-frequency ok 50000000 Hz disable nand error: FDT_ERR_BADPATH [00.912]The storage not support sample function [00.918]## error: update_fdt_dram_para : FDT_ERR_NOTFOUND [00.928]update dts Hit any key to stop autoboot: 3 [00.955][ICN6202 TO LVDS] LINE:0203-->lcd_bl_open: [00.962]LCD open finish 0 [04.053]no vendor_boot partition is found Android's image name: sun8i_arm [04.102]Starting kernel ... [04.105][mmc]: mmc exit start [04.123][mmc]: mmc 2 exit ok Uncompressing Linux...0229.749ms done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.9.191 (gray@PC) (gcc version 5.3.1 20160412 (Linaro GCC 5.3-2016.05) ) #18 PREEMPT Fri Aug 12 15:51:32 CST 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: sun8iw21 [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] ion_mem_reserve: err format for ion reserve list! [ 0.000000] disp reserve base 0x5df1a000 ,size 0x3e8000 [ 0.000000] Reserved memory: created DMA memory pool at 0x47000000, size 0 MiB [ 0.000000] OF: reserved mem: initialized node vdev0buffer@47000000, compatible id shared-dma-pool [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 129920 [ 0.000000] free_area_init_node: node 0, pgdat c0b5d4d4, node_mem_map dfbf8000 [ 0.000000] Normal zone: 1024 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 129920 pages, LIFO batch:31 [ 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] CPU: All CPU(s) started in SVC mode. [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 128896 [ 0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p4 rootwait init=/init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:boot@mmcblk0p3:rootfs@mmcblk0p4:rootfs_data@mmcblk0p5:recovery@mmcblk0p6:dtb@mmcblk0p7:UDISK@mmcblk0p8 cma= mac_addr= wifi_mac= bt_mac= selinux= specialstr= coherent_pool=32K ion_carveout_list= androidboot.mode=normal androidboot.hardware=sun8iw21p1 boot_type=2 androidboot.boot_type=2 gpt=1 uboot_message=2018.05-00001-g1444403-dirty(09/06/2022-10:08:59) mbr_offset=1032192 disp_reserve=4096000,0x5df1a000 bootreason=usb androidboot.dramsize=512 [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 498684K/519680K available (6144K kernel code, 377K rwdata, 2268K rodata, 1024K init, 182K bss, 20996K reserved, 0K cma-reserved, 0K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc0700000 (7136 kB) [ 0.000000] .init : 0xc0a00000 - 0xc0b00000 (1024 kB) [ 0.000000] .data : 0xc0b00000 - 0xc0b5e5d0 ( 378 kB) [ 0.000000] .bss : 0xc0b5e5d0 - 0xc0b8be68 ( 183 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000000] arm_arch_timer: Architected 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.008104] Switching to timer-based delay loop, resolution 41ns [ 0.014436] Console: colour dummy device 80x30 [ 0.018988] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.029439] pid_max: default: 32768 minimum: 301 [ 0.034335] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.041058] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.048735] CPU: Testing write buffer coherency: ok [ 0.054299] Setting up static identity map for 0x40100000 - 0x40100058 [ 0.062439] devtmpfs: initialized [ 0.100560] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5 [ 0.108906] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.119068] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.125419] atomic64_test: passed [ 0.128820] pinctrl core: initialized pinctrl subsystem [ 0.135716] NET: Registered protocol family 16 [ 0.140887] DMA: preallocated 32 KiB pool for atomic coherent allocations [ 0.149971] dump_class_init,857, success [ 0.177995] cpuidle: using governor menu [ 0.183218] platform 2010000.iommu: iova_base: 0x48400000 [ 0.189490] sunxi iommu: irq = 22 [ 0.212605] sun8iw21p1-pinctrl pio: initialized sunXi PIO driver [ 0.220618] sunxi hwspinlock vbase:0xe0824000 [ 0.226955] iommu: Adding device npu to group 0 [ 0.232810] iommu: Adding device 1c0e000.ve to group 0 [ 0.246733] iommu: Adding device 5410000.g2d to group 0 [ 0.253343] iommu: Adding device 5000000.disp to group 0 [ 0.264736] iommu: Adding device 5908000.tdm to group 0 [ 0.270961] iommu: Adding device 5900000.isp to group 0 [ 0.277136] iommu: Adding device 58ffffc.isp to group 0 [ 0.283270] iommu: Adding device 58ffff8.isp to group 0 [ 0.289420] iommu: Adding device 58ffff4.isp to group 0 [ 0.295321] iommu: Adding device 5800800.vind:isp@4 to group 0 [ 0.302007] iommu: Adding device 5910000.scaler to group 0 [ 0.308179] iommu: Adding device 590fffc.scaler to group 0 [ 0.314309] iommu: Adding device 590fff8.scaler to group 0 [ 0.320431] iommu: Adding device 590fff4.scaler to group 0 [ 0.326773] iommu: Adding device 5910400.scaler to group 0 [ 0.332938] iommu: Adding device 59103fc.scaler to group 0 [ 0.339072] iommu: Adding device 59103f8.scaler to group 0 [ 0.345224] iommu: Adding device 59103f4.scaler to group 0 [ 0.351577] iommu: Adding device 5910800.scaler to group 0 [ 0.357735] iommu: Adding device 59107fc.scaler to group 0 [ 0.363843] iommu: Adding device 59107f8.scaler to group 0 [ 0.370001] iommu: Adding device 59107f4.scaler to group 0 [ 0.376355] iommu: Adding device 5910c00.scaler to group 0 [ 0.382509] iommu: Adding device 5910bfc.scaler to group 0 [ 0.388642] iommu: Adding device 5910bf8.scaler to group 0 [ 0.394838] iommu: Adding device 5910bf4.scaler to group 0 [ 0.443643] pwm module init! [ 0.453013] sunxi-pm debug v3.10 [ 0.458485] SCSI subsystem initialized [ 0.463793] usbcore: registered new interface driver usbfs [ 0.469897] usbcore: registered new interface driver hub [ 0.475781] usbcore: registered new device driver usb [ 0.481373] sunxi_i2c_adap_init()2754 - init [ 0.486642] sunxi_i2c_probe()2449 - [i2c4] twi_drv_used = 0 [ 0.492328] sunxi_i2c_probe()2456 - [i2c4] twi_pkt_interval = 0 [ 0.498572] twi_regulator_request()653 - [i2c4] regulator not found(isn't configured in dts)! [ 0.507190] twi_request_gpio()469 - [i2c4] init name: (null) [ 0.513993] axp20x-i2c 4-0034: AXP20x variant AXP2101 found [ 0.535460] random: fast init done [ 0.552341] axp20x-i2c 4-0034: AXP20X driver loaded [ 0.559505] media: Linux media interface: v0.10 [ 0.564467] Linux video capture interface: v2.00 [ 0.571821] ion_parse_dt_heap_common: id 0 type 0 name sys_user align 1000 [ 0.579787] ion_parse_dt_heap_common: id 4 type 4 name cma align 1000 [ 0.587245] Advanced Linux Sound Architecture Driver Initialized. [ 0.594781] Bluetooth: Core ver 2.22 [ 0.598846] NET: Registered protocol family 31 [ 0.603401] Bluetooth: HCI device and connection manager initialized [ 0.610005] Bluetooth: HCI socket layer initialized [ 0.614978] Bluetooth: L2CAP socket layer initialized [ 0.620282] Bluetooth: SCO socket layer initialized [ 0.627563] G2D: rcq version initialized.major:251 [ 0.634575] clocksource: Switched to clocksource arch_sys_counter [ 0.666448] sunxi udc is no enable [ 0.671008] udc_init,0 [ 0.675006] thermal thermal_zone1: power_allocator: sustainable_power will be estimated [ 0.683716] thermal thermal_zone2: power_allocator: sustainable_power will be estimated [ 0.692211] NET: Registered protocol family 2 [ 0.724730] TCP established hash table entries: 16 (order: -6, 64 bytes) [ 0.731561] TCP bind hash table entries: 16 (order: -6, 64 bytes) [ 0.737771] TCP: Hash tables configured (established 16 bind 16) [ 0.743938] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.749935] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.756532] NET: Registered protocol family 1 [ 0.764679] workingset: timestamp_bits=29 max_order=17 bucket_order=0 [ 0.787369] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.798134] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 0.806170] io scheduler noop registered [ 0.810212] io scheduler deadline registered [ 0.815113] io scheduler cfq registered (default) [ 0.821532] [DISP]disp_module_init [ 0.826606] [DISP] disp_init,line:2340: [ 0.830287] smooth display screen:0 type:1 mode:4 [ 0.836189] lcd 0, driver_name , panel_name default_lcd [ 0.841623] lcd 0, driver_name , panel_name he0801a068 [ 0.847114] lcd 0, driver_name , panel_name inet_dsi_panel [ 0.852801] lcd 0, driver_name , panel_name lq101r1sx03 [ 0.858272] lcd 0, driver_name , panel_name WilliamLcd [ 0.863604] lcd 0, driver_name , panel_name bp101wx1 [ 0.868782] lcd 0, driver_name , panel_name k101im2qa04 [ 0.874190] lcd 0, driver_name , panel_name t050k589 [ 0.879390] lcd 0, driver_name , panel_name kd080d24 [ 0.884538] lcd 0, driver_name , panel_name icn6202 [ 0.889631] lcd 0, driver_name , panel_name super_lcd_driver [ 0.895613] display_fb_request,fb_id:0 [ 0.899489] [DISP] display_fb_request,line:2196: [ 0.903943] invalid paras xres(0), yres(0) bpp(32) [ 0.909726] [DISP] de_fcm_set_para,line:491: [ 0.913838] fcm lut 0 not find, auto retry after init [ 0.919933] [DISP]disp_module_init finish [ 0.927667] [DISP] de_fcm_set_para,line:491: [ 0.932343] fcm lut 0 not find, auto retry after init [ 0.938712] [DISP] de_fcm_set_para,line:491: [ 0.942848] fcm lut 0 not find, auto retry after init [ 0.951074] uart0: ttyS0 at MMIO 0x2500000 (irq = 289, base_baud = 1500000) is a SUNXI [ 0.951096] sw_console_setup()2050 - console setup baud 115200 parity n bits 8, flow n [ 0.967531] console [ttyS0] enabled [ 0.967531] console [ttyS0] enabled [ 0.975103] [DISP] lcd_clk_config,line:702: [ 0.975103] [DISP] lcd_clk_config,line:702: [ 0.975104] disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0) [ 0.975104] clk real:pll(297000000),clk(420000000),dclk(70000000) dsi_rate(0) [ 0.975104] disp 0, clk: pll(0),clk(0),dclk(0) dsi_rate(0) [ 0.975104] clk real:pll(297000000),clk(420000000),dclk(70000000) dsi_rate(0) [ 1.012092] bootconsole [earlycon0] disabled [ 1.012092] bootconsole [earlycon0] disabled [ 1.022738] uart3: ttyS3 at MMIO 0x2500c00 (irq = 290, base_baud = 1500000) is a SUNXI [ 1.033000] misc dump reg init [ 1.037354] npu[1][1] vipcore, platform driver device=0xdf5ee410 [ 1.044152] npu[1][1] vipcore irq number is 291. [ 1.049514] gckvip_drv_adjust_param 232 SUCCESS [ 1.054717] Want set pclk rate(504000000) support(504000000) real(504000000) [ 1.062669] Want set mclk rate(504000000) support(504000000) real(504000000) [ 1.070671] npu[1][1] This device support 64bits DMA [ 1.076733] npu[1][1] core_0, request irqline=291, name=vipcore_0 [ 1.083626] npu[1][1] =======vipcore parameter===== [ 1.089305] npu[1][1] registerMemBase 0x03050000, [ 1.095116] npu[1][1] registerMemSize 0x00020000, [ 1.100868] npu[1][1] irqLine 0x00000123, [ 1.106652] npu[1][1] contiguousSize 0x02000000 [ 1.112211] npu[1][1] contiguousBase 0x30000000 [ 1.117835] npu[1][1] vipContiguousBase 0x0 [ 1.122714] npu[1][1] drvType 0x00000000 [ 1.128303] npu[1][1] AXISramSize 0x00000000 [ 1.133862] npu[1][1] AXISramBaseAddress 0x00000000 [ 1.139447] npu[1][1] VIPSramSize 0x00020000 [ 1.145019] npu[1][1] VIPSramBaseAddress 0x00400000 [ 1.150580] npu[1][1] sysHeapSize 0x00200000 [ 1.156147] npu[1][1] =============================== [ 1.161883] npu[1][1] VIPLite driver version 1.8.0.0-AW-2022-04-21 [ 1.169903] sun8iw21p1-pinctrl pio: expect_func as:fanout0, but muxsel(3) is func:clk [ 1.178986] sunxi-wlan soc@03000000:wlan@0: wlan_busnum (1) [ 1.185300] sunxi-wlan soc@03000000:wlan@0: wlan power voltage (3300000) [ 1.192808] sunxi-wlan soc@03000000:wlan@0: wlan io voltage (3300000) [ 1.200065] sunxi-wlan soc@03000000:wlan@0: wlan_power_num (1) [ 1.206674] sunxi-wlan soc@03000000:wlan@0: wlan_power_name (axp2101-dcdc1) [ 1.214476] sunxi-wlan soc@03000000:wlan@0: io_regulator_name (axp2101-dcdc1) [ 1.222541] sunxi-wlan soc@03000000:wlan@0: wlan_regon gpio=239 mul-sel=1 pull=1 drv_level=2 data=0 [ 1.233133] sunxi-wlan soc@03000000:wlan@0: get gpio chip_en failed [ 1.240193] sunxi-wlan soc@03000000:wlan@0: wlan_hostwake gpio=199 mul-sel=14 pull=1 drv_level=2 data=0 [ 1.251223] sunxi-wlan soc@03000000:wlan@0: clk_name () [ 1.258543] libphy: Fixed MDIO Bus: probed [ 1.263897] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.271626] get ehci0-controller, regulator_io is no nocare [ 1.277940] get ehci0-controller wakeup-source is fail. [ 1.283791] sunxi ehci0-controller is no enable [ 1.288985] sunxi-ehci 4101000.ehci0-controller: init_sunxi_hci is fail [ 1.296458] sunxi-ehci: probe of 4101000.ehci0-controller failed with error -1 [ 1.304965] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.312239] get ohci0-controller, regulator_io is no nocare [ 1.318646] get ohci0-controller wakeup-source is fail. [ 1.324498] sunxi ohci0-controller is no enable [ 1.329624] sunxi-ohci 4101000.ohci0-controller: init_sunxi_hci is fail [ 1.337091] sunxi-ohci: probe of 4101000.ohci0-controller failed with error -1 [ 1.345748] usbcore: registered new interface driver uas [ 1.352043] usbcore: registered new interface driver usb-storage [ 1.358992] usbcore: registered new interface driver ums-alauda [ 1.365906] usbcore: registered new interface driver ums-cypress [ 1.372871] usbcore: registered new interface driver ums-datafab [ 1.379864] usbcore: registered new interface driver ums_eneub6250 [ 1.387107] usbcore: registered new interface driver ums-freecom [ 1.394095] usbcore: registered new interface driver ums-isd200 [ 1.400941] usbcore: registered new interface driver ums-jumpshot [ 1.408042] usbcore: registered new interface driver ums-karma [ 1.414901] usbcore: registered new interface driver ums-onetouch [ 1.421989] usbcore: registered new interface driver ums-realtek [ 1.428946] usbcore: registered new interface driver ums-sddr09 [ 1.435863] usbcore: registered new interface driver ums-sddr55 [ 1.442742] usbcore: registered new interface driver ums-usbat [ 1.449504] usb_serial_number:20080411 [ 1.454121] get ctp_power is fail, -22 [ 1.458604] get ctp_power_ldo_vol is fail, -22 [ 1.463582] sunxi_ctp_startup: ctp_power_io is invalid. [ 1.469558] fw_index:22 [ 1.510946] sunxi_i2c_do_xfer()1974 - [i2c4] incomplete xfer (status: 0x20, dev addr: 0x40) [ 1.527021] input: axp2101-pek as /devices/platform/soc/twi4/i2c-4/4-0034/axp2101-pek.0/input/input0 [ 1.538497] sunxi_gpadc_init,1949, success [ 1.543443] sunxi_gpadc_setup: get channel scan data failed [ 1.551148] input: sunxi-gpadc0 as /devices/virtual/input/input1 [ 1.560069] sunxi-rtc rtc: rtc core: registered sunxi-rtc as rtc0 [ 1.567266] sunxi-rtc rtc: RTC enabled [ 1.571538] fix to cold boot, save boot reason [ 1.577014] i2c /dev entries driver [ 1.581524] sunxi cedar version 0.1 [ 1.586037] VE: install start!!! [ 1.586037] [ 1.591407] VE: cedar-ve the get irq is 292 [ 1.596320] VE: regs_csi = e086b000 [ 1.600813] VE: ve_debug_proc_info:c0b83888, data:df63c000, lock:c0b83910, flag: 1 [ 1.600813] [ 1.611208] VE: install end!!! [ 1.611208] [ 1.616758] google_vp9: sunxi google vp9 version 0.1 [ 1.626685] axp2101_charger: read chipid = 4a [ 1.626685] [ 1.640676] thermal thermal_zone3: power_allocator: sustainable_power will be estimated [ 1.672086] sunxi-wdt 20500a0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 1.681741] Bluetooth: HCI UART driver ver 2.2.d448471.20181218-163903 [ 1.689487] Bluetooth: HCI UART protocol H4 registered [ 1.695871] Bluetooth: HCI H4 protocol initialized [ 1.701979] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 01.00.07 [ 1.710873] axp2101_charger: the gauge have been reset, need to reload param [ 1.710873] [ 1.720655] bt_fdi debugfs_init [ 1.724345] cpufreq: cpufreq_online: CPU0: Running at unlisted freq: 900000 KHz [ 1.764632] cpufreq: cpufreq_online: CPU0: Unlisted initial frequency changed to: 912000 KHz [ 1.805185] cpuidle: enable-method property 'psci' found operations [ 1.814281] sunxi-mmc sdc2: SD/MMC/SDIO Host Controller Driver(v3.59 2022-4-21 13:40) [ 1.823440] sunxi-mmc sdc2: ***ctl-spec-caps*** 308 [ 1.829804] sunxi-mmc sdc2: No vdmmc regulator found [ 1.835502] sunxi-mmc sdc2: No vd33sw regulator found [ 1.841172] sunxi-mmc sdc2: No vd18sw regulator found [ 1.846936] sunxi-mmc sdc2: No vq33sw regulator found [ 1.852605] sunxi-mmc sdc2: No vq18sw regulator found [ 1.858715] sunxi-mmc sdc2: set host busy [ 1.863280] mmc:failed to get gpios [ 1.867545] sunxi-mmc sdc2: sdc set ios:clk 0Hz bm PP pm UP vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.904625] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.944633] sunxi-mmc sdc2: detmode:alway in(non removable) [ 1.944654] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.953010] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.954074] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.964910] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.964975] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 1.977794] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm OD pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 2.023073] usbcore: registered new interface driver usbhid [ 2.029602] usbhid: USB HID core driver [ 2.037316] Netfilter messages via NETLINK v0.30. [ 2.043438] nf_conntrack version 0.5.0 (8192 buckets, 32768 max) [ 2.050503] ctnetlink v0.93: registering with nfnetlink. [ 2.057014] ip_tables: (C) 2000-2006 Netfilter Core Team [ 2.064051] NET: Registered protocol family 10 [ 2.070508] NET: Registered protocol family 17 [ 2.075776] NET: Registered protocol family 15 [ 2.080873] Bluetooth: RFCOMM TTY layer initialized [ 2.086550] Bluetooth: RFCOMM socket layer initialized [ 2.092361] Bluetooth: RFCOMM ver 1.11 [ 2.097713] Registering SWP/SWPB emulation handler [ 2.110549] sunxi-rtc rtc: setting system clock to 1970-01-01 00:00:06 UTC (6) [ 2.119901] clk: Not disabling unused clocks [ 2.124818] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing LEGACY(SDR12) dt B [ 2.135973] usb-vbus: disabling [ 2.139811] axp2101-dcdc2: disabling [ 2.144502] axp2101-rtcldo1: disabling [ 2.149064] axp2101-aldo2: disabling [ 2.154002] axp2101-aldo3: disabling [ 2.158075] sunxi-mmc sdc2: sdc set ios:clk 400000Hz bm PP pm ON vdd 22 width 1 timing MMC-HS(SDR20) dt B [ 2.168961] sunxi-mmc sdc2: sdc set ios:clk 50000000Hz bm PP pm ON vdd 22 width 1 timing MMC-HS(SDR20) dt B [ 2.180125] sunxi-mmc sdc2: sdc set ios:clk 50000000Hz bm PP pm ON vdd 22 width 8 timing MMC-HS(SDR20) dt B [ 2.191552] sunxi-mmc sdc2: sdc set ios:clk 50000000Hz bm PP pm ON vdd 22 width 8 timing MMC-DDR52 dt B [ 2.202828] mmc0: new DDR MMC card at address 0001 [ 2.209397] mmcblk0: mmc0:0001 AT2S38 7.23 GiB [ 2.209682] mmcblk0boot0: mmc0:0001 AT2S38 partition 1 4.00 MiB [ 2.215106] mmcblk0boot1: mmc0:0001 AT2S38 partition 2 4.00 MiB [ 2.228696] mmcblk0rpmb: mmc0:0001 AT2S38 partition 3 4.00 MiB [ 2.237271] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 [ 2.242414] axp2101-aldo4: disabling [ 2.252132] axp2101-bldo2: disabling [ 2.264240] axp2101-dldo2: disabling [ 2.270079] axp2101-cpusldo: disabling [ 2.274859] ALSA device list: [ 2.278190] No soundcards found. [ 2.285939] VFS: Mounted root (squashfs filesystem) readonly on device 179:4. [ 2.296172] devtmpfs: mounted [ 2.301213] Freeing unused kernel memory: 1024K [ 2.306453] will run init ... mount: mounting none on /dev failed: Resource busy [ 2.914440] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support! [ 2.928934] EXT4-fs (mmcblk0p8): mounted filesystem with journalled data mode. Opts: data=journal Cannot parse config file '/etc/fw_env.config': No such file or directory starting pid 784, tty '': '/etc/preinit' can't run '/etc/preinit': No such file or directory starting pid 785, tty '': '/bin/mount -t proc proc /proc' mount: mounting proc on /proc failed: Resource busy starting pid 786, tty '': '/bin/mount -t tmpfs tmpfs /run' starting pid 787, tty '': '/bin/mount -o remount,rw /' starting pid 788, tty '': '/bin/mkdir -p /dev/pts' starting pid 789, tty '': '/bin/mkdir -p /dev/shm' starting pid 790, tty '': '/bin/mount -a' starting pid 791, tty '': '/bin/hostname -F /etc/hostname' hostname: can't open '/etc/hostname': No such file or directory starting pid 792, tty '': '/etc/init.d/rcS boot' ------run rc.preboot file----- mke2fs 1.45.6 (20-Mar-2020) /dev/mmcblk0p8 is mounted; will not make a filesystem here! ------run rc.modules file----- [ 3.217343] ======== XRADIO WIFI OPEN ======== [ 3.222344] [XRADIO] Driver Label:XR_V02.16.91 _HT40_01.33 Jul 22 2022 10:28:12 [ 3.231116] [XRADIO] Allocated hw_priv @ df664c80 [ 3.236623] [XRADIO_ERR] Access_file failed, path:/data/misc/wifi/xr_wifi.conf! [ 3.245626] sunxi-wlan soc@03000000:wlan@0: bus_index: 1 [ 3.252918] sunxi-wlan soc@03000000:wlan@0: check wlan wlan_power voltage: 3300000 [ 3.262850] sunxi-wlan soc@03000000:wlan@0: check wlan io_regulator voltage: 3300000 [ 3.381650] sunxi_hosts[1] should not be null [ 3.386353] [XRADIO] Detect SDIO card 1 [ 5.555404] sunxi_hosts[1] should not be null [ 5.560099] [XRADIO] Remove SDIO card 1 [ 5.574614] [SBUS_ERR] sdio probe timeout! [ 5.579206] [XRADIO_ERR] sbus_sdio_init failed [ 5.585256] ======== XRADIO WIFI OPEN ======== [ 5.590252] [XRADIO] Driver Label:XR_V02.16.91 _HT40_01.33 Jul 22 2022 10:28:12 [ 5.598857] [XRADIO] Allocated hw_priv @ defacc80 [ 5.604175] [XRADIO_ERR] Access_file failed, path:/data/misc/wifi/xr_wifi.conf! [ 5.613123] sunxi-wlan soc@03000000:wlan@0: bus_index: 1 [ 5.620528] sunxi-wlan soc@03000000:wlan@0: check wlan wlan_power voltage: 3300000 [ 5.630479] sunxi-wlan soc@03000000:wlan@0: check wlan io_regulator voltage: 3300000 [ 5.749287] sunxi_hosts[1] should not be null [ 5.753981] [XRADIO] Detect SDIO card 1 [ 7.875419] sunxi_hosts[1] should not be null [ 7.880114] [XRADIO] Remove SDIO card 1 [ 7.894617] [SBUS_ERR] sdio probe timeout! [ 7.899210] [XRADIO_ERR] sbus_sdio_init failed insmod: can't insert '/lib/modules/4.9.191/xradio_wlan.ko': Operation timed out ------run rc.final file----- Load mpp modules insmod: can't insert '/lib/modules/4.9.191/sunxi_aio.ko': No such file or directory insmod: can't insert '/lib/modules/4.9.191/sunxi_eise.ko': No such file or directory Starting logging: start-stop-daemon: unrecognized option: exec start-stop-daemon: unrecognized option: exec OK Starting audio: Failed to open mixer Failed to open mixer Failed to open mixer Successfully play boot music mkdir: can't create directory '/dev/pts': File exists mkdir: can't create directory '/dev/shm': File exists Initializing random number generator... failed to open for pcm 0,0 [ 8.184488] random: dd: uninitialized urandom read (512 bytes read) done. Starting network: Failed to connect to ubus /sbin/ifup: line 43: /sbin/wifi: not found FAIL ifconfig: invalid hw-addr 00: udhcpc: SIOCGIFINDEX: No such device Starting telnetd: OK enable android usb insmod: can't insert '/lib/modules/4.9.191/sunxi_usb_udc.ko': No such file or directory insmod: can't insert '/lib/modules/4.9.191/sunxi_usbc.ko': No such file or directory [ 8.563962] random: dbus-uuidgen: uninitialized urandom read (12 bytes read) [ 8.581147] random: dbus-uuidgen: uninitialized urandom read (8 bytes read) service: file '/usr/sbin/dbus-daemon' is not executable [ 8.632333] file system registered sh: write error: No such device Starting wifi_daemon....: [ 8.683470] read descriptors [ 8.694827] read strings 1970-01-01 00:00:13:163: WMG_INFO [wifi_daemon.c:main:817]: debug log level is: 3 1970-01-01 00:00:13:163: WMG_INFO [wifi_daemon.c:main:819]: now set to debug level: 6 [ACT D][ring_buff_init,27]enter [ACT D][ring_buff_start,173]ring buffer start enter [ACT D][ring_buff_start,187]ring buffer start quit 1970-01-01 00:00:15:174: WMG_DEBUG [wifi_daemon.c:cmd_handle_thread:702]: get cmd: o sta 1970-01-01 00:00:15:174: WMG_DEBUG [wifi_daemon.c:cmd_handle_o:49]: cmd handle o: sta 1970-01-01 00:00:15:174: WMG_INFO [wifi_daemon.c:cmd_handle_o:51]: open sta mode 1970-01-01 00:00:15:174: WMG_INFO [src/wmg_sta.c:sta_mode_init:363]: sta mode init now 1970-01-01 00:00:15:174: WMG_INFO [src/os/linux/linux_wpa.c:linux_supplicant_init:1355]: linux supplicant init now 1970-01-01 00:00:15:174: WMG_INFO [src/wmg_ap.c:ap_mode_init:216]: ap mode init now 1970-01-01 00:00:15:174: WMG_INFO [[ 10.838876] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. src/os/linux/linux_hapd.c:linux_ap_hapd_init:754]: linux hostapd init now 1970-01-01 00:00:15:174: WMG_INFO [src/wmg_monitor.c:monitor_mode_init:206]: monitor mode init now 1970-01-01 00:00:15:174: WMG_INFO [src/os/linux/linux_nl.c:linux_monitor_nl_init:250]: linux monitor nl init now 1970-01-01 00:00:15:175: WMG_DEBUG [src/os/linux/linux_nl.c:linux_monitor_nl_init:255]: nl80211 init success 1970-01-01 00:00:15:175: WMG_DEBUG [src/wmg_common.c:wifimg_init:143]: wifi_manager initialize, version: 2.0.1 Copyright (c) 2019-2025 Allwinner Technology Co., Ltd. ALL rights reserved 1970-01-01 00:00:15:175: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:256]: switch wifi mode from current_mode 'unknown' to new_mode 'station' 1970-01-01 00:00:15:175: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:260]: switch_mode_bitmap:0x1 1970-01-01 00:00:15:175: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:261]: current_mode_bitmap:0x0 1970-01-01 00:00:15:175: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:264]: disable_mode_bitmap:0x0 1970-01-01 00:00:15:175: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:294]: enable_mode_bitmap:0x1 1970-01-01 00:00:15:176: WMG_DUMP [src/wmg_sta.c:sta_mode_enable:412]: wifi station enabling... /etc/init.d/rcS: /etc/init.d/rc.final: line 36: powerkey_daemon: not found 1970-01-01 00:00:15:206: WMG_EXCESSIVE [src/os/linux/utils.c:check_process_is_exist:32]: hostapd not exist 1970-01-01 00:00:15:253: WMG_EXCESSIVE [src/os/linux/utils.c:check_process_is_exist:32]: wpa_supplicant not exist 1970-01-01 00:00:15:254: WMG_DEBUG [src/os/linux/linux_wpa.c:linux_connect_to_supplicant:1429]: wpa_supplicant is not running, need to start it starting pid 1002, tty '/dev/console': '-/bin/sh' BusyBox v1.33.2 (2022-07-08 07:13:49 UTC) built-in shell (ash) Trying to connect to SWUpdate... swu_param: #### swu_software: #### swu_mode: #### no swupdate_cmd to run, wait for next swupdate ------run profile file----- _____ _ __ _ |_ _||_| ___ _ _ | | |_| ___ _ _ _ _ | | _ | || | | |__ | || || | ||_'_| | | | || | || _ | |_____||_||_|_||___||_,_| |_| |_||_|_||_|_| Tina is Based on OpenWrt! ---------------------------------------------- Tina Linux (5.0, r0-7277fac) ---------------------------------------------- root@TinaLinux:/# [ 11.093091] random: wpa_supplicant: uninitialized urandom read (3 bytes read) [ 11.101375] random: wpa_supplicant: uninitialized urandom read (1024 bytes read) Successfully initialized wpa_supplicant Could not read interface wlan0 flags: No such device nl80211: Driver does not support authentication/association or connect commands nl80211: deinit ifname=wlan0 disabled_11b_rates=0 Could not read interface wlan0 flags: No such device wlan0: Failed to initialize driver interface 1970-01-01 00:00:16:282: WMG_EXCESSIVE [src/os/linux/utils.c:check_process_is_exist:29]: wpa_supplicant exist 1970-01-01 00:00:16:282: WMG_DEBUG [src/os/linux/linux_wpa.c:start_supplicant:359]: start wpa_supplicant times 1 success 1970-01-01 00:00:16:283: WMG_EXCESSIVE [src/os/linux/linux_wpa.c:linux_connect_to_supplicant:1436]: start wpa_supplicant success 1970-01-01 00:00:16:283: WMG_ERROR [src/os/linux/linux_wpa.c:linux_connect_to_supplicant:1445]: wpa_supplicant socket interface not exists 1970-01-01 00:00:16:283: WMG_ERROR [src/wmg_sta.c:sta_mode_enable:416]: failed to connect to wpa_supplicant 1970-01-01 00:00:16:283: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:297]: wifi sta mode enable faile 1970-01-01 00:00:16:283: WMG_DEBUG [src/wmg_common.c:wifimg_switch_mode:320]: switch after current_mode_bitmap:0x0 1970-01-01 00:00:16:283: WMG_ERROR [src/wmg_common.c:wifimg_switch_mode:327]: switch mode faile 1970-01-01 00:00:16:283: WMG_ERROR [src/wifimg.c:__wifi_on:34]: failed to switch wifi mode 1970-01-01 00:00:16:283: WMG_ERROR [wifi_daemon.c:cmd_handle_o:58]: wifi on sta mode failed [ 12.391968] random: crng init done
看了log没有看出什么比较有用的信息,希望有大佬可以支支招,感谢。难道说还是硬件有问题?
-
-
回复: V853有线网络无法连接
@yuzukitsuru 非常感谢。确实可以了。不过非常奇怪,我昨天就是直接接网线,然后执行ifconfig eth0 up 是没有IP地址的。现在就有了。
难道是网线要在执行up的命令后接入才可以?我刚试一下,执行up命令后需要重新插拔网线才可以。非常感谢 -
V853有线网络无法连接
- 板子型号是全志官方的V853开发板;
- 自己编译的固件,网卡相关的配置如下:
a) 内核中menuconfig -> Device Drivers -> Network device support -> Ethernet driver support -> Use extern phy 已设置编入内核(默认就有的)
b) device/config/chips/v853/configs/vision/board.dts 中的 gmac节点已打开,配置如下:
&gmac0{ phy-mode = "rmii"; use_ephy25m = <1>; pinctrl-0 = <&gmac0_pins_a>; pinctrl-1 = <&gmac0_pins_b>; pinctrl-names = "default", "sleep"; tx-delay = <7>; rx-delay = <31>; status = "okay"; }; 。。。 gmac0_pins_a: gmac0@0 { allwinner,pins = "PE0", "PE1", "PE2", "PE3", "PE4", "PE5", "PE6", "PE7", "PE8", "PE9", "PE10", "PE11", "PE12", "PE13", "PE14", "PE15"; allwinner,function = "rgmii"; allwinner,drive = <1>; allwinner,muxsel = <3>; allwinner,pull = <0>; }; gmac0_pins_b: gmac0@1 { allwinner,pins = "PE0", "PE1", "PE2", "PE3", "PE4", "PE5", "PE6", "PE7", "PE8", "PE9", "PE10", "PE11", "PE12", "PE13", "PE14", "PE15"; allwinner,function = "gpio_in"; allwinner,drive = <0>; allwinner,muxsel = <0>; allwinner,pull = <0>; };
- ./build.sh 编译后打包成固件,刷到板子上后。进行如下操作:
root@TinaLinux:/# ifconfig -a eth0 Link encap:Ethernet HWaddr 3E:35:B2:47:65:1E BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) Interrupt:59 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) p2p0 Link encap:Ethernet HWaddr 3C:21:4A:66:69:26 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) wlan0 Link encap:Ethernet HWaddr 3C:21:4A:66:69:25 UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) root@TinaLinux:/# ifconfig eth0 up [ 46.729092] libphy: gmac0: probed [ 46.733505] sunxi-gmac gmac0 eth0: eth0: Type(6) PHY ID 02430c54 at 1 IRQ poll (gmac0-0:01) [ 46.753881] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready root@TinaLinux:/# root@TinaLinux:/# [ 48.850744] sunxi-gmac gmac0 eth0: Link is Up - 100Mbps/Full - flow control off [ 48.859036] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready root@TinaLinux:/# udhcpc -i eth0 udhcpc: started, v1.33.2 udhcpc: sending discover udhcpc: sending discover udhcpc: sending discover
无法获取到IP地址,上不了网。是不是有哪些地方没有配置好呢?希望大神可以帮我看下,谢谢。