title: Where is this set of boot arguments coming from?
body: <p>I'm using Yocto to port the <a href="https://evlproject.org/overview/" rel="nofollow noreferrer">EVL Core</a> to an iMX6 Sabre SD board.</p>
  <p>I had an core-image-minimal of a kernel (apparently not mainline) that booted correctly with the following boot arguments being displayed before boot:</p>
  <pre><code>[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 rootwait rw 
  </code></pre>
  <p>I then proceeded to change the core for that of the EVL core (which is a mainline kernel) (both Kernels are 5.4). After making some changes to the device tree, of the new kernel, I verified that it is booting with the following:</p>
  <pre><code>[    0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk2p2 r
  </code></pre>
  <p>That is, the <code>rootwait rw</code> was replaced by just <code>r</code>. Needless to say this is causing problems during boot and I want to change it.</p>
  <p>However, I can't figure out where is this line coming from. I searched the kernel source code and couldn't find the specific line, not even some parts of it. I reckon that instead of just being written in a script, it is being formed by a sequence of some sort of <em>append</em> command.</p>
  <p>For reference, the files in which I am searching for this are <a href="https://git.evlproject.org/linux-evl.git?h=evl%2Fv5.4" rel="nofollow noreferrer">here</a>.</p>
  <p><strong>Question:</strong> How is this line being formed, where are the arguments coming from?</p>
  <p>I checked that most boards have a &quot;bootargs&quot; line in their device tree that gives in directly the arguments to be passed. However, for the specific case of the Sabre SD this seems to be different, with the line being formed via another script (That I failed to identify which).</p>
  <p>Note: I understand that this question could arguably be considered tangent to the topic of this site. If that is the case I can move to the Unix/Linux SE.</p>
  <p>Additional Info: I am booting using U-boot, and trying to boot via an SD card. The problem being caused by the absence of <code>rootwait rw</code> is that during boot the kernel fails to see one of the SD partitions and thus cannot continue to boot, resulting in a Kernel Panic.</p>