View Single Post
Old 03-20-2014, 01:58 PM   #149
hickathmoc
Junior Member
hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.hickathmoc knows the square root of minus one.
 
Posts: 5
Karma: 7502
Join Date: Mar 2014
Location: Greece
Device: M92 black pearl
How to install Obuntu

The FINAL HOW TO install Obuntu ;)
Spoiler:


Everything here is for the 'obuntu_install_20130817.oar' and 'OBUNTU.update-20130717.tar.gz' version of seaniko7 Obuntu.

1. If you have M92 Black Pearl, it is the polish thing with TTS IVONA, (if not, jump to step 2) you must wipe out first the 'Polish' firmware (it is absolutely safe, but after that no more IVONA !), and install the 'normal' firmware (found at http://ereader-store.de/en/content/8-downloads), the procedure is simple :

a. download the Mfgtools-Rel-11.10.19_ER_MX50_ UPDATER.rar (google for it, it is a win program) and run it . If you follow the program's instructions correctly you will have a "clean" M92 ready for "normal" firmware update.

b. update with the new firmware from your sd card. Now you are ready for Obuntu.

2. It is best for the Obuntu project to use a 16 gb class 10 sd card, but anyhow at least must be 4 gb. I'm using a 16 gb card. Place seaniko7's 'obuntu_install_20130817.oar' in your sd card and run it. Reboot M92 by pressing the joystick+power button. In the (new) menu press the 2nd option : 'Update Obuntu' and wait for a while, because actually what takes place is the partitioning of your sd card ! The M92 reboots to ONYX firmware. Close it.

3. Now everything that we'll do, needs a Linux box. Place your sd, for your convenience, in a card reader. After it is mounted, open the terminal and give:

Code:
fdisk -l
the result is something like this :

Code:
Disk /dev/sde: 15.7 GB, 15707668480 bytes
 4 heads, 16 sectors/track, 479360 cylinders
 Units = cylinders of 64 * 512 = 32768 bytes

 Device Boot	     Start       End            Blocks       	Id   	System
/dev/sde1             320       14079           440320     	83   	Linux
/dev/sde2           14080       15103           32768           83      Linux
/dev/sde3           15104       46354      	1000032     	83   	Linux
/dev/sde4           46355      120832     	2383296     	83   	Linux
'sde' is your sd card, it may be 'sdc', 'sdb' etc.
now type :

Code:
fdisk  /dev/sde
and you have :

Code:
The number of cylinders for this disk is set to 479360.
 There is nothing wrong with that, but this is larger than 1024,
 and could in certain setups cause problems with:
 1) software that runs at boot time (e.g., old versions of LILO)
 2) booting and partitioning software from other OSs    
(e.g., DOS FDISK, OS/2 FDISK) 

Command (m for help):  d
Partition number (1-4): 4
Command (m for help):  p

Disk /dev/sde: 15.7 GB, 15707668480 bytes
4 heads, 16 sectors/track, 479360 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot	     Start       End            Blocks       	Id   	System
/dev/sde1             320       14079           440320     	83   	Linux
/dev/sde2           14080       15103           32768           83      Linux
/dev/sde3           15104       46354      	1000032     	83   	Linux

Command (m for help): n
Command action
    e   extended
    p   primary partition (1-4)
p
Selected partition 4 First cylinder (1-479360, default 1): 46355
 Last cylinder or +size or +sizeM or +sizeK (46355-479360, default 479360):  Using default value 479360  
Command (m for help):  p

Disk /dev/sde: 15.7 GB, 15707668480 bytes
4 heads, 16 sectors/track, 479360 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot	     Start       End            Blocks       	Id   	System
/dev/sde1             320       14079           440320     	83   	Linux
/dev/sde2           14080       15103           32768           83      Linux
/dev/sde3           15104       46354      	1000032     	83   	Linux
/dev/sde4           46355      479360     	13856192     	83   	Linux  



Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 13: Permission denied. The kernel still uses the old table.
The new table will be used at the next reboot. Syncing disks.
Now I must explain what happened: the default partitioning of seaniko7 makes a 2gb partition, it is the sde4. But our card is 16gb ! So we must resize it to the real capacity of the card ! first we delete the sde4 and then recreate it with the full of the capacity ! With the last command 'w' we rewrite the partition table. Now reboot. Open again the terminal and shoot :

Code:
sudo umount /media/disk
then type :

Code:
e2fsck -f /dev/sde4
after a little while the result :

Code:
e2fsck 1.40-WIP (14-Nov-2006)
 Pass 1: Checking inodes, blocks, and sizes
 Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information /dev/sdc4: 11/148960 files (0.0% non-contiguous), 9365/595824 blocks
Now type:
Code:
sudo resize2fs /dev/sde4
after a little while the result :

Code:
resize2fs 1.40-WIP (14-Nov-2006)
 Resizing the filesystem on /dev/sdc4 to 3464048 (4k) blocks.
 The filesystem on /dev/sdc4 is now 3464048 blocks long.
Now our partition is resized and ready for Obuntu ! Reboot again. Now let say your OBUNTU.update-20130717.tar.gz is on ~/Desktop of your linux box, type :

Code:
sudo tar -pxzvf ~/Desktop/OBUNTU.update-20130717.tar.gz -C /media/disk
Where '/media/disk' is your sd card. You're done, wait to be copied all the Obuntu contents to your sd card ! After that put the sd toy your M92, press joystick+power on and select

Boot Obuntu

Enjoy! :)

p.s.1 for backup of your new Obuntu, go to your linux box unmount the sd card and in terminal type:
Code:
sudo dd if=/dev/sde4 bs=1024 | gzip> ~/Desktop/sd.bin.gz
for restore, type :
Code:
gzip -dc ~/Desktop/sd.bin.gz | dd of=/dev/sde4 bs=1024
p.s. 2 Of course friends, you understand that now we have a dual boot M92! Obuntu is in the sd card, while ONYX firmware 'inside'.


Last edited by Dr. Drib; 05-11-2014 at 10:32 PM.
hickathmoc is offline   Reply With Quote