New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

B2 Building a Custom kernel - menuconfig issue

Got problems with your B2 or B3? Share and get helped!
MouettE
Site admin
Posts: 341
Joined: 06 Oct 2011, 19:45

Re: B2 Building a Custom kernel - menuconfig issue

Post by MouettE »

paulchany wrote:How can I run 'make' on crtsavres?
Did you try :

Code: Select all

make arch/powerpc/lib/crtsavres.o
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: B2 Building a Custom kernel - menuconfig issue

Post by Gordon »

Same as for the realtek module

Code: Select all

make M=$(pwd)/arch/powerpc/lib
Don't know if you need to specify a special make target for this location and don't have the means to verify.
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 Building a Custom kernel - menuconfig issue

Post by paulchany »

Gordon wrote:Same as for the realtek module

Code: Select all

make M=$(pwd)/arch/powerpc/lib
Don't know if you need to specify a special make target for this location and don't have the means to verify.
Success!
I did, as you advice me the followings:

Code: Select all

make M=$(pwd)/arch/powerpc/lib
make M=$(pwd)/drivers/net/wireless/rtlwifi modules
sudo su
make M=$(pwd)/drivers/net/wireless/rtlwifi modules_install
The output of the last command is:
INSTALL /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
INSTALL /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
INSTALL /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtlwifi.ko
DEPMOD 3.2.62-1
But, the following command fails:

Code: Select all

modprobe -v rtl8192cu
FATAL: Module rtl8192cu not found.
I know this is because the three modules are not yet in root directory of Bubba, namely here:
/lib/modules/3.2.62-1/kernel/drivers/net/wireless/
The newly builded kernel modules are not in the right place.
What can I do to get in the right place the newly builded kernel modules?
Can I just copy them out there?
Best, Pali
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 Building a Custom kernel - menuconfig issue

Post by paulchany »

paulchany wrote:
Gordon wrote:Same as for the realtek module

Code: Select all

make M=$(pwd)/arch/powerpc/lib
Don't know if you need to specify a special make target for this location and don't have the means to verify.
Success!
I did, as you advice me the followings:

Code: Select all

make M=$(pwd)/arch/powerpc/lib
make M=$(pwd)/drivers/net/wireless/rtlwifi modules
sudo su
make M=$(pwd)/drivers/net/wireless/rtlwifi modules_install
The output of the last command is:
INSTALL /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
INSTALL /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
INSTALL /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtlwifi.ko
DEPMOD 3.2.62-1
I know this is because the three modules are not yet in root directory of Bubba, namely here:
/lib/modules/3.2.62-1/kernel/drivers/net/wireless/
Taking into account the advices from here:
http://www.debian-administration.org/ar ... nel_module
additional commands my be:

Code: Select all

cd /lib/modules/`uname -r`
mkdir -p kernel/drivers/net/wireless/rtlwifi
cp /home/csanyipal/BubbaKernelek/LeforditottKernelek/CsakEgyelenKernelModulLeforditasa/community-b3-kernel-debian-1-3.2.62-1/drivers/net/wireless/rtlwifi/rtlwifi.ko kernel/drivers/net/wireless/rtlwifi/
depmod -a
Am I right?
I go further:

Code: Select all

modprobe -v rtl8192cu
insmod /lib/modules/3.2.62-1/kernel/net/wireless/cfg80211.ko
insmod /lib/modules/3.2.62-1/kernel/net/mac80211/mac80211.ko
insmod /lib/modules/3.2.62-1/extra/rtl8192c/rtl8192c-common.ko
insmod /lib/modules/3.2.62-1/extra/rtlwifi.ko
insmod /lib/modules/3.2.62-1/extra/rtl8192cu/rtl8192cu.ko

Code: Select all

lsmod | grep rtl8192cu
rtl8192cu 92392 0
rtlwifi 86070 1 rtl8192cu
rtl8192c_common 51568 1 rtl8192cu
mac80211 158472 3 rtl8192c_common,rtlwifi,rtl8192cu
I think this is done: I have running the desired kernel module now.
Best, Pali
Gordon
Posts: 1461
Joined: 10 Aug 2011, 03:18

Re: B2 Building a Custom kernel - menuconfig issue

Post by Gordon »

Good job.

Don't think the kernel/drivers/net/wireless/rtlwifi folder is required, because if you look at the console output the modules are taken from the extra folder. Most likely depmod was not executed correctly from the install procedure.
paulchany
Posts: 123
Joined: 10 Jul 2009, 15:48
Location: Serbia
Contact:

Re: B2 Building a Custom kernel - menuconfig issue

Post by paulchany »

Gordon wrote:Good job.

Don't think the kernel/drivers/net/wireless/rtlwifi folder is required, because if you look at the console output the modules are taken from the extra folder. Most likely depmod was not executed correctly from the install procedure.
Thank you and Mouette for help.

Indeed, the new rtlwifi.ko module is in:
/lib/modules/3.2.62-1/extra/rtlwifi.ko
but also is in:
/lib/modules/3.2.62-1/kernel/drivers/net/wireless/rtlwifi/rtlwifi.ko

So, now I have following new modules:
/lib/modules/3.2.62-1/kernel/drivers/net/wireless/rtlwifi/rtlwifi.ko
and
/lib/modules/3.2.62-1/extra/rtl8192c/rtl8192c-common.ko
/lib/modules/3.2.62-1/extra/rtl8192cu/rtl8192cu.ko
/lib/modules/3.2.62-1/extra/rtlwifi.ko
However, when I executed

Code: Select all

depmod -a
there was nor warnings, neither errors. Then?
Best, Pali
Post Reply