On 2014-02-26 12:22, Ezaul Zillmer wrote:
Thank´s Marc
Error Compile
How could solve this compilation problem?
What am I doing wrong?
Have since I'm Very Grateful!
make Cubieboard2 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
arm-linux-gnueabihf-gcc -M -g -Os -ffunction-sections
-fdata-sections
-fno-common -ffixed-r9 -msoft-float -D__KERNEL__
-DCONFIG_SYS_TEXT_BASE=0x4a000000
-I/root/cubie-test/util/u-boot-maz-wip-psci/include
-I/root/cubie-test/util/u-boot-maz-wip-psci/arch/arm/include
-fno-builtin
-ffreestanding -nostdinc -isystem
/usr/lib/gcc/arm-linux-gnueabihf/4.7/include -pipe -DCONFIG_ARM
-D__ARM__
-marm -mno-thumb-interwork -mabi=aapcs-linux -mword-relocations
-march=armv7-a -MQ designware.o designware.c >.depend.designware
designware.c:21:3: error: #error "DesignWare Ether MAC requires
PHYLIB -
missing CONFIG_PHYLIB"
make[2]: *** Sem regra para processar o alvo `.depend', necessário
por
`built-in.o'. Pare.
make[2]: Saindo do diretório
`/root/cubie-test/util/u-boot-maz-wip-psci/drivers/net'
make[1]: ** [drivers/net/built-in.o] Erro 2
make[1]: Saindo do diretório
`/root/cubie-test/util/u-boot-maz-wip-psci'
make: ** [Cubieboard2] Erro 2
root@vbi7:~/cubie-test/util/u-boot-maz-wip-psci#
Doh! I should have spotted that one, which is a result of my merge of
the sunxi code with the latest u-boot.
Someone who understand the intricacies of the Designware evilness
should have a look at that, but in the meantime the attached patch
should get you going (I managed to boot this on a board I have here).
Thanks,
M.
--
Who you jivin' with that Cosmik Debris?
From 1d4738d30069a7aa11d2c43bf064de55b48a0cda Mon Sep 17 00:00:00 2001
From: Marc Zyngier <marc.zyngier@xxxxxxx>
Date: Wed, 26 Feb 2014 14:17:40 +0000
Subject: [PATCH] sunxi: fix GMAC compilation
Not working though...
Signed-off-by: Marc Zyngier <marc.zyngier@xxxxxxx>
---
arch/arm/cpu/armv7/virt-v7.c | 17 -----------------
drivers/net/sunxi_gmac.c | 4 ++--
include/configs/sun7i.h | 1 +
3 files changed, 3 insertions(+), 19 deletions(-)
diff --git a/arch/arm/cpu/armv7/virt-v7.c b/arch/arm/cpu/armv7/virt-v7.c
index 6500030..651ca40 100644
--- a/arch/arm/cpu/armv7/virt-v7.c
+++ b/arch/arm/cpu/armv7/virt-v7.c
@@ -30,25 +30,8 @@ static unsigned long get_gicd_base_address(void)
#ifdef CONFIG_ARM_GIC_BASE_ADDRESS
return CONFIG_ARM_GIC_BASE_ADDRESS + GIC_DIST_OFFSET;
#else
- unsigned midr;
unsigned periphbase;
- /* check whether we are an Cortex-A15 or A7.
- * The actual HYP switch should work with all CPUs supporting
- * the virtualization extension, but we need the GIC address,
- * which we know only for sure for those two CPUs.
- */
- asm("mrc p15, 0, %0, c0, c0, 0\n" : "=r"(midr));
- switch (midr & MIDR_PRIMARY_PART_MASK) {
- case MIDR_CORTEX_A9_R0P1:
- case MIDR_CORTEX_A15_R0P0:
- case MIDR_CORTEX_A7_R0P0:
- break;
- default:
- printf("nonsec: could not determine GIC address.\n");
- return -1;
- }
-
/* get the GIC base address from the CBAR register */
asm("mrc p15, 4, %0, c15, c0, 0\n" : "=r" (periphbase));
diff --git a/drivers/net/sunxi_gmac.c b/drivers/net/sunxi_gmac.c
index b8b9016..8ea8058 100644
--- a/drivers/net/sunxi_gmac.c
+++ b/drivers/net/sunxi_gmac.c
@@ -36,9 +36,9 @@ int sunxi_gmac_initialize(bd_t *bis)
}
#ifdef CONFIG_RGMII
- designware_initialize(0, SUNXI_GMAC_BASE, 0x1, PHY_INTERFACE_MODE_RGMII);
+ designware_initialize(SUNXI_GMAC_BASE, PHY_INTERFACE_MODE_RGMII);
#else
- designware_initialize(0, SUNXI_GMAC_BASE, 0x1, PHY_INTERFACE_MODE_MII);
+ designware_initialize(SUNXI_GMAC_BASE, PHY_INTERFACE_MODE_MII);
#endif
return 0;
diff --git a/include/configs/sun7i.h b/include/configs/sun7i.h
index 9098541..e130cb7 100644
--- a/include/configs/sun7i.h
+++ b/include/configs/sun7i.h
@@ -44,6 +44,7 @@
#define CONFIG_ARMV7_PSCI_NR_CPUS 2
#define CONFIG_ARMV7_SECURE_BASE SUNXI_SRAM_B_BASE
#define CONFIG_SYS_CLK_FREQ 24000000
+#define CONFIG_PHYLIB 1
/*
* Include common sunxi configuration where most the settings are
--
1.8.3.4
_______________________________________________
kvmarm mailing list
kvmarm@xxxxxxxxxxxxxxxxxxxxx
https://lists.cs.columbia.edu/cucslists/listinfo/kvmarm