petalinux-config -c rootfs 依次选择 Image Features -> serial-autologin-root
这是配置
进来就是root权限
创建并安装名为 myapp-init 的新建应用程序
petalinux-create -t apps --template install -n myapp-init --enable
编辑 project-spec/meta-user/recipes-apps/myapp-init/myapp-init.bb文件
删除.bb文件中原有的内容,把以下内容写入.bb文件中:修改后
#this file is the myapp-init recipe.
#
SUMMARY