Skip to content

Commit

Permalink
feat: cm3 64 bits OS
Browse files Browse the repository at this point in the history
This modifies kernel source and creates the machine
  • Loading branch information
David Bensoussan committed Oct 27, 2017
1 parent 3abb30b commit 4203205
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
1 change: 1 addition & 0 deletions classes/sdcard_image-rpi.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ KERNEL_INITRAMFS ?= ""
SDIMG_KERNELIMAGE_raspberrypi ?= "kernel.img"
SDIMG_KERNELIMAGE_raspberrypi2 ?= "kernel7.img"
SDIMG_KERNELIMAGE_raspberrypi3-64 ?= "kernel8.img"
SDIMG_KERNELIMAGE_raspberrypi-cm3-64 ?= "kernel8.img"

# Boot partition volume id
BOOTDD_VOLUME_ID ?= "${MACHINE}"
Expand Down
41 changes: 41 additions & 0 deletions conf/machine/raspberrypi-cm3-64.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#@TYPE: Machine
#@NAME: RaspberryPi 3 Development Board
#@DESCRIPTION: Machine configuration for the RaspberryPi 3 in 64 bits mode

MACHINEOVERRIDES = "raspberrypi2:${MACHINE}"

MACHINE_EXTRA_RRECOMMENDS += "linux-firmware-bcm43430"

require conf/machine/include/arm/arch-armv8.inc
include conf/machine/include/rpi-base.inc

KERNEL_DEVICETREE = " \
broadcom/bcm2837-rpi-cm3.dtb \
\
overlays/hifiberry-amp.dtbo \
overlays/hifiberry-dac.dtbo \
overlays/hifiberry-dacplus.dtbo \
overlays/hifiberry-digi.dtbo \
overlays/i2c-rtc.dtbo \
overlays/iqaudio-dac.dtbo \
overlays/iqaudio-dacplus.dtbo \
overlays/lirc-rpi.dtbo \
overlays/pitft22.dtbo \
overlays/pitft28-resistive.dtbo \
overlays/pitft35-resistive.dtbo \
overlays/pps-gpio.dtbo \
overlays/rpi-ft5406.dtbo \
overlays/w1-gpio.dtbo \
overlays/w1-gpio-pullup.dtbo \
overlays/pi3-disable-bt.dtbo \
overlays/pi3-miniuart-bt.dtbo \
overlays/vc4-kms-v3d.dtbo \
overlays/vc4-fkms-v3d.dtbo \
"

SERIAL_CONSOLE ?= "115200 ttyS0"
#VC4_CMA_SIZE ?= "cma-256"

UBOOT_MACHINE = "rpi_3_config"
#MACHINE_FEATURES_append = " vc4graphics"
KERNEL_DEFCONFIG ?= "bcmrpi3_defconfig"
1 change: 1 addition & 0 deletions recipes-kernel/linux/linux-raspberrypi.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ KBUILD_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
KBUILD_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
KBUILD_DEFCONFIG_raspberrypi3 ?= "bcm2709_defconfig"
KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig"
KBUILD_DEFCONFIG_raspberrypi-cm3-64 ?= "bcmrpi3_defconfig"

# CMDLINE for raspberrypi
CMDLINE ?= "dwc_otg.lpm_enable=0 console=serial0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
Expand Down
6 changes: 3 additions & 3 deletions recipes-kernel/linux/linux-raspberrypi_4.9.bb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"

LINUX_VERSION ?= "4.9.50"
LINUX_VERSION ?= "4.9.52"

SRCREV = "46e2d4d1bd2c17e2f84dd90768321ee0bbaa6b8a"
SRC_URI = "git://github.com/raspberrypi/linux.git;branch=rpi-4.9.y"
SRCREV = "19577521f46c188a592f44cb311c0d421b0c9d93"
SRC_URI = "git://github.com/synapticon/linux.git;branch=cm3_64"

require linux-raspberrypi.inc

Expand Down

0 comments on commit 4203205

Please sign in to comment.