All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joel Fernandes <joelf@ti.com>
To: Arend van Spriel <arend@broadcom.com>
Cc: Roger Quadros <rogerq@ti.com>,
	tony@atomide.com, linux-omap@vger.kernel.org,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet
Date: Thu, 25 Jul 2013 21:49:01 -0500	[thread overview]
Message-ID: <51F1E39D.2030902@ti.com> (raw)
In-Reply-To: <51F122D5.80205@broadcom.com>

Hi Arend,

On 07/25/2013 08:06 AM, Arend van Spriel wrote:
> On 07/18/2013 02:42 PM, Roger Quadros wrote:
>> On 07/18/2013 03:38 PM, Arend van Spriel wrote:
>>> On 07/18/2013 01:30 PM, Roger Quadros wrote:
>>>> On 07/18/2013 02:24 PM, Arend van Spriel wrote:
>>>>> On 07/18/2013 01:18 PM, Roger Quadros wrote:
>>>>>> Hi Arend,
>>>>>>
>>>>>> On 07/18/2013 11:41 AM, Arend van Spriel wrote:
>>>>>>> Hi Tony,
>>>>>>>
>>>>>>>
>>>>>>> We are using the panda board (es variant) for testing our SDIO
>>>>>>> based chips. For this we have an adapter card connection to
>>>>>>> expansion connector A. As this adapter is not publicly available
>>>>>>> we had internally patched board-omap4panda.c. Also we follow the
>>>>>>> -rc releases and use TFTP to boot the kernel image which requires
>>>>>>> USB.
>>>>>>>
>>>>>>> Moving to 3.11-rc1 I found that the mentioned board file was
>>>>>>> removed by your commit:
>>>>>>>
>>>>>>> commit b42b918194c4791510ac049e3d507169a7de8544
>>>>>>> Author: Tony Lindgren <tony@atomide.com>
>>>>>>> Date:   Thu May 30 12:53:05 2013 -0700
>>>>>>>
>>>>>>>        ARM: OMAP2+: Remove board-omap4panda.c
>>>>>>>
>>>>>>> As our patches on that file are internal I do not hold it against
>>>>>>> you. This is no regression and we need to fix it.
>>>>>>>
>>>>>>> So my first step was to follow the recipe given in that commit.
>>>>>>> Beside that I noticed a thread about USB issue on LKML so I also
>>>>>>> applied the following commit:
>>>>>>>
>>>>>>> commit 352f573e59050c7a604c35c58b4bbfc51edebbee
>>>>>>> Author: Roger Quadros <rogerq@ti.com>
>>>>>>> Date:   Tue Jun 18 19:04:47 2013 +0300
>>>>>>>
>>>>>>>        ARM: OMAP2+: Provide alias to USB PHY clock
>>>>>>>
>>>>>>> The attached kernel log seems to suggest that the device tree is
>>>>>>> picked up by the kernel, but the USB does not seem very active.
>>>>>>> No ethernet connectivity. This does seem a regression to me. Is
>>>>>>> there some other patch that I need to get it going again?
>>>>>>>
>>>>>>
>>>>>> I tried with your config and 3.11-rc1 kernel with the above commit
>>>>>> on top and ethernet seems to
>>>>>> work for me. My boot log is attached.
>>>>>>
>>>>>> Are you sure that you are building the DTB for panda-es and the
>>>>>> bootloader is picking up the right file and
>>>>>> not an outdated one?
>>>>>
>>>>> I appended the DTB to the kernel image thus avoiding the need to
>>>>> update u-boot (at least that is what I understood from Tony's commit).
>>>>>
>>>>
>>>> I understand this can be a little tedious at first.
>>>>
>>>> This is my u-boot boot.txt
>>>>
>>>> fatload mmc 0:1 0x825f0000 omap4-panda-es.dtb
>>>> fatload mmc 0:1 0x80300000 uImage
>>>> set fdt_high 0xffffffff
>>>> setenv bootargs console=ttyO2,115200n8 mem=1G@0x80000000
>>>> root=/dev/mmcblk0p2 rootwait
>>>> bootm 0x80300000 - 0x825f0000
>>>>
>>>> You need to generate boot.scr from the above boot.txt and place it
>>>> in SD card boot partition.
>>>>
>>>> mkimage -A arm -T script -C none -n "Boot Image" -d boot.txt boot.scr
>>>>
>>>> And of course copy the omap4-panda-es.dtb to SD card boot partition.
>>>>
>>>> hope this helps.
>>>
>>> Thanks for sharing this.
>>>
>>>>>> Why is the version of SPL loader and u-boot different in your log?
>>>>>> You need to use the MLO file generated by the u-boot build along
>>>>>> with the uImage.
>>>>>>
>>>>>> Just to be sure we are on the same setup could you please try with
>>>>>> latest u-boot release (2013-04). Thanks.
>>>>>
>>>>> I recall having difficulty with TFTP boot using a 2013 u-boot
>>>>> release, but that hurdle is for later. I will try.
>>>>>
>>>>
>>>> OK. We can figure this out as well.
>>>
>>> I tried with same SPL and u-boot version, but that did not work out.
>>> So I moved to v2013.04 and the log looks better. I was especially
>>> interested in this:
>>>
>>> [    2.807434] usb 1-1.1: new high-speed USB device number 3 using
>>> ehci-omap
>>> [    2.932495] usb 1-1.1: New USB device found, idVendor=0424,
>>> idProduct=ec00
>>> [    2.932495] usb 1-1.1: New USB device strings: Mfr=0, Product=0,
>>> SerialNumbe0
>>> [    2.958770] smsc95xx v1.0.4
>>> Starting logging: OK
>>> Initializing random number generator... [    3.045806] smsc95xx
>>> 1-1.1:1.0 eth0
>>
>> Cool! :).
>>
>> FYI. I also tested tftpboot from u-boot and NFS root file system and
>> it works fine.
> 
> Hi Roger,
> 
> Can I get back on this topic. When USB and ethernet was working for me
> as stated above, I was not doing tftpboot. When I use tftpboot the
> images are obtained from the tftp server, but after kernel has started
> there is nothing in /sys/bus/usb/devices/.

I quickly tried 3.11-rc2 + Roger's USB PHY clock patch on omap4-panda-es
and enabled following USB options:

CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_PHY=y
CONFIG_OMAP_USB2=y
CONFIG_OMAP_CONTROL_USB=y
CONFIG_USB_MUSB_OMAP2PLUS=y
CONFIG_MFD_OMAP_USB_HOST=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_EHCI_HCD_OMAP=y

With this I see both USB ports, and ethernet:

bash-4.2# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr BE:08:A9:74:3E:A0
          inet addr:192.168.3.4  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:842 (842.0 B)  TX bytes:4724 (4.6 KiB)
bash-4.2# lsusb

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

bash-4.2# ls /sys/bus/usb/devices/
1-0:1.0    1-1        1-1.1      1-1.1:1.0  1-1:1.0    2-0:1.0     usb1
      usb2

> I tried a 'usb stop' before booting the kernel, but that does not help
> either. As you stated to have tftpboot working, maybe you can help me.

I am tftp'ing kernel over USB network. I think U-boot shouldn't have
anything to do with Kernel USB though. If it does, then its a bug.

Hope this helps, Thanks,

-Joel

WARNING: multiple messages have this Message-ID (diff)
From: Joel Fernandes <joelf@ti.com>
To: Arend van Spriel <arend@broadcom.com>
Cc: Roger Quadros <rogerq@ti.com>, <tony@atomide.com>,
	<linux-omap@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet
Date: Thu, 25 Jul 2013 21:49:01 -0500	[thread overview]
Message-ID: <51F1E39D.2030902@ti.com> (raw)
In-Reply-To: <51F122D5.80205@broadcom.com>

Hi Arend,

On 07/25/2013 08:06 AM, Arend van Spriel wrote:
> On 07/18/2013 02:42 PM, Roger Quadros wrote:
>> On 07/18/2013 03:38 PM, Arend van Spriel wrote:
>>> On 07/18/2013 01:30 PM, Roger Quadros wrote:
>>>> On 07/18/2013 02:24 PM, Arend van Spriel wrote:
>>>>> On 07/18/2013 01:18 PM, Roger Quadros wrote:
>>>>>> Hi Arend,
>>>>>>
>>>>>> On 07/18/2013 11:41 AM, Arend van Spriel wrote:
>>>>>>> Hi Tony,
>>>>>>>
>>>>>>>
>>>>>>> We are using the panda board (es variant) for testing our SDIO
>>>>>>> based chips. For this we have an adapter card connection to
>>>>>>> expansion connector A. As this adapter is not publicly available
>>>>>>> we had internally patched board-omap4panda.c. Also we follow the
>>>>>>> -rc releases and use TFTP to boot the kernel image which requires
>>>>>>> USB.
>>>>>>>
>>>>>>> Moving to 3.11-rc1 I found that the mentioned board file was
>>>>>>> removed by your commit:
>>>>>>>
>>>>>>> commit b42b918194c4791510ac049e3d507169a7de8544
>>>>>>> Author: Tony Lindgren <tony@atomide.com>
>>>>>>> Date:   Thu May 30 12:53:05 2013 -0700
>>>>>>>
>>>>>>>        ARM: OMAP2+: Remove board-omap4panda.c
>>>>>>>
>>>>>>> As our patches on that file are internal I do not hold it against
>>>>>>> you. This is no regression and we need to fix it.
>>>>>>>
>>>>>>> So my first step was to follow the recipe given in that commit.
>>>>>>> Beside that I noticed a thread about USB issue on LKML so I also
>>>>>>> applied the following commit:
>>>>>>>
>>>>>>> commit 352f573e59050c7a604c35c58b4bbfc51edebbee
>>>>>>> Author: Roger Quadros <rogerq@ti.com>
>>>>>>> Date:   Tue Jun 18 19:04:47 2013 +0300
>>>>>>>
>>>>>>>        ARM: OMAP2+: Provide alias to USB PHY clock
>>>>>>>
>>>>>>> The attached kernel log seems to suggest that the device tree is
>>>>>>> picked up by the kernel, but the USB does not seem very active.
>>>>>>> No ethernet connectivity. This does seem a regression to me. Is
>>>>>>> there some other patch that I need to get it going again?
>>>>>>>
>>>>>>
>>>>>> I tried with your config and 3.11-rc1 kernel with the above commit
>>>>>> on top and ethernet seems to
>>>>>> work for me. My boot log is attached.
>>>>>>
>>>>>> Are you sure that you are building the DTB for panda-es and the
>>>>>> bootloader is picking up the right file and
>>>>>> not an outdated one?
>>>>>
>>>>> I appended the DTB to the kernel image thus avoiding the need to
>>>>> update u-boot (at least that is what I understood from Tony's commit).
>>>>>
>>>>
>>>> I understand this can be a little tedious at first.
>>>>
>>>> This is my u-boot boot.txt
>>>>
>>>> fatload mmc 0:1 0x825f0000 omap4-panda-es.dtb
>>>> fatload mmc 0:1 0x80300000 uImage
>>>> set fdt_high 0xffffffff
>>>> setenv bootargs console=ttyO2,115200n8 mem=1G@0x80000000
>>>> root=/dev/mmcblk0p2 rootwait
>>>> bootm 0x80300000 - 0x825f0000
>>>>
>>>> You need to generate boot.scr from the above boot.txt and place it
>>>> in SD card boot partition.
>>>>
>>>> mkimage -A arm -T script -C none -n "Boot Image" -d boot.txt boot.scr
>>>>
>>>> And of course copy the omap4-panda-es.dtb to SD card boot partition.
>>>>
>>>> hope this helps.
>>>
>>> Thanks for sharing this.
>>>
>>>>>> Why is the version of SPL loader and u-boot different in your log?
>>>>>> You need to use the MLO file generated by the u-boot build along
>>>>>> with the uImage.
>>>>>>
>>>>>> Just to be sure we are on the same setup could you please try with
>>>>>> latest u-boot release (2013-04). Thanks.
>>>>>
>>>>> I recall having difficulty with TFTP boot using a 2013 u-boot
>>>>> release, but that hurdle is for later. I will try.
>>>>>
>>>>
>>>> OK. We can figure this out as well.
>>>
>>> I tried with same SPL and u-boot version, but that did not work out.
>>> So I moved to v2013.04 and the log looks better. I was especially
>>> interested in this:
>>>
>>> [    2.807434] usb 1-1.1: new high-speed USB device number 3 using
>>> ehci-omap
>>> [    2.932495] usb 1-1.1: New USB device found, idVendor=0424,
>>> idProduct=ec00
>>> [    2.932495] usb 1-1.1: New USB device strings: Mfr=0, Product=0,
>>> SerialNumbe0
>>> [    2.958770] smsc95xx v1.0.4
>>> Starting logging: OK
>>> Initializing random number generator... [    3.045806] smsc95xx
>>> 1-1.1:1.0 eth0
>>
>> Cool! :).
>>
>> FYI. I also tested tftpboot from u-boot and NFS root file system and
>> it works fine.
> 
> Hi Roger,
> 
> Can I get back on this topic. When USB and ethernet was working for me
> as stated above, I was not doing tftpboot. When I use tftpboot the
> images are obtained from the tftp server, but after kernel has started
> there is nothing in /sys/bus/usb/devices/.

I quickly tried 3.11-rc2 + Roger's USB PHY clock patch on omap4-panda-es
and enabled following USB options:

CONFIG_USB_MUSB_HDRC=y
CONFIG_USB_PHY=y
CONFIG_OMAP_USB2=y
CONFIG_OMAP_CONTROL_USB=y
CONFIG_USB_MUSB_OMAP2PLUS=y
CONFIG_MFD_OMAP_USB_HOST=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_EHCI_HCD_OMAP=y

With this I see both USB ports, and ethernet:

bash-4.2# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr BE:08:A9:74:3E:A0
          inet addr:192.168.3.4  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:842 (842.0 B)  TX bytes:4724 (4.6 KiB)
bash-4.2# lsusb

Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.

bash-4.2# ls /sys/bus/usb/devices/
1-0:1.0    1-1        1-1.1      1-1.1:1.0  1-1:1.0    2-0:1.0     usb1
      usb2

> I tried a 'usb stop' before booting the kernel, but that does not help
> either. As you stated to have tftpboot working, maybe you can help me.

I am tftp'ing kernel over USB network. I think U-boot shouldn't have
anything to do with Kernel USB though. If it does, then its a bug.

Hope this helps, Thanks,

-Joel

  reply	other threads:[~2013-07-26  2:49 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-18  8:41 Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet Arend van Spriel
2013-07-18  8:59 ` Tony Lindgren
2013-07-18 10:18   ` Arend van Spriel
2013-07-19 10:36   ` Arend van Spriel
2013-07-19 10:49     ` Roger Quadros
2013-07-19 10:49       ` Roger Quadros
2013-07-19 10:57       ` Arend van Spriel
2013-10-01  8:05         ` using mmc2 on panda [was: Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet] Arend van Spriel
2013-10-01  9:49           ` Roger Quadros
2013-10-01  9:49             ` Roger Quadros
2013-10-01  9:53             ` Roger Quadros
2013-10-01  9:53               ` Roger Quadros
2013-10-01 10:53               ` Arend van Spriel
2013-10-01 11:29                 ` Luca Coelho
2013-10-02 10:20                   ` Arend van Spriel
2013-10-02 10:48                     ` Luca Coelho
2013-10-01 12:17                 ` Roger Quadros
2013-10-01 12:17                   ` Roger Quadros
2013-10-01 13:19                   ` Balaji T K
2013-10-01 13:19                     ` Balaji T K
2013-10-02  9:03                     ` Arend van Spriel
2013-07-19 10:53     ` Regression 3.11-rc1: omap4panda: no usb and consequently no ethernet Tony Lindgren
2013-07-20  7:38   ` Luciano Coelho
2013-07-20  7:38     ` Luciano Coelho
2013-07-18 11:18 ` Roger Quadros
2013-07-18 11:18   ` Roger Quadros
2013-07-18 11:24   ` Arend van Spriel
2013-07-18 11:30     ` Roger Quadros
2013-07-18 11:30       ` Roger Quadros
2013-07-18 12:38       ` Arend van Spriel
2013-07-18 12:42         ` Roger Quadros
2013-07-18 12:42           ` Roger Quadros
2013-07-25 13:06           ` Arend van Spriel
2013-07-26  2:49             ` Joel Fernandes [this message]
2013-07-26  2:49               ` Joel Fernandes
2013-07-26  3:00               ` Joel Fernandes
2013-07-26  3:00                 ` Joel Fernandes
2013-07-26  7:25                 ` Arend van Spriel
2013-07-26 10:13                 ` Arend van Spriel
2013-07-26 10:15                   ` Arend van Spriel
2013-07-26 10:23                     ` Arend van Spriel
2013-07-26 10:37                       ` Roger Quadros
2013-07-26 10:37                         ` Roger Quadros
2013-07-26 10:40                         ` Arend van Spriel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51F1E39D.2030902@ti.com \
    --to=joelf@ti.com \
    --cc=arend@broadcom.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=rogerq@ti.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.