感谢楼上几位大侠, 终于搞定:
添加一个fixcode.asm到工程, 内容是:
CSEG AT 03780h
CFG_BYTE_0: DB 'A'
CFG_BYTE_1: DB 'B'
END
重新编译生成bin即可。
链接: https://pan.baidu.com/s/1iRQZL2CC6PoQbfyAosRQVQ
提取码:f5va
AD16.2
https://blog.csdn.net/zxjohnson/article/details/106621457
从Qt5.15.0起,对于开源用户,Qt官方不再提供独立安装文件,且不再有bug修复版本(比如Qt5.15.1)
如果想体验Qt5.15及之后的版本,就要培养一个新技能——编译Qt源码
从编译到发布大概需要这么几个步骤:
1. 从Qt官网下载源码;
2. 编译源码;
3. 将编译后的qmake.exe导入QtCreator或者Visual Studio;
4. 使用QtCreator或者Visual Studio编译Qt项目;
5. 项目发布可仍然使用windeployqt.exe。
拉轰的脚踏车 说:请问下我编写了一个Qt应用程序, 如何添加到buildroot的package里面去,如果自动拷贝到根文件系统?
Building a Linux system for the STM32MP1: setting up a Qt5 application development environment
https://github.com/tpetazzoni/buildroot/commit/a0bdf09634961a84f2d801da08e906eae8d7ebf3
https://github.com/tpetazzoni/buildroot/commits/2019.02/stm32mp157-dk-blog-4
学到了! 简直完美解答我心中的疑虑,这个老外耐心足够好。
smartcar 说:hanzixi_angel 说:晕哥 如何使用de功能 在Linux设备树中更改lcd屏幕的参数 现在都是更改linux/drivers/gpu/drm/panel/panel-simple.c源码 然后编译镜像之后烧写 以后会有多种屏幕 这样不太方便 最好只修改设备树 在设备树配置参数 只更换设备树即可 这样最好
你的de功能正常了吗?
de功能正常啊 修改了linux/drivers/gpu/drm/panel/panel-simple.c源码 适配了屏幕 但是这样修改不太好 想只修改设备树 在设备树增加屏幕参数
drm的话如果找不到现成的LCD配置估计就一定要修改那部分的代码吧,
https://github.com/ccrisan/motionpie/blob/master/board/common/overlay/etc/init.d/S40network
#!/bin/sh
mkdir -p /var/lib/dhcp
dh_conf="/var/cache/dhclient.conf"
sys_static_conf="/etc/static_ip.conf"
static_conf="/data/etc/static_ip.conf"
watch_conf="/data/etc/watch.conf"
link_watch=yes
link_watch_timeout=20
ip_watch=yes
ip_watch_timeout=40
link_nego_timeout=10
eth=eth0
wlan=wlan0
if [ -f $watch_conf ]; then
source $watch_conf
fi
if [ -f $sys_static_conf ] && ! [ -f $static_conf ]; then
mkdir -p $(dirname $static_conf)
cp $sys_static_conf $static_conf
fi
test -r $static_conf && source $static_conf
watch_eth() {
count=0
while true; do
sleep 5
if mii-tool $eth 2>&1 | grep "link ok" > /dev/null; then
count=0
else
if [ $count -lt $link_watch_timeout ]; then
count=$(($count + 5))
logger -t ethernet -s "disconnected"
else
logger -t ethernet -s "disconnected for $link_watch_timeout seconds, rebooting"
reboot
fi
fi
done
}
watch_ip() {
iface=$1
count=0
while true; do
sleep 5
if ip addr show dev $iface | grep inet &>/dev/null; then
count=0
else
if [ $count -lt $ip_watch_timeout ]; then
count=$(($count + 5))
logger -t network -s "$iface has no IP address"
else
logger -t network -s "$iface had no IP address for $ip_watch_timeout seconds, rebooting"
reboot
fi
fi
done
}
start_lo() {
ifconfig lo up
}
start_wlan() {
if ! ifconfig $wlan >/dev/null 2>&1; then
echo "$wlan: no device"
return
fi
if [ "$(cat /sys/class/net/$wlan/carrier 2>/dev/null)" != "1" ]; then
echo "$wlan: no link"
return
fi
if [ -n "$static_ip" ]; then
echo "$wlan: setting static IP to $static_ip"
ifconfig $wlan $static_ip up
static_ip="" # won't be used again
else
echo "$wlan: starting dhclient"
dhclient -cf "$dh_conf" $wlan
fi
if [ "$ip_watch" == "yes" ]; then
watch_ip $wlan &
fi
}
start_eth() {
# wait up to 3 seconds for driver
count=0
while ! ifconfig $eth >/dev/null 2>&1; do
sleep 1
count=$(($count + 1))
if [ $count -ge 3 ]; then
echo "$eth: no device"
return
fi
done
# bring it up
ifconfig $eth up
# wait up to 3 seconds for operstate
count=0
while [ "$(cat /sys/class/net/$eth/operstate 2>&1)" == "unknown" ]; do
sleep 1
count=$(($count + 1))
if [ $count -ge 3 ]; then
echo "$eth: no link"
return
fi
done
# wait up to link_nego_timeout seconds for link
count=0
while [ "$(cat /sys/class/net/$eth/carrier 2>&1)" != "1" ]; do
sleep 1
count=$(($count + 1))
if [ $count -ge $link_nego_timeout ]; then
echo "$eth: no link"
return
fi
done
if [ -n "$static_ip" ]; then
echo "$eth: setting static IP to $static_ip"
ifconfig $eth $static_ip up
static_ip="" # won't be used again
else
echo "$eth: starting dhclient"
dhclient -cf "$dh_conf" $eth
fi
if [ "$link_watch" == "yes" ]; then
watch_eth &
fi
if [ "$ip_watch" == "yes" ]; then
watch_ip $eth &
fi
}
start() {
hostname=$(hostname)
echo "send host-name = \"$hostname\";" > /var/cache/dhclient.conf
start_lo
start_wlan
# if wifi or ppp connection configured, start eth in background
ssid=$(cat /data/etc/wpa_supplicant.conf 2>&1 | grep ssid | grep -v scan_ssid | cut -d '"' -f 2)
if [ -n "$ssid" ] || [ -r /data/etc/ppp/modem ]; then
start_eth &>/dev/null &
else
start_eth
fi
if [ -n "$static_gw" ]; then
echo "setting static gateway to $static_gw"
ip route add default via $static_gw
fi
if [ -n "$static_dns" ]; then
echo "setting static DNS server to $static_dns"
echo "nameserver $static_dns" > /etc/resolv.conf
fi
# print the current network configuration
ifconfig -a
}
case "$1" in
start)
echo -n "Starting network: "
start
echo "done"
;;
stop)
echo -n "Stopping network: "
killall dhclient
ps | grep S40network | grep -v $$ | grep -v grep | tr -s ' ' | sed -e 's/^\s//' | cut -d ' ' -f 1 | xargs -r kill
echo "done"
;;
restart|reload)
"$0" stop
"$0" start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit $?
这个脚本不错,可以试一试
晕哥 说:这个问题我以前也纳闷过,
后来发现 u-boot的 common/fdt_support.c 里面有 fdt_setup_simplefb_node()这个函数,
他居然会自己创建设备树, 然后传递给Linux用,赶脚好神奇!晕哥 如何使用de功能 在Linux设备树中更改lcd屏幕的参数 现在都是更改linux/drivers/gpu/drm/panel/panel-simple.c源码 然后编译镜像之后烧写 以后会有多种屏幕 这样不太方便 最好只修改设备树 在设备树配置参数 只更换设备树即可 这样最好
你的de功能正常了吗?
https://whycan.com/files/members/1116/_20200924151151.png
就这样的 不知道在那里修改那个编译的版本
这个貌似就是C99支持不全,官方都用VS2017了,你何必折腾自己?
https://whycan.cn/files/members/2006/tu1_20191121-1739.jpg
c9这个100n的电容脱了,这个滤波没有不影响吧。
R1,R2没有焊接,RFC脚是悬空的,看手册这个脚是设置上或下降沿读数据的。
https://whycan.cn/files/members/2006/tu2.jpg
https://whycan.cn/files/members/2006/tu0.jpg
https://whycan.cn/files/members/2006/tu3.jpg
https://whycan.cn/files/members/2006/tu4.jpg
怎么感觉显示有点不正常呢,最后解决了吗?
没那么麻烦拉,再给大家推荐一个傻瓜方法kpartx,一句命令搞定。
https://blog.csdn.net/qq_28693567/article/details/80324846
这个好,学到一招。
https://whycan.cn/files/members/3311/QQ图片20200722172134.jpg
第二版已经下单,很快就要与大家见面了,修复了不少第一版的问题
干得漂亮
目测BGA封装,劝退劝退
有关于荔枝派制作文件系统的标准操作么,我就是解压到主分区,可能是我操作有问题
1. 添加虚拟can网络, 参考can.html:
ip link add type vcan
指定名称的can网络:
ip link add dev vcan42 type vcan
2. 使能 can 网络:
https://www.technexion.com/support/knowledgebase/using-the-can-bus-from-linux-shell/
http://codingadventures.org/2018/10/01/setting-and-testing-a-can-bus-connection-in-linux/
ip link set vcan0 type can bitrate 125000
ifconfig vcan0 up
3. 测试
先抓包:
candump can0 &
再发送:
cansend can1 123#CAFEBABE
买了块F1C200S的板子 需要手册
0.949797] SCSI Media Changer driver v0.25
[ 0.957610] m25p80 spi0.0: w25q128 (16384 Kbytes)
[ 0.962464] 5 ofpart partitions found on MTD device spi0.0
[ 0.968096] Creating 5 MTD partitions on "spi0.0":
[ 0.972946] 0x000000000000-0x000000070000 : "u-boot"
[ 0.980506] rfd_ftl: no RFD magic found in 'u-boot'
[ 0.986556] ftl_cs: FTL header not found.
[ 0.992325] 0x000000070000-0x000000080000 : "dtb"
[ 0.998475] ftl_cs: FTL header not found.
[ 1.004100] 0x000000080000-0x000000480000 : "kernel"
[ 1.019930] rfd_ftl: no RFD magic found in 'kernel'
[ 1.027130] ftl_cs: FTL header not found.
[ 1.032752] 0x000000480000-0x000000c00000 : "rootfs"
[ 1.056702] rfd_ftl: no RFD magic found in 'rootfs'
[ 1.063882] ftl_cs: FTL header not found.
[ 1.069612] 0x000000c00000-0x000001000000 : "overlayfs"
[ 1.085693] rfd_ftl: no RFD magic found in 'overlayfs'
[ 1.093115] ftl_cs: FTL header not found.分区信息多了一些 ftl 异常,大家有踩过坑吗?
从来没有遇到这种问题,得跟踪一下代码
建议先用红白机大佬的这种lvds转换方案,后面再costdown: https://whycan.cn/t_3472.html#p32696
https://item.taobao.com/item.htm?id=45502231519
高仿汉仁HanRun网络隔离变压器RJ45插座滤波器HR911105A RJ45带灯
价格 ¥3.00
这么看来, 高仿石锤了!
https://s.taobao.com/search?q=HY951180A
https://item.szlcsc.com/35646.html
都是 HY951180A, 淘宝卖4块, LC卖13.5块?
直连也会出现,但是网卡接收数据和内存减少的速度要慢很多
有没有可能是这个问题: https://whycan.cn/t_3887.html
https://item.taobao.com/item.htm?spm=a1z09.2.0.0.76262e8dzsKKpW&id=524754285200&_u=gef23h147f
这家还行,买过几次,是很粗线芯的硅胶线。可以少买点试试。
感谢推荐,我这就去买。
不错哦,求插座链接和w600模块链接。