Skip to contentSkip to conversation

boards/raspberrypi: update instructions for Raspberry Pi 2

PATCH New Yann E. MORIN 3 participants 9 messages Feb 24, 2015 – Mar 31, 2015 Broadcom BCM2711/BCM2835 Arm architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 boards/raspberrypi: update instructions for Raspberry Pi 2

The instructions for the Raspberry Pi 2 (aka model B2) are the same as the ones for the Raspberry Pi, so:
- state so in the existing readme
- create a symlink raspberrypi2 -> raspberrypi

Also fix typo in spelling of "Raspberry Pi" (two words, not one).

---
 board/raspberrypi/readme.txt | 11 ++++++++---
 board/raspberrypi2           |  1 +
 2 files changed, 9 insertions(+), 3 deletions(-)
 create mode 120000 board/raspberrypi2
board/raspberrypi/readme.txt +8 -3
index ead9227..917c34a 100644
@@ -1,9 +1,14 @@
-RaspberryPi
+Raspberry Pi
 
 Intro
 =====
 
-To be able to use your RaspberryPi board with the images generated by
+Those instructions apply to all models of the Raspberry Pi:
+  - the original models A and B,
+  - the "enhanced" models A+ and B+,
+  - the model B2 (aka Raspberry Pi 2).
+
+To be able to use your Raspberry Pi board with the images generated by
 Buildroot, you have to choose whether you will use:
 
     * Volatile rootfs in RAM (the rootfs is an initramfs) or
@@ -96,7 +101,7 @@ Mount the partitions (adjust 'sdX' to match your SDcard device):
 Install the binaries to the SDCard
 ----------------------------------
 
-At the root of the boot partition, the RaspberryPi must find the following
+At the root of the boot partition, the Raspberry Pi must find the following
 files:
 
     * bcm2708-rpi-b.dtb         [2]
board/raspberrypi2 new file +1 -0
new file mode 120000
index 0000000..fcdafc8
@@ -0,0 +1 @@
+raspberrypi
\ No newline at end of file
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 configs/raspberrypi2: update and fix our defconfig

Lock to 3.19 kernel headers; and comment about installing DTBs; bump kernel sha1.

---
 configs/raspberrypi2_defconfig | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
configs/raspberrypi2_defconfig +11 -1
index d2f97fb..b523a4a 100644
@@ -2,14 +2,24 @@ BR2_arm=y
 BR2_cortex_a7=y
 BR2_ARM_EABIHF=y
 BR2_ARM_FPU_NEON_VFPV4=y
+
 BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
 BR2_TOOLCHAIN_BUILDROOT_CXX=y
+
 BR2_TARGET_GENERIC_GETTY_PORT="tty1"
+
+# Lock to 3.19 headers as the RPi2 kernel is based off the 3.19 branch
+BR2_KERNEL_HEADERS_VERSION=y
+BR2_DEFAULT_KERNEL_VERSION="3.19"
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_19=y
+
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
 BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="3c9fd364bfa6c0f6ef725d74b72a9b77dd0d0fb4"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="23c76b7f608e51258c6fca02aebeb5d588583149"
 BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"
 BR2_LINUX_KERNEL_ZIMAGE=y
+
+# Install the DTB files, as the RPi2 uses the Device Tree
 BR2_PACKAGE_RPI_FIRMWARE=y
 BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS=y
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 configs/raspberrypi2: update and fix our defconfig

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Lock to 3.19 kernel headers; and comment about installing DTBs; bump kernel sha1.

Committed to next, thanks.

Will you also send a patch (for master) doing the same for raspberrypi_dt_defconfig?

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 2/2 configs/raspberrypi2: update and fix our defconfig

Peter, All,

On 2015-02-26 22:47 +0100, Peter Korsgaard spake thusly:

Quoted 5 lines
Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

Lock to 3.19 kernel headers; and comment about installing DTBs; bump kernel sha1.

Quoted 7 lines
Quoted 2 lines

Committed to next, thanks.

Will you also send a patch (for master) doing the same for raspberrypi_dt_defconfig?

I can do so, yes... ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#4 lore raw

PATCH 2/2 configs/raspberrypi2: update and fix our defconfig

In reply to Yann E. MORIN

[posted and mailed]

"Yann E. MORIN" <[email protected]> wrote in news:1424817743-3627-2-git-send-email-yann.morin.1998 at free.fr:

Quoted 1 line

-BR2

_LINUX_KERNEL_CUSTOM_REPO_VERSION="3c9fd364bfa6c0f6ef725d74b72a9b77dd0d0fb4"

Quoted 1 line

+BR2

_LINUX_KERNEL_CUSTOM_REPO_VERSION="23c76b7f608e51258c6fca02aebeb5d588583149"

Hi Yann,

downloading the kernel source fails seems to be broken:

Quoted 1 line
Quoted 1 line
Quoted 1 line

linux 23c76b7f608e51258c6fca02aebeb5d588583149 Downloading

Doing full clone
Cloning into bare repository 'linux- 23c76b7f608e51258c6fca02aebeb5d588583149'...
POST git-upload-pack (gzip 1074 to 571 bytes)
remote: Counting objects: 4091705, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 4091705 (delta 0), reused 0 (delta 0), pack-reused 4091697 Receiving objects: 100% (4091705/4091705), 1.14 GiB | 5.51 MiB/s, done. Resolving deltas: 100% (3373468/3373468), done.
fatal: not a tree object

Regards, Bernd

#5 lore raw

PATCH 2/2 configs/raspberrypi2: update and fix our defconfig

Bernd, All,

On 2015-03-31 22:13 +0200, Bernd Kuhls spake thusly:

Quoted 1 line

[posted and mailed]

[That's a bit annoying: when I replied, the reply went to you only, and the list was not Cc-ed. Could you just use your mailer's "reply-all" feature?]

Quoted 11 lines

"Yann E. MORIN" <[email protected]> wrote in news:1424817743-3627-2-git-send-email-yann.morin.1998 at free.fr:

configs/raspberrypi2_defconfig BR2_arm=y · line 19

Quoted 2 lines
configs/raspberrypi2_defconfig +1 -1
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="3c9fd364bfa6c0f6ef725d74b72a9b77dd0d0fb4"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="23c76b7f608e51258c6fca02aebeb5d588583149"

Hi Yann,

downloading the kernel source fails seems to be broken:

Quoted 1 line
Quoted 1 line
Quoted 1 line

linux 23c76b7f608e51258c6fca02aebeb5d588583149 Downloading

Quoted 10 lines

Doing full clone
Cloning into bare repository 'linux- 23c76b7f608e51258c6fca02aebeb5d588583149'...
POST git-upload-pack (gzip 1074 to 571 bytes)
remote: Counting objects: 4091705, done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 4091705 (delta 0), reused 0 (delta 0), pack-reused 4091697 Receiving objects: 100% (4091705/4091705), 1.14 GiB | 5.51 MiB/s, done. Resolving deltas: 100% (3373468/3373468), done.
fatal: not a tree object

Yes, that's not surprising.

The RPi folks are known to rebase their branch rather than merge upstream.

Also, they do not tag it.

So, we can only use sha1s, and those are prone to disapear from time to time (rather frequently) and that's a shame.

I'll post an issue on their tracker to ask for tags.

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#6 lore raw

PATCH 2/2 configs/raspberrypi2: update and fix our defconfig

Bernd, All,

On 2015-03-31 22:56 +0200, Yann E. MORIN spake thusly:

Quoted 2 lines

On 2015-03-31 22:13 +0200, Bernd Kuhls spake thusly:

Quoted 1 line

downloading the kernel source fails seems to be broken:

[--SNIP--]

Quoted 1 line

I'll post an issue on their tracker to ask for tags.

Done:
https://github.com/raspberrypi/linux/issues/915

If you feel it's important to you (and I'm not speaking only to Bernd), please feel free to voice your concern over there! ;-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#7 lore raw

PATCH 1/2 boards/raspberrypi: update instructions for Raspberry Pi 2

In reply to Yann E. MORIN
Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

The instructions for the Raspberry Pi 2 (aka model B2) are the same as the ones for the Raspberry Pi, so:
- state so in the existing readme
- create a symlink raspberrypi2 -> raspberrypi

Also fix typo in spelling of "Raspberry Pi" (two words, not one).

---
 board/raspberrypi/readme.txt | 11 ++++++++---
 board/raspberrypi2           |  1 +
 2 files changed, 9 insertions(+), 3 deletions(-)
 create mode 120000 board/raspberrypi2
board/raspberrypi/readme.txt +0 -0
index ead9227..917c34a 100644

board/raspberrypi/readme.txt line 6

Quoted 8 lines
board/raspberrypi/readme.txt +2 -2
@@ -1,9 +1,14 @@
-RaspberryPi
+Raspberry Pi
 
 Intro
 =====
 
-To be able to use your RaspberryPi board with the images generated by
+Those instructions apply to all models of the Raspberry Pi:

s/Those/These/

board/raspberrypi2 line 1

Quoted 8 lines
board/raspberrypi2 new file +1 -0
new file mode 120000
index 0000000..fcdafc8
@@ -0,0 +1 @@
+raspberrypi
\ No newline at end of file

I don't know if it is patchwork, but this ended up as a symlink to 'raspberrypi?'

Committed to next with those issues fixed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#8 lore raw

PATCH 1/2 boards/raspberrypi: update instructions for Raspberry Pi 2

Peter, All,

On 2015-02-26 22:46 +0100, Peter Korsgaard spake thusly:

Quoted 11 lines

board/raspberrypi2 line 1

Quoted 9 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

board/raspberrypi2 new file +1 -0
new file mode 120000
index 0000000..fcdafc8
@@ -0,0 +1 @@
+raspberrypi
\ No newline at end of file

I don't know if it is patchwork, but this ended up as a symlink to 'raspberrypi?'

Yes, Patchwork is picky with symlinks. This already hapenned quite a few times recently. Remember the website move?

Quoted 1 line

Committed to next with those issues fixed, thanks.

Thanks! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'