close
booting後欲載入zImage會出現Bad Magic Number,參考原始碼,發現在.../common/cmd_bootm.c檔案中check image format沒處理好,
加入以下condition後讓addr紀錄virtual memory mapping real memory位置,並於header 64bytes中分別紀錄OS及kernel執行第一行指令..,
並goto至after_header_check繼續處理bootm相關參數..
#ifdef CONFIG_IMAGE_BOOT
printf("Boot with Image\n");
addr = virt_to_phys(addr);
hdr->ih_os = IH_OS_LINUX;
hdr->ih_ep = ntohl(addr);
hdr->ih_comp = IH_COMP_NONE;
goto after_header_check;
#endif
Uncompressing linux畫面:
全站熱搜