x86: Convert minnowmax to use CONFIG_DM_NET
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
@@ -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
@@ -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
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
@@ -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
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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2: None
configs/minnowmax_defconfig | 2 ++ 1 file changed, 2 insertions(+)configs/minnowmax_defconfig +0
-0
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
PATCH v2 3/3 x86: Show the un-relocated IP address in exceptions
In reply to Simon GlassWhen 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
@@ -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
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.
Signed-off-by Simon Glass <[email protected]>
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>
PATCH v2 3/3 x86: Show the un-relocated IP address in exceptions
In reply to Simon GlassHi 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.
Signed-off-by Simon Glass <[email protected]>---
Changes in v2:
- Tweak thedump_regs()output to say 'Original EIP'arch/x86/cpu/interrupts.c | 2 ++ 1 file changed, 2 insertions(+)arch/x86/cpu/interrupts.c +0
-0
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
-1printf ("EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n" , regs->eax, regs->ebx, regs->ecx, regs->edx); --
Regards,
Bin
PATCH v2 1/3 x86: Convert minnowmax to use CONFIG_DM_NET
In reply to Simon GlassHi Simon,
Quoted 37 lines · Simon Glass
Move to driver model for networking on minnowmax.
Signed-off-by Simon Glass <[email protected]>---
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@@ -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
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