if you use "root=/dev/mtdblock2 rootfstype=cramfs ...". maybe you can try the fowllowing steps: 1. compile busybox with arm cross compiler 2.down the exec busybox to /bin directory in the device 3.ln -sf /bin/busybox /init 4.mknod : console (5,1) null (3,1) ... 5. sync 6. boot the device
On 4月2日, 下午2时07分, aow <chen.xi...@zte.com.cn> wrote: > "Warning: unable to open an initial console. "Plz check your console > configure. > android init is complex,try to use busybox init first,and then > manually run android init. > > On 4月1日, 上午1时11分, huymq85 <huym...@gmail.com> wrote: > > > > > thanks for reading. > > I changed zImage to > > > root=/dev/mtdblock2 rootfstype=cramfs init=/init > > console=ttySAC0,115200 > > > but it stop at: > > > VFS: Mounted root (cramfs filesystem) readonly. > > > Freeing init memory: 508K > > > Warning: unable to open an initial console. > > > The content of /etc/init.rc: > > > ## Global environment setup > > ## > > env { > > PATH /sbin:/system/sbin:/system/bin > > LD_LIBRARY_PATH /system/lib > > ANDROID_BOOTLOGO 1 > > ANDROID_ROOT /system > > ANDROID_ASSETS /system/app > > ANDROID_DATA /data > > EXTERNAL_STORAGE /sdcard > > DRM_CONTENT /data/drm/content > > BOOTCLASSPATH /system/framework/core.jar:/system/framework/ext.jar:/ > > system/framework/framework.jar:/system/framework/framework-tests.jar > > > } > > > ## Setup and initialization we need to do on boot > > ## > > onboot { > > # map soft1 to ctrll, soft2 to crtlr and ctrll-ctrlr-power to > > reboot > > # unmap left alt to avoid console switch > > # no modifiers KEY_SOFT1 K_CTRLL KEY_SOFT2 K_CTRLR KEY_LEFTALT > > setkey 0x0 0xe5 0x706 > > setkey 0x0 0xe6 0x707 > > setkey 0x0 0x38 0x0 > > # KG_CTRLL > > setkey 0x40 0xe5 0x706 > > setkey 0x40 0xe6 0x707 > > # KG_CTRLR > > setkey 0x80 0xe5 0x706 > > setkey 0x80 0xe6 0x707 > > # KG_CTRLL and KG_CTRLR > > # KEY_POWER > > # K_BOOT > > setkey 0xc0 0xe5 0x706 > > setkey 0xc0 0xe6 0x707 > > setkey 0xc0 0x74 0x20c > > > # dream reset SEND+MENU+END > > setkey 0x0 0xe7 0x706 > > setkey 0x0 0x8b 0x707 > > > setkey 0x40 0xe7 0x706 > > setkey 0x40 0x8b 0x707 > > > setkey 0x80 0xe7 0x706 > > setkey 0x80 0x8b 0x707 > > > setkey 0xc0 0xe7 0x706 > > setkey 0xc0 0x8b 0x707 > > setkey 0xc0 0x6b 0x20c > > > # bring up loopback > > ifup lo > > > # setup default hostname, the kernel uses "(none)" by default, > > # which is not a valid host name > > hostname localhost > > domainname localdomain > > > insmod /system/lib/modules/htcpm.ko > > insmod /system/lib/modules/eacdev.ko > > > } > > > ## Processes which are run once (and only once) at system boot. > > ## Init will wait until each of these completes before starting > > ## the next one. > > ## > > startup { > > usbd-config { > > exec /system/bin/usbd > > args { > > 0 -c > > } > > } > > # qemu-init { > > # exec /etc/qemu-init.sh > > # } > > } > > > ## Daemon processes to be run by init. > > ## These services can be programatically started and stopped at run- > > time. > > ## > > ## By default these processes are run automatically (after the > > 'startup' > > ## processes). This can be turned off with 'autostart 0' > > ## > > ## By default init will re-run the process upon exit. This can be > > turned off > > ## with 'oneshot 1'. > > service { > > console { > > exec /system/bin/sh > > console yes > > } > > adbd { > > exec /sbin/adbd > > } > > usbd { > > # run usbd to implement mass storage > > exec /system/bin/usbd > > args { > > 0 -r > > } > > } > > debuggerd { > > exec /system/bin/debuggerd > > } > > ril-daemon { > > # Starts rild with appropriate ril.so > > exec /etc/init.ril > > } > > zygote { > > exec /system/bin/app_process > > args { > > 0 -Xzygote > > 1 /system/bin > > 2 --zygote > > } > > autostart 1 > > } > > runtime { > > exec /system/bin/runtime > > autostart 1 > > } > > pppd_gprs { > > #exec /system/bin/pppd > > exec /etc/init.gprs-pppd > > args { > > 0 /dev/omap_csmi_tty1 > > 1 debug > > 2 dump > > 3 defaultroute > > 4 local > > 5 usepeerdns > > 6 nodetach > > 7 noipdefault > > 8 unit > > 9 0 > > 10 linkname > > 11 gprs > > 12 novj > > } > > autostart 0 > > oneshot 1 > > } > > dbus { > > exec /system/bin/dbus-daemon > > args.0 --system > > args.1 --nofork > > autostart 1 > > } > > hciattach { > > exec /system/bin/hciattach > > args { > > 0 -n > > 1 -s > > 2 115200 > > 3 /dev/ttyMSM0 > > 4 texas > > 5 115200 > > 6 flow > > } > > autostart 1 > > oneshot 1 # don't restart - we want to know if hciattach > > dies > > # eventually remove for dream > > } > > hcid { > > exec /system/bin/hcid > > args.0 -s > > args.1 -n > > args.2 -f > > args.3 /etc/hcid.conf > > autostart 0 > > } > > dund { > > exec /system/bin/dund > > args { > > 0 --listen > > 1 --channel=5 > > 2 --nodetach > > 3 --pppd=/system/bin/pppd > > 4 192.168.0.100:192.168.0.101 > > 5 nodefaultroute > > 6 unit > > 7 1 > > 8 linkname > > 9 bluetooth > > } > > autostart 0 > > } > > dund_dialup { > > exec /system/bin/dund > > args { > > 0 --listen > > 1 --channel=6 > > 2 --nodetach > > 3 --dialup > > 4 --pppd=/system/bin/pppd > > 5 192.168.0.100:192.168.0.101 > > 6 nodefaultroute > > 7 unit > > 8 1 > > 9 linkname > > 10 bluetooth > > } > > autostart 0 > > } > > hfag { > > exec /system/bin/sdptool > > args { > > 0 add > > 1 --channel=10 > > 2 HFAG > > } > > autostart 0 > > oneshot 1 > > } > > hsag { > > exec /system/bin/sdptool > > args { > > 0 add > > 1 --channel=11 > > 2 HSAG > > } > > autostart 0 > > oneshot 1 > > } > > rfcomm0_prep_1 { > > exec /system/bin/sdptool > > args.0 add > > args.1 --handle=0x10010 > > args.2 --channel=3 > > args.3 SP > > autostart 0 > > oneshot 1 > > } > > rfcomm0_prep_2 { > > exec /system/bin/sdptool > > args.0 setattr > > args.1 0x10010 > > args.2 0x100 > > args.3 "Serial Port 0" > > autostart 0 > > oneshot 1 > > } > > rfcomm0 { > > exec /system/bin/rfcomm > > args.0 listen > > args.1 0 > > args.2 3 > > args.3 /system/bin/sh > > autostart 0 > > } > > brick { > > exec /system/bin/wipe > > args { > > 0 nuke > > } > > autostart 0 > > } > > > } > > > please tell why? > > > thanks you very much!- 隐藏被引用文字 - > > - 显示引用的文字 - --~--~---------~--~----~------------~-------~--~----~ unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -~----------~----~----~----~------~----~------~--~---