* RE: [Bluez-devel] Bluez on Axis DevBoard 82
@ 2004-08-05 12:45 Peter Kjellerstedt
2004-08-26 16:44 ` [Bluez-devel] Little Hexdump-Patch for hcidump Till Harbaum
0 siblings, 1 reply; 6+ messages in thread
From: Peter Kjellerstedt @ 2004-08-05 12:45 UTC (permalink / raw)
To: "Daniel Würfel"; +Cc: bluez-devel
The errors below do not look like they have anything to do with
BlueZ, but rather with your DevBoard installation. Try asking
the question again on the correct list (i.e., dev-etrax@axis.com)
and provide more information as to what you have changed.=20
Here are some points you can investigate yourself first though:
Make sure the libbluetooth.so library is compiled for CRIS=20
(you can check with 'readelf -h libbluetooth.so.1.0.3').
The error about ld-linux.so.2 indicates that you have built
something (probably the libbluetooth.so library) for glibc
rather than uClibc...
//Peter
> -----Original Message-----
> From: bluez-devel-admin@lists.sourceforge.net=20
> [mailto:bluez-devel-admin@lists.sourceforge.net] On Behalf Of=20
> "Daniel W=FCrfel"
> Sent: 05 August 2004 12:51
> To: bluez-devel@lists.sourceforge.net
> Subject: [Bluez-devel] Bluez on Axis DevBoard 82
>=20
> Hi,
>=20
> I use the kernel 2.4.22 and bluez-utils-2.5 and=20
> bluez-libs-2.4, bacause I have a Makefile for the=20
> bluetooth-directory that should work. But I am not sure. make=20
> install works fine, but when I want to make images, I always=20
> get an error.=20
> I have searched in the archive for hints, but those I found=20
> (including a Makefile) have not solved this problem.
> Can anybody help me?
> Has anybody a better working Makefile for those versions or=20
> even for the latest versions of bluez?
> Thanks,
> Daniel W=FCrfel
>=20
> [root@localhost devboard_82]# make images
> ##### Including needed shared library files #####
> perl: warning: Setting locale failed.
> perl: warning: Please check that your locale settings:
> LANGUAGE =3D (unset),
> LC_ALL =3D "CC",
> LC_LANG =3D "CC",
> LANG =3D "CC"
> are supported and installed on your system.
> perl: warning: Falling back to the standard locale ("C").
> strip-cris: Warning: Output file cannot represent=20
> architecture UNKNOWN!
> libbluetooth.so.1 -> libbluetooth.so.1.0.3
> #### No ld-linux.so.2 in=20
> /var/test/axis/devboard_82/target/cris-axis-linux-gnu/usr/lib=20
> /var/test/axis/devboard_82/target/cris-axis-linux-gnu/lib
> make: *** [cramfs.img] Error 1
> [root@localhost devboard_82]#
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread* [Bluez-devel] Little Hexdump-Patch for hcidump
2004-08-05 12:45 [Bluez-devel] Bluez on Axis DevBoard 82 Peter Kjellerstedt
@ 2004-08-26 16:44 ` Till Harbaum
2004-08-26 17:03 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Till Harbaum @ 2004-08-26 16:44 UTC (permalink / raw)
To: bluez-devel
Hi all,
in every new release of hcidump i have been replacing the built-in
hexdump routine with my own one (giving the address and ascii as well).
Perhaps you want to use this replacement in hcidump/parser/parser.c
The hex output is very useful for me and e.g. just being able to see ascii
strings inside rfcomm payload is something i really often need.
Feel free to include it into the public version if you like to ...
Regards,
Till
void hex_dump(int level, struct frame *frm, int num)
{
unsigned char *buf = frm->ptr;
register int i,n,b2c;
if ((num < 0) || (num > frm->len))
num = frm->len;
n = 0;
while(num>0) {
p_indent(level, frm);
printf("%04x: ", n);
b2c = (num>16)?16:num;
for(i=0;i<b2c;i++) printf("%02x ", buf[i]);
for(i=0;i<(16-b2c);i++) printf(" ");
printf(" ");
for(i=0;i<b2c;i++) printf("%c", isprint(buf[i])?buf[i]:'.');
printf("\n");
buf += b2c;
num -= b2c;
n += b2c;
}
}
--
Dr.-Ing. Till Harbaum Tel.: +49 721 4998963
BeeCon GmbH Fax: +49 721 4998962
Haid-und-Neu Strasse 7, 76131 Karlsruhe Mobil: +49 179 9087904
harbaum@beecon.de http://www.beecon.de
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [Bluez-devel] Little Hexdump-Patch for hcidump
2004-08-26 16:44 ` [Bluez-devel] Little Hexdump-Patch for hcidump Till Harbaum
@ 2004-08-26 17:03 ` Marcel Holtmann
2004-08-26 18:35 ` Till Harbaum
0 siblings, 1 reply; 6+ messages in thread
From: Marcel Holtmann @ 2004-08-26 17:03 UTC (permalink / raw)
To: Till Harbaum; +Cc: BlueZ Mailing List
Hi Till,
> in every new release of hcidump i have been replacing the built-in
> hexdump routine with my own one (giving the address and ascii as well).
>
> Perhaps you want to use this replacement in hcidump/parser/parser.c
>
> The hex output is very useful for me and e.g. just being able to see ascii
> strings inside rfcomm payload is something i really often need.
>
> Feel free to include it into the public version if you like to ...
please send me a patch (diff -u) and adjust a little bit your coding
style to match the other sources of hcidump.
Regards
Marcel
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Bluez-devel] Little Hexdump-Patch for hcidump
2004-08-26 17:03 ` Marcel Holtmann
@ 2004-08-26 18:35 ` Till Harbaum
2004-08-26 19:20 ` Marcel Holtmann
0 siblings, 1 reply; 6+ messages in thread
From: Till Harbaum @ 2004-08-26 18:35 UTC (permalink / raw)
To: BlueZ Mailing List
[-- Attachment #1: Type: text/plain, Size: 268 bytes --]
On Thursday 26 August 2004 19:03, Marcel Holtmann wrote:
> please send me a patch (diff -u) and adjust a little bit your coding
> style to match the other sources of hcidump.
Sorry ... of course .. here you go
Ciao,
Till
--
Dr.Ing. Till Harbaum, till@harbaum.org
[-- Attachment #2: hexdump.patch --]
[-- Type: text/x-diff, Size: 1199 bytes --]
--- bluez-hcidump-1.10/parser/parser.c 2004-08-26 20:22:06.000000000 +0200
+++ bluez-hcidump-1.10-t/parser/parser.c 2004-08-26 20:23:45.000000000 +0200
@@ -99,23 +99,36 @@
void hex_dump(int level, struct frame *frm, int num)
{
- unsigned char *buf = frm->ptr;
- register int i,n;
+ unsigned char *buf = frm->ptr;
+ register int i,n,b2c;
- if ((num < 0) || (num > frm->len))
- num = frm->len;
+ if ((num < 0) || (num > frm->len))
+ num = frm->len;
+
+ n = 0;
+ while(num>0) {
+ p_indent(level, frm);
+ printf("%04x: ", n);
+
+ b2c = (num>16)?16:num;
+
+ for(i=0;i<b2c;i++)
+ printf("%02x ", buf[i]);
+
+ for(i=0;i<(16-b2c);i++)
+ printf(" ");
+
+ printf(" ");
+
+ for(i=0;i<b2c;i++)
+ printf("%c", isprint(buf[i])?buf[i]:'.');
- for (i = 0, n = 1; i < num; i++, n++) {
- if (n == 1)
- p_indent(level, frm);
- printf("%2.2X ", buf[i]);
- if (n == DUMP_WIDTH) {
- printf("\n");
- n = 0;
- }
- }
- if (i && n!=1)
printf("\n");
+
+ buf += b2c;
+ num -= b2c;
+ n += b2c;
+ }
}
void ascii_dump(int level, struct frame *frm, int num)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-08-26 22:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 12:45 [Bluez-devel] Bluez on Axis DevBoard 82 Peter Kjellerstedt
2004-08-26 16:44 ` [Bluez-devel] Little Hexdump-Patch for hcidump Till Harbaum
2004-08-26 17:03 ` Marcel Holtmann
2004-08-26 18:35 ` Till Harbaum
2004-08-26 19:20 ` Marcel Holtmann
[not found] ` <200408262230.37213.till@harbaum.org>
2004-08-26 22:26 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox