OpenWrt Forum Archive

Topic: Segmentation fault on ipkg update?

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

yes, as the topic says, if I do the following command. ipkg update (yes as root) i got a message that says "Segmentation fault" and I have no clue why it doesn't work. could it be the physical unit that have been damage by electrical variations in the electrical power distribution?

or what could it be?

Yeah, Busyboxes ipkg is horrible. Well, you can patch the build-system and compile the full version of ipkg and disable BB's ipkg crap in menuconfig. Solved the segfault problem at least for me and Bartman. The full version adds about 60K to the image, IIRC.

Patch for full version of ipkg: http://downloads.openwrt.org/people/agb … kaze.patch

Create the ~/.openwrt/defconfig file (automatically disables BB's ipkg and enables full ipkg):

# CONFIG_BUSYBOX_CONFIG_IPKG is not set
CONFIG_PACKAGE_ipkg=y

Then get the build-system, packages patch it with full version of ipkg and run menuconfig. Finally build OpenWrt.

$ cd ~/
$ svn checkout https://svn.openwrt.org/openwrt/trunk/ trunk/
$ cd ~/trunk/
$ ./scripts/feeds update -a
$ wget -q -m -nd -O - http://downloads.openwrt.org/people/agb/ondeck/ipkg-for-kamikaze.patch | patch -p1
$ svn add package/ipkg/
$ make menuconfig
$ make world

(Last edited by forum2008 on 19 Jun 2008, 20:11)

The discussion might have continued from here.