MIPS: qemu-malta*_defconfig: enable e1000 network driver
PATCH 1/1 MIPS: qemu-malta*_defconfig: enable e1000 network driver
Thanks to Denis Orlov's work on dma_sync_single_for_*() interface and e1000 patches we can enable e1000 support on both 32-bit and 64-bit qemu malta boards.
32-bit malta qemu command line:
qemu-system-mips -M malta -cpu 24Kf -m 256M \
-nographic -serial mon:stdio \
-bios images/barebox-qemu-malta.img \
-net user,tftp=$(pwd) -net nic,model=e100064-bit malta qemu command line:
qemu-system-mips64el -M malta -cpu MIPS64R2-generic -m 256M \
-nographic -serial mon:stdio \
-bios images/barebox-qemu-malta.img.swapped \
-net user,tftp=$(pwd) -net nic,model=e1000Barebox commands to check e1000 network interface:
barebox@qemu malta:/ devinfo eth0
Parent: pci-8086:100e.0
Parameters:
ethaddr: 52:54:00:12:34:56 (type: MAC)
gateway: 0.0.0.0 (type: ipv4)
ipaddr: 0.0.0.0 (type: ipv4)
linux.bootargs: (type: string)
linux.devname: (type: string)
mode: dhcp (type: enum) (values: "dhcp", "static", "disabled")
netmask: 0.0.0.0 (type: ipv4)
serverip: (type: string)
barebox@qemu malta:/ devinfo pci-8086:100e.0
Driver: e1000
Bus: pci
Parameters:
class: 0200 (type: string)
devfn: 90 (type: string)
device: 100e (type: string)
revision: 0003 (type: string)
vendor: 8086 (type: string)
barebox@qemu malta:/ dhcp eth0
eth0: DHCP client bound to address 10.0.2.15
barebox@qemu malta:/ tftp images/barebox-qemu-malta.img
[################################################################]Signed-off-by Antony Pavlov <[email protected]>
--- arch/mips/configs/qemu-malta64el_defconfig | 1 + arch/mips/configs/qemu-malta_defconfig | 1 + 2 files changed, 2 insertions(+)
arch/mips/configs/qemu-malta64el_defconfig +1 -0
@@ -63,6 +63,7 @@ CONFIG_NET_NETCONSOLE=y CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_VIRTIO_CONSOLE=y +CONFIG_DRIVER_NET_E1000=y CONFIG_DRIVER_NET_RTL8139=y CONFIG_DRIVER_NET_VIRTIO=y # CONFIG_SPI is not set
arch/mips/configs/qemu-malta_defconfig +1 -0
@@ -60,6 +60,7 @@ CONFIG_NET_NETCONSOLE=y CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_VIRTIO_CONSOLE=y +CONFIG_DRIVER_NET_E1000=y CONFIG_DRIVER_NET_RTL8139=y CONFIG_DRIVER_NET_VIRTIO=y # CONFIG_SPI is not set
Signature · 1 line
2.39.0
Sascha Hauer
AppliedQuoted 45 lines · Antony Pavlov
Thanks to Denis Orlov's work on dma_sync_single_for_*() interface and e1000 patches we can enable e1000 support on both 32-bit and 64-bit qemu malta boards.
32-bit malta qemu command line:
qemu-system-mips -M malta -cpu 24Kf -m 256M \ -nographic -serial mon:stdio \ -bios images/barebox-qemu-malta.img \ -net user,tftp=$(pwd) -net nic,model=e100064-bit malta qemu command line:
qemu-system-mips64el -M malta -cpu MIPS64R2-generic -m 256M \ -nographic -serial mon:stdio \ -bios images/barebox-qemu-malta.img.swapped \ -net user,tftp=$(pwd) -net nic,model=e1000Barebox commands to check e1000 network interface:
barebox@qemu malta:/ devinfo eth0 Parent: pci-8086:100e.0 Parameters: ethaddr: 52:54:00:12:34:56 (type: MAC) gateway: 0.0.0.0 (type: ipv4) ipaddr: 0.0.0.0 (type: ipv4) linux.bootargs: (type: string) linux.devname: (type: string) mode: dhcp (type: enum) (values: "dhcp", "static", "disabled") netmask: 0.0.0.0 (type: ipv4) serverip: (type: string) barebox@qemu malta:/ devinfo pci-8086:100e.0 Driver: e1000 Bus: pci Parameters: class: 0200 (type: string) devfn: 90 (type: string) device: 100e (type: string) revision: 0003 (type: string) vendor: 8086 (type: string) barebox@qemu malta:/ dhcp eth0 eth0: DHCP client bound to address 10.0.2.15 barebox@qemu malta:/ tftp images/barebox-qemu-malta.img [################################################################]
Quoted 5 lines
Signed-off-by Antony Pavlov <[email protected]>--- arch/mips/configs/qemu-malta64el_defconfig | 1 + arch/mips/configs/qemu-malta_defconfig | 1 + 2 files changed, 2 insertions(+)
Applied, thanks
Sascha
Quoted 29 lines
arch/mips/configs/qemu-malta64el_defconfig +1
-0@@ -63,6 +63,7 @@ CONFIG_NET_NETCONSOLE=y CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_VIRTIO_CONSOLE=y +CONFIG_DRIVER_NET_E1000=y CONFIG_DRIVER_NET_RTL8139=y CONFIG_DRIVER_NET_VIRTIO=y # CONFIG_SPI is not setarch/mips/configs/qemu-malta_defconfig +1
-0@@ -60,6 +60,7 @@ CONFIG_NET_NETCONSOLE=y CONFIG_OFDEVICE=y CONFIG_OF_BAREBOX_DRIVERS=y CONFIG_VIRTIO_CONSOLE=y +CONFIG_DRIVER_NET_E1000=y CONFIG_DRIVER_NET_RTL8139=y CONFIG_DRIVER_NET_VIRTIO=y # CONFIG_SPI is not setSignature · 1 line
2.39.0
Signature · 4 lines
Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |