[XPERIA X10 Android Development] anantshri:
More Debug output for brain feed

Hi All,

some more debug output i got as an update to last time.

I am using following sequence now

chargemon -> chroot & run xtr.sh

no ramdisk in between yet

ohk chargemon relevant code section

if [ -e /data/local/tmp/ubuntuboot ]
then
rm -rf /data/local/tmp/ubuntuboot
mount -o remount,rw rootfs /
cd /
rm -r /sdcard
rm init*
rm logo.rle
rm default.prop
echo "********** Start of system *************" > /data/local/status.txt
mount >> /data/local//status.txt
mount -o remount,rw -t yaffs2 `mount | busybox grep /system | busybox awk '{print $1}'` /system
mount -o remount,rw -t yaffs2 `mount | busybox grep '/data yaffs2' | busybox awk '{print $1}'` /data
mkdir /data/sdcard
echo "********* ReMount RW of system and data ***************" >> /data/local/status.txt
mount >> /data/local/status.txt
sleep 5
echo "**********Listing all Devices************" >> /data/local/status.txt
ls -l /dev/block/ >> /data/local/status.txt
echo "List of MMC CARD " >> /data/local/status.txt
ls -l /dev/block/mmcblk0p1 >> /data/local/status.txt
echo "**********DIR LISTING ENDS HERE**********" >> /data/local/status.txt
rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
echo "********** Mounting SDCARD **************" >> /data/local/status.txt
mount -t vfat -o rw,noatime,nodiratime /dev/block/mmcblk0p1 /data/sdcard
sleep 5
echo "*************** SDCARD mounting ***************" >> /data/local/status.txt
mount >> /data/local/status.txt
echo "1/1 : SD CARD Mounted" >> /data/local/status.txt
mknod /dev/block/loop10 b 7 10
echo "2/2 : create loop file" >> /data/local/status.txt
ls -l /dev/block/loop* >> /data/local/status.txt
echo -n "settingup loop : " >> /data/local/status.txt
losetup /dev/block/loop10 /data/sdcard/ubuntu/ubuntu.img
e2fsck -y /dev/block/loop10
echo $? >> /data/sdcard/status.txt
mkdir /data/local/tmp
mount -t ext2 /dev/block/loop10 /data/local/tmp
sleep 5
echo "************** Setting up the image ************" >> /data/local/status.txt
mount >> /data/local/status.txt
mount -t devpts devpts /data/local/tmp/dev/pts
mount -t proc proc /data/local/tmp/proc
mount -t sysfs sysfs /data/local/tmp/sys
echo "Mount Points" >> /data/local/status.txt
mount >> /data/local/status.txt
echo "END Mount Points" >> /data/local/status.txt
ls -l /data/local/tmp >> /data/local/status.txt
echo "Reached this level" > /data/local/tmp/root/status.txt
echo "nameserver 8.8.8.8" > /data/local/tmp/etc/resolv.conf
echo "nameserver 8.8.4.4" >> /data/local/tmp/etc/resolv.conf
echo "127.0.0.1 localhost" > /data/local/tmp/etc/hosts
echo "3/3 : Chrooting now " >> /data/local/status.txt
date >> /data/local/status.txt
echo "********** END OF LOG ***********" >> /data/local/status.txt
chroot /data/local/tmp /root/xtr.sh
echo "CHROOT EXITED " >> /data/local/status.txt
date >> /data/local/status.txt
exit
fi

XTR.sh which is used as a front for init.

#!/bin/bash
echo "Welcome to CHROOT" >> /root/status.txt
mount >> /root/status.txt
echo "Do SomeDebbug Information" >> /root/status.txt
echo "******* LCHW **********" >> /root/status.txt
lshw >> /root/status.txt 2>> /root/status.txt
echo "*********** DDC PROBE **********" >> /root/status.txt
ddcprobe >> /root/status.txt 2>> /root/status.txt
echo "*********** DRIINFO ************" >> /root/status.txt
driinfo >> /root/status.txt 2>> /root/status.txt
echo "DEBUG ENDS HERE " >> /root/status.txt
echo "Starting Services" >> /root/status.txt
echo "DHALD STARTING" >> /root/status.txt
/etc/init.d/dhald start >> /root/status.txt 2>> /root/status.txt
echo "DBUS STARTING" >> /root/status.txt
/etc/init.d/dbus start >> /root/status.txt 2>> /root/status.txt
echo "GDM STARTING " >> /root/status.txt
/etc/init.d/gdm restart >> /root/status.txt 2>> /root/status.txt
echo "STARTX NOW" >> /root/status.txt
startx >> /root/status.txt 2>> /root/status.txt
echo "xsession now" >> /root/status.txt
/etc/X11/Xsession >> /root/status.txt 2>> /root/status.txt
echo "CHROOT ENDING NOW" >> /root/status.txt
date >> /root/status.txt
echo "====================================="

Output files are attached below.

status_linux is status.txt from inside chroot.

status_android is status.txt from android.

Xorg log file is for xorg error.

edit :adding xorg.conf i used.