Wind River Support Network

HomeDefectsCGP6-378
Fixed

CGP6-378 : kgdb.sh in CUT will fail if the system NIC is not eth0

Created: Mar 7, 2014    Updated: Mar 11, 2016
Resolved Date: Mar 24, 2014
Found In Version: 6.0.0.3
Fix Version: 6.0.0.4
Severity: Standard
Applicable for: Wind River Linux 6
Component/s: Userspace

Description

In kgdb.sh, load kgdboe module with "modprobe kgdboe kgdboe=@$ip/,@192.168.0.100/"
if $ip is set to eth1, not eth0, this operation will fail. so we need another paramaer “nic” get the correct NIC and change the command as bellow:
modprobe kgdboe kgdboe=@$ip/$nic,@192.168.0.100/

Steps to Reproduce

configure --enable-board=fsl-b4xxx --enable-kernel=cgl+netfilter --enable-rootfs=glibc-cgl --with-template=feature/cut,feature/analysis,feature/debug --enable-build=profiling --enable-test=yes
make fs

Make sure system use other NIC expect eth0.
cd /opt/cut
./cgl_test.sh -e kgdb.sh 
Live chat
Online