[Android Software/Hacking General [Developers Only]] globula_neagra:
As the title states, me and another guy are trying to port the CM7 to ARNOVA 7C G2

Arnova specs

msm 7627 surf+ processor

384 RAM

352 NAND (partitioned like this 5 mb boot.img/5mb recovery/120mb system/misc1mb/cache1mb/data(i dont remeber the size)

A 7inch screen

Android 2.3.3

Kernel 2.36.7 perf+

What i did till now:

We used the stock boot.img from the 2.3.3 rom because it has the drivers for wifi/bluetooth ect.

We builded a CM7 from scratch, that works on our device, bluetooth working/sensors/camera/3d acceleration/sound (everything but not the wifi)

Not working is the wifi and my opinion is that is not working because of this library libhardware_legacy.so (on the stock rom of our device this file has some things which are not present in the cm7 port)

This was my last port

here are the results from the adb logcat when i try to start the wifi (the wifi is starting but i dont see any networks)

21:49:03.631 Info ActivityManager 121 Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.WirelessSettings } from pid 458

21:49:03.631 Verbose NFC 458 this device does not have NFC support

21:49:04.069 Info ActivityManager 121 Displayed com.android.settings/.WirelessSettings: +443ms

21:49:15.211 Error WifiHW 121 Unable to open connection to supplicant on "wlan0": No such file or directory

21:49:15.211 Info wpa_supplicant 531 wapi_supplicant_init: Init WAPI packet wlan0

21:49:15.211 Info wpa_supplicant 531 wpa_driver_wext_set_wpa

21:49:15.212 Info wpa_supplicant 531 wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0

21:49:15.212 Info wpa_supplicant 531 wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0

21:49:15.212 Info wpa_supplicant 531 wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0

21:49:15.212 Info wpa_supplicant 531 wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0

21:49:15.212 Info wpa_supplicant 531 wpa_driver_wext_set_countermeasures

21:49:15.212 Info wpa_supplicant 531 wpa_driver_wext_set_drop_unencrypted

21:49:15.317 Info wpa_supplicant 531 sun_path = wpa_DIR=/data/misc/wifi/wpa_supplicant GROUP=wifi

21:49:15.317 Info wpa_supplicant 531 [wpa_supplicant_ctrl_iface_init] buf = DIR=/data/misc/wifi/wpa_supplicant GROUP=wifi

21:49:15.317 Info wpa_supplicant 531 preset :wpa_s->scan_interval 5

21:49:15.317 Info wpa_supplicant 531 new value :wpa_s->scan_interval 7

21:49:15.317 Info wpa_supplicant 531 Added interface wlan0

21:49:15.317 Info dun_service 79 process rmnet event

21:49:15.317 Info wpa_supplicant 531 CTRL-EVENT-STATE-CHANGE id=-1 state=2 BSSID=00:00:00:00:00:00

21:49:15.318 Info wpa_supplicant 531 CTRL-EVENT-SCAN-RESULTS

21:49:15.318 Info wpa_supplicant 531 FOXDA_rescan timeout= 0

21:49:16.956 Info wpa_supplicant 531 CTRL-EVENT-SCAN-RESULTS

21:49:16.956 Info wpa_supplicant 531 WPS-AP-AVAILABLE

21:49:16.956 Info wpa_supplicant 531 No network enabled Change state to WPA_INACTIVE

21:49:16.956 Info wpa_supplicant 531 CTRL-EVENT-STATE-CHANGE id=-1 state=1 BSSID=00:00:00:00:00:00

21:49:20.230 Error WifiHW 121 Unable to open connection to supplicant on "wlan0": No such file or directory

21:49:17.172 Debug WifiService 121 ACTION_BATTERY_CHANGED pluggedType: 2

21:49:25.143 Error WifiHW 121 Unable to open connection to supplicant on "wlan0": No such file or directory

21:49:25.143 Error NetlinkListener 71 ignoring message with no sender credentials

21:49:25.252 Debug WifiService 121 ACTION_BATTERY_CHANGED pluggedType: 2

21:49:26.237 Info ActivityManager 121 Starting: Intent { act=android.intent.action.MAIN cmp=com.android.settings/.wifi.WifiSettings } from pid 458

21:49:26.567 Info ActivityManager 121 Displayed com.android.settings/.wifi.WifiSettings: +307ms

21:49:30.170 Error WifiHW 121 Unable to open connection to supplicant on "wlan0": No such file or directory

21:49:30.170 Verbose WifiStateTracker 121 Supplicant died unexpectedly

21:49:30.170 Debug WifiStateTracker 121 Reset connections and stopping DHCP

21:49:33.230 Debug WifiService 121 ACTION_BATTERY_CHANGED pluggedType: 2

21:49:33.230 Debug WifiStateTracker 121 Reset connections and stopping DHCP

21:49:35.191 Error WifiStateTracker 121 Could not stop DHCP

21:49:35.191 Debug WifiStateTracker 121 Disabling interface

21:49:35.191 Info dun_service 79 process rmnet event

21:49:33.230 Info dun_service 79 The value returned from dun_getusbmodemstate_fromsys is 2

21:49:33.230 Error NetlinkListener 71 ignoring message with no sender credentials

21:49:38.247 Error WifiStateTracker 121 Could not stop DHCP

21:49:38.247 Debug WifiStateTracker 121 Disabling interface

21:49:38.247 Info dun_service 79 process rmnet event

21:49:38.247 Info dun_service 79 process rmnet event

21:49:38.247 Warning ProcessStats 121 Skipping unknown process pid 624

21:49:38.247 Info wpa_supplicant 531 CTRL-EVENT-TERMINATING - signal 15 received

21:49:38.247 Info wpa_supplicant 531 CTRL-EVENT-TERMINATING - signal 0 received

21:49:38.248 Info wpa_supplicant 531 CTRL-EVENT-STATE-CHANGE id=-1 state=0 BSSID=00:00:00:00:00:00

21:49:38.248 Info wpa_supplicant 531 wpa_driver_wext_set_wpa

21:49:38.248 Info wpa_supplicant 531 wpa_driver_wext_set_drop_unencrypted

21:49:38.248 Info wpa_supplicant 531 wpa_driver_wext_set_countermeasures

21:49:38.358 Debug Tethering 121 MasterInitialState.processMessage what=3

21:49:38.471 Debug WifiStateTracker 121 Reset connections and stopping DHCP

21:49:38.471 Debug CMStats 317 CONNECTIVITY_ACTION: noConnectivity = true

21:49:38.358 Debug SettingsAppWidgetProvider 458 No instances yet... Wait for at least one instance to exist before adding global settings

21:49:38.358 Debug SettingsAppWidgetProvider 458 Widget is from a previous version... Let's update

21:49:43.381 Debug WifiStateTracker 121 Disabling interface

21:49:43.381 Error WifiStateTracker 121 Could not stop DHCP

I tried to move the libhardware_legacy.so to the cm7 from the stock rom, but i get a bootloop.

SO

My question are, what we should do ?

Try to recompile the cm7, using the stock boot.img ?

Is there a way to port the libhardware_legacy.so to the cm7 ?

Usually what are the library files used by the wifi ?

I will be greatfull for any answer or path to fallow.