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. Launch two Activities extended from another one.

Hello, folks! I face some problems with activities and it seems that I
am stuck here. So, that's the issue: I have two activities extend
another one

BaseClass.java
public class BaseClass extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(state);
        // We can make out here which activity (A | B) to create.
    }

    protected void  onRestart() {
        super.onRestart();
    }
}

A.java
public class A extends BaseClass {
@Override
    protected void onCreate(Bundle state) {
        super.onCreate(state);
    }
}


B.java
public class B extends BaseClass {
@Override
    protected void onCreate(Bundle state) {
        super.onCreate(state);
    }
}

In AndroidManifest.xml I show that A and B can be user-launched.

Well, now I can not realize how to launch B activity while A is not
destroyed. That is I start A, then press Home key and move task back,
then try to start B, but get onRestart() of my BaseClass, not
onCreate(). I can finish() BaseClass activity on every onStop(), but I
want to have both activities launched. Guess, the decision is
something simple, but I am new in Android so far.

Thanks for help in advance and sorry for my bad language :)

-- 

2. Help with scroll view placement

All I want to do is get the scroll view which contains a table to display
below the text box. Right now, it displays over top of it. If I move the
ScrollView below the RelativeLayout, then it doesn't show up at all!  What
do I need to do? I am really starting to think this whole layout idea is a
bad one. Maybe I should just do it in code.

Here is my layout.

Thanks!

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:id="@+id/LinearLayout01"
              android:layout_width="fill_parent"
              android:layout_height="fill_parent"
              xmlns:android="http://schemas.android.com/apk/res/android">
     <RelativeLayout android:id="@+id/RelativeLayoutPlay1"
                     android:layout_width="wrap_content"
                     android:layout_height="wrap_content">
        <TextView
                android:id="@+id/lblEnterText"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Enter text."
                android:layout_alignParentTop="true"
                android:layout_alignParentLeft="true"
        />
        <EditText
                android:id="@+id/editTextToSend"
                android:layout_width="fill_parent"
                android:layout_height="80px"
                android:textSize="14sp"
                android:layout_alignLeft="@+id/lblEnterText"
                android:layout_below="@+id/lblEnterText"
                android:layout_centerHorizontal="true"
        />
        <Button
                android:id="@+id/send_ok_button"
                android:layout_width="125px"
                android:layout_height="wrap_content"
                android:text="Send"
                android:layout_below="@+id/editTextToSend"
                android:layout_alignLeft="@+id/editTextToSend"
        />
        <Button
                android:id="@+id/send_cancel_button"
                android:layout_width="124px"
                android:layout_height="wrap_content"
                android:text="Cancel"
                android:layout_below="@+id/editTextToSend"
                android:layout_alignRight="@+id/editTextToSend"
        />

             <ScrollView
                android:id="@+id/ScrollViewSelectGroups"
                  android:layout_width="fill_parent"
                  android:layout_height="fill_parent"
                  android:scrollbars="vertical">
                  <TableLayout
                    android:id="@+id/TableLayout_SelectGroups"
                      android:layout_width="fill_parent"
                      android:layout_height="fill_parent"
                      android:stretchColumns="*">
                  </TableLayout>
             </ScrollView>
     </RelativeLayout>
</LinearLayout>

-- 

3. Updated my app to use Google Apis level 8, customers complain font now way too small

4. Android Calendar widget

5. Android mediaplayer shoutcast streaming

6. imageview button interface

7. write XML Document to File