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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 19241C25B0C for ; Mon, 8 Aug 2022 21:18:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243749AbiHHVSg (ORCPT ); Mon, 8 Aug 2022 17:18:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238069AbiHHVSb (ORCPT ); Mon, 8 Aug 2022 17:18:31 -0400 Received: from mail-pf1-x433.google.com (mail-pf1-x433.google.com [IPv6:2607:f8b0:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08EA618B09 for ; Mon, 8 Aug 2022 14:18:31 -0700 (PDT) Received: by mail-pf1-x433.google.com with SMTP id p125so5609987pfp.2 for ; Mon, 08 Aug 2022 14:18:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gateworks-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=aiU3knaJe/5mq9tQWMQcztgnEvFZa6TXWO4FCkyBl2g=; b=Il5GG1ZHoNLmwNQ+x1mDxXsbZlCjA0vPDav/8L4R3GuMtqxekTJTRSoyVOTSO7ZOQa HEWqQTOzLflUNSIx6jSOx11/WsTCS5PFUWfxv52NUSIxTmzUOpVDL0riWS61jHFJaeli e5W5ZbTP/q8aKDKjai3GTaNZkaVrlK/2fJ85+apd3DMGTyUmEGhPUrSagkm42mGn6ovo SC9Pm1+ZM8KWzIcM05l2j23g53P6ZpDzBDEypIDaALqIpryHGlilwK+eKiH4LVNwPKbF 4kkTX3jTGy7HU/58qdNyJKen5TOFquJXlrQzcnnY3bGHYML4Yv29z/4+R1NwaU5dSMoZ jr0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=aiU3knaJe/5mq9tQWMQcztgnEvFZa6TXWO4FCkyBl2g=; b=o+/zFXxpsT0/b4pr8urycUvUDKXgv7P4RDRp9I4vupKQyFrKLjlBfj/72h72OPvLZx /eCUSwB/WxazqkRlUwwNipvbepV3JK99ra9saRtk/rAwmEg89PDv9W9sfuz4oRqOTlq+ tqd0HdUvuTIgYNuXscmEPxC3iR5uSEGfL2ANSHtKdk3PE1cZcnIZJrAoF+vEHkJ7G9C3 9QHcitg3UfJonY4bTXqNoM/7Flw/2U7YKojVb7KnihoCmTw1UesthmaULCtjoyMsKhB1 pjeVXKptxmXfGwIThJjBS31K+DWIFESpnSw91zc0HEDpiDzwTnGJ8JPk/NAyg+GXul1H ZSqw== X-Gm-Message-State: ACgBeo0pZBpMaAGalsoPQlVcII9Ru1JQTZLMa6lWJDvyuiZqDVmy+FOU TThmDaPofUv9gffyNqvksdFEde3O4sNHeoOq1ywKnQ== X-Google-Smtp-Source: AA6agR61Nc+esj8//GcCCO8bAmwgAIWkx8DFTG3Ngs/UdGDEcuHG7wKKkL5LpFl8+w3GvuGPLTdh5+gPEVJ7z8QN6Ww= X-Received: by 2002:a63:fd0b:0:b0:415:f76b:a2cd with SMTP id d11-20020a63fd0b000000b00415f76ba2cdmr16736503pgh.440.1659993510425; Mon, 08 Aug 2022 14:18:30 -0700 (PDT) MIME-Version: 1.0 References: <5914cae0-e87b-fb94-85dd-33311fc84c52@seco.com> In-Reply-To: <5914cae0-e87b-fb94-85dd-33311fc84c52@seco.com> From: Tim Harvey Date: Mon, 8 Aug 2022 14:18:18 -0700 Message-ID: Subject: Re: ethernet dt aliases implications in U-Boot and Linux To: Sean Anderson Cc: netdev , u-boot , Device Tree Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Mon, Aug 8, 2022 at 12:58 PM Sean Anderson wrote: > > Hi Tim, > > On 8/8/22 3:18 PM, Tim Harvey wrote: > > Greetings, > > > > I'm trying to understand if there is any implication of 'ethernet' > > aliases in Linux such as: > > aliases { > > ethernet0 = &eqos; > > ethernet1 = &fec; > > ethernet2 = &lan1; > > ethernet3 = &lan2; > > ethernet4 = &lan3; > > ethernet5 = &lan4; > > ethernet6 = &lan5; > > }; > > > > I know U-Boot boards that use device-tree will use these aliases to > > name the devices in U-Boot such that the device with alias 'ethernet0' > > becomes eth0 and alias 'ethernet1' becomes eth1 but for Linux it > > appears that the naming of network devices that are embedded (ie SoC) > > vs enumerated (ie pci/usb) are always based on device registration > > order which for static drivers depends on Makefile linking order and > > has nothing to do with device-tree. > > > > Is there currently any way to control network device naming in Linux > > other than udev? > > You can also use systemd-networkd et al. (but that is the same kind of mechanism) > > > Does Linux use the ethernet aliases for anything at all? > > No :l > Sean, Ok - thanks for the confirmation! Best Regards, Tim