yocto编译rootfs文件系统中没有inittab等文件

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

yocto编译rootfs文件系统中没有inittab等文件

1,650 Views
475143463
Contributor III

yocto编译rootfs文件系统(内核版本4.9.88),生成压缩包,可以与对应的uboot和kernel烧录到imx6q开发板中正常运行。

但是在添加自定义的开机自动运行的脚本时发现,在/etc/init.d/下没有rc,rcS文件,在/etc下没有inittab文件。如此,把自定义脚本放到rc5.d或者其他文件夹地下,开机都不能自动运行。

翻阅网上资料好几天,没有找到解决办法。是否有大牛可以给点支持啊,特急。

另外,手动放入rcS文件,也没有用。

2 Replies

1,102 Views
jimmychan
NXP TechSupport
NXP TechSupport

which image in yocto you build?

you may try to build this:

bitbake core-image-full-cmdline

0 Kudos

1,102 Views
475143463
Contributor III

thinks a lot。

In this case, the compile configuration should be modified. For specific modification, we can refer to the difference between compiling systemd and sysvinit in the following url.

https://blog.csdn.net/z2066411585/article/details/90415443 

https://blog.csdn.net/z2066411585/article/details/90415443