From mboxrd@z Thu Jan 1 00:00:00 1970 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.8 required=3.0 tests=BAYES_00, 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 56391C433E0 for ; Wed, 17 Mar 2021 16:56:56 +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 A4AEC64F26 for ; Wed, 17 Mar 2021 16:56:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A4AEC64F26 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gpanders.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 1lMZTM-0004gZ-7g; Wed, 17 Mar 2021 12:56:40 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lMZTL-0004gI-Dt for kernelnewbies@kernelnewbies.org; Wed, 17 Mar 2021 12:56:39 -0400 Received: from localhost (c-73-228-7-205.hsd1.nm.comcast.net [73.228.7.205]) (Authenticated sender: greg@gpanders.com) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 5FC95100003; Wed, 17 Mar 2021 16:56:36 +0000 (UTC) Date: Wed, 17 Mar 2021 10:56:34 -0600 From: Gregory Anders To: Greg KH Subject: Re: Device file not appearing Message-ID: Mail-Followup-To: Greg KH , kernelnewbies@kernelnewbies.org References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Cc: kernelnewbies@kernelnewbies.org 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-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: kernelnewbies-bounces@kernelnewbies.org 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). 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. Thanks, Greg _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies