4 Create firmware for 8MB Bifferboards
5 Firmware does not include the config blocks
6 Firmware starts just after config
11 kernel_extent
= 0x200000
14 if __name__
== "__main__":
16 if len(sys
.argv
) != 4:
17 print "usage: mkimg_bifferboard.py <kernel> <64k JFFS> <output file>"
25 fw
= file(bzimage
).read()
26 if len(fw
) > (kernel_extent
- config
):
27 raise IOError("Kernel too large")
30 while len(fw
) < (kernel_extent
- config
):
33 fw
+= file(rootfs
).read()
35 # Check length of total
36 if len(fw
) > (0x800000 - 0x10000 - 0x6000):
37 raise IOError("Rootfs too large")
39 file(target
,"wb").write(fw
)
40 print "Firmware written to '%s'" % target
This page took 0.045626 seconds and 5 git commands to generate.