Compiled code size of ralink wifi driver too huge

by Lay » Wed, 02 Mar 2011 01:25:08 GMT


Sponsored Links
 Hi Android porters,

I am trying to port ralink wifi rt2870sta.ko into Android v2.1. After
compiling the driver with arm-eabi-gcc, the code size of rt2870sta.ko
came up to 9Mbyte. This is too large. When I compiled using the normal
PC gcc on Ubuntu 10.04, the code size is about 700kbyte.

Is this normal behavior?

Thank you.

-- 



Re: Compiled code size of ralink wifi driver too huge

by Deva R » Thu, 03 Mar 2011 22:49:09 GMT


 by any chance you passed "-static" flag to gcc?
build library with "make showcommands" and check the flags passed
during compilation.






-- 
Regards,
Deva
www.bittoggler.com

-- 


Sponsored Links


Re: Compiled code size of ralink wifi driver too huge

by Lay » Fri, 04 Mar 2011 14:14:02 GMT


 Thank you for the tip. It is helpful.





-- 



Re: Compiled code size of ralink wifi driver too huge

by Louis Tsai » Mon, 28 Mar 2011 00:01:38 GMT


 Hi Lay,

Can you show me how did you port the Ralink driver into Android v2.1 ?

Yesterday, I want to port Ralink 3070 driver in an embedded system
which run on ARM chip,
I modify Makefile in Ralink driver package

I specified CROSS_COMPILE , LINUX_SRC and LINUX_SRC_MODULE

Then I do 'make' to build the driver, but there are some ERROR
occurred.

Can you explain how did you build the driver?

Thanks

BR.




-- 



Other Threads

1. Add Self-Define view into layout

I have a self-define view class, I would like to add this view into
the layout , but there is a problem

02-21 17:23:07.843: ERROR/AndroidRuntime(1253): Uncaught handler:
thread main exiting due to uncaught exception
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.example.helloandroid/
com.example.helloandroid.HelloAndroid}: java.lang.NullPointerException
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2401)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2417)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.ActivityThread.access$2100(ActivityThread.java:116)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1794)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.os.Handler.dispatchMessage(Handler.java:99)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.os.Looper.loop(Looper.java:123)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.ActivityThread.main(ActivityThread.java:4203)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
java.lang.reflect.Method.invokeNative(Native Method)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
java.lang.reflect.Method.invoke(Method.java:521)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:791)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:549)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
dalvik.system.NativeStart.main(Native Method)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253): Caused by:
java.lang.NullPointerException
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
com.example.helloandroid.HelloAndroid.onCreate(HelloAndroid.java:16)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1123)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2364)
02-21 17:23:07.853: ERROR/AndroidRuntime(1253):     ... 11 more

Here is my code, I want the SelfView to be under the TextView.

public class HelloAndroid extends Activity {
        private SelfView mSelfView;
   /** Called when the activity is first created. */
   @Override
   public void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       LinearLayout mlayout =
(LinearLayout)findViewById(R.id.mylayout);
       mSelfView = new SelfView(this);
       mlayout.addView(mSelfView);
       setContentView(R.layout.main);
   }
}

public class SelfView extends View {

        public SelfView(Context context) {
                super(context);
                // TODO Auto-generated constructor stub
        }

        protected void onDraw(Canvas canvas) {
                canvas.drawColor(Color.BLUE);
        }
}

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/
android"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:id="@+id/mylayout"
    >
<TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:text="@string/hello"
    />
</LinearLayout>

-- 

2. Live report isat

Kapan kejadiannya nih dimana? Agendanya apa aja? Ada promo2 gitu gak?
(Berharap mode: on)

Suharlan-
-sent from my nexus one




Gungwi lagi in action
~AJ

--
"Indonesian Android Community [id-android]"

3. how to set break points when developing Eclipse with an actual device

4. Online order now open for business

5. Is there a way to call Android Scripting Environment from Java Code

6. Ask: Provider GSM utk Android.

7. Berhasil