0 Members and 1 Guest are viewing this topic.
Here is some info on the Ipaq connector, pins used1,2,4,23,24
adrian@ubuntu:~/temp/extract$ tree -L 5.|-- data|-- default.prop|-- dev|-- init|-- init.goldfish.rc|-- init.rc|-- proc|-- sbin| |-- adbd| |-- emuinit| `-- HDMI|-- sys`-- system
# adbd is controlled by the persist.service.adb.enable system propertyservice adbd /sbin/adbd disabled# adbd on at boot in emulatoron property:ro.kernel.qemu=1 start adbdon property:persist.service.adb.enable=1 start adbdon property:persist.service.adb.enable=0 stop adbd
$ ls /sys/devices/virtual/mtd/mtd6ueventdevsubsystemtypeflagssizeerasesizewritesizesubpagesizeoobsizenumeraseregionsnamepowermtdblock6$ ls /mnt/emulost+found$
# adbd is controlled by the persist.service.adb.enable system propertyservice adbd /sbin/adbd disabled# adbd on at boot in emulatoron property:ro.kernel.qemu=1 start adbdon property:persist.service.adb.enable=1 start adbdon property:persist.service.adb.enable=0 stop adbdservice vold /system/bin/vold socket vold stream 0660 root mount ioprio be 2service servicemanager /system/bin/servicemanager user system critical onrestart restart zygote onrestart restart mediaservice netd /system/bin/netd socket netd stream 0660 root systemservice debuggerd /system/bin/debuggerd
./test.sh ramdisk.imgChecking for uImage magic word...1+0 records in0+1 records out4 bytes (4 B) copied, 0.000142388 s, 28.1 kB/suImage recognized.Extracting data...2654+1 records in331+1 records out169919 bytes (170 kB) copied, 0.0294715 s, 5.8 MB/sChecking for ARM mach-type...3+0 records in0+1 records out3 bytes (3 B) copied, 0.000125597 s, 23.9 kB/sChecking for zImage...1+0 records in0+1 records out4 bytes (4 B) copied, 0.000137923 s, 29.0 kB/s>>> ramdisk.img extracted to Imageadrian@ubuntu:~/M009F$ lsImage ramdisk.img test.shadrian@ubuntu:~/M009F$ mv Image ramdisk.cpio.gzadrian@ubuntu:~/M009F$ lsramdisk.cpio.gz ramdisk.img test.shadrian@ubuntu:~/M009F$ gzip -d ramdisk.cpio.gzadrian@ubuntu:~/M009F$ lsramdisk.cpio ramdisk.img test.shadrian@ubuntu:~/M009F$ adrian@ubuntu:~/M009F$ mkdir extractadrian@ubuntu:~/M009F$ cd extractadrian@ubuntu:~/M009F/extract$ cpio -i -F ../ramdisk.cpio538 blocksadrian@ubuntu:~/M009F/extract$ lsdata dev init.goldfish.rc proc sysdefault.prop init init.rc sbin systemMake changes and copy folder structure for the ubiblk0 folderadrian@ubuntu:~/M009F/extract$ find -print | cpio -o -H newc -O ../ramdisk3.cpio558 blocksadrian@ubuntu:~/M009F/extract$ cd ..adrian@ubuntu:~/M009F$ lsextract ramdisk2.cpio ramdisk3.cpio ramdisk.cpio ramdisk.img test.sh ubiblk0
adrian@ubuntu:~/M009F$ mkimage -T ramdisk -C gzip -n 'uRamdisk' \> -d Image uRamdiskImage Name: uRamdiskCreated: Wed Feb 1 20:03:54 2012Image Type: PowerPC Linux RAMDisk Image (gzip compressed)Data Size: 170665 Bytes = 166.67 kB = 0.16 MBLoad Address: 0x00000000Entry Point: 0x00000000
27 05 19 5658 D3 FA EF 4E C9 FB 3F00 02 59 27 4100 00 00 41 00 00 00 5C 5D 70 8505 02 03 00 68 52 61 6D 64 69 73 6B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F 8B
27 05 19 5605 64 09 F6 4E E5 C8 B400 02 B1 89 4100 00 00 41 00 00 00 9A CB 85 1205 02 03 00 68 52 61 6D 64 69 73 6B00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 1F 8B
;MID M009FClone%SingleAdbInterface% = USB_Install, USB\VID_18D1&PID_1FD7%CompositeAdbInterface% = USB_Install, USB\VID_18D1&PID_1FD7&MI_00
adrian@ubuntu:~/M009F$ ./mkbootfs extract > Imageadrian@ubuntu:~/M009F$ file ImageImage: ASCII cpio archive (SVR4 with no CRC)adrian@ubuntu:~/M009F$ gzip -c Image > Image.gzadrian@ubuntu:~/M009F$ rm Imageadrian@ubuntu:~/M009F$ mv Image.gz Imageadrian@ubuntu:~/M009F$ mkimage -A arm -T ramdisk -C none -a 0x41000000 -e 0x41000000 -n 'uRamdisk' \> -d Image ramdisk.imgImage Name: uRamdiskCreated: Fri Feb 3 04:11:34 2012Image Type: ARM Linux RAMDisk Image (uncompressed)Data Size: 154841 Bytes = 151.21 kB = 0.15 MBLoad Address: 0x41000000Entry Point: 0x41000000
on early-init start ueventdon initsysclktz 0loglevel 3# setup the global environment export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin export LD_LIBRARY_PATH /vendor/lib:/system/lib export ANDROID_BOOTLOGO 1 export ANDROID_ROOT /system export ANDROID_ASSETS /system/app export ANDROID_DATA /data export EXTERNAL_STORAGE /mnt/sdcard export ASEC_MOUNTPOINT /mnt/asec export LOOP_MOUNTPOINT /mnt/obb export BOOTCLASSPATH /system/framework/core.jar:/system/framework/bouncycastle.jar:/system/framework/ext.jar:/system/framework/framework.jar:/system/framework/android.policy.jar:/system/framework/services.jar:/system/framework/core-junit.jar# Backward compatibility symlink /system/etc /etc symlink /sys/kernel/debug /d# Right now vendor lives on the same filesystem as system,# but someday that may change. symlink /system/vendor /vendor# create mountpoints mkdir /mnt 0775 root system #mkdir /mnt/sdcard 0000 system system #mkdir /udisk 0000 system system# Create cgroup mount point for cpu accounting mkdir /acct mount cgroup none /acct cpuacct mkdir /acct/uid# Backwards Compat - XXX: Going away in G* #symlink /mnt/sdcard /sdcard mkdir /system mkdir /data 0771 system system mkdir /cache 0770 system cache mkdir /config 0500 root root # Directory for putting things only root should see. mkdir /mnt/secure 0700 root root # Directory for staging bindmounts mkdir /mnt/secure/staging 0700 root root mkdir /mnt/secure/bgmount 0700 root root # Directory-target for where the secure container # imagefile directory will be bind-mounted mkdir /mnt/secure/asec 0700 root root # Secure container public mount points. mkdir /mnt/asec 0700 root system mount tmpfs tmpfs /mnt/asec mode=0755,gid=1000 #mount rootfs rootfs / ro remount # Filesystem image public mount points. mkdir /mnt/obb 0700 root system mount tmpfs tmpfs /mnt/obb mode=0755,gid=1000 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 system 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 usbfs for 3G Dongle USB Driver mount usbfs none /proc/bus/usb on fs# mount mtd partitions # Mount /system rw first to give the filesystem a chance to save a checkpoint mount yaffs2 mtd@system /system mount yaffs2 mtd@system /system ro remount mount yaffs2 mtd@userdata /data nosuid nodev mount yaffs2 mtd@cache /cache nosuid nodevon post-fs # once everything is setup, no need to modify / #mount rootfs rootfs / ro remount # We chown/chmod /data again so because mount is run as root + defaults 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 # Same reason as /data above #mount yaffs2 mtd@cache /cache nosuid nodev chown system cache /cache chmod 0770 /cache# Mount user NAND partition# mkdir /mnt/emu# mount yaffs2 mtd@Local-disk /mnt/emu nosuid nodev# chown system system /mnt/emu# chmod 0777 /mnt/emu mkdir /mnt/sdcard chown system system /mnt/sdcard chmod 0777 /mnt/sdcard #mkdir /mnt/sdcard1 0000 system system#mkdir /mnt/sdcard2 0000 system system#mkdir /mnt/udisk1 0000 system system#mkdir /mnt/udisk2 0000 system system # by rex symlink /mnt/sdcard /sdcard#symlink /mnt/sdcard1 /sdcard1#symlink /mnt/udisk1 /udisk1#symlink /mnt/udisk2 /udisk2 # This may have been created by the recovery system with odd permissions chown system cache /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 #change permissions on kmsg & sysrq-trigger so bugreports can grab kthread stacks chown root system /proc/kmsg chmod 0440 /proc/kmsg chown root system /proc/sysrq-trigger chmod 0220 /proc/sysrq-trigger #change permissions on cmdine chmod 0755 /proc/cmdline# create basic filesystem structure mkdir /data/misc 01771 system misc mkdir /data/misc/bluetoothd 0770 bluetooth bluetooth mkdir /data/misc/bluetooth 0770 system system mkdir /data/misc/keystore 0700 keystore keystore mkdir /data/misc/vpn 0770 system system mkdir /data/misc/systemkeys 0700 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/misc/wifi 0770 system system mkdir /data/misc/wifi/sockets 0770 system system mkdir /data/system/wpa_supplicant 0770 system system mkdir /data/misc/dhcp 0770 dhcp dhcp mkdir /data/misc/tscal 0770 system system chown dhcp dhcp /data/misc/dhcp 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+foundon boot# basic network init ifup lo hostname localhost domainname localdomain# set RLIMIT_NICE to allow priorities from 19 to -20 setrlimit 13 40 40# 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.PERCEPTIBLE_APP_ADJ 2 setprop ro.HEAVY_WEIGHT_APP_ADJ 3 setprop ro.SECONDARY_SERVER_ADJ 4 setprop ro.BACKUP_APP_ADJ 5 setprop ro.HOME_APP_ADJ 6 setprop ro.HIDDEN_APP_MIN_ADJ 7 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 2048 setprop ro.VISIBLE_APP_MEM 3072 setprop ro.PERCEPTIBLE_APP_MEM 4096 setprop ro.HEAVY_WEIGHT_APP_MEM 4096 setprop ro.SECONDARY_SERVER_MEM 6144 setprop ro.BACKUP_APP_MEM 6144 setprop ro.HOME_APP_MEM 6144 setprop ro.HIDDEN_APP_MEM 7168 setprop ro.EMPTY_APP_MEM 8192# Write value must be consistent with the above properties.# Note that the driver only supports 6 slots, so we have combined some of# the classes into the same memory level; the associated processes of higher# classes will still be killed first. write /sys/module/lowmemorykiller/parameters/adj 0,1,2,4,7,15 write /proc/sys/vm/overcommit_memory 1 write /proc/sys/vm/min_free_order_shift 4 write /sys/module/lowmemorykiller/parameters/minfree 2048,3072,4096,6144,7168,8192 # Set init its forked children's oom_adj. write /proc/1/oom_adj -16 # Tweak background writeout write /proc/sys/vm/dirty_expire_centisecs 200 write /proc/sys/vm/dirty_background_ratio 5 # 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 chmod 0660 /sys/power/state chmod 0660 /sys/power/wake_lock chmod 0660 /sys/power/wake_unlock chown system system /sys/class/timed_output/vibrator/enable 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#add by bob chmod 644 /system/usr/keychars/qwerty.kcm.bin chmod 666 /dev/memalloc chmod 666 /dev/imapx200-vdec chmod 666 /dev/HDMI chmod 777 /dev/asysops chmod 777 /dev/icam0 chmod 777 /dev/shm_so chmod 777 /dev/imapx200-camif chmod 777 /dev/graphics/fb0 chmod 666 /dev/imapx200-venc chmod 666 /dev/soops chmod 777 /dev/video0 chown system.system /dev/memalloc chown system.system /dev/imapx200-vdec #chown system.system /dev/HDMI chown system.system /dev/asysops chown system.system /dev/shm_so chown system.system /dev/imapx200-camif chown system.system /dev/imapx200-venc chown system.system /dev/soops chmod 777 /dev/video0 chmod 0666 /dev/ttyUSB0 chown radio radio /dev/ttyUSB0 chmod 0666 /dev/ttyUSB1 chown radio radio /dev/ttyUSB1 chmod 0666 /dev/ttyUSB2 chown radio radio /dev/ttyUSB2 chmod 0666 /dev/ttyUSB3 chown radio radio /dev/ttyUSB3 chmod 0666 /dev/ttyUSB4 chown radio radio /dev/ttyUSB4 chmod 0666 /dev/ttyACM0 chown radio radio /dev/ttyACM0 chmod 0666 /dev/ttyACM1 chown radio radio /dev/ttyACM1 chmod 0666 /dev/ttyACM2 chown radio radio /dev/ttyACM2 chmod 0666 /dev/ttyACM3 chown radio radio /dev/ttyACM3 chmod 0666 /dev/ttyACM4 chown radio radio /dev/ttyACM4 chmod 0666 /dev/ttyHS0 chown radio radio /dev/ttyHS0 chmod 0666 /dev/ttyHS1 chown radio radio /dev/ttyHS1 chmod 0666 /dev/ttyHS2 chown radio radio /dev/ttyHS2 chmod 0666 /dev/ttyHS3 chown radio radio /dev/ttyHS3 chmod 0666 /dev/ttyHS4 chown radio radio /dev/ttyHS4#gps settings chmod 666 /dev/imapx200-gps chown system.system /dev/imapx200-gps# 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 class_start default## Daemon processes to be run by init.##service ueventd /sbin/ueventd criticalservice console /system/bin/sh console# disabled# user shell# group logon property:ro.secure=0 start console# adbd is controlled by the persist.service.adb.enable system propertyservice adbd /sbin/adbd enabled# adbd on at boot in emulatoron property:ro.kernel.qemu=1 start adbdon property:persist.service.adb.enable=1 start adbdon property:persist.service.adb.enable=0 stop adbdservice vold /system/bin/vold socket vold stream 0660 root mount ioprio be 2service servicemanager /system/bin/servicemanager user system critical onrestart restart zygote onrestart restart mediaservice netd /system/bin/netd socket netd stream 0660 root systemservice debuggerd /system/bin/debuggerd#service ril-daemon /system/bin/rildservice ril-daemon /system/bin/rild -l /system/lib/libreference-ril.so socket rild stream 660 root radio socket rild-debug stream 660 radio system user root group radio cache inet misc audio sdcard_rwservice 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 onrestart restart netdservice media /system/bin/mediaserver user media group system audio camera graphics inet net_bt net_bt_admin net_raw ioprio rt 4service bootanim /system/bin/bootanimation user graphics group graphics disabled oneshotservice dbus /system/bin/dbus-daemon --system --nofork socket dbus stream 660 bluetooth bluetooth user bluetooth group bluetooth net_bt_adminservice 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 disabledservice hfag /system/bin/sdptool add --channel=10 HFAG user bluetooth group bluetooth net_bt_admin disabled oneshotservice hsag /system/bin/sdptool add --channel=11 HSAG user bluetooth group bluetooth net_bt_admin disabled oneshotservice opush /system/bin/sdptool add --channel=12 OPUSH user bluetooth group bluetooth net_bt_admin disabled oneshotservice pbap /system/bin/sdptool add --channel=19 PBAP user bluetooth group bluetooth net_bt_admin disabled oneshotservice installd /system/bin/installd socket installd stream 600 system systemservice flash_recovery /system/etc/install-recovery.sh oneshotservice racoon /system/bin/racoon socket racoon stream 600 system system # racoon will setuid to vpn after getting necessary resources. group net_admin disabled oneshotservice mtpd /system/bin/mtpd socket mtpd stream 600 system system user vpn group vpn net_admin net_raw disabled oneshotservice keystore /system/bin/keystore /data/misc/keystore user keystore group keystore socket keystore stream 666service dumpstate /system/bin/dumpstate -s socket dumpstate stream 0660 shell log disabled oneshot#service mountd /system/bin/mountd# socket mountd stream 0660 root mount#service wpa_supplicant /system/bin/logwrapper /system/bin/wpa_supplicant -Dwext -ira0 -c /data/misc/wifi/wpa_supplicant.conf -ddservice wpa_supplicant /system/bin/wpa_supplicant -Dwext -iwlan0 -c /data/misc/wifi/wpa_supplicant.conf -dd disabled oneshot#group system#service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d wlan0#service dhcpcd /system/bin/logwrapper /system/bin/dhcpcd -d -B ra0service dhcpcd /system/bin/dhcpcd -d -B wlan0 disabled oneshot#group system dhcp#service dhcpcd1 /system/bin/logwrapper /system/bin/dhcpcd -d -B eth0service dhcpcd1 /system/bin/dhcpcd -d -B eth0 disabled oneshot#on property:init.svc.wpa_supplicant=stopped# stop dhcpcdservice gal /system/bin/inshal oneshotservice emu /sbin/emuinit oneshot#This service is for HDMI feature on PADservice HDMI /sbin/HDMI oneshot#service pppd_gprs /system/etc/init.gprs-pppd# user root# group radio cache inet misc# disabled# oneshot################################################################################ Copyright (C), 2011-2012, Cathay Communication Co., LTD.# usbdongle : 3G Dongle USB Driver# Author : Xu Lei###############################################################################service usbdongled /system/bin/usbdongled user root group radio cache inet misc enabled oneshotservice license /system/bin/permfdservice cpfile /system/bin/busybox cp /system/flash_player_20110406.apk /data/app/flash_player_20110406.apk oneshot
Failed to open the file (java.io.IOException at com.estrongs.android.pop.app.h.run(Unknown Source) at java.lang.Thread.run(Thread.java:1019))
cp /usr/bin/su /system/bin/su cp /usr/bin/busybox /system/bin/busybox cp /usr/bin/Superuser.apk /system/app/Superuser.apk chmod 0777 /system/bin/su chmod 0777 /system/bin/busybox chmod 0777 /system/apps/Superuser.apk
service cpfile /system/bin/busybox cp /usr/bin/su /system/bin/su service cpfile /system/bin/busybox cp /usr/bin/busybox /system/bin/busybox service cpfile /system/bin/busybox cp /usr/bin/Superuser.apk /system/app/Superuser.apk chmod 0777 /system/bin/su chmod 0777 /system/bin/busybox chmod 0777 /system/apps/Superuser.apk
service cpfile /system/bin/busybox cp /usr/bin/su /system/bin/su oneshotservice cpfile /system/bin/busybox cp /usr/bin/busybox /system/bin/busybox oneshotservice cpfile /system/bin/busybox cp /usr/bin/Superuser.apk /system/app/Superuser.apk oneshotchmod 0777 /system/bin/suchmod 0777 /system/bin/busyboxchmod 0777 /system/apps/Superuser.apk
Southoz,I have flashed the U0 from m009f as well as others and can confirm that the brick the device. I am now waiting for some assistance from the supplier as I can not find a U0 that will bring it back. Is there anyone out there with a U0 file that will work on this device?
install mtd-utilssudo modprobe mtdblocksudo modprobe nandsim first_id_byte=0x20 second_id_byte=0xac third_id_byte=0x00 fourth_id_byte=0x15 cache_file=/tmp/nandsim.binsudo modprobe ubisudo modprobe ubifssudo ubiformat /dev/mtd0sudo ubiattach /dev/ubi_ctrl -m 0sudo ubimkvol /dev/ubi0 -N system -s 184MiBsudo ubiupdatevol /dev/ubi0_0 ~/M009F/gingerbread/system/system.imgsudo mount -t ubifs ubi0:system /mnt/ubi[ 9782.682143] UBI: available PEBs: 2024[ 9782.682221] UBI: total number of reserved PEBs: 24[ 9782.682244] UBI: number of PEBs reserved for bad PEB handling: 20[ 9782.682588] UBI: max/mean erase counter: 0/0[ 9782.682615] UBI: image sequence number: 0[ 9782.687571] UBI: background thread "ubi_bgt0d" started, PID 1998[ 9927.442872] UBI error: ubi_create_volume: cannot create volume 0, error -28[ 9993.400781] UBI error: ubi_create_volume: cannot create volume 1, error -17[10284.723237] UBIFS error (pid 2050): ubifs_read_node: bad node type (0 but expected 6)[10284.723267] UBIFS error (pid 2050): ubifs_read_node: bad node at LEB 0:0sudo rmmod ubifssudo rmmod ubisudo rmmod nandsimsudo rmmod mtdblockadrian@ubuntu:~$ sudo modprobe nandsim first_id_byte=0x20 second_id_byte=0xac third_id_byte=0x00 fourth_id_byte=0x15 cache_file=/tmp/nandsim.binadrian@ubuntu:~$ dmesg | tail[10751.440781] bits in sector size: 17[10751.440793] bits in page size: 11[10751.440805] bits in OOB size: 6[10751.440821] flash size with OOB: 540672 KiB[10751.440833] page address bytes: 5[10751.450269] sector address bytes: 3[10751.450293] options: 0x8[10751.465667] Scanning device for bad blocks[10751.472843] Creating 1 MTD partitions on "NAND 512MiB 1,8V 8-bit":[10751.473381] 0x000000000000-0x000020000000 : "NAND simulator partition 0"adrian@ubuntu:~$ sudo ubiformat /dev/mtd0ubiformat: mtd0 (nand), size 536870912 bytes (512.0 MiB), 4096 eraseblocks of 131072 bytes (128.0 KiB), min. I/O size 2048 byteslibscan: scanning eraseblock 4095 -- 100 % complete ubiformat: 4096 eraseblocks are supposedly emptyubiformat: formatting eraseblock 4095 -- 100 % completeadrian@ubuntu:~$ sudo ubiattach /dev/ubi_ctrl -m 0UBI device number 0, total 4096 LEBs (528482304 bytes, 504.0 MiB), available 4052 LEBs (522805248 bytes, 498.6 MiB), LEB size 129024 bytes (126.0 KiB)[11063.688224] UBI: max. allowed volumes: 128[11063.688237] UBI: wear-leveling threshold: 4096[11063.688250] UBI: number of internal volumes: 1[11063.688266] UBI: number of user volumes: 0[11063.688281] UBI: available PEBs: 4052[11063.688295] UBI: total number of reserved PEBs: 44[11063.688309] UBI: number of PEBs reserved for bad PEB handling: 40[11063.688324] UBI: max/mean erase counter: 0/0[11063.688339] UBI: image sequence number: 0[11063.691280] UBI: background thread "ubi_bgt0d" started, PID 2108adrian@ubuntu:~$ sudo ubimkvol /dev/ubi0 -N volume_name -s 184MiBVolume ID 0, size 1496 LEBs (193019904 bytes, 184.1 MiB), LEB size 129024 bytes (126.0 KiB), dynamic, name "volume_name", alignment 1modprobe mtdmodprobe yaffs2multimodprobe mtdrammodprobe mtdcharmodprobe mtdblocksudo dd if=~/M009F/gingerbread/system/system.img of=/dev/mtdblock0sudo mount -t yaffs2 /dev/mtdblock0 /mnt/mtd[ 505.073064] yaffs: yaffs built Feb 5 2012 16:30:34 Installing.[ 508.954163] yaffs: dev is 32505856 name is "mtdblock0" rw[ 508.954190] yaffs: passed flags ""[ 508.954267] yaffs: yaffs: Attempting MTD mount of 31.0,"mtdblock0"[ 508.977010] yaffs: yaffs_read_super: is_checkpointed 0sudo modprobe mtdsudo modprobe jffs2sudo modprobe mtdramsudo modprobe mtdcharsudo modprobe mtdblocksudo dd if=~/M009F/gingerbread/system/system.img of=/dev/mtdblock0sudo mount -t jffs2 /dev/mtdblock0 /mnt/mtd[ 429.706728] Empty flash at 0x06ae29fc ends at 0x06ae2b98[ 429.707114] Empty flash at 0x06ae4bb0 ends at 0x06ae4d4c[ 429.707194] Old JFFS2 bitmask found at 0x06ae63b4[ 429.707196] You cannot use older JFFS2 filesystems with newer kernels[ 429.707448] Empty flash at 0x06ae6d64 ends at 0x06ae6f00[ 429.707769] Empty flash at 0x06ae8f18 ends at 0x06ae90b4[ 429.708058] Empty flash at 0x06aeb0cc ends at 0x06aeb268[ 429.708308] Empty flash at 0x06aec630 ends at 0x06aed268[ 429.745907] Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes[ 429.745933] empty_blocks 3297, bad_blocks 0, c->nr_blocks 4096