页次: 1
@Mitko https://zhidao.baidu.com/question/1547190917555376067.html 原来这就是保加利亚呀? 我笑了 嘻嘻,你这么做得原因看来有历史的原因呢!!
这个有点意思,第一次听说保加利亚。
做一个转接7寸Lcd的小板子: https://whycan.cn/t_2099.html
参考@晕哥另外一个帖子: https://whycan.cn/t_1522.html
###挂载###
mount /dev/sda -t vfat /mnt/u/# cp /mnt/data/138¿î39.XPX /mnt/u/
cp: can't create '/mnt/u/138¿î39.XPX': Invalid argument
拷贝文件(gbk文件名)到U盘出现错误,
找到这个网页,终于解决 https://blog.csdn.net/luoleicn/article/details/5309967
两种方式:
一种是通过终端手动挂载加上参数: -o iocharset=utf8
如:# mount /dev/sdb1 -t vfat /mnt/usb/ -o iocharset=utf8
第二种是通过加入内核支持在File systems ---> DOS/FAT/NT Filesystems --->中有两项修改为:
(936) Default codepage for FAT
(utf8) Default iocharset for FAT
codepage其实是charset encoding的别称,而936是GBK编码。详见http://en.wikipedia.org/wiki/Codepage。
为了支持cp936,你必须在打开对它的支持,在File systems ---> -*- Native language support --->Simplified Chinese charset (CP936, GB2312)
iocharset通过man mount来查看解释不再赘述。
阿里巴巴看到有人卖芯片: https://detail.1688.com/offer/574196878150.html
但是卖板子的还没那么快吧,
毕竟是工业级的AI芯片.
比如 sun8i-v3s-licheepi-zero.dts
&ohci0 {
status = "okay";
};&uart0 {
pinctrl-0 = <&uart0_pins_a>;
pinctrl-names = "default";
status = "okay";
};&uart1 {
pinctrl-0 = <&uart1_pins_a>;
pinctrl-names = "default";
status = "okay";
};&uart2 {
pinctrl-0 = <&uart2_pins_a>;
pinctrl-names = "default";
status = "okay";
};&usb_otg {
dr_mode = "otg";
status = "okay";
};
就是上面这个 okay 和 & 没搞明白.
https://github.com/littlevgl/lvgl/blob/master/lv_hal/lv_hal_tick.h
/* Define a custom attribute to `lv_tick_inc` function */
就是说如果用户给这个函数另外定义了一个属性(attribute), 就使用自定义的。
如果没有定义,那么就使用默认的(空定义).
drivers/bus/imx-weim.c: dev_dbg(&pdev->dev, "failed to find weim-cs-gpr\n");
drivers/bus/vexpress-config.c: dev_dbg(parent, "Registered bridge '%s', parent node %p\n",
drivers/bus/vexpress-config.c: dev_dbg(dev, "Parent node %p, looking for %p\n",
drivers/bus/simple-pm-bus.c: dev_dbg(&pdev->dev, "%s\n", __func__);
drivers/bus/simple-pm-bus.c: dev_dbg(&pdev->dev, "%s\n", __func__);
https://github.com/andrewkiluk/RSA-Library
RSA-Library
This is a C library for RSA encryption. It provides three functions for key generation, encryption, and decryption. Detailed descriptions of these functions are provided in the header file rsa.h.
I make no claim that any good encyrption practices are used here. Probably don't use this for any production purposes.
Created by Andrew Kiluk
源码在此!
大神,你玩过飞思卡尔K21?
https://whycan.cn/t_717.html
那你按照这个安装gcc 7.2.1,然后看能否编译通过,希望看到好消息。
2) 安装arm linux 工具链:
ubuntu14.04 x64下载这个工具链: gcc-linaro-7.2.1-2017.11-x86_64_arm-eabi.tar.xz
一般解压缩到 /usr/local/ 目录,
然后把目录 export PATH=/usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-eabi/bin:$PATH 添加到 /etc/profile, 或者 ~/.bashrc 文件
晕哥,主线支持摄像头吗
海豚?派不是主线,是全志官方的 linux3.4
daydayup 说:qwert1213131 说:官方回复是创建一个定时器任务,定时更新图片
嗯嗯,我试一试。
这个不错,非常感谢!
项目地址:
https://github.com/vurtun/nuklear
源码只有一个 nuklear.h 文件, 约2.5万行代码
https://github.com/vurtun/nuklear/blob/master/nuklear.h
Ubuntu安装库:
sudo apt-get install libpng-dev
参考: https://stackoverflow.com/questions/36674667/png-h-file-not-found-linux
daydayup 说:哈,解决了就好,给后来到这里的朋友提供了一个解决思路。
我觉得把 libpng* 拷贝到/usr/lib 里面应该也是可以的。daydayup哥,我上面说错了,现在发现没有libpng.so,只有libqicns.so libqjpeg.so libqtga.so libqwbmp.so libqgif.so libqico.so libqsvg.so libqtiff.so libqwebp.so 所以还是不能显示png图片,只能显示gif,ico,jpg图片,网上查了一下说QT5内置支持png,但是不知道怎样才能显示png图片,还
请大神们帮忙
内置支持png的意思是,不再需要比如qgif,qjpeg类似的插件,但是libpng.so*一定是需要的。
如果把libpng.so*拷贝到/usr/lib应该可以吧?
Linux平台可以读出这个sid吗?
# cat /proc/cpuinfo
processor : 0
model name : ARMv7 Processor rev 5 (v7l)
BogoMIPS : 48.00
Features : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
Hardware : Allwinner sun8i Family
Revision : 0000
Serial : 12c00000463d103b
用C的read函数把/proc/cpuinfo 文件读出,read读最后一行Serial, 得到 12c00000463d103b 就是sid了,
next close();
automake 失败, Linux折腾真麻烦
# automake -a -c -f --foreign
automake: warnings are treated as errors
gtk/Makefile.am.inc:13: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:31: 'gtk/Makefile.am.inc' included from here
gtk/Makefile.am.inc:17: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:31: 'gtk/Makefile.am.inc' included from here
pygtk/Makefile.am.inc:20: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:34: 'pygtk/Makefile.am.inc' included from here
qt/Makefile.am.inc:11: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:38: 'qt/Makefile.am.inc' included from here
qt/Makefile.am.inc:14: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:38: 'qt/Makefile.am.inc' included from here
test/Makefile.am.inc:64: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:47: 'test/Makefile.am.inc' included from here
Makefile.am:69: warning: '%'-style pattern rules are a GNU make extension
Makefile.am:72: warning: '%'-style pattern rules are a GNU make extension
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'gtk/libzbargtk.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:31: 'gtk/Makefile.am.inc' included from here
gtk/Makefile.am.inc:1: while processing Libtool library 'gtk/libzbargtk.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'plugin/libzbarplugin.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:45: 'plugin/Makefile.am.inc' included from here
plugin/Makefile.am.inc:1: while processing Libtool library 'plugin/libzbarplugin.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'pygtk/zbarpygtk.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:34: 'pygtk/Makefile.am.inc' included from here
pygtk/Makefile.am.inc:1: while processing Libtool library 'pygtk/zbarpygtk.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'python/zbar.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:28: 'python/Makefile.am.inc' included from here
python/Makefile.am.inc:1: while processing Libtool library 'python/zbar.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'qt/libzbarqt.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:38: 'qt/Makefile.am.inc' included from here
qt/Makefile.am.inc:1: while processing Libtool library 'qt/libzbarqt.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'zbar/libzbar.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
Makefile.am:5: while processing Libtool library 'zbar/libzbar.la'
/usr/share/automake-1.14/am/ltlibrary.am: warning: 'libzbarjni.la': linking libtool libraries using a non-POSIX
/usr/share/automake-1.14/am/ltlibrary.am: archiver requires 'AM_PROG_AR' in 'configure.ac'
java/Makefile.am:6: while processing Libtool library 'libzbarjni.la'
正好我也在用V3s 主线Linux 4.13-y,
顺便帮你试了一下,
修改 drivers/video/fbdev/simplefb.c 函数 simplefb_probe
添加:
char* addr;
addr = info->screen_base;
do
{
//整屏刷成蓝色
*addr = 0xFF;addr++;
*addr = 0x00;addr++;
*addr = 0x00;addr++;
*addr = 0x00;addr++;
}
while(addr < (info->screen_base + info->fix.smem_len));
注意模块的12脚, 22脚一定要拉到3V3,否则不工作。
22脚VDD_IO是IO口的电压, 拉到3V3表示IO电压是3V3的, 当然这个模块是可以接入1.8V的 IO系统。
搞定,感谢大神!
12脚飞线拉到3V3就好了。
#
# insmod /usr/lib/r8723bs.ko
[ 9.557441] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 9.573924] RTL8723BS: module init start
[ 9.578001] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 9.585073] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 9.597951] pnetdev = c2860000
[ 9.648070] RTL8723BS: rtw_ndev_init(wlan0)
[ 9.671299] RTL8723BS: module init ret =0
# ifconfig wlan0 up
[ 15.865730] rtl8723bs: acquire FW from file:rtlwifi/rtl8723bs_nic.bin
[ 16.057497] random: crng init done
# ifconfig
wlan0 Link encap:Ethernet HWaddr 84:26:BD:30:84:22
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)# [ 300.086160] RTL8723BS: nolinked power save enter
# insmod /usr/lib/r8723bs.ko
[ 8.842873] r8723bs: module is from the staging directory, the quality is unknown, you have been warned.
[ 8.859497] RTL8723BS: module init start
[ 8.863436] RTL8723BS: rtl8723bs v4.3.5.5_12290.20140916_BTCOEX20140507-4E40
[ 8.870578] RTL8723BS: rtl8723bs BT-Coex version = BTCOEX20140507-4E40
[ 8.877233] RTL8723BS: module init ret =0
# ifconfig wlan0 up
ifconfig: ioctl 0x8913 failed: No such device
# ifconfig wlan0
ifconfig: wlan0: error fetching interface information: Device not found
把淘宝上买的 RTL8723BS模块 怼上去之后,
shell安装 rtl8723bs驱动,出现上面的错误。
晕哥 说:参考这个: basicnet/libnl.html
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static &&
make晕哥,上面的方法有错误
/usr/bin/ld: .libs/hash.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/hash.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/hash.o: Relocations in generic ELF (EM: 40)
/usr/bin/ld: .libs/hash.o: Relocations in generic ELF (EM: 40)
.libs/hash.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [libnl-3.la] Error 1
make[2]: Leaving directory `/home/vv3/Downloads/wifi/libnl-3.2.25/lib'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/vv3/Downloads/wifi/libnl-3.2.25/lib'
make: *** [all-recursive] Error 1
工具链还是得用 ARM的哦, (捂脸
RISC-32 处理器是通用微处理器 RISC 家族中的一员。RISC-32 属于 5TEJ 版 RISC-32
架构,针对的是多任务应用,包括全储存器管理,高性能,小核心尺寸和低功耗都是其重要
的特点。RISC-32 处理器支持 32 位 RISC-32 和 16 位 THUMB 指令集,使得用户能在高
性能和高代码密度上取得平衡。 支持 8 位 Java 指令集并且包括 Java 字节代码有效执行的
功能部件,提供和 JIT(Just-In-Time 编译器)相似的 Java 性能,这些性能为下一代 Java
无线和嵌入式的设备提供了有力支持。为了提高 DSP 性能,还包含了一个增强的乘法器设
计。RISC-32处理器支持 RISC 调试架构,包括对辅助硬件和软件调试的逻辑。
官方宣称用 RISC-32内核,其实这不就是一个ARM9内核嘛, 开发工具都是用ADS.
难道是指令集兼容,内核改改???
一、简 介
ASM9128T 主控芯片采用 ASM926EJSA 内核, 主频可以达到 240MHZ。 同时集成了 16Kbytes
指令 Cache 和 16Kbytes 数据 Cache、32/16 位 SDRAM/NOR Flash 控制器、Nand Flash 控制
器、以及丰富的功能外设,使得 ASM9128T 非常适合用于工业控制场合。
ASM9128T 运用了目前行业领先的 3D封装技术,可以采用 MCP封装形式将一颗 256Mb容
量的 SDRAM die 与 ASM9128T die 封装在一颗芯片里,使得芯片的外围管脚大为减少,减少
整体方案的 BOM 成本以及PCB 板设计复杂度,同时大幅度提升 EMI 和EMC 特性。
ASM9128T 内部集成了 SDRAM/NOR Flash 控制器、Nand Flash 控制器;外设部分相当丰
富:UART*8、一个 10/100M 以太网控制器,1 个 High-Speed OTG USB 控制器(内置 PHY) 、
LCD 控制器、高速 I2C、高速 SPI、SD卡控制器、5.1 声道 I2S接口、32 位定时器/计数器、
4 通道5MHZ采样率的 12bit ADC 等。
ASM9128T 内部采用了多层 AHB 总线架构,每个 AHB 总线的从模块都有一个独立的 32位
AHB 总线,使得芯片内部总线的带宽达到最大化。
ASM9128T 采用了灵活的管脚映射技术, 使得每个数字管脚都兼具多个功能管脚的作用,
在客户开发方案确定下来以后可以根据客户实际所用到的模块来为客户最小化定制芯片的
封装管脚数。
二、特 性
内核:
240MHz RISC-32 内核
16KBytes 数据cache,16KBytes 指令cache, MMU
存储器
Nand Flash控制器,具有24bits/512 bytes 的ECC 纠错能力
支持 Quad-SPI 接口,带宽可达传统 SPI 的4 倍
两个 4Kbytes 的片内SRAM,可以0 延时访问
片内集成 32KBytes 的ROM,内置了芯片启动程序,支持多种
外设
LCD 控制器,支持 RGB565 ,最高支持 1024*1024 分辨率
1 个高速USB OTG 控制器,同时片内集成高速 USB PHY
一个 10/100M 以太网控制器, 支持 MII 或RMII 接口
一个高速 GPIO DMA, 可以以 50MHZ的频率在 IO管脚上并行输
一个高速 SD/MMC 卡控制器,也可以用作SPI 控制器
两个 SPI 控制器,支持主/从模式,支持全双工操作
四个 32 位定时器/计数器
两个 I2C 接口、支持高速模式 3.4Mb/s
六个 USART接口,在 UART 接口的基础上增加了对 ISO7816 协议的支持
2 个UART 接口,带流控功能
两个 CAN 总线接口
一个 4 通道12 位采样精度的 ADC,采样速率最高可到 5MHZ
两个 5.1 声道的 I2S 接口
一个 QEI 接口
管脚
支持 MCP 封装,可内置一颗 64Mbit 或 128Mbit 或 256Mbit 的 SDRAM die(需联系代理商)采用 LQFP128 封装形式, 最多有 72 个通用数字管脚可用
每个数字管脚可以被编程为输入或输出,也可被置为上拉,下拉或悬空
由于采用了灵活的管脚复用,用户可以根据所需使用的模块自定义封装形式(需联系代理商)
应用领域:
电力集中器、负控终端;
行车记录仪;
电梯外呼板;
异步 LED 显示卡(单色、双色、全彩) ;
工业 PLC 控制器;
门禁一卡通;
方框图:
简化版手册下载: ASM9128T.pdf
主线的内核4.13和4.13.y有什么区别?我试了试主线的内核4.13.16,发现etherner驱动并没有在启动时加载。内核4.13.16已经选了sun8i驱动
楼主应该是从 https://github.com/torvalds/linux/ 这个tag v4.13 checkout 出来的吧
各位大神,内核shell启动后,我插入TF卡,控制台不停的报下面的错误。我使用的是 linux-4.13.y 分支。
但是这个卡是可以用来启动系统的。
[ 13.509912] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 13.515787] mmc0: error -22 whilst initialising SD card
[ 14.629905] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 14.635756] mmc0: error -22 whilst initialising SD card
[ 15.749894] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 15.755743] mmc0: error -22 whilst initialising SD card
[ 16.869899] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 16.875746] mmc0: error -22 whilst initialising SD card
[ 17.989896] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 17.995740] mmc0: error -22 whilst initialising SD card
[ 19.109898] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 19.115742] mmc0: error -22 whilst initialising SD card
[ 20.229897] sunxi-mmc 1c0f000.mmc: no support for card's volts
[ 20.235744] mmc0: error -22 whilst initialising SD card
daydayup@ubuntu:/tmp$ sudo sginfo /dev/sda
INQUIRY response (cmd: 0x12)
----------------------------
Device Type 0
Vendor: VMware,
Product: VMware Virtual S
Revision level: 1.0
daydayup@ubuntu:/tmp$ sudo sginfo /dev/sde
INQUIRY response (cmd: 0x12)
----------------------------
Device Type 0
Vendor: Kingston
Product: DT 101 G2
Revision level: PMAP
daydayup@ubuntu:/tmp$
上面 /dev/sda 是硬盘, /dev/sde 是我的U盘,
不知道能否从 Revision level 判断是U盘还是hard disk?
/tmp #
/tmp # [ 158.323880] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #1, port1 00000104
[ 165.843880] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #1, port1 00000104
[ 174.403878] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #1, port1 00000104@zhuacai
求救, 我的板子也是这样, 请问你是如何解决的?
终于搞定了, 按照 @晕哥 的办法:
1. 把拨码开关拆掉, 直接用锡线焊接短路。
2. checkout -b 4.13-y 这个分支的代码, 在驱动里面把usb mass storage开启。
3. 编译烧录重启就成功了。
建议看下是不是缺了 /dev/console 的设备?如果没有就用 mknod /dev/console c 5 1 建一个。
/tmp #
/tmp # [ 158.323880] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #1, port1 00000104
[ 165.843880] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #1, port1 00000104
[ 174.403878] musb-hdrc musb-hdrc.1.auto: VBUS_ERROR in b_idle (98, VALID), retry #1, port1 00000104
@zhuacai
求救, 我的板子也是这样, 请问你是如何解决的?
这是我编译好的uboot, linux&dtb, rootfs: V3s_TFCard.7z
荔枝派Zero开发板网卡验证通过, 登陆账号root,无密码。
sha1sum文件校验码: 43c635802438e26c8fe96ada66255b664d52cddd
lz你好,请问我用这个固件能否用荔枝派zero 开发板挂载U盘呢?
嗯嗯!对!我参考了一键复位来做的,一键复位中修改了DTS中MT7620a.dts文件来修改GPIO口:(下面的S2用来复位,准备用S3来做一键U盘弹出)
gpio-keys-polled {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
s2 {
label = "reset";
gpios = <&gpio0 1 1>;
linux,code = <0x198>;
};
s3 {
label = "S3";
gpios = <&gpio0 2 1>;
linux,code = <0x101>;
};
};然后cd /etc/rc.button
vi reset 如下:#!/bin/sh
[ "${ACTION}" = "released" ] || exit 0
. /lib/functions.sh
logger "$BUTTON pressed for $SEEN seconds"
if [ "$SEEN" -lt 1 ]
then
echo "REBOOT" > /dev/console
sync
reboot
elif [ "$SEEN" -gt 5 ]
then
echo "FACTORY RESET" > /dev/console
jffs2reset -y && reboot &
fireturn 0
这样就可以实现一键复位了,可是一键弹出U盘就不知该如何下手了
这个问题不大。
umount.sh
umount /mnt/udisk
/etc/rc.button 里面调用 umount.sh 即可。
一般在嵌入式系统只挂载U盘里面的第一个磁盘,而且是挂载到同一个文件夹。
[ 4.312823] usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 4.320722] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 4.326565] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 4.335716] hub 1-0:1.0: USB hub found
[ 4.339571] hub 1-0:1.0: 1 port detected
[ 4.344166] using random self ethernet address
[ 4.348729] using random host ethernet address
[ 4.354153] usb0: HOST MAC 1a:a2:84:56:1a:68
[ 4.358598] usb0: MAC 06:02:c8:b5:2b:e8
[ 4.362495] g_cdc gadget: CDC Composite Gadget, version: King Kamehameha Day 2008
[ 4.370020] g_cdc gadget: g_cdc ready
这是我USB设备的启动log, 看起来貌似usb模块的供电有问题,但是我实际测量确实没有问题的, 足3V3.
这个问题, 你看提示 1c10000, 然后打开全志Allwinner V3s的手册 跟进去会有发现的。
感谢提醒, 我看了这个1c10000是地址, 而且是SD/EMMC1的地址, 而我刚好第二个TF卡挪作他用。
估计是这个问题了。
[ 1.038070] mmc0: host does not support reading read-only switch, assuming write-enable
[ 1.055979] NET: Registered protocol family 17
[ 1.060535] Key type dns_resolver registered
[ 1.065072] Registering SWP/SWPB emulation handler
[ 1.070430] mmc0: new high speed SD card at address 0001
[ 1.085725] mmcblk0: mmc0:0001 MS 1.83 GiB
[ 1.095358] mmcblk0: p1 p2
[ 2.804745] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 3.554728] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 4.304727] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
Welcome to Buildroot
buildroot login: [ 6.144748] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 6.626982] musb_g_ep0_irq 712: SetupEnd came in a wrong ep0stage idle
[ 7.924742] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 8.674729] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 9.424742] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 11.264747] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 13.034745] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 13.784728] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 14.534743] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 17.404745] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 18.154729] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 18.904745] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 21.724747] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
[ 22.474729] sunxi-mmc 1c10000.mmc: fatal err update clk timeout
.....
这样一直显示下去
请问大神们同样的TF卡软件, 在荔枝派zero开发板用得好好的,在我自己的V3s板子上就提示mmc错误?
U-Boot 2017.01-rc2-00055-gc41fbfe7b5 (Jan 20 2017 - 00:39:08 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environmentSetting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
reading /sun8i-v3s-licheepi-zero.dtb
8585 bytes read in 28 ms (298.8 KiB/s)
starting USB...
No controllers found
USB is stopped. Please issue 'usb start' first.
starting USB...
No controllers found
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-sunxi
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
starting USB...
No controllers found
No ethernet found.
No ethernet found.
请问各路大神直接烧录荔枝派zero提供的预编译u-boot和固件,出现这个错误, 应该如何解决?
https://whycan.cn/files/members/3/QQ20171211135605.jpg
试一试荔枝派Zero开发板这个原理图,
把 49.9R 干掉。
果然干掉49.9R可以了,谢谢大神
请教STM32F407+DP83848CVV LWIP1.4.1 裸跑 TCP长连接通信
硬件环境:STM32F407+DP83848CVV LWIP1.4.1 裸跑 TCP长连接通信
要求:帮忙查找是那个环节问题,并且协助解决。
过程是这样的:我集中器发一个命令给服务请求,服务回复我了,然后我集中器就等服务给我下发5C命令。服务说他有下发 5C是集中器没有回复超时,而我集中器接收回调函数没有收到TCP的信息没有打印,连接正常其它命令可以正常通信,就5C不 行。同样程序和硬件有些集中器是可以正常接收5C命令。
在公司测试一直没有出现这个问题,客户那里也只有一部分会出现这个问题。
集中器----request--》-----服务
集中器-----《--ACK----服务
集中器----等待服务下发5C数据包------服务
........
集中器---与服务间心跳包正常,其它通信命令正常request和ACK-----服务
......
即使偶尔收到一条5C命令,第二条又收不到,服务就取消整个5C命令,服务查看日记说是超时,集中器没有回复
去看集中器的接收数据回调函数根本没有打印日志, 需要更进一步判断我这面对LWIP不是特别熟悉。所以过来请教大家
http://www.pieeco.com/news/2303_1.html
1. 智能音频 canna
高性能、低功耗的智能音频开发平台
CANNA板是君正基于X1000设计的产品板,搭载博通的BCM43438三合一WIFI/BT芯片,实现了最低功耗的特色组合,板级休眠功耗只有1.42MW,在线播放音乐功耗300MW。CANNA板外设接口丰富,主要覆盖与智能音频有关的应用场景,君正在其上开发了智能音响方案Mozart,提供丰富的基础功能,以帮助开发者快速开发产品。
Canna的软件功能
完整的智能音响方案Mozart SDK:
开源的u-boot和linux3.0.8内核支持包
支持DLNA、Airplay
强大的音频解码库:APE(Level : 1-5)、FLAC、WAV、MP3、WMA、 AAC 、OGG支持语音唤醒、语音搜索、离线语音控制等
支持Wi-Fi b/g/n、BT A2DP、HFP等协议
支持Airkiss、Cooee、Smartlink等一键配网功能支持SD、U盘音乐播放
支持LCD UI显示、红外遥控等功能
支持OTA升级
原来已经有大神踩过这个坑了:
https://www.kancloud.cn/lichee/lpi0/421922
开机自启动
buildroot 根文件系统
修改/etc/inittab:
ttyS0::respawn:/root/logintest -L ttyS0 115200 vt100
新建logintest:
#!/bin/sh
/bin/login -f root
自启动任务在/etc/init.d/rcS中加入即可
export 相关环境变量在/etc/profile中加入。
找到一个类似的问题: how-to-login-automatically-without-typing-root-in-buildroot-x86-64-qemu
但是他仍然没有解决:
I've asked on the mailing list and Thomas Petazzoni replied that the:
/etc/inittab
should contain:console::respawn:/bin/sh
instead of:console::respawn:/sbin/getty -n -L console 0 vt100 # GENERIC_SERIAL
With qemu_x86_defconfig, the inittab is being used by Busybox' init system, due to BR2_INIT_BUSYBOX=y.An easy way to get it working it to just edit package/busybox/inittab directly, and rebuild busybox:
make busybox-reconfigure
The cleaner way is to use BR2_ROOTFS_OVERLAY.This method does have a downside however: just after login, the message shows:
/bin/sh can't access tty; job control turned off
and as advertised, things like Ctrl+C will have no effect.The /sbin/getty on Ubuntu 14.04 has a -a argument for automatic login, but BusyBox' implementation doesn't.
/usr/bin #
/usr/bin # reboot
/usr/bin # umount: devtmpfs busy - remounted read-only
umount: can't remount /dev/root read-only
can't run '/sbin/swapoff': No such file or directory
The system is going down NOW!
Sent SIGTERM to all processes
Requesting system rebootesses
[ 837.214434] reboot: Restarting system
是不是这样,然后就没有然后了。。。
Allwinner全志V3s板子用ns2009驱动电阻触摸屏,在荔枝派zero工作好好的软件,我的板子出这个错误:
[ 13.046734] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 13.053285] input input1: Poll touch data failed: -110
[ 15.206667] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 15.213230] input input1: Poll touch data failed: -110
[ 17.366664] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 17.373225] input input1: Poll touch data failed: -110
[ 19.526660] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 19.533223] input input1: Poll touch data failed: -110
[ 21.686660] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 21.693220] input input1: Poll touch data failed: -110
[ 23.846663] i2c i2c-0: mv64xxx: I2C bus locked, block: 1, time_left: 0
[ 23.853220] input input1: Poll touch data failed: -110
SF: unrecognized JEDEC id bytes: c2, 20, 19
根据这行你查下代码看看是什么问题?
在u-boot源码目录根据 w25q256字符串搜到 ./drivers/mtd/spi/spi_flash_ids.c
找到 c2 20 19 那行: {"mx25l25635f", INFO(0xc22019, 0x0, 64 * 1024, 512, RD_FULL | WR_QPP) },
发现前面有个宏: #ifdef CONFIG_SPI_FLASH_MACRONIX
突然灵光一闪,去 .config 把这个宏打开,重新编译烧录运行,果然可以了。
感谢大神.
AllWinner全志V3s荔枝派zero板子 执行 ifconfig eth0 up 控制台console出现这些信息,应该如何解决?
# ifconfig eth0 up
[ 68.305218] Generic PHY stmmac-0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=stmmac-0:01, irq=-1)
[ 68.317245] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 68.324914] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
AllWinner全志V3s荔枝派zero板子用W25Q256,
发现我烧文件系统之后,串口无输出,
直接进入芯片内部的fel,
感觉spi flash被擦掉了, 这是什么情况?
-----------------------------------------
新鲜出炉 windows 版本 32M spi nor flash 版本烧录软件: sunxi-tools-win32-support_f1c100s_32M.7z
测试OK!
然鹅,还是没卵用:
=> saveenv
Saving Environment to SPI Flash...
sunxi_spi_set_speed: speed=100000, priv->regs->clk_ctl=0
sunxi_spi_set_speed: spriv->regs->tx_data=0
SF: unrecognized JEDEC id bytes: c2, 20, 19
*** Warning - spi_flash_probe_bus_cs() failed, using default environmenthimport_r: can't insert "stdin=serial,usbkbd" into hash table
himport_r: can't insert "stdout=serial,vga" into hash table
himport_r: can't insert "stderr=serial,vga" into hash table
=> saveenv
Saving Environment to SPI Flash...
sunxi_spi_set_speed: speed=100000, priv->regs->clk_ctl=0
sunxi_spi_set_speed: spriv->regs->tx_data=0
SF: unrecognized JEDEC id bytes: c2, 20, 19
*** Warning - spi_flash_probe_bus_cs() failed, using default environmenthimport_r: can't insert "stdin=serial,usbkbd" into hash table
himport_r: can't insert "stdout=serial,vga" into hash table
himport_r: can't insert "stderr=serial,vga" into hash table
=> saveenv
Saving Environment to SPI Flash...
sunxi_spi_set_speed: speed=100000, priv->regs->clk_ctl=0
sunxi_spi_set_speed: spriv->regs->tx_data=0
SF: unrecognized JEDEC id bytes: c2, 20, 19
*** Warning - spi_flash_probe_bus_cs() failed, using default environmenthimport_r: can't insert "stdin=serial,usbkbd" into hash table
himport_r: can't insert "stdout=serial,vga" into hash table
himport_r: can't insert "stderr=serial,vga" into hash table
=>
AllWinner全志V3s荔枝派zero板子用MX25L256 spi nor flash, sunxi-fel烧完之后发现启动不了:
U-Boot 2017.01-rc2-00071-gf03c1f5-dirty (Nov 07 2017 - 09:01:37 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
sunxi_spi_set_speed: speed=1000000, priv->regs->clk_ctl=0
sunxi_spi_set_speed: spriv->regs->tx_data=0
SF: unrecognized JEDEC id bytes: c2, 20, 19
*** Warning - spi_flash_probe() failed, using default environmentSetting up a 800x480 lcd console (overscan 0x0)
dotclock: 33000kHz = 33000kHz: (1 * 3MHz * 66) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: phy interface0
eth0: ethernet@1c30000
starting USB...
No controllers found
Hit any key to stop autoboot: 0
sunxi_spi_set_speed: speed=96000000, priv->regs->clk_ctl=0
sunxi_spi_set_speed: spriv->regs->tx_data=0
SF: unrecognized JEDEC id bytes: c2, 20, 19
Failed to initialize SPI flash at 0:0 (error -2)
No SPI flash selected. Please run `sf probe'
No SPI flash selected. Please run `sf probe'
=>
有没有大神遇到过这个问题?
root@Widora:/tmp/run/mountd/mmcblk0p1# cat /sbin/widora_mode
#!/bin/sh
if [ -n "$1" ];then
wifi down
sleep 1
case $1 in
repeater) #repeater mode
if [ -n "$2" ];then
uci set wireless.sta.ssid="$2"
if [ -n "$3" ];then
uci set wireless.sta.key="$3"
else
uci delete wireless.sta.key
fi
fi
uci set wireless.sta.network=lan
uci set wireless.sta.disabled=0
uci set wireless.ap.hidden=0
uci set dhcp.lan.ignore=1
uci set network.lan.proto='dhcp'
uci set network.lan.ifname='eth0'
uci delete network.wan
uci commit
/etc/init.d/network restart
;;
client) #client mode
if [ -n "$2" ];then
uci set wireless.sta.ssid="$2"
if [ -n "$3" ];then
uci set wireless.sta.key="$3"
else
uci delete wireless.sta.key
fi
fi
uci set wireless.sta.disabled=0
uci set wireless.sta.network=wan
uci set wireless.ap.hidden=1
uci set network.wan=interface
uci set network.wan.ifname='apcli0'
uci set network.wan.proto='dhcp'
uci set dhcp.lan.ignore=0
uci set network.lan.proto=static
uci set network.lan.ifname='eth0'
uci commit
/etc/init.d/network restart
;;
router) #router mode
uci set wireless.sta.network=wan
uci set wireless.sta.disabled=1
uci set wireless.ap.hidden=0
uci set dhcp.lan.ignore=0
uci set network.lan.proto=static
uci delete network.lan.ifname
uci set network.wan=interface
uci set network.wan.ifname='eth0'
uci set network.wan.proto='dhcp'
uci commit
/etc/init.d/network restart
;;
pppoe) #pppoe mode
uci set wireless.sta.network=wan
uci set wireless.sta.disabled=1
uci set wireless.ap.hidden=0
uci set dhcp.lan.ignore=0
uci set network.lan.proto=static
uci delete network.lan.ifname
uci set network.wan=interface
uci set network.wan.ifname='eth0'
uci set network.wan.proto='pppoe'
[ -n "$2" ] && uci set network.wan.username="$2"
[ -n "$3" ] && uci set network.wan.password="$3"
uci commit
/etc/init.d/network restart
;;
esacelse
echo "---------------------------------------------------"
echo "widora_mode help"
echo "MODE | REPEATER | CLIENT | ROUTER PPPOE |"
echo "LAN | eth0 ra0 apcli0| eth0 | ra0 |"
echo "WAN | | apcli0 | eth0 |"
echo "\"widora_mode repeater\""
echo "\"widora_mode repeater ssid key\""
echo "\"widora_mode client\""
echo "\"widora_mode client ssid key\""
echo "\"widora_mode router\""
echo "\"widora_mode pppoe\""
echo "\"widora_mode pppoe user_name password\""
echo "---------------------------------------------------"
fi
root@Widora:/tmp/run/mountd/mmcblk0p1# madplay tkzc.mp3
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert Leslie et al.
Title: ▒▒▒֮▒▒
Artist: ▒▒▒ٰ▒
[ 1787.030000] ****** wm8960_postinit ******
[ 1787.050000] mtk_dai: ASoC: unmatched rate symmetry: 8000 - 44100
[ 1787.060000] playback free_dma_buffer
[ 1787.060000] ptri2s_config->mmap_index:8
output: ioctl(SNDCTL_DSP_SPEED): Invalid argument
root@Widora:/tmp/run/mountd/mmcblk0p1#
救命,madplay播放mp3不出声, 哭 ...
碰到和楼主一样的问题,也是修改 /etc/opkg/distfeeds.conf 文件搞定了, 谢谢楼上的大侠
可是我的widora没有aplay, arecord, madplay应该怎么办呢?
搞定,谢谢!
root@Widora:/tmp/run/mountd/mmcblk0p1# aplay chimes.wav
Playing WAVE 'chimes.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
[ 1581.930000] ****** wm8960_postinit ******
[ 1583.270000] playback free_dma_buffer
[ 1583.280000] ptri2s_config->mmap_index:8
root@Widora:/tmp/run/mountd/mmcblk0p1#
页次: 1