Buildroot - System doesn't boot - /dev/ttyS0 n

2019-09-11 07:27发布

问题:

I m using buildroot to create a filesystem for a Raspberry Pi. I have uncompressed the filesystem image in the Root partition of my SD card but I can't boot the operative system. I get the following errors:

Can't open /dev/null no such file or directory

Can't open /dev/ttyS0 no such file or directory

Which line of the configuration tool should I enable or modify in order to boot the system?

EDIT

I've followed the steps provided by Thomas Petazzoni and used a preconfigured version of buildroot. Now the system works but I still don't know which option in the kernel configuration tool was causing the problem.

回答1:

You don't have devtmpfs enabled in your kernel.

Also, you should start by using the raspberrypi_defconfig in Buildroot instead of rolling your own. Do:

make distclean
make raspberrypi_defconfig
make

And then follow the instructions in board/raspberrypi/readme.txt to know how to use the resulting images.