[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Build module r8712u



Good to hear that!
Exec format errors ->
gcc Cross Compile env _vars werent configured earlier..

On 22 August 2012 12:33, ny <ny.bash@gmail.com> wrote:
> 2012/8/21 ny <ny.bash@gmail.com>:
>> Hello!
>>
>> I try to build the module for my asus n-10 wifi adapter.
>>
>> # uname -a
>> Linux NAS 3.2.0-3-kirkwood #1 Mon Jul 23 22:36:47 UTC 2012 armv5tel GNU/Linux
>>
>> # cat /etc/debian_version
>> wheezy/sid
>>
>> # cat /boot/config-3.2.0-3-kirkwood > /usr/src/linux-source-3.2/.config
>>
>> # cd /usr/src/linux-source-3.2
>> # make menuconfig
>>
>> Then I turn on the module for this device:
>>
>> Device Drivers  --->
>>    Staging drivers  --->
>>       (M) RealTek RTL8712U (RTL8192SU) Wireless LAN NIC driver
>>
>> # make modules
>>
>> everything passes successfully.
>>
>> # mkdir /lib/modules/3.2.0-3-kirkwood/kernel/drivers/staging/rtl8712
>> # cp drivers/staging/rtl8712/r8712u.ko
>> /lib/modules/3.2.0-3-kirkwood/kernel/drivers/staging/rtl8712/
>> # depmod -a
>>
>> # modprobe r8712u
>> ERROR: could not insert 'r8712u': Exec format error
>>
>> =(( But why??
>>
>> # insmod /lib/modules/3.2.0-3-kirkwood/kernel/drivers/staging/rtl8712/r8712u.ko
>> Error: could not insert module
>>
>> Why??
>>
>> How it is correct me to build this module?
>>
>> Thank's!
>
> Hi guys! I make it!
>
> # apt-get install mlton-runtime-arm-linux-gnueabi
> # cd /usr/src/linux-source-3.2/
> # cp /boot/config-3.2.0-3-kirkwood .config
> # cp /usr/src/linux-headers-3.2.0-3-kirkwood/Module.symvers ./
> # ln -s /usr/bin/ar /usr/bin/arm-linux-gnueabi-ar
> # ln -s /usr/bin/ld /usr/bin/arm-linux-gnueabi-ld
> # ln -s /usr/bin/objdump /usr/bin/arm-linux-gnueabi-objdump
> # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- menuconfig
>
> Device Drivers  --->
>    Staging drivers  --->
>       (M) RealTek RTL8712U (RTL8192SU) Wireless LAN NIC driver
>
> # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- modules_prepare
> # make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- M=drivers/staging/rtl8712/
> # mkdir /lib/modules/3.2.0-3-kirkwood/kernel/drivers/staging/rtl8712
> # cp drivers/staging/rtl8712/r8712u.ko
> /lib/modules/3.2.0-3-kirkwood/kernel/drivers/staging/rtl8712/
> # depmod -a
> # modprobe r8712u
>
> and iwconfig show me wlan0 interface!
>
> Will "drivers/staging" be added to official release of debian-armel kernel?
>
>
> --
> To UNSUBSCRIBE, email to debian-arm-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: CAAS3B=DpFootUBwBUFDrrZfxS-R071BWnjOLzVRn_P3G+Sj=jQ@mail.gmail.com">http://lists.debian.org/CAAS3B=DpFootUBwBUFDrrZfxS-R071BWnjOLzVRn_P3G+Sj=jQ@mail.gmail.com
>



-- 
Regards,
Johnson Chetty,


Reply to: