a40i 删掉QT库的方法 方法一 将/workspace/allwinner/A40i/bsp/lichee/buildroot-201611/target/user_rootfs_extra/usr/local路径下的Qt-5.9.0删掉。 将lichee/buildroot-201611/target/user_rootfs_extra/etc/init.d/路径下的runqt文件中的qt程序注释掉:
#FRAMEBUFFER=/dev/fb0 /Launcher >/dev/null & #FRAMEBUFFER=/dev/fb1 /MediaUI >/dev/null & #FRAMEBUFFER=/dev/fb2 /CameraUI >/dev/null & 删除lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/local目录下的Qt-5.9.0
编译打包
build.sh build.sh pack 方法二 删除lichee/out/sun8iw11p1/linux/common/buildroot/target/usr/local目录下的Qt-5.9.0 注释lichee/out/sun8iw11p1/linux/common/buildroot/target/etc/init.d目录下runqt中的
#FRAMEBUFFER=/dev/fb0 /Launcher >/dev/null & #FRAMEBUFFER=/dev/fb1 /MediaUI >/dev/null & #FRAMEBUFFER=/dev/fb2 /CameraUI >/dev/null & 生成文件系统镜像
source .buildconfig source buildroot-201611/scripts/mkcmd.sh init_defconf PATH="${LICHEE_BR_OUT}/host/bin:${LICHEE_BR_OUT}/host/sbin:${LICHEE_BR_OUT}/host/usr/bin:${LICHEE_BR_OUT}/host/usr/sbin:${LICHEE_BR_OUT}/host/opt/ext-toolchain/bin:$PATH" mke2img -d ${LICHEE_BR_OUT}/target -G 4 -R 1 -B 0 -I 0 -o ${LICHEE_BR_OUT}/images/rootfs.ext2 cp ${LICHEE_BR_OUT}/images/rootfs.ext4 ${LICHEE_PLAT_OUT} 打包
cd /root/workspace/allwinner/A40i/bsp/lichee ./build.sh pack
a40i 去掉QT的方法 方法一:在板子上直接操作: # pwd /etc/init.d # ls S01logging S50sshd S93network S10udev S50telnet auto_config_network S20urandom S70vsftpd rcK S30dbus S80dhcp-relay rcS S49ntp S80dhcp-server runqt S50dropbear S80dnsmasq S50lighttpd S91smb # vi runqt 您需要修改runqt开机自启的脚本,修改完的结果如下,红色部分为改动部分:
#!/bin/sh killall Launcher MediaUI CameraUI . /qt5.9.sh echo 0,0 > /sys/class/disp/disp/attr/fb2ui #FRAMEBUFFER=/dev/fb0 /Launcher >/dev/null & #FRAMEBUFFER=/dev/fb1 /MediaUI >/dev/null & #FRAMEBUFFER=/dev/fb2 /CameraUI >/dev/null & echo Launcher, > /sys/inputFocus/write
方法二:在源码中修改 root@forlinx:~/workspace/allwinner/A40i/bsp/lichee/buildroot-201611/target/user_rootfs_extra/etc/init.d# ls auto_config_network rcS runqt ts_module.conf root@forlinx:~/workspace/allwinner/A40i/bsp/lichee/buildroot-201611/target/user_rootfs_extra/etc/init.d# vi runqt 您需要修改runqt开机自启的脚本,修改的方法同上。
然后再编译打包生成镜像。 |