我想用不正常的根文件系统来引导我imx53-QSB板但静态编译hello_world.c文件换句话说hello_world_static.out。 为了实现这一点,我写了一个hello_world.c文件交叉编译静态,我把它放在我的SD卡的分区mmcblk0p1 ext4分区。我把我的uImage和我的u-boot.imx放在mmcblk0中。启动我的系统后,我得到了一个内核恐慌:使用静态编译的C文件的根文件系统
内核恐慌 - 不同步:没有找到的init。尝试将init =选项传递给内核。有关指导,请参阅Linux Documentation/init.txt。
任何解决方案?谢谢
请提供你的'hello_world.c'文件的代码。同时告诉我们您正在使用哪个工具链来构建它。 –
@SamProtsenko这里是我的hello_world.c代码'#include int main(void) { printf(“hello,world \ n”); return 0; }'我用_gcc-linaro-arm-linux-gnueabihf-4.9-2014.09_linux_ –
EngineerN