View Single Post
Posts: 697 | Thanked: 137 times | Joined on Jul 2012 @ Hillerød, DK
#852
Originally Posted by juiceme View Post
When you ssh to the device in ubiboot as root, your home dir is /root/ of the ubiboot FS.
Before attempting this, you need to do the following things:

Unexport your USB partitions: (if this gives you error, then you have the partitions mounted on your PC and you have to umount them first, cannot really have a partition mounted to 2 different devices at the same time, can you? )
echo "" > /sys/devices/platform/musb_hdrc/gadget/lun0/file

Mount the drive you have your TAR file on, for example if it is on your My Docs then you need to do:
mount /dev/mmcblk0p1 /mnt/1

Then mount the target you want to extract your preinits to:
mount /dev/mmcblk0p2 /mnt/2

Then, extract the archive:
tar -xvf /mnt/1/preinits.tar -C /mnt/2/

Last thing, sync and umount partitions:
sync ; umount /mnt/1 ; umount /mnt/2
Followed this eactly (but of course changed 2 with 3!) and no problems but also no boot!:

Found out however:

Disk /dev/mmcblk0: 64.1 GB, 64130908160 bytes
4 heads, 16 sectors/track, 1957120 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 17 1632512 52239872 c Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary

/dev/mmcblk0p2 1632513 1760512 4096000 83 Linux
Partition 2 does not end on cylinder boundary

/dev/mmcblk0p3 1760513 1891584 4194304 83 Linux

/dev/mmcblk0p4 1891585 1957120 2097152 83 Linux

That p1= Mydocs
p2= Alt_OS
p3= /rootfs
p4= /home

Could it be a reason to boot not function? (Gparted it seems OK no red marks etc) But what re Ubiboot.conf etc? It must give problems here I think!
Have had a lot of problems with partitions also tried to run ext4 on p1 due to this http://talk.maemo.org/showthread.php?t=90687
But end up total flash --no-preserve and thougt problems were solved, but....(and it seems that the 4GB limit on rootfs is broken)??

NB. @ peter leinchen The battery work around don't function at my N9 -tried nearly 10 times!
__________________
OK

Last edited by Garp; 2013-12-03 at 16:03.