| 1   2   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   Install Tools advanced edition :) (tarball only no deb will be coming) (https://talk.maemo.org/showthread.php?t=20534)

penguinbait 2008-05-29 02:38

Install Tools advanced edition :) (tarball only no deb will be coming)
 
NOT FOR USE ON 43-7 or above - NO LONGER BEING UPDATED

READ ALL -- USE WITH CAUTION -- For advanced users who can fix thier own system :)

This was due to the many many request for an easy to partition scipt, and ability to use ext3 and the ability to use more than one bootable partition.

The deb still works and is quick and dirty, but this works great if you want to specify some values.
http://www.internettablettalk.com/fo...ad.php?t=19639


WHATS NEW!
Specify FAT size
Specify SWAP size
Specify ext2 or ext3
Specify 1 or 2 cloned partition (mix and match ext2/3)
If you choose multiple ext2 or ext3 (or both) partitions the remaining space not used for SWAP and FAT will be split evenly across the two partitions.
Specify TIMEOUT value for bootmenu

WHATS OLD!
This will destroy ALL DATA on your SD CARD
This will add ALL = ALL to ALL cloned partitions (ie gives you root by typing "sudo su -" also runs any command as root by typing sudo before it)
All cloned partitions will mount swap partition automatically





Its really not simpler than this :) No matter how some of those threads are named ;)

If you are not comfortable at the command line, then perhaps this tool is not right for you

Download tarball
SCRIPT UPDATED 11:30EST 5/29/08
http://penguinbait.com/install-tools-ad.tgz
Instructions and tarball updated - sorry for the inconvenience


Place in /root

open xterm

cd /root
tar zxvf install-tools-ad.tgz

This will then make

/root/install-tools (it has to be in this location to work)

cd /root/install-tools




To clone your system CREATE INTERNAL.txt or EXTERNAL.txt depending on which card you want to work with.

so you need a file existing here

ONLY LET ONE FILE EXIST AT A TIME, THIS WORKS GREAT BUT NEEDS MORE CHECKS AND BALANCES.

/root/install-tools/EXTERNAL.txt
OR
/root/install-tools/INTERNAL.txt

(see /root/install-tools/INTERNAL.txt-SAMPLE EXTERNAL.txt-SAMPLE)

Create a file called INTERNAL.txt or EXTERNAL.txt which contains the following: (between the lines not including them)
--------------
FAT 148 (SIZE IN MB)
SWAP 356 (SIZE IN MB)
1 ext2 (PARTITION is EXT2)
2 ext3 (PARTITION is EXT3)
TIMEOUT 11 (# OF SECONDS TO WAIT)
-------------


VALID CONFIGURATION FILES
-----------
FAT 148
SWAP 356
1 ext2
2 ext3
TIMEOUT 11

-----------
FAT 5
SWAP 356
1 ext3
TIMEOUT 5

-----------
FAT 128
SWAP 5
1 ext2
2 ext3
TIMEOUT 11
-----------


NOT VALID CONFIGURATION FILES

MUST HAVE FAT
-----------
SWAP 356
1 ext2
2 ext3
TIMEOUT 11

MUST HAVE SWAP
-----------
FAT 50
1 ext3
2 ext2
TIMEOUT 11


MUST HAVE TIMEOUT
-----------
FAT 128
SWAP 5
1 ext3



Now that you have created EXTERNAL.txt or INTERNAL.txt its time to do the cloning


cd /root/install-tools
(MAKE SURE SWAP (VIRTUAL MEMORY) FILE IS OFF IN CONTROL PANEL)
./clone.sh (Same script now for both 800 and 810)


BOOTMENU INFO (AND SPECIAL THANKS TO FANOUSH)
Go here to find official bootmenu packages
http://fanoush.wz.cz/maemo/

This will scan your partitions on all available SD cards and add them to bootmenu for you. So if you install this on internal and then you install it on external, ALL the entries would be available for booting.

There may be additional versions with more checks and balances and some code cleanup. I was originally going to try to do many more partitions and I may again resume it later, but for now it is 2MAX bootable per card. I should probably clean it up now but I only have so much time, so functional is downloadable :)


AS Always make sure everything is backed up, you never know what might happen. Please let me know how it goes.


Supported Versions, (Not tested on 770)
Nokia 770 - IT2006 versions 1.2006.26-8, 2.2006.39-14, 3.2006.49-2, IT2007 hacker edition 2.2006.48-7, 4.2007.36-2
N800 - IT2007 versions 2.2006.51-6, 3.2007.10-7, 4.2007.26-8, 4.2007.38-2

N800,N810 - IT2008 versions 1.2007.42-18, 1.2007.42-19, 2.2007.50-2, 4.2008.23-14 (Diablo), 4.2008.30-2 (first Diablo update), 4.2008.36-5

BoxOfSnoo 2008-05-29 15:52

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Great timing - on the day I decided to partition/clone to my internal card!

Edit: now that your site is up again (thanks!) Can you give us a filesize so we make sure we have a good download?

gemniii42 2008-05-29 18:32

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Any potential suspected conflicts with other previously installed software?

BoxOfSnoo 2008-05-29 18:33

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Everything worked with 800-clone.sh except swap. I get an error warning that given size (x) exceeds max allowable size (0). I've tried 356 and 256 for x.

Any thoughts?

penguinbait 2008-05-29 20:24

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by BoxOfSnoo (Post 186965)
Everything worked with 800-clone.sh except swap. I get an error warning that given size (x) exceeds max allowable size (0). I've tried 356 and 256 for x.

Any thoughts?

Somethings not working it sounds like, can you post full log.

you can debug by running

sh -x 800-clone.sh 2> err.log

Also please POST the INTERNAL.txt or EXTERNAL.txt that you used?

penguinbait 2008-05-29 20:26

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by BoxOfSnoo (Post 186912)
Great timing - on the day I decided to partition/clone to my internal card!

Edit: now that your site is up again (thanks!) Can you give us a filesize so we make sure we have a good download?

http://penuinbait.com/md5sum.gz

install-tools-ad.tgz
66bcc292b7401f3bb252fdff1100fd30

If you want to check it

penguinbait 2008-05-29 20:27

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by gemniii42 (Post 186964)
Any potential suspected conflicts with other previously installed software?

Nope,but you do need 20MB freespace in flash to complete clone

BoxOfSnoo 2008-05-29 20:57

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
1 Attachment(s)
Here's the INTERNAL.txt mostly copied from the sample one.

---
FAT 256
SWAP 256
LINUX 1
1 ext2
TIMEOUT 15
---

Attached is the error log, which is doing something different now. I removed partitions from the card, made it one big FAT partition instead. It doesn't do anything to partition it either... and I should mention I am running as root...

The initfs seems to have installed OK. I get the boot menu. Actually the first time it worked but never really repartitioned either - my stuff was all still there. It must have overwritten something in my existing ext2 partition, for some reason. No idea why it actually booted successfully, unless it didn't and failed back to the flash - but it seemed to work.

I'm in rescue mode right now. I'll be back once I'm running again.

penguinbait 2008-05-29 21:07

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by BoxOfSnoo (Post 187028)
Here's the INTERNAL.txt mostly copied from the sample one.

---
FAT 256
SWAP 256
LINUX 1
1 ext2
TIMEOUT 15
---

Attached is the error log, which is doing something different now. I removed partitions from the card, made it one big FAT partition instead. It doesn't do anything to partition it either... and I should mention I am running as root...

The initfs seems to have installed OK. I get the boot menu. Actually the first time it worked but never really repartitioned either - my stuff was all still there. It must have overwritten something in my existing ext2 partition, for some reason. No idea why it actually booted successfully, unless it didn't and failed back to the flash - but it seemed to work.

I'm in rescue mode right now. I'll be back once I'm running again.

You should run this script 1 time, if it fails, REBOOT, run it again.

As the ERROR shows:

SD CARD NOT ABLE TO MOUNT AFTER PARTITIONING
TRY EJECTING SD CARD AND RE-RUN THE INSTALL SCRIPT
IF YOU EJECTED IT AND IT FAILED AGAIN REBOOT AND RE-RUN THE SCRIPT

Dont do anything to the partitions between the reboot and rerun of the script.

Please also send me the screen output for the run.

sh -x 800-clone.sh > run.log 2> err.log


Thanks,

gemniii42 2008-05-29 22:59

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Well I tried it, I tried it about 5 times. Managed to wipe out both external and internal SD on my 810.
Kept getting errors that memory was wrong size.
If I try it again, I'll save the errors.
Went and tried the DEB, that errored out, I reran it and it seems successful. So now I have what I consider 1 fair clone
THANKS!!
Oh, by the way, when you use some of those colors in your fonts here they are virtually unreadable on my screen.

penguinbait 2008-05-29 23:20

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
After looking at the error log from Boxofsnoo, I see there is some error that needs to be fixed. I have pulled the tarball until I find the issue

These are the two commands used to pull your storage information. For the internal and external slots. It appears that this is not working for BoxOfSnoo

lshal -l --show /org/freedesktop/Hal/devices/platform_mmci_omap_1_mmc_host_0_mmc_card_rca4660_s torage

lshal -l --show /org/freedesktop/Hal/devices/platform_mmci_omap_1_mmc_host_mmc_card_rca1_storag e


Can you tell me what OS version you are running? This is only tested on 51-3

Can you configrm you are not running 51-3

Also Gemini?? 51-3 (guesssing no if you ran it 5 times)

The deb version does not use this command

BoxOfSnoo 2008-05-30 01:51

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
I am running the latest 51-3 yes.

I just reflashed and restored, wish I didn't have to but I'm not too broken up over it. I still applaud your efforts and will watch for an update!

In the meantime I'm going to do a better backup. I'll start browsing the .deb thread to see if I can customize my partitioning a bit better.

One thing that bothered me was the fact that the OS leapt at the FAT partition and mounted it the second it came into existence. I wonder if that interfered with the partitioning.

gemniii42 2008-05-30 02:00

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
gemniii - running 42-18.
I've been waiting to upgrade until I could get a good clone. (or Diablo)
I finally gave up on getting a good backup pushed from the tablet to anything, so I pulled it from the tablet to my Linux box w/ rsync. So I've got a good back up when I need to restore.
I was a little surprised it wiped the internal drive also. I only created the EXTERNAL.txt file.

BoxOfSnoo 2008-05-30 02:20

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
OK I didn't need to read too far to realize that the .deb was sizing things the way I wanted anyway! :o I tried it and...

It works! Wow, this is very nice. Thanks again for driving yourself crazy (yes I read the script).

penguinbait 2008-05-30 03:27

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by BoxOfSnoo (Post 187115)
OK I didn't need to read too far to realize that the .deb was sizing things the way I wanted anyway! :o I tried it and...

It works! Wow, this is very nice. Thanks again for driving yourself crazy (yes I read the script).

Sorry its a sloppy mess, but do you see why I am crazy .. shhhh ;)

penguinbait 2008-05-30 03:28

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
I updated the tarball and instructions, now the same script for either system, it was an easy fix I should have see in the first place.

Its working good now, no matter the firmware version

Thanks for the err log BoxOfSnoo it was VERY helpfull

gemniii42 2008-05-30 23:17

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Since I managed to get a working clone on my 4GB card using the deb I am now looking at other options. And I expect there are others who wish to do similar.

I want to install screen rotate.
I want to flash to the latest kernel.
I want to clone to another 4GB card, but this time partition with 2GB FAT, 2GB Linux/os.

What would you recommend be the order I do these in?

Remember I'm trying to take this very carefully because I am still not getting a reliable USB connection.


tia

penguinbait 2008-05-31 14:34

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by gemniii42 (Post 187351)
Since I managed to get a working clone on my 4GB card using the deb I am now looking at other options. And I expect there are others who wish to do similar.

I want to install screen rotate.
I want to flash to the latest kernel.
I want to clone to another 4GB card, but this time partition with 2GB FAT, 2GB Linux/os.

What would you recommend be the order I do these in?

Remember I'm trying to take this very carefully because I am still not getting a reliable USB connection.


tia

The partition can be done anytime

folow the instructions in the rotation thread, you'll be fine

gemniii42 2008-06-01 13:11

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Well, after many tries it seemed to work.
I found that if I turned off wireless, removed the card after it reboots, boot again, and keep it off the mains I was able to set it up.
I've now got a 2Gb Linux partition and a 2Gb FAT partition.

Looking forward to getting a 16Gb SDHC.

penguinbait 2008-06-12 00:43

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Any other users? complaints, whining??? feature requests

penguinbait 2008-06-25 04:56

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Updated with Diablo support

off to sleep now, night ;)

Adonai 2008-06-25 09:31

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Sweet jesus man! You must have a +15 Computer of Programming Domination to've finished that so quickly.

L0cutus 2008-06-25 10:00

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
unable to download your tar.gz, not found....

aph 2008-06-25 10:59

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
penguinbait changed the name of the file without updating the link i suppose ?
try this link: http://penguinbait.com/install-tools.tgz

EDIT: that's not it :( clone.sh is missing

penguinbait 2008-06-25 11:39

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Sorry, it was a mistype oln my part when renaming the file last light

the link in the first post is working now

If only I didnt need sleep :(

L0cutus 2008-06-25 11:40

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
GREAT, thanks ! i'm going to cloning diablo...

L0cutus 2008-06-25 14:48

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
just to make you know that all went right !
after i've run the clone.sh, it exit with some error lines (after it have create the fat partition), i've reboot the device and re-run the clone.sh with final reboot and success, my INTERNAL.txt was:
---
FAT 128
SWAP 256
1 ext3
TIMEOUT 11
---

there is a little glitches, the internal ext3 partition isn't the DEFAULT one that boot, the default is the flash one.
any idea on what i can do to make the ext3 the default one ?
thanks ! GREAT software !

penguinbait 2008-06-25 14:56

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by L0cutus (Post 195628)
just to make you know that all went right !
after i've run the clone.sh, it exit with some error lines (after it have create the fat partition), i've reboot the device and re-run the clone.sh with final reboot and success, my INTERNAL.txt was:
---
FAT 128
SWAP 256
1 ext3
TIMEOUT 11
---

there is a little glitches, the internal ext3 partition isn't the DEFAULT one that boot, the default is the flash one.
any idea on what i can do to make the ext3 the default one ?
thanks ! GREAT software !

Like this, I do not have it choose default boot partiton :)


Partition #2 on internal card
chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
Partition #2 on external card
chroot /mnt/initfs cal-tool --set-root-device ask:mmc12
Partition #3 on internal card
chroot /mnt/initfs cal-tool --set-root-device ask:mmc3
Partition #3 on external card
chroot /mnt/initfs cal-tool --set-root-device ask:mmc13

dubwise 2008-07-25 20:25

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

tar zxvf install-tools-ad.tgz
Fresh Diablo on N810, this step gets me
tar: invalid gzip magic

I expect I'm missing an unzipper or have the wrong tar.
Anybody know what I need, exactly?

I tried grabbing Penguinbait's tar.gz and bzip2.gz.
gunzip tar.gz gets me gunzip: invalid magic

I tried installing gnutar and bzip2 from the xarchiver repository.

gnutar zxvf install-tools-ad.tgz gets me gzip: invalid magic

Apparently, I'm just not magical enough today.

Anybody?

Installed xarchiver.
This can open the .tgz, but permission is denied
when it goes to create the directory to extact it into.

hmmph.

Ghostface 2008-07-26 13:02

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
I did everything the way described, but now when I boot the device I only get the nokia logo. I checked the logs (i was doing the flashingt over ssh) and now i see that I had these errors:

Quote:

*** creating initfs.orig.jffs2 ...
-rw-r--r-- 1 user users 2286776 Jul 26 14:46 initfs.orig.jffs2
Part 1 - Preparing initfs.bootmenu.jffs2 image
*** copying current initfs ...cp: write error: No space left on device
cp: cannot preserve times of 'initfs/usr/local/lib/testserver/modules/handlers/dsp_audio.so.0.0.0': No space left on device
cp: cannot preserve ownership of 'initfs/usr/local/lib/testserver/modules/handlers/dsp_audio.so.0.0.0': No space left on device
cp: cannot preserve permissions of 'initfs/usr/local/lib/testserver/modules/handlers/dsp_audio.so.0.0.0': No space left on device
cp: cannot remove 'initfs/usr/local/lib/testserver/modules/handlers/key.la': No such file or directory
cp: cannot create symlink 'initfs/usr/local/lib/testserver/modules/handlers/key.so': No space left on device
cp: cannot remove 'initfs/usr/local/lib/testserver/modules/handlers/selftests.so.0.0.0': No such file or directory
(...)
What todo now ? :(

EDIT: Ok I guess booting into windows and using nokias update wizard should do the trick.

dubwise 2008-08-09 04:56

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Bumping this thread, because I just got an N800, and the situation is the same.
Fresh Diablo. Installed mc and rootsh from the repositories.
xterm, sudo gainroot, mc, and used mc to copy install-tools-ad.tgz from my card to /root.

The next step,
tar zxvf install-tools-ad.tgz
gets me
tar: invalid gzip magic
I'm sure I'm missing something obvious.
What is it?

L0cutus 2008-08-11 16:40

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
does this work with the latest diablo updates ?
Thanks !

Dali 2008-08-13 11:15

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
There are error in clone.sh:
Code:

218c218
< export BOOT=`grep $DISK$"p"PART2 /root/install-tools/matrix | awk '{print $2}'`
---
> export BOOT=`grep $DISK"p"$PART2 /root/install-tools/matrix | awk '{print $2}'`

Also:
Code:

file: File 4.23 supports only 4 version magic files. `/usr/local/share/file/magic.mgc' is version 5
I fixed this, copying magic.mgc from /usr/share/file/ to /usr/local/share/file/.

May be it is not necessary to include local "file" and "e2" packages (and possibly others), but install from repositories?

TODO: swap partition and bootable partition on different cards.

And question: how to edit installed bootmenu.* ? On /mnt/initfs they are readonly.

dubwise 2008-08-13 16:07

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Quote:

Originally Posted by Dali (Post 213232)
I fixed this, copying magic.mgc from /usr/share/file/ to /usr/local/share/file/.

Will that fix the invalid gzip magic?
Do we need the version 5 magic for anything?
I have less than no idea what magic means in this context.

timsamoff 2008-08-14 13:00

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Is there an easy way to get the bootmenu back after updating Diablo? Since updating, my N810 only wants to boot to the SD card without giving me the option of switching. I've tried to follow the bootmenu instructions here, but it doesn't get me very far (not that it can't, it's just that I am a bit uncapable of understanding everything I need to do).

Thanks!
Tim

Laughing Man 2008-08-14 14:42

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Install the .deb that Penguinbait made of the bootmenu in the flash memory of the n810. After a reboot it should bring you to the boot menu.

timsamoff 2008-08-14 15:53

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Which .deb is that? The untarred install-tools is still in my /root directory. Do I need to put something somewhere else?

(Sorry for being ignorant!)

Tim

Update: I guess I misread what you said, Laughing Man. Sorry. I guess all I really need is where to find the bootmenu deb!

Update 2: I guess I'd need to know how to put the .deb on the device flash as well. (Arg!)

Thanks,
Tim

Oberon85 2008-08-14 16:06

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Dubwise,
You said "
Bumping this thread, because I just got an N800, and the situation is the same.
Fresh Diablo. Installed mc and rootsh from the repositories.
xterm, sudo gainroot, mc, and used mc to copy install-tools-ad.tgz from my card to /root.

The next step,
tar zxvf install-tools-ad.tgz
gets me
tar: invalid gzip magic
I'm sure I'm missing something obvious.
What is it?"


try gunzip install-tools-ad.tgz
tar -xvf install-tools-ad.tar
and your should get things going...

bunanson 2008-08-17 23:41

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
xterm
sudo gainroot
emelfm2
txf install-tools.tgz to /root
double click install-tools.tgz (and emelfm2 takes care of everything)

bun

pmeng 2008-09-23 20:02

Re: Install Tools advanced edition :) (tarball only no deb will be coming)
 
Hi,

I installed the advanced Install Tools and used them as described on my n810 with Diablo.
But i encounter a strange issue:
When entering bootmenu and selecting to boot from SD Card, it tries a minute to do so, and then suddenly reboots using the OS in flash.
I have not yet been able to boot into the SD card a single time - so i don't know how to debug it. Does someone had a similar issue and some advice for me to fix it?

Thanks a lot penguinbait for this AWESOME software!

Thanks,

Philipp


| 1   2   | Next
All times are GMT. The time now is 00:55.

vBulletin® Version 3.8.8