[OpenWrt-Devel] Build errors when activating the Device Tree flag for Raspberry Pi

2015-07-11 Thread Michael Neurohr

Hi,

I'm trying to activate the Device Tree for Raspberry Pi builds.

Therefore I changed the flag

# CONFIG_BCM2709_DT is not set
to
CONFIG_BCM2709_DT=y

in

/home/mine/gitrepos/openwrt2/target/linux/brcm2708/bcm2709/config-default
and
/home/mine/gitrepos/openwrt2/target/linux/brcm2708/bcm2708/config-default

When building for BRCM2709/08 I'm getting the error

==
  LD  init/built-in.o
drivers/built-in.o: In function `of_get_mac_address_mtd':
/home/mine/gitrepos/openwrt2/build_dir/target-arm_cortex-a7+vfp_musl-1.1.10_eabi/linux-brcm2708_bcm2709/linux-3.18.17/drivers/of/of_net.c:106: 
undefined reference to `get_mtd_device_nm'
/home/mine/gitrepos/openwrt2/build_dir/target-arm_cortex-a7+vfp_musl-1.1.10_eabi/linux-brcm2708_bcm2709/linux-3.18.17/drivers/of/of_net.c:110: 
undefined reference to `mtd_read'
/home/mine/gitrepos/openwrt2/build_dir/target-arm_cortex-a7+vfp_musl-1.1.10_eabi/linux-brcm2708_bcm2709/linux-3.18.17/drivers/of/of_net.c:111: 
undefined reference to `put_mtd_device'

make[5]: *** [vmlinux] Error 1
make[5]: Leaving directory 
`/home/mine/gitrepos/openwrt2/build_dir/target-arm_cortex-a7+vfp_musl-1.1.10_eabi/linux-brcm2708_bcm2709/linux-3.18.17'
make[4]: *** 
[/home/mine/gitrepos/openwrt2/build_dir/target-arm_cortex-a7+vfp_musl-1.1.10_eabi/linux-brcm2708_bcm2709/linux-3.18.17/.image] 
Error 2
make[4]: Leaving directory 
`/home/mine/gitrepos/openwrt2/target/linux/brcm2708'

make[3]: *** [install] Error 2
make[3]: Leaving directory `/home/mine/gitrepos/openwrt2/target/linux'
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory `/home/mine/gitrepos/openwrt2'
make[1]: *** 
[/home/mine/gitrepos/openwrt2/staging_dir/target-arm_cortex-a7+vfp_musl-1.1.10_eabi/stamp/.target_install] 
Error 2

make[1]: Leaving directory `/home/mine/gitrepos/openwrt2'
make: *** [world] Error 2
==


Is it possible at all to activate the Device Tree for Raspberry builds 
at all?


I'm working on the master of git://openwrt.org/openwrt.git

Thanks,
Michael
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] How to activate Device Tree on the Raspberry Pi and add a device?

2015-07-10 Thread Michael Neurohr
Hi,



I'm trying to integrate a new hardware connected via I2C into OpenWRT.

I already integrated the according driver so that it shows up in the menuconfig 
under Kernel Modules - Other modules.

To get I2C working I also activated the modules (M) kmod-i2c-bcm2708 and 
kmod-i2c-core.



Now I would like to integrate my hardware which is connected via I2C into the 
Device Tree.

For some platforms I found the dts and dtsi files in target/linux/platform/dts. 
But I did not find these files for the Raspberry Pi.



However I found some patch files in target/linux/brcm2708/patches-3.18/ which 
seem to integrate some hardware info into the device tree.



So what would be the best way forward to integrate my device into the device 
tree?



Thanks,

Michael



Environment:

OpenWRT version: Latest version from git.openwrt.org/openwrt.git

Hardware: Raspberry Pi B (brcm2708)

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel