Hi, On 11/01/17 20:20, Andrea Venturi wrote: > Il giorno mercoledì 11 gennaio 2017 06:46:10 UTC+1, Priit Laes ha scritto: > > On Tue, 2017-01-10 at 15:44 -0800, Andrea Venturi wrote: > > hello > > > > i'm following the notes for booting my Orange PI PC2 from the > > embedded SPI flash! finally.. > > > > https://linux-sunxi.org/Bootable_SPI_flash > <https://linux-sunxi.org/Bootable_SPI_flash> > > > > i,m using H5 branch of apritzel > uboot: https://github.com/apritzel/u- <https://github.com/apritzel/u-> > > boot/tree/h5 > > > > after having enabled SPI flash support (and CONFIG_SPL_SPI_SUNXI=y > > support as written in the URL above) in uboot .config, > > > > the compile step returns this error: > > > > "macro SPL_LOAD_IMAGE_METHOD requires 4 arguments, but only 3 given" > > > > the issue is here: > > > > > > https://github.com/apritzel/u-boot/blob/h5/drivers/mtd/spi/sunxi_spi_spl.c#L287 > > > This is fixed in mainline. > > > > thanx, i'll test ASAP. > > i suppose we should update the ptr on linux-sunxi wiki, here: > > http://linux-sunxi.org/Xunlong_Orange_Pi_PC_2#Mainline_U-Boot
Please have some more patience. The existing code will take you nowhere: - You seem to build a 32-bit only U-Boot, so no way to start 64-bit kernels (check: you should have no booti command, but only bootz). - This branch does not support a 64-bit SPL, so you can't switch to this. You really need to combine a 32-bit SPL with a 64-bit U-Boot proper, but ... - You don't have ATF loaded, so the kernel will crash unless you disable all secondary CPUs in the DT (which means you have one core only). Also I believe there is one more thing which will fail, IIRC. I managed to finally clean up my SPL FIT support last night, so there should be a clean way of including the ATF in this process very soon. And please be advised that this branch was more proof of concept code and is a bit outdated already. Hopefully I will be able to send some proper H5 U-Boot patches for discussion in the next few days. Cheers, Andre. -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
