Use the correct size limit for CRAMFS (10M)
This commit is contained in:
parent
227f9614b0
commit
8321c76f4c
@ -16,8 +16,9 @@ function build() {
|
|||||||
bootnews += " "
|
bootnews += " "
|
||||||
|
|
||||||
let cr = fs.readFileSync("cram.bin")
|
let cr = fs.readFileSync("cram.bin")
|
||||||
if (cr.length > 10878976) {
|
|
||||||
console.log("too big")
|
if (cr.length > 10485760) {
|
||||||
|
console.log("too big by " + (cr.length - 10485760))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
let img = fs.readFileSync("EV3 Firmware V1.09D.bin")
|
let img = fs.readFileSync("EV3 Firmware V1.09D.bin")
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# dd if=EV3\ Firmware\ V1.09D.bin of=orig.cram bs=65536 skip=37 count=400
|
# dd if=EV3\ Firmware\ V1.09D.bin of=orig.cram bs=65536 skip=37 count=400
|
||||||
|
|
||||||
|
sudo cp linux/pxt/uf2daemon/server dev-ev3/home/root/lms2012/sys/uf2d
|
||||||
|
sudo cp linux/pxt/kernel/d_usbdev.ko dev-ev3/home/root/lms2012/sys/mod/d_usbdev.ko
|
||||||
|
sudo chown -R root:root dev-ev3/home/root/lms2012
|
||||||
sudo mkfs.cramfs dev-ev3 cram.bin
|
sudo mkfs.cramfs dev-ev3 cram.bin
|
||||||
node img
|
node img
|
||||||
ls -l firmware.bin
|
ls -l firmware.bin
|
||||||
|
Loading…
Reference in New Issue
Block a user