devmem2
I use devmem/devmem2 on a daily basis.
Quoted 3 lines · David Anders
Peter,
yes we've had all this argument before and devmem in buildroot has
stayed the same and everyone has continued using devmem2. basically it still boils down to the request that devmem2 not be removed from buildroot.
Quoted 5 lines
Dave
I was thrilled when this applet was added to Busybox (which I've been using since 2002).
The last version of Busybox I use (for omap4) is 1.17.4 and its' devmem.c applet was 93 lines including comments and 10 lines which were commented out. The devmem2.c that I use every day is 79 lines including comments. Having it as a busybox applet is a nice feature.
Unfortunately since the referenced changes, busybox's devmem is more difficult to use, not impossible, just a pita because it is different form devmem2 which I use on non busybox/uClibc/buildroot based systems (the final software configuration). Now, I compile devmem2 outside of Bulildroot, it just takes a few seconds and I have a little script to do it when I change uclibc/libc versions or machine architectures.
Busybox, Buildroot and uClibc are great tools and I think that Buildroot evolving into a mini-distro is not as really a "bad thing(tm)" as some seem to think. Keep up the good work.
That's my opinion, maybe the right thing to do is just remove devmem from busybox, even devmem2 from the Buildroot "distro". I can live with building it myself.
...ken... aka cynfab aka GPSFan aka WA2VFN aka NGMB...
Quoted 7 lines
Quoted 4 lines · Peter Korsgaard
From: Peter Korsgaard <[email protected]>
Subject: Re: devmem2
To: "David Anders" <[email protected]>
Cc: "Peter Korsgaard" <[email protected]>, "Xianghua Xiao"
<[email protected]>, "Bj?rn Forsman" <[email protected]>, buildroot at busybox.net
Quoted 45 lines
Quoted 29 lines
Date: Tuesday, April 26, 2011, 9:19 AM
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"David" == David
Anders <[email protected]>
writes:David> Peter,
David> the primary commit that makes the devmem applet
unusable for
David> most debugging is this one:David> commit
043246560fcd5bb7bfb2caa2db270c3c0e8e06f4David> Author: Denis Vlasenko <[email protected]>
David> Date: Sun Oct 26 17:26:55 2008
+0000David> devmem: make it more
script-friendly; don't do any reads
David> and output nothing if
writing was requested. -100 bytesDavid> for board bring up and general development, for
which devmem is
David> primarily used, having devmem report the value
before the write
David> is important, as well as reporting the value
after the write.Quoted 11 lines
Ok, but adding a little shell wrapper to do that would be simple to do.
Forcing 2 extra read actions isn't that nice, both for the script-friendlyness, but also for registers where reads have side
effects.Signature · 1 line
Bye, Peter Korsgaard_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Peter,
Quoted 8 lines · Ken McGuire
From: Ken McGuire <[email protected]>
Subject: Re: [Buildroot] devmem2
To: buildroot at busybox.net
Date: Tuesday, April 26, 2011, 8:51 PM I use devmem/devmem2 on a daily basis.
Quoted 7 lines
That's my opinion, maybe the right thing to do is just remove devmem
from busybox, even devmem2 from the Buildroot "distro". I can live with
building it myself.
i agree, just remove the devmem applet from busybox and the devmem2 from buildroot.
problem solved.
Dave
why not keep devmem2 as an option but disable it by default, it's tiny anyway and essential for embedded devel.
or maybe one day buildroot can 'opkg install devmem2' at devel/bringup time and remove it when things are done.
Xianghua
Quoted 32 lines · David Anders
Peter,
Quoted 8 lines · Ken McGuire
From: Ken McGuire <[email protected]>
Subject: Re: [Buildroot] devmem2
To: buildroot at busybox.net
Date: Tuesday, April 26, 2011, 8:51 PM I use devmem/devmem2 on a daily basis.Quoted 7 lines
That's my opinion, maybe the right thing to do is just remove devmem
from busybox, even devmem2 from the Buildroot "distro". I can live with
building it myself.i agree, just remove the devmem applet from busybox and the devmem2 from buildroot.
problem solved.
Dave
_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Xianghua" == Xianghua Xiao <[email protected]> writes:
Xianghua> why not keep devmem2 as an option but disable it by default, Xianghua> it's tiny anyway and essential for embedded devel.
That's how it is today - Busybox devmem applet is enabled in the default busybox config, and we have a devmem2 package that is only visible when you enable BR2_DEPRECATED.
Signature · 1 line
Bye, Peter Korsgaard
I think it's the BR2_DEPRECATED flag that caused me sending out the first email, as I somehow think it should be kept and not to be deprecated, it's handy, useful and small.
Xianghua
Quoted 12 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Xianghua" == Xianghua Xiao <[email protected]> writes:
?Xianghua> why not keep devmem2 as an option but disable it by default, ?Xianghua> it's tiny anyway and essential for embedded devel.
That's how it is today - Busybox devmem applet is enabled in the default busybox config, and we have a devmem2 package that is only visible when you enable
BR2_DEPRECATED.--
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"David" == David Anders <[email protected]> writes:
Hi,
David> i agree, just remove the devmem applet from busybox and the David> devmem2 from buildroot.
Why? From all this discussion it seems like people are using it (myself included),
Signature · 1 line
Bye, Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ken" == Ken McGuire <[email protected]> writes:
Ken> Unfortunately since the referenced changes, busybox's devmem is more Ken> difficult to use, not impossible, just a pita because it is different Ken> form devmem2 which I use on non busybox/uClibc/buildroot based systems Ken> (the final software configuration). Now, I compile devmem2 outside of Ken> Bulildroot, it just takes a few seconds and I have a little script to do Ken> it when I change uclibc/libc versions or machine architectures.
But we still have devmem2 in buildroot, just enable BR2_DEPRECATED (Build options -> Show packages that are deprecated or obsolete).
Signature · 1 line
Bye, Peter Korsgaard