Modify

Opened 8 years ago

Closed 8 years ago

#3134 closed defect (worksforme)

uci-0.2.5 brakes system network configuration

Reported by: acoul <alex@…> Owned by: developers
Priority: high Milestone: Kamikaze 8.09 RC1
Component: base system Version:
Keywords: Cc:

Description

root@(none):/# uname -a
Linux OpenWrt 2.6.23.14 #6 SMP Sun Feb 10 16:42:33 EET 2008 i486 unknown
root@(none):/# cat /etc/config/network
# Copyright (C) 2006 OpenWrt.org

config interface loopback
        option ifname   lo
        option proto    static
        option ipaddr   127.0.0.1
        option netmask  255.0.0.0

config interface lan
        option ifname   eth0
        option type     bridge
        option proto    static
        option ipaddr   192.168.1.1
        option netmask  255.255.255.0
root@(none):/# sh -x /sbin/ifup loopback
+ . /sbin/ifdown loopback
+ . /etc/functions.sh
+ alias debug=:
+ N=

+ _C=0
+ NO_EXPORT=1
+ LOAD_STATE=1
+ reset_cb
+ [ -z  -a -f /lib/config/uci.sh ]
+ . /lib/config/uci.sh
+ [ 1 = 0 ]
+ [ xloopback = x-a ]
+ uci_revert_state network loopback
+ local PACKAGE=network
+ local CONFIG=loopback
+ local OPTION=
+ /sbin/uci -P /var/state revert network.loopback.
+ include /lib/network
+ local file
+ ls /lib/network/config.sh
+ . /lib/network/config.sh
+ scan_interfaces
+ local cfgfile=
+ local mode iftype iface ifname device
+ interfaces=
+ config_load
+ [ -n  ]
+ uci_load
+ local PACKAGE=
+ local DATA
+ local RET
+ _C=0
+ export -n CONFIG_SECTIONS=
+ export -n CONFIG_NUM_SECTIONS=0
+ export -n CONFIG_SECTION=
+ /sbin/uci -P /var/state -S -n export
+ DATA=
+ RET=1
+ [ 1 != 0 -o -z  ]
+ unset DATA
+ config_cb
+ config_get iftype  TYPE
+ eval export -n -- "iftype=${CONFIG__TYPE}"
+ export -n -- iftype=
+ return 1
+ cfg=loopback
+ : ### ifdown loopback ###
+ config_get proto loopback proto
+ eval export -n -- "proto=${CONFIG_loopback_proto}"
+ export -n -- proto=
+ [ -z  ]
+ echo interface not found.
interface not found.
+ exit
root@(none):/# /sbin/uci -P /var/state revert network.loopback.
root@(none):/#
root@(none):/# /sbin/uci -P /var/state -S -n export
package 'dropbear'

config 'dropbear' 'cfg02541f'
        option 'PasswordAuth' 'on'
        option 'Port' '22'

package 'fstab'

config 'mount' 'cfg023ae5'
        option 'target' '/home'
        option 'device' '/dev/sda1'
        option 'fstype' 'ext3'
        option 'options' 'rw,sync'
        option 'enabled' '0'

config 'swap' 'cfg049a12'
        option 'device' '/dev/sda2'
        option 'enabled' '0'

package 'network'

config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

config 'interface' 'lan'
        option 'ifname' 'eth0'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '192.168.1.1'
        option 'netmask' '255.255.255.0'

package 'system'

config 'system' 'cfg02f4d8'
        option 'hostname' 'OpenWrt'

Attachments (0)

Change History (5)

comment:1 Changed 8 years ago by acoul <alex@…>

it looks like the problem appeared after snapshot [10366] and remains up to [10450]. anyone that wants a functional snapshot on a x86 platform as far as the network configuration should stick for the time being @ snapshot [10366]. I am looking into this issue and will report back any news about this issue.

comment:2 Changed 8 years ago by thepeople

have you tried updating uci and libuci to version .3?

comment:3 Changed 8 years ago by acoul <alex@…>

yes, snapshot [10450] does include uci v3. here http://wifi.ozo.com/airo/openwrt/firmware/kamikaze/2.6/x86/10450/ are the relative images.

comment:4 Changed 8 years ago by acoul <alex@…>

this issue is related on the gcc-4.2.3. Using gcc-4.2.2 to create the image resolves this problem.

comment:5 Changed 8 years ago by blogic

  • Resolution set to worksforme
  • Status changed from new to closed

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.