Cannot connect to MangOH board after rebuild kernel

Please search in source.Sierrawireless.com

1 Like

not sure why you have 2 interface with same Ip address 192.168.2.3.
Please double check.

1 Like

it still cannot ping to mangOH board

Are you sure the interface name is correct?
Can module ping the PC?
I don’t see such issue.

owner@CNHKG-EX-001367:~$ sudo ifconfig usb0 192.168.2.3
owner@CNHKG-EX-001367:~$ ping 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_seq=1 ttl=64 time=4.82 ms
64 bytes from 192.168.2.2: icmp_seq=2 ttl=64 time=2.31 ms

You might also set the following to shut down the firewall on module:
iptables -I INPUT -j ACCEPT

X456UR:~$ sudo ifconfig usb0 192.168.2.3
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device.

i really sure that “wwp0s20f0u2i8” is the interface name. When i disconnect to the mangOH, i cannot see this interface.

What is the value of at!usbcomp?
It seems wwp0s20f0u2i8 is wdm device instead of ecm interface.

How can i get the value that you mention before?

please check on AT!USBCOMP=? on how to use this command.

1 Like

Hi jyijyi,
i have another problem when loading the kernel module to target board. My toolchain version and linux kernel version were different. Can you give idea to solve this problem?
my target:
root@swi-mdm9x15:~# uname -r
3.14.29ltsi-961ca71325_ed9f616cc8
my host machine:
vermagic=3.14.29ltsi-yocto-standard preempt mod_unload ARMv7

you need to download the correct toolchain from source.sierrawireless.com, and then install the toolchain.
After that you need to modify the Makefile and compile your kernel module by the toolchain.
Below is an example on the Makefile:


#
# Makefile for kernel test
#
export ARCH=arm
export CROSS_COMPILE=/home/owner/legato/packages/legato.toolchain.1.7.3.SWI9X15Y_07112100-wp85-wp750x-native-x86_64-201701091132/resources/native/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
PWD         := $(shell pwd) 
KVERSION    := $(shell uname -r)
KERNEL_DIR   = /home/owner/legato/packages/legato.toolchain.1.7.3.SWI9X15Y_07112100-wp85-wp750x-native-x86_64-201701091132/resources/native/sysroots/armv7a-vfp-neon-poky-linux-gnueabi/usr/src/kernel
MODULE_NAME  = helloworld
obj-m       := $(MODULE_NAME).o   
all:
	make -C $(KERNEL_DIR) M=$(PWD) modules
clean:
	make -C $(KERNEL_DIR) M=$(PWD) clean