OpenWrt Forum Archive

Topic: looking for package fconfig in kamikaze_7.09

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

Hi all,

I have downloaded and built kamikaze 7.09 for the Pronghorn SBC250 board. I am looking for the package "fconfig" to update
the "Redboot Config" Configuration from within the linux. But, I couldn't find the package "fconfig" (fconfig-20080329.tar.gz)
to select from the source tree under kamikaze_7.09/package directory.

Whereas other discussion on OpenWRT talks about inclusion of fconfig on the source tree..

https://dev.openwrt.org/cgi-bin/trac.fc … e?rev=6500

Can anybody tell me that fconfig is missing or not included into the source tree?

thanks
Sara

sara wrote:

Hi all,

I have downloaded and built kamikaze 7.09 for the Pronghorn SBC250 board. I am looking for the package "fconfig" to update
the "Redboot Config" Configuration from within the linux. But, I couldn't find the package "fconfig" (fconfig-20080329.tar.gz)
to select from the source tree under kamikaze_7.09/package directory.

Whereas other discussion on OpenWRT talks about inclusion of fconfig on the source tree..

https://dev.openwrt.org/cgi-bin/trac.fc … e?rev=6500

Can anybody tell me that fconfig is missing or not included into the source tree?

thanks
Sara

Hi Sara,
no, ifconfig package is not include into svn package repository. But if you add into packages/utils/ a directory fconfig and you add a Makefile

#
    # Copyright (C) 2006 OpenWrt.org
    #
    # This is free software, licensed under the GNU General Public License v2.
    # See /LICENSE for more information.
    #
    
    include $(TOPDIR)/rules.mk
    
    PKG_NAME:=fconfig
    PKG_VERSION:=20060419
    PKG_RELEASE:=1
    
    PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    PKG_SOURCE_URL:=http://andrzejekiert.ovh.org/software/fconfig/
    PKG_MD5SUM:=abc1aca11ee9c9d9b65057c3cf1ca88c
    PKG_CAT:=zcat
    
    PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
    PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    
    include $(INCLUDE_DIR)/package.mk
    
    define Package/fconfig
      SECTION:=utils
      CATEGORY:=Utilities
      TITLE:=RedBoot configuration editor
      DESCRIPTION:=\
            displays and (if writable) also edits the RedBoot configuration.
      URL:=http://andrzejekiert.ovh.org/software.html.en
    endef
    
    define Build/Configure
    endef
    
    define Build/Compile
            $(call Build/Compile/Default)
    endef
    
    define Package/fconfig/install
            $(INSTALL_DIR) $(1)/usr/sbin
            $(INSTALL_BIN) $(PKG_BUILD_DIR)/fconfig $(1)/usr/sbin/
    endef
    
    $(eval $(call BuildPackage,fconfig))

....it work fine.

Regards

Hi Mitsus,

Thanks for your information. As you said, I have already started to add the package fconfig and updating the Makefile now.

Meanwhile,  should I need to perform anyother changes in the Redboot code or in the linux mtd driver to handle the
RedBoot config and FIS directory ?  Cos initially, I had the problem in using snapgear linux and referred this link http://wiki.openwrt.org/OpenWrtDocs/Har … d9e21847a9 to update
Redboot config as the RedBoot config and FIS directory are read only and on the same MTD parititions like
....
0x00fc0000-0x00fc1000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
0x00fe0000-0x01000000 : "FIS directory"
...

Does anything need to reconfigure before using fconfig ?

Thanks
Sara

(Last edited by sara on 22 Jul 2008, 15:35)

sara wrote:

Hi Mitsus,

Thanks for your information. As you said, I have already started to add the package fconfig and updating the Makefile now.

Meanwhile,  should I need to perform anyother changes in the Redboot code or in the linux mtd driver to handle the
RedBoot config and FIS directory ?  Cos initially, I had the problem in using snapgear linux and referred this link http://wiki.openwrt.org/OpenWrtDocs/Har … d9e21847a9 to update
Redboot config as the RedBoot config and FIS directory are read only and on the same MTD parititions like
....
0x00fc0000-0x00fc1000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
0x00fe0000-0x01000000 : "FIS directory"
...

Does anything need to reconfigure before using fconfig ?

Thanks
Sara

Try to use jffs2 and now you have a rewritable file system.

Hi Mitsus,

Testing the fconfig throws the following error and the issue is due to RedBoot config size.

root@OpenWrt:/# fconfig -w -v -d /dev/mtd3 -n bootp -x TRUE
Low verbosity messages are printed.
Normal verbosity messages are printed.
Failed to open device or file /dev/mtd3!
Could not get a config data handle!
root@OpenWrt:/#

also can't unlock Redboot Config mtd3
root@OpenWrt:/# mtd unlock mtd3
Unlocking mtd3 ...
Could not open mtd device: mtd3

whereas unlock other mtd's
root@OpenWrt:/# mtd unlock mtd4
Unlocking mtd4 ...
root@OpenWrt:/#

root@OpenWrt:/# cat /proc/mtd and dmesg shows that the erase size of RedBoot config size is 0x1000 and not 0x20000
dev:    size   erasesize  name
mtd0: 00060000 00020000 "RedBoot"
mtd1: 00100000 00020000 "kernel1"
mtd2: 00300000 00020000 "rootfs1"
mtd3: 00001000 00020000 "RedBoot config"
mtd4: 00020000 00020000 "FIS directory"

5 RedBoot partitions found on MTD device IXP4XX-Flash.0
Creating 5 MTD partitions on "IXP4XX-Flash.0":
0x00000000-0x00060000 : "RedBoot"
0x00060000-0x00160000 : "kernel1"
0x00160000-0x00460000 : "rootfs1"
0x00fc0000-0x00fc1000 : "RedBoot config"
mtd: partition "RedBoot config" doesn't end on an erase block -- force read-only
0x00fe0000-0x01000000 : "FIS directory"

Can you please tell me, should I need to update the Redboot bootloader ( resize to 0x20000) or modify
the linux mtd driver ?

Sara

The discussion might have continued from here.