package/io: New package
PATCH v2 1/1 package/io: New package
From: Andy Yan <[email protected]>
A utility to access memory/register via physicas address:
Raw memory i/o utility
io -v -1|2|4 -r|w [-l <len>] [-f <file>] <addr> [<value>]
-v Verbose, asks for confirmation
-1|2|4 Sets memory access size in bytes (default byte)
-l <len> Length in bytes of area to access (defaults to one access, or whole file length)
-r|w Read from or Write to memory (default read)
-f <file> File to write on memory read, or
to read on memory write
<addr> The memory address to access
<val> The value to write (implies -w)
Examples:
io 0x1000 Reads one byte from 0x1000
io 0x1000 0x12 Writes 0x12 to location 0x1000
io -2 -l 8 0x1000 Reads 8 words from 0x1000
io -r -f dmp -l 100 200 Reads 100 bytes from addr 200 to file
io -w -f img 0x10000 Writes the whole of file to memoryNote access size (-1|2|4) does not apply to file based accesses.
Series-version: 2
Series-changes: 2
- Add myself to the DEVELOPERS file
- use git download method
- add hash file
--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/io/Config.in | 7 +++++++ package/io/io.hash | 2 ++ package/io/io.mk | 21 +++++++++++++++++++++ 5 files changed, 34 insertions(+) create mode 100644 package/io/Config.in create mode 100644 package/io/io.hash create mode 100644 package/io/io.mk
DEVELOPERS +3 -0
@@ -240,6 +240,9 @@ F: package/sysdig/ N: Andy Shevchenko <[email protected]> F: package/fb-test-app/ +N: Andy Yan <[email protected]> +F: package/io/ + N: Anisse Astier <[email protected]> F: package/go/ F: package/nghttp2/
package/Config.in +1 -0
@@ -2361,6 +2361,7 @@ menu "Miscellaneous" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in" + source "package/io/Config.in" source "package/linux-syscall-support/Config.in" source "package/mobile-broadband-provider-info/Config.in" source "package/netdata/Config.in"
package/io/Config.in new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_IO + bool "Raw memory i/o utility" + help + A utility for read/write memory/register, + you shoud make sure CONFIG_DEVMEM is enable in your linux kernel. + + https://github.com/andyshrk/io.git
package/io/io.hash new file +2 -0
@@ -0,0 +1,2 @@ +sha256 d3b4d93988adddbc98af8d7014a045dca5b25aaa7cdbc08c29aa70ebdc86e21c io-a2600e94aec6503fd0f0109ca26a703c4e7e166e-git4.tar.gz +sha256 5352e426b563eda9252d76be92337b49f7b5cfdd1302a1e8d99389840c0e46be LICENSE
package/io/io.mk new file +21 -0
@@ -0,0 +1,21 @@ +################################################################################ +# +# io +# +################################################################################ + +IO_VERSION = a2600e94aec6503fd0f0109ca26a703c4e7e166e +IO_SITE = https://github.com/andyshrk/io.git +IO_SITE_METHOD = git +IO_LICENSE = GPL-2.0+ +IO_LICENSE_FILES = COPYING.GPL + +define IO_BUILD_CMDS + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(@D)/io.c -o $(@D)/io +endef + +define IO_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/io $(TARGET_DIR)/usr/bin/io +endef + +$(eval $(generic-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Andy,
I was about to apply this, but there's a problem with the license.
In your repository, it's declared as GPL-3.0 (at least, there's a GPL license
file). However, this code was originally written by Richard Hirst. I've searched the web and I couldn't find any place where that person declared a license. Without license, the code is in fact closed source...
The package also exists in OpenWrt as a source copy. OpenWrt itself is GPL-2.0
(only, so you can't relicense to GPL-3.0). But they're not very conscientious with licenses, so I wouldn't trust that.
So, unless you have some source that indicates that this code can indeed be
distributed under the GPL, I'm afraid we can't accept it...
Also, I notice that there are some other versions of this code with additional
features, e.g. 64-bit access.
https://gist.github.com/teknoraver/36ca82aef012c03a2bca
I'm still commenting below, in case the license issue gets resolved.
Quoted 3 lines · Andy Yan
From: Andy Yan <[email protected]>
A utility to access memory/register via physicas address:
physical
Quoted 22 lines
Raw memory i/o utility
io -v -1|2|4 -r|w [-l <len>] [-f <file>] <addr> [<value>]
-v Verbose, asks for confirmation -1|2|4 Sets memory access size in bytes (default byte) -l <len> Length in bytes of area to access (defaults toone access, or whole file length)
-r|w Read from or Write to memory (default read)
-f <file> File to write on memory read, or
to read on memory write
<addr> The memory address to access
<val> The value to write (implies -w)Examples:
io 0x1000 Reads one byte from 0x1000 io 0x1000 0x12 Writes 0x12 to location 0x1000 io -2 -l 8 0x1000 Reads 8 words from 0x1000 io -r -f dmp -l 100 200 Reads 100 bytes from addr 200 to file io -w -f img 0x10000 Writes the whole of file to memory
Quoted 4 lines
Note access size (-1|2|4) does not apply to file based accesses.
Signed-off-by Andy Yan <[email protected]>
You should put
---
here (three dashes on a separate line), to make sure that the text below doesn't get included in the final commit message.
Quoted 48 lines
Series-version: 2
Series-changes: 2
- Add myself to the DEVELOPERS file
- use git download method
- add hash file--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/io/Config.in | 7 +++++++ package/io/io.hash | 2 ++ package/io/io.mk | 21 +++++++++++++++++++++ 5 files changed, 34 insertions(+)create mode 100644 package/io/Config.in
create mode 100644 package/io/io.hash
create mode 100644package/io/io.mkDEVELOPERS +3
-0@@ -240,6 +240,9 @@ F: package/sysdig/ N: Andy Shevchenko <[email protected]> F: package/fb-test-app/ +N: Andy Yan <[email protected]> +F: package/io/ + N: Anisse Astier <[email protected]> F: package/go/ F: package/nghttp2/package/Config.in +1
-0@@ -2361,6 +2361,7 @@ menu "Miscellaneous" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in" + source "package/io/Config.in" source "package/linux-syscall-support/Config.in" source "package/mobile-broadband-provider-info/Config.in" source "package/netdata/Config.in"package/io/Config.in new file +0
-0
package/io/Config.in line 5
Quoted 5 lines
package/io/Config.in new file +5
-0@@ -0,0 +1,7 @@ +config BR2_PACKAGE_IO + bool "Raw memory i/o utility" + help + A utility for read/write memory/register, + you shoud make sure CONFIG_DEVMEM is enable in your linux kernel.
This line is too long. Please use utils/check-package to verify your changes.
I had also rewritten the text as follows:
A utility for reading/writing memory/registers.
Make sure CONFIG_DEVMEM is enable in your linux kernel.
package/io/io.hash line 1
Quoted 9 lines
package/io/Config.in new file +2
-0+ + https://github.com/andyshrk/io.gitpackage/io/io.hash new file +1
-0@@ -0,0 +1,2 @@ +sha256 d3b4d93988adddbc98af8d7014a045dca5b25aaa7cdbc08c29aa70ebdc86e21c io-a2600e94aec6503fd0f0109ca26a703c4e7e166e-git4.tar.gz
Should be two spaces after sha256, as reported by check-package.
Quoted 8 lines
package/io/io.hash new file +1
-0+sha256 5352e426b563eda9252d76be92337b49f7b5cfdd1302a1e8d99389840c0e46be LICENSEpackage/io/io.mk new file +1
-0@@ -0,0 +1,21 @@ +################################################################################
package/io/io.mk line 11
Quoted 10 lines
package/io/io.mk new file +10
-0+# +# io +# +################################################################################ + +IO_VERSION = a2600e94aec6503fd0f0109ca26a703c4e7e166e +IO_SITE = https://github.com/andyshrk/io.git +IO_SITE_METHOD = git +IO_LICENSE = GPL-2.0+ +IO_LICENSE_FILES = COPYING.GPL
The file is called LICENSE.
Regards,
Arnout
package/io/io.mk line 21
Quoted 10 lines
package/io/io.mk new file +10
-0+ +define IO_BUILD_CMDS + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(@D)/io.c -o $(@D)/io +endef + +define IO_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/io $(TARGET_DIR)/usr/bin/io +endef + +$(eval $(generic-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hi Arnout,
Quoted 9 lines · Arnout Vandecappelle via buildroot
Hi Andy,
I was about to apply this, but there's a problem with the license.
In your repository, it's declared as GPL-3.0 (at least, there's a GPL license
file). However, this code was originally written by Richard Hirst. I've searched the web and I couldn't find any place where that person declared a license. Without license, the code is in fact closed source...
Quoted 6 lines
The package also exists in OpenWrt as a source copy. OpenWrt itself is GPL-2.0
(only, so you can't relicense to GPL-3.0). But they're not very conscientious with licenses, so I wouldn't trust that.So, unless you have some source that indicates that this code can indeed be
distributed under the GPL, I'm afraid we can't accept it...
Sorry,I should have provided a more detailed description of the relevant background earlier. I also searched the web before submitting the patch , only results similar to what you see can be found. In my memory, a few years ago, I was still able to find the original website of this code, seems like written by Richard Hirst for Nokia,but also no license。
I'm not sure if it's because the website has been shut down or for some other reason。
Does this mean we really have no chance of integrating this code? Even if we use GPL2 like OpenWRT?
From the search, we can see threre are some projects/people willing to use it, as it really usefull for embedbed driver development.
Quoted 151 lines
Also, I notice that there are some other versions of this code with additional
features, e.g. 64-bit access.https://gist.github.com/teknoraver/36ca82aef012c03a2bca
I'm still commenting below, in case the license issue gets resolved.
Quoted 3 lines · Andy Yan
From: Andy Yan <[email protected]>
A utility to access memory/register via physicas address:
physical
Quoted 22 lines
Raw memory i/o utility
io -v -1|2|4 -r|w [-l <len>] [-f <file>] <addr> [<value>]
-v Verbose, asks for confirmation -1|2|4 Sets memory access size in bytes (default byte) -l <len> Length in bytes of area to access (defaults toone access, or whole file length)
-r|w Read from or Write to memory (default read)
-f <file> File to write on memory read, or
to read on memory write
<addr> The memory address to access
<val> The value to write (implies -w)Examples:
io 0x1000 Reads one byte from 0x1000 io 0x1000 0x12 Writes 0x12 to location 0x1000 io -2 -l 8 0x1000 Reads 8 words from 0x1000 io -r -f dmp -l 100 200 Reads 100 bytes from addr 200 to file io -w -f img 0x10000 Writes the whole of file to memoryQuoted 4 lines
Note access size (-1|2|4) does not apply to file based accesses.
Signed-off-by Andy Yan <[email protected]>You should put
---
here (three dashes on a separate line), to make sure that the text below doesn't get included in the final commit message.
Quoted 48 lines
Series-version: 2
Series-changes: 2
- Add myself to the DEVELOPERS file
- use git download method
- add hash file--- DEVELOPERS | 3 +++ package/Config.in | 1 + package/io/Config.in | 7 +++++++ package/io/io.hash | 2 ++ package/io/io.mk | 21 +++++++++++++++++++++ 5 files changed, 34 insertions(+)create mode 100644 package/io/Config.in
create mode 100644 package/io/io.hash
create mode 100644package/io/io.mkDEVELOPERS +3
-0@@ -240,6 +240,9 @@ F: package/sysdig/ N: Andy Shevchenko <[email protected]> F: package/fb-test-app/ +N: Andy Yan <[email protected]> +F: package/io/ + N: Anisse Astier <[email protected]> F: package/go/ F: package/nghttp2/package/Config.in +1
-0@@ -2361,6 +2361,7 @@ menu "Miscellaneous" source "package/gr-osmosdr/Config.in" source "package/gsettings-desktop-schemas/Config.in" source "package/haveged/Config.in" + source "package/io/Config.in" source "package/linux-syscall-support/Config.in" source "package/mobile-broadband-provider-info/Config.in" source "package/netdata/Config.in"package/io/Config.in new file +0
-0package/io/Config.in line 5
Quoted 5 lines
package/io/Config.in new file +5
-0@@ -0,0 +1,7 @@ +config BR2_PACKAGE_IO + bool "Raw memory i/o utility" + help + A utility for read/write memory/register, + you shoud make sure CONFIG_DEVMEM is enable in your linux kernel.This line is too long. Please use utils/check-package to verify your changes.
I had also rewritten the text as follows:
A utility for reading/writing memory/registers.
Make sure
CONFIG_DEVMEMis enable in your linux kernel.package/io/io.hash line 1
Quoted 9 lines
package/io/Config.in new file +2
-0+ + https://github.com/andyshrk/io.gitpackage/io/io.hash new file +1
-0@@ -0,0 +1,2 @@ +sha256 d3b4d93988adddbc98af8d7014a045dca5b25aaa7cdbc08c29aa70ebdc86e21c io-a2600e94aec6503fd0f0109ca26a703c4e7e166e-git4.tar.gzShould be two spaces after sha256, as reported by check-package.
Quoted 8 lines
package/io/io.hash new file +1
-0+sha256 5352e426b563eda9252d76be92337b49f7b5cfdd1302a1e8d99389840c0e46be LICENSEpackage/io/io.mk new file +1
-0@@ -0,0 +1,21 @@ +################################################################################package/io/io.mk line 11
Quoted 10 lines
package/io/io.mk new file +10
-0+# +# io +# +################################################################################ + +IO_VERSION = a2600e94aec6503fd0f0109ca26a703c4e7e166e +IO_SITE = https://github.com/andyshrk/io.git +IO_SITE_METHOD = git +IO_LICENSE = GPL-2.0+ +IO_LICENSE_FILES = COPYING.GPLThe file is called LICENSE.
Regards,
Arnout
Quoted 15 lines
package/io/io.mk line 21
Quoted 10 lines
package/io/io.mk new file +10
-0+ +define IO_BUILD_CMDS + $(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_LDFLAGS) $(@D)/io.c -o $(@D)/io +endef + +define IO_INSTALL_TARGET_CMDS + $(INSTALL) -m 0755 -D $(@D)/io $(TARGET_DIR)/usr/bin/io +endef + +$(eval $(generic-package))_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot