View previous topic :: View next topic |
Author |
Message |
donjames Apprentice
Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 31, 2020 12:42 am Post subject: make menuconfig not working[solved] |
|
|
Hi,
I have a raspberry pi 2. I am trying to make it run as a router. I have all of the router commands loaded, but it still won't route. I suspect that there's something in the kernel that is keeping it from working. It will ping the internet, but won't route.
When I type:
make menuconfig
It responds with:
make: *** No rule to make target 'menuconfig'. Stop.
Does anyone have a clue what is going on here?
Thanks,
donjames
Last edited by donjames on Sat Jun 13, 2020 12:28 am; edited 1 time in total |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3436 Location: Canada
|
Posted: Sun May 31, 2020 1:10 am Post subject: Re: make menuconfig not working |
|
|
donjames wrote: | Hi,
I have a raspberry pi 2. I am trying to make it run as a router. I have all of the router commands loaded, but it still won't route. I suspect that there's something in the kernel that is keeping it from working. It will ping the internet, but won't route.
When I type:
make menuconfig
It responds with:
make: *** No rule to make target 'menuconfig'. Stop.
Does anyone have a clue what is going on here?
Thanks,
donjames |
Are you in a directory where the kernel source is when you type 'make menuconfig' ? |
|
Back to top |
|
|
donjames Apprentice
Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 31, 2020 4:38 am Post subject: |
|
|
Hi dmpogo,
I am in the directory:
/var/db/gentoo/repos/gentoo/sys-kernel/gentoo-sources
Same result:
No rule to make target 'menuconfig'. Stop.
# lsmod
Module Size Used by
cfg80211 651264 0
rfkill 28672 1 cfg80211
8021q 32768 0
garp 16384 1 8021q
stp 16384 1 garp
llc 16384 2 garp,stp
ipt_MASQUERADE 16384 1
xt_nat 16384 0
iptable_nat 16384 1
nf_nat_ipv4 16384 2 ipt_MASQUERADE,iptable_nat
nf_nat 36864 2 xt_nat,nf_nat_ipv4
nf_conntrack 135168 4 xt_nat,ipt_MASQUERADE,nf_nat_ipv4,nf_nat
nf_defrag_ipv6 20480 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
ipt_REJECT 16384 2
nf_reject_ipv4 16384 1 ipt_REJECT
xt_tcpudp 16384 5
ipv6 454656 24
iptable_filter 16384 1
ip_tables 24576 2 iptable_filter,iptable_nat
x_tables 32768 6 ipt_REJECT,xt_nat,ip_tables,iptable_filter,xt_tcpudp,ipt_MASQUERADE
ax88179_178a 24576 0
joydev 20480 0
evdev 24576 0
binfmt_misc 20480 1
bcm2835_codec 36864 0
snd_bcm2835 24576 0
v4l2_mem2mem 24576 1 bcm2835_codec
bcm2835_v4l2 45056 0
v4l2_common 16384 1 bcm2835_v4l2
bcm2835_mmal_vchiq 32768 2 bcm2835_codec,bcm2835_v4l2
videobuf2_dma_contig 20480 1 bcm2835_codec
videobuf2_vmalloc 16384 1 bcm2835_v4l2
snd_pcm 102400 1 snd_bcm2835
videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc
videobuf2_v4l2 24576 3 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common 45056 4 bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
snd_timer 32768 1 snd_pcm
dwc2 163840 0
snd 73728 3 snd_timer,snd_bcm2835,snd_pcm
videodev 200704 6 bcm2835_codec,v4l2_common,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
raspberrypi_hwmon 16384 0
media 36864 3 bcm2835_codec,videodev,v4l2_mem2mem
hwmon 16384 1 raspberrypi_hwmon
vc_sm_cma 36864 1 bcm2835_mmal_vchiq
udc_core 53248 1 dwc2
fixed 16384 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
Are all of the necessary kernel modules here?
donjames |
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3436 Location: Canada
|
Posted: Sun May 31, 2020 5:15 am Post subject: |
|
|
Hm, if you just did
emerge gentoo-sources
it installs sources in /usr/src/linux-xxxxxxxxx
so you need to be inside this directory to compile the kernel sources |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54579 Location: 56N 3W
|
Posted: Sun May 31, 2020 8:07 am Post subject: |
|
|
donjames,
/var/db/gentoo/repos/... is the location where Gentoo stores data about the repos you have installed.
sys-kernel/gentoo-sources is not useful on a Raspberry Pi2. You must use sys-kernel/raspberrypi-sources.
There is a choice of 4.19 or 5.4. Both pull from the Foundation kernel git repo, which is sys-kernel/vanilla-sources patched by the Raspberry Pi Foundation. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
donjames Apprentice
Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 31, 2020 2:35 pm Post subject: |
|
|
NeddySeagoon,
emerge sys-kernel/raspberrypi-sources
Calculating dependencies... done!
!!! All ebuilds that could satisfy "sys-kernel/raspberrypi-sources" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-kernel/raspberrypi-sources-5.4.9999::gentoo (masked by: missing keyword)
- sys-kernel/raspberrypi-sources-4.19.9999::gentoo (masked by: missing keyword)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
What do I do now?
regards,
donjames |
|
Back to top |
|
|
fturco Veteran
Joined: 08 Dec 2010 Posts: 1181
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54579 Location: 56N 3W
|
Posted: Sun May 31, 2020 3:33 pm Post subject: |
|
|
donjames,
Or clone the entire Foundation git repo into /usr/src/ and don't use portage to fetch the Pi kernel.
Whatever, don't start with make menconfig unless you already have a Pi2 .config file to drop into the kernel.
You need to set the default .config first.
I think you need Code: | make bcm2709_defconfig | but check that a Pi2 is 2709.
That will set the .config file ready to build the default kernel as distributed by the Foundation. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
donjames Apprentice
Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 31, 2020 5:42 pm Post subject: |
|
|
NeddySeagoon,
The raspberrypi-sources emerge with no errors, but there is no .config file.
How do I clone the entire Foundation git repo into /usr/src/ ?
# make bcm2709_defconfig
make: *** No rule to make target 'bcm2709_defconfig'. Stop.
# locate 2709
/usr/src/linux-4.19.9999-raspberrypi/arch/arm/boot/dts/bcm2709-rpi-2-b.dts
/usr/src/linux-4.19.9999-raspberrypi/arch/arm/boot/dts/bcm2709-rpi.dtsi
/usr/src/linux-4.19.9999-raspberrypi/arch/arm/boot/dts/bcm2709.dtsi
/usr/src/linux-4.19.9999-raspberrypi/arch/arm/configs/bcm2709_defconfig
/var/db/gentoo/repos/gentoo/.tmp-unverified-download-quarantine/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch
/var/db/gentoo/repos/gentoo/dev-python/citeproc-py/files/b1a5f925527093b0b5c11507f379a908e3354820.patch
I found bcm2709_defconfig. What do I do with it?
Thanks,
donjames |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54579 Location: 56N 3W
|
Posted: Sun May 31, 2020 6:06 pm Post subject: |
|
|
donjames,
Code: | # make bcm2709_defconfig | looks wrong.
You should be in /usr/src/<kernel-tree> when you Code: | make bcm2709_defconfig |
bcm2709 is correct. I cheated and looked in /boot on my Pi.
Code: | $ ls /boot/bcm*
/boot/bcm2708-rpi-0-w.dtb /boot/bcm2710-rpi-2-b.dtb /boot/bcm2711-rpi-4-b.dtb
/boot/bcm2708-rpi-b.dtb /boot/bcm2710-rpi-3-b.dtb /boot/bcm2711-rpi-4-b.dtb_32
/boot/bcm2708-rpi-b-plus.dtb /boot/bcm2710-rpi-3-b.dtb_2 /boot/bcm2711-rpi-4-b.dtb_64
/boot/bcm2708-rpi-cm.dtb /boot/bcm2710-rpi-3-b.dtb_32 /boot/bcm2837-rpi-3-a-plus.dtb
/boot/bcm2708-rpi-zero.dtb /boot/bcm2710-rpi-3-b-plus.dtb /boot/bcm2837-rpi-3-b.dtb
/boot/bcm2708-rpi-zero-w.dtb /boot/bcm2710-rpi-3-b-plus.dtb_32 /boot/bcm2837-rpi-3-b-plus.dtb
/boot/bcm2709-rpi-2-b.dtb /boot/bcm2710-rpi-cm3.dtb /boot/bcm2837-rpi-cm3-io3.dtb
roy@Pi4_~arm64 ~ $ |
/boot/bcm2709-rpi-2-b.dtb is the device tree for a Pi2.
Portage has just performed a shallow clone of your chosen kernel. You don't have all the history and branches of a full clone, the the current state of the kernel.
That's fine. The full git clone does not have a .config either. That's why you have to choose one to get started. There are 121 it my kernel.
To see them, look in arch/arm/configs/ it the kernel tree _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
donjames Apprentice
Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 31, 2020 6:23 pm Post subject: |
|
|
NeddySeagoon,
It worked! I am now in the kernel configuration!
Thank you,
Don James
NeddySeagoon wrote: | donjames,
Code: | # make bcm2709_defconfig | looks wrong.
You should be in /usr/src/<kernel-tree> when you Code: | make bcm2709_defconfig |
bcm2709 is correct. I cheated and looked in /boot on my Pi.
Code: | $ ls /boot/bcm*
/boot/bcm2708-rpi-0-w.dtb /boot/bcm2710-rpi-2-b.dtb /boot/bcm2711-rpi-4-b.dtb
/boot/bcm2708-rpi-b.dtb /boot/bcm2710-rpi-3-b.dtb /boot/bcm2711-rpi-4-b.dtb_32
/boot/bcm2708-rpi-b-plus.dtb /boot/bcm2710-rpi-3-b.dtb_2 /boot/bcm2711-rpi-4-b.dtb_64
/boot/bcm2708-rpi-cm.dtb /boot/bcm2710-rpi-3-b.dtb_32 /boot/bcm2837-rpi-3-a-plus.dtb
/boot/bcm2708-rpi-zero.dtb /boot/bcm2710-rpi-3-b-plus.dtb /boot/bcm2837-rpi-3-b.dtb
/boot/bcm2708-rpi-zero-w.dtb /boot/bcm2710-rpi-3-b-plus.dtb_32 /boot/bcm2837-rpi-3-b-plus.dtb
/boot/bcm2709-rpi-2-b.dtb /boot/bcm2710-rpi-cm3.dtb /boot/bcm2837-rpi-cm3-io3.dtb
roy@Pi4_~arm64 ~ $ |
/boot/bcm2709-rpi-2-b.dtb is the device tree for a Pi2.
Portage has just performed a shallow clone of your chosen kernel. You don't have all the history and branches of a full clone, the the current state of the kernel.
That's fine. The full git clone does not have a .config either. That's why you have to choose one to get started. There are 121 it my kernel.
To see them, look in arch/arm/configs/ it the kernel tree |
|
|
Back to top |
|
|
donjames Apprentice
Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 31, 2020 10:25 pm Post subject: |
|
|
NeddySeagoon,
It works! I now have a Pi2 running as a router.
I was able to make a .config file and run "make menuconfig"
Thanks for your help,
donjames
donjames wrote: | NeddySeagoon,
It worked! I am now in the kernel configuration!
Thank you,
Don James
NeddySeagoon wrote: | donjames,
Code: | # make bcm2709_defconfig | looks wrong.
You should be in /usr/src/<kernel-tree> when you Code: | make bcm2709_defconfig |
bcm2709 is correct. I cheated and looked in /boot on my Pi.
Code: | $ ls /boot/bcm*
/boot/bcm2708-rpi-0-w.dtb /boot/bcm2710-rpi-2-b.dtb /boot/bcm2711-rpi-4-b.dtb
/boot/bcm2708-rpi-b.dtb /boot/bcm2710-rpi-3-b.dtb /boot/bcm2711-rpi-4-b.dtb_32
/boot/bcm2708-rpi-b-plus.dtb /boot/bcm2710-rpi-3-b.dtb_2 /boot/bcm2711-rpi-4-b.dtb_64
/boot/bcm2708-rpi-cm.dtb /boot/bcm2710-rpi-3-b.dtb_32 /boot/bcm2837-rpi-3-a-plus.dtb
/boot/bcm2708-rpi-zero.dtb /boot/bcm2710-rpi-3-b-plus.dtb /boot/bcm2837-rpi-3-b.dtb
/boot/bcm2708-rpi-zero-w.dtb /boot/bcm2710-rpi-3-b-plus.dtb_32 /boot/bcm2837-rpi-3-b-plus.dtb
/boot/bcm2709-rpi-2-b.dtb /boot/bcm2710-rpi-cm3.dtb /boot/bcm2837-rpi-cm3-io3.dtb
roy@Pi4_~arm64 ~ $ |
/boot/bcm2709-rpi-2-b.dtb is the device tree for a Pi2.
Portage has just performed a shallow clone of your chosen kernel. You don't have all the history and branches of a full clone, the the current state of the kernel.
That's fine. The full git clone does not have a .config either. That's why you have to choose one to get started. There are 121 it my kernel.
To see them, look in arch/arm/configs/ it the kernel tree |
|
|
|
Back to top |
|
|
|