Page 1 of 1

using CAM0 on the CM3

Posted: Sun Oct 07, 2018 8:58 am
by gks9754
I read https://www.raspberrypi.org/documentati ... -camera.md and https://www.raspberrypi.org/forums/view ... p?t=193577
I followed those three steps.
"wget https://www.raspberrypi.org/documentati ... ualcam.dts"
"dtc -I dts -O dtb -o dt-blob-dualcam.dtb dt-blob-dualcam.dts"
"sudo cp dt-blob-dualcam.dtb /boot/dt-blob.bin" OR "sudo cp dt-blob-dualcam.dtb /boot/overlays"

when I did the first step "wget https://www.raspberrypi.org/documentati ... ualcam.dts"
I can get a file "called dt-blob-dualcam.dts", It's at /hpm/pi/dt-blob-dualcam.dts

when I did the second step

Code: Select all

[Usage: dtc [options] <input file>

Options: -[qI:O:o:V:d:R:S:p:a:fb:i:H:sW:E:@Ahv]
  -q, --quiet                
	Quiet: -q suppress warnings, -qq errors, -qqq all
  -I, --in-format <arg>      
	Input formats are:
		dts - device tree source text
		dtb - device tree blob
		fs  - /proc/device-tree style directory
  -o, --out <arg>            
	Output file
  -O, --out-format <arg>     
	Output formats are:
		dts - device tree source text
		dtb - device tree blob
		asm - assembler source
  -V, --out-version <arg>    
	Blob version to produce, defaults to 17 (for dtb and asm output)
  -d, --out-dependency <arg> 
	Output dependency file
  -R, --reserve <arg>        
	Make space for <number> reserve map entries (for dtb and asm output)
  -S, --space <arg>          
	Make the blob at least <bytes> long (extra space)
  -p, --pad <arg>            
	Add padding to the blob of <bytes> long (extra space)
  -a, --align <arg>          
	Make the blob align to the <bytes> (extra space)
  -b, --boot-cpu <arg>       
	Set the physical boot cpu
  -f, --force                
	Try to produce output even if the input tree has errors
  -i, --include <arg>        
	Add a path to search for include files
  -s, --sort                 
	Sort nodes and properties before outputting (useful for comparing trees)
  -H, --phandle <arg>        
	Valid phandle formats are:
		legacy - "linux,phandle" properties only
		epapr  - "phandle" properties only
		both   - Both "linux,phandle" and "phandle" properties
  -W, --warning <arg>        
	Enable/disable warnings (prefix with "no-")
  -E, --error <arg>          
	Enable/disable errors (prefix with "no-")
  -@, --symbols              
	Enable generation of symbols
  -A, --auto-alias           
	Enable auto-alias of labels
  -h, --help                 
	Print this help and exit
  -v, --version              
	Print version and exit

Error: missing files
/code]

Re: using CAM0 on the CM3

Posted: Sun Oct 07, 2018 10:05 am
by aBUGSworstnightmare
Compiler can't find the source file. Be sure to run the command from the same directory where you placed the source.
Or adjust the path to the source file.

Re: using CAM0 on the CM3

Posted: Sun Oct 07, 2018 1:04 pm
by gks9754
what is the source file you're talking about??
Does The file I've gotten "dt-blob-dualcam.dts'" have to be in " /boot" not "/home/pi" ??
but the file couldn't move to other folders;;

Re: using CAM0 on the CM3

Posted: Sun Oct 07, 2018 3:33 pm
by aBUGSworstnightmare
Change to /boot before you load the .dts file (which is a dt-blob source file).

Than run the device tree compiler command from /boot as well.

Re: using CAM0 on the CM3

Posted: Mon Oct 08, 2018 9:22 am
by gks9754
Thank you but after doing what you said, there is the same problem..the file"dt-blob-dualcam.dts" is in the /boot folder..
could you give me more help?

Re: using CAM0 on the CM3

Posted: Mon Oct 08, 2018 9:42 am
by aBUGSworstnightmare
open console and change to /boot directory.

Now you should be able to run the compiler

Code: Select all

dtc -I dts -O dtb -o dt-blob.bin dt-blob-dualcam.dts

Re: using CAM0 on the CM3

Posted: Mon Oct 08, 2018 10:34 am
by gks9754
thank you I did it..!