Error : applying many patches

by Celeste82 » Fri, 25 Sep 2009 01:21:23 GMT


Sponsored Links
 Hi,


I am trying to patch Android with Armadeus patches.

I use the script "patch-kernel.sh" in amdeus-3.1/buildroot/toolchain/

I executed this command :

$ script     Kernel_to_patch    folder_of_Armadeus_patches

----------------------------------------------------------------------------------------------------------------------------------------------------------------------
$ARMADEUS/buildroot/toolchain/patch-kernel.sh $ANDROID_SOURCE/kernel
$ARMADEUS/buildroot/target/device/armadeus/linux/kernel-patches/
2.6.29.4 \*.patch{,.gz,.bz2}
----------------------------------------------------------------------------------------------------------------------------------------------------------------------


I have this message error :
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
Applying 015-armadeus-logo-add_armadeus-project_tux.patch using
plaintext:
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: linux-2.6.29.4/drivers/video/logo/Kconfig
|===================================================================
|--- linux-2.6.29.4.orig/drivers/video/logo/Kconfig    2009-03-24
00:12:14.000000000 +0100
|+++ linux-2.6.29.4/drivers/video/logo/Kconfig    2009-06-04
09:54:16.000000000 +0200
--------------------------
File to patch:
Skip this patch?
----------------------------------------------------------------------------------------------------------------------------------------------------------------------

Can you help me ?

Thank you very much

--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. LinearLayout over MapView in MapActivity

Hi, I am trying to get an instance of LinearLayout over MapView in a
MapActivity:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/
android"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent" >

        <com.google.android.maps.MapView
                android:id="@+id/map_view"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"
                android:enabled="true"
                android:clickable="true"
                android:apiKey="@string/google_map_api_key_debug" />

        <LinearLayout
                android:id="@+id/zoom_controls"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_alignBottom="@id/map_view"
                android:layout_centerHorizontal="true" />

        <atm.locator.nl.InfoView
                android:id="@+id/info_view"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:layout_centerInParent="true"
                android:visibility="gone" />

</RelativeLayout>

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/info_view"
        android:orientation="vertical"
        android:layout_centerInParent="true"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" >

    <TextView
        android:id="@+id/info_header"
                style="@style/info_header"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Info header" />

        <TextView
                android:id="@+id/info_body"
                style="@style/info_body"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="Info body" />

</LinearLayout>

I am failing to make the LinearLayout visible - I bring it to front
and change its visibility like this:

        info_view.bringToFront();
        info_view.setVisibility(LinearLayout.VISIBLE);

After this I see that the info_view.isShown is true and its visibility
set correct. Moreover the info_view reacts on touches - onTouchEvent
is called, but it stays misteriously invisible.

Any ideas how to make it visible?

--~--~---------~--~----~------------~-------~--~----~

2. Browser app not reading latitude, longitude in emulator.

Using Eclipse Ganymede
I found various bits of code on the internet and put together some
code to test javascript and Android attaching latitude, longitude to a
browser form application. If I comment out the location loc code and
execute the two assignment lines, things work as expected.  The
javascript code in the browser picks up latitude, longitude.  With the
loc code, the browser displays a blank screen for a moment and then
goes away.  Any help and thoughts appreciated
Regards, Tom Birchmire

Android code:
package com.gpsmancer.gpstest;

import android.app.Activity;
import android.os.Bundle;
import android.content.Context;
import android.location.Location;
 import android.location.LocationManager;
import android.webkit.WebView;

public class gps_lat_lon extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle icicle) {
        super.onCreate(icicle);
        WebView wv = new WebView (this);
        wv.getSettings().setJavaScriptEnabled (true);
        JsObj jo = new JsObj (this);
        wv.addJavascriptInterface ( jo, "roid" ) ;
        setContentView (wv);
        wv.loadUrl( "http://gpsmancer.com/android/
androidgpstest.html");

    }
  class JsObj {
    private Context  con;
   public JsObj (Context con) {
    this.con = con;
   }
  public String gps (String top, String end) {
    LocationManager locman = (LocationManager) con.getSystemService
(Context.LOCATION_SERVICE);
  //    Location loc = locman.getLastKnownLocation( "gps" ) ;
  //      int lat = (int) (loc.getLatitude () * 1000000);
  //      int lon = (int) (loc.getLongitude () * 1000000);
           int lat = (int) (43.123456 * 1000000  );
           int lon = (int) (71.234567 * 1000000 ) ;
          return top + "Latitude:" + lat + ", longitude:" + lon + end;
  }

  }
}

Browser code:
<html>
   <head><title>JS calls Android Method</title></head>
   <body>
     <h1>JS on Android</h1>
     <script type="text/javascript">
       document.write(roid.gps("<i>", "</i>"));
     </script>
   </body>
 </html>

Manifest Permissions:
<?xml version="1.0" encoding="utf-8"?>
some code omittted
<uses-permission android:name="android.permission.INTERNET"></uses-
permission>
<uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION"></uses-
permission>
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION"></uses-
permission>
<uses-permission
android:name="android.permission.ACCESS_MOCK_LOCATION"></uses-
permission>

</manifest>






--~--~---------~--~----~------------~-------~--~----~

3. AudioFlinger - many "write blocked for" log WARN messages

4. Timer doesn't work

5. Question about building Android 1.5 source for emulator

6. Calling ListView.setSelection has no effect when called directly after adapter data was invalidated

7. What is the point of super.onCreate(savedInstanceState)?