2011/12/11

My settings of Ubuntu 11.10 64bits in ASUS U41SV

Reference:
Why does aptitude want to remove a bunch of files?
Ubuntu 11.10 x64执行指定程序时提示:No such file or directory.
Asus_U36SD - Community Ubuntu Documentation
How to Fix Power/Battery Problem with Linux Kernel 3.x on Ubuntu 11.10
HardwareSupport/Machines/Netbooks - Ubuntu Wiki
Initializing a Build Environment | Android Open Source
[Guide] Building Android 2.3.7 on Ubuntu 11.10 (64 bit)

Suggestion:
Do not use aptitude to install packages in Ubuntu 11.10 64bits.
It may meet dependencies issue and cause
"No such file or directory"
issue while executing 32bits processes

Remove NVIDIA display driver
  • sudo apt-get purge nvidia-current nvidia-settings

Update GRUB config
  1. Edit following file
    • /etc/default/grub
    Edit the line with GRUB_CMDLINE_LINUX_DEFAULT and add following for allowing the GPU to enter a lower power state when the GPU is idling
    • i915.i915_enable_rc6=1
    add following for fixing brightness control doesn't work properly issue
    • acpi_osi=Linux acpi_backlight=vendor
    My config is following:
    • GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.i915_enable_rc6=1 acpi_osi=Linux acpi_backlight=vendor"
  2. Save and then run
    • sudo update-grub
  3. Reboot

Initializing Android build environment
  1. Install following Initializing a Build Environment | Android Open Source
  2. Switch to the correct version of Java
    • sudo update-alternatives --config java
    Select /usr/lib/jvm/java-6-sun/jre/bin/java and use following command to check java version
    • java -version
  3. Fix Ubuntu 11.10 issues when building Android
  4. Edit following file
    • File: frameworks/base/libs/utils/Android.mk
    Change the following line:
    • LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS)
    to
    • LOCAL_CFLAGS += -DLIBUTILS_NATIVE=1 $(TOOL_CFLAGS) -fpermissive
    Edit following file
    • File: build/core/combo/HOST_linux-x86.mk
    Change the following line:
    • HOST_GLOBAL_CFLAGS += -D_FORTIFY_SOURCE=0
    to
    • HOST_GLOBAL_CFLAGS += -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0

No comments:

Post a Comment