Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] device tree overlay on BeagleBoneBlack

Status
Not open for further replies.

aboitor

Newbie level 1
Newbie level 1
Joined
Mar 12, 2015
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
25
I am trying to install and use beagleg with a stepper motor application. The software has installed on by beagleboneblack, however I cannot install the device tree overlay. I have posted the command I run and the resulting output below.

Any help would be greatly appreciated.

Thank you.


Code:
debian@debian-armhf:~/beagleg/hardware$ sudo ./start-devicetree-overlay.sh BUMPS/BeagleG-BUMPS.dts 
dtc -I dts -O dtb -o BUMPS/BeagleG-BUMPS-00A0.dtbo -b 0 -@ BUMPS/BeagleG-BUMPS.dts
dtc: invalid option -- '@'
Usage:
	dtc [options] <input file>

Options:
	-h
		This help text
	-q
		Quiet: -q suppress warnings, -qq errors, -qqq all
	-I <input format>
		Input formats are:
			dts - device tree source text
			dtb - device tree blob
			fs - /proc/device-tree style directory
	-o <output file>
	-O <output format>
		Output formats are:
			dts - device tree source text
			dtb - device tree blob
			asm - assembler source
	-V <output version>
		Blob version to produce, defaults to 17 (relevant for dtb
		and asm output only)
	-d <output dependency file>
	-R <number>
		Make space for <number> reserve map entries (relevant for 
		dtb and asm output only)
	-S <bytes>
		Make the blob at least <bytes> long (extra space)
	-p <bytes>
		Add padding to the blob of <bytes> long (extra space)
	-b <number>
		Set the physical boot cpu
	-f
		Force - try to produce output even if the input tree has errors
	-s
		Sort nodes and properties before outputting (only useful for
		comparing trees)
	-v
		Print DTC version and exit
	-H <phandle format>
		phandle formats are:
			legacy - "linux,phandle" properties only
			epapr - "phandle" properties only
			both - Both "linux,phandle" and "phandle" properties
make: *** [BUMPS/BeagleG-BUMPS-00A0.dtbo] Error 3
Failed to produce BUMPS/BeagleG-BUMPS-00A0.dtbo
cp: cannot stat `BUMPS/BeagleG-BUMPS-00A0.dtbo': No such file or directory

Adding BeagleG-BUMPS overlay
./start-devicetree-overlay.sh: line 69: echo: write error: No such file or directory
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 

Hey,

The first warning you get when running the start-devicetree-overlay.sh script is:

dtc: invalid option -- '@'

at: -@ BUMPS/BeagleG-BUMPS.dts
Later on, the program "make" fails at with the following: Failed to produce BUMPS/BeagleG-BUMPS-00A0.dtbo
Which seems to be directly related to the first warning/error.

So you're going to have to change this in your start-devicetree-overlay.sh shell script(I'm not sure what the point of this specific line is though, so you're going to have to post it or find out yourself).

Cheers!
 
Hi,
1 : edit ./start-devicetree-overlay.sh (be sure to make a copy first !)
2 : replace
dtc -I dts -O dtb -o BUMPS/BeagleG-BUMPS-00A0.dtbo -b 0 -@ BUMPS/BeagleG-BUMPS.dts
by
dtc -I dts -O dtb -o BUMPS/BeagleG-BUMPS-00A0.dtbo -b O -@ BUMPS/BeagleG-BUMPS.dts
(the "0" becomes an "O" !)

Should work
RG
 

Thank you for your suggestions.

It seems like I had the wrong version of dtc installed. I followed the instructions **broken link removed** to get the correct version after which I put the full path of the new dtc in beagleg/hardware/Makefile. The device tree overlay now seems to load:

Code:
debian@debian-armhf:~/beagleg/hardware$ sudo ./start-devicetree-overlay.sh BUMPS/BeagleG-BUMPS.dts 
/home/debian/dtc/dtc -I dts -O dtb -o BUMPS/BeagleG-BUMPS-00A0.dtbo -b 0 -@ BUMPS/BeagleG-BUMPS.dts

Adding BeagleG-BUMPS overlay
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,BeagleG-BUMPS
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top