原因已经找到,原来是Makefile 里面没有加入编译。
需要在./configure 配置 enable_deprecated 选项,这样生成Makefile的时候,才会加入hciattach 命令的相关编译。
captain 发布的最佳帖子
-
回复: 自己编译的bluez 里面缺少 hciattach 命令
-
回复: 一个补丁,让D1-H的SDK支持T113芯片
下载到TF卡之后,发现文件系统是只读的,重新挂载之后也不行。
root@TinaLinux:/# mount -o remount -w /dev/root on / type squashfs (ro,relatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=54304k,nr_inodes=13576,mode=755) /proc on /proc type proc (rw,relatime) tmpfs on /tmp type tmpfs (rw,relatime) sys on /sys type sysfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) none on /sys/kernel/config type configfs (rw,relatime) adb on /dev/usb-ffs/adb type functionfs (rw,relatime) none on /sys/kernel/debug type debugfs (rw,relatime) root@TinaLinux:/# mkdir t113 mkdir: can't create directory 't113': Read-only file system
-
回复: 一个补丁,让D1-H的SDK支持T113芯片
参看Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND 里面的spinor切换emmc 小节进行修改之后,现在系统是可读写的了。
captain 发布的最新帖子
-
回复: Tina-t113 导入XR829模块 can't download firmware.
@yuzukitsuru
1.目前开发板上面是使用的24M晶振。
2.在tina 里面配置(make menuconfig)的时候,取消XR829_40M固件的选项。查看make 的日志,也是复制的不带40M标号的固件到文件系统里面。
3.使用之前下载的longan-sdk 验证过硬件是没有问题的,能够联网。
4.目前发现问题在于get 每次增加到25553(试了几次这个数是固定的)之后就不会增加了,而put 还会继续增加导致后面就会报错。static int xradio_firmware(struct xradio_common *hw_priv) { for (i = 0; i < 100; i++) { APB_READ(DOWNLOAD_GET_REG, get); if ((put - get) <= (DOWNLOAD_FIFO_SIZE - DOWNLOAD_BLOCK_SIZE)) break; mdelay(i); } xradio_dbg(XRADIO_DBG_WARN, "put:%d get :%d %d: \n", put,get,put -get); if ((put - get) > (DOWNLOAD_FIFO_SIZE - DOWNLOAD_BLOCK_SIZE)) { xradio_dbg(XRADIO_DBG_ERROR, "%s: Timeout waiting for FIFO.\n", __func__); ret = -ETIMEDOUT; goto error; } }
-
Tina-t113 导入XR829模块 can't download firmware.
SDK:tina:sdk来源
主控:T113-S3按照tina 文档打开XR829模块编译之后。在导入的时候报错。
xradio_load_firmware: can't download firmware.
root@TinaLinux:/lib/modules/5.4.61# insmod xr829.ko [ 215.944636] ======== XRADIO WIFI OPEN ======== [ 215.950153] [XRADIO] Driver Label:XR_V02.16.85_P2P_HT40_01.31 [ 215.956901] [XRADIO] Allocated hw_priv @ (ptrval) [ 215.962194] [ADDR_MGT] get_addr_by_name: t->addr: [ 215.968136] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1 [ 215.984383] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success [ 216.191530] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 216.202619] [XRADIO] Detect SDIO card 1 [ 216.217044] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 216.237173] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 216.261992] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 216.276520] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 216.298695] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 216.310231] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B [ 216.322011] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B [ 216.334407] mmc1: new high speed SDIO card at address 0001 [ 216.340936] [SBUS] XRadio Device:sdio clk=50000000 [ 216.346750] [XRADIO] XRADIO_HW_REV 1.0 detected. [ 216.408411] [XRADIO] xradio_update_dpllctrl: DPLL_CTRL Sync=0x00c00000. [ 216.424968] random: crng init done [ 216.454054] [XRADIO] Bootloader complete [ 221.443915] [XRADIO_ERR] xradio_firmware: Timeout waiting for FIFO. [ 221.450997] [XRADIO_ERR] xradio_load_firmware: can't download firmware. [ 221.458404] [XRADIO_ERR] xradio_load_firmware failed(-110). [ 221.464781] sunxi-rfkill soc@3000000:rfkill@0: wlan power off success [ 221.572033] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !! [ 221.578763] [XRADIO] Remove SDIO card 1 [ 221.578774] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !! [ 221.589784] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !! [ 221.596510] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 7, RTO !! [ 221.603422] mmc1: card 0001 removed [ 221.607409] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B [ 221.619841] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B [ 221.630976] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator [ 221.648184] xradio_core_init failed (-110)! [ 221.651088] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 221.677828] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 221.685467] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !! [ 221.692300] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 221.706848] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B [ 221.720563] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 221.728149] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 221.735677] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 221.743222] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !! [ 221.749973] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B failed to insert xr829.ko
-
回复: 一个补丁,让D1-H的SDK支持T113芯片
参看Tina Linux 存储介质切换:eMMC,SPI NAND,SPI NOR,SD Card,SD NAND 里面的spinor切换emmc 小节进行修改之后,现在系统是可读写的了。
-
回复: 一个补丁,让D1-H的SDK支持T113芯片
下载到TF卡之后,发现文件系统是只读的,重新挂载之后也不行。
root@TinaLinux:/# mount -o remount -w /dev/root on / type squashfs (ro,relatime) devtmpfs on /dev type devtmpfs (rw,relatime,size=54304k,nr_inodes=13576,mode=755) /proc on /proc type proc (rw,relatime) tmpfs on /tmp type tmpfs (rw,relatime) sys on /sys type sysfs (rw,relatime) devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000) none on /sys/kernel/config type configfs (rw,relatime) adb on /dev/usb-ffs/adb type functionfs (rw,relatime) none on /sys/kernel/debug type debugfs (rw,relatime) root@TinaLinux:/# mkdir t113 mkdir: can't create directory 't113': Read-only file system
-
回复: T113 (tina) 改变gpadc采样率,要测量的引脚电压也会改变,这正常吗?
@jr_online
仔细检查了一下设备树,发现 gpadc 没打开。
现在打开之后重新编译就能使用了。
感谢! -
回复: T113 (tina) 改变gpadc采样率,要测量的引脚电压也会改变,这正常吗?
@jr_online
请问一下修改那些地方能使用这个普通的 gpadc 呀?
我看它设备树里面都是配置的adc按键,不能直接去读取相关的adc值。
使用普通adc 命令就会报错。/sys/class/gpadc# echo 5000 > sr [ 1536.126834] 8<--- cut here --- [ 1536.130277] Unable to handle kernel NULL pointer dereference at virtual address 00000084 [ 1536.139439] pgd = b0db3a19 [ 1536.142531] [00000084] *pgd=00000000 [ 1536.146601] Internal error: Oops: 5 [#1] PREEMPT SMP ARM [ 1536.152563] Modules linked in: sx1262(O) sunxi_ce [last unloaded: sx1262] [ 1536.160192] CPU: 0 PID: 1687 Comm: bash Tainted: G O 5.4.61 #2 [ 1536.168197] Hardware name: Generic DT based system [ 1536.173578] PC is at sr_store+0x9c/0x100 [ 1536.177978] LR is at _kstrtoull+0x34/0x8c [ 1536.182473] pc : [<c0507f60>] lr : [<c035800c>] psr: a0000013 [ 1536.189500] sp : c4569e98 ip : c0507ec4 fp : 00000000 [ 1536.195360] r10: 00000004 r9 : 00000051 r8 : c5108710 [ 1536.201221] r7 : c4569f70 r6 : 00000000 r5 : 00000005 r4 : c0c03dc8 [ 1536.208542] r3 : 00000000 r2 : 00001388 r1 : 016e3600 r0 : 00000000 [ 1536.215865] Flags: NzCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment none [ 1536.223871] Control: 10c5387d Table: 445e006a DAC: 00000051 [ 1536.230321] Process bash (pid: 1687, stack limit = 0x0c6dc0e4) [ 1536.236864] Stack: (0xc4569e98 to 0xc456a000)
-
T113 PWM只能同时输出一路
主控:t113
sdk:longan_sdk
单独使用时,每一路pwm都能够正常输出,但是同时开启多路PWM时,只有第一个被开启的有输出,后面开启的都没有输出。platform/2000c00.pwm, 8 PWM devices pwm-0 ((null) ): period: 0 ns duty: 0 ns polarity: inverse pwm-1 ((null) ): period: 0 ns duty: 0 ns polarity: inverse pwm-2 (sysfs ): requested enabled period: 1000000 ns duty: 500000 ns polarity: inverse pwm-3 (sysfs ): requested enabled period: 10000000 ns duty: 6000000 ns polarity: inverse pwm-4 (sysfs ): requested enabled period: 1000000 ns duty: 300000 ns polarity: inverse pwm-5 ((null) ): period: 0 ns duty: 0 ns polarity: inverse pwm-6 ((null) ): period: 0 ns duty: 0 ns polarity: inverse pwm-7 ((null) ): period: 0 ns duty: 0 ns polarity: inverse