Made some basic utilites for cross-plattform usage, as well as for unified and simplified usage.
Reused and wraped RudiC's echo_, thanks again
But currently I'm still busy in re-thinking/doing the init procedure....
Well, unifying (is that a word??) the procedure of using functions to do different checks, keep/put all variables to RAM while put some essential ones (usage speed increase / customize options) in the 'rc' file.
The specific part of preparing configuration files & folders that are optional - because it must run on a Read-Only system as well, is quite more challenging than making it just in a "must-be-installed" way.
Also, with my... crazy... idea of implementing an optional ramdisk support (as root, for configuration and tempfiles only) didnt make the init procedure any easier.
Further, I need to 'bypass' the (so far hardcoded) use of /root because not all systems have it, thus I have to place the configfile (swarmrc) in another place, like using '/etc' if root has no $HOME.
this is the output i am getting here..
cp: cannot create /wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/eoigwsA_Health_Status_Report.html: Permission denied
/wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/
/wls_domains/eoigw/eoigwsA/deliv/cron/MailingScript/GenerateReport.sh:... (6 Replies)
Hi Guys, I am trying write a wrapper script but I don't have any idea. I have 4 different korn shell scripts and all of them needs some parameters from command line (positional parameter). My script cant be interactive because its supposed to be automated. I am confused how can I write a wrapper... (6 Replies)
Hello!
I would like to create a blog website on a web domain of mine. The blog will be used for publishing economics-lated articles.
I tried to use a few open source packages for blog creation (WorldPress, b2evolution, Movable type) which I wanted to test on a local computer before arranging... (5 Replies)
Hi all,
Can I create multiple threads using single thread_id
like
pthread_t thread_id;
pthread_create(&thread_id, NULL, &print_xs, NULL);
pthread_create(&thread_id, NULL, &print_ys, NULL);
pthread_create(&thread_id, NULL, &print_zs, NULL);
pthread_join(thread_id, NULL);
what... (2 Replies)
Hi,
I am trying to capture runtime stats of a shell script (c shell). Are there system variables to call? Or should I create a date variable at the start of the script and at the end of the script? I am trying to capture the time if the script stops or ends with error.
Please help.
... (4 Replies)
Hello,
My requirement is based on Oracle where we run a perl script and it asked some questions.I want to write a wrapper which will answer all these questions.
How is it possible.
Thanks (16 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Make a bash script that calculates average runtime for the first two scripts you made. The average should be... (17 Replies)
Hi,
I have shell script that I am running under Ubuntu as root.
Is it possible to hide the command window and show the user some sort of progress /random progress bar / or other form of GUI interaction?
On MAC, I have been using Platypus but on Ubuntu I am not sure what to do. (4 Replies)
Discussion started by: naveedanwar4u
4 Replies
LEARN ABOUT DEBIAN
dfu-util
DFU-UTIL(1) General Commands Manual DFU-UTIL(1)NAME
dfu-util - Device firmware update (DFU) USB programmer
SYNOPSIS
dfu-util [-ldpciatUDRhvV]
DESCRIPTION
dfu-util is a program that implements the host (computer) side of the USB DFU (Universal Serial Bus Device Firmware Upgrade) protocol.
In the OpenMoko project (for example), this program is used to communicate with the specially enhanced u-boot boot loader, which implements
the DFU device side.
OPTIONS -l, --list
List the currently attached DFU capable USB devices.
-d, --device VENDOR:PRODUCT
Specify vendor/product ID of the DFU device. Both VENDOR and PRODUCT are hexadecimal numbers (no prefix needed). Example:
$ dfu-util --device 1457:51ab
If you only have one standards-compliant DFU device attached to your PC, this is optional. However, as soon as you have multiple DFU
devices, dfu-util will detect this and abort, asking you to specify which device it shall use.
-p, --path BUS-PORT. ... .PORT
Specify the path to the DFU device.
-c, --cfg CONFIG-NR
Specify the configuration of the DFU device.
-i, --intf INTF-NR
Specify the DFU interface number.
-a, --alt ALT
Specify the altsetting of the DFU interface by name or by number.
-t, --transfer-size
Specify the number of bytes per USB transfer. If you don't supply this option, the maximum possible size for your combination of
host OS and USB device is chosen (for optimal performance).
-U, --upload FILE
Read firmware from device into FILE.
Note: Upload support is currently broken.
-D, --download FILE
Write firmware from FILE into device.
-R, --reset
Issue USB reset signalling once we are finished.
-s, --dfuse-address
Specify target address for raw binary download/upload on DfuSe devices. Do not use this for downloading DfuSe files.
-h, --help
Show a help text and exit.
-v, --verbose
Print more information about dfu-util's operation. A second -v will turn on verbose logging of USB requests.
-V, --version
Show version information and exit.
EXAMPLES
Here are some examples for the usage of dfu-util in the OpenMoko project (working with the Neo1973 hardware):
Flashing the rootfs:
$ dfu-util -a rootfs -R -D /path/to/openmoko-devel-image.jffs2
Flashing the kernel:
$ dfu-util -a kernel -R -D /path/to/uImage
Flashing the bootloader:
$ dfu-util -a u-boot -R -D /path/to/u-boot.bin
Copying a kernel into RAM:
$ dfu-util -a 0 -R -D /path/to/uImage
Once this has finished, the kernel will be available at the default load address of 0x32000000 in Neo1973 RAM.
Note: You cannot transfer more than 2MB of data into RAM using this method.
BUGS
Please see http://wiki.openmoko.org/wiki/Dfu-util for some limitations and bugs in the current dfu-util code.
Please report any further bugs at on the openmoko mailing list at openmoko@lists.openmoko.org.
LICENCE
dfu-util is covered by the GNU General Public License (GPL), version 2 or later.
AUTHORS
Weston Schmidt <weston_schmidt@yahoo.com>
Harald Welte <hwelte@hmw-consulting.de>
This manual page was written by Uwe Hermann <uwe@hermann-uwe.de>. It is licensed under the terms of the GNU GPL (version 2 or later).
February 29, 2008 DFU-UTIL(1)