diff options
Diffstat (limited to 'samsung-ipc/device/xmm6260/fwloader_i9100.c')
-rw-r--r-- | samsung-ipc/device/xmm6260/fwloader_i9100.c | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/samsung-ipc/device/xmm6260/fwloader_i9100.c b/samsung-ipc/device/xmm6260/fwloader_i9100.c index b083610..2af85ac 100644 --- a/samsung-ipc/device/xmm6260/fwloader_i9100.c +++ b/samsung-ipc/device/xmm6260/fwloader_i9100.c @@ -133,22 +133,6 @@ typedef struct { uint32_t data_size; } __attribute__((packed)) bootloader_cmd_t; -/* - * Bootloader protocol - */ -static unsigned char calculateCRC(void* data, - size_t offset, size_t length) -{ - unsigned char crc = 0; - unsigned char *ptr = (unsigned char*)(data + offset); - - while (length--) { - crc ^= *ptr++; - } - - return crc; -} - static int send_image(fwloader_context *ctx, enum xmm6260_image type) { int ret; @@ -662,7 +646,7 @@ int boot_modem_i9100(void) { goto fail; } - ctx.boot_fd = open(BOOT_DEV, O_RDWR); + ctx.boot_fd = open(BOOT_DEV, O_RDWR | O_NOCTTY | O_NONBLOCK); if (ctx.boot_fd < 0) { _e("failed to open boot device"); goto fail; |