mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-20 00:37:12 +02:00
kernel update works, but without flash checksum
This commit is contained in:
@ -13,8 +13,8 @@
|
||||
|
||||
#define CMD_GET_FPGA_FLASH_DRIVE \
|
||||
"awk \'$5== \"Application\" {print $1}\' /proc/mtd"
|
||||
#define CMD_GET_KERNEL_FLASH_DRIVE "awk \'$5== \"Linux\" {print $1}\' /proc/mtd"
|
||||
|
||||
#define CMD_GET_KERNEL_FLASH_DRIVE \
|
||||
"awk \'$5== \"Linux\" && $9 != \"Backup\\\"\" {print $1}\' /proc/mtd"
|
||||
#define FLASH_DRIVE_NAME_SIZE 16
|
||||
|
||||
#ifdef VIRTUAL
|
||||
@ -121,6 +121,13 @@ int getDrive(char *mess, enum PROGRAM_INDEX index) {
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
if (strlen(retvals) == 0) {
|
||||
LOG(logERROR, ("Could not %s. Could not get mtd drive, script returned "
|
||||
"empty string\n",
|
||||
messageType));
|
||||
return FAIL;
|
||||
}
|
||||
|
||||
char *pch = strtok(retvals, ":");
|
||||
if (pch == NULL) {
|
||||
sprintf(
|
||||
|
Reference in New Issue
Block a user