AXCF 2152 is failing to boot with SD Card
AXCF 2152 fails to boot with SD Card. Boot LED blinks at 2-3 Hz for couple of seconds after that only D led is continuously ON in orange colour. It don't go beyond that. There is no ping/ssh response from device. From wireshark I could not see any packet originating with AXCF 2152's MAC. It was working fine for ~2 weeks, one sudden day device reached this state
However device boots fine without SD card. In absence of SD Card It goes back to it's default configuration (no root user, 192.168.1.10 as default ip). I can read content of SD Card from Linux device.
Can you please suggest a way to boot device with SD card.
Comments
Hello Vikash,
Can you tell me the FW Version of your Device?
What happens when you insert the SD Card after booting?
after inserting the SD Card can you connect via SSH?
-> please download in that state the content of "/var/log" folder and "/opt/plcnext/logs" folder
Did you configure DHCP?
Is it possible that the hardware write protection (lock switch) of your SDCard is enabled?
kind regards,
Oliver
Hello Oliver,
Can you tell me the FW Version of your Device?
Device is running Firmware version 2019.03
What happens when you insert the SD Card after booting?
There is no change if SD card is inserting after booting(at runtime). I could not find any 2GB(SD card size) volume in response of df -h either.
after inserting the SD Card can you connect via SSH?
yes, ssh and ping are possible if SD card is inserted after booting. There is no change that i could identify
In logs it mentions that device SD card hot plugging is not allowed and requests reboot. On reboot situation becomes same(Stuck on D orange LED). After this SD Card needs to be removed for device to boot. On next boot device reaches it's default state(no root user, default static ip). Please find requested logs on following link
https://www.dropbox.com/s/2blpwro8b4gnu45/logs.zip?dl=0
Did you configure DHCP?
Device is running with static IP. No DHCP was configured.
Is it possible that the hardware write protection (lock switch) of your SDCard is enabled?
I had double checked this. Write protection(lock switch) is not enabled.
Hello Vikash,
Actually the SD seems to be recognised correctly at /dev/mmcblk1.
If you are able to mount the SD Card with a PC (needs to support ext4).
You can create a backup and have a look at its contents.
is the Folder structure okay?
License Folder still there?
To test the SD functions you can Wipe the "upperdir/" folder on the SD Card.
You can also have a look at the "upperdir/var/log" folder on the SD Card.
Is the LINK and acknoledge LED turning on when booting with SD Card?
Can you try accessing 192.168.2.10 or 192.168.1.10.?
Also check your PCs ARP table with "arp -a" or something similar If it recognised the PLC when pluging in Network cable again.
I do not know of any cases where the SD suddenly stops working.
What kind of Application are you running?
Are you logging large amounts of data with many writing access?
Is your PLC running in a closed environment or has open internet access?
-> did you enable Firewall mechanisms?
Hello Oliver,
I was able to mount the SD card and took back up of the required things. license folder was there in SD card. I could not verify each and every file but files that we had added were there.
We are porting protocol converter application to PLC Next device. Application is being compiled in AXCF 2152 device itself. This involves regular compilation and causes significant read/writes to SD card.
The PLCNext device is cross connected with PC(not via router/switch) and there was no message from PLC Next device. There is no ping response of default ips either.
On wiping upperdir folder in SD card device is again getting stuck with similar behaviour. However in this case BOOT LED is blinking(red) continuously along with permanent ON of D LED.
EDIT: Please note that on deletion of upperdir folder device settings do not go to defaults as it was happening previously.
Hello vikash,
after you wiped (upperdir) of the SD Card and booted with the SD was the upperdir folder created again?
Or were the logs at "upperdir/var/log"created on the SD?
Hello Oliver,
upperdir directory was not created again after inserting it back to plcnext device, hence no upperdir/var/log either.