BTW the kernel boots if I compile it with CONFIG_ARM_APPENDED_DTB=y and then do
a cat vexpress.dtb zImage > zImage.fdt and then use zImage.fdt as kernel to
boot.
So I'm quite sure the problem must be in the Bds code of the UEFI boot
loader. It does not seem to be able to parse the DTB properly.
The DTS I'm using is this one:
http://www.linux-arm.org/git?p=arm-dts.git;a=blob;f=fast_models/rtsm_ve-cortex_a15x2.dts;h=2a512f80abcbdf6796f2060cddb290cdeeb63024;hb=9da5482c699eeb39b367a3ec2e535ed50660020b
Cheers,Nicola
>________________________________
> From: Olivier Martin <[email protected]>
>To: 'Nicola Johnsen' <[email protected]>;
>[email protected]
>Sent: Monday, 22 October 2012, 11:03
>Subject: RE: [edk2] Boot Linux on ARM: how to pass in FDT?
>
>
>Do you mind to send me your kernel and device tree by email?
>Please, do not send to the mailing-list.
>
>From:Nicola Johnsen [mailto:[email protected]]
>Sent: 22 October 2012 10:59
>To: [email protected]
>Subject: [edk2] Boot Linux on ARM: how to pass in FDT?
>
>
>Yes it works booting the zImage from the local directory now, using
>semihosting, however, I still get the same error when the kernel boots:
>
>Error: unrecognized/unsupported device tree compatible list:
>[ '(null)' ]
>
>Is there a way that I can check that the right DTB is passed to the kernel?
>Also, it seems that the kernel does not have any DTB support, because the list
>if supported device trees is NULL.
>
>My kernel configuration includes
>CONFIG_OF_FLATTREE=y
>CONFIG_OF_EARLY_FLATTREE=y
>
>and it worked with a non-UEFI boot loader. So I assume the kernel is OK?
>
>Cheers.
>
>________________________________
>
>From:Olivier Martin <[email protected]>
>To: 'Nicola Johnsen' <[email protected]>;
>[email protected]
>Sent: Monday, 22 October 2012, 10:51
>Subject: RE: [edk2] Boot Linux on ARM: how to pass in FDT?
>
>Sorry, I forgot this point. Yes, the default folder is the one where you start
>the simulator from. Some Fast Model allows to redefines the semihosting root
>(it does not seem to be the case on the Fast Model version I have).
>
>From:Nicola Johnsen [mailto:[email protected]]
>Sent: 22 October 2012 10:45
>To: Olivier Martin; [email protected]
>Subject: Re: [edk2] Boot Linux on ARM: how to pass in FDT?
>
>Thanks, that helps a lot. If I use semihosting, where on the host filesystem
>does it look for files? In the directory that I run the simulator from?
>
>Cheers.
>
>
>
>________________________________
>
>From:Olivier Martin <[email protected]>
>To: 'Nicola Johnsen' <[email protected]>;
>[email protected]
>Sent: Monday, 22 October 2012, 10:27
>Subject: RE: [edk2] Boot Linux on ARM: how to pass in FDT?
>
>Hi,
>After updating the FDT with "[4] Update FDT path", do you restart the model?
>
>I have just started a new section for Booting Linux on ARM Fast Model:
>https://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/ArmVExpressPkg#Example:_Booting_Linux_on_the_Model
>
>Cheers,
>Olivier
>
>From:Nicola Johnsen [mailto:[email protected]]
>Sent: 22 October 2012 09:18
>To: [email protected]
>Subject: [edk2] Boot Linux on ARM: how to pass in FDT?
>
>Hi I'm using the latest edk2 code and the ARM Fast Model simulator to run
>Linux.
>I used the guidance described here
>http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/ArmVExpressPkg#Booting_Linux
> and here
>http://sourceforge.net/apps/mediawiki/tianocore/index.php?title=ArmPlatformPkg/ArmVExpressPkg#ARM_Fast_Model.
>
>I have built a Linux kernel with device tree support. I have built the DTB and
>booting my kernel works fine with a non-UEFI bootloader. However, I don't
>quite understand yet how I can pass the DTB to the kernel through the UEFI
>bootloader.
>I boot from SD/MMC card and the zImage and the .dtb is stored on it. When the
>systems boots, I get the following error:
>
>Error: unrecognized/unsupported device tree compatible list:
>[ '(null)' ]
>
>I have tried to boot through the boot loader manually and select entry "[4]
>Update FDT path" to point the boot loader to my DTB file on the SD card but it
>doesn't seem to work that way. What is the right approach to specify the DTB
>file that has to be passed to the kernel?
>
>Thanks,
>Nicola
>
>
>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel