Looking through the update.sh and I think I'll just try to reflash the userdata portion.
# data partition
################
echo "extracting data files..."
echo "extracting data files..." >> $TMP_LOG
# get only desired zip from update.zip
unzip -o $SRC_MOUNT_POINT/$UPDATE_FILE $DATA_ZIP >> $TMP_LOG 2>&1
status $? 1 $DATA_ZIP
if [ -e $DATA_ZIP ];
then
echo "updating data files..."
echo "updating data files..." >> $TMP_LOG
mount -t ubifs ubi:$USERDATA_VOL_NAME $ANDROID_DATA_ROOT >> $TMP_LOG 2>&1
unzip -o $DATA_ZIP -d $ANDROID_ROOT >> $TMP_LOG 2>&1
status $? 0 $DATA_ZIP
### enforce android FS ownership/permissions here ###
config_android_fs $DATA_ZIP
rm $DATA_ZIP
sync
df -h $ANDROID_DATA_ROOT >> $TMP_LOG
umount $ANDROID_DATA_ROOT
sleep 1
else
echo "$DATA_ZIP not included in package"
echo "$DATA_ZIP not included in package" >> $TMP_LOG
# mount/unmount to handle any "unrecovered" condition
mount -t ubifs ubi:$USERDATA_VOL_NAME $DST_MOUNT_POINT >> $TMP_LOG 2>&1
sleep 2
umount $DST_MOUNT_POINT
fi
and
# content partition
###################
# At this time, "content" is destined for /data
# This content is not put into /data at build time so it's not permanently
# in the OTA update.zip, but selectively added via add_content.
# If and when we have content destined for /fridge, duplicate this code
echo "extracting content files..."
echo "extracting content files..." >> $TMP_LOG
# get only desired zip from update.zip
unzip -o $SRC_MOUNT_POINT/$UPDATE_FILE $CONTENT_ZIP >> $TMP_LOG 2>&1
status $? 1 $CONTENT_ZIP
if [ -e $CONTENT_ZIP ];
then
echo "updating content files..."
echo "updating content files..." >> $TMP_LOG
mount -t ubifs ubi:$CONTENT_VOL_NAME $DST_MOUNT_POINT >> $TMP_LOG 2>&1
unzip -o $CONTENT_ZIP -d $CONTENT_DST_DIR >> $TMP_LOG 2>&1
status $? 0 $CONTENT_ZIP
rm $CONTENT_ZIP
sync
df -h $DST_MOUNT_POINT >> $TMP_LOG
umount $DST_MOUNT_POINT
sleep 1
fi
Also, in the update.sh I see the following, that I would assume is the recovery update???
# from boot command, figure out where update file is...
BOOT_COMMAND=$1
for i in $BOOT_COMMAND
do
case $i in
"--update_package=CACHE:update.zip"*)
UPDATE_FILE=update.zip
UPDATE_SRC_DEV=ubi:cache
UPDATE_SRC_FS=ubifs
;;
...
That coupled with the log make me think that this is where the recovery update.zip is located.
[ 13.018711] init: do_mount: calling mount: dev ubi:cache dir /cache s ubifs flags 0)
[ 13.109203] UBIFS: recovery needed
[ 13.196234] UBIFS: recovery completed
[ 13.199910] UBIFS: mounted UBI device 0, volume 2, name "cache"
[ 13.205870] UBIFS: file system size: 362815488 bytes (354312 KiB, 346 MiB, 703 LE)
[ 13.213795] UBIFS: journal size: 18063360 bytes (17640 KiB, 17 MiB, 35 LEBs)
[ 13.221394] UBIFS: media format: w4/r0 (latest is w4/r0)
[ 13.227250] UBIFS: default compressor: lzo
[ 13.231348] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
I'll have to take a look at what is in that directory.
Last edited by tekknogenius; 11-01-2011 at 10:59 AM.
|