linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Linux kernel for OMAP5432 uEVM
@ 2013-07-30  3:38 Chen Baozi
  2013-07-30  3:52 ` Lokesh Vutla
  0 siblings, 1 reply; 12+ messages in thread
From: Chen Baozi @ 2013-07-30  3:38 UTC (permalink / raw)
  To: linux-omap

Hi all,

I'm trying to boot my OMAP5432 uEVM devboard with the lastest kernel of
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git.
However, after u-boot loading uImage & DTB, there is no output message any
more, such as:

## Executing script at 82000000
reading omap5-evm-omap.dtb
15280 bytes read in 6 ms (2.4 MiB/s)
reading uImage-omap
3996552 bytes read in 250 ms (15.2 MiB/s)
## Booting kernel from Legacy Image at 80300000 ...
   Image Name:   Linux-3.10.0-rc6-12306-g0dbc346
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3996488 Bytes = 3.8 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 825f0000
   Booting using the fdt blob at 0x825f0000
   Loading Kernel Image ... OK
OK
   reserving fdt memory region: addr=9d000000 size=3000000
   Loading Device Tree to 83ff9000, end 83fffbaf ... OK

Starting kernel ...

Before trying this tree, I'm using the 3.8.4 kernel from TI. And it does
support the board and can successfully boot.

Anything that I may have missed when configuring the kernel? I use
omap2plus_defconfig and add DEBUG_LL, DEBUG_OMAP2PLUS_UART,
DEBUG_OMAP4UART3... 

Cheers,

Chen Baozi 

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30  3:38 Linux kernel for OMAP5432 uEVM Chen Baozi
@ 2013-07-30  3:52 ` Lokesh Vutla
  2013-07-30  6:07   ` Chen Baozi
                     ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Lokesh Vutla @ 2013-07-30  3:52 UTC (permalink / raw)
  To: Chen Baozi; +Cc: linux-omap

Hi Chen,
On Tuesday 30 July 2013 09:08 AM, Chen Baozi wrote:
> Hi all,
> 
> I'm trying to boot my OMAP5432 uEVM devboard with the lastest kernel of
> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git.
Which branch are you using ?
> However, after u-boot loading uImage & DTB, there is no output message any
> more, such as:
Clk data might be missing here. Try merging the below branch and test it
https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data

You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
Please let me know if you need more info.

Thanks and regards,
Lokesh

> 
> ## Executing script at 82000000
> reading omap5-evm-omap.dtb
> 15280 bytes read in 6 ms (2.4 MiB/s)
> reading uImage-omap
> 3996552 bytes read in 250 ms (15.2 MiB/s)
> ## Booting kernel from Legacy Image at 80300000 ...
>    Image Name:   Linux-3.10.0-rc6-12306-g0dbc346
>    Image Type:   ARM Linux Kernel Image (uncompressed)
>    Data Size:    3996488 Bytes = 3.8 MiB
>    Load Address: 80008000
>    Entry Point:  80008000
>    Verifying Checksum ... OK
> ## Flattened Device Tree blob at 825f0000
>    Booting using the fdt blob at 0x825f0000
>    Loading Kernel Image ... OK
> OK
>    reserving fdt memory region: addr=9d000000 size=3000000
>    Loading Device Tree to 83ff9000, end 83fffbaf ... OK
> 
> Starting kernel ...
> 
> Before trying this tree, I'm using the 3.8.4 kernel from TI. And it does
> support the board and can successfully boot.
> 
> Anything that I may have missed when configuring the kernel? I use
> omap2plus_defconfig and add DEBUG_LL, DEBUG_OMAP2PLUS_UART,
> DEBUG_OMAP4UART3... 
> 
> Cheers,
> 
> Chen Baozi 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30  3:52 ` Lokesh Vutla
@ 2013-07-30  6:07   ` Chen Baozi
  2013-07-30 12:24     ` Nishanth Menon
  2013-07-30 12:38   ` Chen Baozi
  2013-07-31  7:49   ` Chen Baozi
  2 siblings, 1 reply; 12+ messages in thread
From: Chen Baozi @ 2013-07-30  6:07 UTC (permalink / raw)
  To: Lokesh Vutla; +Cc: linux-omap


On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:

> Hi Chen,
> On Tuesday 30 July 2013 09:08 AM, Chen Baozi wrote:
>> Hi all,
>> 
>> I'm trying to boot my OMAP5432 uEVM devboard with the lastest kernel of
>> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git.
> Which branch are you using ?

the master branch.

>> However, after u-boot loading uImage & DTB, there is no output message any
>> more, such as:
> Clk data might be missing here. Try merging the below branch and test it
> https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data

Thanks, I'll have a try.

Baozi

> 
> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
> Please let me know if you need more info.
> 
> Thanks and regards,
> Lokesh
> 
>> 
>> ## Executing script at 82000000
>> reading omap5-evm-omap.dtb
>> 15280 bytes read in 6 ms (2.4 MiB/s)
>> reading uImage-omap
>> 3996552 bytes read in 250 ms (15.2 MiB/s)
>> ## Booting kernel from Legacy Image at 80300000 ...
>>   Image Name:   Linux-3.10.0-rc6-12306-g0dbc346
>>   Image Type:   ARM Linux Kernel Image (uncompressed)
>>   Data Size:    3996488 Bytes = 3.8 MiB
>>   Load Address: 80008000
>>   Entry Point:  80008000
>>   Verifying Checksum ... OK
>> ## Flattened Device Tree blob at 825f0000
>>   Booting using the fdt blob at 0x825f0000
>>   Loading Kernel Image ... OK
>> OK
>>   reserving fdt memory region: addr=9d000000 size=3000000
>>   Loading Device Tree to 83ff9000, end 83fffbaf ... OK
>> 
>> Starting kernel ...
>> 
>> Before trying this tree, I'm using the 3.8.4 kernel from TI. And it does
>> support the board and can successfully boot.
>> 
>> Anything that I may have missed when configuring the kernel? I use
>> omap2plus_defconfig and add DEBUG_LL, DEBUG_OMAP2PLUS_UART,
>> DEBUG_OMAP4UART3... 
>> 
>> Cheers,
>> 
>> Chen Baozi 
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>> 
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30  6:07   ` Chen Baozi
@ 2013-07-30 12:24     ` Nishanth Menon
  2013-07-30 12:44       ` Chen Baozi
  0 siblings, 1 reply; 12+ messages in thread
From: Nishanth Menon @ 2013-07-30 12:24 UTC (permalink / raw)
  To: Chen Baozi; +Cc: Lokesh Vutla, linux-omap

On 07/30/2013 01:07 AM, Chen Baozi wrote:
>
> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>
>> Hi Chen,
>> On Tuesday 30 July 2013 09:08 AM, Chen Baozi wrote:
>>> Hi all,
>>>
>>> I'm trying to boot my OMAP5432 uEVM devboard with the lastest kernel of
>>> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git.
>> Which branch are you using ?
>
> the master branch.
>
>>> However, after u-boot loading uImage & DTB, there is no output message any
>>> more, such as:
>> Clk data might be missing here. Try merging the below branch and test it
>> https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data
>
> Thanks, I'll have a try.

There is also clock data dts support now in Tero's series:
http://marc.info/?l=linux-omap&m=137456411706971&w=2


-- 
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30  3:52 ` Lokesh Vutla
  2013-07-30  6:07   ` Chen Baozi
@ 2013-07-30 12:38   ` Chen Baozi
  2013-07-31  7:49   ` Chen Baozi
  2 siblings, 0 replies; 12+ messages in thread
From: Chen Baozi @ 2013-07-30 12:38 UTC (permalink / raw)
  To: Lokesh Vutla; +Cc: linux-omap

Hi Lokesh & list,

On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:

> Clk data might be missing here. Try merging the below branch and test it
> https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data
> 
> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
> Please let me know if you need more info.
> 
> Thanks and regards,
> Lokesh

I've ported the two patches on the top of clk data branch to both of linux-omap tree and Linus's kernel. They all work now. Thanks a lot.

And a few more questions, ;-)

I read the timer initialization codes in kernel. It looks like the Linux kernel does not use the architected timer of Cortex-A15 MPCore. I tried to use arch_timer_get_cntfrq() to get its rate, but failed(returned frequency is 0). I'm wondering if it is because of lack of initialization or other issues.

Another question is about UART on OMAP5432. This is origin from my attempt to porting Xen to OMAP5432. Now Xen has already had a 8250 compatible driver. What I have done is to hook it with Xen's arm initialization codes (for example, hook it with device tree). Xen's original driver is rather simple compared to the Linux omap-serial.c. It enables receive and transmit interrupts in the end of initialization. Once the interrupt is enabled, it would generate nested interrupt of THRE and make the system dead loop in the interrupt handler. I have been digging this problem for nearly a month and haven't got a clue yet. I guess it might be caused by uninitialized architected timer, which then lead me to the previous question. Any idea?

Cheers,

Baozi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30 12:24     ` Nishanth Menon
@ 2013-07-30 12:44       ` Chen Baozi
  2013-07-30 13:09         ` Nishanth Menon
  0 siblings, 1 reply; 12+ messages in thread
From: Chen Baozi @ 2013-07-30 12:44 UTC (permalink / raw)
  To: Nishanth Menon; +Cc: Lokesh Vutla, linux-omap


On Jul 30, 2013, at 8:24 PM, Nishanth Menon <nm@ti.com> wrote:

> On 07/30/2013 01:07 AM, Chen Baozi wrote:
>> 
>> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>> 
>>> Hi Chen,
>>> On Tuesday 30 July 2013 09:08 AM, Chen Baozi wrote:
>>>> Hi all,
>>>> 
>>>> I'm trying to boot my OMAP5432 uEVM devboard with the lastest kernel of
>>>> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git.
>>> Which branch are you using ?
>> 
>> the master branch.
>> 
>>>> However, after u-boot loading uImage & DTB, there is no output message any
>>>> more, such as:
>>> Clk data might be missing here. Try merging the below branch and test it
>>> https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data
>> 
>> Thanks, I'll have a try.
> 
> There is also clock data dts support now in Tero's series:
> http://marc.info/?l=linux-omap&m=137456411706971&w=2

Thanks, I'll have a look though Lokesh's suggestion has already booted my board.

Might be a stupid question. What's the different functionality between these two series of patch set? For it seems clk data patches have done the some of initialization that make the system boot.

Cheers,

Baozi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30 12:44       ` Chen Baozi
@ 2013-07-30 13:09         ` Nishanth Menon
  0 siblings, 0 replies; 12+ messages in thread
From: Nishanth Menon @ 2013-07-30 13:09 UTC (permalink / raw)
  To: Chen Baozi; +Cc: Lokesh Vutla, linux-omap

On 07/30/2013 07:44 AM, Chen Baozi wrote:
>
> On Jul 30, 2013, at 8:24 PM, Nishanth Menon <nm@ti.com> wrote:
>
>> On 07/30/2013 01:07 AM, Chen Baozi wrote:
>>>
>>> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>>>
>>>> Hi Chen,
>>>> On Tuesday 30 July 2013 09:08 AM, Chen Baozi wrote:
>>>>> Hi all,
>>>>>
>>>>> I'm trying to boot my OMAP5432 uEVM devboard with the lastest kernel of
>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap.git.
>>>> Which branch are you using ?
>>>
>>> the master branch.
>>>
>>>>> However, after u-boot loading uImage & DTB, there is no output message any
>>>>> more, such as:
>>>> Clk data might be missing here. Try merging the below branch and test it
>>>> https://git.kernel.org/cgit/linux/kernel/git/ssantosh/linux.git/log/?h=for_3.11/out_of_tree/omap5_clk_data
>>>
>>> Thanks, I'll have a try.
>>
>> There is also clock data dts support now in Tero's series:
>> http://marc.info/?l=linux-omap&m=137456411706971&w=2
>
> Thanks, I'll have a look though Lokesh's suggestion has already booted my board.
>
> Might be a stupid question. What's the different functionality between these two series of patch set? For it seems clk data patches have done the some of initialization that make the system boot.

two different approaches - one using clock data in kernel, other with 
clock data in dtb and generic clock drivers. Tero's approach is what is 
being massaged for upstream as we do not wish to add additional clock 
data into kernel source tree anymore.


-- 
Regards,
Nishanth Menon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-30  3:52 ` Lokesh Vutla
  2013-07-30  6:07   ` Chen Baozi
  2013-07-30 12:38   ` Chen Baozi
@ 2013-07-31  7:49   ` Chen Baozi
  2013-07-31  8:31     ` Lokesh Vutla
  2 siblings, 1 reply; 12+ messages in thread
From: Chen Baozi @ 2013-07-31  7:49 UTC (permalink / raw)
  To: Lokesh Vutla; +Cc: linux-omap


On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:

> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
> Please let me know if you need more info.

And the ethernet driver is not available by default?

Cheers,

Baozi

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-31  7:49   ` Chen Baozi
@ 2013-07-31  8:31     ` Lokesh Vutla
  2013-07-31 11:31       ` Roger Quadros
  0 siblings, 1 reply; 12+ messages in thread
From: Lokesh Vutla @ 2013-07-31  8:31 UTC (permalink / raw)
  To: Chen Baozi; +Cc: linux-omap, Roger Quadros

Hi Chen,

On Wednesday 31 July 2013 01:19 PM, Chen Baozi wrote:
> 
> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
> 
>> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
>> Please let me know if you need more info.
> 
> And the ethernet driver is not available by default?
You need the following patch series recently posted by Roger:
http://www.mail-archive.com/linux-omap@vger.kernel.org/msg92694.html

Thanks and regards,
Lokesh
> 
> Cheers,
> 
> Baozi
> 


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-31  8:31     ` Lokesh Vutla
@ 2013-07-31 11:31       ` Roger Quadros
  2013-07-31 12:16         ` Roger Quadros
  0 siblings, 1 reply; 12+ messages in thread
From: Roger Quadros @ 2013-07-31 11:31 UTC (permalink / raw)
  To: Lokesh Vutla; +Cc: Chen Baozi, linux-omap

On 07/31/2013 11:31 AM, Lokesh Vutla wrote:
> Hi Chen,
> 
> On Wednesday 31 July 2013 01:19 PM, Chen Baozi wrote:
>>
>> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>>
>>> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
>>> Please let me know if you need more info.
>>
>> And the ethernet driver is not available by default?
> You need the following patch series recently posted by Roger:
> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg92694.html
> 

Those will work only if you proceed with Tero's clock data in DT approach.

cheers,
-roger


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-31 11:31       ` Roger Quadros
@ 2013-07-31 12:16         ` Roger Quadros
  2013-07-31 12:30           ` Chen Baozi
  0 siblings, 1 reply; 12+ messages in thread
From: Roger Quadros @ 2013-07-31 12:16 UTC (permalink / raw)
  To: Chen Baozi; +Cc: Lokesh Vutla, linux-omap

Hi Chen,

On 07/31/2013 02:31 PM, Roger Quadros wrote:
> On 07/31/2013 11:31 AM, Lokesh Vutla wrote:
>> Hi Chen,
>>
>> On Wednesday 31 July 2013 01:19 PM, Chen Baozi wrote:
>>>
>>> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>>>
>>>> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
>>>> Please let me know if you need more info.
>>>
>>> And the ethernet driver is not available by default?
>> You need the following patch series recently posted by Roger:
>> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg92694.html
>>
> 
> Those will work only if you proceed with Tero's clock data in DT approach.
> 

I've created a branch that contains all patches required to get ethernet working on 
uEVM on top of Tero's DT clocks. I took the leisure of picking the baseport tree from
Lokesh [1].

You can get the necessary stuff from branch 
	usbhost-uevm-3.11-rc3
in git tree 
	git://github.com/rogerq/linux.git

cheers,
-roger

[1] - https://github.com/lokeshvutla/linux/tree/dra7-3.11-rc3-base

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Linux kernel for OMAP5432 uEVM
  2013-07-31 12:16         ` Roger Quadros
@ 2013-07-31 12:30           ` Chen Baozi
  0 siblings, 0 replies; 12+ messages in thread
From: Chen Baozi @ 2013-07-31 12:30 UTC (permalink / raw)
  To: Roger Quadros; +Cc: Lokesh Vutla, linux-omap

Hi Roger,
On Jul 31, 2013, at 8:16 PM, Roger Quadros <rogerq@ti.com> wrote:

> Hi Chen,
> 
> On 07/31/2013 02:31 PM, Roger Quadros wrote:
>> On 07/31/2013 11:31 AM, Lokesh Vutla wrote:
>>> Hi Chen,
>>> 
>>> On Wednesday 31 July 2013 01:19 PM, Chen Baozi wrote:
>>>> 
>>>> On Jul 30, 2013, at 11:52 AM, Lokesh Vutla <lokeshvutla@ti.com> wrote:
>>>> 
>>>>> You can also use Linus's kernel with the above clk data branch.( OMAP5 uEVM boots)
>>>>> Please let me know if you need more info.
>>>> 
>>>> And the ethernet driver is not available by default?
>>> You need the following patch series recently posted by Roger:
>>> http://www.mail-archive.com/linux-omap@vger.kernel.org/msg92694.html
>>> 
>> 
>> Those will work only if you proceed with Tero's clock data in DT approach.
>> 
> 
> I've created a branch that contains all patches required to get ethernet working on 
> uEVM on top of Tero's DT clocks. I took the leisure of picking the baseport tree from
> Lokesh [1].
> 
> You can get the necessary stuff from branch 
> 	usbhost-uevm-3.11-rc3
> in git tree 
> 	git://github.com/rogerq/linux.git

Thanks a lot. I'll have a try.

Baozi


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2013-07-31 12:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-30  3:38 Linux kernel for OMAP5432 uEVM Chen Baozi
2013-07-30  3:52 ` Lokesh Vutla
2013-07-30  6:07   ` Chen Baozi
2013-07-30 12:24     ` Nishanth Menon
2013-07-30 12:44       ` Chen Baozi
2013-07-30 13:09         ` Nishanth Menon
2013-07-30 12:38   ` Chen Baozi
2013-07-31  7:49   ` Chen Baozi
2013-07-31  8:31     ` Lokesh Vutla
2013-07-31 11:31       ` Roger Quadros
2013-07-31 12:16         ` Roger Quadros
2013-07-31 12:30           ` Chen Baozi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).