Hello,
Im using a PanelCard connected to the EVB. When I start the PanelCard everything is working just fine: U-BOOT shows a beautiful flower, copies some bytes (linux kernel) to the SDRAM and after a few seconds Linux starts. When I do the same thing with the Ethernet cable connected however, booting is interrupted after copying linux to the SRAM and the PanelCards starts all over again. This process repeats itself several times ending in an endless loop. Debugging shows that the last message is: "Uncompressing Linux... done, booting the kernel."
so the checksum can be verified and the data seems to be correct.
I noticed that, when the PanelCard has been up and running for a while, rebooting with the cable connected DOES work. So it seems to be hardware related, but I just cant figure out what it is.
Maybe one of you can help?
Thanks.
Stephan

Re: PanelCard wont boot with ethernet connected
I would be interested in one point. On occasions, when the Panel-Card doesn' boot correctly, Can you interrupt the boot process and use Ethernet then? If yes, does Linux boot correctly?
Our cards here do boot all the time wether the cable is connected or not.
Re: PanelCard wont boot with ethernet connected
Hi Aehrlich,
Yes, when working in U-BOOT I can use Ethernet, tftpboot works for example. But Linux doesn't boot at all the first couple of minutes (with the network cable connected), not even when I try to boot from U-Boot. And after a few minutes (when the PanelCard is sort of 'warmed-up') everything works just fine, Ethernet connected or not.
By the way: When I boot with Ethernet disconnected, Ethernet does work from within Linux. So except of the boot problems, I don't notice any strange behaviour.
Stephan
Re: PanelCard wont boot with ethernet connected
I would suspect, that there is an issue with the hardware. Can you send in the board to taskit for analyzing?
Re: PanelCard wont boot with ethernet connected
Unfortunately I'm pretty busy with my PanelCards, so I can't send them for analysing. But perhaps that wont be necessary: I have some new info regarding this problem.
It seems to have to do with the two extra serial ports I've enabled in the linux kernel by changing the following line in board_panelcard.c: ".tty_map = { 3, -1, 1, -1 }" is changed to ".tty_map = { 3, 0, 1, 2 }".
When booting a kernel with this modification, the PanelCard wont start Linux with ethernet connected. It has nothing to do with the extra hardware involved with this modification. I have two EV boards, one with the two extra RS232 hardware and one without, but both having the same boot problems.
Any issues known with this modification?
Re: PanelCard wont boot with ethernet connected
Looking in the sources there is a simple explanation: If you enable Usart0 Pin PC11 is muxed as CTS0. Unfortunately this is also the interrupt pin of the ethernet controller. Pin PC10 is muxed as RTS0 is used on the Panel-Card as backlight control, which could show further undesired side effects.
Best would be you disable this pin muxing in arch/arm/mach-at91/at91sam9261_devices.c:
static inline void configure_usart0_pins(void) { at91_set_A_periph(AT91_PIN_PC8, 1); /* TXD0 */ at91_set_A_periph(AT91_PIN_PC9, 0); /* RXD0 */ at91_set_A_periph(AT91_PIN_PC10, 0); /* RTS0 */ at91_set_A_periph(AT91_PIN_PC11, 0); /* CTS0 */ }to
static inline void configure_usart0_pins(void) { at91_set_A_periph(AT91_PIN_PC8, 1); /* TXD0 */ at91_set_A_periph(AT91_PIN_PC9, 0); /* RXD0 */ }and compile a new kernel. Ethernet should work then.
Re: PanelCard wont boot with ethernet connected
omg. and that took me over a week to figure out.. lol. But thanks, this solves my problem completely!