Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp935523rda; Sun, 22 Oct 2023 17:34:33 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEwtzok7RuKpC0sZcucTyniViU4KftBlRG/JjfJZliWSAmRYuOuHUahkdCSIN8R7qJRvH8g X-Received: by 2002:a17:90a:52:b0:27d:237b:5592 with SMTP id 18-20020a17090a005200b0027d237b5592mr11300530pjb.13.1698021273268; Sun, 22 Oct 2023 17:34:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698021273; cv=none; d=google.com; s=arc-20160816; b=D7uxL18vF0LRnWb9DA23bHvefDv8g0Z/ZO1lnw3ccOuaRPZfF0YEVbCj+/dRzLlTrp fk9+Mo/eexaW8CNfAKNjkNxiEPL8puSCuO8KQs9517HLtDzlie4Vna6GFU7vXy8NKR9g 83bhPmlHDDFcckY6HHxHqqiSfaqgDdf99sxOR/lZkJ/TQxQ2iyxYsYyu+xXwHVIkA1mU Mu13eFhEg76pkpTTTIaYEsGHKhHQ4Ksh3SjUm2UHLHvBdyfkeJL83b/35WhmA0dcbL8w 7r/EQa8daP8fr3IR4IDK76MSaf30eQfgE3b01EjJxvOx7IStwfOrec5nHFTGoYfnxX1F ebEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=lf4op5br1ztmtzsuW4A7c+sb/jIvoiKssiNsddkNzIo=; fh=WX+LIRCqRfJn2gjiJLealITauSwAWmwOsrw/HLVyXbM=; b=L5vKd1qE6UaMh1yyjJp++qEQFldlaqzA8v8yRoPXBY9Oz8TyGppqJV1iYDxCoty3qG +82bvktJMwSrJq0WzDMCwCMOgae+ADri2+ijOkjPTaUmyGftv2C4DdtrLXcty4A6czIr IFxSHEJHMuReBjyQqs4Kiiccri5LjKiLTCMnKdpUOp7rXlO3F5l7bkROAYbQR62Sv7Fx K6AnmtTtNEzi5PQBXAWs0TEFdNObyi6hw3QH0/LLukeR2s5lLSdqZibJ8UnlUwThr45d AvGLcyGaUewX4bWiC3QnM8zKSP4j464Ur0nZqDO5586QQ2C3JaY8wNTDIhVZYQG4dwD7 jEyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nC3Glrtw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id oo11-20020a17090b1c8b00b00262f937bf93si5890450pjb.77.2023.10.22.17.34.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 17:34:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=nC3Glrtw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 3D1DB8061400; Sun, 22 Oct 2023 17:34:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232912AbjJWAeV (ORCPT + 99 others); Sun, 22 Oct 2023 20:34:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbjJWAeU (ORCPT ); Sun, 22 Oct 2023 20:34:20 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4CACDC for ; Sun, 22 Oct 2023 17:34:17 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-53d9f001b35so3920491a12.2 for ; Sun, 22 Oct 2023 17:34:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698021256; x=1698626056; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=lf4op5br1ztmtzsuW4A7c+sb/jIvoiKssiNsddkNzIo=; b=nC3GlrtwpeqpsDoyXEYeAtgUPkAaM7UpwJTI9maG6kDEnH6pARxW7aWoUBeWb9zC9o 5cL81BgkpYiOOhYfwE/wnv3EIigmapLZ+8hdJXjvi5tAgUPqHMP+4n984dMtHYhWiNfZ SnylhEQXLKmoChPcKWogF6cZ5/8/9T1JMHN/tE1DQjoQqUWGcBgl+b4SaXHunNgbdgrN wCYE1cISN0TwBqXg+5IanJcHfpvN9Dtl5qM6PeTMga8wU2W3ny/Rqr8rXSHHn+T9kAE3 bO/CG4ILN8zVPFaa5fYS2wjXd4iMCL2E8vp7jPKYajLWWXrh8MKZWO/TPr5QGyecV/dR SvRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698021256; x=1698626056; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lf4op5br1ztmtzsuW4A7c+sb/jIvoiKssiNsddkNzIo=; b=IPEhmJw8tmacp+zSzep/t+ZxUEyWRws03bSOzHU1Z6f3jXPgNR5RHcR9893lOfcado PH0TGZTL1XErDOYHYQ2c9cAisre3gLy7rAGrQhhOLbRWAYf7FXYNQ4myVySAGC+jFgzL FJGAcGiO3ULY0Lvd9ro6cXtgx+BzE3SLGxs2CWxtNQ6uvxbT0BTcP9m7v3WD1xUmyzhT fLFQG6Lk/5fvvsOZ6OGMF6jQAmNHON6SJw88poUTexeo5tt1fwIwnyBtJM7/kkjcz/ii e7ikPHWEYKLv0piubfXvi/V+cjguIfywVHWJefSqssdWYNdmhAICIVmSExG0cwVeJSrp sbjA== X-Gm-Message-State: AOJu0YyUOPsDqyUTFrCzIKAquiC1Zjkwx6s42ehv4YGXz937EUDGuUy7 A6zUdnghLGll1xJqpIpxd9xqr75IQ6ySfbX0N7LIG6BQ X-Received: by 2002:a50:8a95:0:b0:540:f3e:9666 with SMTP id j21-20020a508a95000000b005400f3e9666mr3142493edj.37.1698021256154; Sun, 22 Oct 2023 17:34:16 -0700 (PDT) MIME-Version: 1.0 References: <6675c47a-d258-41ae-b506-88d7ae74b551@infradead.org> In-Reply-To: <6675c47a-d258-41ae-b506-88d7ae74b551@infradead.org> From: gmssixty gmssixty Date: Mon, 23 Oct 2023 06:34:06 +0600 Message-ID: Subject: Re: How can I add "busybox sh" as init during boot of the custom kernel? To: Randy Dunlap Cc: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sun, 22 Oct 2023 17:34:30 -0700 (PDT) I tried this: init=3D/bin/busybox sh, but it got Kernel panic and failed. On the other hand, what should I write in /sbin/init? On Mon, Oct 23, 2023 at 6:15=E2=80=AFAM Randy Dunlap wrote: > > > > On 10/22/23 16:56, gmssixty gmssixty wrote: > > How can I add "busybox sh" as init during boot of the custom kernel? I > > have compiled the kernel and put the bzImage in /dev/sda3 (/mnt/sda3). > > Booted that kernel. After booting, I got a message to set the init > > process. I have put the busybox in /bin. Now I want to add this > > "busybox sh" as an init process. How can I do this? > > > > Note that, I did not install any other software in that /dev/sda3 > > (/mnt/sda3). I have only bzImage and busybox. > > from Documentation/admin-guide/kernel-parameters.txt: > (or https://docs.kernel.org/admin-guide/kernel-parameters.html) > > init=3D [KNL] > Format: > Run specified binary instead of /sbin/init as ini= t > process. > > -- > ~Randy