'error'에 해당되는 글 5건

  1. 2011.03.22 [android][error] /dev/pmem, libhgl.so 에러
  2. 2011.03.22 [android][error] BatteryService 패치
  3. 2011.03.22 [android][error] can't find any keycharmaps & can't open keycharmaps file
  4. 2009.02.23 realvnc viewer 리눅스용 에러 수정법
  5. 2008.08.04 vmware-tools 모듈 컴파일 시 에러 생길 때 해결 법 - vmware on the windows(guest linux) 2

[android][error] /dev/pmem, libhgl.so 에러

안드로이드가 부팅하면서 로그를 보면 /dev/pmem 과 libhgl.so 라이브러리를 못 찾겠다는 에러가 발생하는데, 이 두 개는 large physically contiguous memory와 관계가 있는 부분이기 때문에 현재의 안드로이드용 보드들에서는 별 상관없다.

[android][error] BatteryService 패치

  • 위치 : frameworks/base/services/jni
  • 파일 : com_android_server_BatteryService.cpp
  • 에러메세지 :
    1. E/BatteryService( 1866): Could not open '/junk_battery/class/power_supply/battery/status'

    2. W/BatteryService( 1866): Unknown battery health[2] '100'

  • 패치 내용 :
static void android_server_BatteryService_update(JNIEnv* env, jobject obj)
{
#if 0
    setBooleanField(env, obj, AC_ONLINE_PATH, gFieldIds.mAcOnline);
    setBooleanField(env, obj, USB_ONLINE_PATH, gFieldIds.mUsbOnline);
    setBooleanField(env, obj, BATTERY_PRESENT_PATH, gFieldIds.mBatteryPresent);
   
    setIntField(env, obj, BATTERY_CAPACITY_PATH, gFieldIds.mBatteryLevel);
    setIntField(env, obj, BATTERY_VOLTAGE_PATH, gFieldIds.mBatteryVoltage);
    setIntField(env, obj, BATTERY_TEMPERATURE_PATH, gFieldIds.mBatteryTemperature);
   
    const int SIZE = 128;
    char buf[SIZE];
   
    if (readFromFile(BATTERY_STATUS_PATH, buf, SIZE) > 0)
        env->SetIntField(obj, gFieldIds.mBatteryStatus, getBatteryStatus(buf));
   
    if (readFromFile(BATTERY_HEALTH_PATH, buf, SIZE) > 0)
        env->SetIntField(obj, gFieldIds.mBatteryHealth, getBatteryHealth(buf));

    if (readFromFile(BATTERY_TECHNOLOGY_PATH, buf, SIZE) > 0)
        env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env->NewStringUTF(buf));
#else
    env->SetBooleanField(obj, gFieldIds.mAcOnline, true);
    env->SetBooleanField(obj, gFieldIds.mUsbOnline, false);
    env->SetBooleanField(obj, gFieldIds.mBatteryPresent, false);

    env->SetIntField(obj, gFieldIds.mBatteryLevel, 100);
    env->SetIntField(obj, gFieldIds.mBatteryVoltage, 15);
    env->SetIntField(obj, gFieldIds.mBatteryTemperature, 20);

    const int SIZE = 128;
    char buf[SIZE];
   
        env->SetIntField(obj, gFieldIds.mBatteryStatus, getBatteryStatus("F"));
   
        env->SetIntField(obj, gFieldIds.mBatteryHealth, getBatteryHealth("G"));

        env->SetObjectField(obj, gFieldIds.mBatteryTechnology, env->NewStringUTF("Nemus"));
#endif
}



[android][error] can't find any keycharmaps & can't open keycharmaps file

- 위 2개 에러는 퍼미션 때문에 생기는 에러
- /system/usr/keychars 안에 있는 모든 파일에 644퍼미션을 주면 해결 된다.

realvnc viewer 리눅스용 에러 수정법

realvnc viewer는 버젼에 상관없이 무료로 사용할 수 있는데, 리눅스,솔라리스등 여러 운영체제를 지원하기 때문에 사용하기 편하다는 장점이 있는데,....
리눅스에서 사용할 때 종종 실행이 안되는 문제가 발생할 경우가 있다.
분명 프로그램은 이상없이 실행 됐는데, 아무 동작이 없다. 좀비프로세서가 된 것도 아니다....
이럴 경우 전에 realvnc 외에 다른 vnc 프로그램을 사용한 적이 있다면(특히 서버쪽)
지금 realvnc viewer은 서버모드로 동작하고 있다고 생각하면 된다.
왜 그렇게 프로그램을 만들었는진 모르지만 trace한 결과 bind하고 대기...(이지랄하고 있더란 말이지...)

trace결과를 잘 찾아보니 홈디렉토리에 .vnc에 있는 설정 파일을 참조해서 서버모드로 들어가더라~~~
간단하게 .vnc 디렉토리를 통째로 삭제!!!!
그 다음부터 제 역할에 맞게 viewer 짓 잘 하고 있다는 얘기~~

vmware-tools 모듈 컴파일 시 에러 생길 때 해결 법 - vmware on the windows(guest linux)

LINUX 2.6.24 AND VMWARE

Ubuntu 8.04 was recently released and continues its tradition of adding some real polish to Linux. I’ve been consistently impressed with their goals and progress - everything from improvements to Gnome and included applications to making Xorg “bulletproof” and seamless transition from Windows.


VMware Tools, whereart thou?


Unfortunately, Linux 2.6.24 (which ships with Ubuntu 8.04 and will be shipping with all other Linux distros shortly) moved some headers and symbols around, and breaks VMware Tools. VMware has not been at all forthcoming regarding updates to fix this, but fortunately their “open” offshoot works well - there’s just no simple way to install the open tools. So we’re stuck with:

  1. No tools, which works decently. Many glitches seen in the betas have been resolved, and networking, video, etc all work fine out of the box, but things like shared folders and clipboard sync are out.

  2. Official tools that don’t compile, but could be installed trivially.

  3. Open tools that compile, but cannot be easily installed.

From the forums, I get the sense that this is not at all unusual on Linux, and is sorely disappointing.


This reminds me of the early days of Safari/WebKit, when one had to build WebKit from source and set up environment variables to use it. These days you can just click a link and it downloads a nice wrapper application that does it all. No fuss, no muss, and it allows anyone to easily use WebKit while waiting for the official Safari builds to catch up.


A model to copy, VMware. Please take note!


In the meantime...


In the meantime there is a solution, courtesy of Mufassa on the forums. He’s only posted once, but it’s a gem - in essence, compile the open tools, and then package them up for installation by the official tools install script. Works like a charm!


So, the basic steps are:

  1. Install any dependencies not shipped with a default Ubuntu install

  2. Get the official and open tools, and extract them

  3. Compile the open tools

  4. Rename and tar them as expected by the official tools

  5. Overwrite the official tools archives with the open ones

  6. Install them using the official tools install script


First, you’ll need to add several packages, either via Synaptic or apt-get:

  1. build-essential, libgtk2.0-dev, libproc-dev, libdumbnet-dev

  2. xorg-dev OR libX11-dev, libxinerama-dev, libxrandr-dev, libxtst-dev

A couple of these are new - according to this bug report, libdumbnet and libproc were added as dependencies in the 2008-04-14 version of the tools, so other guides you see likely won’t list these.


Next, download and untar both the open tools and the official ones:

  1. Open VM Tools at SourceForge

  2. Offical Tools are included on an iso that can be mounted via the standard VMware GUI - when mounted you want the tar.gz, not the rpm.

  3. Move these somewhere convenient; I recommend the desktop.

  4. Use “tar -xvzf *.tar.gz” to expand.


Compile the open tools (if you have your dependencies straightened out, this should be fast and easy):

  1. cd open-vm-tools-*/

  2. ./configure && make


Next, package up the compiled modules:

  1. cd modules/linux/

  2. for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done

  3. cd ../../../

  4. mv -f open-vm-tools-*/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/


Finally, install the updated tools:

  1. cd vmware-tools-distrib

  2. ./vmware-install.pl


A few notes:

  1. If you disabled Shared Folders in your VM settings, you’ll see a message “Mounting HGFS shares: failed”. Just enable shared folders and reboot.

  2. [Appears fixed on latest tools] Networking does not seem to properly configure itself when on the default “roaming” mode. I’m honestly not sure what is wrong here, but switching it to manual configuration with DHCP or static IP works fine.

  3. While this was all done on Ubuntu 8.04, I expect it will work fine in the future for new Linux versions and distributions.


Enjoy!

invalid-file

open-vm-tools


'리눅스' 카테고리의 다른 글

Xming 사용법  (0) 2008.08.20
삼바 옵션 - usershare  (0) 2008.08.06
Vim Tip  (0) 2008.03.28
[ubuntu] VFAT 파티션 부팅과 동시에 마운트 하기  (0) 2007.11.29
[ubuntu] MS IntelliMouse 3.0 버튼 설정하기  (0) 2007.11.29
prev 1 next