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

Michael Neurohr michael.neurohr at nxp.com
Sun Jul 12 00:44:13 EDT 2015


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 at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list