← Back to team overview

linaro-release team mailing list archive

[Bug 832680] Re: Make available source and debug packages corresponding to Linaro binary images

 

I have send the LT leads info on how to enable dbgsym packages in their
kernels.  Here it is for reference:

http://git.linaro.org/gitweb?p=ubuntu/linux-linaro-oneiric.git;a=commitdiff;h=8035803c27c612dde7607c33dfd8d96f3c53cdb1
forces the generation of the dbgsym package even when cross compiling locally

http://git.linaro.org/gitweb?p=ubuntu/linux-linaro-oneiric.git;a=commitdiff;h=4a0c288fa1eddb0b9183f5169c88cef8db99ff54
invokes objcopy to add a .gnu_debuglink section to each .ko that
points to the full unstripped .ko in the dbgsym package

http://git.linaro.org/gitweb?p=ubuntu/linux-linaro-oneiric.git;a=commitdiff;h=8326f066467940b49f5f8246feb7e49e3d0b7a32
this was my first attempt at having the build system not rename the
dbgsym package when doing a PPA build, it did not work because the
test for ^Purpose: PRIMARY was true even on a PPA build.

http://git.linaro.org/gitweb?p=ubuntu/linux-linaro-oneiric.git;a=commitdiff;h=e80738800fa78acad62ea09e431a0199f24030fe
this is a hack that must not be pushed to the primary archive as it
circumvents the deb to ddeb rename that the ubuntu primary build
system uses to put dbgsym packages in a differnt place to avoid
mirroring these large packages to all ubuntu mirrors

-- 
You received this bug notification because you are a member of Linaro
Release Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/832680

Title:
  Make available source and debug packages corresponding to Linaro
  binary images

Status in Linaro Freescale Landing Team Project:
  Confirmed
Status in Linaro Samsung Landing Team Project:
  Confirmed
Status in Linaro ST-Ericsson Landing Team Project:
  Confirmed
Status in Linaro Ubuntu Evaluation Builds:
  In Progress

Bug description:
  Recently, a user of Linaro images within ARM reported the below:
  -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  Some Linaro related questions that I wonder if someone on the alias knows the answers to.

  Yesterday I did this:
  sudo /home/markn/apps/linaro-image-tools/linaro-image-tools-0.4.8/linaro-media-create --rootfs ext3 --mmc /dev/sdb --binary ./linaro-n-ubuntu-desktop-tar-20110629-0.tar.gz --hwpack ./hwpack_linaro-panda_20110629-1_armel_supported.tar.gz --dev panda

  And it all worked splendidly and I have a working Ubuntu on my SDcard.

  But, for various reasons, I now want/need to be able to load the
  matching kernel debug symbols (for vmlinux) into a debugger.

  Initially I thought vmlinux might be pre-built inside the HW pack for
  me. But if it is I can't see it. I can see the kernel used is:
  2.6.38-1003 and I can download the source here https://launchpad.net
  /linux-linaro/+milestone/2.6.39-2011.06

  I could rebuild the kernel, just to get an ELF image with debug
  symbols. But, I'd presumably also need to know the exact version of
  GCC used to build the original on my SD card. (And I don't know where
  to find that info). Or I could rebuild with my current version of GCC
  and also replace the linux binary that linaro-media-create, put on my
  SDcard.

  All this seems a bit contrary to the spirit of Linaro making life
  easy, perhaps my use case isn't typical.

  So my questions are:
  - Does anyone know if the Linaro packages really do contain an image with debug info that I'm just failing to find?
  - If they don't - do we know if they will
  - And finally is there a better way for me to go about this I'm just failing to see?
  -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  Similar issues were reported by other Linaro users within ARM related
  to the lack of availability of debug packages. In one instance,
  someone tried a kernel debug of the Linaro images with DS-5 only to
  figure that a matching vmlinux with debug symbols is not supplied.
  This makes life harder for Linaro users.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linaro-landing-team-freescale/+bug/832680/+subscriptions