DmaRomTest
Simple test of the SOC DMA ROM API
- DmaRomTest
Shortest form:
drt.Exercise the SDK’s minimal “DMA ROM” packet API, meant for boot code that runs before the full driver.
Warning
Do not use under
syncd.initsets up the DMA ROM channels next to the ones the running SDK uses for packet I/O,txfloods a 100-byte broadcast test frame to every port, andrxtakes a received packet away from the normal receive path.The keywords are case-sensitive and cannot be abbreviated:
initInitialise the DMA ROM API.
detachRelease it.
rxPoll for one received packet and dump it (
rx: …) or printno packet.txSend the built-in test frame and print
tx done in <n> polls.
Unvalidated
drivshell> DmaRomTest initBuilt-in help
Parameters: [init|detach|rx|tx] init - Calls soc_dma_rom_init() detach - Calls soc_dma_rom_detach() rx - Calls soc_dma_rom_rx_poll() Dumps packet if available tx - Simple packet transmit using soc_dma_rom_tx_start()