This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[AM335x] 從zImage(可成功開機進Login畫面) 變更為uImage,需修改甚麼?



您好

使用AM335x,透過下方command將Image燒入SOC中

U-Boot # load usb 0:1 0x82000000 zImage

U-Boot # mmc erase 0xc00 0x2800

U-Boot # mmc write 0x82000000 0xc00 0x2800

U-Boot # setenv bootindex 1

U-Boot # setenv emmcrootfs_realblkcnt 0x0

U-Boot # saveenv

可順利開機進Login畫面

目前要改用uImage,在Makefile中修改編譯的方式

舊的 :

-  $(MAKE) -C $(KERNEL_DIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) O=$(OUT_KERNEL) zImage

新的 :

+ $(MAKE) -C $(KERNEL_DIR) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) O=$(OUT_KERNEL) LOADADDR=0x82000000 uImage

但用load方式,將uImage推入進mmc後,開機後會卡住 

Error 訊息如下

MMC read: dev # 0, block # 2048, count 1024 ... 1024 blocks read: OK

MMC read: dev # 0, block # 3072, count 10240 ... 10240 blocks read: OK

MMC read: dev # 0, block # 13312, count 262144 ... 262144 blocks read: OK
Bad Linux ARM zImage magic!

請問是否可以指點一下,如何透過uImage開機進login畫面

thanks

Edwin Huang