foboot/sw
Michal Sieron 21b5f12825 sw: Fix RAM boot detection
Up until now, docs said that RAM boot happens, when foboot finds
`0x17ab0f23` in first 56 bytes of loaded binary.

That wasn't the case, it was checking only first 12 bytes.
`for` loop did at most `(max_check/4)-1` iterations, which is equal to 15,
because `max_check` has the value of `rx_buffer` size from usb-dev.c.

15 times 4 byte words results in 60 checked bytes, but there was also
division by 4 when accessing items of `dfu_buffer`, which reduced number
of checks to 3.

I also corrected the docs from 56 checked bytes to 60.
2022-03-17 16:40:00 +01:00
..
include sync litex version and patch system.h to fix compatibility 2020-05-15 17:50:32 +08:00
ld Add options for ram boot compilation (LOAD_RAM_ADDR and LOAD_BOOT_CONFIG) 2020-08-01 18:22:08 +02:00
src sw: Fix RAM boot detection 2022-03-17 16:40:00 +01:00
third_party Add options for ram boot compilation (LOAD_RAM_ADDR and LOAD_BOOT_CONFIG) 2020-08-01 18:22:08 +02:00
Makefile sw: fix windows build on newer powershell versions 2020-10-07 09:30:58 +08:00