Author Topic: ZynqBerryZero camera init.sh help  (Read 112 times)

sthibault

  • Active Member
  • *
  • Posts: 6
ZynqBerryZero camera init.sh help
« on: April 14, 2021, 12:19:53 AM »
Would it be possible to get an explanation of what each command does in the init.sh script?

Code: [Select]
#!/bin/sh
devmem 0x41200004 32 0
devmem 0x41200000 32 1
i2cpick 1 0x36
rc=$?
if [ $rc -eq $((0x36)) ]
then
  echo "Rpi Cam 1.3"
  #PCB REV01
  #rpicam /dev/i2c-1
  #PCB REV02
  rpicam /dev/i2c-3
  devmem 0x41210000 32 1
fi

JH

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1623
Re: ZynqBerryZero camera init.sh help
« Reply #1 on: April 14, 2021, 12:49:26 PM »
Hi,
devmem ... enables some interfaces on PL over emio, see PL Design
i2cpick... does not work at the moment, we will fix this in one of the next updates. it will normaly detect which camera is available1.3 or 2.1
after "if" .... --> depending on result RPI will be configured over I2C and stream is enabled

br
John

sthibault

  • Active Member
  • *
  • Posts: 6
Re: ZynqBerryZero camera init.sh help
« Reply #2 on: April 14, 2021, 01:29:33 PM »
I see, thank you for that.