From 5d2ed54d26e293a5eea870d9458e36d0d02083fb Mon Sep 17 00:00:00 2001 From: fangpeina Date: Sat, 29 Aug 2026 00:41:05 +0800 Subject: [PATCH] Documentation/applications/system/fastboot: add multi-transport info Add Transports section describing USB, TCP, and Serial backends with host-side command syntax. Update Prepare section to reference per-transport Kconfig options. Signed-off-by: fangpeina --- .../applications/system/fastboot/index.rst | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/Documentation/applications/system/fastboot/index.rst b/Documentation/applications/system/fastboot/index.rst index 30f937a3e44..67bd09e97f7 100644 --- a/Documentation/applications/system/fastboot/index.rst +++ b/Documentation/applications/system/fastboot/index.rst @@ -6,9 +6,19 @@ Prepare - Check fastboot tool(Host): :code:`fastboot --version` - Download fastboot tool and install(Host): `platform-tools `__ -- Enable the fastbootd application(Device): :code:`CONFIG_USBFASTBOOT=y` and :code:`CONFIG_SYSTEM_FASTBOOTD=y` +- Enable the fastbootd application(Device): :code:`CONFIG_SYSTEM_FASTBOOTD=y` +- Enable at least one transport: USB (:code:`CONFIG_SYSTEM_FASTBOOTD_USB=y`), TCP (:code:`CONFIG_SYSTEM_FASTBOOTD_TCP=y`), or Serial (:code:`CONFIG_SYSTEM_FASTBOOTD_SERIAL=y`) - Start fastbootd(Device): :code:`fastbootd &` +Transports +========================== + +The fastboot daemon supports multiple transport backends concurrently. Each transport can be individually enabled via Kconfig. + +- **USB**: Native USB fastboot protocol. Requires :code:`CONFIG_USBFASTBOOT=y`. Host: :code:`fastboot -s ` or just :code:`fastboot ` +- **TCP**: Fastboot TCP v1 protocol on port 5554. Requires :code:`CONFIG_NET_TCP=y`. Host: :code:`fastboot -s tcp:[:port] ` +- **Serial**: UART transport using TCP v1 wire framing. Use ``socat`` on the host to bridge the serial port to a TCP socket. Host: :code:`fastboot -s tcp:: ` + Commands ========================== - :code:`fastboot reboot [FLAG]`: Reboot the device, more details for :code:`[FLAG]`: `g_resetflag `__ and `boardioc_softreset_subreason_e `__ @@ -31,6 +41,7 @@ Examples - Exit fastboot mode: :code:`fastboot reboot` - Flash app.bin to partition /dev/app: :code:`fastboot flash app ./app.bin` - Erase partition /dev/userdata: :code:`fastboot erase userdata` -- Dump partition /dev/app: :code:`fastboot filedump /dev/app` and then :code:`fastboot get_staged ./dump_app.bin` +- Dump partition /dev/app: :code:`fastboot oem filedump /dev/app` and then :code:`fastboot get_staged ./dump_app.bin` - Dump memory from 0x44000000 to 0x440b6c00: :code:`fastboot oem memdump 0x44000000 0xb6c00` and then :code:`fastboot get_staged ./mem_44000000_440b6c00.bin` - Create RAM disk "/dev/ram10" of size 320KB: :code:`fastboot oem shell "mkrd -m 10 -s 512 640"` +- Serial transport via socat: :code:`sudo socat -t 0 PTY,link=/dev/ttyFB,raw,echo=0 TCP-LISTEN:5556,reuseaddr,fork,nodelay &` then :code:`fastboot -s tcp:127.0.0.1:5556 getvar version`