This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Unified-patch-03.00.00.05 with AM35x-OMAP35x-PSP-SDK-03.00.00.05 of AM3517 EVM

Hi,

The SDK contains a kernel 2.6.32 which run correctly on the EVM board. This kernel is patched with certainly Unified-patch-03.00.00.05 included in the SDK

I have some questions :
1)Can I apply your patch with a vanilla kernel ?   With a kernel 2.6.32.19, I have got a lot of rej file :

kernel_directory# cat ../Unified-patch-03.00.00.05 | patch -p1

./drivers/mfd/twl-core.c.rej

./drivers/net/davinci_emac.c.rej

./drivers/net/can/sja1000/sja1000.c.rej

./drivers/net/can/bfin_can.c.rej

./drivers/net/can/mscan/mscan.c.rej

./drivers/net/can/mcp251x.c.rej

./drivers/net/can/ti_hecc.c.rej

./drivers/usb/musb/Kconfig.rej

./drivers/usb/musb/musb_gadget.c.rej

./drivers/usb/musb/musbhsdma.c.rej

 .............; 

2)Can I apply your patch with a 2.6.30  kernel ?

 

 I need to apply an adeos patch : adeos-ipipe-2.6.30-arm-1.15-03.patch or adeos-ipipe-2.6.31-arm-1.16-01.patch or adeos-ipipe-2.6.33-arm-1.16-01.patch .

Adeos patch must be applied with a vanilla kernel (without patch).  So I would like try to apply adeos patch before OMAP patch.

Regards,

 

  • dmarc:

    Note that the directory provides a readme that explains how to use the provided files, for your reference.

    The file Unified-patch-03.00.00.05 contains all the patches that were applied to the open source kernel 2.6.32 to make the

  • dmarc:

    Sorry, my text got chopped off...

    Note that the directory provides a readme that explains how to use the provided files, for your reference.

    The file Unified-patch-03.00.00.05 contains all the patches that were applied to the open source kernel 2.6.32 to make the

    SDK PSP v03.00.00.05.  That file is just there to show you what changes have been made.  The patch has already been applied.

    If you try to apply the unified patch from a different starting point (kernel 2.6.32.19) the results will be be "quite messy".

    The patch tool generate .REJ files to report where it could not apply patches.

    Regards,

    Michael T

  • Michael T said:

    dmarc:

    Sorry, my text got chopped off...

    Note that the directory provides a readme that explains how to use the provided files, for your reference.

    The file Unified-patch-03.00.00.05 contains all the patches that were applied to the open source kernel 2.6.32 to make the
    SDK PSP v03.00.00.05.  That file is just there to show you what changes have been made.  The patch has already been applied.
    If you try to apply the unified patch from a different starting point (kernel 2.6.32.19) the results will be be "quite messy".
    The patch tool generate .REJ files to report where it could not apply patches.
    Regards,
    Michael T

    Thank you for you response but my problem is that I have got a lot of .REJ files with the kernel 2.6.32 and also the 2.6.32.19.

    I just type the command : kernels_test/linux-2.6.32$ cat ../Unified-patch-03.00.00.05 | patch -p1

    It is possible that  you check the patch ? 

    Regards,
    Marc
  • It is very important for me to discover where do you from this kernel because I would like to use xenomai with your board and I get an compilation error when I apply the patch Unified-patch-03.00.00.05.

    arch/arm/xenomai/built-in.o: In function `rthal_irq_host_release':

    /home/marc/sdk/AM35x-OMAP35x-PSP-SDK/src/kernel/linux-03.00.00.05_xenomai/arch/arm/xenomai/hal.c:193:

    undefined reference to `__bad_lock_type'

    arch/arm/xenomai/built-in.o: In function `rthal_irq_host_request':

    /home/marc/sdk/AM35x-OMAP35x-PSP-SDK/src/kernel/linux-03.00.00.05_xenomai/arch/arm/xenomai/hal.c:172:

    undefined reference to `__bad_lock_type'

     

    I don't know where do you from this error ( kernel, adeos patch, TI patch ...)

    have you some ideas ?

     

    If you can generate a patch for the kernel 2.6.31, it will be very usefull for me :-)

     

    I know that this is not a TI problem but I think that if a real time system runs with your board,  this information can be interressant for you, is it not ?

  • The compilation is a sucess without the line 172 and 193. It seem that spin lock management is different between kernel 2.6.32 ans 2.6.33.

    So I think that I need a adeos patch  for kernel 2.6.32  but the 2.6.32 adeos-ipipe-2.6.32-arm* patch is not present in the downloading section of the adeos website. If Texas Intrument team send me a unified patch for 2.6.31 or 2.6.33 , I will be happy !

     

    best regards,

    marc

     

     

  • have you a git repository where I can download your kernel ?

     

  • dmarc:

    The following description is from the release notes of our AM35xx / OMAP35xx PSP v03.00.00.05, regarding the git tree

    location of the baseline Linux kernel v2.6.32:

     

    OMAP Linux Kernel 2.6.32(Linux kernel version) The baseline was chosen from "pm" branch of http://git.kernel.org/?p=linux/kernel/git/tmlind/linux-omap-2.6.git;a=shortlog;h=refs/heads/pm 3fd5969a81a9324b58a1c19cf510c0da97c99565. History on "pm" branch gets rewritten and hence the commit may not be valid always

     

    Regards,

    Michael T

    PS: Please mark this post as answered via the Verify Answer button below if you think it answers your question.  Thanks!

  • I  can rebuild the kernel with this 3fd5969a81a9324b58a1c19cf510c0da97c99565 version and the patch included in  SDK v03.00.00.05. Compilation  errors are always presents but i don't have the ADEOS patch for a kernel 2.6.32

     

    In the SDK v03.00.00.02, A unified patch is present for a 2.6.31-rc7-omap1 kernel  . I have'nt got compilation error. I am testing this kernel with xenomai.

     

    Thank you for your patience.

     

    Best regard