maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia 770 (https://talk.maemo.org/forumdisplay.php?f=24)
-   -   Help! Boot from MMC (https://talk.maemo.org/showthread.php?t=7611)

xmfisher 2007-07-12 15:46

Help! Boot from MMC
 
I exactly followed the instruction to "How to install a dual boot menu" on maemo Wiki,
http://maemo.org/community/wiki/HowT..._From_MMC_card.

After downloading the file from


http://fanoush.wz.cz/maemo/initfs_flasher.tgz

and

# cd /home/user/MyDocs/.documents/
# tar zxvf initfs_flasher.tgz
# cd initfs_flasher/
# ./initfs_flash


something showed up like this


========Flasher for initfs with onscreen bootmenu=======




Are you sure to contiune (yes/no) :


After typing a Y, I was told


Ok, see you later :-)



According to the wiki, I am supposed to be asked some questions rather than just this.


What happened? What should I do?

Thanks

fanoush 2007-07-12 17:28

Re: Help! Boot from MMC
 
Quote:

Originally Posted by xmfisher (Post 59381)
Are you sure to contiune (yes/no) :
After typing a Y, I was told
Ok, see you later :-)

This is a tough one. You must edit the script
Code:

vi initfs_flash
and replace all occurrences of "yes" for "Y". That will fix the problem.

xmfisher 2007-07-12 19:56

Re: Help! Boot from MMC
 
thanks brother. I should type "yes" rather than "y".

But now, I got another problem. Please help.

After booting from the internal falsh, I typed in the fllowing comands as the instruction suggests:




sudo gainroot
insmod /mnt/initfs/lib/modules/current/ext2.ko
mount /dev/mmcblk0p2 /opt
mkdir /floppy
mount -t jffs2 /dev/mtdblock4 /floppy
apt-get -d install tar.



I was told that

reading package lists...........Done
building dependency tree..... Done
Some packages could not be installed. This may mean that you have requested an impossible situatio or if you are using the unstable disribution that some required packages have not yet been created or been removed out of incoming.

since you only requested a single operation it is extremely likely that the package is simply not istallable and a bug report against that package should be filed.
The following information may help to resolve the situation:

The following package have unmet dependencies:

osso-bttools: Depends: bluez-utils (>= 2.25) but it is not going to be installed.
E: Broken packages

/home/user #



I ignored the warning and went ahead with

mkdir /tar-temp/
cd /var/cache/apt/archives/
dpkg -x tar*.deb /tar-temp/


but I was told

dpkg -deb: failed to read archive 'tar*.deb': no such file or directory



What should I do now?

Thanks

Chinpokomon 2007-07-13 06:40

Re: Help! Boot from MMC
 
You should check if you have files in /var/cache/apt/archives...

> cd /var/cache/apt/archives
> ls -al tar*.deb

You should see several files listed. If you don't tar wasn't downloaded. Go back and try

> apt-get -d install tar

and answer Y to any questions it asks. Then check the directory again. If you see the tar*.deb files this time, you are good to go and you can continue with the dpkg command.

xmfisher 2007-07-13 21:14

Re: Help! Boot from MMC
 
Thanks, bother.

Already checked /var/cache/apt/archives

no tar*.deb there.

Then I went back to redo

apt-get -d install tar

several times.


but still got the same message, even when I disconnected internet.


The following packages have unmet dependencies:

osso-bttools: Depends: bluez-utils (>= 2.25) but it is not going to be installed.

E: Broken packages.


What should i do now? is there anyway I can install the tar?

Please help. I already formatted the mmc and don't know how to come back.

1loudsvt 2007-07-13 23:11

Re: Help! Boot from MMC
 
I am having the same exact problem and have found no way around :-( i will let you know if i find anything.

weezedog 2007-07-13 23:50

Re: Help! Boot from MMC
 
that's probably because a bunch of files are missing from the maemo repository. It's proobably looking here:
http://repository.maemo.org/pool/mae...b/bluez-utils/
and those files show up as not found.
However, if you turn on "red pill" mode you should be able to install the version from here:
http://repository.maemo.org/pool/mae...b/bluez-utils/
that version is still available, and will probably work fine.

db3d 2007-07-14 00:42

Re: Help! Boot from MMC
 
I'm in the middle of the process (copying system files to MMC) after flashing IT 3.2006-49-2 and have found that tar is already installed, so no need to apt-get it.

So, the updated install instructions would read:
tar cf - -C /floppy . | tar xvf - -C /opt

not:
# apt-get -d install tar
# cd /var/cache/apt/archives/
# mkdir /tar-temp/
# dpkg -x tar*.deb /tar-temp/
# /tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt

Hope this helps,

Dylan

xmfisher 2007-07-14 02:07

Re: Help! Boot from MMC
 
how to turn on "red pill" mode?

Thanks

Slakker 2007-07-14 02:44

Re: Help! Boot from MMC
 
Do a search.

dswan 2007-07-14 17:46

Re: Help! Boot from MMC
 
Open "Application Manager" ; go to "Tools" and then "Application Catalog" ; select "New" button and enter matrix into web address field ; chose the cancel button and then select Red Pill

fanoush 2007-07-14 17:54

Re: Help! Boot from MMC
 
Quote:

Originally Posted by db3d (Post 59823)
I'm in the middle of the process (copying system files to MMC) after flashing IT 3.2006-49-2 and have found that tar is already installed, so no need to apt-get it.

So, the updated install instructions would read:
tar cf - -C /floppy . | tar xvf - -C /opt

you need to install real GNU tar as described, busybox tar on the device is not enough, it makes incomplete copy

db3d 2007-07-14 19:28

Re: Help! Boot from MMC
 
Quote:

Originally Posted by fanoush (Post 59993)
you need to install real GNU tar as described, busybox tar on the device is not enough, it makes incomplete copy

Yep. Found out the hard way... It did boot up from the mmc, but kept reebooting afterwards. I had to reinstall it with the GNU tar and it is now working.

One potential problem people might be having is not being connected to the internet when they try to apt-get, so just check that if you are having problems.

bunanson 2007-07-14 22:11

Re: Help! Boot from MMC
 
I am stuck at the last step, i.e., I use the TAR from the 770 and now it keeps on rebooting. I keep trying on the GNU TAR, it keeps on saying some files are not download. I tried to follow the red pill as in the above post, but dont know where is the matrix. and I am very frustrated with this thing now, been going on for several hours, pls somebody help me out?

current status, getting an incomplete copy to MMC and getting repeated booting......., having problem in getting the GNU TAR or the red pill?

bun

bunanson 2007-07-14 22:42

Re: Help! Boot from MMC
 
db3d: could you pls show me how you go around either to find the real GNU TAR or how to use the file from the red pill mode? TIA

bun

bunanson 2007-07-15 03:24

Re: Help! Boot from MMC
 
I finally made it boot from the MMC. Not quite sure which is the step that correct the problem. Basically, I 'enable'-ed both repositories, repository.maemo.org/mistral/free non-free and repository.maemo.org/gregale/free non-free. I also turned on the red pill (Appl manager>Tools>Appl catalogue>New replace "http://" with "matrix" and press cancel, then take the red pill ;)
And the error statement "failed to download some files" disapppered I then follow, http://maemo.org/community/wiki/howt...from_mmc_card/

start from section:
Now it's time to clone the whole original system !


Bristo, it worked!

bun

bunanson 2007-07-15 03:34

Re: Help! Boot from MMC
 
N770 running latest 2006 with 1G MMC

Proof that I am running from MMC, other than the booting menu say so, I looked into Tools>Control panel>Memory:

Boot from MMC:
Storage mem in use 9.8 MB; Storage mem avail 279.5 MB

Boot from Flash
Storage mem in use 9.8 MB; Storage mem avail 32.7 MB

Other than that, there is very little difference between the two, including speed, practically (see my other post http://www.internettablettalk.com/fo...ead.php?t=7718)


bun

msk_kapoor 2007-07-16 21:31

Re: Help! Boot from MMC
 
Quote:

Originally Posted by bunanson (Post 60086)
I finally made it boot from the MMC. Not quite sure which is the step that correct the problem. Basically, I 'enable'-ed both repositories, repository.maemo.org/mistral/free non-free and repository.maemo.org/gregale/free non-free. I also turned on the red pill (Appl manager>Tools>Appl catalogue>New replace "http://" with "matrix" and press cancel, then take the red pill ;)
And the error statement "failed to download some files" disapppered I then follow, http://maemo.org/community/wiki/howt...from_mmc_card/

start from section:
Now it's time to clone the whole original system !


Bristo, it worked!

bun

I faced the same problem and found th issue. I was having some more repositories other than the needed ones. i removed them and retained only the repository.maemo.org/mistral/free non-free,http://eko.one.pl/maemo/mistral/user and repository.maemo.org/gregale/free non-free ones and i was able to install without any issues.

bunanson 2007-07-17 01:34

Re: Help! Boot from MMC
 
Quote:

Originally Posted by msk_kapoor (Post 60469)
I faced the same problem and found th issue. I was having some more repositories other than the needed ones. i removed them and retained only the repository.maemo.org/mistral/free non-free,http://eko.one.pl/maemo/mistral/user and repository.maemo.org/gregale/free non-free ones and i was able to install without any issues.

I thought about that too, but being too new to the N770, not quite sure which is the "required" repository, so I just keep trying......maybe I just happen to deleted the unwanted ones. Thanks for confirming this. My next project is to pair the &*&*(^$%Treo 650 w the N770. I have tried everything and comes to the conclusion 1) 2006OS does not work 2) my account is bogus My IT colleageu said it is number 1). Well, still hacking...
Cheers,:(


bun

stewp6340 2007-08-06 20:46

Re: Help! Boot from MMC
 
I have been trying this process for several days, with the same problem each time. I have a N770 with a Kingston 2GB MMCmobile card. I follow everything successfully until the cloning command (I am using GNU tar from apt-get):

/tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt

it starts to copy, and this continues for around 30 min. or so. Then, at some point the XTERM window closes on its own accord. Cannot say if at same spot each time, although that is a possibility. If at this point I continue on through the remaining directions, when I reboot, and select mmc2 for by boot location, it gives the error:

error booting from mmc2, booting from flash instead

My N770 then runs fine, but I am not running from MMC, but from flash, so defeats the point of this operation. Has anyone gone through a similar problem? I am assuming my copy ends up incomplete somehow because of the XTERM closing early (crash?), so boot from mmc2 fails. Help please!

middguy 2007-08-07 16:01

Re: Help! Boot from MMC
 
Quote:

Originally Posted by stewp6340 (Post 66059)
I have been trying this process for several days, with the same problem each time. I have a N770 with a Kingston 2GB MMCmobile card. I follow everything successfully until the cloning command (I am using GNU tar from apt-get):

/tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt

it starts to copy, and this continues for around 30 min. or so. Then, at some point the XTERM window closes on its own accord. Cannot say if at same spot each time, although that is a possibility. If at this point I continue on through the remaining directions, when I reboot, and select mmc2 for by boot location, it gives the error:

error booting from mmc2, booting from flash instead

My N770 then runs fine, but I am not running from MMC, but from flash, so defeats the point of this operation. Has anyone gone through a similar problem? I am assuming my copy ends up incomplete somehow because of the XTERM closing early (crash?), so boot from mmc2 fails. Help please!

I have the exact same problem. Search seems to show it is a memory buffer overflow, but I could not fix it so I pretty much just gave up. :o

tama 2007-08-07 16:37

Re: Help! Boot from MMC
 
Quote:

Originally Posted by middguy (Post 66229)
I have the exact same problem. Search seems to show it is a memory buffer overflow, but I could not fix it so I pretty much just gave up. :o



I had same problems. I enabled swap (Tools->Control Panel->Memory->Virtaual Memory. Then I ran tar again. This time tar wen through. You also can try it.

stewp6340 2007-08-07 17:21

Re: Help! Boot from MMC
 
Do you mean you "Extend Virtual Memory"? I do not have option to enable swap file. How much memory did you extend?

Thank you, I want to try this.

middguy 2007-08-07 21:24

Re: Help! Boot from MMC
 
Quote:

Originally Posted by tama (Post 66239)
I had same problems. I enabled swap (Tools->Control Panel->Memory->Virtaual Memory. Then I ran tar again. This time tar wen through. You also can try it.

Cool. So you unenabled it for the unmount and then reenable for the tar?

middguy 2007-08-07 22:13

Re: Help! Boot from MMC
 
Ok new problem I get to: "mount /dev/mmcblk0p2 /opt" and it says invalid argument ... now what?

I am getting to the point where each time I try its a different errors ... argh

stewp6340 2007-08-07 22:26

Re: Help! Boot from MMC
 
middguy,

did you first create the /opt directory?

mkdir /opt/

before the mount? I had to do this I think, although keep in mind that I have not gotten this to work yet either, although I can do the mount of mmcblk0p2 to /opt/. Just can't complete the complete cloning (tar cf - -C /floppy etc...)

middguy 2007-08-07 23:47

Re: Help! Boot from MMC
 
Quote:

Originally Posted by stewp6340 (Post 66366)
middguy,

did you first create the /opt directory?

mkdir /opt/

before the mount? I had to do this I think, although keep in mind that I have not gotten this to work yet either, although I can do the mount of mmcblk0p2 to /opt/. Just can't complete the complete cloning (tar cf - -C /floppy etc...)

yeah it says "file already exists"

but at least this time it worked after trying again. and now its copying all the files. cross my fingers that this time it actually works (4/5th time trying)

stewp6340 2007-08-08 00:03

Re: Help! Boot from MMC
 
middguy,

I have also tried 4 or 5 times with no luck yet. Please tell me if you complete this time, and what the trick was. I am at wits end. Am getting ready to start from the beginning once again.

How large is your MMC card, and what sizes the partitions.

Thanks

middguy 2007-08-08 01:59

Re: Help! Boot from MMC
 
yay... got it working. trick was to combine both online directions (neither is complete)

http://maemo.org/community/wiki/HowT..._From_MMC_card and
http://examplified.net/guide/Nokia_7...ting_from_MMC/

I also installed VNC view and stuff (http://mike.saunby.googlepages.com/x11vncfornokia7702)

and used that to do most of the typing. also had to go back to step 1 (reflash) and make sure the first step went right (the download didnt work so had to do the fix that the program suggested)

stewp6340 2007-08-08 03:14

Re: Help! Boot from MMC
 
middguy,

congrats on your success. I have not been as lucky. did you do anything other than what is in the two ets of instructions? did you turn on red pill mode? did you turn on the virtual memory on the mmc (from control panel->memory)?

what were your 2 partition sizes? I have tried the example 15000 as well as 30000, since i have a 2 GB card.

thanks for any additional information you can provide.

middguy 2007-08-08 03:20

Re: Help! Boot from MMC
 
Only thing was that after partitioning the card (1gb) I turned the virtual memory back on as prior posts said that might help. That was before copying the file systems.

No red pill or anything. Where are you having problems?

stewp6340 2007-08-08 04:09

Re: Help! Boot from MMC
 
middguy,

everytime that I try to perform the full copy (/tar-temp/bin/tar cf - -C .floppy . | /tar-temp/bin/tar xvf - -C /opt), the copy starts and goes for about 10-15 minutes, and then at some point, xterm aborts, and the copy terminates (early?). Then, if I try to finish the instructions, and reboot, when I select to boot from mmc2 (stable), it gives a "boot from mmc2 failed. booting from flash" message. Boot from flash appears to work fine.

how exactly did you turn virtual memory back on? Previous instructions did not match what I saw under control panel.

thanks,

middguy 2007-08-08 04:54

Re: Help! Boot from MMC
 
I turned virtual memory on right before doing this part

"insmod /mnt/initfs/lib/modules/current/ext2.ko
mount /dev/mmcblk0p2 /opt
mkdir /floppy
mount -t jffs2 /dev/mtdblock4 /floppy"

I would advise you to reflash and start all over and try that. Once virtual memory was enabled it took around 25 minutes to finish on my 770.

Now I just wonder if there is a way to automate this if I ever need to reflash it. Its a PITA

stewp6340 2007-08-08 12:19

Re: Help! Boot from MMC
 
middguy,

Did you turn virtual memory on from Tools->Control Panel->Memory->Virtual tab? How much did you enable (default seems to be 64MB)?

tama 2007-08-08 12:50

Re: Help! Boot from MMC
 
Quote:

Originally Posted by stewp6340 (Post 66533)
middguy,

Did you turn virtual memory on from Tools->Control Panel->Memory->Virtual tab? How much did you enable (default seems to be 64MB)?

Yes that's the way. Pickup 64 MB. You can lower it or disable it or even keep it after tar is over successfully.


While you are at it, use the partition type as 'b' instead of '6' for /dev/mmcblk0p1
i.e instead of
Code:

# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,15000,6
/dev/mmcblk0p2:15001,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

Use
Code:

# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,52500,b
/dev/mmcblk0p2:52501,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

That will make mmc1 partition as FAT32 instead of FAT16. Believe me you will realise its imprtance later. ALSO NOTE: that the above numbers are for 2 GB ard. The 52500 will put about 1.68 GB in MMC1 and 320 MB in mmc2 which is for dual boot partition on your mmc.

stewp6340 2007-08-08 13:45

Re: Help! Boot from MMC
 
Quote:

Yes that's the way. Pickup 64 MB. You can lower it or disable it or even keep it after tar is over successfully.

While you are at it, use the partition type as 'b' instead of '6' for /dev/mmcblk0p1

Use
Code:

# apt-get install e2fsprogs
# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,52500,b
/dev/mmcblk0p2:52501,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

That will make mmc1 partition as FAT32 instead of FAT16. Believe me you will realise its imprtance later. ALSO NOTE: that the above numbers are for 2 GB ard. The 52500 will put about 1.68 GB in MMC1 and 320 MB in mmc2 which is for dual boot partition on your mmc.
Thanks, I will try this shortly. How far would you recommend I back up in the sequence? Go back to re-partition and format, clearly, but do you think that I need to reflash the dual-boot initfs_flash from fanoush, or skip that step; and go directly into the mount and TAR step?

Thanks for your help, all

tama 2007-08-08 14:15

Re: Help! Boot from MMC
 
Quote:

Originally Posted by stewp6340 (Post 66572)
Thanks, I will try this shortly. How far would you recommend I back up in the sequence? Go back to re-partition and format, clearly, but do you think that I need to reflash the dual-boot initfs_flash from fanoush, or skip that step; and go directly into the mount and TAR step?

Thanks for your help, all

Use this procesure

Do
Code:

#unmount /opt
#unmount /floppy
#unmount /media/mmc1
#unmount /media/mmc2

Then follow http://maemo.org/community/wiki/HowT..._your_MMC_card
(With partition values as shown in above post).

Skip
Code:

Skip this, as you already have this.
# apt-get install e2fsprogs

Do
Code:

# umount /media/mmc1
# umount /media/mmc2 (for N800 only!)
# sfdisk /dev/mmcblk0
/dev/mmcblk0p1:1,52500,b
/dev/mmcblk0p2:52501,,
/dev/mmcblk0p3:
/dev/mmcblk0p4:

Skip this
Code:

# mkdosfs /dev/mmcblk0p1
Use this (This will make FAT 32, with cluster size of 1 KB). If you want bigger cluster size then use -s 4 for 2 KB, -s 8 for 4 KB, or -s 16 for 8 KB, or -s 32 for 16 KB. I like small as I have many small file. It becomes slightly slow, but I need to have small cluster size. You can use -s 4 for 2 KB or -s 8 for 4 KB. But many small files < 4 KB will waste lost of space).
Do
Code:

# mkdosfs -s 2 -F 32 /dev/mmcblk0p1
# shutdown -r now

Do this
Code:

# mke2fs /dev/mmcblk0p2
# shutdown -r now

Do These
Code:

# insmod /mnt/initfs/lib/modules/current/ext2.ko
# mount /dev/mmcblk0p2 /media/mmc2

Then follow http://maemo.org/community/wiki/howt...from_mmc_card/
Skip these
Code:

# cd /home/user/MyDocs/.documents/
# tar zxvf initfs_flasher.tgz
# cd initfs_flasher/
# ./initfs_flash

Skip these
Code:

# mkdir /opt/
# mkdir /floppy/

Skip
Code:

# apt-get -d install tar
# cd /var/cache/apt/archives/
# mkdir /tar-temp/
# dpkg -x tar*.deb /tar-temp/

But execute rest of the commands. DO These
Code:

(for N770 skip this)
# insmod /mnt/initfs/lib/modules/2.6.18-omap1/mbcache.ko

Do
Code:

# insmod /mnt/initfs/lib/modules/current/ext2.ko
# mount /dev/mmcblk0p2 /opt
# mount -t jffs2 /dev/mtdblock4 /floppy

Do: Now Tools->Control Panel->Memory->Virtual Memory. Select 64 MB.

Do
Code:

# /tar-temp/bin/tar cf - -C /floppy . | /tar-temp/bin/tar xvf - -C /opt
Do
Code:

# umount /opt
# umount /floppy
# chroot /mnt/initfs cal-tool --set-root-device ask:mmc2
# shutdown -r now


stewp6340 2007-08-08 14:33

Re: Help! Boot from MMC
 
Tama,

That is exactly the kind of post I was looking for. I have a few things to do here at work first, then I am going to sneak the N770 out of my briefcase and start in on this procedure. Thanks so much for the effort.

middguy 2007-08-08 17:00

Re: Help! Boot from MMC
 
Good luck. I love it after the dual boot. Only thing now is that when I try to backup the system crashes. No idea why. Might have to start all over again and make the card Fat32

stewp6340 2007-08-08 17:14

Re: Help! Boot from MMC
 
middguy,

when you said that you started all over from the beginning by reflashing, what system/file did you reflash? I am wondering if I should do the same? What reflash method did you use?


All times are GMT. The time now is 02:30.

vBulletin® Version 3.8.8