Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ADE61C433DB for ; Wed, 17 Mar 2021 17:15:50 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2022D64E61 for ; Wed, 17 Mar 2021 17:15:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2022D64E61 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kroah.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1lMZlf-00062e-Jj; Wed, 17 Mar 2021 13:15:35 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lMZld-00062H-4u for kernelnewbies@kernelnewbies.org; Wed, 17 Mar 2021 13:15:33 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id E385F5C012C for ; Wed, 17 Mar 2021 13:15:29 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Wed, 17 Mar 2021 13:15:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h= date:from:to:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm3; bh=YAD9aaA83HgGFekFAQdQQWgJgPS h9Sb1CG1dHAo3VSg=; b=mAKwyAoXTwwXkVqGdGncC+jMyRe7ecg4V1M0rBgKIqC J8THhwoNGgD77o9xm4xae7R7omH3sO5eh5VQnbskI2r+unDKowdzwzWh+tHQqhaW j+Jt5hQr45RIkRsYUM+sqHwfrAJ51NsKpn0/a1BI8b16tH5FYC9YsTfTvjYeR1wM 9vS64Y/U74DLtXiqtzgXrCW067yadzRoH/NkQuK4aV/E2Y9H+zfiz7yiW9K1vfJD AfGFQzC4Rn9kjf62dZhV6/dLp2kWj1JdyUWRYuOMk0z8Vmci1VXqSOjq1mT5vpfa 03MttOJoTlD9DkRpsc20MF2ncSwSn5uavkp1bKNUptw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=YAD9aa A83HgGFekFAQdQQWgJgPSh9Sb1CG1dHAo3VSg=; b=LHTtAegt67Y5ZWOmNcFBBi P8IvEAAWyzoxjH3B87VeIs92cHPjvyyHegvVqQSDF/vbhkaAJxulxg3GRP1/GuKC JsnNN+c3ZDAJy+ec+KJrOHGgBPwXHrBPOgH2bbTP2G6JeWyDW8pMSPzOCLDy4aZa /yr6aVO4UwaJhxP4FmXkxXhERp87jLr1Wn3/uPX79gdJ2mNhWbhCNogZ8i9jNmwL yfVDTsmBgLHls9VqPy31wqJyzIo/X6kUnzfY2KkGLOH/b6n08IsRhtE7WHP6vjn3 KJ/Qf2Izfexp+k5+JKxKDchcxm2QJ80yRIloaD680fUl3bBlcgr8yQLiYQgIFjUw == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudefgedguddtvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtuggjsehttd ertddttddvnecuhfhrohhmpefirhgvghcumffjuceoghhrvghgsehkrhhorghhrdgtohhm qeenucggtffrrghtthgvrhhnpeevueehjefgfffgiedvudekvdektdelleelgefhleejie eugeegveeuuddukedvteenucfkphepkeefrdekiedrjeegrdeigeenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehgrhgvgheskhhrohgrhhdrtg homh X-ME-Proxy: Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) by mail.messagingengine.com (Postfix) with ESMTPA id 42A5D24005E; Wed, 17 Mar 2021 13:15:29 -0400 (EDT) Date: Wed, 17 Mar 2021 18:15:27 +0100 From: Greg KH To: kernelnewbies@kernelnewbies.org Subject: Re: Device file not appearing Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Wed, Mar 17, 2021 at 10:56:34AM -0600, Gregory Anders wrote: > On Wed, 17 Mar 2021 17:16:04 +0100, Greg KH wrote: > > udev does not do device node creation anymore (as of a decade or so), > > you should make sure devtmpfs is mounted at /dev/ in order for this to > > work properly. > > > > good luck! > > > > greg k-h > > I switched over to using the miscdevice API and the situation is the same. > Nothing under /dev, but I can see my device under /sys/dev/char (it now also > exists under /sys/devices/virtual/misc/, as expected). Then this is a userspace issue, not the kernel :) > I verified that devtmpfs is enabled in the kernel config (CONFIG_DEVTMPFS=y > and CONFIG_DEVTMPFS_MOUNT=y) and also see that it is mounted on /dev: > > # cat /proc/mounts > root@xilinx-kcu105-2020_2:~# cat /proc/mounts > 192.168.0.116:/data/nfs/root / nfs rw,relatime,vers=3,rsize=4096,wsize=4096,namlen=255,hard,nolock,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=192.168.0.116,mountvers=3,mountproto=tcp,local_lock=all,addr=192.168.0.116 0 0 > devtmpfs /dev devtmpfs rw,relatime,size=1026312k,nr_inodes=185478,mode=755 0 0 > proc /proc proc rw,relatime 0 0 > sysfs /sys sysfs rw,relatime 0 0 > tmpfs /run tmpfs rw,nosuid,nodev,mode=755 0 0 > tmpfs /var/volatile tmpfs rw,relatime 0 0 > tmpfs /dev tmpfs rw,relatime,size=64k,mode=755 0 0 > devpts /dev/pts devpts rw,relatime,mode=600,ptmxmode=000 0 0 > > I notice that it lists /dev as both devtmpfs (line 2) as well as tmpfs (the > second line from the bottom). Could that be an issue? I'm not sure how or > why /dev is being mounted as tmpfs in addition to devtmpfs. Looks like you have mounted tmpfs on top of devtmpfs, which seems very odd. Try unmounting the tmpfs instance and see if the node really is there in devtmpfs. Or better yet, mount devtmpfs somewhere else right now to see if the node is there. Good luck with your userspace mount maze! greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies