Implement reading firmware on Horus via USB (#5442)
* Add firmware lun target for non EEPROM platforms * Fix Fat fat tables and make FAT 1024 byte big * Niceify some constants * Cleanup (saves 1024 byte of flash) and fix reporting wrong Size of drive * Silence compiler warning, set right size for flash on X12/X10 * Add firmware.txt/bootload.txt to virtual drive that displays version information * Report also version of other component (bootloader/firmware) * Show version also in bootloader and fix F4 platforms * Save space on X7 * Fix X7 logic * Compile fix for AVR * avr-gcc does not like no newline after ifdef * Really fix avr
This commit is contained in:
committed by
Bertrand Songis
parent
d13e770ac4
commit
975759284d
+6
-3
@@ -1,4 +1,4 @@
|
||||
#!/bin/env python
|
||||
#!/usr/bin/env python
|
||||
|
||||
from __future__ import division, print_function
|
||||
|
||||
@@ -46,12 +46,15 @@ def pushDisk(eeprom, flash):
|
||||
print("Disk with %dk EEPROM and %dk FLASH:" % (eeprom, flash))
|
||||
pushCluster(0xFF8)
|
||||
pushCluster(0xFFF)
|
||||
pushFile(eeprom * 1024)
|
||||
pushFile(flash * 1024)
|
||||
if eeprom > 0:
|
||||
pushFile(eeprom * 1024)
|
||||
while byte < 512:
|
||||
push4bits(0)
|
||||
print()
|
||||
|
||||
|
||||
#pushDisk(32, 512)
|
||||
pushDisk(32, 512)
|
||||
pushDisk(64, 512)
|
||||
|
||||
pushDisk(0, 2048)
|
||||
|
||||
Reference in New Issue
Block a user