Allow RTNet to be builtin kernel
A message that is not in the archive (sent off-list or not yet received): 30dd-5d94c580-17-21e4bb80@177052564
[re-adding the list]
Quoted 24 lines · François Legal
Quoted 10 lines · Jan Kiszka
Quoted 6 lines · François Legal via Xenomai
From: François LEGAL <[email protected]>
Signed-off-by François LEGAL <[email protected]>Subject: [PATCH] Allow RTNet to be builtin kernel
Proper ordering is
Quoted 11 lines
- one subject (first line of your commit message)
- optionally a "From:", specifically when your provider rewrites the sender address
- commit message body
- signed-off
- separator ("---")
- optionally some message that should not be in git afterwards, e.g. a changelog of what you edited in this revision of the patch. I don't see all of my comments addressed in code. So you should at least tell us why you didn't change something.
- the diff
Quoted 1 line
Allright. Thanks for the clarification and sorry to bother you with this kind of stuff.
No problem. This can be a lot when writing a first patch, even worse when that is "only" a short one, but it helps a lot to keep the project consistent.
Quoted 6 lines
Regarding the comments in the patch, to be honest, I did not see those in the first place. Let me clarify these points here :
Quoted 1 line
Maybe we should add "set -x" to the script so that every unhandled failure becomes visible. Can be done separately, though.
Yes. I did that during testing but removed it afterwards. I thought leaving a set -x in would be a nogo for commit. I'll set it back.
With "can be done separately", I mean that such a change would be desired, not needed for this patch, and when done, it should come as an additional patch.
Quoted 8 lines
Quoted 2 lines
rtpacket does not depend on rtipv4.
I thought the
RT_PROTOCOLSwould be in udp, icmp, (tcp maybe). I'll have to check how to address rtpacket.Quoted 1 line
Reformatting is appreciated, but this is better done separately, to ease my review. :)
Got it. I'll restore the tabs.
You can also convert them to something consistent, but then please send two patches: One that only does the style conversion without functional changes, and one that does the other things.
Quoted 5 lines
Quoted 2 lines
I think you are missing the rmmod in the "stop" path.
No, I made that intentionally, as the rmmod comes with -f plus >
/dev/null
I thought I could leave it here as any error would be silently discarded. Moreover, I'm not sure how I can handle it as the files/dirs I use to check if RTNet is builtin should probably appear whenever the modular RTNet gets loaded.
Ah, makes sense!
Quoted 2 lines
So if these replies are ok by you, I'll modify the patch and send it back to the list.
Yes, please.
Thanks,
Jan
Signature · 2 lines
Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux
Subject: [PATCH] Allow RTNet to be builtin kernel
Makefile is changed because when builtin, the modules get loaded in the link order. In the previous version protocols would get loaded before stackmgr which obviously fails.
---
This has been tested on Zynq 7000 Hardware (microzed board) with MACB/GEM RTNet driver, with linux 4.4.189 vanilla. Kernel boots up correctly, and the following messages get printed on the console during the boot :
[ 13.875451] sdhci-pltfm: SDHCI platform and OF driver helper [ 13.881627] sdhci-arasan e0100000.sdhci: No vmmc regulator found [ 13.887581] sdhci-arasan e0100000.sdhci: No vqmmc regulator found [ 13.927585] mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA [ 13.945085] fpga_manager fpga0: Xilinx Zynq FPGA Manager registered [ 13.951896] [ 13.951896] *** RTnet for Xenomai v3.0.9 *** [ 13.951896] [ 13.959156] RTnet: initialising real-time networking [ 13.964928] RTmac/TDMA: init time division multiple access control mechanism [ 13.972074] RTmac: init realtime media access control [ 13.977064] RTcfg: init real-time configuration distribution protocol [ 13.983752] initializing loopback... [ 13.987295] RTnet: registered rtlo [ 13.993238] RTnet: registered rteth0 [ 13.996832] libphy: MACB_mii_bus: probed [ 14.001140] rt_macb: rteth0: Cadence GEM at 0xe000b000 irq 26 (00:0a:35:00:01:22) [ 14.008630] rt_macb: rteth0: attached PHY driver [Marvell 88E1510] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:00, irq=-1) [ 14.019845] RTcap: real-time capturing interface [ 14.026562] RTproxy attached to rteth0 [ 14.031129] rtnetproxy installed as "rtproxy" [ 14.035693] NET: Registered protocol family 26 [ 14.040309] NET: Registered protocol family 17 [ 14.044686] can: controller area network core (rev 20120528 abi 9) [ 14.050957] NET: Registered protocol family 29 [ 14.055329] can: raw protocol (rev 20120528) [ 14.059683] can: broadcast manager protocol (rev 20120528 t)
kernel/drivers/net/Kconfig | 1 - kernel/drivers/net/addons/Kconfig | 4 ++-- kernel/drivers/net/stack/Makefile | 16 ++++++++-------- utils/net/rtnet.in | 144 +++++++++++++++++++++++++++++++++++------------------ 4 files changed, 105 insertions(+), 60 deletions(-)
kernel/drivers/net/Kconfig +0 -1
@@ -1,7 +1,6 @@ menu "RTnet" config XENO_DRIVERS_NET - depends on m select NET tristate "RTnet, TCP/IP socket interface"
kernel/drivers/net/addons/Kconfig +2 -2
@@ -2,7 +2,7 @@ menu "Add-Ons" depends on XENO_DRIVERS_NET config XENO_DRIVERS_NET_ADDON_RTCAP - depends on XENO_DRIVERS_NET && m + depends on XENO_DRIVERS_NET select ETHERNET tristate "Real-Time Capturing Support" default n
@@ -18,7 +18,7 @@ config XENO_DRIVERS_NET_ADDON_RTCAP For further information see Documentation/README.rtcap. config XENO_DRIVERS_NET_ADDON_PROXY - depends on XENO_DRIVERS_NET_RTIPV4 && m + depends on XENO_DRIVERS_NET_RTIPV4 select ETHERNET tristate "IP protocol proxy for Linux" default n
kernel/drivers/net/stack/Makefile +8 -8
@@ -1,13 +1,5 @@ ccflags-y += -Idrivers/xenomai/net/stack/include -Ikernel/ -obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4) += ipv4/ - -obj-$(CONFIG_XENO_DRIVERS_NET_RTPACKET) += packet/ - -obj-$(CONFIG_XENO_DRIVERS_NET_RTMAC) += rtmac/ - -obj-$(CONFIG_XENO_DRIVERS_NET_RTCFG) += rtcfg/ - obj-$(CONFIG_XENO_DRIVERS_NET) += rtnet.o rtnet-y := \
@@ -23,4 +15,12 @@ rtnet-y := \ stack_mgr.o \ eth.o +obj-$(CONFIG_XENO_DRIVERS_NET_RTIPV4) += ipv4/ + +obj-$(CONFIG_XENO_DRIVERS_NET_RTPACKET) += packet/ + +obj-$(CONFIG_XENO_DRIVERS_NET_RTMAC) += rtmac/ + +obj-$(CONFIG_XENO_DRIVERS_NET_RTCFG) += rtcfg/ + rtnet-$(CONFIG_XENO_DRIVERS_NET_RTWLAN) += rtwlan.o
utils/net/rtnet.in +95 -49
173 lines not on this page · raw message
--
2.1.4