gks9754
Posts: 20
Joined: Fri Aug 17, 2018 9:10 am

using CAM0 on the CM3

Sun Oct 07, 2018 8:58 am

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]

aBUGSworstnightmare
Posts: 2014
Joined: Tue Jun 30, 2015 1:35 pm

Re: using CAM0 on the CM3

Sun Oct 07, 2018 10:05 am

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.

gks9754
Posts: 20
Joined: Fri Aug 17, 2018 9:10 am

Re: using CAM0 on the CM3

Sun Oct 07, 2018 1:04 pm

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

aBUGSworstnightmare
Posts: 2014
Joined: Tue Jun 30, 2015 1:35 pm

Re: using CAM0 on the CM3

Sun Oct 07, 2018 3:33 pm

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.

gks9754
Posts: 20
Joined: Fri Aug 17, 2018 9:10 am

Re: using CAM0 on the CM3

Mon Oct 08, 2018 9:22 am

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?

aBUGSworstnightmare
Posts: 2014
Joined: Tue Jun 30, 2015 1:35 pm

Re: using CAM0 on the CM3

Mon Oct 08, 2018 9:42 am

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

gks9754
Posts: 20
Joined: Fri Aug 17, 2018 9:10 am

Re: using CAM0 on the CM3

Mon Oct 08, 2018 10:34 am

thank you I did it..!

Return to “Compute Module”