<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 7/12/20 17:21, Jascha Gerold wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:1816c268-047f-4365-9337-39414e7653b2@me.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div>On December 7, 2020 at 9:28 AM, Pablo Sebastián Greco
        <a class="moz-txt-link-rfc2396E" href="mailto:pablo@fliagreco.com.ar"><pablo@fliagreco.com.ar></a> wrote:<br>
        <br>
        <div>
          <blockquote type="cite">
            <div class="msg-quote">
              <div class="_stretch"><span class="body-text-content"><br>
                  On 6/12/20 18:39, Jascha Gerold via Arm-dev wrote:<br>
                  <blockquote class="quoted-plain-text" type="cite">Hi
                    everyone!</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">I
                    just joined the list. Total arm/rpi4 beginner here.
                    Been using</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">Fedora
                    for a year on my personal computer (switched from
                    Apple). Thats</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">my
                    background. My goal is to have my rpi4 run a
                    webserver for my</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">Django
                    projects. I have been experimenting with Raspberry
                    Pi OS,</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">Fedora
                    33 and Centos 7/8 on the Raspberry. I would like to
                    use a</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">yum/dnf
                    based distribution on the Pi, because I am a bit
                    more familiar</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">with
                    its cli.</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">I
                    believe that the</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">CentOS-Userland-7-armv7hl-RaspberryPI-Minimal-4-2009-sda.raw
                    image</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">would
                    be the way to go.</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">But
                    frankly I am terrified by configuring all the
                    different sources</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">for
                    the latest packages (sqlite3, django 3, and so on)
                    and getting</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">them
                    to interact flawlessly without breaking the system.</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">Fedora
                    does not have a native rpi4 image. They are generic
                    and boot</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">differently
                    that the CentOS one.</blockquote>
                  <blockquote class="quoted-plain-text" type="cite"><br>
                  </blockquote>
                  <blockquote class="quoted-plain-text" type="cite">Can
                    I use the boot partition from</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">CentOS-Userland-7-armv7hl-RaspberryPI-Minimal-4-2009-sda.raw
                    combined</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">with
                    the Fedora Userland? Id have to disable kernel
                    updates I guess</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">and
                    cross compile them myself (done that successfully
                    yesterday).</blockquote>
                  <blockquote class="quoted-plain-text" type="cite"><br>
                  </blockquote>
                  <blockquote class="quoted-plain-text" type="cite">TLDR:</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">My
                    question is: How do I get the native rpi4 centos way
                    to boot</blockquote>
                  <blockquote class="quoted-plain-text" type="cite">combined
                    with fedora userland?</blockquote>
                  <blockquote class="quoted-plain-text" type="cite"><br>
                  </blockquote>
                  <blockquote class="quoted-plain-text" type="cite">Jay</blockquote>
                  <blockquote class="quoted-plain-text" type="cite"><br>
                  </blockquote>
                  Hello Jay, welcome!<br>
                  Let me see if I can address your questions together.
                  and a bit out of <br>
                  order. If your idea is to use Fedora userland, then
                  I'd use fedora <br>
                  altogether, they don't have rpi4 specific builds, but
                  they don't need it <br>
                  either. Fedora uses always the latest mainline kernel,
                  and it has "good <br>
                  enough" support for what you're trying to do
                  (basically headless). If <br>
                  you were trying to do something with graphics, it
                  would be a completely <br>
                  different story.<br>
                  If you decide to use CentOS, I'd not use the armv7hl
                  image (32 bits) and <br>
                  go straight to aarch64. There's no official image yet,
                  but I've posted <br>
                  one that is working really well <br>
                  <a
href="https://people.centos.org/pgreco/CentOS-Userland-8-stream-aarch64-RaspberryPI-Minimal-4/"
data-mce-href="https://people.centos.org/pgreco/CentOS-Userland-8-stream-aarch64-RaspberryPI-Minimal-4/"
                    moz-do-not-send="true">https://people.centos.org/pgreco/CentOS-Userland-8-stream-aarch64-RaspberryPI-Minimal-4/</a>
                  <br>
                  , and this is where I keep the updated kernels <br>
                  <a
                    href="https://people.centos.org/pgreco/rpi_aarch64_el8/"
data-mce-href="https://people.centos.org/pgreco/rpi_aarch64_el8/"
                    moz-do-not-send="true">https://people.centos.org/pgreco/rpi_aarch64_el8/</a>
                  (along with other <br>
                  rpi-specific stuff)<br>
                  <br>
                  HTH<br>
                  Pablo.\</span></div>
            </div>
          </blockquote>
        </div>
        <div><span><br data-mce-bogus="1">
          </span></div>
        <div><span>Thank you for replying so promptly, Pablo! I actually
            tried to get Fedora to run from a USB attached  HDD, but my
            knowledge was not good enough. I can only get it to boot
            from sd card. Thats why I love the way CentOS boots with the
            rpi4 image: I just have to point root to sda3 instead of
            mmcblk0p3 in cmdline.txt (tried to use partuuid, which works
            for booting, but then the script rootfs-expand does not find
            its expected rootfs). <br>
          </span></div>
      </div>
    </blockquote>
    Wrt Fedora boot, if usb works after you boot from the SD card, then
    I guess I'd check 3 things, rpi-eeprom (needs to be rather new to
    support booting from usb), rpi-firwmare (rpi-specific files in
    /boot, also need to be rather new), and maybe, but less likely,
    driver missing in the initramfs. Wrt cmdline.txt and UUID, I have no
    idea why that doesn't work, I too change it to /dev/sda3)<br>
    <blockquote type="cite"
      cite="mid:1816c268-047f-4365-9337-39414e7653b2@me.com">
      <div>
        <div><span>So today I tried the centos image you mentioned (8,
            stream, aarch64). It works just fine, however the cpu
            frequency stays at max. With the centos 7, armhfp image the
            cpu is allowed to throttle down. Is that a kernel or config
            thing? I have only tried compiling armhfp kernels from the
            raspberry github. I can try to compile a 64bit one if they
            have the correct sources and configs. Anything more than
            that exceeds my current abilities. Can you point me in a
            direction (like where to look for the cpu frequency issue)?
            <br data-mce-bogus="1">
          </span></div>
      </div>
    </blockquote>
    I guess something tuned is doing, or something missing in the
    config.txt. The kernels are the ones from the rpi foundation's
    github, but just rebuilt for CentOS with a few different options.<br>
    <blockquote type="cite"
      cite="mid:1816c268-047f-4365-9337-39414e7653b2@me.com">
      <div>
        <div><span>Well thanks again for responding!!<br
              data-mce-bogus="1">
          </span></div>
        <div><span>Jay<br data-mce-bogus="1">
          </span></div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Pablo<br>
      P.S: try to always do reply to all, so all the answers end up in
      the mailing list. Thanks<br>
    </p>
  </body>
</html>