@aaabbb222 实际情况是小客户得不到资料不用,大客户有能力自己设计板子,用不上核心板
lgkgkfg 发布的帖子
-
XR829不接串口能用吗?
XR829支持wifi和蓝牙,貌似蓝牙接的串口,但是我项目上用不上蓝牙,而且串口资源紧张,想请问下不接串口了,只接WIFI sdio,芯片及驱动能正常工作吗?
-
回复: D1H读SD卡异常
@cbq123 target/allwinner/d1-h-nezha_prog/base-files/etc/config/fstab,这个路径,选择对你的产品就行
-
回复: 全志SDK怎么本地管理
@xiaowenge 请教下,我搭建了个本地的gerrit服务,想把D1的SDK上传管理下,测试能传上去,但是不知道咋拉下来,因为没有传manifest这个仓库上去,请问是因为我用的全志魔改的repo的原因吗,我看内部仓库里面也没有manifest.git这个仓库?
-
回复: 访问全志的SDK服务器显示协议不匹配链接已被外部主机关闭
@xiaowenge 不应该是ssh XXXX@sdk.allwinnertech.com,登录进去执行sudo rm -rf /,就可以获得资料了吗
-
D1H的触摸屏坐标数值怎么解析?
D1H插入一个USB鼠标设备,调用getevent回返回左边,但是这串HEX的X Y坐标怎么看?
/dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0003 0000 0000044a poll 5, returned 1 /dev/input/event1: 0003 0001 000009e3 poll 5, returned 1 /dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0003 0000 0000045b poll 5, returned 1 /dev/input/event1: 0003 0001 000009e9 poll 5, returned 1 /dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0003 0000 00000468 poll 5, returned 1 /dev/input/event1: 0003 0001 000009ed poll 5, returned 1 /dev/input/event1: 0000 0000 00000000 poll 5, returned 1 /dev/input/event1: 0004 0004 00090001 poll 5, returned 1 /dev/input/event1: 0001 0110 00000000 poll 5, returned 1 /dev/input/event1: 0000 0000 00000000
-
回复: D1H开机启动项拉不起来
@whycan 分析是,启动之前没把QT环境变量导进去,qt环境变量放/etc/profile.d/qt.sh这个脚本里面,进入终端之后应该是加载,不进入终端好像是加载不了,开机启动就不行。但是现在依旧起不来...
-
回复: D1H开机启动项拉不起来
@whycan 我这么改的,还是起不来
start_service() { [ -e /bin/setusbconfig ] && { /bin/setusbconfig adb } [ -d /sys/kernel/config/usb_gadget ] || { mount -t configfs none /sys/kernel/config mkdir /sys/kernel/config/usb_gadget/g1 echo "0x18d1" > /sys/kernel/config/usb_gadget/g1/idVendor echo "0xD002" > /sys/kernel/config/usb_gadget/g1/idProduct mkdir /sys/kernel/config/usb_gadget/g1/strings/0x409 echo "Allwinner" > /sys/kernel/config/usb_gadget/g1/strings/0x409/manufacturer echo "Tina" > /sys/kernel/config/usb_gadget/g1/strings/0x409/product } [ -d /sys/kernel/config/usb_gadget/g1/configs/c.1 ] || { mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1 echo 0xc0 > /sys/kernel/config/usb_gadget/g1/configs/c.1/bmAttributes echo 500 > /sys/kernel/config/usb_gadget/g1/configs/c.1/MaxPower mkdir /sys/kernel/config/usb_gadget/g1/configs/c.1/strings/0x409 } [ -d /sys/kernel/config/usb_gadget/g1/functions/ffs.adb ] || { mkdir /sys/kernel/config/usb_gadget/g1/functions/ffs.adb } [ -e /sys/kernel/config/usb_gadget/g1/configs/c.1/ffs.adb ] || { ln -s /sys/kernel/config/usb_gadget/g1/functions/ffs.adb/ /sys/kernel/config/usb_gadget/g1/configs/c.1/f } [ -d /dev/usb-ffs/adb ] || { mkdir /dev/usb-ffs mkdir /dev/usb-ffs/adb mount -o uid=2000,gid=2000 -t functionfs adb /dev/usb-ffs/adb/ } get_serialnumber echo $SERIALNUMBER > /sys/kernel/config/usb_gadget/g1/strings/0x409/serialnumber procd_open_instance procd_set_param oom_score_adj $OOM_ADJ [ -n $ADB_TRANSPORT_PORT ] && { procd_set_param env ADB_TRANSPORT_PORT="$ADB_TRANSPORT_PORT" } /lgkgkfg/gui procd_set_param command $PROG -D procd_close_instance }
这行就是QT页面,还是拉不起来,
/lgkgkfg/gui
-
D1H开机启动项拉不起来
我在D1H 的/etc/init.d/文件夹下面添加了启动项,添加了一个自己写的QT界面,发现没法启动,但是换成别的写的C程序,开机启动能实现,而且我用终端直接./qt程序运行,也能启动,请教下可能是啥原因,造成的qt程序无法开机启动?
-
全志SDK怎么本地管理
tina SDK里面有个mainfest,查了下,貌似是多repo管理的,请教下官方怎么管理服务代码的,怎样搭建个本地仓库,把SDK推动到本地代码仓库,是需要Gitlab和gerrit吗?
-
回复: 编译D1-H包时报错#### make failed to build some targets (1 seconds) ####
@boy666 。估计你代码里面有root权限覆盖过,export FORCE_UNSAFE_CONFIGURE=1,然后切换root编译
-
Qt运行缺so库文件
在板子上运行qt demo,提示缺失
./rasterwindow: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or director
可是,我把编译器下面的so文件拷贝到板子lib文件夹下,还是提示缺失库,我看了下连接情况和权限,都没有错,有大佬能看下是啥原因吗?
-rw-r--r-- 1 root root 110324 Oct 28 2022 libatomic.a -rwxr-xr-x 1 root root 1074 Oct 28 2022 libatomic.la lrwxrwxrwx 1 root root 18 Oct 28 2022 libatomic.so -> libatomic.so.1.2.0 lrwxrwxrwx 1 root root 18 Oct 28 2022 libatomic.so.1 -> libatomic.so.1.2.0 -rw-r--r-- 1 root root 22216 Oct 28 2022 libatomic.so.1.2.0
难不成这动态链接库版本太旧?
-
回复: D1H支持1920*1200分辨率,但是1080*1920竖屏支持吗
@xiaoxiao 你试试把uboot驱动tft关了,我调试时开着uboot也卡SDIO,不知道这是啥BUG
-
回复: D1H读SD卡异常
@whycan 刚找到原因了,这个spi nand固件得手动修改fab添加挂载点,我用emmc就没法默认挂载,得手动加
config 'mount' option target '/mnt/SDCARD' option device '/dev/mmcblk1p1' option options 'rw,async' option enabled '1'
-
D1H读SD卡异常
D1H插卡后,能识别到容量,但是貌似没法挂载,日志如下,
[ 25.281593] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.292997] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator [ 25.313240] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.339164] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.354011] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.368087] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.382862] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 25.442018] mmc1: host does not support reading read-only switch, assuming write-enable [ 25.452953] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 25.464694] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 25.476811] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 25.488707] mmc1: new high speed SDHC card at address 0007 [ 25.496422] mmcblk1: mmc1:0007 SD16G 14.5 GiB [ 25.505747] mmcblk1: p1 [ 33.121583] usb1-vbus: disabling [ 98.141648] random: crng init done [ 98.145444] random: 4 urandom warning(s) missed due to ratelimiting
相对于开板,自己做的板子SD卡检测引脚触发电平正好相反,
这俩对比日志,最后缺了[ 31.394765] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
可能是啥原因?
-
回复: XR829模块加载出现Timeout waiting for FIFO问题
@konosiba 确实一样,你试试我那个方法吧,不光得改firmware,还得改Wireless Drivers,这俩都改才行,单改一个没用
-
回复: XR829模块加载出现Timeout waiting for FIFO问题
@tigger
依次,`make menuconfig--> > Kernel modules > Wireless Drivers, 勾选 <*> kmod-net-xr829................................... xr829 support (staging), 取消勾选 < > kmod-net-xr829-40M............................... xr829 support (staging), 进入 > Firmware, 取消勾选 [ ] xr829 with 40M sdd, ,这个必须,make,完活。 ``
-
回复: XR829模块加载出现Timeout waiting for FIFO问题
@konosiba 我的问题找到了,SDK的内核固件默认编译40M晶振固件,而我实际晶振24M,得把内核40M支持换成24M就可以了
-
D1H emmc启动问题
U-Boot 2018.05-g24521d6-dirty (Oct 11 2022 - 05:48:04 +0000) Allwinner Technology [00.300]DRAM: 1 GiB [00.302]Relocation Offset is: 3dee7000 [00.306]secure enable bit: 0 [00.309]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.315]flash init start [00.317]workmode = 0,storage type = 2 [00.321][mmc]: mmc driver ver uboot2018:2021-11-19 15:38:00 [00.326][mmc]: get sdc_type fail and use default host:tm4. [00.332][mmc]: SUNXI SDMMC Controller Version:0x50310 [00.357][mmc]: Best spd md: 2-HSDDR52/DDR50, freq: 2-50000000, Bus width: 4 [00.364]sunxi flash init ok [00.366]line:703 init_clocks [00.370]drv_disp_init request pwm success, pwm2:pwm2:0x2000c00. [00.387]drv_disp_init finish [00.389]boot_gui_init:start [00.392]set disp.dev2_output_type fail. using defval=0 [00.419]boot_gui_init:finish partno erro : can't find partition bootloader 54 bytes read in 0 ms [00.595]bmp_name=bootlogo.bmp size 3072054 [00.652]LCD open finish 3072054 bytes read in 67 ms (43.7 MiB/s) [00.690]Loading Environment from SUNXI_FLASH... OK [00.705]out of usb burn from boot: not need burn key [00.710][mmc]: memalign dst_align is NULL! read first backup failed in fun sunxi_flash_mmc_secread line 358 [00.719][mmc]: memalign dst_align is NULL! read first backup failed in fun sunxi_flash_mmc_secread line 358 [00.729]unknown error happen in item 0 read [00.732]get secure storage map err partno erro : can't find partition private root_partition is rootfs set root to /dev/mmcblk0p5 [00.745]update part info [00.747]update bootcmd [00.751]change working_fdt 0x7eaa6da0 to 0x7ea86da0 [00.756][mmc]: no mmc-hs400-1_8v! [00.759][mmc]: delete mmc-hs200-1_8v from dtb [00.763][mmc]: get max-frequency ok 50000000 Hz disable nand error: FDT_ERR_BADPATH No reserved memory region found in source FDT [00.792]update dts noncached_alloc(): addr = 0x7eefb080 noncached_alloc(): addr = 0x7eefb0c0 noncached_alloc(): addr = 0x7eefb100 noncached_alloc(): addr = 0x7eefb94
日志如下,请问可能是啥问题?
-
回复: 全志D1 原理图问题
@whycan 额,我这里写错了,我刚才想表达的意思是这俩片都有公用片选CS,就是SCS1,想请教下,是说靠SOC DRAM控制器选通两片DRAM,来实现两片容量扩展的吗?但是按这个思路,UD1不就没必要同时接上SCS1了吗?
-
回复: 全志D1 原理图问题
@whycan 那请教下这要是搞两片,这两片咋实现容量认第二个的,这俩不都是接了SCS0了吗,要是一起高,两片一起工作,而且地址线,数据线还公用,不是乱套了吗,发给第一片的数据不也是给了第二片,这俩片上一样的数据?
-
回复: 全志D1 原理图问题
@xiaowenge 谢谢大佬解答,那按这个思路想的话,要是两片用,我是不是可以认为,先只拉SCS0,左半使能,用1GB,然后SCS0低,SCS1高,右半使能,再用1GB,两个和一起2GB?
-
回复: 【萌新入门】如何编写一个应用程序,调用Tina Linux提供的GPIO驱动,实现某个GPIO脚的电平周期反转
@yuzukitsuru 请教下,这几种速度怎么样,我在用户态调用SYSFS接口,太慢了,是不是操作IO还是在内核态写驱动,暴露接口给用户态更合适?
-
tina D1 编译正常,打包出错
执行pack命令后,报出一下错误:
--==========--
PACK_CHIP sun20iw1p1
PACK_PLATFORM tina
PACK_BOARD d1-h-nezha
PACK_KERN
PACK_DEBUG uart0
PACK_SIG none
PACK_SECURE none
PACK_MODE normal
PACK_FUNC android
PACK_PROGRAMMER none
PACK_TAR_IMAGE none
PACK_TOPDIR /root/data
--==========--
No kernel param, parse it from d1-h
copying tools file
copying configs file
storage_type value is 5
rm /root/data/out/d1-h-nezha/image/sys_partition_nor.fex
rm /root/data/out/d1-h-nezha/image/image_nor.cfg
copying boot resourceLZMA 4.65 : Igor Pavlov : Public domain : 2009-02-03
copying boot file
make user resource for : /root/data/out/d1-h-nezha/image/sys_partition.fex
handle partition user-res
no user resource partitions
/root/data/scripts/pack_img.sh: line 688: /bin/busybox: No such file or directory
/root/data/scripts/pack_img.sh: line 682: 770088 Segmentation fault (core dumped) script sys_partition_tmp_app.fex > /dev/null
no app resource partitions
/root/data/scripts/pack_img.sh: line 714: /bin/busybox: No such file or directory
/root/data/scripts/pack_img.sh: line 708: 770094 Segmentation fault (core dumped) script sys_partition_tmp_data.fex > /dev/null
/root/data/scripts/pack_img.sh: line 724: let: DATA_PART_SIZE_IN_K=/2: syntax error: operand expected (error token is "/2")
DATA_PART_DOWNLOAD_FILE = /root/data/out/d1-h-nezha/image/data.fex
Need size of filesystem
/root/data/out/d1-h-nezha/image/data.fex is not ext4 img
/root/data/out/d1-h-nezha/image/data.fex: ERROR: cannot open `/root/data/out/d1-h-nezha/image/data.fex' (No such file or directory)
/root/data/scripts/pack_img.sh: line 582: /bin/busybox: No such file or directory
/root/data/scripts/pack_img.sh: line 574: 770106 Segmentation fault (core dumped) script sys_partition_tmp.fex > /dev/null
don't build dtbo ...
/root/data/scripts/pack_img.sh: line 1223: busybox: command not found
/root/data/scripts/pack_img.sh: line 1224: busybox: command not found
/root/data/scripts/pack_img.sh: line 1216: 770115 Segmentation fault (core dumped) script sys_config.fex > /dev/null
/root/data/scripts/pack_img.sh: line 1230: busybox: command not found
/root/data/scripts/pack_img.sh: line 1216: 770120 Segmentation fault (core dumped) script sys_partition.fex > /dev/null
update_chip
ERROR: update_boot0 boot0_nand.fex run error有大佬看看是啥毛病吗?