Watchdog for Boser (HS-7001)

2008-12-01 Thread Won De Erick
Hello, I was trying the assembly language program that is specified in the following document (p24) to set, reset the built-in watchdog timer for the Boser Box. http://www.boser.com.tw/manual/HS-7001v1.1.pdf I then installed nasm in FreeBSD 6.2, and added the following lines at the beginning.

Re: keeping track of local modifications

2008-12-01 Thread Eygene Ryabinkin
Max, good day. Mon, Dec 01, 2008 at 08:30:16AM +0100, Max Laier wrote: On Monday 01 December 2008 07:07:00 [EMAIL PROTECTED] wrote: * http://wiki.freebsd.org/LocalMercurial This seems less of a resource hog, and (if I am understanding matters correctly) is able to start from the

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Christoph Mallon
Won De Erick schrieb: Hello, I was trying the assembly language program that is specified in the following document (p24) to set, reset the built-in watchdog timer for the Boser Box. http://www.boser.com.tw/manual/HS-7001v1.1.pdf I then installed nasm in FreeBSD 6.2, and added the following

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Rink Springer
On Mon, Dec 01, 2008 at 09:38:51AM +0100, Christoph Mallon wrote: Userland is not allowed to write to ports. That's the bus error you see. Also without a call to the exit syscall at the end, it will segfault. Note that you can write to ports from userland by opening /dev/io - if you have it

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Won De Erick
- Original Message From: Rink Springer [EMAIL PROTECTED] On Mon, Dec 01, 2008 at 09:38:51AM +0100, Christoph Mallon wrote: Userland is not allowed to write to ports. That's the bus error you see. Also without a call to the exit syscall at the end, it will segfault. Note

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Rink Springer
On Mon, Dec 01, 2008 at 01:20:14AM -0800, Won De Erick wrote: Besides, I can see the following at /dev crw--- 1 root wheel 0, 16 Nov 27 01:53 io How should I make this open? do i need to %include this? No, you need to invoke an open syscall just in the same way you did the

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Christoph Mallon
Won De Erick schrieb: - Original Message From: Rink Springer [EMAIL PROTECTED] On Mon, Dec 01, 2008 at 09:38:51AM +0100, Christoph Mallon wrote: Userland is not allowed to write to ports. That's the bus error you see. Also without a call to the exit syscall at the end, it will

Re: dd if=/dev/mem can hang a machine?

2008-12-01 Thread Andriy Gapon
on 30/11/2008 22:14 Julian Stacey said the following: Gary Jennejohn wrote: On Fri, 28 Nov 2008 15:28:35 +0200 Andriy Gapon [EMAIL PROTECTED] wrote: I have a new machine with DG33TL mainboard (ICH9/G33). In a course of some hacking I ran dd if=/dev/mem ... to scan all memory, this caused

Re: How to build kernel module spread on subdirectories?

2008-12-01 Thread Nikola Knežević
On 1 Dec 2008, at 01:22 , Tim Kientzle wrote: .MAKEFILEDEPS: elements.mk .sinclude elements.mk .include bsd.kmod.mk ---8--- When I run make depend, it only includes SRCSs from BSDmakefile, not those from elements.mk. I would try adding a beforedepend requirement: beforedepend: elements.mk

Re: How to build kernel module spread on subdirectories?

2008-12-01 Thread Mel
On Monday 01 December 2008 12:08:13 Nikola Knežević wrote: On 1 Dec 2008, at 01:22 , Tim Kientzle wrote: .MAKEFILEDEPS: elements.mk .sinclude elements.mk .include bsd.kmod.mk ---8--- When I run make depend, it only includes SRCSs from BSDmakefile, not those from elements.mk. I

Re: change to ee.c

2008-12-01 Thread Dag-Erling Smørgrav
Bruce Cran [EMAIL PROTECTED] writes: The version of ee in FreeBSD is fairly old: the latest from http://mahon.cwx.net/ is 1.4.6. Even so, the latest version still generates lots of warnings from gcc because the developer used NULL instead of '\0' (i.e the NULL constant instead of the NUL

Re: change to ee.c

2008-12-01 Thread Dag-Erling Smørgrav
Eitan Adler [EMAIL PROTECTED] writes: Xin LI [EMAIL PROTECTED] writes: Tanks for interested in this but I'm afraid that your patch is incorrect. mkstemp returns a file descriptor rather than a string pointer, therefore, the subsequent open() would have undefined behavior. It looks like

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Dag-Erling Smørgrav
Christoph Mallon [EMAIL PROTECTED] writes: You're probably better of writing this in C. He's probably better off writing a watchdog(4) driver for the Boser (or getting someone to write one for him - not easy to do without hardware to test on, though) DES -- Dag-Erling Smørgrav - [EMAIL

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Gary Jennejohn
On Mon, 01 Dec 2008 09:38:51 +0100 Christoph Mallon [EMAIL PROTECTED] wrote: Won De Erick schrieb: Hello, I was trying the assembly language program that is specified in the following document (p24) to set, reset the built-in watchdog timer for the Boser Box.

Re: change to ee.c

2008-12-01 Thread Alexander Leidinger
Quoting Bruce Cran [EMAIL PROTECTED] (from Sun, 30 Nov 2008 10:31:56 -0800): On Sun, 30 Nov 2008 09:12:26 -0500 Eitan Adler [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bruce Cran wrote: snip The version of ee in FreeBSD is fairly old: the latest from

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Won De Erick
- Original Message From: Christoph Mallon [EMAIL PROTECTED] Won De Erick schrieb: - Original Message From: Rink Springer [EMAIL PROTECTED] On Mon, Dec 01, 2008 at 09:38:51AM +0100, Christoph Mallon wrote: Userland is not allowed to write to ports. That's the bus

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Won De Erick
From: Won De Erick [EMAIL PROTECTED] From: Christoph Mallon [EMAIL PROTECTED] Won De Erick schrieb: - Original Message From: Rink Springer [EMAIL PROTECTED] On Mon, Dec 01, 2008 at 09:38:51AM +0100, Christoph Mallon wrote: Userland is not allowed to write to ports. That's the

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Won De Erick
- Original Message From: Dag-Erling Smørgrav [EMAIL PROTECTED] Christoph Mallon [EMAIL PROTECTED] writes: You're probably better of writing this in C. maybe i get this as an option. He's probably better off writing a watchdog(4) driver for the Boser (or getting someone to write

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Dag-Erling Smørgrav
Won De Erick [EMAIL PROTECTED] writes: this is a great info. i am used to settings like the following when using ipmi-compliant platform. #bmc-watchdog -s -a 1 -i 100(#set timeout action to hard reset after a timeout of 100 seconds) then daemonize to constantly reset the timer, and

TPM Device Driver - FreeBSD

2008-12-01 Thread Ilias Marinos
Hello list, We are two undergraduate students studying computer engineering and informatics at Patra's University, Greece. We are currently working on our diploma thesis which is about developing a driver for the TPM (Trusted Platform Module) for FreeBSD.We think that TPM can enhance security

Re: TPM Device Driver - FreeBSD

2008-12-01 Thread Tom Evans
On Mon, 2008-12-01 at 15:33 +0200, Ilias Marinos wrote: Hello list, We are two undergraduate students studying computer engineering and informatics at Patra's University, Greece. We are currently working on our diploma thesis which is about developing a driver for the TPM (Trusted

Re: remapping kernel buffer in VMS of user process

2008-12-01 Thread Alexander Kabaev
On Mon, 1 Dec 2008 02:38:51 +0100 Alexej Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to remap some buffers allocated in kernel space to memory space of certain process. The simplest way is to expose this buffer through device pager. Implement the driver callback and let userland

Re: Watchdog for Boser (HS-7001)

2008-12-01 Thread Dag-Erling Smørgrav
Dag-Erling Smørgrav [EMAIL PROTECTED] writes: You need to load the appropriate watchdog driver first - and as far as I know, we don't have one for the Boser HS-7001. I can't find the 7001 on Boser's web site, but their other SBCs seem to be ICH-based; try 'kldload ichwd'. DES -- Dag-Erling

Re: remapping kernel buffer in VMS of user process

2008-12-01 Thread Alexej Sokolov
On Mon, Dec 01, 2008 at 10:12:09AM -0500, Alexander Kabaev wrote: On Mon, 1 Dec 2008 02:38:51 +0100 Alexej Sokolov [EMAIL PROTECTED] wrote: Hello, I would like to remap some buffers allocated in kernel space to memory space of certain process. The simplest way is to expose this

Re: Hardware support for AMD Geode CS5536 audio?

2008-12-01 Thread ancelgray
Lionel, This is Andrew Gray. Thanx for testing. Does the command cat sound.raw /dev/dsp output the sound of my voice out of one of the speakers? Does it also give the bus master error message? Thanx Andrew Gray Lionel Flandrin wrote: On Wed, Nov 26, 2008 at 07:30:41PM

Re: keeping track of local modifications

2008-12-01 Thread Giorgos Keramidas
On Mon, 1 Dec 2008 11:23:40 +0300, Eygene Ryabinkin [EMAIL PROTECTED] wrote: May be I am missing something, but what's wrong with the patches from other VCS, providing that with Subversion you can exchange only by the plain diffs? Yes, Git/Mercurial patches should be applied with 'patch -p1',

Re: keeping track of local modifications

2008-12-01 Thread Eygene Ryabinkin
Giorgos, good day. Mon, Dec 01, 2008 at 07:21:03PM +0200, Giorgos Keramidas wrote: On Mon, 1 Dec 2008 11:23:40 +0300, Eygene Ryabinkin [EMAIL PROTECTED] wrote: May be I am missing something, but what's wrong with the patches from other VCS, providing that with Subversion you can exchange

Re: keeping track of local modifications

2008-12-01 Thread Giorgos Keramidas
On Mon, 1 Dec 2008 22:56:02 +0300, Eygene Ryabinkin [EMAIL PROTECTED] wrote: Giorgos, good day. Hi Eygene, thanks. The same to you too :) Git and Mercurial cannot import Subversion $FreeBSD$ lines so far, and you may end up submitting patches that include unexpanded forms of the $FreeBSD:

getting vm_object from allocated memory in kernel

2008-12-01 Thread Alexej Sokolov
Hello, I try to allocate a memory in the system call and then I would like to get vm_object of allocated space to remap it later: /* Syscall func */ static int syscf(struct thread *td, void *sa) { ... vm_offset_t addr; ... MALLOC(addr, vm_offset_t, PAGE_SIZE, M_DEVBUF, M_WAITOK |

Re: change to ee.c

2008-12-01 Thread Eitan Adler
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexander Leidinger wrote: It _may_ be more easy to find out which version is in our source tree, and make a diff between the original vendor version and what we have. Depending on the amount of changes there, this is faster than to real all the

Re: How to build kernel module spread on subdirectories?

2008-12-01 Thread perryh
As you discovered, includes are done before targets. You would need seperate invocations of make, to generate the file and get it included. heresy Provided the module in question is contemplated for delivery as a port, rather than as part of the base -- so that having a build dependency on a

Re: keeping track of local modifications

2008-12-01 Thread perryh
Git and Mercurial cannot import Subversion $FreeBSD$ lines so far, and you may end up submitting patches that include unexpanded forms of the $FreeBSD: $ text. These will fail to apply if they same patch touches nearby lines. Ahm, yes. sed -e's|$FreeBSD: [^$]* \$|$FreeBSD$|g'

Re: Hardware support for AMD Geode CS5536 audio?

2008-12-01 Thread ancelgray
Lionel replies: Hi Andrew, thank you for your quick reply. cat count.raw /dev/dsp does indeed work without any message in the syslog. If I try to cat /dev/urandom /dev/dsp I get a very thin white-ish noise and still no message. (I set all levels to 100 with mixer(8)) This is rather

Re: keeping track of local modifications

2008-12-01 Thread Eygene Ryabinkin
Perry, good day. Mon, Dec 01, 2008 at 09:08:25PM -0800, [EMAIL PROTECTED] wrote: Git and Mercurial cannot import Subversion $FreeBSD$ lines so far, and you may end up submitting patches that include unexpanded forms of the $FreeBSD: $ text. These will fail to apply if they same