|
|
@ -111,7 +111,8 @@ data class BootV3(
|
|
|
|
|
|
|
|
|
|
|
|
//data
|
|
|
|
//data
|
|
|
|
log.info("Writing data ...")
|
|
|
|
log.info("Writing data ...")
|
|
|
|
val bf = ByteBuffer.allocate(1024 * 1024 * 96)//assume total SIZE small than 96MB
|
|
|
|
//BootV3 should have correct image size
|
|
|
|
|
|
|
|
val bf = ByteBuffer.allocate(maxOf(info.imageSize.toInt(), 64 *1024 *1024))
|
|
|
|
bf.order(ByteOrder.LITTLE_ENDIAN)
|
|
|
|
bf.order(ByteOrder.LITTLE_ENDIAN)
|
|
|
|
C.writePaddedFile(bf, this.kernel.file, this.info.pageSize)
|
|
|
|
C.writePaddedFile(bf, this.kernel.file, this.info.pageSize)
|
|
|
|
C.writePaddedFile(bf, this.ramdisk.file, this.info.pageSize)
|
|
|
|
C.writePaddedFile(bf, this.ramdisk.file, this.info.pageSize)
|
|
|
|