From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hannes Schmelzer Date: Fri, 09 Oct 2015 15:06:34 +0200 Subject: [U-Boot] SPL and DM on ZYNQ In-Reply-To: References: <56151526.3010709@schmelzer.or.at> <5616158A.1070403@schmelzer.or.at> <561766FA.7090802@schmelzer.or.at> Message-ID: <5617BBDA.7060702@schmelzer.or.at> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Hi, Hi Simon, many thanks for reply. > >>> (....) >>> >>> maybe there is yet another switch, which needs to be turned on. >>> Subject of suspicion is currently "support simple-bus driver in SPL". But >>> if i compile with this option, >>> boot ends up with: >>> >>> U-Boot SPL 2015.10-rc4-00101-gb6dcb3f-dirty (Oct 08 2015 - 09:01:35) >>> mmc boot >>> boot device - 1 >>> mmc_init: 0, time 58 >>> spl: mmc boot mode: fs >>> reading system.dtb >>> Error: allocating memory >>> spl_load_image_fat_os: error reading image system.dtb, err - -1 >>> reading u-boot-dtb.img >>> Error: allocating memory >>> spl_load_image_fat: error reading image u-boot-dtb.img, err - -1 >>> spl: mmc: no boot mode left to try >>> ### ERROR ### Please RESET the board ### >> This is because there is only very limited heap (0x1000) enabled in >> zynq-common.h and therefore the FAT buffers cannot be allocated -> solved. > You may be able to use CONFIG_SPL_STACK_R here. i will check this. > >> Further i've found out that my board isn't booting from SPI because there >> is nothing within "SPL-devicetree" about QSPI. >> >> Can anyone explain me how the "normal" and the "SPL" devicetree is separated >> ? > Yes you can add the 'u-boot,dm-pre-reloc' property to a node. See the > driver-model README.txt (although it does not explicitly mention SPL > at present). It will then appear in the SPL device tree. I've found out this and added the property to the device-tree, the device appaers now in the spl DTB. But unfortunately i still cannot boot from QSPI flash - i am currently debugging this. Did anyone boot yet some ZYNQ from the QSPI flash ? > >> best regards, >> Hannes >> > Regards, > Simon regards, Hannes