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 36A48C433E0 for ; Wed, 17 Mar 2021 16:13: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 76B7364DE8 for ; Wed, 17 Mar 2021 16:13:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 76B7364DE8 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 1lMYnc-0000cH-Qx; Wed, 17 Mar 2021 12:13:32 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1lMYnY-0000bg-7J for kernelnewbies@kernelnewbies.org; Wed, 17 Mar 2021 12:13:28 -0400 X-Originating-IP: 73.228.7.205 Received: from localhost (c-73-228-7-205.hsd1.nm.comcast.net [73.228.7.205]) (Authenticated sender: greg@gpanders.com) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id D313D1C0012; Wed, 17 Mar 2021 16:13:24 +0000 (UTC) Date: Wed, 17 Mar 2021 10:13:22 -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 16:59:08 +0100, Greg KH wrote: >Is your char device listed in /sys/dev/char/ ? > >If not, then you have something wrong with your call to device_create(). > >If so, then you need to look at whatever tool is creating your device >nodes in /dev. Usually the kernel handles this with devtmpfs, but I do >not know what your system uses for this. Indeed it is. I am working with a fairly minimal system on a Xilinx Microblaze soft-core CPU. I have udev installed, but I'm not sure about devtmpfs. I'll start digging in that direction and see what I find. >Also, why a full major? Why not just use the misc_dev api instead that >does all of the above "housekeeping" for you automagically? Simply because I wasn't aware of the misc_dev API :) But that does look like a nice abstraction that will save me some boilerplate, so thanks for pointing that out. Thanks, Greg _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies