我想用不正常的根文件系統來引導我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