[yocto] patch_do_patch error for local kernel rep..,

Jegan Chandru pcjegan at gmail.com
Wed Feb 4 06:43:28 PST 2015


I think you should refer or ask here for better replies,

https://lists.yoctoproject.org/listinfo/meta-freescale

which is for freescale specific ML.

Also for the error, I guess it needs to be patched, I just googled it and
found this,

https://github.com/ralix-dev/PKGBUILDs/tree/master/core/linux-utilite-fsl

Hope it helps,

JC

On Wed, Feb 4, 2015 at 7:38 PM, Pavan Kumar B <u2bpavankumar at gmail.com>
wrote:

> Hi,
>
> Now I am getting the following error
>
> Any idea like "PAD_CTL_DSE_40ohm" undeclared corresponds to ??
>
> Please do guide me
>
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | NOTE: make -j 4 uImage CC=arm-poky-linux-gnueabi-gcc
> -mno-thumb-interwork -marm LD=arm-poky-linux-gnueabi-ld.bfd
> LOADADDR=0x10008000
> |   CHK     include/linux/version.h
> |   CHK     include/generated/utsrelease.h
> | make[1]: `include/generated/mach-types.h' is up to date.
> |   CALL    scripts/checksyscalls.sh
> |   CHK     include/generated/compile.h
> |   CC      arch/arm/mach-mx6/usb_h2.o
> |   CC      arch/arm/plat-mxc/devices/platform-imx-dma.o
> | In file included from arch/arm/plat-mxc/include/mach/iomux-mx6q.h:25:0,
> |                  from arch/arm/mach-mx6/usb_h2.c:32:
> | arch/arm/mach-mx6/usb_h2.c: In function 'hsic_start':
> | arch/arm/plat-mxc/include/mach/iomux-mx6q.h:83:5: error:
> 'PAD_CTL_DSE_40ohm' undeclared (first use in this function)
> |      PAD_CTL_DSE_40ohm)
> |      ^
> | arch/arm/plat-mxc/include/mach/iomux-v3.h:74:44: note: in definition of
> macro 'MUX_PAD_CTRL'
> |  #define MUX_PAD_CTRL(x)  ((iomux_v3_cfg_t)(x) << MUX_PAD_CTRL_SHIFT)
> |                                             ^
> | arch/arm/plat-mxc/include/mach/iomux-mx6q.h:3828:17: note: in expansion
> of macro 'MX6Q_USB_HSIC_PAD_CTRL'
> |     MUX_PAD_CTRL(MX6Q_USB_HSIC_PAD_CTRL | PAD_CTL_PUS_47K_UP)\
> |                  ^
> | arch/arm/mach-mx6/usb_h2.c:180:5: note: in expansion of macro
> 'MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START'
> |      MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START);
> |      ^
> | arch/arm/plat-mxc/include/mach/iomux-mx6q.h:83:5: note: each undeclared
> identifier is reported only once for each function it appears in
> |      PAD_CTL_DSE_40ohm)
> |      ^
> | arch/arm/plat-mxc/include/mach/iomux-v3.h:74:44: note: in definition of
> macro 'MUX_PAD_CTRL'
> |  #define MUX_PAD_CTRL(x)  ((iomux_v3_cfg_t)(x) << MUX_PAD_CTRL_SHIFT)
> |                                             ^
> | arch/arm/plat-mxc/include/mach/iomux-mx6q.h:3828:17: note: in expansion
> of macro 'MX6Q_USB_HSIC_PAD_CTRL'
> |     MUX_PAD_CTRL(MX6Q_USB_HSIC_PAD_CTRL | PAD_CTL_PUS_47K_UP)\
> |                  ^
> | arch/arm/mach-mx6/usb_h2.c:180:5: note: in expansion of macro
> 'MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START'
> |      MX6Q_PAD_RGMII_TX_CTL__USBOH3_H2_STROBE_START);
> |      ^
> | make[1]: *** [arch/arm/mach-mx6/usb_h2.o] Error 1
> | make: *** [arch/arm/mach-mx6] Error 2
> | make: *** Waiting for unfinished jobs....
> |   CC      fs/open.o
> | arch/arm/plat-mxc/devices/platform-imx-dma.c: In function
> 'imxXX_add_imx_dma':
> | arch/arm/plat-mxc/devices/platform-imx-dma.c:265:2: error:
> 'imx6q_imx_sdma_data' undeclared (first use in this function)
> |   imx6q_imx_sdma_data.pdata.to_version = to_version;
> |   ^
> | arch/arm/plat-mxc/devices/platform-imx-dma.c:265:2: note: each
> undeclared identifier is reported only once for each function it appears in
> | arch/arm/plat-mxc/devices/platform-imx-dma.c:268:8: error:
> 'addr_imx6q_to1' undeclared (first use in this function)
> |        &addr_imx6q_to1;
> |         ^
> |   CC      fs/read_write.o
> | make[2]: *** [arch/arm/plat-mxc/devices/platform-imx-dma.o] Error 1
> | make[1]: *** [arch/arm/plat-mxc/devices] Error 2
> | make: *** [arch/arm/plat-mxc] Error 2
> |   CC      fs/file_table.o
> |   CC      fs/super.o
> |   CC      fs/char_dev.o
> |   CC      fs/stat.o
> |   CC      fs/exec.o
> |   CC      fs/pipe.o
> |   CC      fs/namei.o
> |   CC      fs/fcntl.o
> |   CC      fs/ioctl.o
> |   CC      fs/readdir.o
> |   CC      fs/select.o
> |   CC      fs/fifo.o
> |   CC      fs/dcache.o
> |   CC      fs/inode.o
> |   CC      fs/attr.o
> |   CC      fs/bad_inode.o
> |   CC      fs/file.o
> |   CC      fs/filesystems.o
> |   CC      fs/namespace.o
> |   CC      fs/seq_file.o
> |   CC      fs/xattr.o
> |   CC      fs/libfs.o
> |   CC      fs/fs-writeback.o
> |   CC      fs/pnode.o
> |   CC      fs/drop_caches.o
> |   CC      fs/splice.o
> |   CC      fs/sync.o
> |   CC      fs/utimes.o
> |   CC      fs/stack.o
> |   CC      fs/fs_struct.o
> |   CC      fs/statfs.o
> |   CC      fs/buffer.o
> |   CC      fs/bio.o
> |   CC      fs/block_dev.o
> |   CC      fs/direct-io.o
> |   CC      fs/mpage.o
> |   CC      fs/ioprio.o
> |   CC      fs/devpts/inode.o
> |   LD      fs/devpts/devpts.o
> |   LD      fs/devpts/built-in.o
> |   CC      fs/ext4/balloc.o
> |   CC      fs/fat/cache.o
> |   CC      fs/jbd2/transaction.o
> |   CC      fs/fuse/dev.o
> |   CC      fs/fat/dir.o
> |   CC      fs/ext4/bitmap.o
> |   CC      fs/ext4/dir.o
> |   CC      fs/jbd2/commit.o
> |   CC      fs/ext4/file.o
> |   CC      fs/fuse/dir.o
> |   CC      fs/fat/fatent.o
> |   CC      fs/ext4/fsync.o
> |   CC      fs/jbd2/recovery.o
> | In file included from fs/ext4/fsync.c:33:0:
> | fs/ext4/ext4_jbd2.h: In function 'ext4_inode_journal_mode':
> | fs/ext4/ext4_jbd2.h:288:1: warning: control reaches end of non-void
> function [-Wreturn-type]
> |  }
> |  ^
> |   CC      fs/ext4/ialloc.o
> |   CC      fs/fat/file.o
> |   CC      fs/fuse/file.o
> |   CC      fs/jbd2/checkpoint.o
> | In file included from include/linux/mm.h:11:0,
> |                  from fs/fuse/fuse_i.h:18,
> |                  from fs/fuse/file.c:9:
> | fs/fuse/file.c: In function 'fuse_file_poll':
> | include/linux/rbtree.h:171:26: warning: 'parent' may be used
> uninitialized in this function [-Wmaybe-uninitialized]
> |   node->rb_parent_color = (unsigned long )parent;
> |                           ^
> | fs/fuse/file.c:2052:27: note: 'parent' was declared here
> |    struct rb_node **link, *parent;
> |                            ^
> |   CC      fs/fat/inode.o
> |   CC      fs/jbd2/revoke.o
> |   CC      fs/ext4/inode.o
> |   CC      fs/jbd2/journal.o
> | In file included from fs/ext4/inode.c:46:0:
> | fs/ext4/ext4_jbd2.h: In function 'ext4_inode_journal_mode':
> | fs/ext4/ext4_jbd2.h:288:1: warning: control reaches end of non-void
> function [-Wreturn-type]
> |  }
> |  ^
> |   CC      fs/fuse/inode.o
> |   CC      fs/fat/misc.o
> |   CC      fs/fat/namei_vfat.o
> |   CC      fs/fuse/control.o
> |   LD      fs/fuse/fuse.o
> |   LD      fs/jbd2/jbd2.o
> |   LD      fs/fuse/built-in.o
> |   LD      fs/jbd2/built-in.o
> |   CC      fs/nls/nls_base.o
> |   CC      fs/notify/fsnotify.o
> |   LD      fs/fat/fat.o
> |   LD      fs/fat/vfat.o
> |   LD      fs/fat/built-in.o
> |   CC      fs/partitions/check.o
> |   CC      fs/nls/nls_cp437.o
> |   CC      fs/notify/notification.o
> |   CC      fs/ext4/page-io.o
> |   CC      fs/nls/nls_ascii.o
> |   CC      fs/nls/nls_iso8859-1.o
> |   CC      fs/notify/group.o
> |   CC      fs/ext4/ioctl.o
> |   CC      fs/nls/nls_utf8.o
> |   LD      fs/nls/built-in.o
> |   CC      fs/partitions/msdos.o
> |   CC      fs/proc/mmu.o
> |   CC      fs/notify/inode_mark.o
> |   CC      fs/ext4/namei.o
> |   CC      fs/proc/task_mmu.o
> |   CC      fs/partitions/efi.o
> |   CC      fs/notify/mark.o
> |   CC      fs/proc/inode.o
> |   LD      fs/partitions/built-in.o
> |   CC      fs/notify/vfsmount_mark.o
> |   LD      fs/quota/built-in.o
> |   CC      fs/proc/root.o
> |   CC      fs/ramfs/inode.o
> |   LD      fs/notify/dnotify/built-in.o
> |   LD      fs/notify/fanotify/built-in.o
> |   CC      fs/notify/inotify/inotify_fsnotify.o
> |   CC      fs/proc/base.o
> |   CC      fs/ramfs/file-mmu.o
> |   CC      fs/ext4/super.o
> |   LD      fs/ramfs/ramfs.o
> |   LD      fs/ramfs/built-in.o
> |   CC      fs/notify/inotify/inotify_user.o
> |   CC      fs/sysfs/inode.o
> |   CC      fs/sysfs/file.o
> |   LD      fs/notify/inotify/built-in.o
> |   LD      fs/notify/built-in.o
> |   CC      fs/eventpoll.o
> |   CC      fs/proc/generic.o
> |   CC      fs/sysfs/dir.o
> | fs/sysfs/dir.c:414:14: warning: 'sysfs_pathname' defined but not used
> [-Wunused-function]
> |  static char *sysfs_pathname(struct sysfs_dirent *sd, char *path)
> |               ^
> |   CC      fs/anon_inodes.o
> |   CC      fs/sysfs/symlink.o
> |   CC      fs/proc/array.o
> |   CC      fs/signalfd.o
> |   CC      fs/ext4/symlink.o
> |   CC      fs/ext4/hash.o
> |   CC      fs/sysfs/mount.o
> |   CC      fs/proc/proc_tty.o
> |   CC      fs/timerfd.o
> |   CC      fs/proc/cmdline.o
> |   CC      fs/ext4/resize.o
> |   CC      fs/sysfs/bin.o
> |   CC      fs/proc/consoles.o
> |   CC      fs/proc/cpuinfo.o
> |   CC      fs/proc/devices.o
> |   CC      fs/eventfd.o
> |   CC      fs/sysfs/group.o
> |   CC      fs/proc/interrupts.o
> |   CC      fs/ext4/extents.o
> |   LD      fs/sysfs/built-in.o
> |   CC      fs/proc/loadavg.o
> |   CC      fs/locks.o
> |   CC      fs/binfmt_script.o
> | In file included from fs/ext4/extents.c:44:0:
> | fs/ext4/ext4_jbd2.h: In function 'ext4_inode_journal_mode':
> | fs/ext4/ext4_jbd2.h:288:1: warning: control reaches end of non-void
> function [-Wreturn-type]
> |  }
> |  ^
> |   CC      fs/proc/meminfo.o
> |   CC      fs/binfmt_elf.o
> |   CC      fs/proc/stat.o
> |   CC      fs/proc/uptime.o
> |   CC      fs/mbcache.o
> |   CC      fs/proc/version.o
> |   CC      fs/proc/softirqs.o
> |   CC      fs/proc/namespaces.o
> |   CC      fs/proc/proc_sysctl.o
> |   CC      fs/ext4/ext4_jbd2.o
> |   CC      fs/proc/proc_net.o
> |   CC      fs/ext4/migrate.o
> | In file included from fs/ext4/ext4_jbd2.c:5:0:
> | fs/ext4/ext4_jbd2.h: In function 'ext4_inode_journal_mode':
> | fs/ext4/ext4_jbd2.h:288:1: warning: control reaches end of non-void
> function [-Wreturn-type]
> |  }
> |  ^
> |   CC      fs/proc/kmsg.o
> |   CC      fs/ext4/mballoc.o
> |   CC      fs/ext4/block_validity.o
> |   LD      fs/proc/proc.o
> |   LD      fs/proc/built-in.o
> |   CC      fs/ext4/move_extent.o
> |   CC      fs/ext4/mmp.o
> | In file included from fs/ext4/mballoc.h:22:0,
> |                  from fs/ext4/mballoc.c:24:
> | fs/ext4/ext4_jbd2.h: In function 'ext4_inode_journal_mode':
> | fs/ext4/ext4_jbd2.h:288:1: warning: control reaches end of non-void
> function [-Wreturn-type]
> |  }
> |  ^
> |   CC      fs/ext4/xattr.o
> |   CC      fs/ext4/xattr_user.o
> |   CC      fs/ext4/xattr_trusted.o
> |   LD      fs/ext4/ext4.o
> |   LD      fs/ext4/built-in.o
> |   LD      fs/built-in.o
> | ERROR: oe_runmake failed
> | WARNING:
> /home/srikanth/Desktop/work/pavan/Minizap/wandboard/yocto/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard/3.0.35-r0/temp/run.do_compile.6787:1
> exit 1 from
> |   exit 1
> | ERROR: Function failed: do_compile (log file is located at
> /home/srikanth/Desktop/work/pavan/Minizap/wandboard/yocto/fsl-community-bsp/build/tmp/work/wandboard_quad-poky-linux-gnueabi/linux-wandboard/3.0.35-r0/temp/log.do_compile.6787)
> ERROR: Task 6
> (/home/srikanth/Desktop/work/pavan/Minizap/wandboard/yocto/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/
> linux-wandboard_3.0.35.bb, do_compile) failed with exit code '1'
> NOTE: Tasks Summary: Attempted 555 tasks of which 554 didn't need to be
> rerun and 1 failed.
> No currently running tasks (355 of 568)
>
> Summary: 1 task failed:
>
> /home/srikanth/Desktop/work/pavan/Minizap/wandboard/yocto/fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/
> linux-wandboard_3.0.35.bb, do_compile
> Summary: There was 1 WARNING message shown.
> Summary: There was 1 ERROR message shown, returning a non-zero exit code.
>
>
> On Wed, Feb 4, 2015 at 4:05 PM, Jegan Chandru <pcjegan at gmail.com> wrote:
>
>> It just says the patch  drm-vivante-Add-00-sufix-in-returned-bus-Id.patch
>> is already applied in the source code.
>>
>> On Wed, Feb 4, 2015 at 1:29 AM, Pavan Kumar B <u2bpavankumar at gmail.com>
>> wrote:
>>
>>>
>>> Hi,
>>>
>>> I was trying to set the local repo for kernel and build the yocto image.
>>> For that
>>>
>>> I have set SRC_URI as below located at $
>>> /fsl-community-bsp/sources/meta-fsl-arm-extra/recipes-kernel/linux/linux-wandboard.inc
>>>
>>> SRC_URI = "git:///home/jos/test/temp/mykernel;protocol=file;bareclone=1"
>>>
>>> and it started recognizing the local repo..,
>>>
>>> Also I have modified the linux-imx file "S" parameter as below
>>>
>>> S = "/home/jos/test/temp/mykernel"
>>>
>>> But I ran into another error and log is mentioned below
>>>
>>> The kernel baseline in my local repo is 3.0.35-4.1.0 and the I am using
>>> dora yocto branch
>>>
>>> There are some set of patches I can see at linux-imx_3.0.35.bb as below
>>>
>>> # GPU support patches
>>> SRC_URI += "file://drm-vivante-Add-00-sufix-in-returned-bus-Id.patch \
>>>
>>> file://0001-ENGR00255688-4.6.9p11.1-gpu-GPU-Kernel-driver-integr.patch \
>>>
>>> file://0002-ENGR00265465-gpu-Add-global-value-for-minimum-3D-clo.patch \
>>>
>>> file://0003-ENGR00261814-4-gpu-use-new-PU-power-on-off-interface.patch \
>>>
>>> file://0004-ENGR00264288-1-GPU-Integrate-4.6.9p12-release-kernel.patch \
>>>
>>> file://0005-ENGR00264275-GPU-Correct-suspend-resume-calling-afte.patch \
>>>
>>> file://0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch"
>>>
>>>
>>> The patch function is failing here. But with the kernel that was
>>> downloaded from git previously for wandboard is compiling with same patches
>>> with out any problem. These patches don't work for 3.0.35-4.1.0?
>>>
>>> What should be done here to apply patch & compile the image.
>>>
>>> please do guide me over here
>>>
>>> Regards,
>>> Pavan
>>>
>>> PS: Attached is the error log file
>>>
>>> --
>>> _______________________________________________
>>> yocto mailing list
>>> yocto at yoctoproject.org
>>> https://lists.yoctoproject.org/listinfo/yocto
>>>
>>>
>>
>>
>> --
>> JCP
>>
>
>


-- 
JCP
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20150204/6834d877/attachment.html>


More information about the yocto mailing list