Active Topics

 


Reply
Thread Tools
Posts: 4 | Thanked: 1 time | Joined on Sep 2007
#1
Can anyone help me troubleshoot this error message? After switching to MMC boot, I get "Boot from mmc2 failed, booting from flash."

N800 running latest firmware. 8GB internal, 2GB external. I reimaged before beginning the dual boot procedure. Used the updated boot menu from genius fanoush. Used gnutar. Did not encounter any unusual error messages throughout. Used Schmot's instructions (except for the size of partitions) for setting up the partitions. Used nmacleod's handy dandy nupgrade to do the rest.

TIA
k
 
ldrn's Avatar
Posts: 201 | Thanked: 88 times | Joined on Aug 2007 @ San Francisco, CA
#2
I found this while having a similar problem and even reflashed my device to try and fix it.. but for me, the solution was... to edit the bootmenu.conf file and add options both memory cards. Oops. I had the good sense to copy the cloned partition beforehand onto my laptop, but eh, what the heck, it's a new version of Nokia's firmware anyway.

Key point is, for me, even though the "mount" command showed (and still shows!) the partition I had formatted as "/dev/mmcblk0p2", the bootmenu.conf has to have it as "/dev/mmcblk1p2". (This may have been mentioned by others before, but I missed it if so.)
 

The Following User Says Thank You to ldrn For This Useful Post:
Posts: 678 | Thanked: 197 times | Joined on Jul 2007 @ San Jose CA
#3
Originally Posted by kalatraz View Post
Can anyone help me troubleshoot this error message? After switching to MMC boot, I get "Boot from mmc2 failed, booting from flash."
Usually it means that either you had a corrupted image or you did not point the boot loader the right place to pick up the image for booting.

1. Did you really create and format ext2 partition for the image ?
2. Did you tar correctly to /dev/mmcblk0p2?
3. check the bootmenu.conf item for the image. Are ext2 and mbcache modules loaded? Is the selection item "mmcblk0p2" (for mmc2 the second partition)?
 
Posts: 13 | Thanked: 3 times | Joined on Jan 2008 @ hell
#4
try switching cards and just follow Milhouse's simplified instructions... I was unable to get my 8gb card to work, but didn't have any problems with my 4gb or the 2gb that I just did for my friend. don't know what or why it was like that but I have been booting from my 4gb ever since with no problems... well at least when I remember to hold the menu button
__________________
now... where did I put my beer
 
Posts: 4,030 | Thanked: 1,633 times | Joined on Jul 2007 @ nd usa
#5
Originally Posted by GearJammer View Post
try switching cards and just follow Milhouse's simplified instructions... I was unable to get my 8gb card to work, but didn't have any problems with my 4gb or the 2gb that I just did for my friend. don't know what or why it was like that but I have been booting from my 4gb ever since with no problems... well at least when I remember to hold the menu button
Same here, http://www.internettablettalk.com/fo...ad.php?t=14637.

Apparantly most success are from cloning from a working clone SD, instead of cloning directly from N8x0. And I also success with 1G, 2G, and 4G and failed 8G. Now I have another 8G and a 16G card, will try later this week.


bun
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#6
Originally Posted by bunanson View Post
Apparantly most success are from cloning from a working clone SD, instead of cloning directly from N8x0.
once filesystem is mounted it does not matter whether the source filesystem is card with ext2 or internal flash with jffs2. Cloning from internal flash or mmc should be same. People reported success even with internal flash (and 16GB cards).

I still think you do something wrong when partitioning, formating or cloning but don't know what it is. But if you want to track this down you can boot into usb network recovery mode and try mounting it by hand from initfs environment and see what is wrong.

Once you login over usb via ssh or telnet try this:

1. insert each module you have in MENU_X_MODULES item (normally mbcache ext2)
Code:
insmod  /lib/modules/2.6.*/mbcache.ko
insmod  /lib/modules/2.6.*/ext2.ko
2. try to mount filesystem like this:
mount -t FSTYPE -o FSOPTIONS /dev/DEVICE /mnt/new_root

DEVICE is partition name in MENU_X_DEVICE (mmcblk0p2)
FSTYPE is filesystem name in MENU_X_FSTYPE (ext2)
FSOPTIONS is mount options (noatime)

with default settings in bootmenu.sh for second partition the line should be

Code:
mount -t ext2 -o noatime /dev/mmcblk0p2 /mnt/new_root
Post any errors you see, post output of 'ls -la /mnt/new_root' and 'ls -la /mnt/new_root/usr/sbin'. Then you can unmount it 'umount /mnt/new_root' exit shell and continue with booting.

The 'boot from xx failed' is printed when mount fails or in cannot find executable /mnt/new_root/usr/sbin/init

EDIT: for details about usb networking recovery mode please read included README.txt in initfs_flasher directory

Also when the mount fails post output of 'cat /proc/partitions'
__________________
Newbies click here before posting. Thanks.

If you really need to PM me with troubleshooting question please consider posting it to the forum instead. It is OK to PM me a link to such post then. Thank you.

Last edited by fanoush; 2008-01-30 at 08:08.
 

The Following 2 Users Say Thank You to fanoush For This Useful Post:
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#7
I haven't had any problems cloning to an an 8GB memory card with 7.5GB VFAT and 0.5GB ext2 partitions (either on OS2007 or OS2008, on N800 and N810).

So 8GB SD cards definately can be booted from, I'm not sure why some of you are having problems though - the obvious answer would be that the partitioning has gone awry.
 
Posts: 168 | Thanked: 51 times | Joined on Jun 2007
#8
Make sure you are using the right partition information in all places. I don't know how the internal flash is numbered on the 810 but I boot from external flash on n800. I have one partition on the device.

For this use /dev/mmcblk1p1

You must also make sure your boot menu is set up to use the same one as well.

The error message is showing that you likely did not point the boot menu to the right device.
 
Posts: 3,401 | Thanked: 1,255 times | Joined on Nov 2005 @ London, UK
#9
/dev/mmcblk0 is always the first memory card:
  • in the case of the 770 it is the only removable memory card
  • in the case of the N800 it is the card in the battery bay
  • in the case of the N810 it is the 2GB internal memory

/dev/mmcblk1 is the second memory card:
  • in the case of the 770 it doesn't exist
  • in the case of the N800 it is the SD card under the kick-stand
  • in the case of the N810 it is the miniSD card under the kick-stand

When cloning on 770 and N800, my choice is to clone the OS to /dev/mmcblk0p2 (ie. second partition on the first memory card aka the internal card).

When cloning on N810, my choice is to clone to /dev/mmcblk1p2 (ie. second partition on the second memory card aka the external card).

The above advice has worked for me every time. My updated cloning script should automatically identify and use the correct memory card and partition (internal or external). There is a bug in the kernel which Fanoush referenced elsewhere which causes the memory card devices to be incorrectly identified which is annoying so be careful when viewing /proc/partitions as it gives bogus information.

 
Posts: 18 | Thanked: 2 times | Joined on Jan 2008
#10
@fanoush

the output of the commands from usb recovery mode is as follows:


bash: open: command not found
bt ~ # telnet
telnet> open 192.168.10.1
Trying 192.168.10.1...
Connected to 192.168.10.1.
Escape character is '^]'.


BusyBox v1.00 (2007.12.07-09:22+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # insmod /lib/modules/2.6.*/mbcache.ko
/ # insmod /lib/modules/2.6.*/ext2.ko
/ # mount -t ext2 -o noatime /dev/mmcblk0p2 /mnt/new_root
mount: Mounting /dev/mmcblk0p2 on /mnt/new_root failed: Invalid argument
/ # ls -la /mnt/new_root
drwxr-xr-x 2 root root 0 Dec 7 09:31 .
drwxr-xr-x 3 root root 0 Dec 7 09:31 ..
/ # ls -la /mnt/new_root/usr/sbin
ls: /mnt/new_root/usr/sbin: No such file or directory
/ # cat /proc/partitions
major minor #blocks name

31 0 128 mtdblock0
31 1 384 mtdblock1
31 2 2048 mtdblock2
31 3 2048 mtdblock3
31 4 257536 mtdblock4
254 0 8067072 mmcblk0
254 1 5119999 mmcblk0p1
254 2 2947072 mmcblk0p2
254 8 1997312 mmcblk1
254 9 1023999 mmcblk1p1
254 10 973312 mmcblk1p2

i am trying to boot from mmc2 which is 8gb partitioned as 3gb ext2 5gb. fat32 . I have cloned from the internal flash and booting fails. Any ideas of what i have done wrong(partition, cloning or something else) looking at the outputs ?
 
Reply


 
Forum Jump


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