0001-ARM-stm32f249-disco-don-t-force-init-in-chosen-boota.patch 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. From ded9afa688184b3240a92c2b8f114c545a09bc3f Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sat, 12 Mar 2016 23:14:41 +0100
  4. Subject: [PATCH] ARM: stm32f249-disco: don't force init= in /chosen/bootargs
  5. There is no reason to override the kernel's default init= value, as
  6. this breaks userspace that assumes the kernel default of /init is
  7. used. Since stm32 is often used with a minimal bootloader
  8. (afboot-stm32) that doesn't provide any mechanism to override the DTB,
  9. we need to adjust the kernel command line in the Device Tree source.
  10. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  11. ---
  12. arch/arm/boot/dts/stm32f429-disco.dts | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. diff --git a/arch/arm/boot/dts/stm32f429-disco.dts b/arch/arm/boot/dts/stm32f429-disco.dts
  15. index f0b731d..2bae81c 100644
  16. --- a/arch/arm/boot/dts/stm32f429-disco.dts
  17. +++ b/arch/arm/boot/dts/stm32f429-disco.dts
  18. @@ -53,7 +53,7 @@
  19. compatible = "st,stm32f429i-disco", "st,stm32f429";
  20. chosen {
  21. - bootargs = "root=/dev/ram rdinit=/linuxrc";
  22. + bootargs = "root=/dev/ram";
  23. stdout-path = "serial0:115200n8";
  24. };
  25. --
  26. 2.6.4