Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Users

Booting from a flash card

 

 

Maemo users RSS feed   Index | Next | Previous | View Threaded


rdorsch at web

Jul 17, 2009, 1:28 PM

Post #1 of 7 (1575 views)
Permalink
Booting from a flash card

Hello,

I used the nice wiki page http://wiki.maemo.org/Booting_from_a_flash_card to
make my N800 boot from my internal flash card (internal mmc).

Nokia-N800-23-14:~# df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/mmcblk0p2 4096 2404 1692 59% /mnt/initfs
none 512 88 424 17% /mnt/initfs/tmp
/dev/mmcblk0p2 12019360 424824 10983976 4% /
none 512 88 424 17% /tmp
none 1024 56 968 5% /dev
tmpfs 1024 0 1024 0% /dev/shm
/dev/mmcblk0p1 3902704 1203160 2699544 31% /media/mmc2
Nokia-N800-23-14:~#

What does not work though is to make the internal flash card (internal mmc)
the default boot device with

chroot /mnt/initfs cal-tool --set-root-device ask:immc2

The N800 always wants to boot from internal flash (flash) instead.

Any hint what I am doing wrong is welcome...

Thanks,
Rainer
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


tech.junk at myfairpoint

Jul 17, 2009, 2:01 PM

Post #2 of 7 (1488 views)
Permalink
Re: Booting from a flash card [In reply to]

Rainer Dorsch wrote:
> Hello,
>
> I used the nice wiki page http://wiki.maemo.org/Booting_from_a_flash_card to
> make my N800 boot from my internal flash card (internal mmc).
>
> Nokia-N800-23-14:~# df
> Filesystem 1k-blocks Used Available Use% Mounted on
> /dev/mmcblk0p2 4096 2404 1692 59% /mnt/initfs
> none 512 88 424 17% /mnt/initfs/tmp
> /dev/mmcblk0p2 12019360 424824 10983976 4% /
> none 512 88 424 17% /tmp
> none 1024 56 968 5% /dev
> tmpfs 1024 0 1024 0% /dev/shm
> /dev/mmcblk0p1 3902704 1203160 2699544 31% /media/mmc2
> Nokia-N800-23-14:~#
>
> What does not work though is to make the internal flash card (internal mmc)
> the default boot device with
>
> chroot /mnt/initfs cal-tool --set-root-device ask:immc2
>
> The N800 always wants to boot from internal flash (flash) instead.
>
> Any hint what I am doing wrong is welcome...
>
> Thanks,
> Rainer
> _______________________________________________

I had the same problem.
I wanted to redo the the partition sizes anyway so I went through the
steps again.
The differences I did were on how I answered the final questions on boot
methods.
From memory, so I cannot remember the exact phrasing, I answered that it
should clean up anything left over for Nokia techs, or something like that
I also said no to such things as usb and and telnet recovery methods.
Basically I kept things simple and after the rebuild it worked as it should.

The only things I question in the process is the size of the vfat partition.
What is it actually need for to assign 480MB?
So far I have not used it for anything. The most I have done with it is
to extend virtual memory to that partition, which unfortunately only
allows to 125MB.
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


dufkaf at seznam

Jul 18, 2009, 1:38 PM

Post #3 of 7 (1490 views)
Permalink
Re: Booting from a flash card [In reply to]

Rainer Dorsch wrote:
> What does not work though is to make the internal flash card (internal mmc)
> the default boot device with
>
> chroot /mnt/initfs cal-tool --set-root-device ask:immc2

So what happens when the menu is shown? First item (Internal flash) is
preselected and you can boot from internal mmc by selecting it by hand?
If yes, what is the id of that internal mmc boot item (printed on the
top - booting from <itemid> ....)?

Maybe it is not immc2 but something else? In that case you need to
replace immc2 in ask:immc2 by something else.

Frantisek

_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


rdorsch at web

Jul 18, 2009, 1:58 PM

Post #4 of 7 (1482 views)
Permalink
Re: Booting from a flash card [In reply to]

Hi Frantisek,
Am Saturday 18 July 2009 22:38:06 schrieb Frantisek Dufka:
> Rainer Dorsch wrote:
> > What does not work though is to make the internal flash card (internal
> > mmc) the default boot device with
> >
> > chroot /mnt/initfs cal-tool --set-root-device ask:immc2
>
> So what happens when the menu is shown? First item (Internal flash) is
> preselected and you can boot from internal mmc by selecting it by hand?

Correct.

> If yes, what is the id of that internal mmc boot item (printed on the
> top - booting from <itemid> ....)?

It says "Booting from mmc (mmcblk0p2 ext2)"

> Maybe it is not immc2 but something else? In that case you need to
> replace immc2 in ask:immc2 by something else.

At least this has an effect :-) Default is now external MMC card (instead of
internal one which I wanted to have :-(

I think I have to understand bootmenu.conf and bootmenu.sh better. I think
they are not consistent on my setup, which might cause the problems (?)

E.g. in bootmenu.sh it says

MENU_2_NAME="Internal MMC card, partition 2, ext2"
MENU_2_ID="immc2"
MENU_2_DEVICE="${INT_CARD}p2"
MENU_2_MODULES="mbcache ext2"
MENU_2_FSTYPE="ext2"
MENU_2_FSOPTIONS="noatime"
[ -d "/sys/block/${INT_CARD}/${MENU_2_DEVICE}" ] ||
MENU_2_NAME="(${MENU_2_NAME}

MENU_3_NAME="External MMC card, partition 2, ext2"
MENU_3_ID="mmc2"
MENU_3_DEVICE="${EXT_CARD}p2"
MENU_3_MODULES="mbcache ext2"
MENU_3_FSTYPE="ext2"
MENU_3_FSOPTIONS="noatime"
[ -d "/sys/block/${EXT_CARD}/${MENU_3_DEVICE}" ] ||
MENU_3_NAME="(${MENU_3_NAME}

while in bootmenu.conf I have

MENU_2_NAME="Internal MMC card, partition 2, ext2"
MENU_2_ID="mmc2"
MENU_2_DEVICE="${INT_CARD}p2"
MENU_2_MODULES="mbcache ext2"
MENU_2_FSTYPE="ext2"
MENU_2_FSOPTIONS="noatime"
[ -d "/sys/block/${INT_CARD}/${MENU_2_DEVICE}" ] ||
MENU_2_NAME="(${MENU_2_NAME}

#MENU_3_NAME="Internal MMC card, partition 3, ext2"
#MENU_3_ID="mmc3"
#MENU_3_DEVICE="${INT_CARD}p3"
#MENU_3_MODULES="mbcache ext2"
#MENU_3_FSTYPE="ext2"
#MENU_3_FSOPTIONS="noatime"
#[ -d "/sys/block/${INT_CARD}/${MENU_3_DEVICE}" ] ||
MENU_3_NAME="(${MENU_3_NAME



Thanks,
Rainer
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


dufkaf at seznam

Jul 18, 2009, 2:08 PM

Post #5 of 7 (1486 views)
Permalink
Re: Booting from a flash card [In reply to]

Rainer Dorsch wrote:

> It says "Booting from mmc (mmcblk0p2 ext2)"

That's strange, see below

>
> I think I have to understand bootmenu.conf and bootmenu.sh better. I think
> they are not consistent on my setup, which might cause the problems (?)

bootmenu.conf is executed after all MENU_X_XXX settings in bootmenu.sh
so bootmenu.conf overrides bootmenu.sh.

> while in bootmenu.conf I have
>
> MENU_2_NAME="Internal MMC card, partition 2, ext2"
> MENU_2_ID="mmc2"

This one should be valid then. mmc2 should work unless something else is
wrong.

Frantisek


_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


ucecesf at ucl

Jul 18, 2009, 3:14 PM

Post #6 of 7 (1486 views)
Permalink
Re: Booting from a flash card [In reply to]

At Sat, 18 Jul 2009 23:08:28 +0200,
Frantisek Dufka wrote:
>
> Rainer Dorsch wrote:
>
> > It says "Booting from mmc (mmcblk0p2 ext2)"
>
> That's strange, see below
>
> >
> > I think I have to understand bootmenu.conf and bootmenu.sh better. I think
> > they are not consistent on my setup, which might cause the problems (?)
>
> bootmenu.conf is executed after all MENU_X_XXX settings in bootmenu.sh
> so bootmenu.conf overrides bootmenu.sh.

(I hope I can jump in here...)

My menu settings are correct (defined in bootmenu.conf) but the
default boot selection is the flash memory as it is first in the list.
Can I change the bootmenu.sh so that MENU_IDX starts with a specific
number (i.e. 2 in my case for my internal memory card) instead of
MENU_MIN to have the internal memory card be the default?

That is, would this be a safe way of changing the default?

Thanks,
eric
_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users


dufkaf at seznam

Jul 19, 2009, 11:48 AM

Post #7 of 7 (1466 views)
Permalink
Re: Booting from a flash card [In reply to]

Eric S Fraga wrote:
> My menu settings are correct (defined in bootmenu.conf) but the
> default boot selection is the flash memory as it is first in the list.
> Can I change the bootmenu.sh

yes but bootmenu.conf is easier and safer to modify (less chance to
delete something inadvertently)

>so that MENU_IDX starts with a specific
> number (i.e. 2 in my case for my internal memory card) instead of
> MENU_MIN to have the internal memory card be the default?

Yes you can reorder items as you wish to get your item to first place
but the default can be also selected via cal-tool command as mentioned
in README, wiki or previous mails

_______________________________________________
maemo-users mailing list
maemo-users [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-users

Maemo users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.