Skip to content

phoenix-rtos/phoenix-rtos-lwip

Repository files navigation

lwIP network server for Phoenix-RTOS

Run

netsrv driver [driver...]

where driver is one of:

  1. RTL8139C+ (eg. as emulated by qemu)

    rtl:pcidev:irq

    pcidev = (bus << 8) | (dev << 3) | (fn << 0)

For qemu, it's usually: rtl:0x10:10

  1. iMX ENET module (== "Freescale Ethernet Controller"?)

    enet:mmio:irq[:no-mdio][:phyinfo]

no-mdio disables MDIO support (only one module can drive MDIO bus)

When an external PHY is used, phyinfo is formatted as follows:

PHY[:model]:[busnr.]id[:reset:[-]n:/dev/gpioX][:irq:[-]n:/dev/gpioX]

model = PHY chip model in lowercase, one of: { ksz8081rna, ksz8081rnb, ksz8081rnd, rtl8201fi-vc-cg, rtl8211fdi-cg }

busnr = bus registered by driver (in driver-arg-order, counted from 0)

id = PHY address

reset/irq: GPIO descriptors:

minus = signal is active-low

n = pin number

/dev/gpioX = GPIO bank driver node

(When GPIOs are used, gpiosrv must be already running.)

iMX.6ULL's evaluation board needs:

enet:0x02188000:150:PHY:ksz8081rnb:0.2:irq:5:/dev/gpio5 enet:0x020b4000:152:no-mdio:PHY:ksz8081rnb:0.1:irq:6:/dev/gpio5

iMX.RT1064's evaluation board needs:

enet:0x402D8000:130:PHY:ksz8081rnb:0.2:irq:-10:/dev/gpio1:reset:-9:/dev/gpio1

iMX.RT1170's evaluation board B (EVKB) needs:

enet:0x40424000:153:PHY:rtl8201fi-vc-cg:0.3:reset:12:/dev/gpio12:irq:-11:/dev/gpio9
enet:0x40420000:157:PHY:rtl8211fdi-cg:1.1:reset:-14:/dev/gpio11:irq:-13:/dev/gpio11

Build

make TARGET=target

where target matches kernel/libphoenix TARGET value.

License

This work is licensed under a BSD license. See the LICENSE file for details.

SPDX-License-Identifier: BSD-3-Clause

About

lwIP with Phoenix-RTOS support

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 20