Skip to contentSkip to conversation

x86: Convert minnowmax to use CONFIG_DM_NET

PATCH Superseded Simon Glass 3 participants 7 messages Aug 3, 2015 – Aug 6, 2015 x86

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/3 x86: Convert minnowmax to use CONFIG_DM_NET

Move to driver model for networking on minnowmax.

---

Changes in v2: None

 board/intel/minnowmax/minnowmax.c | 6 ------
 configs/minnowmax_defconfig       | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)
board/intel/minnowmax/minnowmax.c +0 -6
index c4f2c33..44e5bf4 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <asm/gpio.h>
-#include <netdev.h>
 
 int arch_early_init_r(void)
 {
@@ -20,8 +19,3 @@ void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio)
 {
 	return;
 }
-
-int board_eth_init(bd_t *bis)
-{
-	return pci_eth_init(bis);
-}
configs/minnowmax_defconfig +1 -0
index e98f5eb..6ba22d6 100644
@@ -24,3 +24,4 @@ CONFIG_FRAMEBUFFER_VESA_MODE_11A=y
 CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
+CONFIG_DM_ETH=y
Signature · 1 line
2.5.0.rc2.392.g76e840b
#1 lore raw

PATCH v2 2/3 x86: Convert minnowmax to use CONFIG_DM_USB

Move to driver model for USB on minnowmax.

---

Changes in v2: None

 configs/minnowmax_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/minnowmax_defconfig +2 -0
index 6ba22d6..4c13968 100644
@@ -25,3 +25,5 @@ CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
 CONFIG_DM_ETH=y
+CONFIG_DM_USB=y
+CONFIG_USB=y
Signature · 1 line
2.5.0.rc2.392.g76e840b
#2 lore raw

PATCH v2 2/3 x86: Convert minnowmax to use CONFIG_DM_USB

Hi Simon,

Quoted 15 lines · Simon Glass

Move to driver model for USB on minnowmax.

---

Changes in v2: None

 configs/minnowmax_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/minnowmax_defconfig +0 -0
index 6ba22d6..4c13968 100644

configs/minnowmax_defconfig CONFIG_DM_RTC=y

Quoted 6 lines
configs/minnowmax_defconfig +2 -1
@@ -25,3 +25,5 @@ CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
 CONFIG_DM_ETH=y
+CONFIG_DM_USB=y
+CONFIG_USB=y
--

Can we reorder this with savedefconfig?

Regards,
Bin

#3 lore raw

PATCH v2 3/3 x86: Show the un-relocated IP address in exceptions

In reply to Simon Glass

When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.

---

Changes in v2:
- Tweak the dump_regs() output to say 'Original EIP'

 arch/x86/cpu/interrupts.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/cpu/interrupts.c +2 -0
index 3a9c2d4..4c79cb3 100644
@@ -103,6 +103,8 @@ static void dump_regs(struct irq_regs *regs)
 
 	printf("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n",
 			(u16)cs, eip, eflags);
+	if (gd->flags & GD_FLG_RELOC)
+		printf("Original EIP :[<%08lx>]\n", regs->eip - gd->reloc_off);
 
 	printf("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
 		regs->eax, regs->ebx, regs->ecx, regs->edx);
Signature · 1 line
2.5.0.rc2.392.g76e840b
#4 lore raw

PATCH v2 3/3 x86: Show the un-relocated IP address in exceptions

Quoted 5 lines · Simon Glass

When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.

I see ARM has something similar, and yes, this is helpful.

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20150803/35aad46f/attachment.sig>
#5 lore raw

PATCH v2 3/3 x86: Show the un-relocated IP address in exceptions

In reply to Simon Glass

Hi Simon,

Quoted 18 lines · Simon Glass

When trying to figure out where an exception has occured, the relocated address is not a lot of help. Its value depends on various factors. Show the un-relocated IP as well. This can be looked up in System.map directly.

---

Changes in v2:
- Tweak the dump_regs() output to say 'Original EIP'

 arch/x86/cpu/interrupts.c | 2 ++
 1 file changed, 2 insertions(+)
arch/x86/cpu/interrupts.c +0 -0
index 3a9c2d4..4c79cb3 100644

arch/x86/cpu/interrupts.c static void dump_regs(struct irq_regs *regs) · line 107

Quoted 5 lines
arch/x86/cpu/interrupts.c +2 -0
@@ -103,6 +103,8 @@ static void dump_regs(struct irq_regs *regs)
 
        printf("EIP: %04x:[<%08lx>] EFLAGS: %08lx\n",
                        (u16)cs, eip, eflags);
+       if (gd->flags & GD_FLG_RELOC)
+               printf("Original EIP :[<%08lx>]\n", regs->eip - gd->reloc_off);

This should not be 'regs->eip'. It should be just 'eip'.

arch/x86/cpu/interrupts.c static void dump_regs(struct irq_regs *regs)

Quoted 4 lines
arch/x86/cpu/interrupts.c +0 -1
        printf("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
                regs->eax, regs->ebx, regs->ecx, regs->edx);
--

Regards,
Bin

#6 lore raw

PATCH v2 1/3 x86: Convert minnowmax to use CONFIG_DM_NET

In reply to Simon Glass

Hi Simon,

Quoted 37 lines · Simon Glass

Move to driver model for networking on minnowmax.

---

Changes in v2: None

 board/intel/minnowmax/minnowmax.c | 6 ------
 configs/minnowmax_defconfig       | 1 +
 2 files changed, 1 insertion(+), 6 deletions(-)
board/intel/minnowmax/minnowmax.c +0 -6
index c4f2c33..44e5bf4 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <asm/gpio.h>
-#include <netdev.h>
 
 int arch_early_init_r(void)
 {
@@ -20,8 +19,3 @@ void setup_pch_gpios(u16 gpiobase, const struct pch_gpio_map *gpio)
 {
        return;
 }
-
-int board_eth_init(bd_t *bis)
-{
-       return pci_eth_init(bis);
-}
configs/minnowmax_defconfig +0 -0
index e98f5eb..6ba22d6 100644

configs/minnowmax_defconfig CONFIG_FRAMEBUFFER_VESA_MODE_11A=y

Quoted 5 lines
configs/minnowmax_defconfig +1 -1
@@ -24,3 +24,4 @@ CONFIG_FRAMEBUFFER_VESA_MODE_11A=y
 CONFIG_DM_RTC=y
 CONFIG_USE_PRIVATE_LIBGCC=y
 CONFIG_SYS_VSNPRINTF=y
+CONFIG_DM_ETH=y
--

Can we reorder this with savedefconfig?

Regards,
Bin