2011/3/17 davidMbrooke <dmb.leaf-u...@ntlworld.com>: > On Wed, 2011-03-16 at 17:53 -0500, Charles Steinkuehler wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> On 3/16/2011 5:07 PM, Juergen Northe wrote: >> > Running >> > bix# /bin/beep -f 600 -n -f 900 -n -f1200 -n -f1800 >> > results in 4x "ioctl: Invalid argument". >> >> Do you have the strace utility available, and if so could you run >> >> # strace /bin/beep -f 600 -n -f 900 -n -f1200 -n -f1800 > > The strace utility is included in Package devtools.lrp, which is a > relatively new addition so might not be widely known. > > The ldd utility is in there too, along with objdump (though that is is > not working at the moment). > >> >> > I will check if ithe board and buzzer works with "SystemRescueCd" , >> > perhaps there is a driver missing. >> >> This is definitely a good way to see if it's a LEAF specific issue >> (which I suspect), or a more generic issue with the alix board(s). >> > Unfortunately SystemResuceCd is not even booting. with an old kernel. I'll check other distros like monowall.
bix# strace /bin/beep -f 600 -n execve("/bin/beep", ["/bin/beep", "-f", "600", "-n"], [/* 11 vars */]) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7779f000 open("/usr/local/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libgcc_s.so.1", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libgcc_s.so.1", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=86568, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7779e000 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\350\34\0\0004\0\0\0"..., 4096) = 4096 mmap2(NULL, 90112, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77788000 mmap2(0x77788000, 84928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77788000 mmap2(0x7779d000, 3440, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x14) = 0x7779d000 close(3) = 0 munmap(0x7779e000, 4096) = 0 open("/usr/local/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.0", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=260668, ...}) = 0 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7779e000 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\354\241\0\0004\0\0\0"..., 4096) = 4096 mmap2(NULL, 282624, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x77743000 mmap2(0x77743000, 255972, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x77743000 mmap2(0x77782000, 5156, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3e) = 0x77782000 mmap2(0x77784000, 15780, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x77784000 close(3) = 0 munmap(0x7779e000, 4096) = 0 open("/usr/local/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/libc.so.0", O_RDONLY) = -1 ENOENT (No such file or directory) open("/lib/libc.so.0", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=260668, ...}) = 0 close(3) = 0 stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=17000, ...}) = 0 mprotect(0x77782000, 4096, PROT_READ) = 0 mprotect(0x777a4000, 4096, PROT_READ) = 0 ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0 ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B19200 opost isig icanon echo ...}) = 0 brk(0) = 0x804b000 brk(0x804c000) = 0x804c000 rt_sigaction(SIGINT, {0x8048a23, [INT], SA_RESTORER|SA_RESTART, 0x7774d233}, {SIG_DFL, [], 0}, 8) = 0 open("/dev/console", O_WRONLY) = 3 ioctl(3, KIOCSOUND, 0x7c4) = -1 EINVAL (Invalid argument) write(2, "ioctl", 5ioctl) = 5 write(2, ": ", 2: ) = 2 write(2, "Invalid argument", 16Invalid argument) = 16 write(2, "\n", 1 ) = 1 nanosleep({0, 200000000}, NULL) = 0 ioctl(3, KIOCSOUND, 0) = -1 EINVAL (Invalid argument) close(3) = 0 open("/dev/console", O_WRONLY) = 3 ioctl(3, KIOCSOUND, 0xa97) = -1 EINVAL (Invalid argument) write(2, "ioctl", 5ioctl) = 5 write(2, ": ", 2: ) = 2 write(2, "Invalid argument", 16Invalid argument) = 16 write(2, "\n", 1 ) = 1 nanosleep({0, 200000000}, NULL) = 0 ioctl(3, KIOCSOUND, 0) = -1 EINVAL (Invalid argument) close(3) = 0 write(1, "\7\7", 2) = 2 _exit(0) = ? ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d ------------------------------------------------------------------------ leaf-user mailing list: leaf-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-user Support Request -- http://leaf-project.org/