Re: am335x-bone.dts not exist

2015-05-28 Thread Warner Losh

 On May 25, 2015, at 4:19 PM, Tim Kientzle t...@kientzle.com wrote:
 
 
 On May 25, 2015, at 8:25 AM, Warner Losh i...@bsdimp.com wrote:
 
 
 On May 24, 2015, at 7:44 PM, Tim Kientzle t...@kientzle.com wrote:
 
 
 On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko go...@bluezbox.com 
 wrote:
 
 
 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com 
 wrote:
 
 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor 
 (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.
 
 Pardon me for being a bit daft potentially, but shouldn’t #include work 
 for all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!
 
 
 
 #include in dts file is handled by cpp(1). /include/ is handled
 by dtc I believe
 
 You can take a look at how FreeBSD compiles dts files in
 sys/tools/fdt/make_dtb.sh
 
 crochet does not have cpp stage of compilation and before my TI
 code/devicetree refactoring none of the dts files referenced in
 crochet used #include. That's why problem never appeared.
 
 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
 If nobody beats me to it I'll try to fix it and submit pull request to Tim.
 
 I’m testing a fix for this now.
 
 Thanks for providing such detailed information.
 
 Is there any reason the standard dts to dtb script isn’t being used instead 
 of enshrining another copy of that outside the tree which may break if/when 
 we need to enhance the current script?
 
 Until recently, this didn’t seem necessary; it was a lot simpler to just 
 invoke dtc.

I changed things to require cpp when I started merging in the upstream dts files
that required it. This was almost a year ago now, about the time we switched
back to the GPL dtc because the BSDL one choked on a lot of the newer files.

 But times change:  https://github.com/freebsd/crochet/commit/22d7555

Cool! Thanks!

Warner



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: am335x-bone.dts not exist

2015-05-25 Thread Warner Losh

 On May 24, 2015, at 7:44 PM, Tim Kientzle t...@kientzle.com wrote:
 
 
 On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko go...@bluezbox.com 
 wrote:
 
 
 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com wrote:
 
 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.
 
 Pardon me for being a bit daft potentially, but shouldn’t #include work for 
 all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!
 
 
 
 #include in dts file is handled by cpp(1). /include/ is handled
 by dtc I believe
 
 You can take a look at how FreeBSD compiles dts files in
 sys/tools/fdt/make_dtb.sh
 
 crochet does not have cpp stage of compilation and before my TI
 code/devicetree refactoring none of the dts files referenced in
 crochet used #include. That's why problem never appeared.
 
 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
 If nobody beats me to it I'll try to fix it and submit pull request to Tim.
 
 I’m testing a fix for this now.
 
 Thanks for providing such detailed information.

Is there any reason the standard dts to dtb script isn’t being used instead of 
enshrining another copy of that outside the tree which may break if/when we 
need to enhance the current script?

Warner


signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: am335x-bone.dts not exist

2015-05-25 Thread Tim Kientzle

 On May 24, 2015, at 6:44 PM, Tim Kientzle t...@kientzle.com wrote:
 
 
 On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko go...@bluezbox.com 
 wrote:
 
 
 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com wrote:
 
 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.
 
 Pardon me for being a bit daft potentially, but shouldn’t #include work for 
 all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!
 
 
 
 #include in dts file is handled by cpp(1). /include/ is handled
 by dtc I believe
 
 You can take a look at how FreeBSD compiles dts files in
 sys/tools/fdt/make_dtb.sh
 
 crochet does not have cpp stage of compilation and before my TI
 code/devicetree refactoring none of the dts files referenced in
 crochet used #include. That's why problem never appeared. 
 
 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
 If nobody beats me to it I'll try to fix it and submit pull request to Tim. 
 
 I’m testing a fix for this now.
 
 Thanks for providing such detailed information.

This should be fixed now.

Tim


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: am335x-bone.dts not exist

2015-05-25 Thread Tim Kientzle

 On May 25, 2015, at 8:25 AM, Warner Losh i...@bsdimp.com wrote:
 
 
 On May 24, 2015, at 7:44 PM, Tim Kientzle t...@kientzle.com wrote:
 
 
 On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko go...@bluezbox.com 
 wrote:
 
 
 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com wrote:
 
 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor 
 (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.
 
 Pardon me for being a bit daft potentially, but shouldn’t #include work 
 for all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!
 
 
 
 #include in dts file is handled by cpp(1). /include/ is handled
 by dtc I believe
 
 You can take a look at how FreeBSD compiles dts files in
 sys/tools/fdt/make_dtb.sh
 
 crochet does not have cpp stage of compilation and before my TI
 code/devicetree refactoring none of the dts files referenced in
 crochet used #include. That's why problem never appeared.
 
 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
 If nobody beats me to it I'll try to fix it and submit pull request to Tim.
 
 I’m testing a fix for this now.
 
 Thanks for providing such detailed information.
 
 Is there any reason the standard dts to dtb script isn’t being used instead 
 of enshrining another copy of that outside the tree which may break if/when 
 we need to enhance the current script?

Until recently, this didn’t seem necessary; it was a lot simpler to just invoke 
dtc.

But times change:  https://github.com/freebsd/crochet/commit/22d7555

Tim

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: am335x-bone.dts not exist

2015-05-25 Thread Andrey Fesenko
On Tue, May 26, 2015 at 1:19 AM, Tim Kientzle t...@kientzle.com wrote:

 On May 25, 2015, at 8:25 AM, Warner Losh i...@bsdimp.com wrote:


 On May 24, 2015, at 7:44 PM, Tim Kientzle t...@kientzle.com wrote:


 On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko go...@bluezbox.com 
 wrote:


 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com 
 wrote:

 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:

 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:

 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64

 I'm build BEAGLEBONE with crochet.

 build error

 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree


 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?


 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor 
 (TI)

 I guess crochet does not have this path as include path when compiling
 dts files.

 Pardon me for being a bit daft potentially, but shouldn’t #include work 
 for all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!



 #include in dts file is handled by cpp(1). /include/ is handled
 by dtc I believe

 You can take a look at how FreeBSD compiles dts files in
 sys/tools/fdt/make_dtb.sh

 crochet does not have cpp stage of compilation and before my TI
 code/devicetree refactoring none of the dts files referenced in
 crochet used #include. That's why problem never appeared.

 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
 If nobody beats me to it I'll try to fix it and submit pull request to Tim.

 I’m testing a fix for this now.

 Thanks for providing such detailed information.

 Is there any reason the standard dts to dtb script isn’t being used instead 
 of enshrining another copy of that outside the tree which may break if/when 
 we need to enhance the current script?

 Until recently, this didn’t seem necessary; it was a lot simpler to just 
 invoke dtc.

 But times change:  https://github.com/freebsd/crochet/commit/22d7555

 Tim


It's working :)

% uname -a
FreeBSD bb.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283544: Tue May
26 01:54:44 MSK 2015
root@des.local:/usr/obj/arm.armv6/usr/src/sys/BEAGLEBONE-V6  arm
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org

Re: am335x-bone.dts not exist

2015-05-24 Thread Tim Kientzle

 On May 24, 2015, at 12:55 AM, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 
 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com wrote:
 
 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.
 
 Pardon me for being a bit daft potentially, but shouldn’t #include work for 
 all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!
 
 
 
 #include in dts file is handled by cpp(1). /include/ is handled
 by dtc I believe
 
 You can take a look at how FreeBSD compiles dts files in
 sys/tools/fdt/make_dtb.sh
 
 crochet does not have cpp stage of compilation and before my TI
 code/devicetree refactoring none of the dts files referenced in
 crochet used #include. That's why problem never appeared. 
 
 Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
 If nobody beats me to it I'll try to fix it and submit pull request to Tim. 

I’m testing a fix for this now.

Thanks for providing such detailed information.

Cheers,

Tim


___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: am335x-bone.dts not exist

2015-05-24 Thread Herbert J. Skuhra
On Sun, May 24, 2015 at 05:21:07AM +0300, Andrey Fesenko wrote:
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?

% find . -name am335x-bone.dts  

./sys/gnu/dts/arm/am335x-bone.dts

-- 
Herbert
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: am335x-bone.dts not exist

2015-05-24 Thread Oleksandr Tymoshenko

 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?


am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI)

I guess crochet does not have this path as include path when compiling
dts files.
___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org


Re: am335x-bone.dts not exist

2015-05-24 Thread Garrett Cooper
On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:

 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.

Pardon me for being a bit daft potentially, but shouldn’t #include work for all 
dts files (look for #include in this doc: 
http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
 )?
Thanks!



signature.asc
Description: Message signed with OpenPGP using GPGMail


Re: am335x-bone.dts not exist

2015-05-24 Thread Oleksandr Tymoshenko

 On May 24, 2015, at 12:12 AM, Garrett Cooper yaneurab...@gmail.com wrote:
 
 On May 24, 2015, at 0:07, Oleksandr Tymoshenko go...@bluezbox.com wrote:
 
 On May 23, 2015, at 7:21 PM, Andrey Fesenko f0and...@gmail.com wrote:
 
 # uname -a
 FreeBSD des.local 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r283306: Sat
 May 23 11:56:46 MSK 2015
 root@des.local:/usr/obj/usr/src/sys/GENERIC  amd64
 
 I'm build BEAGLEBONE with crochet.
 
 build error
 
 Mounting UFS partition 1 at /usr/obj/_.mount.freebsd
 Installing U-Boot from : /usr/local/share/u-boot/u-boot-beaglebone
 Error: beaglebone.dts:29.1-2 syntax error
 FATAL ERROR: Unable to parse input tree
 
 
 file /usr/src/sys/boot/fdt/dts/arm/beaglebone.dts contain #include
 am335x-bone.dts but this file not existence. Need use am335x-evm.dts
 or else?
 
 
 am335x-bone.dts in in sys/gnu/dts/arm/, it's a file provided by vendor (TI)
 
 I guess crochet does not have this path as include path when compiling
 dts files.
 
 Pardon me for being a bit daft potentially, but shouldn’t #include work for 
 all dts files (look for #include in this doc: 
 http://events.linuxfoundation.org/sites/events/files/slides/petazzoni-device-tree-dummies.pdf
  )?
 Thanks!
 


#include in dts file is handled by cpp(1). /include/ is handled
by dtc I believe

You can take a look at how FreeBSD compiles dts files in
sys/tools/fdt/make_dtb.sh

crochet does not have cpp stage of compilation and before my TI
code/devicetree refactoring none of the dts files referenced in
crochet used #include. That's why problem never appeared. 

Fix is just a matter of fixing freebsd_install_fdt in lib/freebsd.sh.
If nobody beats me to it I'll try to fix it and submit pull request to Tim. 

___
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-unsubscr...@freebsd.org