OpenWrt Forum Archive

Topic: update RedBoot Config from linux

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

Hi all,

Has anybody used the package fconfig ( fconfig-20060419.tar.gz)  to update the RedBoot config
within the linux on Intel IXP425 board ?

Cos fconfig on my Pronghorn SBC board throws the following error

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:/#

Here are the snapshots of dmesg and mtd partitions info
...
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"

root@OpenWrt:/# cat /proc/mtd
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"

any idea why fconfig doesn't open and update the Redboot Config partitions ?


Sara

Hi Sara,

Did you manage to get this working?
What are you using openwrt for?
Ady

Hi Ady,

I still have the problem in updating RedBoot config. As RedBoot config size (0X1000) doesn't equal to the mtd
erase size (0x20000) and combined with FIS directory, it throws the error.

If you had a fix, it would be realy helpful for me.

Well, I am using openwrt for my wireless application project and to automate the firmware updates, I need to modify
"boot_script_data" in the "RedBoot config" partition to boot images from the alternate parititions.

Sara

(Last edited by sara on 27 Aug 2008, 14:20)

The discussion might have continued from here.