[U-Boot] FW: Need Your Help
StephenPaulraj Chinnadurai-ERS,HCLTech
stephenpaulrajc at hcl.in
Mon Jul 19 18:25:35 CEST 2010
-----Original Message-----
From: Marek Vasut [mailto:marek.vasut at gmail.com]
Sent: Monday, July 19, 2010 9:11 PM
To: StephenPaulraj Chinnadurai-ERS,HCLTech
Cc: u-boot at lists.denx.de
Subject: Re: FW: Need Your Help
Dne Po 19. července 2010 17:29:48 StephenPaulraj Chinnadurai-ERS,HCLTech
napsal(a):
> Hello Marek,
>
> Hope you are doing well.
>
> I registered with U-Boot at lists.denx.de list last week and came to know
> about activities of the group.
You should possibly CC this mail into u-boot mailing list too.
Ok I hereafter I will do it.
>
> I understand that your work is very tightly scheduled.
>
>
> I have made the FFUART and CFI to work in my board.
ok
>
> But LAN91C1111 connect to the PXA270 in the static chip select 4 (nCS4) is
> not working.
Do you have correct GPIO mux settings ? In this case GPIO80 as to be AF2, check
your GAFRx registers.
#define CONFIG_SYS_GAFR2_U_VAL 0x4109a401, which means GPIO80 is assigned AF2 for nCS4.
>
> In /include/configs/hcl_pxa270.h file I have defined the following macro:
> #define CONFIG_SMC91111
> #define CONFIG_SMC91111_BASE 0x10000300
Are you sure about the 0x300 offset? That's actually toggling MA<10:9> pins on.
Do you have these connected at all?
I really don't know what for the offset 0x300.
Try this:
+/*
+ * Networking Configuration
+ * SMC91C111 chip
+ */
+#ifdef CONFIG_CMD_NET
+#define CONFIG_CMD_PING
+#define CONFIG_CMD_DHCP
+#define CONFIG_NET_MULTI
+
+#define CONFIG_SMC91111
+#define CONFIG_SMC91111_BASE 0x10000300
+
+#define CONFIG_BOOTP_BOOTFILESIZE
+#define CONFIG_BOOTP_BOOTPATH
+#define CONFIG_BOOTP_GATEWAY
+#define CONFIG_BOOTP_HOSTNAME
+
+#define CONFIG_NETMASK 255.255.255.0
+#define CONFIG_IPADDR 192.168.1.52
+#define CONFIG_SERVERIP 192.168.1.51
+#endif
>
> In board/hcl_pxa270/lowlevel_init.S file, I have assigned
> MSC0 = 0x23F2B8F2
> MSC1 = 0x0000CCD1
> MSC2 = 0x0000B884
You don't need these ... see arch/arm/include/asm/arch-pxa/macro.h, everything
you need is already configured there. Check for example vpac270 board.
Yes not required.
>
> Then in the board_init() function which is in /board/hcl_pxa270/hclpxa270.c
> file, I assigned: MSC0 = 0x7FF07FF0
> MSC1 = 0x7FF07FF0
> MSC2 = 0x7FF07FF0
You don't need that. The macros above do it for you. Again, check vpac270 board,
it's lowlevel_init.S, it's configs/vpac270.h etc. You'll see that these are
configured much earlier and you're only duplicating work.
Ok, I will remove it.
All you need in your hclpxa270.c is this:
+#ifdef CONFIG_CMD_NET
+int board_eth_init(bd_t *bis)
+{
+ int rc = 0;
+#ifdef CONFIG_SMC91111
+ rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
+#endif
+ return rc;
+}
+#endif
Already done it.
>
> But still the Ethernet is not initialized and working(Ethernet LED is not
> blinking):
>
> Apart from the above modification, whether I need to do any other changes.
>
> I am sending this mail personally, because you understand my problem (that
> I am working in hcl customized board and not in the reference/development
> board).
You should CC the mailing list anyway, because the knowledge I share with you
can help other people who will search the mailing list in future.
Also, could you share your patch for the hcl board? It might be easier to check
for grave bugs then.
Cheers
>
> Thanks and Regards
> Stephen Paulraj C
>
> HCL Technologies Ltd.
> D-12, Sidco Industrial Estate,
> Ambattur, Chennai -58
> Tel: +91 44 42004800 Extn: 2319
> Mob:+91 9962583934
> www.hcl.in
>
DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.
-----------------------------------------------------------------------------------------------------------------------
More information about the U-Boot
mailing list