How rockchip-linux/u-boot works
U-Boot is an embedded boot loader and hardware monitor. Its documented startup begins in architecture-specific code, performs early and board initialization, then provides monitor commands and mechanisms to load and run application images. The README also documents network and storage boot, Linux-image support, and dynamically loaded utilities. The tree shows corresponding runtime subsystems, but sampled source does not establish most of their call paths, so the graph uses README-supported relationships and leaves other wiring unspecified.
Main entry points: cmd Monitor commands · arch Architecture startup · board Board initialization · main.c Command monitor
Components 17
Platform startup
- Architecture startup
arch - CPU initialization
arch - Board initialization
board
Monitor and boot
- Command monitor
common/main.c - Monitor commands
cmd - Image loading
common - Image handoff
arch
Devices and transport
- Network stack
net - Device drivers
drivers - USB mass storage
drivers/usb/gadget/f_mass_storage.c
Storage and filesystems
- Disk partitions
disk - Filesystems
fs - Persistent storage
api/api_storage.c
Display and APIs
- Display subsystem
drivers/video/drm/rockchip_vop2.c - External application API
api
Other components
- Power-on
- Loaded application
Connections 11
- Power-on → Architecture startup: starts
README - Architecture startup → CPU initialization: initializes
README - CPU initialization → Board initialization: continues startup
README - Board initialization → Command monitor: enters monitor
- Command monitor → Monitor commands: dispatches commands
- Monitor commands → Image loading: loads image
- Image loading → Image handoff: hands off
- Image handoff → Loaded application: runs image
README - Monitor commands → Network stack: network boot
README - Monitor commands → Disk partitions: storage boot
README - Monitor commands → Filesystems: storage boot