Android build didn't create contents of /data directory

by vishal bhoj » Thu, 09 Jul 2009 06:53:30 GMT


Sponsored Links
 content are loaded at boot time . On what device are you trying it out ?
How are you mounting the data. there are few changes needed to be done in
the init.rc script .







-- 
with regards vishal

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

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



Android build didn't create contents of /data directory

by vishal bhoj » Thu, 09 Jul 2009 08:12:08 GMT


  u preparing the filesystem on sdcard or  creating the system image and
flashing it ?
Start Posting ur querries on android-porting group.
On Thu, Jul 9, 2009 at 12:56 PM, Saravanan <saravanan....@gmail.com> wrote:



--
with regards vishal

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

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


Sponsored Links


Android build didn't create contents of /data directory

by vishal bhoj » Thu, 09 Jul 2009 08:57:34 GMT


 n android system and userdata are 2 different partitions which are mounted
by the init script. If you have a single filesystem do the changes as shown
in the init script used on omapzoom kit with filesystem on sdcard.


on init

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 BOOTCLASSPATH
/system/framework/core.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar

# Backward compatibility
symlink /system/etc /etc

# create mountpoints and mount tmpfs on sqlite_stmt_journals
mkdir /sdcard 0000 system system
mkdir /system
mkdir /data 0771 system system
mkdir /cache 0770 system cache
mkdir /sqlite_stmt_journals 01777 root root
mkdir /data/misc/ 0771 system system
mkdir /data/misc/wifi 0771 system system
mkdir /data/misc/wifi/sockets 0771 system system
mkdir /data/misc/dhcp 0777 system system
mount tmpfs tmpfs /sqlite_stmt_journals size=4m

# since system is also on root - we don't want to do this
# mount rootfs rootfs / ro 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

# 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 0777 /data

# 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

# create basic filesystem structure
mkdir /data/misc 01771 system misc
mkdir /data/misc/hcid 0770 bluetooth bluetooth
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

# change permissions for alsa nodes
symlink /dev/snd/pcmC0D0c /dev/pcmC0D0c
symlink /dev/snd/pcmC0D0p /dev/pcmC0D0p
symlink /dev/snd/controlC0 /dev/controlC0
symlink /dev/snd/timer /dev/timer
chmod 0777 /dev/pcmC0D0c
chmod 0777 /dev/pcmC0D0p
chmod 0777 /dev/controlC0
chmod 0777 /dev/timer

# change permissions for modem
chmod 0660 /dev/ttyS0
chown radio radio /dev/ttyS0

# change permissions for bridge. Symlink



Other Threads

1. V4L2 Camera interface

I'm currently trying to replace the CameraHardwareStub with my own
CameraHardware which uses the v4l2 interface. Now I can capture jpeg
frames from the camera which will be automatically saved onto the SD
card.

I'm having problems with my preview video. I'm not getting a preview
image on my screen. It seems that Android is using some kind of YUV422
format? At the moment I'm getting my frames in YUYV format. How can I
convert this into the format Android is using for it's preview video?

As I get this right, the memory base that's given with
mPreviewCallback is used for preview video?
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Download Files via Android Browser an https not possible

Hello!

I want to try to download some file about the android browser. But
every time I start the download via https the download manager show
only the download with the message "Waiting for data...".
I tried different host, but the problem ist always the same.

I used a Milestone with 2.1 and a Samsung Galaxy 9000 with 2.1

Anybody an idea?

-- 

3. vold in froyo

4. what is the default value of account name and type in contact?

5. Getting a View to redraw when parameters change

6. Error parsing Android SDK on linux

7. A ListView that acts like RadioButtons