Skip to contentSkip to conversation

Adapteva Parallella board

DISCUSSION Martin Husemann 2 participants 5 messages Oct 26, 2022 – Nov 3, 2022

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

Hi,

Quoted 18 lines · Martin Husemann

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
Quoted 8 lines

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

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs
#2 lore raw
Quoted 1 line · Michal Simek

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...

Quoted 1 line

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

Quoted 1 line

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

#3 lore raw
Quoted 3 lines · Martin Husemann

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

#4 lore raw

Hi,

čt 3. 11. 2022 v 5:24 odesílatel Martin Husemann <[email protected]> napsal:

Quoted 10 lines · Martin Husemann
Quoted 3 lines

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

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs