8 years ago[init] Add init.sgx shell script for PowerVR SGX service beagle-eclair-0x5
Erin Yueh [Thu, 29 Jul 2010 07:37:34 +0000 (15:37 +0800)]
[init] Add init.sgx shell script for PowerVR SGX service

Change-Id: Icdad4d6bb3ea4401b815624bed2253fa9fc19dbd

8 years agoRevert "[system:core] Build fixes after introducing bionic from Froyo."
Jim Huang [Fri, 9 Jul 2010 03:04:39 +0000 (11:04 +0800)]
Revert "[system:core] Build fixes after introducing bionic from Froyo."

This reverts commit c1c05c75bc6df846e94ef9ccd2f173e0fe42d93b.

Froyo backport is cancelled.

8 years agoMerge branch 'beagle-eclair' of gitorious.org:0xdroid/system_core into beagle-eclair
Jim Huang [Wed, 7 Jul 2010 11:23:09 +0000 (19:23 +0800)]
Merge branch 'beagle-eclair' of gitorious.org:0xdroid/system_core into beagle-eclair

8 years ago[system:core] Build fixes after introducing bionic from Froyo.
Jim Huang [Wed, 7 Jul 2010 11:20:09 +0000 (19:20 +0800)]
[system:core] Build fixes after introducing bionic from Froyo.


In fact, Froyo has similar changes in several repositories.

Change-Id: Id10c7a650228cc21cc5ae9aa9a20be4e955db70d

8 years ago[init] Adding default mode for /dev/i2c-2 from 660 to 666
Tick Chen [Wed, 7 Jul 2010 09:09:29 +0000 (17:09 +0800)]
[init] Adding default mode for /dev/i2c-2 from 660 to 666

Change-Id: I4c3932fb5f2a27c5e0b123cd426c0bd37d219d94

8 years ago[init] Adding default mode for /dev/i2c-2
Tick Chen [Wed, 7 Jul 2010 06:35:04 +0000 (14:35 +0800)]
[init] Adding default mode for /dev/i2c-2
This interface was needed by

Change-Id: I60898ac626389089c6cd9317b09a43086c7bccba

8 years ago[pixelflinger] Warning on not implemented gl feature
Kan-Ru Chen [Mon, 17 May 2010 04:14:14 +0000 (12:14 +0800)]
[pixelflinger] Warning on not implemented gl feature

8 years ago[codeflinger] Set OptLevel to 0 for now. Seems buggy.
Kan-Ru Chen [Mon, 17 May 2010 03:55:05 +0000 (11:55 +0800)]
[codeflinger] Set OptLevel to 0 for now. Seems buggy.

8 years ago[codeflinger] Spill some register for filter32
Kan-Ru Chen [Tue, 4 May 2010 10:35:15 +0000 (18:35 +0800)]
[codeflinger] Spill some register for filter32

8 years ago[codeflinger] Correct misleading comment.
Kan-Ru Chen [Tue, 4 May 2010 07:53:33 +0000 (15:53 +0800)]
[codeflinger] Correct misleading comment.

8 years ago[system/core] Removed otgd, which handled usbnet. Deprecated.
Jim Huang [Wed, 12 May 2010 15:26:14 +0000 (23:26 +0800)]
[system/core] Removed otgd, which handled usbnet. Deprecated.

After migrating to Linux kernel omap3-2.6.32, we prefer Android USB
gadget instead of usbnet.  It is not required for such dedicated service
like otgd to handle USB OTG state.

Change-Id: I1413d33c035e95dad1006e8f11ee79fabb25ecfc

8 years agoApply a patch from android-x86 and re-modify ppp script for Taiwan GSM 3G network. beagle-eclair-0x4
Erin Yueh [Thu, 22 Apr 2010 05:00:19 +0000 (13:00 +0800)]
Apply a patch from android-x86 and re-modify ppp script for Taiwan GSM 3G network.

commit 669c5df8dd8eb3bc4b80a2066b7b3fcec4428947
Author: Luke Yang <luke_yang@asus.com>
Date:   Thu Mar 4 13:49:37 2010 +0800

    add ppp scripts for 3G internet connection

Change-Id: Iecb9a596642711fce20712bf0c0f1b4d82438484

8 years agoadd etherenet state tracker support.
Yi SUn [Wed, 26 Aug 2009 00:50:41 +0000 (17:50 -0700)]
add etherenet state tracker support.

The dhcpcd somehow can not handle multiple interfaces with on command line.
I have to create different services for different interfaces

8 years ago[rootdir] Move board specific modifications to //vendor/0xlab
Kan-Ru Chen [Thu, 15 Apr 2010 10:58:00 +0000 (18:58 +0800)]
[rootdir] Move board specific modifications to //vendor/0xlab

8 years ago[libcutils] Enable armv6 atomic operations again.
Jim Huang [Thu, 15 Apr 2010 06:13:56 +0000 (14:13 +0800)]
[libcutils] Enable armv6 atomic operations again.

Change-Id: I3cf9aa7c83b7fa2c7830620450683c4e49e053fb

8 years ago[rootdir] Add runtime board detection to init.omap3.sh
Kan-Ru Chen [Mon, 12 Apr 2010 11:25:59 +0000 (19:25 +0800)]
[rootdir] Add runtime board detection to init.omap3.sh

8 years agotrivial chmod
Jim Huang [Fri, 2 Apr 2010 07:20:12 +0000 (15:20 +0800)]
trivial chmod

Change-Id: I5f1f50154fc3d39aa2efd7e626425e730d95078e

8 years ago[vold] Supress debug messages: BLKDEV, DEVMAPPER, UEVENT, USB_BOOTSTRAP, EXT3
Jim Huang [Fri, 2 Apr 2010 07:14:17 +0000 (15:14 +0800)]
[vold] Supress debug messages: BLKDEV, DEVMAPPER, UEVENT, USB_BOOTSTRAP, EXT3

Change-Id: Iea9f34c56b6cbb3785fa7b7612a16467e26f0b5c

8 years ago[rootdir] Add default keymaps to devkit8000 init.rc
Kan-Ru Chen [Wed, 24 Mar 2010 02:59:16 +0000 (10:59 +0800)]
[rootdir] Add default keymaps to devkit8000 init.rc

8 years ago[libpixelflinger] Adds UXTB16 support to Pixelflinger
Jim Huang [Tue, 8 Dec 2009 10:28:22 +0000 (18:28 +0800)]
[libpixelflinger] Adds UXTB16 support to Pixelflinger


reworked version for merging UBFX and UXTB16 to JIT.

derived from ARM modifications:

From: Martyn Capewell <martyn.capewell@arm.com>
Date: Mon, 7 Dec 2009 13:59:59 +0000 (+0000)

Adds UXTB16 support to Pixelflinger

 * Add support for UXTB16 to the disassembler
 * Add encoding of the UXTB16 instruction to the Pixelflinger JIT.

Introducing the UXTB16 instruction allows removal of some masking code, and is
beneficial from a pipeline point of view - lots of UXTB16 followed by MUL

Also, further rescheduling and use of SMULWB brings extra performance

 * Use UXTB16 in bilinear filtered texturing

Uses UXTB16 to extract channels for SIMD operations, rather than creating and
ANDing with masks. Saves a register and is faster on A8, as UXTB16 result can
feed into first stage of multiply, unlike AND.

Also, used SMULWB rather than SMULBB, which allows removal of MOVs used to
rescale results.

Code has been scheduled for A8 pipeline, specifically aiming to allow
multiplies to issue in pipeline 0, for efficient dual issue operation.

Testing on SpriteMethodTest (http://code.google.com/p/apps-for-android/) gives
8% improvement (12.7 vs. 13.7 fps.)

SMULBB to SMULWB trick could be used in <v6 code path, but this hasn't been
(cherry picked from commit 2f368f3443b79455d9246031ec5b6cbfa45b1cd9)

8 years ago[libpixelflinger] Adds support for UBFX to JIT and Disassembler
Jim Huang [Tue, 8 Dec 2009 10:07:50 +0000 (18:07 +0800)]
[libpixelflinger] Adds support for UBFX to JIT and Disassembler


From: Martyn Capewell <martyn.capewell@arm.com>
Date: Fri, 4 Dec 2009 16:44:58 +0000 (+0000)

Adds support for UBFX to JIT and Disassembler

This introduces UBFX instruction generation abilities to the Pixelflinger JIT,
and also modifies the component extraction function to generate the

The extract function contains defines to prevent generation of UBFX on pre-v7
cores. The JIT itself retains the ability to produce the instruction even on

This patch only generates UBFX when MOV, AND or BIC can't be used. Based on
the TRM, this appears to be faster on A9 than using UBFX in all cases.

On startup, Pixelflinger JITs three chunks of code. UBFX improves these as

 (Blends a single colour into an RGB565 buffer.)
  Before: 27 inst/pixel, After: 24 inst/pixel, Improvement: 12.5%
 (Blends RGBA8888 texture into an RGB565 buffer using alpha.)
  Before: 30 inst/pixel, After: 27 inst/pixel, Improvement: 11.1%
 (Blends RGB565 texture into an RGB565 buffer using alpha.)
  Before: 29 inst/pixel, After: 27 inst/pixel, Improvement: 7.4%

8 years ago[libpixelflinger] NEON shortcut for flat colour blending into 16-bit
Jim Huang [Tue, 8 Dec 2009 09:55:38 +0000 (17:55 +0800)]
[libpixelflinger] NEON shortcut for flat colour blending into 16-bit


derived from ARM modifications:

From: Martyn Capewell <martyn.capewell@arm.com>
Date: Mon, 7 Dec 2009 15:00:19 +0000 (+0000)

NEON shortcut for flat colour blending into 16-bit

This is a shortcut for the needs descriptor
00000077:03515104_00000000_00000000.  It requires blending a single 32-bit
colour value into a 16-bit framebuffer.
It's used when fading out the screen, eg. when a modal requester pops-up.

The PF JIT produces code for this using 24 instructions/pixel. The NEON
implementation requires 2.1 instructions/pixel. Performance hasn't been
benchmarked, but the improvement is quite visible.

This code has only been tested by inspection of the fading effect described
above, when press+holding a finger on the home screen to pop up the
Shortcuts/Widgets/Folders/Wallpaper requester.

Along with the NEON version, a fallback v5TE implementation is also provided.

This ARM version of col32cb16blend is not fully optimised, but is a reasonable
implementation, and better than the version produced by the JIT. It is here as
a fallback, if NEON is not available.
(cherry picked from commit 87cf1075376ff0013ded4bf6deba3026c04fb35a)

8 years ago[libpixelflinger] Fix LDM addressing mode disassembly
Jim Huang [Tue, 8 Dec 2009 09:24:02 +0000 (17:24 +0800)]
[libpixelflinger] Fix LDM addressing mode disassembly


The Pixelflinger disassembler does not handle LDM addressing modes correctly,
assuming that the P and U bits in the instruction mean the same in both LDM and
STM. This results in the disassembler producing sequences like:

stmfd r13!, {r4-r11, r14}
ldmea r13!, {r4-r11, r14}

This small patch fixes it by EORing the P and U bits with the Load/Store bit.

(cherry picked from commit fbc136ddef860cbd0e937cab6ab80c9d806ab60a)

8 years ago[libpixelflinger] Introduced ARM NEON optimized scanline_t32cb16
Jim Huang [Mon, 9 Nov 2009 12:49:56 +0000 (20:49 +0800)]
[libpixelflinger] Introduced ARM NEON optimized scanline_t32cb16

Reference benchmark on Beagleboard (TI OMAP353x) at 500 MHz

    scanline_t32cb16_c memory bandwidth:     31.63 MB/s
    scanline_t32cb16_neon memory bandwidth: 147.69 MB/s

It could dramatically improve boot animation performance.
(cherry picked from commit b9e795cefb42c577e6c2ee747485dc65f78b06be)

8 years ago[libpixelflinger] Added ARM NEON optimized t32cb16blend
Jim Huang [Fri, 6 Nov 2009 08:44:19 +0000 (16:44 +0800)]
[libpixelflinger] Added ARM NEON optimized t32cb16blend

Reference benchmark on Beagleboard 500MHz:

    scanline_t32cb16blend_c memory bandwidth:     12.81 MB/s
    scanline_t32cb16blend_arm memory bandwidth:   57.61 MB/s
    scanline_t32cb16blend_neon memory bandwidth: 128.66 MB/s

scanline_t32cb16blend_c: generic C implementation.
scanline_t32cb16blend_arm: ARMv5 optimized by Android.
scanline_t32cb16blend_neon: ARMv7 tweaked implementation.

Based on the infrastructure work from ARM.com:

From: Martyn Capewell <martyn.capewell@arm.com>
Date: Thu, 17 Sep 2009 15:25:10 +0000 (+0100)
Subject: Neon implementation of t32cb16blend function

Neon implementation of t32cb16blend function
(cherry picked from commit 88a7a2b06d4834d2d6a8a60fd88e0d629f804bf5)

8 years ago[rootdir] Move faketsd to product specific init file
Kan-Ru Chen [Fri, 12 Mar 2010 02:56:05 +0000 (10:56 +0800)]
[rootdir] Move faketsd to product specific init file

Move faketsd service to init.beagleboard.rc, only devices that doesn't
have real touchscreen need this.

Change-Id: I329134aba926964453401ad833f3af2b10e31808



8 years ago[rootdir] Add devkit8000 init.rc
Kan-Ru Chen [Fri, 12 Mar 2010 02:49:13 +0000 (10:49 +0800)]
[rootdir] Add devkit8000 init.rc



8 years ago[rootdir] Install bootlogo.rle while configured as beagleboard.
Jim Huang [Thu, 17 Dec 2009 07:17:07 +0000 (15:17 +0800)]
[rootdir] Install bootlogo.rle while configured as beagleboard.

8 years ago[rootdir] Added a simple boot logo.
Jim Huang [Thu, 10 Dec 2009 17:20:15 +0000 (01:20 +0800)]
[rootdir] Added a simple boot logo.

8 years ago[rootdir] Select the init.xxx.rc via TARGET_PRODUCT
Tick Chen [Tue, 20 Oct 2009 08:34:43 +0000 (16:34 +0800)]
[rootdir] Select the init.xxx.rc via TARGET_PRODUCT

8 years agoadding init.omap3.rc init.omap3.sh for beagleboard image
Kan-Ru Chen [Fri, 12 Mar 2010 02:25:09 +0000 (10:25 +0800)]
adding init.omap3.rc init.omap3.sh for beagleboard image
(cherry picked from commit 6242b0a85234d8c601cf538621e06d2db0313a18)

Signed-off-by: Tick Chen <tick@0xlab.org>


8 years agoMerge remote branch 'korg/eclair' into integrate
Kan-Ru Chen [Thu, 11 Mar 2010 07:55:06 +0000 (15:55 +0800)]
Merge remote branch 'korg/eclair' into integrate

8 years agoreconcile main tree with open-source eclair
The Android Open Source Project [Fri, 5 Feb 2010 16:09:42 +0000 (08:09 -0800)]
reconcile main tree with open-source eclair

8 years agoMerge "system/core/init: set proper permissions for tpa2018d1 (CDMA)" into eclair
Iliyan Malchev [Tue, 2 Feb 2010 22:03:43 +0000 (14:03 -0800)]
Merge "system/core/init: set proper permissions for tpa2018d1 (CDMA)" into eclair

8 years agosystem/core/init: set proper permissions for tpa2018d1 (CDMA)
Iliyan Malchev [Tue, 2 Feb 2010 21:57:07 +0000 (13:57 -0800)]
system/core/init: set proper permissions for tpa2018d1 (CDMA)

Signed-off-by: Iliyan Malchev <malchev@google.com>
8 years agoADB: Garmin-Asus's USB Vendor ID
Raphael [Mon, 1 Feb 2010 17:56:47 +0000 (09:56 -0800)]
ADB: Garmin-Asus's USB Vendor ID

Change-Id: I3249d629f59d40f291079fc214b643ac6c927f76

8 years agoreconcile android-2.1_r1 snapshot
The Android Open Source Project [Fri, 29 Jan 2010 22:09:59 +0000 (14:09 -0800)]
reconcile android-2.1_r1 snapshot

8 years agoMerge "Add Dell's vendor ID to fastboot." into eclair
Xavier Ducrohet [Fri, 22 Jan 2010 01:42:36 +0000 (17:42 -0800)]
Merge "Add Dell's vendor ID to fastboot." into eclair

8 years agoAdd Dell's vendor ID to fastboot.
Xavier Ducrohet [Fri, 22 Jan 2010 01:39:25 +0000 (17:39 -0800)]
Add Dell's vendor ID to fastboot.

Change-Id: I1d88d2a8b3f5c0a9bade2a207b5d9c5a0b776655

8 years agoAdd DELL's USB Vendor ID to adb - DO NOT MERGE
Xavier Ducrohet [Fri, 22 Jan 2010 01:24:36 +0000 (17:24 -0800)]
Add DELL's USB Vendor ID to adb - DO NOT MERGE

Change-Id: Ie1a6b6a81f50956362aee2a2d6d1b805f0e85b7a

8 years agoAdd gsm_rat_switched event tag.
John Wang [Thu, 14 Jan 2010 02:28:15 +0000 (18:28 -0800)]
Add gsm_rat_switched event tag.

8 years agoandroid-2.1_r1 snapshot
The Android Open Source Project [Tue, 12 Jan 2010 23:19:30 +0000 (15:19 -0800)]
android-2.1_r1 snapshot

8 years ago[rootdir] Remove the entry of flash_recovery since no factory exists here.
Erin Yueh [Wed, 16 Dec 2009 07:46:42 +0000 (15:46 +0800)]
[rootdir] Remove the entry of flash_recovery since no factory exists here.

8 years agoAdded component.
Jim Huang [Fri, 13 Nov 2009 19:47:43 +0000 (03:47 +0800)]
Added component.

[otgd] Added component.

8 years ago[otgd] fix resource leak.
Jim Huang [Fri, 6 Nov 2009 07:09:09 +0000 (15:09 +0800)]
[otgd] fix resource leak.

8 years ago[otgd] Let usbnet interface always on, otherwise it won't be able to detect operstate.
Jim Huang [Fri, 6 Nov 2009 07:04:18 +0000 (15:04 +0800)]
[otgd] Let usbnet interface always on, otherwise it won't be able to detect operstate.

8 years ago[otgd] Tweak messages and wait timing.
Jim Huang [Tue, 3 Nov 2009 06:38:14 +0000 (14:38 +0800)]
[otgd] Tweak messages and wait timing.

8 years ago[otgd] Coding style tweaks and indent.
Jim Huang [Tue, 3 Nov 2009 06:06:04 +0000 (14:06 +0800)]
[otgd] Coding style tweaks and indent.

8 years ago[rootdir] Added new daemon: otgd, which repeatedly configures MUSB to OTG mode.
Jim Huang [Tue, 3 Nov 2009 04:19:12 +0000 (12:19 +0800)]
[rootdir] Added new daemon: otgd, which repeatedly configures MUSB to OTG mode.


this daemon repeatedly configures MUSB to OTG mode.  It is indeed
a workaround of MUSB for Beagleboard, otherwise USB hotplug doesn't

Issue #38

8 years agoproperly initialize keycodes to prevent crash while performing long service.
Jim Huang [Mon, 9 Nov 2009 02:02:09 +0000 (10:02 +0800)]
properly initialize keycodes to prevent crash while performing long service.

[init] properly initialize keycodes to prevent crash while performing long service.

8 years ago[adb] device is listed as device, if ADBHOST is set
Jim Huang [Tue, 27 Oct 2009 09:56:23 +0000 (17:56 +0800)]
[adb] device is listed as device, if ADBHOST is set

commit d4f20fef087f928fc5011f5f938cdb1360e69654
Author: Nikita Shulga <malfet@embeddedalley.com>
Date:   Mon Jul 27 12:15:38 2009 -0400

    If ADBHOST is set device is listed as device

8 years ago[adb] Auto reconnects to remote board if ADBHOST is set
Jim Huang [Tue, 27 Oct 2009 09:51:30 +0000 (17:51 +0800)]
[adb] Auto reconnects to remote board if ADBHOST is set

commit 5557302556bd0e3c6607accfec9d145e332ee4f9
Author: Nikita Shulga <malfet@embeddedalley.com>
Date:   Mon Jul 27 04:34:02 2009 -0400

    Auto reconnects to remote board if ADBHOST is set

8 years ago[vold] Always validate file descriptor before trying FD_ISSET after select
Jim Huang [Tue, 27 Oct 2009 09:31:59 +0000 (17:31 +0800)]
[vold] Always validate file descriptor before trying FD_ISSET after select

commit 23d905eada981486e640d8b5e25fa5d9e6dab94c
Author: Eugeny S. Mints <emints@embeddedalley.com>
Date:   Fri Jul 31 13:58:57 2009 +0400

    Fixed a Google bug where a test is needed for a file descriptor == -1
    before you try the FD_ISSET after the select.

8 years agoAdd vold.conf for TARGET_PRODUCT = beagle_board
Erin Yueh [Wed, 16 Dec 2009 06:48:55 +0000 (14:48 +0800)]
Add vold.conf for TARGET_PRODUCT = beagle_board

8 years agovold: usb drive bootstrapping
Erin Yueh [Tue, 15 Dec 2009 09:39:08 +0000 (17:39 +0800)]
vold: usb drive bootstrapping

author Chih-Wei Huang <cwhuang@linux.org.tw>
 Fri, 13 Nov 2009 07:16:16 +0000 (15:16 +0800)

The usb drive plugged before booting can be mounted by this change.
Original author: Luke Chen <jschen.cse@gmail.com>

8 years ago[vold] Added initial USB Mass Storage support.
Yi Sun [Wed, 30 Sep 2009 18:51:55 +0000 (11:51 -0700)]
[vold] Added initial USB Mass Storage support.

NOTE: currently, UMS (USB Mass Storage) is mounted in /sdcard, and
it is expected to replace existing SD/MMC mount point once ready.

Based on the modifications:
commit 3efef68a2b914074264e1697a0eb0f3527bdf5d6
Author: Yi Sun <beyounn@gmail.com>
Date:   Wed Sep 30 11:51:55 2009 -0700

add vold support on usb drive

8 years ago[rootdir] Properly adjust ro.EMPTY_APP_MEM from 16384 to 9832
Jim Huang [Mon, 5 Oct 2009 10:00:55 +0000 (18:00 +0800)]
[rootdir] Properly adjust ro.EMPTY_APP_MEM from 16384 to 9832
(cherry picked from commit e8beaf283e9810aeaa51ca0766501b388cb88945)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[rootdir] Adjust memory constraints
Jim Huang [Thu, 1 Oct 2009 07:11:06 +0000 (15:11 +0800)]
[rootdir] Adjust memory constraints

ro.HIDDEN_APP_MEM : 5120 -> 8192
ro.HIDDEN_APP_MEM : 5632 -> 8704
ro.EMPTY_APP_MEM  : 6144 -> 16384
(cherry picked from commit e4aee776d0661f0ff35625f09cb8e28d76db5592)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[vold] Eliminate compilation warnings.
Jim Huang [Wed, 16 Sep 2009 10:10:52 +0000 (18:10 +0800)]
[vold] Eliminate compilation warnings.
(cherry picked from commit 2ffe1b3922bd2399c85fcba275b500df4959f329)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years agoRevert "[vold] Change VFAT mount options to enable sdcard write restrictions"
Jim Huang [Mon, 14 Sep 2009 13:43:43 +0000 (21:43 +0800)]
Revert "[vold] Change VFAT mount options to enable sdcard write restrictions"

Keep the default behavior of cupcake.
This reverts commit 2ee80d49c19479758654f18281844ca93344860a.
(cherry picked from commit e38f35c6b1dffb7373cf08cb89f051e22518b370)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[toolbox] Migrate to new power sysfs schema
Jim Huang [Mon, 14 Sep 2009 06:13:13 +0000 (14:13 +0800)]
[toolbox] Migrate to new power sysfs schema

commit b0e5fe7d444f2ad64e2a2fc06c503a72f2024aa3
Author: Kiran Shastri <c_kshast@quicinc.com>
Date:   Fri Jun 19 17:43:34 2009 -0700

    platform/system/core: change wake lock paths to use sys/power

    Change wake locks to use /sys/power/wake_lock interface instead
    of the non-existing /sys/android_power/acquire_wake_lock interface.
(cherry picked from commit af87a84f75fabb638acbdd06c743aaf595c7d127)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[init] Conditional build of init bootlogo support.
Jim Huang [Fri, 11 Sep 2009 05:50:51 +0000 (13:50 +0800)]
[init] Conditional build of init bootlogo support.

set INIT_BOOTLOGO=true in buildspec.mk to enable init boot logo support,
and initlogo.rle in RGB565 format can be rendered.
(cherry picked from commit 8c257aa09d916f1a389733d52ab84ba9ee955695)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[vold] Avoid SegFault while retrieving /sys<devpay>/name for SDIO
Jim Huang [Wed, 9 Sep 2009 12:37:18 +0000 (20:37 +0800)]
[vold] Avoid SegFault while retrieving /sys<devpay>/name for SDIO
(cherry picked from commit f3f6710c9845aaa3e0f742953eb6b84490c50a81)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[vold] Make MMC uevent simulation resilient to missing values
Jim Huang [Wed, 9 Sep 2009 04:19:20 +0000 (12:19 +0800)]
[vold] Make MMC uevent simulation resilient to missing values

based on the work of Chris Dearman <chris@mips.com>.
Merged SDIO exclusion.

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[libcutils] Use ldrex/strex instead of deprecated 'swp' instruction.
Jim Huang [Tue, 1 Sep 2009 06:23:16 +0000 (14:23 +0800)]
[libcutils] Use ldrex/strex instead of deprecated 'swp' instruction.

ARM architecture reference manuals for ARMv6 & ARMv7 state that the
use of 'swp' instruction is deprecated ARMv6 onwards.  These
architectures provide the load-linked, store-conditional pair of
ldrex/strex whose use is recommended in place of 'swp'.  Also, the
description of the 'swp' instruction in the ARMv6 reference manual
states that the swap operation does not include any memory barrier
guarantees.  This fix attempts to address these issues by providing
an atomic swap implementation using ldrex/strex.

reworked, derived from
(cherry picked from commit 275a98353e1263b8cb32c2d6ebf61a6e45ff43d6)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years agoDisable bootsound since we don't have MSM compatible DSP hardware.
Jim Huang [Fri, 14 Aug 2009 06:06:01 +0000 (14:06 +0800)]
Disable bootsound since we don't have MSM compatible DSP hardware.

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[ash] Fix harmless definition pair.
Jim Huang [Wed, 12 Aug 2009 18:43:42 +0000 (02:43 +0800)]
[ash] Fix harmless definition pair.
(cherry picked from commit 1178639104341ed7d5dadcaca2a029bd87f5e7a3)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years agoAdded minimal-but-powerful shell originated from Busybox.
Jim Huang [Wed, 12 Aug 2009 18:33:22 +0000 (02:33 +0800)]
Added minimal-but-powerful shell originated from Busybox.

It was hacked by 0xlab to be dynamically linked to Android bionic
libc. (see "ANDROID" conditional flag in source tree for details.)


Footprint report:
[build_host]$ ls -lh system/bin/{ash,sh}
87K 2009-08-13 02:24 system/bin/ash
98K 2009-08-13 01:15 system/bin/sh

[beagleboard] # ps
root     1     0     300   192   c00b2394 0000ca6c S /init
root     777   1     736   324   c0057648 afe0c3fc S /system/bin/sh
root     835   777   744   356   c0057648 afe0c3fc S /system/bin/ash

Size is smaller, memory usage is similar, but ash is much powerful.
(cherry picked from commit b068fc837361b78aed2437771d1148a10428f334)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years agoSkip SDIO card bootstrapping.
Jim Huang [Fri, 24 Jul 2009 03:17:10 +0000 (11:17 +0800)]
Skip SDIO card bootstrapping.
(cherry picked from commit c46992418dcb30a2bc19df4ecf77963613733dbd)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[init] create device node well
Tick Chen [Tue, 20 Oct 2009 11:12:34 +0000 (19:12 +0800)]
[init] create device node well

uinput ttyUSB sound input sdX video

8 years ago[vold] Avoid doubly bootstraping and skip /sys%s/slot_name
Jim Huang [Tue, 15 Sep 2009 17:11:56 +0000 (01:11 +0800)]
[vold] Avoid doubly bootstraping and skip /sys%s/slot_name

reference vold output:
I/vold    (  778): Android Volume Daemon version 2.0
I/vold    (  778): New MMC card 'SDC  ' (serial 1077008504) added @ /devices/platform/mmci8
I/vold    (  778): Disk (blkdev 179:0), 7811072 secs (3814 MB) 2 partitions
I/vold    (  778): New blkdev 179.0 on media SDC  , media path /devices/platform/mmci-omap2
I/vold    (  778): Partition (blkdev 179:1), 1998818 secs (975 MB) type 0xb
I/vold    (  778): New blkdev 179.1 on media SDC  , media path /devices/platform/mmci-omap1
I/vold    (  778): Partition (blkdev 179:2), 5812128 secs (2837 MB) type 0x83
I/vold    (  778): New blkdev 179.2 on media SDC  , media path /devices/platform/mmci-omap0
I/vold    (  778): Evaluating dev '/devices/platform/mmci-omap-hs.0/mmc_host/mmc0/mmc0:b36'
D/vold    (  778): Bootstrapping complete
(cherry picked from commit bf95f2225001922879a9e8c882d3e898dd7bdbe7)

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[init] Added 0xlab text bootlogo
Jim Huang [Sat, 12 Sep 2009 18:25:04 +0000 (02:25 +0800)]
[init] Added 0xlab text bootlogo

The text was generated by 'figlet' tool.

Signed-off-by: Tick Chen <tick@0xlab.org>
8 years ago[system/core] Added fake touchscreen daemon to make builtin apk work
Jim Huang [Tue, 8 Sep 2009 16:28:17 +0000 (00:28 +0800)]
[system/core] Added fake touchscreen daemon to make builtin apk work

Several Android builtin packages would pick up the system resources
about touchscreen.  If there is no touchscreen, the ones suffixing
with '-notouch' would be taken.  However, by default, resource layout
doesn't come with '-notouch', and Beagleboard has no touchscreen on
board physically.  Thus, Android core will crash due to lacking of
proper resources.

Our solution is to write a dedicated daemon to register userspace
input device as a fake touchscreen device.  EventHub would regard
it as one of the input source, and no Android packages would complain.
(cherry picked from commit 641356fa32226baa8beb12d54160103063c7c8d4)

Signed-off-by: Tick Chen <tick@0xlab.org>
[faketsd] Run fake touch screen driver for res
DO NOT MERGE: Demo purpose only.

Running faketsd before system runs and Android will think the system
having resource of touchscreen, and will try to access resource of

8 years agoModify /dev/input file permission to 666.
Erin Yueh [Fri, 11 Dec 2009 08:27:30 +0000 (16:27 +0800)]
Modify /dev/input file permission to 666.

8 years ago[init] Let console applications have a controlling tty.
Tick Chen [Wed, 9 Dec 2009 09:44:55 +0000 (17:44 +0800)]
[init] Let console applications have a controlling tty.
Since the logic in open_console() is changed, terminating console
application within a shell is now possible via Ctrl-C.

8 years ago[snd device] open up the permission of snd devices
Tick Chen [Tue, 8 Dec 2009 08:00:26 +0000 (16:00 +0800)]
[snd device] open up the permission of snd devices

8 years agosystem: sched_policy: Don't return an error when the thread we're trying to move...
San Mehat [Thu, 3 Dec 2009 20:19:12 +0000 (12:19 -0800)]
system: sched_policy: Don't return an error when the thread we're trying to move exits on us

Signed-off-by: San Mehat <san@google.com>
8 years ago[init.rc] do not use yaffs2 since we use ubifs
Tick Chen [Thu, 3 Dec 2009 02:10:34 +0000 (10:10 +0800)]
[init.rc] do not use yaffs2 since we use ubifs
remount / as rw

8 years agoDon't copy /proc/last_kmsg to /data/dontpanic/last_kmsg --
Dan Egnor [Tue, 24 Nov 2009 03:25:44 +0000 (19:25 -0800)]
Don't copy /proc/last_kmsg to /data/dontpanic/last_kmsg --
it gets generated on every boot, so this is a bunch of writing
for no particularly good reason.

8 years agoWork on issue #2259506: camera ANRed and then device runtime restarted
Dianne Hackborn [Tue, 17 Nov 2009 00:34:08 +0000 (16:34 -0800)]
Work on issue #2259506: camera ANRed and then device runtime restarted

New event log tag for when a process fails to start.

Change-Id: Icb08757e1514a1d6f5462d22b931114c10b964b2

8 years agoeclair snapshot
Jean-Baptiste Queru [Fri, 13 Nov 2009 02:46:23 +0000 (18:46 -0800)]
eclair snapshot

8 years agoCorrectly compute the type of an assignment expression.
Jack Palevich [Mon, 9 Nov 2009 04:52:45 +0000 (12:52 +0800)]
Correctly compute the type of an assignment expression.

This change enables following types of statements to work correctly:

    a = b = 3;
    if ((a = getchar()) < 0) { ... }

This fixes 2232082 acc: assignment in comparison segfaults

8 years agocutils: make set_process_name set kernel thread name as well
Erik Gilling [Wed, 28 Oct 2009 04:27:33 +0000 (21:27 -0700)]
cutils: make set_process_name set kernel thread name as well

Signed-off-by: Erik Gilling <konkers@android.com>
8 years agoMake the RIL daemon part of the audio group so it can load region-specific
Jean-Michel Trivi [Mon, 2 Nov 2009 23:22:18 +0000 (15:22 -0800)]
Make the RIL daemon part of the audio group so it can load region-specific
acoustic parameters.

8 years agoam 23433b93: Add Sony-Ericsson to adb.
Xavier Ducrohet [Mon, 2 Nov 2009 19:45:56 +0000 (11:45 -0800)]
am 23433b93: Add Sony-Ericsson to adb.

Merge commit '23433b93d1acb01650c9480d9bb5d5d869ba4f79' into eclair

* commit '23433b93d1acb01650c9480d9bb5d5d869ba4f79':
  Add Sony-Ericsson to adb.

8 years agoAdd Sony-Ericsson to adb.
Xavier Ducrohet [Fri, 30 Oct 2009 20:09:39 +0000 (13:09 -0700)]
Add Sony-Ericsson to adb.

8 years agocutils: sched_policy: Fix bug where we were unable to move backgrounded threads into...
San Mehat [Thu, 29 Oct 2009 20:56:26 +0000 (13:56 -0700)]
cutils: sched_policy: Fix bug where we were unable to move backgrounded threads into the foreground

Signed-off-by: San Mehat <san@google.com>
8 years agocutils: schedpolicy: Add debug code to log sched policy transitions
San Mehat [Thu, 29 Oct 2009 18:48:00 +0000 (11:48 -0700)]
cutils: schedpolicy: Add debug code to log sched policy transitions

Signed-off-by: San Mehat <san@google.com>
8 years agotoolbox: Add scheduling policy display to top/ps
San Mehat [Tue, 27 Oct 2009 18:53:22 +0000 (11:53 -0700)]
toolbox: Add scheduling policy display to top/ps

Signed-off-by: San Mehat <san@google.com>
8 years agocutils: Add support for reading a processes scheduler policy
San Mehat [Tue, 27 Oct 2009 18:52:55 +0000 (11:52 -0700)]
cutils: Add support for reading a processes scheduler policy

Signed-off-by: San Mehat <san@google.com>
9 years agoAdd stack unwinding directives to atomic-android-arm.S.
Ben Cheng [Mon, 12 Oct 2009 23:51:23 +0000 (16:51 -0700)]
Add stack unwinding directives to atomic-android-arm.S.

For bug 2182296.

Eclair branch Dr. No approved by: hiroshi

9 years agoinit: devices: Remove pmem_gpu regions as they are not needed since we have an mmu
Dima Zavin [Thu, 15 Oct 2009 09:24:06 +0000 (02:24 -0700)]
init: devices: Remove pmem_gpu regions as they are not needed since we have an mmu

Change-Id: I2f8f0440d9a21230c7711cb6d9a20ec6887b7cb9
Signed-off-by: Dima Zavin <dima@android.com>
9 years agoinit: Add qdsp6 video encoder, q6venc, device owned by system.audio
Dima Zavin [Mon, 28 Sep 2009 21:39:56 +0000 (14:39 -0700)]
init: Add qdsp6 video encoder, q6venc, device owned by system.audio

Change-Id: I86173e07163b70ce8990b8508afba44729c0d8ca
Signed-off-by: Dima Zavin <dima@android.com>
9 years agoMerge change I831d8e1e into eclair
Android (Google) Code Review [Tue, 13 Oct 2009 19:54:44 +0000 (15:54 -0400)]
Merge change I831d8e1e into eclair

* changes:
  rootdir: init.rc: Adjust background dirty writeout policy

9 years agorootdir: init.rc: Adjust background dirty writeout policy
San Mehat [Tue, 13 Oct 2009 19:24:47 +0000 (12:24 -0700)]
rootdir: init.rc: Adjust background dirty writeout policy

Signed-off-by: San Mehat <san@google.com>
9 years agoadb: Add "adb disconnect" command for disconnecting TCP/IP devices.
Mike Lockwood [Mon, 12 Oct 2009 03:04:18 +0000 (23:04 -0400)]
adb: Add "adb disconnect" command for disconnecting TCP/IP devices.

Also check that device is not already connected in "adb connect"

Change-Id: I5f84b56b63d8c6932f23791cac319fd6bc39d36c
Signed-off-by: Mike Lockwood <lockwood@android.com>
9 years agoForce the mediaserver process to restart whenever the zygote or system
Dan Bornstein [Fri, 9 Oct 2009 21:24:51 +0000 (14:24 -0700)]
Force the mediaserver process to restart whenever the zygote or system
server do.

Change-Id: I16ce4ae656473055e7e244ccd4af7055959e3c1c

9 years agoMerge change I7b04795c into eclair
Android (Google) Code Review [Thu, 8 Oct 2009 23:16:24 +0000 (19:16 -0400)]
Merge change I7b04795c into eclair

* changes:
  Make vmallocinfo readable by group log so we can put it in bugreports

9 years agoMake vmallocinfo readable by group log so we can put it in bugreports
Rebecca Schultz Zavin [Thu, 8 Oct 2009 22:25:52 +0000 (15:25 -0700)]
Make vmallocinfo readable by group log so we can put it in bugreports

Change-Id: I7b04795c029c51108132e7a9eaf46b97de06de6f
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
9 years agoam 46ef2b87: add free space on system and cache to free_storage_left log event
Doug Zongker [Thu, 8 Oct 2009 01:16:50 +0000 (18:16 -0700)]
am 46ef2b87: add free space on system and cache to free_storage_left log event

Merge commit '46ef2b87d01a2df67074351d0078bf900550f343' into eclair

* commit '46ef2b87d01a2df67074351d0078bf900550f343':
  add free space on system and cache to free_storage_left log event