Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW
@ 2012-09-16 14:48 Hauke Mehrtens
  2012-09-16 14:48 ` [PATCH 2/2] MIPS BCM47XX: select NO_EXCEPT_FILL Hauke Mehrtens
  2012-09-16 15:38 ` [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Kevin Cernekee
  0 siblings, 2 replies; 4+ messages in thread
From: Hauke Mehrtens @ 2012-09-16 14:48 UTC (permalink / raw)
  To: ralf, john; +Cc: linux-mips, Hauke Mehrtens

All the boot loaders I have seen are booting the kernel in raw mode by
default. CFE seams to support elf kernel images too, but the default
case is raw for the devices I know of. Select this option to make the
kernel boot on most of the devices with the default options.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 arch/mips/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index fa171a3..564a06f 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -102,6 +102,7 @@ config ATH79
 config BCM47XX
 	bool "Broadcom BCM47XX based boards"
 	select ARCH_REQUIRE_GPIOLIB
+	select BOOT_RAW
 	select CEVT_R4K
 	select CSRC_R4K
 	select DMA_NONCOHERENT
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] MIPS BCM47XX: select NO_EXCEPT_FILL
  2012-09-16 14:48 [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Hauke Mehrtens
@ 2012-09-16 14:48 ` Hauke Mehrtens
  2012-09-16 15:38 ` [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Kevin Cernekee
  1 sibling, 0 replies; 4+ messages in thread
From: Hauke Mehrtens @ 2012-09-16 14:48 UTC (permalink / raw)
  To: ralf, john; +Cc: linux-mips, Hauke Mehrtens

The kernel is loaded to 0x80001000 so there is some space left for the
exception handlers and the kernel do not have to reserve some extra
space for them.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
---
 arch/mips/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 564a06f..e372fe3 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -108,6 +108,7 @@ config BCM47XX
 	select DMA_NONCOHERENT
 	select HW_HAS_PCI
 	select IRQ_CPU
+	select NO_EXCEPT_FILL
 	select SYS_SUPPORTS_32BIT_KERNEL
 	select SYS_SUPPORTS_LITTLE_ENDIAN
 	select SYS_HAS_EARLY_PRINTK
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW
  2012-09-16 14:48 [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Hauke Mehrtens
  2012-09-16 14:48 ` [PATCH 2/2] MIPS BCM47XX: select NO_EXCEPT_FILL Hauke Mehrtens
@ 2012-09-16 15:38 ` Kevin Cernekee
  2012-11-21 21:05   ` Hauke Mehrtens
  1 sibling, 1 reply; 4+ messages in thread
From: Kevin Cernekee @ 2012-09-16 15:38 UTC (permalink / raw)
  To: ralf, Hauke Mehrtens; +Cc: john, linux-mips

On Sun, Sep 16, 2012 at 7:48 AM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
> All the boot loaders I have seen are booting the kernel in raw mode by
> default. CFE seams to support elf kernel images too, but the default

Nitpick: "seems"

> case is raw for the devices I know of. Select this option to make the
> kernel boot on most of the devices with the default options.

CONFIG_BOOT_RAW only adds about 8 bytes to the kernel image.  Since
early 2008 it's just been implemented as a single jump instruction,
and it's harmless on platforms that don't need it.

Do you think it is worthwhile to delete the Kconfig option, and enable
BOOT_RAW behavior on all builds?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW
  2012-09-16 15:38 ` [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Kevin Cernekee
@ 2012-11-21 21:05   ` Hauke Mehrtens
  0 siblings, 0 replies; 4+ messages in thread
From: Hauke Mehrtens @ 2012-11-21 21:05 UTC (permalink / raw)
  To: ralf, john; +Cc: Kevin Cernekee, linux-mips

On 09/16/2012 05:38 PM, Kevin Cernekee wrote:
> On Sun, Sep 16, 2012 at 7:48 AM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
>> All the boot loaders I have seen are booting the kernel in raw mode by
>> default. CFE seams to support elf kernel images too, but the default
> 
> Nitpick: "seems"
> 
>> case is raw for the devices I know of. Select this option to make the
>> kernel boot on most of the devices with the default options.
> 
> CONFIG_BOOT_RAW only adds about 8 bytes to the kernel image.  Since
> early 2008 it's just been implemented as a single jump instruction,
> and it's harmless on platforms that don't need it.
> 
> Do you think it is worthwhile to delete the Kconfig option, and enable
> BOOT_RAW behavior on all builds?
> 
Ralf should I change the patch to activate BOOT_RAW on all builds like
Kevin suggested?

I just came up with the small change in these patches to make the
bcm47xx SoC boot again without any other patches.

Hauke

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-11-21 21:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-16 14:48 [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Hauke Mehrtens
2012-09-16 14:48 ` [PATCH 2/2] MIPS BCM47XX: select NO_EXCEPT_FILL Hauke Mehrtens
2012-09-16 15:38 ` [PATCH 1/2] MIPS: BCM47XX: select BOOT_RAW Kevin Cernekee
2012-11-21 21:05   ` Hauke Mehrtens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox