[OpenWrt-Devel] [PATCH 2/2] arc770: move arc patches to taregt/linux/generic
nbd at openwrt.org
Fri Jan 15 09:29:32 EST 2016
On 2016-01-15 14:17, Vineet Gupta wrote:
> On Friday 15 January 2016 06:29 PM, Felix Fietkau wrote:
>>>>>> +Subject: [PATCH 1/2] openwrt: arc - remove dependency on DEVTMPFS
>>>>>> >>>> +
>>>>>> >>>> +OpenWRT builds initramfs so that it doesn't require DEVTMPFS so dropping
>>>>>> >>>> +this dependency.
>>> > Really ? AFAIKR (circa 2012) DEVTMPFS was *needed* for dynamic device nodes and
>>> > that included the common case of initramfs NOT having static device nodes.
>>> > So back then I added the code in question to kernel Kconfig because initramfs was
>>> > my primary workflow and occassionally I would fail to include DEVTMPFS causing
>>> > userspace boot to go bonkers (FWIW I was using the buildroot trick of a pre-init
>>> > script which would automount devtmpfs before exec'ing the real init)
>>> > Now arguably I can add DEVTMPFS to defconfigs, but then we don't need the kconfig
>>> > dependency framework at all.
>>> > Another idea is to add DEVTMPFS unconditionally to Kconfig, but I fail to remember
>>> > why I didn't do it at the time. Does anyone know if it interferes with real rootfs
>>> > backed by real devices ?
>> OpenWrt works just fine without DEVTMPFS - doesn't matter if initramfs
>> is enabled or not.
> The discussion is about adding a patch to up upstream ARC kernel, not specific to
Right. I belive that the upstream kernel should not arbitrarily force
DEVTMPFS support for some architectures, as long as there are user space
implementations (such as OpenWrt) that can do without it.
> BTW if openwrt builds for initramfs, it has to enable DEVTMPFS under the hood.
> Perhaps there are dependencies in openwrt build system which take care of that
> already - o/w it just won't work (assuming dynamic dev nodes).
Incorrect. OpenWrt does not use DEVTMPFS, it does not even get compiled
into the image. We would like to keep it that way.
Our user space takes care of creating all required device nodes very
early during boot.
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
More information about the openwrt-devel