Segmentation fault while setup eth1

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I get a Segmentation fault the last days, when I switch on my ngw100. There is also an EXT2-fs warning. I use Linux 2.6.23.atmel.5. It ran for a while with this configuration, but for some days it gives me these errors.

init started:  BusyBox v1.4.2 (2007-04-17 15:34:55 CEST) multi-call binary
 * mounting virtual filesystems: /proc /sys /dev /dev/pts /config /tmp /var/run /var/lib/samba /var/log 
 * set mdev hotplug ...          [ OK ]
 * mdev ...                      EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
[ OK ]
 * setting hostname ...          'ngw.example.net'
 * network loopback ...          [ OK ]
 * starting syslogd ...          [ OK ]
 * log messages to syslog ...    [ OK ]
 * starting klogd ...            [ OK ]
 * probing modules ...           vfat loaded, [ OK ]
 * mounting filesystems:         /usr 
 * setup eth1 (LAN) ...          Segmentation fault
[ OK ]     ()
 * network ...                   [ OK ]
 * starting telnetd ...          [ OK ]
 * enable ipv4 forwarding ...    [ OK ]
 * iptables postrouting ...      [ OK ]
 * iptables incoming trafic ...  [ OK ]
 * iptables outgoung trafic ...  [ OK ]
 * starting dnsmasq ...          [ OK ]
 * running ntpdate ...           [ OK ]
 * starting ntpd ...             [ OK ]
 * starting dropbear ...         [ OK ]
 * starting inetd ...            [ OK ]
 * starting nmbd ...             [ OK ]
 * starting smbd ...             [ OK ]
 * starting winbindd ...         [ OK ]
 * starting httpd ...            [ OK ]
 * get board type for GPIO ...   'NGW'
 * setup GPIO boot LED ...       [ OK ]
 * setup GPIO LED A ...          [ OK ]
 * setup GPIO LED B ...          [ OK ]

Network Gateway ready

I tried to ran it with the original version 2.6.18, but it gives the same error message. Only the Segmentation fault occures, the EXT2-fs warning not with this version.

init started:  BusyBox v1.4.2 (2007-04-17 15:34:55 CEST) multi-call binary
 * mounting virtual filesystems: /proc /sys /dev /dev/pts /config /tmp /var/run /var/lib/samba /var/log 
 * set mdev hotplug ...          [ OK ]
 * mdev ...                      [ OK ]
 * setting hostname ...          'ngw.example.net'
 * network loopback ...          [ OK ]
 * starting syslogd ...          [ OK ]
 * log messages to syslog ...    [ OK ]
 * starting klogd ...            [ OK ]
 * probing modules ...           vfat loaded, [ OK ]
 * mounting filesystems:         /usr 
 * setup eth1 (LAN) ...          Segmentation fault
[ OK ]     ()
 * network ...                   [ OK ]
 * starting telnetd ...          [ OK ]
 * enable ipv4 forwarding ...    [ OK ]
 * iptables postrouting ...      [ OK ]
 * iptables incoming trafic ...  [ OK ]
 * iptables outgoung trafic ...  [ OK ]
 * starting dnsmasq ...          [ OK ]
 * running ntpdate ...           [ OK ]
 * starting ntpd ...             [ OK ]
 * starting dropbear ...         [ OK ]
 * starting inetd ...            [ OK ]
 * starting nmbd ...             [ OK ]
 * starting smbd ...             [ OK ]
 * starting winbindd ...         [ OK ]
 * starting httpd ...            [ OK ]
 * get board type for GPIO ...   'NGW'
 * setup GPIO boot LED ...       [ OK ]
 * setup GPIO LED A ...          [ OK ]
 * setup GPIO LED B ...          [ OK ]

Network Gateway ready

The error occures when the following line is ran:

 IPADDR=`ifconfig eth1 | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`

It looks like, that the awk therm is not running. Has anybody had this error? Can it be a hardware error?

Best Regards
Frank

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Seems like your DataFlash is not entirly intact anymore. You will need to reflash your /dev/mtd3 partition (/usr).

Hans-Christian

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

hce,
Thank You for your quick answer. Do I need the JTAGICE mkII for reflashing the /usr partition.

Best Regards,
Frank

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fwuerri wrote:
hce,
Thank You for your quick answer. Do I need the JTAGICE mkII for reflashing the /usr partition.

Best Regards,
Frank

you can upload the usr image over ftp on /tmp directory and reflash using flash utilities and dd:

flash_eraseall /dev/mtd3
dd if=/ngw_jffs2_usr.img of=/dev/mtd3 bs=1056

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thank you, when I build it, I will try it.

Frank