News:

Attention: For security reasons,please choose a user name *different* from your login name.
Also make sure to choose a secure password and change it regularly.

Main Menu

ZynqBerryZero camera init.sh help

Started by sthibault, April 14, 2021, 12:19:53 AM

Previous topic - Next topic

sthibault

Would it be possible to get an explanation of what each command does in the init.sh script?


#!/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

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