Re: Kernel and Dual booting

2008-08-11 Thread Andy Green
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Somebody in the thread at some point said:
| Mikael Berthe wrote:
|
| Or is there a way to prevent opkg from flashing the kernel?  It would be
| nice to upgrade /uImage.bin instead!
|
| I don't know of a way to do this at the moment, but it would be a nice
| enhancement. Perhaps the flashing script could check to see which device
| was mounted as the root filesystem, and only proceed with the flashing
| if it was a NAND partition (/dev/mtdblock?).

We started discussing this on devel list, I learned from Graeme that he
always stores the updated kernel in /boot/uImage.bin (and currently
blows the kernel partition too).  If you symlink /uImage.bin to point to
/boot/uImage.bin maybe it will square that part of the circle.

He did say he prefers the packaging to only affect one filesystem, so if
we do not blow the kernel partition at all if / is *mmcblk* then it will
be consistent.

- -Andy
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkif7RsACgkQOjLpvpq7dMqwbQCeM5cmC9JatCKxk0ndW3N473l7
rP8AnR5FLJQ/sdD/hs0Vlp8jB2vs2Z77
=nB3P
-END PGP SIGNATURE-

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel and Dual booting

2008-08-11 Thread DooD

To prevent opkg from upgrading the kernel try:

opkg flag hold kernel-2.6.24
opkg flag hold kernel-image-2.6.24

Altho i think you only need to block the kernel-image-2.6.24 After
getting a neo1973 kernel and a bad kernel that wouldnt boot from opkg, i do
all my kernel upgrades with the dfu-util.


Mikael Berthe wrote:
 
 * Olivier Berger [EMAIL PROTECTED] [2008-08-10 18:16 +0200]:
 
 Now I need to test if I can boot it on the SD. If it succeeds, I will
 then be able to flash OM 2008.8, and have switched between flash and
 SD.
 
 Dual booting is cool ;)
 
 Yes it is :)
 (Actually I'm running 2007 from flash and 2008.8 from SD, unlike you...)
 
 
 Yet I'm wondering if it isn't dangerous to do an opkg upgrade from
 the SD.
 
 Wouldn't that update the FR's kernel?
 If it does, then it could break booting from flash as the modules won't
 match anymore.
 
 Or is there a way to prevent opkg from flashing the kernel?  It would be
 nice to upgrade /uImage.bin instead!
 -- 
 MiKael
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 
 

-- 
View this message in context: 
http://n2.nabble.com/Moving-my-2007.2-to-SD-to-try-2008.8-with-fallback-solution-tp682485p685836.html
Sent from the Openmoko Community mailing list archive at Nabble.com.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel and Dual booting

2008-08-11 Thread Mikael Berthe
* DooD [EMAIL PROTECTED] [2008-08-11 14:38 +0200]:
 
 To prevent opkg from upgrading the kernel try:
 
 opkg flag hold kernel-2.6.24
 opkg flag hold kernel-image-2.6.24

I can do that, but I'd like to have the latest fixes anyway
(esp. teh SD corruption fix as soon as there's one!).

 Altho i think you only need to block the kernel-image-2.6.24 After
 getting a neo1973 kernel and a bad kernel that wouldnt boot from opkg, i do
 all my kernel upgrades with the dfu-util.

Well, it's on the SD card in my case -- and btw using dfu-util isn't
recommended now because you have to keep the modules in sync :)
-- 
MiKael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Kernel and Dual booting

2008-08-10 Thread Mikael Berthe
* Olivier Berger [EMAIL PROTECTED] [2008-08-10 18:16 +0200]:
 
 Now I need to test if I can boot it on the SD. If it succeeds, I will
 then be able to flash OM 2008.8, and have switched between flash and
 SD.
 
 Dual booting is cool ;)

Yes it is :)
(Actually I'm running 2007 from flash and 2008.8 from SD, unlike you...)


Yet I'm wondering if it isn't dangerous to do an opkg upgrade from
the SD.

Wouldn't that update the FR's kernel?
If it does, then it could break booting from flash as the modules won't
match anymore.

Or is there a way to prevent opkg from flashing the kernel?  It would be
nice to upgrade /uImage.bin instead!
-- 
MiKael

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Kernel and Dual booting

2008-08-10 Thread Mike Montour
Mikael Berthe wrote:

 Or is there a way to prevent opkg from flashing the kernel?  It would be
 nice to upgrade /uImage.bin instead!

I don't know of a way to do this at the moment, but it would be a nice 
enhancement. Perhaps the flashing script could check to see which device 
was mounted as the root filesystem, and only proceed with the flashing 
if it was a NAND partition (/dev/mtdblock?).


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community