All of lore.kernel.org
 help / color / mirror / Atom feed
* Adapteva Parallella board
@ 2022-10-26 18:00 Martin Husemann
  2022-10-27  9:14 ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Husemann @ 2022-10-26 18:00 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adapteva Parallella board
  2022-10-26 18:00 Adapteva Parallella board Martin Husemann
@ 2022-10-27  9:14 ` Michal Simek
  2022-10-28 17:20   ` Martin Husemann
  0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2022-10-27  9:14 UTC (permalink / raw)
  To: Martin Husemann, u-boot

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

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adapteva Parallella board
  2022-10-27  9:14 ` Michal Simek
@ 2022-10-28 17:20   ` Martin Husemann
  2022-11-03 12:24     ` Martin Husemann
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Husemann @ 2022-10-28 17:20 UTC (permalink / raw)
  To: Michal Simek; +Cc: u-boot

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adapteva Parallella board
  2022-10-28 17:20   ` Martin Husemann
@ 2022-11-03 12:24     ` Martin Husemann
  2022-11-03 13:09       ` Michal Simek
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Husemann @ 2022-11-03 12:24 UTC (permalink / raw)
  To: u-boot; +Cc: Michal Simek

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Adapteva Parallella board
  2022-11-03 12:24     ` Martin Husemann
@ 2022-11-03 13:09       ` Michal Simek
  0 siblings, 0 replies; 5+ messages in thread
From: Michal Simek @ 2022-11-03 13:09 UTC (permalink / raw)
  To: Martin Husemann; +Cc: u-boot

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


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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-11-03 13:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-26 18:00 Adapteva Parallella board Martin Husemann
2022-10-27  9:14 ` Michal Simek
2022-10-28 17:20   ` Martin Husemann
2022-11-03 12:24     ` Martin Husemann
2022-11-03 13:09       ` Michal Simek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.