Package: crash
Version: 6.0.1-1
Severity: wishlist
Tags: patch

Just adding armel to the architecture list seems to produce a working
package. Please consider the attached patch.

Here's a demo of how it works on my openmoko where I was debugging a
kernel bug:

lindi@ginger:~$ sudo crash /usr/lib/debug/boot/vmlinux-2.6.39-gta02-gta02

crash 6.0.1
Copyright (C) 2002-2011  Red Hat, Inc.
Copyright (C) 2004, 2005, 2006  IBM Corporation
Copyright (C) 1999-2006  Hewlett-Packard Co
Copyright (C) 2005, 2006  Fujitsu Limited
Copyright (C) 2006, 2007  VA Linux Systems Japan K.K.
Copyright (C) 2005  NEC Corporation
Copyright (C) 1999, 2002, 2007  Silicon Graphics, Inc.
Copyright (C) 1999, 2000, 2001, 2002  Mission Critical Linux, Inc.
This program is free software, covered by the GNU General Public License,
and you are welcome to change it and/or distribute copies of it under
certain conditions.  Enter "help copying" to see the conditions.
This program has absolutely no warranty.  Enter "help warranty" for details.

GNU gdb (GDB) 7.3.1
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "armv5tel-unknown-linux-gnueabi"...

WARNING: not using untrusted file: "/home/lindi/.gdbinit"

      KERNEL: /usr/lib/debug/boot/vmlinux-2.6.39-gta02-gta02
    DUMPFILE: /dev/mem
        CPUS: 1
        DATE: Mon Jan 16 20:22:41 2012
      UPTIME: (cannot calculate: unknown HZ value)
LOAD AVERAGE: 1.45, 0.90, 0.43
       TASKS: 65
    NODENAME: ginger
     RELEASE: 2.6.39-gta02-gta02
     VERSION: #1 Mon Oct 31 20:02:07 UTC 2011
     MACHINE: armv4tl  (unknown Mhz)
      MEMORY: 127 MB
         PID: 2023
     COMMAND: "crash"
        TASK: c7b94580  [THREAD_INFO: c6c2c000]
         CPU: 0
       STATE: TASK_RUNNING (ACTIVE)

crash> ps
   PID    PPID  CPU   TASK    ST  %MEM     VSZ    RSS  COMM
      0      0   0  c036e4a8  RU   0.0       0      0  [swapper]
      1      0   0  c7817d60  IN   0.5    2108    688  init
      2      0   0  c7817ac0  IN   0.0       0      0  [kthreadd]
      3      2   0  c7817820  IN   0.0       0      0  [ksoftirqd/0]
      6      2   0  c7817040  IN   0.0       0      0  [rcu_kthread]
      7      2   0  c782cd60  IN   0.0       0      0  [khelper]
      8      2   0  c782cac0  IN   0.0       0      0  [sync_supers]
      9      2   0  c782c820  IN   0.0       0      0  [bdi-default]
     10      2   0  c782c580  IN   0.0       0      0  [kblockd]
     11      2   0  c782c2e0  IN   0.0       0      0  [irq/53-pcf50633]
     12      2   0  c782c040  IN   0.0       0      0  [kswapd0]
     13      2   0  c78bbd60  IN   0.0       0      0  [fsnotify_mark]
     14      2   0  c78bbac0  IN   0.0       0      0  [crypto]
     24      2   0  c78bb040  IN   0.0       0      0  [mtdblock0]
     26      2   0  c78bb580  IN   0.0       0      0  [mtdblock1]
     27      2   0  c78bb820  IN   0.0       0      0  [mtdblock2]
     28      2   0  c7914ac0  IN   0.0       0      0  [mtdblock3]
     29      2   0  c7914820  IN   0.0       0      0  [mtdblock4]
     30      2   0  c7914580  IN   0.0       0      0  [mtdblock5]
     31      2   0  c79142e0  IN   0.0       0      0  [mtdblock6]
     32      2   0  c7914040  IN   0.0       0      0  [spi_gpio.2]
     35      2   0  c7994820  IN   0.0       0      0  [irq/132-glamo-m]
     36      2   0  c7994580  IN   0.0       0      0  [mmcqd/1]
     38      2   0  c79942e0  IN   0.0       0      0  [kjournald]
     91      1   0  c79e8820  IN   0.9    2792   1160  udevd
    127      2   0  c7b94d60  IN   0.0       0      0  [khubd]
    595      1   0  c79e8580  IN   1.1   27852   1384  rsyslogd
    596      1   0  c7a55d60  IN   1.1   27852   1384  rs:main Q:Reg
    597      1   0  c79e8ac0  IN   1.1   27852   1384  rsyslogd
    598      1   0  c6de8ac0  IN   1.1   27852   1384  rsyslogd
    616      1   0  c6de8d60  IN   0.8    3776   1036  dbus-daemon
    629      1   0  c7ab8580  IN   0.4    2228    500  dropbear
    703      1   0  c7b22d60  IN   1.3    1700   1660  watchdog
    807      1   0  c7b17580  IN   0.4    1720    512  answering-machi
    979      2   0  c6d41040  IN   0.0       0      0  [kworker/u:0]
    980      2   0  c6de8580  IN   0.0       0      0  [kworker/u:3]
   1019     91   0  c79e82e0  IN   0.6    2788    828  udevd
   1020      2   0  c79e8040  IN   0.0       0      0  [kworker/0:4]
   1225      2   0  c7994d60  IN   0.0       0      0  [kworker/0:0]
   1227     91   0  c7ab82e0  IN   0.6    2788    808  udevd
   1276    629   0  c7b17d60  RU   1.0    2984   1364  dropbear
   1277   1276   0  c7b17820  IN   1.4    4924   1804  bash
   1286   1277   0  c7994ac0  IN   0.8    4756   1000  screen
   1287   1286   0  c6d41580  IN   1.3    5312   1720  screen
   1288   1287   0  c6d412e0  IN   1.4    4944   1872  bash
   2014   1287   0  c7b94040  IN   1.4    4944   1844  bash
   2022   2014   0  c78bb2e0  IN   1.0    4808   1348  sudo
>  2023   2022   0  c7b94580  RU  43.4   68968  56476  crash
   2077   1288   0  c7b22ac0  IN   0.9    2752   1224  top
   2262    807   0  c79e8d60  IN   0.4    3392    488  sleep
   2263   2023   0  c6de82e0  RU   0.7    3920    864  less
crash> bt 91
PID: 91     TASK: c79e8820  CPU: 0   COMMAND: "udevd"
 #0 [<c0295e40>] (schedule) from [<c0296b18>]
 #1 [<c0296b18>] (schedule_hrtimeout_range_clock) from [<c00cab08>]
 #2 [<c00cab08>] (sys_epoll_wait) from [<c0026a40>]
    pc : [<402717fc>]    lr : [<0000bcc0>]    psr: 60000010
    sp : bebb5e28  ip : 00032008  fp : 00000001
    r10: 00000000  r9 : 0003127c  r8 : ffffe3f4
    r7 : 000000fc  r6 : 00000000  r5 : 000312a1  r4 : 00031270
    r3 : ffffffff  r2 : 00000008  r1 : bebb5ea8  r0 : 0000000a
    Flags: nZCv  IRQs on  FIQs on  Mode USER_32  ISA ARM
crash> bt 36
PID: 36     TASK: c7994580  CPU: 0   COMMAND: "mmcqd/1"
 #0 [<c0295e40>] (schedule) from [<c01fa9a4>]
 #1 [<c01fa9a4>] (mmc_queue_thread) from [<c0054138>]
 #2 [<c0054138>] (kthread) from [<c00272e8>]
crash> print jiffies
$7 = 2382970
crash> print jiffies
$8 = 2384339
crash> dmesg | head -n10
[    0.000000] Linux version 2.6.39-gta02-gta02 (Debian 2.6.39-1gta021) 
([email protected]) (gcc version 4.4.6 (Debian 4.4.6-11) ) #1 Mon Oct 31 
20:02:07 UTC 2011
[    0.000000] CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: GTA02
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] BUG: mapping for 0x19000000 at 0xe0000000 overlaps vmalloc space
[    0.000000] CPU S3C2442B (id 0x32440aab)
[    0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics
[    0.000000] S3C244X: core 400.000 MHz, memory 100.000 MHz, peripheral 50.000 
MHz
[    0.000000] CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on





-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32.42 (PREEMPT)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--- crash-6.0.1.orig/debian/control	2012-01-16 18:25:11.000000000 +0000
+++ crash-6.0.1/debian/control	2012-01-16 16:30:04.000000000 +0000
@@ -7,7 +7,7 @@
 Standards-Version: 3.9.2.0
 
 Package: crash
-Architecture: i386 ia64 alpha powerpc amd64
+Architecture: i386 ia64 alpha powerpc amd64 armel
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: kernel-patch-lkcd, dumputils
 Description: kernel debugging utility, allowing gdb like syntax

Reply via email to