Skip to contentSkip to conversation

ARM: bcm2835: enable all bcm2835-relevant in defconfig

PATCH Superseded Stefan Wahren 3 participants 4 messages Oct 15, 2015 – Oct 27, 2015

Subsystems (3)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ARM: bcm2835: enable all bcm2835-relevant in defconfig

Rebuild bcm2835_defconfig using "make bcm2835_defconfig; make savedefconfig", and enable manually the following features:

* all bcm2835-relevant drivers (MBOX, WDT, DMA, PWM, SND)
* enable regular stackprotector because CONFIG_CC_STACKPROTECTOR disappear
* enable some new dependencies in order to keep LED heartbeat ( CONFIG_NEW_LEDS, CONFIG_LEDS_CLASS, CONFIG_LEDS_TRIGGERS )

---
 arch/arm/configs/bcm2835_defconfig |   28 +++++++++++++++++-----------
 1 file changed, 17 insertions(+), 11 deletions(-)

This patch is only compile-tested.

Changes in V2: clarify patch description

arch/arm/configs/bcm2835_defconfig +17 -11
index 31cb073..0fda844 100644
@@ -10,7 +10,6 @@ CONFIG_CGROUP_FREEZER=y
 CONFIG_CGROUP_DEVICE=y
 CONFIG_CPUSETS=y
 CONFIG_CGROUP_CPUACCT=y
-CONFIG_RESOURCE_COUNTERS=y
 CONFIG_CGROUP_PERF=y
 CONFIG_CFS_BANDWIDTH=y
 CONFIG_RT_GROUP_SCHED=y
@@ -18,10 +17,6 @@ CONFIG_NAMESPACES=y
 CONFIG_SCHED_AUTOGROUP=y
 CONFIG_RELAY=y
 CONFIG_BLK_DEV_INITRD=y
-CONFIG_RD_BZIP2=y
-CONFIG_RD_LZMA=y
-CONFIG_RD_XZ=y
-CONFIG_RD_LZO=y
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
 CONFIG_KALLSYMS_ALL=y
 CONFIG_EMBEDDED=y
@@ -29,6 +24,7 @@ CONFIG_EMBEDDED=y
 CONFIG_PROFILING=y
 CONFIG_OPROFILE=y
 CONFIG_JUMP_LABEL=y
+CONFIG_CC_STACKPROTECTOR_REGULAR=y
 CONFIG_ARCH_MULTI_V6=y
 # CONFIG_ARCH_MULTI_V7 is not set
 CONFIG_ARCH_BCM=y
@@ -38,7 +34,6 @@ CONFIG_AEABI=y
 CONFIG_KSM=y
 CONFIG_CLEANCACHE=y
 CONFIG_SECCOMP=y
-CONFIG_CC_STACKPROTECTOR=y
 CONFIG_KEXEC=y
 CONFIG_CRASH_DUMP=y
 CONFIG_VFP=y
@@ -57,7 +52,6 @@ CONFIG_DEVTMPFS_MOUNT=y
 # CONFIG_STANDALONE is not set
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
-CONFIG_SCSI_MULTI_LUN=y
 CONFIG_SCSI_CONSTANTS=y
 CONFIG_SCSI_SCAN_ASYNC=y
 CONFIG_NETDEVICES=y
@@ -77,17 +71,27 @@ CONFIG_SPI=y
 CONFIG_SPI_BCM2835=y
 CONFIG_GPIO_SYSFS=y
 # CONFIG_HWMON is not set
+CONFIG_WATCHDOG=y
+CONFIG_BCM2835_WDT=y
 CONFIG_FB=y
 CONFIG_FB_SIMPLE=y
 CONFIG_FRAMEBUFFER_CONSOLE=y
 CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
+CONFIG_SOUND=y
+CONFIG_SND=y
+CONFIG_SND_SOC=y
+CONFIG_SND_BCM2835_SOC_I2S=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
+CONFIG_USB_DWC2=y
 CONFIG_MMC=y
 CONFIG_MMC_SDHCI=y
 CONFIG_MMC_SDHCI_PLTFM=y
 CONFIG_MMC_SDHCI_BCM2835=y
+CONFIG_NEW_LEDS=y
+CONFIG_LEDS_CLASS=y
 CONFIG_LEDS_GPIO=y
+CONFIG_LEDS_TRIGGERS=y
 CONFIG_LEDS_TRIGGER_TIMER=y
 CONFIG_LEDS_TRIGGER_ONESHOT=y
 CONFIG_LEDS_TRIGGER_HEARTBEAT=y
@@ -96,17 +100,19 @@ CONFIG_LEDS_TRIGGER_GPIO=y
 CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
 CONFIG_LEDS_TRIGGER_TRANSIENT=y
 CONFIG_LEDS_TRIGGER_CAMERA=y
+CONFIG_DMADEVICES=y
+CONFIG_DMA_BCM2835=y
 CONFIG_STAGING=y
-CONFIG_USB_DWC2=y
-CONFIG_USB_DWC2_HOST=y
+CONFIG_MAILBOX=y
+CONFIG_BCM2835_MBOX=y
 # CONFIG_IOMMU_SUPPORT is not set
+CONFIG_PWM=y
+CONFIG_PWM_BCM2835=y
 CONFIG_EXT2_FS=y
 CONFIG_EXT2_FS_XATTR=y
 CONFIG_EXT2_FS_POSIX_ACL=y
 CONFIG_EXT3_FS=y
 CONFIG_EXT3_FS_POSIX_ACL=y
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_FANOTIFY=y
 CONFIG_MSDOS_FS=y
 CONFIG_VFAT_FS=y
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v2 1/1 ARM: bcm2835: enable all bcm2835-relevant in defconfig

Quoted 10 lines · Stefan Wahren

Rebuild bcm2835_defconfig using "make bcm2835_defconfig; make savedefconfig", and enable manually the following features:

* all bcm2835-relevant drivers (MBOX, WDT, DMA, PWM, SND)
* enable regular stackprotector because CONFIG_CC_STACKPROTECTOR disappear
* enable some new dependencies in order to keep LED heartbeat ( CONFIG_NEW_LEDS, CONFIG_LEDS_CLASS, CONFIG_LEDS_TRIGGERS )

arch/arm/configs/bcm2835_defconfig

Quoted 10 lines
arch/arm/configs/bcm2835_defconfig +0 -9
 
-CONFIG_RESOURCE_COUNTERS=y
-CONFIG_RD_BZIP2=y
-CONFIG_RD_LZMA=y
-CONFIG_RD_XZ=y
-CONFIG_RD_LZO=y
-CONFIG_SCSI_MULTI_LUN=y
-CONFIG_USB_DWC2_HOST=y
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y

Do you know why all of those were removed?

#2 lore raw

PATCH v2 1/1 ARM: bcm2835: enable all bcm2835-relevant in defconfig

Am 25.10.2015 um 04:48 schrieb Stephen Warren:

Quoted 10 lines · Stefan Wahren
Quoted 8 lines

Rebuild bcm2835_defconfig using "make bcm2835_defconfig; make savedefconfig", and enable manually the following features:

* all bcm2835-relevant drivers (MBOX, WDT, DMA, PWM, SND)
* enable regular stackprotector because CONFIG_CC_STACKPROTECTOR disappear
* enable some new dependencies in order to keep LED heartbeat ( CONFIG_NEW_LEDS, CONFIG_LEDS_CLASS, CONFIG_LEDS_TRIGGERS )

Quoted 3 lines

arch/arm/configs/bcm2835_defconfig

Quoted 3 lines
arch/arm/configs/bcm2835_defconfig +0 -1
 
-CONFIG_RESOURCE_COUNTERS=y

This option becomes obsolete:

kernel: res_counter: remove the unused API

5b1efc027c0b51ca3e76f4e00c83358f8349f543

Quoted 4 lines

arch/arm/configs/bcm2835_defconfig CONFIG_NAMESPACES=y · line 24

Quoted 4 lines
arch/arm/configs/bcm2835_defconfig +0 -4
-CONFIG_RD_BZIP2=y
-CONFIG_RD_LZMA=y
-CONFIG_RD_XZ=y
-CONFIG_RD_LZO=y

These are enabled implicit.

Quoted 1 line
Quoted 1 line

-CONFIG_SCSI_MULTI_LUN=y

This option becomes obsolete:

scsi: Remove CONFIG_SCSI_MULTI_LUN

c309b35171ddb5384cc3f2f9dc82a96dccc6b7f6

Quoted 3 lines

arch/arm/configs/bcm2835_defconfig CONFIG_LEDS_TRIGGER_GPIO=y · line 109

Quoted 3 lines
arch/arm/configs/bcm2835_defconfig +0 -3
-CONFIG_USB_DWC2_HOST=y
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y

These are enabled implicit.

Quoted 8 lines

Do you know why all of those were removed?

_______________________________________________
linux-rpi-kernel mailing list
linux-rpi-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rpi-kernel

#3 lore raw

PATCH v2 1/1 ARM: bcm2835: enable all bcm2835-relevant in defconfig

Quoted 35 lines · Stefan Wahren

Am 25.10.2015 um 04:48 schrieb Stephen Warren:

Quoted 10 lines · Stefan Wahren
Quoted 8 lines

Rebuild bcm2835_defconfig using "make bcm2835_defconfig; make savedefconfig", and enable manually the following features:

* all bcm2835-relevant drivers (MBOX, WDT, DMA, PWM, SND)
* enable regular stackprotector because CONFIG_CC_STACKPROTECTOR disappear
* enable some new dependencies in order to keep LED heartbeat ( CONFIG_NEW_LEDS, CONFIG_LEDS_CLASS, CONFIG_LEDS_TRIGGERS )

Quoted 4 lines

arch/arm/configs/bcm2835_defconfig

Quoted 4 lines
arch/arm/configs/bcm2835_defconfig +0 -1
 
-CONFIG_RESOURCE_COUNTERS=y

This option becomes obsolete:

kernel: res_counter: remove the unused API

5b1efc027c0b51ca3e76f4e00c83358f8349f543

Quoted 4 lines

arch/arm/configs/bcm2835_defconfig CONFIG_NAMESPACES=y · line 24

Quoted 4 lines
arch/arm/configs/bcm2835_defconfig +0 -4
-CONFIG_RD_BZIP2=y
-CONFIG_RD_LZMA=y
-CONFIG_RD_XZ=y
-CONFIG_RD_LZO=y

These are enabled implicit.

Quoted 1 line
Quoted 1 line

-CONFIG_SCSI_MULTI_LUN=y

This option becomes obsolete:

scsi: Remove CONFIG_SCSI_MULTI_LUN

Quoted 10 lines

c309b35171ddb5384cc3f2f9dc82a96dccc6b7f6

Quoted 3 lines

arch/arm/configs/bcm2835_defconfig CONFIG_LEDS_TRIGGER_GPIO=y · line 109

Quoted 3 lines
arch/arm/configs/bcm2835_defconfig +0 -3
-CONFIG_USB_DWC2_HOST=y
-CONFIG_EXT4_FS=y
-CONFIG_EXT4_FS_POSIX_ACL=y

These are enabled implicit.

Quoted 2 lines

Do you know why all of those were removed?

The explanations sound good. It'd be useful to have that kind of thing explained in the commit message for any future patches.