OpenWrt Forum Archive

Topic: Unable to build BackFire SDK (make menuconfig problem)

The content of this topic has been archived on 15 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi there,

I'm new to Linux, new to OpenWrt and new to this forum, so please be patient with me :-)
I have flashed my ASUS WL-500gP V2 with BackFire 10.03.1 ans installed some packages for USB storage & Bluetooth.
I installed a space PC with Ubuntu 10.10
So far, so good... here comes my problem:
I want to build the Backfire 10.03.1 SDK to cross compile a HelloWorld example.
So I downloaded the SDK (OpenWrt-SDK-brcm47xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1.tar.bz2) from http://backfire.openwrt.org/10.03.1/brcm47xx/
I took these pages as an example:
http://manoftoday.wordpress.com/2007/10 … r-openwrt/
and
http://dwienie.co.cc/index.php/De-cross-compiler.html (in dutch)

After installing the dependencies like ncurses, flex etc I run make menuconfig. It compiles, but this is all I get:

 OpenWrt Backfire (r29592) Configuration
 ??????????????????????????????????????????????????????????????????????????????
 ?????????????????????????? OpenWrt Configuration ??????????????????????????
 ?  Arrow keys navigate the menu.  <Enter> selects submenus --->.          ?  
 ?  Highlighted letters are hotkeys.  Pressing <Y> includes, <N> excludes, ?  
 ?  <M> builds as package.  Press <Esc><Esc> to exit, <?> for Help, </>    ?  
 ?  for Search.  Legend: [*] built-in  [ ] excluded  <M> package  < >      ?  
 ? ??????????????????????????????????????????????????????????????????????? ?  
 ? ? [*] Image configuration  --->                                       ? ?  
 ? ? ---                                                                 ? ?  
 ? ?     Reset to defaults                                               ? ?  
 ? ?     Load an Alternate Configuration File                            ? ?  
 ? ?     Save Configuration to an Alternate File                         ? ?  
 ? ?                                                                     ? ?  
 ? ?                                                                     ? ?  
 ? ?                                                                     ? ?  
 ? ?                                                                     ? ?  
 ? ?                                                                     ? ?  
 ? ??????????????????????????????????????????????????????????????????????? ?  
 ???????????????????????????????????????????????????????????????????????????  
 ?                    <Select>    < Exit >    < Help >                     ?  
 ???????????????????????????????????????????????????????????????????????????

Can someone explain me what"s wrong? I've searched this forum to get a clue, but being new to all this, I'm totally lost now.
Please help me.

Thanks

This happens if the (hidden) .config file got deleted, did you run "make clean" or a similar command after unpacking the SDK?

Thanks jow for the quick reply!

No, the .config is there...
Here's a part of it: (it's too big to post it here +/- 5000 lines)

#
# Automatically generated make config: don't edit
# OpenWrt version: Backfire (r29592)
# Wed Dec 21 04:48:12 2011
#
CONFIG_HAVE_DOT_CONFIG=y
# CONFIG_TARGET_ppc40x is not set
# CONFIG_TARGET_ppc44x is not set
# CONFIG_TARGET_atheros is not set
# CONFIG_TARGET_ar71xx is not set
# CONFIG_TARGET_avr32 is not set
# CONFIG_TARGET_brcm63xx is not set
CONFIG_TARGET_brcm47xx=y
# CONFIG_TARGET_brcm_2_4 is not set
# CONFIG_TARGET_adm5120 is not set
# CONFIG_TARGET_xburst is not set
# CONFIG_TARGET_ixp4xx is not set
# CONFIG_TARGET_lantiq is not set
# CONFIG_TARGET_kirkwood is not set
# CONFIG_TARGET_orion is not set
# CONFIG_TARGET_rb532 is not set
# CONFIG_TARGET_rdc is not set
# CONFIG_TARGET_au1000 is not set
# CONFIG_TARGET_ar7 is not set
# CONFIG_TARGET_uml is not set
# CONFIG_TARGET_x86 is not set
# CONFIG_TARGET_avr32_Default is not set
# CONFIG_TARGET_xburst_qi_lb60_Default is not set
# CONFIG_TARGET_xburst_n516_Default is not set
# CONFIG_TARGET_xburst_n526_Default is not set
CONFIG_TARGET_brcm47xx_Broadcom-b43=y
# CONFIG_TARGET_brcm47xx_Atheros is not set
# CONFIG_TARGET_brcm47xx_Atheros-ath5k is not set
# CONFIG_TARGET_brcm47xx_None is not set
# CONFIG_TARGET_brcm47xx_WGT634U is not set
# CONFIG_TARGET_brcm47xx_WL500GPv1 is not set
# CONFIG_TARGET_brcm47xx_WRT350Nv1 is not set
# CONFIG_TARGET_brcm47xx_WRTSL54GS is not set
# CONFIG_TARGET_rb532_Default is not set
# CONFIG_TARGET_uml_Default is not set
# CONFIG_TARGET_lantiq_falcon_Generic is not set
# CONFIG_TARGET_lantiq_falcon_EASY98000 is not set
# CONFIG_TARGET_lantiq_falcon_EASY98020 is not set

I did the download/extract again and no change.

sbf@OptiPlex-GX270:~/Desktop/OpenWrt-SDK-brcm47xx-for-Linux-i686-gcc-4.3.3+cs_uClibc-0.9.30.1$ make menuconfig
Checking 'working-make'... ok.
Checking 'case-sensitive-fs'... ok.
Checking 'getopt'... ok.
Checking 'fileutils'... ok.
Checking 'working-gcc'... ok.
Checking 'working-g++'... ok.
Checking 'ncurses'... ok.
Checking 'zlib'... ok.
Checking 'gawk'... ok.
Checking 'flex'... ok.
Checking 'unzip'... ok.
Checking 'bzip2'... ok.
Checking 'patch'... ok.
Checking 'perl'... ok.
Checking 'python'... ok.
Checking 'wget'... ok.
Checking 'gnutar'... ok.
Checking 'svn'... ok.
Checking 'gnu-find'... ok.
Checking 'getopt-extended'... ok.
Checking 'non-root'... ok.
Collecting package info: done
Collecting target info: done
#
# using defaults found in .config
#

erm, ok. Well you're not supposed to use make menuconfig in the SDK. It is already compiled so you cannot change anything anyway. Simply run "make V=99" to build all packages in package/ or use make package/name/{clean,compile} V=99 to build selected ones explicitely.

Before running into other weird issues down the road; there is currently a relocatabilty problem with the SDK [1], you'll probably need to install a symlink "/home/jow/devel/openwrt/10.03.1/brcm47xx" to the topdir of the SDK.

1: https://dev.openwrt.org/ticket/10822

Thanks jow, I think I was mislead by printscreen & explanation on this Dutch site: http://dwienie.co.cc/index.php/De-cross-compiler.html to change "Target Profile"
For now, it won't compile, but I will have a look myself first, as this is the way I want to learn ;-)

OK, got it working. Thanks again.

The discussion might have continued from here.