Hi,

I am trying to boot my android tablet from SD Card. I used the original 
kernel and system image and
put then on SD card. I only changed the init files to reflect SD boot.

The kernel boots fine but android GUI appears to be stuck at boot 
animation. I find some errors on the
console log and I wondering what could be the issue.

Here are the relevant logs:
[    3.180000] init: command 'loglevel' r=0
[    3.190000] init: command 'export' r=0
[    3.190000] init: command 'export' r=0
[    3.200000] init: command 'export' r=0
[    3.200000] init: command 'export' r=0
[    3.200000] init: command 'export' r=0
[    3.210000] init: command 'export' r=0
[    3.210000] init: command 'export' r=0
[    3.210000] init: command 'export' r=0
[    3.220000] init: command 'export' r=0
[    3.220000] init: command 'export' r=0
[    3.230000] init: command 'symlink' r=0
[    3.230000] init: command 'symlink' r=0
[    3.230000] init: command 'symlink' r=0
[    3.240000] init: command 'mkdir' r=0
[    3.240000] init: command 'mount' r=-1
[    3.250000] init: command 'mkdir' r=0
[    3.250000] init: command 'mkdir' r=0
[    3.250000] init: command 'mkdir' r=0
[    3.260000] init: command 'mkdir' r=0
[    3.260000] init: command 'mkdir' r=0
[    3.260000] init: command 'mkdir' r=0
[    3.270000] init: command 'mkdir' r=0
[    3.270000] init: command 'mkdir' r=0
[    3.270000] init: command 'mkdir' r=0
[    3.280000] init: command 'mount' r=0
[    3.280000] init: command 'mkdir' r=0
[    3.290000] init: command 'mount' r=0
[    3.290000] init: command 'write' r=0
[    3.290000] init: command 'write' r=-2
[    3.300000] init: command 'write' r=0
[    3.300000] init: command 'write' r=0
[    3.300000] init: command 'write' r=0
[    3.310000] init: command 'write' r=-2
[    3.310000] init: command 'write' r=0
[    3.320000] init: command 'mkdir' r=0
[    3.320000] init: command 'mount' r=-1
[    3.320000] init: command 'chown' r=0
[    3.330000] init: command 'chown' r=-2
[    3.330000] init: command 'chmod' r=-2
[    3.340000] init: command 'write' r=0
[    3.340000] init: command 'mkdir' r=0
[    3.340000] init: command 'chown' r=-2
[    3.350000] init: command 'chmod' r=-2
[    3.350000] init: command 'write' r=0
[    3.350000] init: command 'mkdir' r=0
[    3.360000] init: command 'chown' r=-2
[    3.360000] init: command 'chmod' r=-2
[    3.370000] init: command 'write' r=0
[    3.370000] init: command 'chmod' r=0
[    3.370000] init: processing action 0x31140 (init)
[    3.380000] init: command 'exec' r=0
[    3.380000] init: processing action 0x2af48 (fs)
[    3.440000] [mmc]: mmc 0 power on !!
[    3.480000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 52,  RTO !!
[    3.480000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 52,  RTO !!
[    3.490000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
[    3.500000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
[    3.510000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
[    3.520000] [mmc]: sdxc_request_done(L1114): smc 0 err, cmd 5,  RTO !!
[    3.560000] mmc0: new high speed SDHC card at address 
e624                            
[    3.570000] mmcblk0: mmc0:e624 SU08G 7.40 GiB   
<-----------------------  (SD card seems to be initialized here..)
[    3.570000]  mmcblk0: p1 p2 p3 p4 < p5 p6 >
[    3.600000] EXT4-fs (mmcblk0p2): barriers disabled
[    3.600000] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data 
mode. Opts: barrier=0

As you can see some mounts and writes failed. Mostly suspect this to be the 
issue to SD initializing after
the init has started.

I have put this on top of init.rc:
on fs
    mount ext4 /dev/block/mmcblk0p2 /system ro wait noatime nodev barrier=0

    wait /dev/block/mmcblk0p5
    mount ext4 /dev/block/mmcblk0p5 /data wait noatime nosuid nodev 
barrier=0
    setupfs /dev/block/mmcblk0p5
    umount /data
    exec /system/bin/logwrapper /system/bin/e2fsck -y 
/dev/block/mmcblk0p5    
    exec /system/bin/busybox mount -t ext4 -o 
noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc 
/dev/block/mmcblk0p5 /data  

    mount ext4 /dev/block/mmcblk0p3 /cache wait noatime nosuid nodev 
barrier=0
    setupfs /dev/block/mmcblk0p3
    umount /cache
       exec /system/bin/logwrapper /system/bin/e2fsck -y 
/dev/block/mmcblk0p3
    exec /system/bin/busybox mount -t ext4 -o 
noatime,nosuid,nodev,barrier=0,journal_checksum,noauto_da_alloc 
/dev/block/mmcblk0p3 /cache 

But still the init proceeded. Is there any way to delay the init?

Any ideas on what could be the issue and how to solve it?

Thanks
-N

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to