Date: Thu, 23 Aug 2007 11:55:38 +0900 From: "Hidetoshi Shimokawa" <simokawa@FreeBSD.ORG> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: freebsd-current@freebsd.org, Harald Schmalzbauer <h.schmalzbauer@omnisec.de> Subject: Re: firewire problem (root node is not cycle master capable) Message-ID: <626eb4530708221955p3dd65df6h31e5b7cc79e8ced6@mail.gmail.com> In-Reply-To: <200708182340.00680.doconnor@gsoft.com.au> References: <200708100010.46487.h.schmalzbauer@omnisec.de> <200708100052.39861.h.schmalzbauer@omnisec.de> <626eb4530708091703j18bd2cd7w99f9b96a3f3c402c@mail.gmail.com> <200708182340.00680.doconnor@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
------=_Part_2102_8443763.1187837738266 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sure, please find attached a patch. On 8/18/07, Daniel O'Connor <doconnor@gsoft.com.au> wrote: > On Fri, 10 Aug 2007, Hidetoshi Shimokawa wrote: > > On 8/10/07, Harald Schmalzbauer <h.schmalzbauer@omnisec.de> wrote: > > > Am Freitag, 10. August 2007 00:23:41 schrieb Hidetoshi Shimokawa: > > > > Basically, you don't need the cycle master for sbp devices. > > > > Try the following. > > > > > > > > 1. fwcontrol -r > > > > 2. fwcontrol -f 0 -r > > > > > > Hm, I think that's a typo, the man page doesn't show "-f" nor does > > > my fwcontrol understand it. > > > > Oops, it was an uncommited option in my repository which sends > > force_root packets. > > Any chance you can post a diff? I see this on a remote machine and would > like to try it. > > -- > Daniel O'Connor software and network engineer > for Genesis Software - http://www.gsoft.com.au > "The nice thing about standards is that there > are so many of them to choose from." > -- Andrew Tanenbaum > GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- /\ Hidetoshi Shimokawa \/ simokawa@FreeBSD.ORG ------=_Part_2102_8443763.1187837738266 Content-Type: application/octet-stream; name=fwcontrol.patch Content-Transfer-Encoding: base64 X-Attachment-Id: f_f5onrk0f Content-Disposition: attachment; filename="fwcontrol.patch" SW5kZXg6IGZ3Y29udHJvbC44Cj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KUkNTIGZpbGU6IC9ob21lL25jdnMvc3JjL3Vz ci5zYmluL2Z3Y29udHJvbC9md2NvbnRyb2wuOCx2CnJldHJpZXZpbmcgcmV2aXNpb24gMS4xOApk aWZmIC11IC1yMS4xOCBmd2NvbnRyb2wuOAotLS0gZndjb250cm9sLjgJMjkgRGVjIDIwMDYgMTM6 MDg6NDYgLTAwMDAJMS4xOAorKysgZndjb250cm9sLjgJMjIgTWFyIDIwMDcgMTU6MjY6NDAgLTAw MDAKQEAgLTM5LDYgKzM5LDcgQEAKIC5PcCBGbCBvIEFyIG5vZGUKIC5PcCBGbCBzIEFyIG5vZGUK IC5PcCBGbCBsIEFyIGZpbGUKKy5PcCBGbCBmIEFyIG5vZGUKIC5PcCBGbCBnIEFyIGdhcF9jb3Vu dAogLk9wIEZsIGIgQXIgcHJpX3JlcQogLk9wIEZsIE0gQXIgbW9kZQpAQCAtNzcsNiArNzgsMTAg QEAKIHJlZ2lzdGVyIG9uIHRoZSBub2RlLgogLkl0IEZsIGwgQXIgZmlsZQogTG9hZCBoZXggZHVt cCBmaWxlIG9mIHRoZSBjb25maWd1cmF0aW9uIFJPTSBhbmQgcGFyc2UgaXQuCisuSXQgRmwgZiBB ciBub2RlCitGb3JjZSBzcGVjaWZpZWQKKy5BciBub2RlCit0byBiZSB0aGUgcm9vdCBub2RlIG9u IHRoZSBuZXh0IGJ1cyByZXNldC4KIC5JdCBGbCBnIEFyIGdhcF9jb3VudAogQnJvYWRjYXN0CiAu QXIgZ2FwX2NvdW50CkBAIC05OCw3ICsxMDMsNy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BkZWxheSBjSVJNIHBvd2VyIHBvcnQwIHBvcnQxIHBvcnQyIgotCQkiIGluaSBt b3JlXG4iKTsKKwlwcmludGYoImlkICBsaW5rIGdhcCBzcGVlZCBkZWxheSBjSVJNIHBvd2VyIGlu aSBtb3JlICAiCisJCSJwb3J0cyAgICAgICAgICAwMCAwMSAwMlxuIik7CisJcHJpbnRmKCIgICAg IgorCQkiICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIgorCQkiMDMg MDQgMDUgMDYgMDcgMDggMDkgMTBcbiIpOworI2lmIDAKKwlwcmludGYoIiAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAiCisJCSIxMSAxMiAxMyAxNCAxNSAxNiAx NyAxOFxuIik7CisJcHJpbnRmKCIgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgIgorCQkiMTkgMjAgMjEgMjIgMjMgMjQgMjUgMjZcbiIpOworI2VuZGlmCisJcHJp bnRmKCItLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLSIKKwkJIi0tLS0tLS0tLS0t LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tXG4iKTsKIAlmb3IgKGkgPSAwOyBpIDwgdG1hcC0+Y3Jj X2xlbiAtIDI7IGkrKykgewogCQlzaWQgPSB0bWFwLT5zZWxmX2lkW2ldOwogCQlpZiAoc2lkLnAw LnNlcXVlbCkgewotCQkJcHJpbnRmKCIlMDJkIHNlcXVlbCBwYWNrZXRcbiIsIHNpZC5wMC5waHlf aWQpOworCQkJcHJpbnRmKCIlMmQoJWQpIgorCQkJCSIgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICIKKwkJCQkiJWQgICAiCisJCQkJIiVzICAlcyAgJXMgICVzICAlcyAgJXMg ICVzICAlc1xuIiwKKwkJCQlzaWQucDEucGh5X2lkLAorCQkJCXNpZC5wMS5zZXF1ZW5jZV9udW0s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DAucG9ydDJdLAotCQkJc2lkLnAwLmluaXRpYXRlZF9yZXNldCwKLQkJCXNp ZC5wMC5tb3JlX3BhY2tldHMKKwkJCXBvcnRfc3RhdHVzW3NpZC5wMC5wb3J0Ml0KIAkJKTsKIAl9 CiAJZnJlZSh0bWFwKTsKQEAgLTY3Niw3ICs3MDcsNyBAQAogCQlsaXN0X2RldihmZCk7CiAJfQog Ci0Jd2hpbGUgKChjaCA9IGdldG9wdChhcmdjLCBhcmd2LCAiTTpnOm06bzpzOmI6cHJ0YzpkOmw6 dTpSOlM6IikpICE9IC0xKQorCXdoaWxlICgoY2ggPSBnZXRvcHQoYXJnYywgYXJndiwgIk06Zjpn Om06bzpzOmI6cHJ0YzpkOmw6dTpSOlM6IikpICE9IC0xKQogCQlzd2l0Y2goY2gpIHsKIAkJY2Fz ZSAnYic6CiAJCQl0bXAgPSBzdHJ0b2wob3B0YXJnLCBOVUxMLCAwKTsKQEAgLTY5Nyw2ICs3Mjgs MTEgQEAKIAkJCWdldF9jcm9tKGZkLCB0bXAsIGNyb21fYnVmLCBsZW4pOwogCQkJZHVtcF9jcm9t KGNyb21fYnVmKTsKIAkJCWJyZWFrOworCQljYXNlICdmJzoKKwkJCXRtcCA9IHN0cnRvbChvcHRh cmcsIE5VTEwsIDApOworCQkJb3Blbl9kZXYoJmZkLCBkZXZiYXNlKTsKKwkJCXNlbmRfcGh5X2Nv bmZpZyhmZCwgdG1wLCAtMSk7CisJCQlicmVhazsKIAkJY2FzZSAnZyc6CiAJCQl0bXAgPSBzdHJ0 b2wob3B0YXJnLCBOVUxMLCAwKTsKIAkJCW9wZW5fZGV2KCZmZCwgZGV2YmFzZSk7Cg== ------=_Part_2102_8443763.1187837738266--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?626eb4530708221955p3dd65df6h31e5b7cc79e8ced6>