From: Antony Pavlov <antonynpavlov@gmail.com>
To: barebox@lists.infradead.org
Subject: [PATCH] MIPS: qemu-malta*_defconfig: enable e1000 network driver
Date: Wed, 3 Jan 2024 13:52:46 +0300 [thread overview]
Message-ID: <20240103105246.800751-1-antonynpavlov@gmail.com> (raw)
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=e1000
64-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=e1000
Barebox 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 <antonynpavlov@gmail.com>
---
arch/mips/configs/qemu-malta64el_defconfig | 1 +
arch/mips/configs/qemu-malta_defconfig | 1 +
2 files changed, 2 insertions(+)
diff --git a/arch/mips/configs/qemu-malta64el_defconfig b/arch/mips/configs/qemu-malta64el_defconfig
index da3396246d5..c1f7366d76d 100644
--- a/arch/mips/configs/qemu-malta64el_defconfig
+++ b/arch/mips/configs/qemu-malta64el_defconfig
@@ -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
diff --git a/arch/mips/configs/qemu-malta_defconfig b/arch/mips/configs/qemu-malta_defconfig
index 4be05b7e5a3..99714aa3068 100644
--- a/arch/mips/configs/qemu-malta_defconfig
+++ b/arch/mips/configs/qemu-malta_defconfig
@@ -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
--
2.39.0
next reply other threads:[~2024-01-03 10:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-03 10:52 Antony Pavlov [this message]
2024-01-04 11:17 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240103105246.800751-1-antonynpavlov@gmail.com \
--to=antonynpavlov@gmail.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox