Failed to run DHCP server on MangoH Red board

Hi,

The DHCP server fails to run on the MangoH red board.
How to recover the same ?

Attaching logs.

Logs:
[ 22.623710] diag: In diag_send_feature_mask_update, control channel is not open, p: 0, c1017114
Starting irsc_util: Starting irsc tool
Failed to open file:/etc/sec_config
Absent/Invalid config,Default rules apply
Ending irsc tool
done
Starting netmgrd: done
Starting powerconfig for mdm9607: Starting fs-scrub-daemon: done
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.ip_forward = 1
rm: can’t remove ‘/var/log/wtmp’: No such file or directory
Starting eMBMs_TunnelingModule: done
Starting qmi_ip: done
starting DNS forwarder and DHCP server: dnsmasq…
dnsmasq: cannot access /etc/dnsmasq.d/dnsmasq.wlan.conf: No such file or directory
Starting Dropbear SSH server: DONE
Starting port_bridge: done
dropbear.
cat: can’t open ‘/sys/devices/virtual/android_usb/android0/f_ecm/native_ethaddr’: No such file or directory
stopping DNS forwarder and DHCP server: dnsmasq… no /usr/bin/dnsmasq found; none killed
starting DNS forwarder and DHCP server: dnsmasq…
dnsmasq: cannot access /etc/dnsmasq.d/dnsmasq.wlan.conf: No such file or directory
run_getty.sh: ttyHSL1 reserved for CONSOLE

Poky (Yocto Project Reference Distro) 2.5.2 swi-mdm9x28-wp /dev/ttyHSL1

Image info:

root@swi-mdm9x28-wp:~# cm info
Device: WP7607
IMEI: 359779080125194
IMEISV: 6
FSN: VN842200670510
Firmware Version: SWI9X07Y_02.28[ 1506.552223] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 c0
.03.03 000000 jenkins 2019/05/21 03:33:04
Bootloader Version: [ 1506.572560] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) m0
SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04
MCU Version: 002.011
PRI Part Number (PN): 9907327
PRI Revision: 001.004
Carrier PRI Name: SIERRA
Carrier PRI Revision: 001.026_000
SKU: 1103511
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 492 Unexpected: 0
root@swi-mdm9x28-wp:~#
dhcp_log.txt (84.9 KB)

“/etc/dnsmasq.d/dnsmasq.wlan.conf: No such file or directory”

Not sure if this line makes problem.

You can have a look on this thread, there is cfg_gateway.sh to set up the dns server for ethernet interface:

Hi jyijyi,

the above link i dont get any info on how to enable the dchp on MangoH red board.

Is there any dhcp command as such which can be run when the board comes up ?

I saw there is such thing in the link:


Generating the configuration file ‘/tmp/dnsmasq.eth0.conf’ for the DHCP server…
Restarting the DHCP server…
starting DNS forwarder and DHCP server: dnsmasq… done.
MangOH gateway configuration completed


Ok here is something that i guess would have caused this problem.
I had flashed yocto seperately. Does this have some issue when the firmware is updated.

currently i m trying to update to release 12, but my board is not going to download mode.
I want to erase everything adn reflash again. Any steps in particular to be followed ?

You need to use swiflash tool on r12

yes i am using the same swiflash tool on ubuntu, but MangoH red board does not go to download mode at all.
Any dip switch setting ? On mine 3 and 8 are high on SW401

How about entering “at!boothold”

thanks jyijyi!! was able to flash and get dhcp up and running on the Board.
Mentioning the steps below so that it might help someone facing the same.

Steps followed.
a. On the WP AT cmd terminal entered - “at!boothold” - MangoH red board enters into dnld mode. Due to some reason the board was not going to dnld mode from the swiflash tool.

b. Using the swiflash tool, flash R12 image from PC. This image has support to erase rootfs and kernel image.

swiflash -m "wp76xx" -i WP76xx_release12_Generic_GCF.spk

c. Reboot the board.

d. Using swiflash too, erase the rootfs and kernel

 swiflash -m "wp76xx" -r

e. Flash the R13 / R12 image, using the command as in step b. Reboot.

f. After reboot, on wp76xx, assign ecm0 192.168.2.2 and on the PC the usb0 is assigned with 192.168.2.3 automatically.
g. On the MangoH red board, check for dhcp in dmesg.

I had flashed yocto seperately. Does this have some issue when the firmware is updated.

currently i m trying to update to release 12, but my board is not going to download mode.

How about using windows exe file to update?