Hello,
If udp-receiver is writing to a pipe and the pipe fails, udp-receiver
will incorrectly exit with a returncode of zero. This is easily tested
with a trivial pipe program that copies stdin to stdout, but exits with
a nonzero status upon encountering eof.
Adding the following to startReceiver() in udpr-negotiate.c is
sufficient to fix this behavior:
<---- cut here
int ret;
...
if(pipePid) {
ret=udpc_waitForProcess(pipePid, "Pipe");
}
...
return ret;
<---- cut here
Regards,
George Coulouris
National Center for Biotechnology Information (contractor)
Hello,
I have a PXE server that includes Clonezilla, FOG, Parted Magic and, of course, UDPCast. I noticed there was a newer version than the one I was using so I decided to download it. Using Cast-o-matic (with the Check All option) I downloaded the CD Rom iso file and the initrd for PXE booting. I burned the iso to a CD and tested it. It worked fine. However, when I tried the initrd file on my PXE server I got the following message after it loaded:
/lib/modules/2.6.32.7udpcast/modules.pcimap not found (No such file or directory)
I tried extracting the iso file and using the initrd file in there and got the same error.
Any thoughts on how I can make it work?
I hope you don't mind too much that I didn't subscribe. Managing lots of subscriptions to OSS forums can get difficult to manage after a while.
Best regards,
Mark Binner
Hello all,
Udpcast 20110710 is released.
The three most important new features are:
1. Ability to boot off USB media (and save its config there, just like
on floppy). See http://www.udpcast.linux.lu/usb.html for details
2. Ability for the sender to start a boot server (DHCP + TFTP) off which
the receivers can now boot (only available for the USB or CD images).
3. The busybox is now compiled against uclibc, which leads to much
smaller sizes. Thus, the pre-built udpflop.img is now back, with the
most frequently used net and disk modules included.
Other features include:
# Dialog: Interactive choice of network interface, if there is more than one
# new --no-progress flag to suppress progress display
# print most debug messages to log, if available
# properly handle Control-C signal
# --receive-timeout parameter for receiver timeout during transmission
# "real" daemon mode
Regards,
Alain
Hello,
While using udpcast, I found out that it may be very verbose on stderr, even if
a logfile is specified.
This turns out to be a problem for our embedded application where the stderr is
a (slow) serial port.
So here is a patch which replace every occurrence of fprint(sdterr,...) by the
flprintf() function defined in log.c.
I thought it might be of some use for people.
(This patch also happen to cleanup the blank spaces at end of lines)
Julien
--
People in the embedded space don't do prototypes. They hack something until it
works, then it's done.
---
Always code as if the person who will maintain your code is a maniac serial
killer that knows where you live
I want to use Udpcast from iso image in this scenario:
- first pc boots from udpcast iso image
-second pc boots from ethernet using pxe that sends him udpreceiver How can
I do it?
thanks
Hello,
I've made the attached patch to prevent the situation where the udp-receiver
hang out indefinitly waiting for data when the server has been killed after
having started to send data.
In this case, the udp-received program would hang indefinitly.
Since in my program, udp-receiver is called through system(...); the result is
a hang.
With this patch I use a SIGALARM signal to reset a flag to 0, and act as a
watchdog. The watchdog is started just before the sending data phase of the
protocol, and is feed each time a packet is received from the server.
If 2 times in a row the watchdog is not feed, the program exit in error.
The current value is set as a #define as 60s, which is in effect 2mn before
udp-receiver is actually killed.
However I am aware that this implementation is somehow crude, and I would be
interested by any other way to do that.
Additionally, if someone is interested by this patch, I could make it so that
the watchdog period is configurable on the command-line.
Thanks for your time,
Julien
--
People in the embedded space don't do prototypes. They hack something until it
works, then it's done.
---
Always code as if the person who will maintain your code is a maniac serial
killer that knows where you live
I tried booting a recent Apple iMac with the latest kernel and an
initrd from cast-o-matic, but the kayboard fails to work.
Looking at an installed Debian system, the module hid_apple is loaded.
Is this driver missing from the udpcast images, and is it possible to
add it?
--
Frederik Himpe <fhimpe(a)vub.ac.be>
Vrije Universiteit Brussel