Skip to content

Commit

Permalink
esp8266: fix filesystem build breakage for flash based fs
Browse files Browse the repository at this point in the history
Not a feature that's generally used and it seems to have not entirely
survived the conversion.

It now builds the bits and make burn appears to run if the option for
filesystem as well is uncommented. Make fburn not and appears to be obsolete
  • Loading branch information
EtchedPixels committed Sep 26, 2024
1 parent ece3f7d commit 1a55b76
Show file tree
Hide file tree
Showing 2 changed files with 179 additions and 181 deletions.
4 changes: 2 additions & 2 deletions Kernel/platform/platform-esp8266/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ filesystem.img::

filesystem.ftl: filesystem.img
# -s is the flash size in kilobytes; the kernel and boot loader takes the first 64kB.
../../../../Standalone/mkftl -s 1984 -e 0x1000 -p 512 -g 10 filesystem.img -o filesystem.ftl
../../../Standalone/mkftl -s 1984 -e 0x1000 -p 512 -g 10 filesystem.img -o filesystem.ftl

filesystem.elf: filesystem.ftl
xtensa-lx106-elf-objcopy -I binary -O elf32-xtensa-le --change-section-vma .data=0x40220000 filesystem.ftl filesystem.elf
Expand All @@ -95,7 +95,7 @@ image: image.elf
burn: image
# You can use qio on a lot of parts but if it doesn't work try dio. For the ESP8285 use dout
esptool --port /dev/ttyUSB0 write_flash 0x00000 image.elf-0x00000.bin 0x10000 image.elf-0x10000.bin -fs 4MB -ff 80m -fm dio
#esptool --port /dev/ttyUSB0 write_flash 0x00000 image.elf-0x00000.bin 0x10000 image.elf-0x10000.bin 0x100000 ../../filesystem.ftl -ff 80m -fm dout
#esptool --port /dev/ttyUSB0 write_flash 0x00000 image.elf-0x00000.bin 0x10000 image.elf-0x10000.bin 0x100000 filesystem.ftl -ff 80m -fm dout
#esptool --port /dev/ttyUSB0 write_flash 0x00000 image.elf-0x00000.bin -ff 80m -fm dout

clean:
Expand Down
Loading

0 comments on commit 1a55b76

Please sign in to comment.