Bootloader開基三秒內按下空白鍵

輸入pri 指令確認 IP 相關資訊

輸入run kernel 開始燒錄kernel

輸入run rootfs 開始燒入filesystem

開機完成,按任一件進入console

接著在交叉編譯的Linux PC下進行:
建立 hello.c內容如下:

編譯:
arm-linux-gcc hello.c -o hello
完成後將hello執行黨拷貝到USB上,然後卸載USB將它插到以開機完成的2440開發版,
接著執行下列指令進行USB掛載
mount /dev/sda1 /tmp/udisk/
執行
cd /tmp/udisk
./hello

卸載USB
cd /
umount /tmp/udisk/
完成。
沒有留言:
張貼留言