2014-09-25 64 views
1

我在啓動Linux 3.16.1時遇到問題。我使用at91sam9263_defconfig編譯了來自http://www.kernel.org的源代碼。AT91SAM9263ek使用設備樹啓動Linux失敗

我已經在引導選項中添加了扁平設備樹支持。 在此(http://www.slideshare.net/softpapa/devi ... ux-8930303)演示文稿中建議的後續提示可打開/ proc中的支持設備樹,但我沒有在menuconfig中提供該選項。

我有支持設備樹的U-Boot bootloader版本2014.10rc2。 我從附帶的內核腳本DTB產生: 使at91sam9263ek.dtb

,現在我收到此錯誤:

 
Welcome to minicom 2.5 
OPTIONS: I18n 
Compiled on Feb 9 2011, 14:45:00. 
Port /dev/ttyS0 
Press CTRL-A Z for help on special keys 
RomBOOT 
> 
U-Boot 2014.10-rc2-00200-g9170818-dirty (Sep 23 2014 - 15:16:39) 
CPU: AT91SAM9263 
Crystal frequency: 16.368 MHz 
CPU clock : 199.919 MHz 
Master clock : 99.960 MHz 
DRAM: 64 MiB 
WARNING: Caches not enabled 
NAND: 256 MiB 
MMC: mci: 0 
In: serial 
Out: serial 
Err: serial 
Net: macb0 

Warning: Your board does not use generic board. Please read 
doc/README.generic-board and take action. Boards not 
upgraded by the late 2014 may break or be removed. 

Hit any key to stop autoboot: 0 

U-Boot> tftp uImage 
macb0: Starting autonegotiation... 
macb0: Autonegotiation complete 
macb0: link up, 100Mbps full-duplex (lpa: 0xcde1) 
Using macb0 device 
TFTP from server 192.168.1.247; our IP address is 192.168.1.240 
Filename 'uImage'. 
Load address: 0x22000000 
Loading: ################################################################# 
################################################################# 
################################################################# 
############## 
1.2 MiB/s 
done 

Bytes transferred = 3068016 (2ed070 hex) 

U-Boot> tftp 20000000 dt 
macb0: link up, 100Mbps full-duplex (lpa: 0xcde1) 
Using macb0 device 
TFTP from server 192.168.1.247; our IP address is 192.168.1.240 
Filename 'dt'. 
Load address: 0x20000000 
Loading: # 
340.8 KiB/s 
done 

Bytes transferred = 13279 (33df hex) 

U-Boot> bootm 22000000 - 20000000 
## Booting kernel from Legacy Image at 22000000 ... 
Image Name: Linux-3.16.1 
Image Type: ARM Linux Kernel Image (uncompressed) 
Data Size: 3067952 Bytes = 2.9 MiB 
Load Address: 20008000 
Entry Point: 20008000 
Verifying Checksum ... OK 
## Flattened Device Tree blob at 20000000 
Booting using the fdt blob at 0x20000000 
Loading Kernel Image ... OK 
Loading Device Tree to 23ea3000, end 23ea93de ... OK 
Starting kernel ... 
Uncompressing Linux... done, booting the kernel. 
Error: unrecognized/unsupported device tree compatible list: 
[ 'atmel,at91sam9263ek' 'atmel,at91sam9263' 'atmel,at91sam9' ] 

Available machine support: 
ID (hex) NAME 
000004b2 Atmel AT91SAM9263-EK 

Please check your kernel config and/or bootloader. 

回答

1

解決方案: 加入這一行的.config: CONFIG_MACH_AT91SAM9_DT = Y

+1

根據內核版本和配置的不同,有多種方法可以做到這一點。這是一個修復。 – 2014-09-25 17:59:46

+2

直接編輯.config文件是皺眉。使用'make menuconfig'。 – sawdust 2014-09-25 18:08:45