Modify

Opened 3 years ago

#18740 new defect

regression: fails to build for brcm2708 (raspberry pi)

Reported by: j.schauer@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: Cc:

Description

Hi,

when compiling latest HEAD for brcm2708 with this diffconfig:

CONFIG_TARGET_brcm2708=y
CONFIG_TARGET_brcm2708_RaspberryPi=y
CONFIG_TARGET_BOARD="brcm2708"

then I get:

 make[2] target/compile
 make[3] -C target/linux compile
make -r world: build failed. Please re-run make with V=s to see what's going on
/home/josch/openwrt/include/toplevel.mk:173: recipe for target 'world' failed
make: *** [world] Error 1

re-running with V=s gets me:

make -C /home/josch/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708/linux-3.14.28 HOSTCFLAGS="-O2 -I/home/josch/openwrt/staging_dir/host/include -I/home/josch/openwrt/staging_dir/host/usr/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-uclibcgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no CONFIG_SHELL="/bin/bash" V='' CC="arm-openwrt-linux-uclibcgnueabi-gcc" modules
make[5]: Entering directory '/home/josch/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_uClibc-0.9.33.2_eabi/linux-brcm2708/linux-3.14.28'
scripts/kconfig/conf --silentoldconfig Kconfig
net/sched/Kconfig:43: warning: menuconfig statement without prompt
*
* Restart config...
*
*
* Backlight & LCD device support
*
Backlight & LCD device support (BACKLIGHT_LCD_SUPPORT) [Y/n/?] y
  Lowlevel LCD controls (LCD_CLASS_DEVICE) [M/n/y/?] (NEW) 

and waits for my input.

Since this used to work, I found the following first bad commit:

commit f3fe23c06a8a00ccaa78ef55e1495b8921e39f9e
Author: nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date:   Mon Jan 5 13:02:44 2015 +0000

    all targets: remove all =m kernel config symbols
    
    modules build during the kernel compile phase are ignored anyway,
    all modules should be built using KernelPackage in
    package/kernel/linux/modules/*
    selecting the appropriate config symbols there rather than in
    target/linux/*/config-*
    
    Signed-off-by: Daniel Golle <daniel@makrotopia.org>
    
    git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43842 3c298f89-4303-0410-b956-a3cf2f4a3e73

Reverting the relevant hunks of above commit, the following patch makes it work again:

  • target/linux/brcm2708/config-3.14

    a b CONFIG_ARM_UNWIND=y 
    2222CONFIG_AVERAGE=y 
    2323# CONFIG_BACKLIGHT_ADP8860 is not set 
    2424# CONFIG_BACKLIGHT_ADP8870 is not set 
     25CONFIG_BACKLIGHT_CLASS_DEVICE=m 
     26CONFIG_BACKLIGHT_GENERIC=m 
    2527CONFIG_BACKLIGHT_LCD_SUPPORT=y 
    2628CONFIG_BCM2708_DMAER=y 
    2729CONFIG_BCM2708_GPIO=y 
    CONFIG_KERNEL_GZIP=y 
    148150# CONFIG_KERNEL_XZ is not set 
    149151CONFIG_KTIME_SCALAR=y 
    150152# CONFIG_LCD_AMS369FG06 is not set 
     153CONFIG_LCD_CLASS_DEVICE=m 
    151154# CONFIG_LCD_L4F00242T03 is not set 
    152155# CONFIG_LCD_LD9040 is not set 
    153156# CONFIG_LCD_LMS283GF05 is not set 

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.