# IPFire Build Environment: Missing configuration script

**URL:** <https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922>\
**Category:** Building IPFire\
**Created:** [13 January 2020 12:55 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922 "2020-01-13T12:55:53Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [13 January 2020 12:55 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/1 "2020-01-13T12:55:53Z")

</div>

It’s about 10 years ago when I had an build environment of ipfire for the last time so I’m not common with its structure anymore.

If I remeber right there should be a configuration file in the root directory of the build environment with its sources and make script, but I cant find it. There was not problem with building ipfire from scratch so my build environment works fine.

Therefore I cant run ./configure. What am I missing?

Thy alot.

Terry

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [13 January 2020 14:00 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/2 "2020-01-13T14:00:15Z")

</div>

The IPFire buildsystem never had a configure script but you can create a .config textfile in the folder where make.sh is located. But there are only some usefull variables like.

TARGET\_ARCH= (i586,x86\_64,armv5tel,aarch64) default is system arch.  
ENABLE\_RAMDISK= (on, off, auto) default is auto (if more than 4GB free use ramdisk)  
IPFIRE\_USER= (username for upload of the IPFire server)

Most of this should work in default (if no .config is present) and the arch can also specified on commandline.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [13 January 2020 14:10 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/3 "2020-01-13T14:10:28Z")

</div>

I propably mess up with something… I’m looking for this tui where you can check or uncheck parts/components/functions/programs to build.

My final plan is to update/replace a Sierra Wireless driver for my EM73xx wwan cards that is not functioning with ipfire but other linux os.

---

<div class="post-metadata">

**Author:** ![ms](https://community.ipfire.org/user_avatar/community.ipfire.org/ms/32/16615_2.png) [@ms](https://community.ipfire.org/u/ms)\
**Post date:** [13 January 2020 14:53 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/4 "2020-01-13T14:53:45Z")

</div>

> [@xperimental](#):
>
> I propably mess up with something… I’m looking for this tui where you can check or uncheck parts/components/functions/programs to build.

IPFire does not have that. You are thinking of buildroot and OpenWRT is using that for example.

> [@xperimental](#):
>
> My final plan is to update/replace a Sierra Wireless driver for my EM73xx wwan cards that is not functioning with ipfire but other linux os.

The problem that you have is very unlikely driver-related. It might be that the device is not properly ejected when it is inserted and therefore does not change into modem mode. That would be a problem in usb\_modeswitch. There could be some other timing issues, but generally you are talking to your device and that is what the driver does and it works.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [13 January 2020 14:59 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/5 "2020-01-13T14:59:44Z")

</div>

> [@ms](#):
>
> IPFire does not have that. You are thinking of buildroot and OpenWRT is using that for example.

Too bad and I thought ipfire has that as well as I thought to remember playing around with that when I tried to get an wifi card to work a long time ago.

> [@ms](#):
>
> The problem that you have is very unlikely driver-related. It might be that the device is not properly ejected when it is inserted and therefore does not change into modem mode. That would be a problem in usb\_modeswitch. There could be some other timing issues, but generally you are talking to your device and that is what the driver does and it works.

But the problem exists with two different laptops: Lenovo T440s with EM7345 + Panasonic Toughbook CF-C2 with EM7305.

Both wwan cards work fine with the latest Ubuntu and Kali so it can’t be hardware related.

---

<div class="post-metadata">

**Author:** ![ms](https://community.ipfire.org/user_avatar/community.ipfire.org/ms/32/16615_2.png) [@ms](https://community.ipfire.org/u/ms)\
**Post date:** [13 January 2020 15:02 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/6 "2020-01-13T15:02:28Z")

</div>

> [@xperimental](#):
>
> Both wwan cards work fine with the latest Ubuntu and Kali so it can’t be hardware related.

I am not saying that the hardware is broken. It is just not set up to be ready to act as a modem.

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [14 January 2020 15:07 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/7 "2020-01-14T15:07:53Z")

</div>

I can say that CONFIG\_USB\_SIERRA\_NET and CONFIG\_USB\_SERIAL\_SIERRAWIRELESS is enabled as module in the IPFire Kernel.

I fear that this card not support the pure modem mode and they use a AT command interface to unlock the SIM and set the APN’s but after this the connection is handled via an Ethernet device. This mode is not suported by the IPFire network init skripts.

to reach the kernel config you have to disable the ramdisk, run a full build and after this go into the build-shell (./make.sh shell) and go to /usr/src/linux and run make menuconfig

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [31 March 2020 10:36 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/8 "2020-03-31T10:36:24Z")

</div>

> [@arne\_f](#):
>
> go into the build-shell (./make.sh shell) and go to /usr/src/linux and run make menuconfig

I don’t have that folder. I’ve only got in /usr/src: cache, ccache, config, doc, html, langs, lfs, log, src.

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [31 March 2020 11:31 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/9 "2020-03-31T11:31:25Z")

</div>

You have to disable the ramdisk in .config and run a build before.  
If the ramdisk is enabled /usr/src/ is not permanent.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [31 March 2020 11:34 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/10 "2020-03-31T11:34:15Z")

</div>

> [@arne\_f](#):
>
> You have to disable the ramdisk in .config and run a build.

I did that but first built and afterwards disabled it (was already built in the past). Do I have to do it the other way around?

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [31 March 2020 11:37 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/11 "2020-03-31T11:37:58Z")

</div>

delete log/linux-4\*  
and run the build to kernel built. (the full kernel not the header part)  
You can break if the kernel compile has really started (run tail -f log/\_build-ipfire.log in a seperate shell to see)  
then run  
./make.sh shell  
cd /usr/src/linux  
make menuconfig

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [31 March 2020 13:02 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/12 "2020-03-31T13:02:51Z")

</div>

I’ll try that when the PC isn’t busy anymore. Thx.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [31 March 2020 15:18 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/13 "2020-03-31T15:18:35Z")

</div>

Hm I’m not sure if I’ve deactivated it at the right place.

in make.sh:

`CONFIG_ROOT=/var/ipfire # Configuration rootdir`

```
if ["${ENABLE_RAMDISK}" = "on"]; then
	mkdir -p $BASEDIR/build/usr/src
	mount -t tmpfs tmpfs -o size=4G,nr_inodes=1M,mode=1777 $BASEDIR/build/usr/src
fi

```

So I was looking for the ENABLE\_RAMDISK parameter but couldn’t find any config file so I set in make.sh

```
# Default settings
CCACHE_CACHE_SIZE="4G"
ENABLE_RAMDISK="off"

```

But there is

```
# Load configuration file
if [-f .config]; then
	. .config
fi

```

which may overwrite the parameter again. Can’t find .config. Where the hell is it? I now created a file “.config” in /build//var/ipfire and included the parameter ENABLE\_RAMDISK=“off”.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [31 March 2020 16:42 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/14 "2020-03-31T16:42:36Z")

</div>

Still no such directory.

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [1 April 2020 02:55 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/15 "2020-04-01T02:55:11Z")

</div>

> [@arne\_f](#):
>
> The IPFire buildsystem never had a configure script but you can create a .config textfile in the folder where make.sh is located. But there are only some usefull variables like.
> 
> TARGET\_ARCH= (i586,x86\_64,armv5tel,aarch64) default is system arch.  
> ENABLE\_RAMDISK= (on, off, auto) default is auto (if more than 4GB free use ramdisk)  
> IPFIRE\_USER= (username for upload of the IPFire server)

Your location of .config is wrong it must be in the folder like make.sh

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [1 April 2020 06:38 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/16 "2020-04-01T06:38:09Z")

</div>

> [@arne\_f](#):
>
> Your location of .config is wrong it must be in the folder like make.sh

God damn it and you wrote in a previous post… 🥶.

OK I’ll try again. Thx.

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [1 April 2020 10:02 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/17 "2020-04-01T10:02:57Z")

</div>

There is still noch such directory.

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/15363_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [1 April 2020 22:35 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/18 "2020-04-01T22:35:46Z")

</div>

my `.config` file was added manually and ended up here --\> `/home/pi/ipfire-2.x/.config`

```auto
$ cd ipfire-2.x
$ pwd
/home/pi/ipfire-2.x

$ ls -al
total 160
drwxr-xr-x 14 pi pi 4096 Apr 1 15:59 .
drwxr-xr-x 28 pi pi 4096 Mar 31 17:36 ..
drwxr-xr-x 21 root root 4096 Apr 1 15:59 build
drwxr-xr-x 3 pi pi 32768 Mar 31 16:35 cache
drwxr-xr-x 3 root root 4096 Mar 31 16:36 ccache
-rw-r--r-- 1 pi pi 19 Apr 1 15:12 .config
drwxr-xr-x 94 pi pi 4096 Mar 31 15:14 config
drwxr-xr-x 2 pi pi 4096 Mar 31 15:14 doc
drwxr-xr-x 8 pi pi 4096 Apr 1 15:59 .git
-rw-r--r-- 1 pi pi 153 Mar 31 15:14 .gitignore
drwxr-xr-x 4 pi pi 4096 Mar 31 15:14 html
drwxr-xr-x 11 pi pi 4096 Mar 31 15:14 langs
drwxr-xr-x 2 pi pi 20480 Mar 31 15:14 lfs
drwxr-xr-x 2 root root 4096 Apr 1 17:14 log
-rw-r--r-- 1 pi pi 1647 Mar 31 15:14 .mailmap
-rwxr-xr-x 1 pi pi 48357 Apr 1 11:50 make.sh
drwxr-xr-x 17 pi pi 4096 Mar 31 15:14 src
drwxr-xr-x 3 pi pi 4096 Mar 31 15:14 tools

$ cat .config
TARGET_ARCH=x86_64

```

---

<div class="post-metadata">

**Author:** ![xperimental](https://community.ipfire.org/user_avatar/community.ipfire.org/xperimental/32/8252_2.png) [@xperimental](https://community.ipfire.org/u/xperimental)\
**Post date:** [2 April 2020 10:07 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/19 "2020-04-02T10:07:06Z")

</div>

Do you get the folder @arne_f is talking about, if you disable the ramdisk?

---

<div class="post-metadata">

**Author:** ![jon](https://community.ipfire.org/user_avatar/community.ipfire.org/jon/32/15363_2.png) [@jon](https://community.ipfire.org/u/jon)\
**Post date:** [3 April 2020 01:50 UTC](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922/20 "2020-04-03T01:50:12Z")

</div>

the one with `make.sh` in it??

run:

```auto
find / -iname make.sh

```

Do you find any `make.sh` files?

[Next page](https://community.ipfire.org/t/ipfire-build-environment-missing-configuration-script/922.md?page=2)
