Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 20FC4782BFE for <~alpine/devel@lists.alpinelinux.org>; Tue, 10 Sep 2019 09:16:28 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id j4so35830629iog.11 for <~alpine/devel@lists.alpinelinux.org>; Tue, 10 Sep 2019 02:16:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2CCg1kKQjuiUyNDVYMgn3AFtKs9mkzCLZ6Dk+LwkkcE=; b=UPYVuc+cBuDMylUMh40PaZII7JzKoTZaUZ/LDjju20cAtq0gSrLpal+01w6a00cdO1 mTxbABQe7s8n+pN1K07yWn9vPruUWNOMWfDfonscvA1c7QkDpPQ+DRpu+dhBR+yDeKfb A59iMtpMU6aoGvhIHtlB1XmhkpInRMimf8qLY8Vtt3O+jT+oy6IuzZQ7m1LqZxy+BFyS 8UVAQ4UDs11qISKp2dkENTao0IQKiuNgoVfOunMubmD1JGPsW2mfTwQwYBhvmjy7XKBS yG042Fe2FVbT5wt3qWTswoAKndVjIJU5nXZkx0GZSEgzAhfYLi8NsmP5lpthO3SNf++j xh3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=2CCg1kKQjuiUyNDVYMgn3AFtKs9mkzCLZ6Dk+LwkkcE=; b=L/25VWChrSgS6Snh72SnFZiBX92LZUxtItshb7WPS/unOTR0I20+AmKZzelL5ugGdp xi1yhjfG55f0oJ3kwb3bk7hlkHUWwDkPgI0f15JqC4enHIXuXmEt6a/5fuHDDZUmroQ4 x2OZDNfqWlY2zyIba/VMkMX+vMxa9XlSdRTojauHHoXDrBVAHUZi42cJgLtw1rnhS5af PR2ZjTqhbcDwAYhnZ2PCGMAsxLlih8tuwVSq9c1uWM/zAWo6qLmimR10nbcEsDRWKaKk qCGGT0LbAKE45hNjwPdav1JBru1tPTrj1CLbVPLTCw5mOiXkwTSqyXRcIClh8fh+fags POFw== X-Gm-Message-State: APjAAAX0veQKUshDB18bWk/H+2r/4tvDfD7S+MU8zHvnqGNCk1VZfRWY sBamMbUdfTZ3tS4dJpUXwrwByN68vubYIRLxcoeV7GFY X-Google-Smtp-Source: APXvYqyvi2AAYJRu+Cjm5PyDAGozrSn+UhaWZoI/VD75Cu9IGu8jizkW31cdONs7Fw7pQWA09DmIhzYPait0Zce4E9o= X-Received: by 2002:a5e:9813:: with SMTP id s19mr22889835ioj.263.1568106986194; Tue, 10 Sep 2019 02:16:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6638:585:0:0:0:0 with HTTP; Tue, 10 Sep 2019 02:16:25 -0700 (PDT) In-Reply-To: <20190910094014.3dc6b728@ncopa-desktop.copa.dup.pw> References: <20190910094014.3dc6b728@ncopa-desktop.copa.dup.pw> From: Chris Johnson Date: Tue, 10 Sep 2019 04:16:25 -0500 Message-ID: Subject: Re: Raspberry Pi 4 Kernel and Boot To: ~alpine/devel@lists.alpinelinux.org Content-Type: text/plain; charset="UTF-8" Just filed an issue (#10789). Thanks! On 9/10/19, Natanael Copa wrote: > Hi! > > Thanks for this. > > Can you please file an issue on > https://gitlab.alpinelinux.org/alpine/aports/issues with all those > details? It will help us not forget. > > Thanks! > > -nc > > On Mon, 9 Sep 2019 23:54:40 -0500 > Chris Johnson wrote: > >> 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 > >