Re: Linux kernel for OMAP5432 uEVM

2013-07-31 Thread Chen Baozi

On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-31 Thread Lokesh Vutla
Hi Chen,

On Wednesday 31 July 2013 01:19 PM, Chen Baozi wrote:
 
 On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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
 

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-31 Thread Roger Quadros
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 lokeshvu...@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

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-31 Thread Roger Quadros
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 lokeshvu...@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
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-31 Thread Chen Baozi
Hi Roger,
On Jul 31, 2013, at 8:16 PM, Roger Quadros rog...@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 lokeshvu...@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

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-30 Thread Chen Baozi

On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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 8200
 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 8030 ...
   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 825f
   Booting using the fdt blob at 0x825f
   Loading Kernel Image ... OK
 OK
   reserving fdt memory region: addr=9d00 size=300
   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 majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
 

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-30 Thread Nishanth Menon

On 07/30/2013 01:07 AM, Chen Baozi wrote:


On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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-omapm=137456411706971w=2


--
Regards,
Nishanth Menon
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-30 Thread Chen Baozi
Hi Lokesh  list,

On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-30 Thread Chen Baozi

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

 On 07/30/2013 01:07 AM, Chen Baozi wrote:
 
 On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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-omapm=137456411706971w=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--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-30 Thread Nishanth Menon

On 07/30/2013 07:44 AM, Chen Baozi wrote:


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


On 07/30/2013 01:07 AM, Chen Baozi wrote:


On Jul 30, 2013, at 11:52 AM, Lokesh Vutla lokeshvu...@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-omapm=137456411706971w=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
--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Linux kernel for OMAP5432 uEVM

2013-07-29 Thread Chen Baozi
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 8200
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 8030 ...
   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 825f
   Booting using the fdt blob at 0x825f
   Loading Kernel Image ... OK
OK
   reserving fdt memory region: addr=9d00 size=300
   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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: Linux kernel for OMAP5432 uEVM

2013-07-29 Thread Lokesh Vutla
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 8200
 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 8030 ...
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 825f
Booting using the fdt blob at 0x825f
Loading Kernel Image ... OK
 OK
reserving fdt memory region: addr=9d00 size=300
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 majord...@vger.kernel.org
 More majordomo info at  http://vger.kernel.org/majordomo-info.html
 

--
To unsubscribe from this list: send the line unsubscribe linux-omap in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html