做网站谁家做的好织梦者网站模板
- 作者: 五速梦信息网
- 时间: 2026年03月19日 09:56
当前位置: 首页 > news >正文
做网站谁家做的好,织梦者网站模板,oto网站开发,聊城网站开发个人文章目录 官方配置新建一套新配置新建板级pro-liefyuan-rv1126.mk配置文件新建一个Buildroot的defconfigs文件 吐槽#xff1a;RP-RV1126 的SDK奇怪的地方make ARCHarm xxx_defconfig 生成的.config文件位置不一样savedefconfig命令直接替换原配置文件坑爹的地方 Buildroot上增… 文章目录 官方配置新建一套新配置新建板级pro-liefyuan-rv1126.mk配置文件新建一个Buildroot的defconfigs文件 吐槽RP-RV1126 的SDK奇怪的地方make ARCHarm xxx_defconfig 生成的.config文件位置不一样savedefconfig命令直接替换原配置文件坑爹的地方 Buildroot上增加WiFi和BT增加BT需要确定连接的串口号WiFi/BT模块的模块和固件位置BT使用过程进入BT交互模式 测试WiFi速度AP6256 官方配置 buildroot官方配置完整编译需要30分钟。我想搞一个简单的配置可以快速编译快速测试一些简单的功能。 命令对应的文件描述./build.sh lunchpro-liefyuan-rv1126.mk选择全局配置文件source envset.shrockchip_rv1126_rv1109_liefyuan_defconfig选择Buildroot配置文件 新建一套新配置 新建板级pro-liefyuan-rv1126.mk配置文件 定义一个自己的pro-liefyuan-rv1126.mk文件 基于原来的文件./device/rockchip/rv1126_rv1109/pro-rv1126.mk 改为./device/rockchip/rv1126_rv1109/pro-liefyuan-rv1126.mk 拷贝目录sdk/device/rockchip/rv1126_rv1109/下的pro-rv1126.mk改成自己的名字pro-liefyuan-rv1126.mk 目前的打算只修改Buildroot文件系统的配置Uboot和Kernel的配置不变。
Buildroot config
export RK_CFG_BUILDROOTrockchip_rv1126_rv1109_facial_gate改为
Buildroot config
export RK_CFG_BUILDROOTrockchip_rv1126_rv1109_liefyuanpro-liefyuan-rv1126.mk 的全部内容 #!/bin/bash# Target arch export RK_ARCHarm
Uboot defconfig
export RK_UBOOT_DEFCONFIGrv1126
Uboot image format type: fit(flattened image tree)
export RK_UBOOT_FORMAT_TYPEfit
Kernel defconfig
export RK_KERNEL_DEFCONFIGrv1126_defconfig
Kernel defconfig fragment
export RK_KERNEL_DEFCONFIG_FRAGMENTrv1126-facial-gate.config
Kernel dts
#export RK_KERNEL_DTSrv1109-evb-ddr3-v13-facial-gate export RK_KERNEL_DTSpro-rv1126
boot image type
export RK_BOOT_IMGzboot.img
kernel image path
export RK_KERNEL_IMGkernel/arch/arm/boot/zImage
kernel image format type: fit(flattened image tree)
export RK_KERNEL_FIT_ITSboot.its
parameter for GPT table
export RK_PARAMETERparameter-facial-gate.txt
Buildroot config
export RK_CFG_BUILDROOTrockchip_rv1126_rv1109_liefyuan
Recovery config
export RK_CFG_RECOVERYrockchip_rv1126_rv1109_recovery
Recovery image format type: fit(flattened image tree)
export RK_RECOVERY_FIT_ITSboot4recovery.its
ramboot config
export RK_CFG_RAMBOOT
Pcba config
export RK_CFG_PCBA
Build jobs
export RK_JOBS12
target chip
export RK_TARGET_PRODUCTrv1126_rv1109
Set rootfs type, including ext2 ext4 squashfs
export RK_ROOTFS_TYPEext4
rootfs image path
export RK_ROOTFS_IMGrockdev/rootfs.${RK_ROOTFS_TYPE}
rootfs system
export RK_ROOTFS_SYSTEMbuildroot
Set ramboot image type
export RK_RAMBOOT_TYPE
Set oem partition type, including ext2 squashfs
export RK_OEM_FS_TYPEext2
Set userdata partition type, including ext2, fat
export RK_USERDATA_FS_TYPEext2 #OEM config export RK_OEM_DIRoem_facial_gate
OEM build on buildroot
export RK_OEM_BUILDIN_BUILDROOTNO #userdata config, if not define this, system will format by RK_USERDATA_FS_TYPE export RK_USERDATA_DIRuserdata_normal #misc image export RK_MISCwipe_all-misc.img #choose enable distro module export RK_DISTRO_MODULE
Define pre-build script for this board
export RK_BOARD_PRE_BUILD_SCRIPTapp-build.sh
Define package-file for update.img
export RK_PACKAGE_FILErv1126_rv1109-package-file新建一个Buildroot的defconfigs文件
定义一个自己的Buildroot的configs文件 基于原来的文件./buildroot/configs/rockchip_rv1126_rv1109_facial_gate_defconfig 改为./buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig
\( cp ./buildroot/configs/rockchip_rv1126_rv1109_facial_gate_defconfig ./buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig原来的Buildroot配置太复杂了我精简到如下
buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig 文件的全部内容
#include base.config
#include base_extra.config
#include debug.config
#include audio.config
#include wifi.config
#include network.config
#include rv1126_rv1109_arm.config
#include updateEngine.config
BR2_PACKAGE_RKWIFIBT_AP6256y
BR2_PACKAGE_RKWIFIBT_BTUARTttyS0
BR2_PACKAGE_DRM_DISPLAY_OUTPUTy
BR2_PACKAGE_LIBERATIONy
BR2_PACKAGE_SOURCE_HAN_SANS_CNy
BR2_PACKAGE_QT5BASE_WIDGETSy
BR2_PACKAGE_QT5BASE_FONTCONFIGy
BR2_PACKAGE_QT5BASE_GIFy
BR2_PACKAGE_QT5BASE_JPEGy
BR2_PACKAGE_QT5BASE_PNGy
BR2_PACKAGE_QT5BASE_USE_RGAy
BR2_PACKAGE_QT5BASE_LINUXFB_ARGB32y
BR2_PACKAGE_QT5MULTIMEDIAy
BR2_PACKAGE_QT5QUICKCONTROLSy
BR2_PACKAGE_QT5SERIALPORTy
BR2_PACKAGE_BLUEZ_TOOLSy
BR2_PACKAGE_BLUEZ5_UTILSy
BR2_PACKAGE_BLUEZ5_UTILS_OBEXy
BR2_PACKAGE_BLUEZ5_UTILS_CLIENTy
BR2_PACKAGE_BLUEZ5_UTILS_GATTTOOLy
BR2_PACKAGE_DHCPy这里其实就设置了WiFi蓝牙相关和Qt相关的配置整个编译下来不到8分钟。
吐槽RP-RV1126 的SDK奇怪的地方
make ARCHarm xxx_defconfig 生成的.config文件位置不一样
一般来说主线Buildroot我在Buildroot根目录下运行命令make ARCHarm xxxx_defconfig会在当前目录下产生一个.config文件,但是Rockchip的不一样运行了上述命令后它是会在这里产生该文件./output/xxxx/.config
savedefconfig命令直接替换原配置文件
liefyuanubuntu:~/rv1126/rp_rv1126_sdk/buildroot\) make ARCHarm savedefconfigGEN /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/output/rockchip_rv1126_rv1109_liefyuan/Makefile
grep #include /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig.split || true
cat /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig.split
/home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/build/defconfig_hook.py -s /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig.split /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig
rm /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig.split/home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/build/defconfig_hook.py -s /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig.split /home/liefyuan/rv1126/rp_rv1126_sdk/buildroot/configs/rockchip_rv1126_rv1109_liefyuan_defconfig 这句话把我震惊了我运行命令make ARCHarm savedefconfig之后它直接保存到原文件了。。。。 坑爹的地方
清除buildroot的编译内容需要进入sdk/buildroot/目录进行make clean才可以清除。./build.sh cleanall并不能清除所有生成文件重新编译的顺序 全部清除./build.sh cleanall删除固件等cd ./rockdev 然后 rm ./*重新编译./build.sh all构建一次完整固件./build.sh updateimg
Buildroot上增加WiFi和BT
增加BT需要确定连接的串口号 根据以上信息确认BT串口连接的是UART0也就是ttyS0。
因此Buildroot里面配置相应的串口号。 WiFi/BT模块的模块和固件位置
开发板上的位置
/system/lib/modules/bcmdhd.ko #驱动ko如果是ko编译的话
/system/etc/firmware/fw_bcm43455c0_ag.bin #驱动firmware文件存放位置
/system/etc/firmware/nvram_ap6255.txt #驱动nvram文件存放位置
/system/etc/firmware/BCM4345C0.hcd #蓝牙firmware文件如果有蓝牙功能BT使用过程
killall brcm_patchram_plus1echo 0 /sys/class/rfkill/rfkill0/state # 下电
echo 1 /sys/class/rfkill/rfkill0/state # 上电brcm_patchram_plus1 –bd_addr_rand –enable_hci –no2byt
es –use_baudrate_for_download –tosleep 200000 –baudrate 1500000 –patchram /s
ystem/etc/firmware/bcm43438a1.hcd /dev/ttyS0 hciconfig -a
hciconfig hci0 uphcitool lescan
hcitool scan
进入BT交互模式
cd /usr/libexec/bluetooth/
./bluetoothd -n -d bluetoothctl在bluetoothctl中我们可以进行手动配对操作。配对时我们需要提供设备的MAC地址并且将设备设置为可被发现模式。
$ bluetoothctl
[bluetooth]# power on
[bluetooth]# discoverable on
[bluetooth]# scan on
[bluetooth]# devices
Device 20:13:03:22:66:19 Bose SoundSport Wireless
[bluetooth]# pair 20:13:03:22:66:19
[bluetooth]# trust 20:13:03:22:66:19
[bluetooth]# connect 20:13:03:22:66:19
[bluetooth]# exit测试WiFi速度AP6256
ubuntu端服务器
liefyuanubuntu:~/rv1126/rp_rv1126_sdk/buildroot$ iperf -s
Server listening on TCP port 5001
TCP window size: 128 KByte (default)
[ 4] local 192.168.1.105 port 5001 connected with 192.168.1.111 port 49918 [ ID] Interval Transfer Bandwidth [ 4] 0.0-10.4 sec 37.6 MBytes 30.3 Mbits/sec RV1126开发板端
[rootRV1126_RV1109:/etc]# iperf -c 192.168.1.105 -i 1
Client connecting to 192.168.1.105, TCP port 5001
TCP window size: 43.8 KByte (default)
[ 3] local 192.168.1.111 port 49918 connected with 192.168.1.105 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0- 1.0 sec 3.25 MBytes 27.3 Mbits/sec [ 3] 1.0- 2.0 sec 3.62 MBytes 30.4 Mbits/sec [ 3] 2.0- 3.0 sec 3.75 MBytes 31.5 Mbits/sec [ 3] 3.0- 4.0 sec 4.00 MBytes 33.6 Mbits/sec [ 3] 4.0- 5.0 sec 4.38 MBytes 36.7 Mbits/sec [ 3] 5.0- 6.0 sec 3.62 MBytes 30.4 Mbits/sec [ 3] 6.0- 7.0 sec 3.12 MBytes 26.2 Mbits/sec [ 3] 7.0- 8.0 sec 4.00 MBytes 33.6 Mbits/sec [ 3] 8.0- 9.0 sec 3.88 MBytes 32.5 Mbits/sec [ 3] 9.0-10.0 sec 4.00 MBytes 33.6 Mbits/sec [ 3] 0.0-10.1 sec 37.6 MBytes 31.1 Mbits/sec测试速度约37.6MByte
- 上一篇: 做网站涉及个人隐私安卓应用软件开发
- 下一篇: 做网站申请域名的流程wordpress每个标签文章置顶
相关文章
-
做网站涉及个人隐私安卓应用软件开发
做网站涉及个人隐私安卓应用软件开发
- 技术栈
- 2026年03月19日
-
做网站设计怎么进企业番禺核酸检测点在哪
做网站设计怎么进企业番禺核酸检测点在哪
- 技术栈
- 2026年03月19日
-
做网站设计师能10年赚100万吗做宠物食品的网站
做网站设计师能10年赚100万吗做宠物食品的网站
- 技术栈
- 2026年03月19日
-
做网站申请域名的流程wordpress每个标签文章置顶
做网站申请域名的流程wordpress每个标签文章置顶
- 技术栈
- 2026年03月19日
-
做网站什么公司wordpress文章页排版
做网站什么公司wordpress文章页排版
- 技术栈
- 2026年03月19日
-
做网站什么公司好青岛做网站青岛做网站
做网站什么公司好青岛做网站青岛做网站
- 技术栈
- 2026年03月19日
