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=-0.5 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 EF04DC432BE for ; Fri, 27 Aug 2021 11:04:06 +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 9F01160551 for ; Fri, 27 Aug 2021 11:04:06 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9F01160551 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1mJZe5-0004eq-Sq; Fri, 27 Aug 2021 07:03:37 -0400 Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1mJZe3-0004eb-8s for kernelnewbies@kernelnewbies.org; Fri, 27 Aug 2021 07:03:35 -0400 Received: by mail-il1-x132.google.com with SMTP id h29so6609973ila.2 for ; Fri, 27 Aug 2021 04:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=o8yDOJw0y+aLA1ax+zkNq2Toogmrzd+mt0xn2pcMwe4=; b=II6gv31wDIoFbihsMRgDoad/XRsjfILmV6AtE0yL9TpvjeUz10D9NNYGIz06BN5xf0 +o6DlpO0OvK59t0O7w/+0k+m/mcNZdM3PaQs/W0hOYji5+u5zzc7VpNKV+LhhKyu/yFa R9cTaE42kvLLp4TXmdeh++BcpyG7QG9E0UCRX2kVq3hfQasvRDWRHWAExALZuS98Rga+ Slmgx2xoeZllWSVB52xUaADehiiJwSUFQW1r2zpxPkbNTYwqXz3KkUyWORoFnmAMJmTC +KANEUt+PoO1FoVndOjqHUhhbh/jeuFqipX8XX9JfN1ys5RbDVFSxwrN1xzTDkCxO/ob qqVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=o8yDOJw0y+aLA1ax+zkNq2Toogmrzd+mt0xn2pcMwe4=; b=BwLBmpfjhJXxhecE66/nsT0xVhtaSns2y03n3MnVzL2UE6jyVuJ+z3gs03h161yHAW fOMVa+DJ/vFtooBOOaS4waicDe0fS1B1WH8EessSwxUrEsytkS1A8mEDpDztsmbIsAUj GQZcPHf4I9Mce/yl2xoUWd/1cdTbFrrymoeGFPLKT+lvWJTbiZdnJ+yEeRcNW3ptqspx RkZ8DvdXOxr1Yg1c2GYYl7CeQyNs91qXxWAPuieBTTswTqSAihq5OatqBQGGPLUwyG59 PounhsYA+mVTdt9oNyMkR25J/2YLa81hH2KSCliUyKoVZhw+nS9u/Byii6teJQO2E37F rc2g== X-Gm-Message-State: AOAM531Mdt85ZVYxjky0tZnW3gGoKKwqYg/1caaEEihOhHPQFS//xbOu yramVjqie3ST4nt+E2/uZs38YMpnS3T475RpWjK2GjaMPuM30A== X-Google-Smtp-Source: ABdhPJzXxRirqRXaOiJI/OW6PeW2mh0h/h6magZp/m+BlX3SG+0RJY/tIINfsnyMMvNlNgZ7rEO489mIHLQ5TPw3MbA= X-Received: by 2002:a92:194b:: with SMTP id e11mr6168600ilm.200.1630062213465; Fri, 27 Aug 2021 04:03:33 -0700 (PDT) MIME-Version: 1.0 From: Gueven Bay Date: Fri, 27 Aug 2021 13:03:22 +0200 Message-ID: Subject: How do the kernel boot parameters work (especially "toram")? To: 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-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hello, With kernel boot parameters I mean the arguments you give on the grub command line to the kernel. Just like "toram" which on some distros work and on many doesn't. I googled but only found webpages listing the possible boot parameters and maybe explaining what they do, but none where it was explained _how_ they work. Does a boot parameter make the kernel call a script? Does a boot parameter reference a function inside the kernel? If some distros seem to allow a specific boot parameter what did they do to their distros kernel to make this parameter work? And which module or which part of the kernel takes the boot parameters as input to do the appropriate things? For example: It seems that Centos (8) does not suppport "toram" (allowing to load the whole OS into RAM), at least on my machine. Okay, what should or can I do to get my (Centos) kernel to accept this? Writing a script? Patching something? (Maybe my questions are not really clear, just ask me, please.) Thanks. _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies