我正在使用 buildroot 为 Raspberry Pi 创建文件系统。我已经解压缩了我的 SD 卡根分区中的文件系统镜像,但我无法启动操作系统。我收到以下错误:
Can't open /dev/null no such file or directory
Can't open /dev/ttyS0 no such file or directory
我应该启用或修改配置工具的哪一行才能启动系统?
编辑
我已按照 Thomas Petazzoni 提供的步骤进行操作,并使用了预配置版本的 buildroot。现在系统可以工作了,但我仍然不知道内核配置工具中的哪个选项导致了问题。
最佳答案
您的内核中没有启用 devtmpfs。
此外,您应该首先使用 Buildroot 中的 raspberrypi_defconfig
而不是自己动手。做:
make distclean
make raspberrypi_defconfig
make
然后按照 board/raspberrypi/readme.txt
中的说明了解如何使用生成的图像。
关于linux - Buildroot - 系统不启动 -/dev/ttyS0 没有这样的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25858279/