Received: from mail-io1-f65.google.com (mail-io1-f65.google.com [209.85.166.65]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 9DF8A782BD8 for <~alpine/devel@lists.alpinelinux.org>; Tue, 10 Sep 2019 04:54:53 +0000 (UTC) Received: by mail-io1-f65.google.com with SMTP id f12so34469700iog.12 for <~alpine/devel@lists.alpinelinux.org>; Mon, 09 Sep 2019 21:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=HPo8xLlaUjNx7t1tP2Epi7ruzd9M5lEf6vHnxyozcdk=; b=OVWkH5EIcNErftv9t0Mpl2DyatvlQ+XWD340MJYESIGUZj6GsygBkJC4K2EFMgk0Nv QbTTzcs60vkIWCRxHIb3MinmtkC9aFP0ZXJkLtJ7WZDX0PnAOi/9MiGuJ5KKdgXtN3Rh NMgrSzuW8hhwB20FBvZhvMSdE+gu/4vjpUoXhjC+sb8AiVDF2JbltDecqeoKERBAgKqg OFsPOxmLH6aTRkzvzgcFEhNzUm746V28G36/h1AQGLjrgtOpPzQNcVDUtDopxGkYQQsR 1+8Jne/SldnKF6KSHfuPzQVHsqNbDWKjlPbe3lLBGWDBLOJYXg8dnmMaonr/YcYHhGeu UTew== 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=HPo8xLlaUjNx7t1tP2Epi7ruzd9M5lEf6vHnxyozcdk=; b=pW8NY6HEf8kKCz9cgcPCXzoBKDUpjIs6M+S2MUnzEbYE+70PBbcDibreunqW1EWUeG 4vDThMP8Ui6bQATzn7aMShKa6hCkDC2euz0eoab2OJ6E89M4boQsqkWOBKG4lK9iiReU qo1IvzVY5wc6r+IgqS2YbdfYDXpIoXWEDF8/8kba8zq5OR1MSiZhDbGrfQQgzOx5TxJ8 OfmM6dDivvT3Mn3FBcZx+84uPk9C7hWIFJC5mhIg+Eym/OIOshdTQ/mmGHXLN6UDpFc1 TZUzDCuGfuz6r03Xgx34ReKuFW+R2RmhYNM0vD1IjxcYB2SPRpZDkY94SmR+ul4vEREN p5NA== X-Gm-Message-State: APjAAAXhkZHeGkM2FqaEGiocAUAHjX4o+t9X2fmHbTG9dn7PXNma6gVq bY2WpExHIg8bzs+60SsgT7QV7QmnQzOPvW8mHsAkzXgofNw5WA== X-Google-Smtp-Source: APXvYqycGnwiqSGuAZLds1cpgSnRY5bQu3+DOLIUHSf98FL/zXEhrhWaPLuQ+zUE4RfB+xPp6mEb84YM3LR/XCipkT8= X-Received: by 2002:a5e:8407:: with SMTP id h7mr3470601ioj.47.1568091291264; Mon, 09 Sep 2019 21:54:51 -0700 (PDT) MIME-Version: 1.0 From: Chris Johnson Date: Mon, 9 Sep 2019 23:54:40 -0500 Message-ID: Subject: Raspberry Pi 4 Kernel and Boot To: ~alpine/devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="000000000000642b9705922bb4ce" --000000000000642b9705922bb4ce Content-Type: text/plain; charset="UTF-8" I have tried running arm64 rpi alpine 3.10.2 on the Raspberry pi 4 and have found a couple of things that need to be adjusted. The 3.10.2 release does not boot becuase it is missing a couple of new files required by the Raspberry pi 4. These two files are: start4.elf fixup4.dat They can be retrieved from the official raspberry pi repository: https://github.com/raspberrypi/firmware/tree/master/boot They go in the top level of the fat32(boot) partition of the 3.10.2 release. I do not see an aport that can be patched to include these and I can not figure out how the releases are generated to create a patch. The config.txt needs a couple of modifications, arm_control is being depreciated, so arm_control=0x200 needs to be changed to arm_64bit=1 and the following needs to be added enable_gic=1 I have tested the above changes, and they allow the raspberry pi 4 to boot with current release 3.10.2. However, no usb devices work. This is because the kernel is not built with the correct defconfig for the raspberry pi 4. The new defconfig is: bcm2711_defconfig I looked at the aport for main/linux-rpi and find it too confusing. I created an abuild chroot on a 64-bit arm and tried to build it using bcm2711_defconfig but cannot get past patching. The raspberry pi specific changes from alpine linux seem to fail when I try to build. Could these changes be included in the next release to allow the raspberry pi 4 to work? Thank you so much for an amazing distro Sources of information for changes: Raspberry pi 4 on Ubuntu https://jamesachambers.com/raspberry-pi-ubuntu-server-18-04-2-installation-guide/ Raspberry pi 4 on Manjaro relase https://www.manjaro.org/download/arm8-raspberry-pi-4-minimal/ I mounted the fat32 (boot) of the image to see what was going on I am currently using this and it works flawlessly Official Raspberry pi documentation https://www.raspberrypi.org/documentation/configuration/ specifically https://www.raspberrypi.org/documentation/configuration/boot_folder.md --000000000000642b9705922bb4ce Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I have tried running arm64 rpi alpine 3.10.2 on the Raspberry pi 4
and have found a couple of things that need to be adjusted.

The 3.10.2 release does not boot becuase it is missing a couple of new
files required by the Raspberry pi 4. These two files are:

start4.elf
fixup4.dat

They can be retrieved from the official raspberry pi repository:

https://github.com/raspberrypi/firmware/tree= /master/boot

They go in the top level of the fat32(boot) partition of the 3.10.2
release. I do not see an aport that can be patched to include these and
I can not figure out how the releases are generated to create a
patch.

The config.txt needs a couple of modifications, arm_control is being
depreciated, so

arm_control=3D0x200 needs to be changed to arm_64bit=3D1

and the following needs to be added

enable_gic=3D1

I have tested the above changes, and they allow the raspberry pi 4
to boot with current release 3.10.2. However, no usb devices work. This
is because the kernel is not built with the correct defconfig for the
raspberry pi 4. The new defconfig is:

bcm2711_defconfig

I looked at the aport for main/linux-rpi and find it too confusing.
I created an abuild chroot on a 64-bit arm and tried to build it using
bcm2711_defconfig but cannot get past patching. The raspberry pi
specific changes from alpine linux seem to fail when I try to build.

Could these changes be included in the next release to allow= the
raspberry pi 4 to work?=

Thank you so much for an amazing distro

Sources of information for changes:

Raspberry pi 4 on Ubuntu
https://jamesachamb= ers.com/raspberry-pi-ubuntu-server-18-04-2-installation-guide/

Raspberry pi 4 on Manjaro relase
https://www.manjaro.org/download/arm8-r= aspberry-pi-4-minimal/
I mounted the fat32 (boot) of the image to see what was going on
I am currently using this and it works flaw= lessly

<= td class=3D"gmail-amr">
<= br>

<= /div>
--000000000000642b9705922bb4ce--