13 Commits

Author SHA1 Message Date
b62bb2fefb network: add MediaTek DHCPD support
- Add header: include/net/mtk_dhcpd.h
- Add implementation: net/mtk_dhcpd.c
- Add Kconfig option: CONFIG_MTK_DHCPD (depends on CONFIG_HTTPD)
- Include mtk_dhcpd.o in net/Makefile
- failsafe/failsafe.c:
    - call mtk_dhcpd_start() before Web failsafe starts
    - call mtk_dhcpd_stop() after Web failsafe exits
- net/net.c: call mtk_dhcpd_start() after net_loop(TCP) initialization
  to provide a fallback hook
2026-03-10 11:59:05 +08:00
Tianling Shen
3788274583 uboot: add glbtn header
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-10-07 10:40:45 +08:00
Tianling Shen
67ab0457d2 uboot: add fit_get_totalsize support from openwrt
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-09-10 16:39:17 +08:00
Simon Glass
9056392f74 uboot-mtk-20220606: image: Allow loading a FIT image for a particular phase
Add support for filtering out FIT images by phase. Rather than adding yet
another argument to this already overloaded function, use a composite
value, where the phase is only added in if needed.

The FIT config is still selected (and verified) as normal, but the images
are selected based on the phase.

Tests for this come in a little later, as part of the updated VPL test.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-09-10 16:39:17 +08:00
Simon Glass
eb7c85176b uboot-mtk-20220606: image: Add the concept of a phase to FIT
We want to be able to mark an image as related to a phase, so we can
easily load all the images for SPL or for U-Boot proper.

Add this to the FIT specification, along with some access functions.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-09-10 16:39:17 +08:00
Simon Glass
5a470aa595 uboot-mtk-20220606: image: Move comment for fit_conf_find_compat()
Move this comment to the header file, where the APIs should be defined.

Signed-off-by: Simon Glass <sjg@chromium.org>
2024-09-10 16:39:17 +08:00
Sean Anderson
45a4367ee5 uboot-mtk-20220606: image: fit: Add some helpers for getting data
Several different firmware users have repetitive code to extract the
firmware data from a FIT. Add some helper functions to reduce the amount
of repetition. fit_conf_get_prop_node (eventually) calls
fdt_check_node_offset_, so we can avoid an explicit if. In general, this
version avoids printing on error because the callers are typically
library functions, and because the FIT code generally has (debug)
prints of its own. One difference in these helpers is that they use
fit_image_get_data_and_size instead of fit_image_get_data, as the former
handles external data correctly.

Signed-off-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2024-09-10 16:39:17 +08:00
Aabandon
0547d940aa uboot: add support for fmsh gsto dosilicon spi-nand 2024-09-03 20:57:26 +08:00
hanwckf
1869c74691 uboot: add support for foresee spi-nand 2024-01-31 10:14:25 +08:00
hanwckf
650bc8fb25 uboot: update esmt spi-nand support 2023-08-27 02:16:22 +08:00
hanwckf
4dde86f5ac uboot: add etron spi-nand support 2023-08-27 02:16:22 +08:00
niyin
4196c8d9c2 uboot: optimize the automatic upgrade time 2022-09-12 20:01:00 -07:00
Jianhui Zhao
cc7705c272 Init
Signed-off-by: Jianhui Zhao <jianhui.zhao@gl-inet.com>
2022-09-07 16:27:20 +08:00