Hello,
I'm porting Android on imx51 target.I was able to boot it from TFTP/
NFS servers and from a SD card but I'm facing problems while trying to
boot from internal NAND.
The log is:

MX51 U-Boot > run
bootcmd_nand

NAND read: device 0 offset 0x700000, size
0x232800
 2304000 bytes read:
OK
## Booting kernel from Legacy Image at
90800000 ...
   Image Name:   Linux-2.6.28-00007-
gfa88f73-0058
   Image Type:   ARM Linux Kernel Image
(uncompressed)
   Data Size:    2196204 Bytes =  2.1
MB
   Load Address:
90008000
   Entry Point:
90008000
   Verifying Checksum ...
OK
   Loading Kernel Image ...
OK
OK

Starting
kernel ...

Uncompressing
Linux................................................................................................................................................
done, booting the kernel.
Linux version 2.6.28-00007-gfa88f73-00580-gb9c8340-dirty
(hri...@eukrea-desktop) (gcc version 4.1.2) #32 PREEMPT Fri Apr 30
09:38:46 CEST 2010
CPU: ARMv7 Processor [412fc081] revision 1 (ARMv7),
cr=10c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction
cache
Machine: Freescale MX51 3-Stack
Board
fixup_mxc_board
1550
fixup_mxc_board
1553
fixup_mxc_board
1556
fixup_mxc_board
1558
fixup_mxc_board
1571
fixup_mxc_board
1571
fixup_mxc_board
1571
fixup_mxc_board
1571
fixup_mxc_board
1571
fixup_mxc_board
1584
fixup_mxc_board
1586
Memory policy: ECC disabled, Data cache
writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages:
97408
Kernel command line: console=ttymxc0,115200
androidboot.console=ttymxc0 wvga calibration init=/init noinitrd root=/
dev/mtdblock3 ro
rootfstype=jffs2
Unknown boot option `androidboot.console=ttymxc0':
ignoring
MXC IRQ
initialized
PID hash table entries: 2048 (order: 11, 8192
bytes)
mx51_3stack_timer_init
1718
mx51_3stack_timer_init
1721
mxc_clocks_init
3577
mxc_clocks_init
3592
mxc_clocks_init
3603
mxc_clocks_init
3608
mxc_clocks_init
3617
mxc_clocks_init
3620
mxc_clocks_init
3626
mxc_clocks_init
3629
mxc_clocks_init
3633
mxc_clocks_init
3643
mxc_clocks_init
3651
mxc_clocks_init
3660
mxc_clocks_init
3664
mxc_clocks_init
3673
mxc_clocks_init
3682
mxc_clocks_init
3694
mxc_clocks_init
3703
mxc_clocks_init
3707
mxc_clocks_init
3716
mxc_clocks_init
3724
mxc_clocks_init
3729
mxc_clocks_init
3733
mxc_clocks_init
3743
mxc_clocks_init
3747
mxc_clocks_init
3758
mxc_clocks_init
3768
mxc_clocks_init
3773
mxc_clocks_init
3776
mxc_clocks_init
3781
mxc_clocks_init
3784
mxc_clocks_init
3786
mxc_clocks_ard_init
1658
MXC GPIO
hardware
mxc_board_init
1660
mxc_board_init
1662
mxc_board_init
1664
IRAM
READY
mxc_pwm_device
registered
pwm-backlight device
registered
mxc_board_init
1666
Using SDMA
I.API
MXC DMA API
initialized
SCSI subsystem
initialized
usbcore: registered new interface driver
usbfs
usbcore: registered new interface driver
hub
usbcore: registered new device driver
usb
MXC I2C
driver
MXC I2C
driver
MXC HS I2C
driver
IPU DMFC NORMAL mode: 1(0~1), 5B(4,5),
5F(6,7)
Bluetooth: Core ver
2.14
NET: Registered protocol family
31
Bluetooth: HCI device and connection manager
initialized
Bluetooth: HCI socket layer
initialized
NET: Registered protocol family
2
IP route cache hash table entries: 4096 (order: 2, 16384
bytes)
TCP established hash table entries: 16384 (order: 5, 131072
bytes)
TCP bind hash table entries: 16384 (order: 4, 65536
bytes)
TCP: Hash tables configured (established 16384 bind
16384)
TCP reno
registered
NET: Registered protocol family
1
regulator: Unable to get requested regulator:
SW1
LPMode driver module
loaded
Static Power Management for Freescale
i.MX51
PM driver module
loaded
sdram autogating driver module
loaded
Bus freq driver module
loaded
usb: DR host (utmi)
registered
mxc_dvfs_core_probe
regulator: Unable to get requested regulator:
SW1
mxc_dvfs_core_probe: failed to get gp
regulator
DVFS driver module
loaded
i.MXC CPU frequency
driver
regulator: Unable to get requested regulator:
SW1
mxc_cpufreq_driver_init: failed to get gp
regulator
ashmem:
initialized
JFFS2 version 2.2. (NAND) �© 2001-2006 Red Hat,
Inc.
msgmni has been set to
751
io scheduler noop
registered
io scheduler anticipatory
registered
io scheduler deadline
registered
io scheduler cfq registered
(default)
fbcvt: 1024x...@60: CVT Name - .
786M3
mxc_ipu mxc_ipu: Channel already disabled
9
mxc_ipu mxc_ipu: Channel already uninitialized
9
IPU DMFC DP HIGH RESOLUTION: 1(0,1), 5B(2~5),
5F(6,7)
Console: switching to colour frame buffer device
128x48
fbcvt: 1024x...@60: CVT Name - .
786M3
tve: probe of tve.0 failed with error
-16
Serial: MXC Internal UART
driver
mxcintuart.0: ttymxc0 at MMIO 0x73fbc000 (irq = 31) is a Freescale
MXC
console [ttymxc0]
enabled
mxcintuart.1: ttymxc1 at MMIO 0x73fc0000 (irq = 32) is a Freescale
MXC
mxcintuart.2: ttymxc2 at MMIO 0x7000c000 (irq = 33) is a Freescale
MXC
loop: module
loaded
pmem_adsp: 0
init
pmem_gpu: 1
init
logger: created 64K log
'log_main'
logger: created 256K log
'log_events'
logger: created 64K log
'log_radio'
FEC ENET Version
0.2
fec: PHY @ 0xf, ID 0x0007c0c4 --
LAN8700
eth0: ethernet
00:00:00:00:00:00
PPP generic driver version
2.4.2
Linux video capture interface:
v2.00
MXC Video Output MXC Video Output.0: Registered device
video0
Driver 'sd' needs updating - please use bus_type
methods
MXC MTD nand Driver
2.5
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xac (Micron NAND 512MiB
1,8V 8-
bit)
UnCorrectable RS-ECC
Error
UnCorrectable RS-ECC
Error
RedBoot partition parsing not
available
Creating 4 MTD partitions on "NAND 512MiB 1,8V 8-
bit":
0x00000000-0x00700000 :
"BOOT"
0x00700000-0x00800000 :
"MISC"
0x00800000-0x01c00000 :
"RECOVERY"
0x01c00000-0x20000000 :
"ROOT"
usbmon: debugfs is not
available
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI)
Driver
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host
Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number
1
fsl-ehci fsl-ehci.0: irq 18, io mem
0x73f80000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI
1.00
usb usb1: configuration #1 chosen from 1
choice
hub 1-0:1.0: USB hub
found
hub 1-0:1.0: 1 port
detected
Initializing USB Mass Storage
driver...
usbcore: registered new interface driver usb-
storage
USB Mass Storage support
registered.
mice: could not register psaux device, error:
-16
mice: PS/2 mouse device common for all
mice
i2c /dev entries
driver
MXC WatchDog Driver
2.0
clk: Unable to get requested clock:
wdog_clk
MXC Watchdog # 0 Timer: initial timeout 60
sec
Bluetooth: Virtual HCI driver ver
1.2
Bluetooth: HCI UART driver ver
2.2
Bluetooth: HCI BCSP protocol
initialized
SCC2: Driver Status is
OK
Sahara HW Version is
0x27000410
ioctl pointer: c026e5e8.  mmap pointer:
c026f304
In fsh_shw_smalloc (km): partition_base:dc99c000 partition_base_phys:
1fffc000
writing UMID and MAP to secure the
partition
VPU
initialized
mxsdhci: MXC Secure Digital Host Controller Interface
driver
mxsdhci: MXC SDHCI Controller
Driver.
mmc0: SDHCI detect irq 128 irq 1 INTERNAL
DMA
mxsdhci: MXC SDHCI Controller
Driver.
mmc1: SDHCI detect irq 0 irq 2 INTERNAL
DMA
usbcore: registered new interface driver
usbhid
usbhid: v2.6:USB HID core
driver
Advanced Linux Sound Architecture Driver Version
1.0.18rc3.
ALSA device
list:
  #0: Dummy
1
TCP cubic
registered
NET: Registered protocol family
17
Bluetooth: L2CAP ver
2.11
Bluetooth: L2CAP socket layer
initialized
Bluetooth: SCO (Voice Link) ver
0.6
Bluetooth: SCO socket layer
initialized
Bluetooth: RFCOMM socket layer
initialized
Bluetooth: RFCOMM TTY layer
initialized
Bluetooth: RFCOMM ver
1.10
Bluetooth: BNEP (Ethernet Emulation) ver
1.3
Bluetooth: BNEP filters: protocol
multicast
Bluetooth: HIDP (Human Interface Emulation) ver
1.2
RPC: Registered udp transport
module.
RPC: Registered tcp transport
module.
ieee80211: 802.11 data/management/control stack,
git-1.1.13
ieee80211: Copyright (C) 2004-2005 Intel Corporation
<[email protected]>
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev
2
mmc0: new high speed SDHC card at address
b368
mmcblk0: mmc0:b368 SDC   3.72
GiB
 mmcblk0:<7>mmc0: starting CMD18 arg 00000000 flags
000000b5
 p1
p2
drivers/rtc/hctosys.c: unable to open rtc device
(rtc0)
JFFS2 doesn't use
OOB.
Empty flash at 0x08592018 ends at
0x08592800
Empty flash at 0x0e37ad74 ends at
0x0e37b000
VFS: Mounted root (jffs2 filesystem)
readonly.
Freeing init memory:
132K
Warning: unable to open an initial
console.
init: cannot open '/
initlogo.rle'
# init: cannot find '/system/etc/install-recovery.sh', disabling
'flash_recovery'
gpu_z430: module license 'Proprietary' taints
kernel.
warning: `rild' uses 32-bit capabilities (legacy support in
use)
JFFS2 notice: (1759) check_node_data: wrong data CRC in data node at
0x19c7153c: read 0x2b6b2de1, calculated
0x12edb2cf.
request_suspend_state: wakeup (3->0) at 28733486540 (1970-01-01
00:00:28.733477165
UTC)
init: untracked pid 1773
exited
request_suspend_state: wakeup (0->0) at 40664008040 (1970-01-01
00:00:40.664001415
UTC)
init: untracked pid 1797
exited
request_suspend_state: wakeup (0->0) at 52585483163 (1970-01-01
00:00:52.585475913
UTC)
init: untracked pid 1808
exited
request_suspend_state: wakeup (0->0) at 64530596535 (1970-01-01
00:01:04.530589785
UTC)
init: untracked pid 1834 exited

Maybe there is something to fix in my init.rc file!

init.rc file:
on init

sysclktz 0

loglevel 3

# setup the global environment
    export PATH /sbin:/system/sbin:/system/bin:/system/xbin
    export LD_LIBRARY_PATH /system/lib
    export ANDROID_BOOTLOGO 1
    export ANDROID_ROOT /system
    export ANDROID_ASSETS /system/app
    export ANDROID_DATA /data
    export EXTERNAL_STORAGE /sdcard
    export EXTERNAL_STORAGE_SD /sdcard
    export EXTERNAL_STORAGE_UDISK /udisk
    export EXTERNAL_STORAGE_EXTSD /extsd
    export BOOTCLASSPATH /system/framework/core.jar:/system/framework/
ext.jar:/system/framework/framework.jar:/system/framework/
android.policy.jar:/system/framework/services.jar

    export BACKLIGHT_PATH /sys/class/backlight/pwm-backlight/
brightness
    export MAX_BACKLIGHT_PATH /sys/class/backlight/pwm-backlight/
max_brightness
    export LIGHTSENSOR_PATH /sys/class/i2c-adapter/i2c-1/1-0044

    export VPU_SHM_PATH /sqlite_stmt_journals
    export VPU_FW_PATH /system/etc/vpu/vpu_fw

    export CODEC_SHM_PATH /sqlite_stmt_journals

    chmod 0777 /dev/mxc_vpu
    chmod 0777 /dev/mxc_iim
    symlink /dev/mxc_iim /dev/mxc_mem

# Backward compatibility
    symlink /system/etc /etc

#creating /system/app fiel
    mkdir /system/app

# create mountpoints and mount tmpfs on sqlite_stmt_journals
    mkdir /sdcard 0000 system system
    mkdir /udisk 0000 system system
    mkdir /extsd 0000 system system
    mkdir /system
    mkdir /data 0771 system system
    mkdir /cache 0770 system cache
    mkdir /sqlite_stmt_journals 01777 root root
    mount tmpfs tmpfs /sqlite_stmt_journals size=4m

    mount rootfs rootfs / rw remount

    write /proc/sys/kernel/panic_on_oops 1
    write /proc/sys/kernel/hung_task_timeout_secs 0
    write /proc/cpu/alignment 4
    write /proc/sys/kernel/sched_latency_ns 10000000
    write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
    write /proc/sys/kernel/sched_compat_yield 1
    write /proc/sys/kernel/sched_child_runs_first 0

# Create cgroup mount points for process groups
    mkdir /dev/cpuctl
    mount cgroup none /dev/cpuctl cpu
    chown sytem system /dev/cpuctl
    chown system system /dev/cpuctl/tasks
    chmod 0777 /dev/cpuctl/tasks
    write /dev/cpuctl/cpu.shares 1024

    mkdir /dev/cpuctl/fg_boost
    chown system system /dev/cpuctl/fg_boost/tasks
    chmod 0777 /dev/cpuctl/fg_boost/tasks
    write /dev/cpuctl/fg_boost/cpu.shares 1024

    mkdir /dev/cpuctl/bg_non_interactive
    chown system system /dev/cpuctl/bg_non_interactive/tasks
    chmod 0777 /dev/cpuctl/bg_non_interactive/tasks
    # 5.0 %
    write /dev/cpuctl/bg_non_interactive/cpu.shares 52

# mount mtd partitions
    # Mount /system rw first to give the filesystem a chance to save a
checkpoint
    mount yaffs2 m...@system /system
    mount yaffs2 m...@system /system ro remount

    # We chown/chmod /data again so because mount is run as root +
defaults
    mount yaffs2 m...@userdata /data nosuid nodev
    chown system system /data
    chmod 0771 /data

    # Create dump dir and collect dumps.
    # Do this before we mount cache so eventually we can use cache for
    # storing dumps on platforms which do not have a dedicated dump
partition.

    mkdir /data/dontpanic
    chown root log /data/dontpanic
    chmod 0750 /data/dontpanic

    # Collect apanic data, free resources and re-arm trigger
    copy /proc/apanic_console /data/dontpanic/apanic_console
    chown root log /data/dontpanic/apanic_console
    chmod 0640 /data/dontpanic/apanic_console

    copy /proc/apanic_threads /data/dontpanic/apanic_threads
    chown root log /data/dontpanic/apanic_threads
    chmod 0640 /data/dontpanic/apanic_threads

    write /proc/apanic_console 1

    # Collect ramconsole data
    copy /proc/last_kmsg /data/dontpanic/last_kmsg
    chown root log /data/dontpanic/last_kmsg
    chmod 0640 /data/dontpanic/last_kmsg

    # Same reason as /data above
    mount yaffs2 m...@cache /cache nosuid nodev
    chown system cache /cache
    chmod 0770 /cache


    # This may have been created by the recovery system with odd
permissions
    chown system system /cache/recovery
    chmod 0770 /cache/recovery

    #change permissions on vmallocinfo so we can grab it from
bugreports
    chown root log /proc/vmallocinfo
    chmod 0440 /proc/vmallocinfo

# create basic filesystem structure
    mkdir /data/misc 01771 system misc
    mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth
    mkdir /data/misc/keystore 0770 keystore keystore
    mkdir /data/misc/vpn 0770 system system
    mkdir /data/misc/vpn/profiles 0770 system system
    # give system access to wpa_supplicant.conf for backup and restore
    mkdir /data/misc/wifi 0770 wifi wifi
    chmod 0770 /data/misc/wifi
    chmod 0660 /data/misc/wifi/wpa_supplicant.conf
    mkdir /data/local 0771 shell shell
    mkdir /data/local/tmp 0771 shell shell
    mkdir /data/data 0771 system system
    mkdir /data/app-private 0771 system system
    mkdir /data/app 0771 system system
    mkdir /data/property 0700 root root

    # create dalvik-cache and double-check the perms
    mkdir /data/dalvik-cache 0771 system system
    chown system system /data/dalvik-cache
    chmod 0771 /data/dalvik-cache

    # create the lost+found directories, so as to enforce our
permissions
    mkdir /data/lost+found 0770
    mkdir /cache/lost+found 0770

    # double check the perms, in case lost+found already exists, and
set owner
    chown root root /data/lost+found
    chmod 0770 /data/lost+found
    chown root root /cache/lost+found
    chmod 0770 /cache/lost+found

    # change permission for keymap file temporarily
    # should be removed when working out keymap later
    chmod 0777 /system/usr/keychars/qwerty.kcm.bin
    chmod 0777 /system/usr/keychars/
Logitech_Logitech_USB_Keyboard.kcm.bin
    chmod 0777 /system/usr/keychars/mxckpd.kcm.bin

on boot
# basic network init
    ifup lo
    hostname localhost
    domainname localdomain

    mkdir /data/system 0775 system system
    exec /sbin/ts_calibrator

# set RLIMIT_NICE to allow priorities from 19 to -20
    setrlimit 13 40 40

# Set timeout value for rmnet stats.
    write /sys/devices/virtual/net/rmnet0/timeout_suspend 5000000


# Define the oom_adj values for the classes of processes that can be
# killed by the kernel.  These are used in ActivityManagerService.
    setprop ro.FOREGROUND_APP_ADJ 0
    setprop ro.VISIBLE_APP_ADJ 1
    setprop ro.SECONDARY_SERVER_ADJ 2
    setprop ro.BACKUP_APP_ADJ 2
    setprop ro.HOME_APP_ADJ 4
    setprop ro.HIDDEN_APP_MIN_ADJ 7
    setprop ro.CONTENT_PROVIDER_ADJ 14
    setprop ro.EMPTY_APP_ADJ 15

# Define the memory thresholds at which the above process classes will
# be killed.  These numbers are in pages (4k).
    setprop ro.FOREGROUND_APP_MEM 1536
    setprop ro.VISIBLE_APP_MEM 2048
    setprop ro.SECONDARY_SERVER_MEM 4096
    setprop ro.BACKUP_APP_MEM 4096
    setprop ro.HOME_APP_MEM 4096
    setprop ro.HIDDEN_APP_MEM 5120
    setprop ro.CONTENT_PROVIDER_MEM 5632
    setprop ro.EMPTY_APP_MEM 6144

# Define 3D acceleration property
    setprop debug.sf.showfps    0
    setprop debug.sf.enable_hgl 1

# Define fsl avi/aac/asf/rm/flv format support
    setprop ro.FSL_AVI_PARSER 1
    setprop ro.FSL_AAC_PARSER 1
    setprop ro.FSL_ASF_PARSER 1
    setprop ro.FSL_RMVB_PARSER 1
    setprop ro.FSL_FLV_PARSER 1
    setprop ro.FSL_MKV_PARSER 1

# Define fsl display init mode
    setprop ro.FSL_LANDSCAPE_MODE 1

# Define fsl xec mode
    setprop xec.dls.enabled 1
    setprop xec.aa.enabled 1
    setprop xec.dls.rate 0
    setprop xec.aa.rate 100

# Define fsl dvfs property
    setprop ro.dvfs.enabled 1

# Define UI to TVOUT,change this setting to 1 and uncomment below
write commands
    setprop ro.UI_TVOUT_DISPLAY 0
    #write /sys/class/graphics/fb0/blank 1
    #write /sys/class/graphics/fb1/blank 1
    #write /sys/class/graphics/fb2/blank 1
    #write /sys/class/graphics/fb0/fsl_disp_property 1-layer-fb
    #write /sys/class/graphics/fb1/mode U:720x480i-60
    #write /sys/class/graphics/fb1/blank 0

#prevent the system from going into sleep
    write /sys/power/wake_lock WAKE_LOCK_SUSPEND

#access internet with browser via ethernet
    setprop net.dns1 212.27.40.241
    setprop net.dns2 212.27.40.240

# ALSA mixer naming define
    setprop alsa.mixer.playback.master Playback
    setprop alsa.mixer.capture.master Capture
    setprop alsa.mixer.playback.speaker Playback
    setprop alsa.mixer.playback.headset Headphone
    setprop alsa.mixer.capture.headset Capture

# Write value must be consistent with the above properties.
# Note that the driver only supports 6 slots, so we have HOME_APP at
the
# same memory level as services.
    write /sys/module/lowmemorykiller/parameters/adj 0,1,2,7,14,15

    write /proc/sys/vm/lowmem_reserve_ratio 1
    write /proc/sys/vm/overcommit_memory 1
    write /proc/sys/vm/min_free_order_shift 4
    write /sys/module/lowmemorykiller/parameters/minfree
1536,2048,4096,5120,5632,6144

    # Set init its forked children's oom_adj.
    write /proc/1/oom_adj -16

    # Permissions for System Server and daemons.
    chown radio system /sys/android_power/state
    chown radio system /sys/android_power/request_state
    chown radio system /sys/android_power/acquire_full_wake_lock
    chown radio system /sys/android_power/acquire_partial_wake_lock
    chown radio system /sys/android_power/release_wake_lock
    chown radio system /sys/power/state
    chown radio system /sys/power/wake_lock
    chown radio system /sys/power/wake_unlock
    chown radio system /sys/devices/platform/mxc_dvfs_core.0/enable
    chown radio system /sys/devices/platform/busfreq.0/enable
    chmod 0660 /sys/power/state
    chmod 0660 /sys/power/wake_lock
    chmod 0660 /sys/power/wake_unlock
    chmod 0660 /sys/devices/platform/mxc_dvfs_core.0/enable
    chmod 0660 /sys/devices/platform/busfreq.0/enable
    chmod 0660 /sys/class/backlight/pwm-backlight/brightness
    chown system system /sys/class/timed_output/vibrator/enable
    chown system system /sys/class/backlight/pwm-backlight/brightness
    chown system system /sys/class/leds/keyboard-backlight/brightness
    chown system system /sys/class/leds/lcd-backlight/brightness
    chown system system /sys/class/leds/button-backlight/brightness
    chown system system /sys/class/leds/jogball-backlight/brightness
    chown system system /sys/class/leds/red/brightness
    chown system system /sys/class/leds/green/brightness
    chown system system /sys/class/leds/blue/brightness
    chown system system /sys/class/leds/red/device/grpfreq
    chown system system /sys/class/leds/red/device/grppwm
    chown system system /sys/class/leds/red/device/blink
    chown system system /sys/class/leds/red/brightness
    chown system system /sys/class/leds/green/brightness
    chown system system /sys/class/leds/blue/brightness
    chown system system /sys/class/leds/red/device/grpfreq
    chown system system /sys/class/leds/red/device/grppwm
    chown system system /sys/class/leds/red/device/blink
    chown system system /sys/class/timed_output/vibrator/enable
    chown system system /sys/module/sco/parameters/disable_esco
    chown system system /sys/kernel/ipv4/tcp_wmem_min
    chown system system /sys/kernel/ipv4/tcp_wmem_def
    chown system system /sys/kernel/ipv4/tcp_wmem_max
    chown system system /sys/kernel/ipv4/tcp_rmem_min
    chown system system /sys/kernel/ipv4/tcp_rmem_def
    chown system system /sys/kernel/ipv4/tcp_rmem_max
    chown root radio /proc/cmdline

# Define TCP buffer sizes for various networks
#   ReadMin, ReadInitial, ReadMax, WriteMin, WriteInitial, WriteMax,
    setprop net.tcp.buffersize.default
4096,87380,110208,4096,16384,110208
    setprop net.tcp.buffersize.wifi
4095,87380,110208,4096,16384,110208
    setprop net.tcp.buffersize.umts
4094,87380,110208,4096,16384,110208
    setprop net.tcp.buffersize.edge
4093,26280,35040,4096,16384,35040
    setprop net.tcp.buffersize.gprs    4092,8760,11680,4096,8760,11680

# Prepare for wifi
#
#    setprop wifi.interface wlan0
#    mkdir /data/misc/wifi 0770 wifi wifi
#    mkdir /data/misc/wifi/sockets 0770 wifi wifi
#    mkdir /data/misc/dhcp 0770 dhcp dhcp
#    chown dhcp dhcp /data/misc/dhcp

# Prepare for bluetooth
    chmod 666 /sys/class/rfkill/rfkill0/state
    chown bluetooth bluetooth /sys/class/rfkill/rfkill0/state
    write /sys/class/rfkill/rfkill0/state 0

# Enable USB remote wakeup
    write /sys/bus/platform/drivers/fsl-ehci/fsl-ehci.0/power/wakeup
enabled

# Prepare for RIL
    setprop gsm.ril.delay 15

    class_start default

## Daemon processes to be run by init.
##
service console /system/bin/sh
    console

# adbd is controlled by the persist.service.adb.enable system property
service adbd /sbin/adbd
    disabled

# adbd on at boot in emulator
on property:ro.kernel.qemu=1
    start adbd

on property:persist.service.adb.enable=1
    start adbd

on property:persist.service.adb.enable=0
    stop adbd

service servicemanager /system/bin/servicemanager
    user system
    critical
    onrestart restart zygote
    onrestart restart media

service vold /system/bin/vold
    socket vold stream 0660 root mount

service nexus /system/bin/nexus
    socket nexus stream 0660 root system
    disabled

#service mountd /system/bin/mountd
#    socket mountd stream 0660 root mount

service debuggerd /system/bin/debuggerd

#service ril-daemon /system/bin/rild -l /system/lib/libreference-
ril.so -- -d /dev/ttymxc2 -u /dev/ttyUSB0
service ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so
-- -d /dev/ttyUSB3 -u /dev/ttyUSB0
    socket rild stream 660 root radio
    socket rild-debug stream 660 radio system
    user root
    group radio cache inet misc

service zygote /system/bin/app_process -Xzygote /system/bin --zygote --
start-system-server
    socket zygote stream 666
    onrestart write /sys/android_power/request_state wake
    onrestart write /sys/power/state on
    onrestart restart media

service media /system/bin/mediaserver
    user media
    group system audio camera graphics inet net_bt net_bt_admin

#service bootsound /system/bin/playmp3
#    user media
#    group audio
#    oneshot

service bootanim /system/bin/bootanimation
    user graphics
    group graphics
    disabled
    oneshot

service dbus /system/bin/dbus-daemon --system --nofork
    socket dbus stream 660 bluetooth bluetooth
    user bluetooth
    group bluetooth net_bt_admin

service bluetoothd /system/bin/bluetoothd -n
    socket bluetooth stream 660 bluetooth bluetooth
    socket dbus_bluetooth stream 660 bluetooth bluetooth
    # init.rc does not yet support applying capabilities, so run as
root and
    # let bluetoothd drop uid to bluetooth with the right linux
capabilities
    group bluetooth net_bt_admin misc
    disabled

service hfag /system/bin/sdptool add --channel=10 HFAG
    user bluetooth
    group bluetooth net_bt_admin
    disabled
    oneshot

service hsag /system/bin/sdptool add --channel=11 HSAG
    user bluetooth
    group bluetooth net_bt_admin
    disabled
    oneshot

service installd /system/bin/installd
    socket installd stream 600 system system

service flash_recovery /system/etc/install-recovery.sh
    oneshot

service racoon /system/bin/racoon
    socket racoon stream 600 system system
    # racoon will setuid to vpn after getting necessary resources.
    group net_admin keystore
    disabled
    oneshot

service mtpd /system/bin/mtpd
    socket mtpd stream 600 system system
    user vpn
    group vpn net_admin net_raw
    disabled
    oneshot

service keystore /system/bin/keystore /data/misc/keystore
    user keystore
    group keystore
    socket keystore stream 666

service dumpstate /system/bin/dumpstate -s
    socket dumpstate stream 0660 shell log
    disabled
    oneshot

#service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d wlan0
#    disabled
#    oneshot

#service wpa_supplicant /system/bin/logwrapper /system/bin/
wpa_supplicant \
#    -Dwext -iwlan0 -c/data/misc/wifi/wpa_supplicant.conf
#    user root
#    group wifi inet
#    socket wpa_wlan0 dgram 660 wifi wifi
#    oneshot

service pppd_gprs /etc/init.gprs-pppd
    user root
    group radio cache inet misc
    disabled
    oneshot

service glgpsd /system/bin/glgps -c /etc/glconfig.xml normal
    user root
    group system
    disabled

#install z430 GPU kernel module
service gpu_z430 /etc/init.GPU_z430.sh
    user root
    group system
    oneshot

Does anyone has already faced this problem?
Thanks for help!

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to