AT91SAM9263ek使用设备树启动Linux失败

时间:2014-09-25 10:34:25

标签: linux-kernel arm u-boot device-tree

我在启动Linux 3.16.1时遇到问题。我已经使用at91sam9263_defconfig从http://www.kernel.org编译了源代码。

我在Boot选项中添加了Flattened Device Tree支持。 在此(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.

2 个答案:

答案 0 :(得分:1)

解决方案: 将此行添加到.config: CONFIG_MACH_AT91SAM9_DT = Y

答案 1 :(得分:0)

使用设备树时此板的正确配置是at91_dt_defconfig。

但是,我很惊讶地看到有人试图使用这样的旧内核。上游完全支持此板。为什么不使用v5.3?如果这不起作用,请报告任何错误,我们将很乐意帮助纠正它们。