WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How can I symlink to the kernel source in "/lib/modules/'uname -a'/build"?  (Read 9978 times)

Offline danny

  • Jr. Member
  • **
  • Posts: 73
Should I execute
Code: [Select]
./configure --host=arm-linux --prefix=/home/tc/workand compile Makefile in iw-4.14 and libnl-3.4.0 like
Code: [Select]
make mrproperor other instruction to compile them?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
You should do it like this:
Code: [Select]
CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-static

find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \;

make
sudo make install

..but why compile them when they already exist?
« Last Edit: May 18, 2020, 01:16:49 AM by Juanito »

Offline danny

  • Jr. Member
  • **
  • Posts: 73
When I pasted
Code: [Select]
CC="gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe" CXX="g++ -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --localstatedir=/var --disable-staticthen show
Code: [Select]
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether make supports nested variables... no
checking whether make supports nested variables... (cached) no
checking for style of include used by make... none
checking for gcc... gcc -march=armv6zk -mtune=arm1176jzf-s -mfpu=vfp -Os -pipe
checking whether the C compiler works... no
configure: error: in `/home/tc/libnl-3.4.0':
configure: error: C compiler cannot create executables
See `config.log' for more details

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
Did you load compiletc and are you compiling on an RPi?

Offline danny

  • Jr. Member
  • **
  • Posts: 73
Thanks for help Juanito and Rich.
I have installed it successfully.
By the way,
Can I change default Wifi interface "wlan0" to another one on piCore?

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14796
What are you try to do exactly?

If you wish to disable the built-in wifi on an RPi3, for example, you can add the following to /mnt/mmcblk0p1/config.txt:
Code: [Select]
dtoverlay=pi3-disable-wifi
Once the built-in wifi is disabled, the wifi.sh script from the wifi extension looks like it would detect rpine0 from your extenal adapter.

Edit: it also looks like "dtoverlay=disable-wifi" would disable the built-in wifi on both RPi3 and RPi4.

« Last Edit: May 19, 2020, 01:59:40 AM by Juanito »