In my project I want to debug Linux kernel and it's modules by using CodeWarrior 10.5.1 tool with Code Warrior Tap.For this purpose, T1024rdb board is used. Although it has PowerPC architecture,it's stated in the forum that it has the same procedure like ARM arcitecture.So "AN4980.pdf" procedure was taken as a reference.However,when I worked on the document at the part of the "Create ARMV7 project's" fifth step which is"Browse to the vmlinux executable file and Select open." I could not find any executable named as vmlinux. Thank you for your help.
Aftre building the kernel, vmlinux will be placed in a path similar with this one: \build_p4080ds_release\tmp\work\p4080ds-fsl-linux\linux-qoriq\3.12-r0\git\
In CW make sure you change the file type in the lower right corner of the Select file dialog, to all file, because by default is set .elf file.
Adrian
When I looked into my directory \poky\build_t1024rdb-64b_release\tmp\work\t1024rdb_64b-fsl-linux\linux-qoriq\3.12-r0\git I still could not vmlinux.You can see the steps below:
[user@localhost poky]$ source ./fsl-setup-poky -m t1024rdb-64b -j 2 -t 2 -l
t1024rdb-64b
Run the following commands to start a build:
bitbake fsl-image-x11
bitbake fsl-image-full
bitbake fsl-image-flash
bitbake fsl-image-virt
bitbake fsl-image-core
bitbake fsl-image-minimal
To return to this build environment later please run:
. /yocto/QorIQ-SDK-V1.8-20150619-yocto/poky/build_t1024rdb-64b_release/SOURCE_THIS
[user@localhost build_t1024rdb-64b_release]$ pwd
/yocto/QorIQ-SDK-V1.8-20150619-yocto/poky/build_t1024rdb-64b_release
[user@localhost build_t1024rdb-64b_release]$ ls
conf SOURCE_THIS
[user@localhost build_t1024rdb-64b_release]$ source SOURCE_THIS
Back to build project /yocto/QorIQ-SDK-V1.8-20150619-yocto/poky/build_t1024rdb-64b_release.
[user@localhost build_t1024rdb-64b_release]$ PWD
bash: PWD: command not found...
Similar command is: 'pwd'
[user@localhost build_t1024rdb-64b_release]$ Pwd
bash: Pwd: command not found...
Similar command is: 'pwd'
[user@localhost build_t1024rdb-64b_release]$ pwd
/yocto/QorIQ-SDK-V1.8-20150619-yocto/poky/build_t1024rdb-64b_release
[user@localhost build_t1024rdb-64b_release]$ bitbake fsl-image-minimal
Parsing recipes: 100% |#####################################################| Time: 00:07:47
Parsing of 1846 .bb files complete (0 cached, 1846 parsed). 4209 targets, 192 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.22.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "CentOS-7.3.1611"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t1024rdb-64b"
DISTRO = "fsl-networking"
DISTRO_VERSION = "QorIQ-SDK-V1.8"
TUNE_FEATURES = "m64 fpu-hard e5500"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "daisy:18837ea4cdd4fdab608e0a032a11a2dfb6b1ee1a"
meta-fsl-ppc = "daisy:ed8d8f097eb9fb9c4d76cfeb617da5ce72d9b414"
meta-fsl-toolchain = "daisy:a253b3594d8d9e0a4ed869d1fb502c395c4438ac"
meta-fsl-networking = "daisy:6eb28ed659bbadfa470237dfce98bcbf53c18fe1"
meta-virtualization = "daisy:df44ec7a68c8e4b713a458a5b93e903103dea85c"
meta-oe
meta-networking
meta-webserver
meta-ruby
meta-perl
meta-filesystems = "daisy:4a44c4107899363b22c01eb5621b0c86db1c659c"
meta-java = "daisy:65c89b93fa9d4c89e1dfb5b795075cbadb541009"
meta-openstack
meta-openstack-compute-deploy
meta-openstack-controller-deploy
meta-openstack-qemu
meta-openstack-compute-test-config
meta-openstack-controller-test-config
meta-cloud-services = "daisy:c040904422eb3c13f7abb66996bed8d675ada860"
meta-security = "daisy:9f4c3849521465b459845dcc1a7a885bacaae9d9"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 1584 tasks of which 1312 didn't need to be rerun and all succeeded.
[user@localhost build_t1024rdb-64b_release]$ bitbake -c menuconfig virtual/kernel
Loading cache: 100% |############################################################| ETA: 00:00:00
Loaded 4210 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION = "1.22.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING = "CentOS-7.3.1611"
TARGET_SYS = "powerpc64-fsl-linux"
MACHINE = "t1024rdb-64b"
DISTRO = "fsl-networking"
DISTRO_VERSION = "QorIQ-SDK-V1.8"
TUNE_FEATURES = "m64 fpu-hard e5500"
TARGET_FPU = "hard"
meta
meta-yocto
meta-yocto-bsp = "daisy:18837ea4cdd4fdab608e0a032a11a2dfb6b1ee1a"
meta-fsl-ppc = "daisy:ed8d8f097eb9fb9c4d76cfeb617da5ce72d9b414"
meta-fsl-toolchain = "daisy:a253b3594d8d9e0a4ed869d1fb502c395c4438ac"
meta-fsl-networking = "daisy:6eb28ed659bbadfa470237dfce98bcbf53c18fe1"
meta-virtualization = "daisy:df44ec7a68c8e4b713a458a5b93e903103dea85c"
meta-oe
meta-networking
meta-webserver
meta-ruby
meta-perl
meta-filesystems = "daisy:4a44c4107899363b22c01eb5621b0c86db1c659c"
meta-java = "daisy:65c89b93fa9d4c89e1dfb5b795075cbadb541009"
meta-openstack
meta-openstack-compute-deploy
meta-openstack-controller-deploy
meta-openstack-qemu
meta-openstack-compute-test-config
meta-openstack-controller-test-config
meta-cloud-services = "daisy:c040904422eb3c13f7abb66996bed8d675ada860"
meta-security = "daisy:9f4c3849521465b459845dcc1a7a885bacaae9d9"
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 242 tasks of which 237 didn't need to be rerun and all succeeded.
[user@localhost build_t1024rdb-64b_release]$ bitbake -c virtual/kernel
Nothing to do. Use 'bitbake world' to build everything, or run 'bitbake --help' for usage information.
[user@localhost build_t1024rdb-64b_release]$
[user@localhost git]$ ls
arch Documentation init lib net security
block drivers ipc localversion-rt README sound
COPYING firmware Kbuild MAINTAINERS REPORTING-BUGS tools
CREDITS fs Kconfig Makefile samples usr
crypto include kernel mm scripts virt
[user@localhost git]$ find . -name "vmlinux"
[user@localhost git]$
Try the followings:
$ bitbake -c cleansstate virtual/kernel
$ bitbake -c patch virtual/kernel
$ bitbake -c compile -f virtual/kernel
$ bitbake virtual/kernel
Adrian