caiwang / board2ihost

0 stars 0 forks source link

在rocklite上用 kernel source 3.0.36编译 rt2800usb.ko #60

Open unissoft-bj opened 9 years ago

unissoft-bj commented 9 years ago

apt-get update apt-get upgrade apt-get install libncurses5-dev

download kernel source 3,0.,36 in /usr/src/linux-3.0.36

cp radxa_rock_linux_defconfig to linux-3.0.36/arch/arm/configs/radxa_rock_linux_defconfig

from linux-rockchip

make radxa_rock_linux_defconfig make menuconfig

system type platform type kernel feature

device drive (network - wireless - ralink)

nano .config

CONFIG_LOCALVERSION="+"

nano scripts/setlocalversion

echo "+" -> echo ""

make modules mkdir mocules make INSTALL_MOD_PATH=./modules modules_install

与交叉编译的结果没有区别

root@radxa:/usr/src/linux-3.0.36/modules/lib/modules/3.0.36+/kernel/drivers/net/wireless/rt2x00# diff rt2800usb.ko /lib/modules/3.0.36+/kernel /drivers/net/wireless/rt2x00/rt2800usb.ko

unissoft-bj commented 9 years ago

root@radxa:/usr/src/linux-3.0.36/modules/lib/modules/3.0.36+/kernel/drivers/net/wireless/rt2x00# dmesg | tail -n 50 [ 15.410490] data=0x0 [ 23.960491] eth0: no IPv6 routers present [ 28.409221] data=0x0 [ 32.177299] data=0x0 [ 32.377236] data=0x3 [ 39.953436] data=0x1 [ 47.379768] data=0x4661 [ 61.412736] data=0x8 [ 74.416236] data=0x0 [ 83.411734] data=0x2 [ 87.419709] data=0x1 [ 137.447039] init: plymouth-upstart-bridge main process ended, respawning [ 137.668249] init: tty1 main process (1030) killed by TERM signal [ 257.235115] usbcore: registered new interface driver rt2800usb [ 277.725020] usb 2-1.3: new high speed USB device number 4 using usb20_host [ 277.842888] usb 2-1.3: New USB device found, idVendor=148f, idProduct=5370 [ 277.842958] usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 277.843013] usb 2-1.3: Product: 802.11 n WLAN [ 277.843050] usb 2-1.3: Manufacturer: Ralink [ 277.843096] usb 2-1.3: SerialNumber: 1.0 [ 277.871429] ------------[ cut here ]------------ [ 277.871491] WARNING: at net/wireless/core.c:565 wiphy_register+0x50c/0x578() [ 277.871564] [] (unwind_backtrace+0x0/0xf8) from [] (warn_slowpath_common+0x4c/0x64) [ 277.871637] [] (warn_slowpath_common+0x4c/0x64) from [] (warn_slowpath_null+0x1c/0x24) [ 277.871707] [] (warn_slowpath_null+0x1c/0x24) from [] (wiphy_register+0x50c/0x578) [ 277.871771] [] (wiphy_register+0x50c/0x578) from [] (ieee80211_register_hw+0x2ac/0x608) [ 277.871855] [] (ieee80211_register_hw+0x2ac/0x608) from [] (rt2x00lib_probe_dev+0x540/0x700 [rt2x00lib]) [ 277.871938] [] (rt2x00lib_probe_dev+0x540/0x700 [rt2x00lib]) from [] (rt2x00usb_probe+0x110/0x1bc [rt2x00usb]) [ 277.872022] [] (rt2x00usb_probe+0x110/0x1bc [rt2x00usb]) from [] (usb_probe_interface+0xdc/0x1a8) [ 277.872100] [] (usb_probe_interface+0xdc/0x1a8) from [] (driver_probe_device+0x90/0x1ac) [ 277.872162] [] (driver_probe_device+0x90/0x1ac) from [] (bus_for_each_drv+0x118/0x278) [ 277.872230] [] (bus_for_each_drv+0x118/0x278) from [] (device_attach+0x94/0xb8) [ 277.872287] [] (device_attach+0x94/0xb8) from [] (bus_probe_device+0x24/0x40) [ 277.872351] [] (bus_probe_device+0x24/0x40) from [] (device_add+0x4bc/0x588) [ 277.872406] [] (device_add+0x4bc/0x588) from [] (usb_set_configuration+0x5a4/0x6d0) [ 277.872475] [] (usb_set_configuration+0x5a4/0x6d0) from [] (generic_probe+0x44/0x94) [ 277.872533] [] (generic_probe+0x44/0x94) from [] (usb_probe_device+0x18/0x1c) [ 277.872596] [] (usb_probe_device+0x18/0x1c) from [] (driver_probe_device+0x90/0x1ac) [ 277.872654] [] (driver_probe_device+0x90/0x1ac) from [] (bus_for_each_drv+0x118/0x278) [ 277.872720] [] (bus_for_each_drv+0x118/0x278) from [] (device_attach+0x94/0xb8) [ 277.872776] [] (device_attach+0x94/0xb8) from [] (bus_probe_device+0x24/0x40) [ 277.872838] [] (bus_probe_device+0x24/0x40) from [] (device_add+0x4bc/0x588) [ 277.872898] [] (device_add+0x4bc/0x588) from [] (usb_new_device+0x198/0x220) [ 277.872964] [] (usb_new_device+0x198/0x220) from [] (hub_port_connect_change+0x278/0x8a4) [ 277.873025] [] (hub_port_connect_change+0x278/0x8a4) from [] (hub_thread+0x294/0x790) [ 277.873094] [] (hub_thread+0x294/0x790) from [] (kthread+0x80/0x88) [ 277.873152] [] (kthread+0x80/0x88) from [] (kernel_thread_exit+0x0/0x8) [ 277.873206] ---[ end trace 8424250080926541 ]--- [ 277.873239] (null) -> rt2x00lib_probe_dev: Error - Failed to initialize hw. [ 277.873573] rt2800usb: probe of 2-1.3:1.0 failed with error -22 root@radxa:/usr/src/linux-3.0.36/modules/lib/modules/3.0.36+/kernel/drivers/net/wireless/rt2x00# lsmod Module Size Used by rt2800usb 11050 0 rt2800lib 35157 1 rt2800usb rt2x00usb 7426 1 rt2800usb rt2x00lib 29506 3 rt2x00usb,rt2800lib,rt2800usb fbcon 35136 71 bitblit 3992 1 fbcon softcursor 924 1 bitblit font 7050 1 fbcon root@radxa:/usr/src/linux-3.0.36/modules/lib/modules/3.0.36+/kernel/drivers/net/wireless/rt2x00#