OpenWrt Forum Archive

Topic: [La Fonera] Segfault when upgrade

The content of this topic has been archived on 2 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi all,

I'm using KAMIKAZE r7781 (squash_fs) on my Fonera and when I try to upgrade (ipkg update & ipkg upgrade) I always obtain a segfault.

So, is it possible to upgrade La Fonera via ipkg?

Thanks and sorry for my poor English smile

Your fault. It's written 1.000.000 times that 'ipkg update' breaks your router.

To fix it reflash via redboot. Next time if you like to update from within OpenWrt command line use mtd.

forum2006 wrote:

Your fault. It's written 1.000.000 times that 'ipkg update' breaks your router.

To fix it reflash via redboot. Next time if you like to update from within OpenWrt command line use mtd.

Ehm, my router (La Fonera) works well...but I cannot upgrade it via ipkg

forum2006 wrote:

Your fault. It's written 1.000.000 times that 'ipkg update' breaks your router.

I think, you wanted to write 'ipkg upgrade'?!

Its a shame we can't flag the kernel and base-files packages as non-upgradeable (is that possible?). 

Then again, 'ipkg upgrade' is broken even for simple packages, so it may not be worth the effort.

The "ipkg upgrade" always fails for some kind of packages (as the base-files and all kernel related packages), on the Fonera this may often cause a freeze, unplug power shall solve, I've no experiences of bricking caused by a "ipkg upgrade", but this is not a valid argument to try anyway. As already told you, go for a redboot or mtd flash if you want to upgrade.

P.S. If you need more assistance pm me, I'm italian like you

forum2006 wrote:

Next time if you like to update from within OpenWrt command line use mtd.

This is my cat /proc/mtd output:

dev:    size   erasesize  name
mtd0: 00030000 00010000 "RedBoot"
mtd1: 006f0000 00010000 "rootfs"
mtd2: 005f0000 00010000 "rootfs_data"
mtd3: 000c0000 00010000 "vmlinux.bin.l7"
mtd4: 0000f000 00010000 "FIS directory"
mtd5: 00001000 00010000 "RedBoot config"

so,  are these:

cd /tmp/
wget http://downloads.openwrt.org/snapshots/ … t.squashfs
wget http://downloads.openwrt.org/snapshots/ … linux.lzma (or .gz?)
mtd -e vmlinux.bin.l7 write openwrt-atheros-2.6-vmlinux.lzma vmlinux.bin.l7
mtd -e rootfs -r write openwrt-atheros-2.6-root.squashfs rootfs
reboot

the correct commands to upgrade?


Thanks and sorry for my poor English smile

(Last edited by automatic_jack on 6 Jul 2007, 11:03)

automatic_jack wrote:

are these:

cd /tmp/
wget http://downloads.openwrt.org/snapshots/ … t.squashfs
wget http://downloads.openwrt.org/snapshots/ … linux.lzma (or .gz?)
mtd -e vmlinux.bin.l7 write openwrt-atheros-2.6-vmlinux.lzma vmlinux.bin.l7
mtd -e rootfs -r write openwrt-atheros-2.6-root.squashfs rootfs
reboot

the correct commands to upgrade?

Yes, they are...but the reboot command is not necessary because the last mtd command automatically reboots the system

Regards smile

The discussion might have continued from here.