Reply
Thread Tools
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#851
@garp
For battery, try the following:
shut down device
plug in ac/wall charger
check if you get the green maintenance console or the LPS charging symbol
in first case push power off button for approx. 8 seconds (device will power cycle and reboot)
check again, you may have to repeat a few times but I always get it working after a few tries
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following 2 Users Say Thank You to peterleinchen For This Useful 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.
 
Posts: 697 | Thanked: 137 times | Joined on Jul 2012 @ Hillerød, DK
#853
Ubiboot.config seems to have a problem due to my partition mess. What will happen if I change so:
G_EXPORTED_PARTITONS="/dev/mmcblk0" # This exports all partitons of the device
#G_EXPORTED_PARTITONS="/dev/mmcblk0p1" # this exports just the Mydocs partiton
#G_EXPORTED_PARTITONS="/dev/mmcblk0p2" # this exports just the root (nemo) partition
#G_EXPORTED_PARTITONS="/dev/mmcblk0p3" # this exports just the home (root) partiton
#G_EXPORTED_PARTITONS="/dev/mmcblk0p4" # this exports just the nemo (home) partition
#G_EXPORTED_PARTITONS="/dev/mmcblk0p5" # some people have more than 4 partitions
#G_EXPORTED_PARTITONS="/dev/mmcblk0p6" # some people have more than 5 partitions
#G_EXPORTED_PARTITONS="/dev/mmcblk0p7" # this is the last supported partition I guess
#G_EXPORTED_PARTITONS="" # this turns off partition exporting

And then change partitions number due to that in the section stating with:
# The first OS is usually Nitdroid.
# This section lists the Nitdroid specific switches and kernels
G_OS1_NUM=3
G_OS1_AUTOBOOT=0
G_OS1_PARTITION=2 (to 3 for Harmattan and Firefox too.)
And the Nemo now 4 to 2

But what about : "It's important that the versions of the kernel, config and cpio are compatible or else you will run into no end of trouble."
__________________
OK

Last edited by Garp; 2013-12-03 at 16:07.
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#854
Yes, that is really a mess!
Or nicely stacked, as juiceme would say.

You somehow managed to shift roots and home from p2/3 to p3/4.
Your approach above editing ubiboot.conf may work (for sure this is the reason why kernels are not found), as it searches on harmattan rootfs (i.e. /dev/mmcblk0p2) boot folder. But due to your partition layout they reside on /dev/mmcblk0p4.

I suggest you do a reflash --no-preserve and start all over.
But before you should try editing ubiboot.conf as stated above.
And you will end up with a system having the home partition not mounted (would need editing at least /etc/fstab). Juiceme may tell more here.

--
did you ever try to flash standard open mode kernel and see how the N9 behaves?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-12-03 at 17:12.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 111 | Thanked: 62 times | Joined on Apr 2012 @ Hong Kong
#855
I think this is time for asking how to partitioning the emmc other than nemo′s Alt_OS
Sorry I am lazy
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#856
Originally Posted by michaelmhk View Post
I think this is time for asking how to partitioning the emmc other than nemo′s Alt_OS
Sorry I am lazy
Me too.
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Posts: 111 | Thanked: 62 times | Joined on Apr 2012 @ Hong Kong
#857
Portal
10 char
 
Posts: 697 | Thanked: 137 times | Joined on Jul 2012 @ Hillerød, DK
#858
Originally Posted by peterleinchen View Post
Yes, that is really a mess!
Or nicely stacked, as juiceme would say.

You somehow managed to shift roots and home from p2/3 to p3/4.
Your approach above editing ubiboot.conf may work (for sure this is the reason why kernels are not found), as it searches on harmattan rootfs (i.e. /dev/mmcblk0p2) boot folder. But due to your partition layout they reside on /dev/mmcblk0p4.

I suggest you do a reflash --no-preserve and start all over.
But before you should try editing ubiboot.conf as stated above.
And you will end up with a system having the home partition not mounted (would need editing at least /etc/fstab). Juiceme may tell more here.

--
did you ever try to flash standard open mode kernel and see how the N9 behaves?
Thanks, I have tried everything nearly but need maybe to try once more, and will begin the easy way by change Ubiboot.conf and then lets see.
editing /etc/fstab can look here it seems: http://talk.maemo.org/showthread.php?t=91914
__________________
OK
 
Posts: 958 | Thanked: 3,426 times | Joined on Apr 2012
#859
Originally Posted by peterleinchen View Post
@garp
juice explained (again) correct and better than me

@taixzo
what about output of
ls -l /boot (when in harmattan, so /dev/mmcblk0p2/boot()?
Could it be you copied the kernel only to MyDocs/boot and not to /boot? (Of course the listed kernels in MyDocs/boot are only the ubi kernel which needs to be flashed to device)
output of
ls -l /boot
and ubiboot.conf

--
reread and possibly you have old configuration on mtd4/5?
if so, you need to decide to use either of mtd4/5 or MyDocs. Order is mtd4, mtd5, MyDocs
your log files will reside on /var/log/ubiboot*
I can't boot into harmattan, but when I try from over usb, here's what I see:
Code:
taixzo@taixzo-laptop: $ ls -l /media/rootfs/boot/
total 17228
-rw-r--r-- 1 root root  2777924 Aug  6 09:42 zImage_2.6.32.54-openmode_l2fix
-rw-r--r-- 1 root root 11952712 Dec  3 00:40 zImage_2.6.32.54-ubiboot-02_301013
-rw-r--r-- 1 root root  2901960 Aug  6 09:42 zImage_e-yes_nitdroid+l2fix
ubiboot.conf: http://pastebin.com/BdHvGLKU

Originally Posted by juiceme View Post
The kernels (zImage*) you should put on the /boot/ folder on your Harmattan root.
The log files, ubiboot.log & ubiboot.dmesg will be created after you run ubiboot at least once, in your p1 /boot/ directory which is /home/user/MyDocs/boot in Harmattan.
If you do not have the log files, then check your ubiboot.conf, as there are keys G_LOGFILE_PARTITION="1" and G_LOGFILE_DIRECTORY="/boot" which determine where the log files go.

Ah, one thing to remember! If you are using an older ubiboot version, then the log files go to /var/log/ of your Harmattan installation, and the location is not configurable!
I found the logs in /var/log/ although I'm not sure why they're there, as I just installed the latest version of Ubiboot before everything broke. Here is /var/log/ubiboot.log starting from yesterday: http://pastebin.com/X1YzUD32
And here is /var/log/ubiboot.dmesg for the last three boots: http://pastebin.com/USQhMqUL
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#860
@taixzo
Just looking at log file I do see you do not have latest version of ubiboot. Log says 0.3.3 but current version is 0.3.5.
So best guess is you haxe mixed setup.
Try again by getting latest ubiboot kernel and latest cpio. Put cpio to MyDocs/boot and flash the kernel.
-- oops, and ubiboot.conf of course needs to be latest version (please use newest version and adapt to your setup)
You may also wait for juiceme as he is much much better reading his log files....
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature

Last edited by peterleinchen; 2013-12-03 at 20:38.
 

The Following User Says Thank You to peterleinchen For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 20:33.