[LEDE-DEV] [PATCH 2/2] target/arc770: switch to 4.9 kernel

Felix Fietkau nbd at nbd.name
Tue Mar 7 10:30:38 PST 2017


On 2017-03-06 19:30, Alexey Brodkin wrote:
> With update of ARC tools to arc-2016.09 based on GCC v6.x
> we have to bump Linux kernel version so both toolchain and
> the kernel use the same ARC ABIv4.
> 
> Signed-off-by: Alexey Brodkin <Alexey.Brodkin at synopsys.com>
> ---
>  target/linux/arc770/Makefile                       |  2 +-
>  target/linux/arc770/{config-4.4 => config-4.9}     | 44 ++++++++++++++++------
>  ...stmmac-Disable-frame-filtering-completely.patch |  0
>  3 files changed, 33 insertions(+), 13 deletions(-)
>  rename target/linux/arc770/{config-4.4 => config-4.9} (82%)
>  rename target/linux/arc770/{patches-4.4 => patches-4.9}/700-stmmac-Disable-frame-filtering-completely.patch (100%)
> 
This does not build with CONFIG_ALL_KMODS=y:

  MODPOST 735 modules
ERROR: "of_usb_get_phy_mode" [drivers/usb/dwc3/dwc3.ko] undefined!
scripts/Makefile.modpost:91: recipe for target '__modpost' failed
make[5]: *** [__modpost] Error 1
Makefile:1196: recipe for target 'modules' failed
make[4]: *** [modules] Error 2
make[4]: Leaving directory '/var/nbd/lede/build_dir/target-arc_arc700_uClibc/linux-arc770_generic/linux-4.9.13'
Makefile:25: recipe for target '/var/nbd/lede/build_dir/target-arc_arc700_uClibc/linux-arc770_generic/linux-4.9.13/.image' failed
make[3]: *** [/var/nbd/lede/build_dir/target-arc_arc700_uClibc/linux-arc770_generic/linux-4.9.13/.image] Error 2
make[3]: Leaving directory '/var/nbd/lede/target/linux/arc770'
Makefile:13: recipe for target 'install' failed

The cause is that of_usb_get_phy_mode is meant to be built into the
kernel, however since USB is selected as module, this won't work.

Please send any follow-up fixes incrementally, and I will fold them
into the commit in my staging tree.

By the way, when Cc'ing me, please use my @nbd.name address, not the
@openwrt.org one.

Thanks,

- Felix



More information about the Lede-dev mailing list