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