dhcp: Clear IP address before discovering DHCP Clear IP address before sending DHCP discover message. Otherwise when device has been assigned different address previously, it will drop DHCP offer from server, because destination IP from TCP header won't match assigned IP and the packet will be dropped. This situation may happen when fastboot was closed and started again without resetting AP and DHCP server decides to offer different IP address than the previously assigned. BRANCH=main BUG=None TEST=Use bootloader fastboot Change-Id: I9efa5d6a6785518cc510f194caf2bcda178a981e Signed-off-by: Tomasz Michalec <tmichalec@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/depthcharge/+/7551591 Commit-Queue: Julius Werner <jwerner@chromium.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Depthcharge is a bootloader for ChromeOS devices. It is responsible for initializing hardware, setting up the boot environment, and loading the operating system.
src/: Contains the source code for the depthcharge bootloader.board/: Contains the board-specific configuration files.src/drivers/: Contains the device drivers.To build depthcharge, you will need a ChromeOS development environment. Within the chroot:
emerge-$BOARD sys-boot/depthcharge Remember to build it before you build `chromeos-bootimage`!