When I compiled mxc_sim_test and ran it. I found my /sys/devices/soc0/soc_id is i.MX6SX which is not supported in the soc_list in the code below. And /dev/mxc_sim is non-existent thus the SIM test failed. Is there any workaround? Since the SIM slot is soldiered on the iMX board and that's the reason I chose to develop on it. Please advise.
In mxc_sim_test.c:
...
char *soc_list[] = {"i.MX6UL", "i.MX7D", "i.MX8QM", " "};
printf("\n---- Running < %s > test ----\n\n", argv[0]);
ret = soc_version_check(soc_list);
if (ret == 0) {
printf("sim not supported on current soc\n");
return 0;
}
sim_fd = open("/dev/mxc_sim", O_RDWR);
if (sim_fd < 0) {
printf("Error when opening file\n");
return -1;
}
...
Thanks for comments