aen-ethernet-link
Bring up the Alif Ensemble E8 GMAC Ethernet and report net-interface state. BENCH-VERIFIED on E8 — DHCP lease acquired, confirmed server-side (dnsmasq lease + ARP REACHABLE).
Source: examples/aen/aen-ethernet-link/.
What it does
- Powers the PHY and brings up the GMAC (
eth_dwmac+ the SDK'salif,ethernetglue) over RMII. - Reports
net_ifstate via the Zephyr networking API and waits for a DHCP lease.
The key correctness fact: the GMAC DMA descriptor rings and the net_buf pool must sit in global SRAM0 (chosen zephyr,sram = &sram0, CPU address == DMA address) with CONFIG_DCACHE=n. In the M55 DTCM — the default — they are off the GMAC DMA bus and the link never comes up. A BUILD_ASSERT now rejects the silent cache-incoherent combination. The verified bench clock path is the external 50 MHz RMII oscillator.
board.yaml
som:
sku: E1M-AEN801
preset: e1m-evk
cores:
m55_he:
app: ./src
peripherals: [ethernet]
diagnostics:
log_level: info
Expected output
[aen-ethernet-link] PHY up, RMII refclk locked
[aen-ethernet-link] DHCP bound: 192.168.10.137
See also
Questions about this page? Discuss in Community Forum