
Hey folks,
the other day I was asked to test some changes on my Adapteva Parallella board, which I hadn't used for ages.
I noticed it has an ancient u-boot:
U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)
I2C: ready DRAM: 992 MiB WARNING: Caches not enabled MMC: SDHCI: 0 SF: Detected N25Q128 with page size 64 KiB, total 16 MiB In: serial Out: serial Err: serial Net: zynq_gem Hit any key to stop autoboot:
... and a quick search turned up lots of supported similar boards in u-boot mainline under board/xilinx/zynq - but no concrete instructions or test results for the Parallella.
Anyone know what would be missing or is it just something simple like "take u-boot for z702 and replace the dtb"?
Martin

Hi, On 10/26/22 20:00, Martin Husemann wrote:
Hey folks,
the other day I was asked to test some changes on my Adapteva Parallella board, which I hadn't used for ages.
I noticed it has an ancient u-boot:
U-Boot 2012.10-00003-g792c31c (Jan 03 2014 - 12:24:08)
I2C: ready DRAM: 992 MiB WARNING: Caches not enabled MMC: SDHCI: 0 SF: Detected N25Q128 with page size 64 KiB, total 16 MiB In: serial Out: serial Err: serial Net: zynq_gem Hit any key to stop autoboot:
... and a quick search turned up lots of supported similar boards in u-boot mainline under board/xilinx/zynq - but no concrete instructions or test results for the Parallella.
Anyone know what would be missing or is it just something simple like "take u-boot for z702 and replace the dtb"?
add DT to tree. If you have ps7_init create folder in board/xilinx/zynq/ folder
export DEVICE_TREE=...
xilinx_zynq_virt_defconfig
Load it and it should just work
Thanks, Michal

On Thu, Oct 27, 2022 at 11:14:01AM +0200, Michal Simek wrote:
add DT to tree. If you have ps7_init create folder in board/xilinx/zynq/ folder
I didn't find a ps7_init in the parallela u-boot fork, so skipped that part...
export DEVICE_TREE=...
I put the zynq-parallella.dtb that I had in my tftp dir (and use for regular booting) into arch/arm/dts and set DEVICE_TREE=zynq-parallella
xilinx_zynq_virt_defconfig
and that gets me to:
[..] AR spl/drivers/built-in.o LD spl/u-boot-spl OBJCOPY spl/u-boot-spl-nodtb.bin SYM spl/u-boot-spl.sym CAT spl/u-boot-spl-dtb.bin COPY spl/u-boot-spl.bin gmake[1]: *** [scripts/Makefile.spl:248: spl/u-boot-spl-align.bin] Error 1 gmake: *** [Makefile:2106: spl/u-boot-spl] Error 2 gmake: *** Deleting file 'spl/u-boot-spl'
Is my dtb not correct for this purpose? How can I easily make the u-boot build regen it from .dts? I found the slightly hidden dts/.*.cmd files, do I need to clone one of that and adjust?
Martin

On Fri, Oct 28, 2022 at 07:20:36PM +0200, Martin Husemann wrote:
Is my dtb not correct for this purpose? How can I easily make the u-boot build regen it from .dts? I found the slightly hidden dts/.*.cmd files, do I need to clone one of that and adjust?
It was a toolchain issue and with a bit of help I now have a boot.bin and a u-boot.img from 2022.10, but both are happily ignored by the board when booting. Do I need to set something special to make it boot from SD card instead of SPI flash?
Martin

Hi,
čt 3. 11. 2022 v 5:24 odesílatel Martin Husemann martin@netbsd.org napsal:
On Fri, Oct 28, 2022 at 07:20:36PM +0200, Martin Husemann wrote:
Is my dtb not correct for this purpose? How can I easily make the u-boot build regen it from .dts? I found the slightly hidden dts/.*.cmd files, do I need to clone one of that and adjust?
It was a toolchain issue and with a bit of help I now have a boot.bin and a u-boot.img from 2022.10, but both are happily ignored by the board when booting. Do I need to set something special to make it boot from SD card instead of SPI flash?
You need to take a look at jumpers, dip switches to change bootmode to SD if possible.
M
participants (2)
-
Martin Husemann
-
Michal Simek