diff mbox series

[3/4] board/raspberrypi: add support for rpi3 b+

Message ID 1521120291-15781-3-git-send-email-martin@barkynet.com
State Superseded
Headers show
Series [1/4] package/rpi-firmware: bump version | expand

Commit Message

Martin Bark March 15, 2018, 1:24 p.m. UTC
Signed-off-by: Martin Bark <martin@barkynet.com>
---
 board/raspberrypi/genimage-raspberrypi3.cfg | 1 +
 board/raspberrypi/readme.txt                | 3 ++-
 configs/raspberrypi3_defconfig              | 2 +-
 configs/raspberrypi3_qt5we_defconfig        | 2 +-
 4 files changed, 5 insertions(+), 3 deletions(-)

Comments

Baruch Siach March 15, 2018, 1:33 p.m. UTC | #1
Hi Martin,

On Thu, Mar 15, 2018 at 01:24:50PM +0000, Martin Bark wrote: 
> diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
> index 9482693..9f91581 100644
> --- a/board/raspberrypi/readme.txt
> +++ b/board/raspberrypi/readme.txt
> @@ -30,7 +30,7 @@ For model 2 B:
>  
>    $ make raspberrypi2_defconfig
>  
> -For model 3 B:
> +For model 3 B and B+:

This is quick. Have you tested on hardware?

baruch
Martin Bark March 15, 2018, 2:07 p.m. UTC | #2
Hi Baruch,

On 15 March 2018 at 13:33, Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Martin,
>
> On Thu, Mar 15, 2018 at 01:24:50PM +0000, Martin Bark wrote:
>> diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
>> index 9482693..9f91581 100644
>> --- a/board/raspberrypi/readme.txt
>> +++ b/board/raspberrypi/readme.txt
>> @@ -30,7 +30,7 @@ For model 2 B:
>>
>>    $ make raspberrypi2_defconfig
>>
>> -For model 3 B:
>> +For model 3 B and B+:
>
> This is quick. Have you tested on hardware?

I've testing it builds and runs on the rpi3 but not tested on a
rpi3b+.  I should get my rpi3b+ soon to verify this.  The current
kernel includes all the changes needed for the rpi3b+. To add support
we just need to include the bcm2710-rpi-3-b-plus.dtb.

Note that i don't see any updates to the arm64 defconfig for dtb files
so raspberrypi3_64_defconfig will remain unchanged for now.

Thanks

Martin

>
> baruch
>
> --
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch@tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
diff mbox series

Patch

diff --git a/board/raspberrypi/genimage-raspberrypi3.cfg b/board/raspberrypi/genimage-raspberrypi3.cfg
index 98ff709..0a54724 100644
--- a/board/raspberrypi/genimage-raspberrypi3.cfg
+++ b/board/raspberrypi/genimage-raspberrypi3.cfg
@@ -2,6 +2,7 @@  image boot.vfat {
   vfat {
     files = {
       "bcm2710-rpi-3-b.dtb",
+      "bcm2710-rpi-3-b-plus.dtb",
       "bcm2710-rpi-cm3.dtb",
       "rpi-firmware/bootcode.bin",
       "rpi-firmware/cmdline.txt",
diff --git a/board/raspberrypi/readme.txt b/board/raspberrypi/readme.txt
index 9482693..9f91581 100644
--- a/board/raspberrypi/readme.txt
+++ b/board/raspberrypi/readme.txt
@@ -30,7 +30,7 @@  For model 2 B:
 
   $ make raspberrypi2_defconfig
 
-For model 3 B:
+For model 3 B and B+:
 
   $ make raspberrypi3_defconfig
 
@@ -56,6 +56,7 @@  After building, you should obtain this tree:
     +-- bcm2708-rpi-b-plus.dtb      [1]
     +-- bcm2709-rpi-2-b.dtb         [1]
     +-- bcm2710-rpi-3-b.dtb         [1]
+    +-- bcm2710-rpi-3-b-plus.dtb    [1]
     +-- boot.vfat
     +-- rootfs.ext4
     +-- rpi-firmware/
diff --git a/configs/raspberrypi3_defconfig b/configs/raspberrypi3_defconfig
index 2fb46d3..40585da 100644
--- a/configs/raspberrypi3_defconfig
+++ b/configs/raspberrypi3_defconfig
@@ -17,7 +17,7 @@  BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-cm3"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-3-b-plus bcm2710-rpi-cm3"
 
 BR2_PACKAGE_RPI_FIRMWARE=y
 
diff --git a/configs/raspberrypi3_qt5we_defconfig b/configs/raspberrypi3_qt5we_defconfig
index dc1bf7f..7830065 100644
--- a/configs/raspberrypi3_qt5we_defconfig
+++ b/configs/raspberrypi3_qt5we_defconfig
@@ -18,7 +18,7 @@  BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 
 # Build the DTB from the kernel sources
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
-BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-cm3"
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-3-b bcm2710-rpi-3-b-plus bcm2710-rpi-cm3"
 
 # Build Qt5 WebEngine
 BR2_PACKAGE_LIBERATION=y