Re: [9fans] p9p on 64 bit Linux
Hi, I think, you should check the ld cache: ldconfig -p | grep libX11.so Also you can run ldd $PLAN9/bin/devdraw and check some other dependencies from X world On Tue, Mar 4, 2014 at 6:58 AM, Blake McBride bl...@mcbride.name wrote: Greetings, I am trying to build p9p with the latest LinuxMint on a 64 bit machine. In addition to the normal stuff, I think I had to install packages: libxt-dev libxext-dev It built fine, but what I run it I get: blake@sony-linux-laptop ~ $ acme acme: error while loading shared libraries: libX11.so.6: cannot open shared object file: No such file or directory blake@sony-linux-laptop ~ $ I have: blake@sony-linux-laptop /usr/lib $ find . -name 'libX11*' ./x86_64-linux-gnu/libX11-xcb.so.1.0.0 ./x86_64-linux-gnu/libX11.a ./x86_64-linux-gnu/libX11.so.6.3.0 ./x86_64-linux-gnu/libX11-xcb.so.1 ./x86_64-linux-gnu/libX11.so.6 ./x86_64-linux-gnu/libX11.so I think it may be looking for 32 bit shared libraries. I am not sure how things are getting built on a 64 bit environment. Your help is greatly appreciated. Thanks. Blake McBride -- Best regards, santucco
Re: [9fans] p9p on 64 bit Linux
On 4 March 2014 02:58, Blake McBride bl...@mcbride.name wrote: I think it may be looking for 32 bit shared libraries. I am not sure how things are getting built on a 64 bit environment. Your help is greatly appreciated. I had to apt-get install *package-name*:*i386* for each one, adhering to the new naming apt package scheme. There should be something similar if your Linux isn't apt.
Re: [9fans] p9p on 64 bit Linux
Hi there Blake, (This is my first email here). I had the same problem with FreeBSD. And with my current Arch Linux setup. What you have to do is to install the 32-bit versions of libX11. Using Linux Mint it is a safe bet that you can get it using your package manager, as other have said. 2014-03-04 10:11 GMT+01:00 Charles Forsyth charles.fors...@gmail.com: On 4 March 2014 02:58, Blake McBride bl...@mcbride.name wrote: I think it may be looking for 32 bit shared libraries. I am not sure how things are getting built on a 64 bit environment. Your help is greatly appreciated. I had to apt-get install *package-name*:*i386* for each one, adhering to the new naming apt package scheme. There should be something similar if your Linux isn't apt. -- Daniel
Re: [9fans] p9p on 64 bit Linux
On a 64-bit Linux, I think you should rather compile plan9port in 64-bit. If you gcc doesn't produce 64-bit executables by default, try to add -m64 in 9c and recompile plan9port. -- David du Colombier
Re: [9fans] usb configuration
On 03/03/2014 18:41, Ramakrishnan Muthukrishnan wrote: On Mon, Mar 3, 2014 at 11:02 PM, erik quanstrom quans...@quanstro.net wrote: Meanwhile, I ordered a used Evoluent vertical mouse from ebay and hope to get started with plan9 from userspace. I couldn't find any other usable 3 button mouse in the market here in India. lenovo sells a 3-button mouse with a scroll button. the click feature is seperate from the button so it's very usable. This one? http://support.lenovo.com/en_IN/product-and-parts/detail.page?LegacyDocID=MIGR-43954 Yes it is. I have one. And I hate its scroll button, but I love its three buttons! Nicolas
Re: [9fans] usb configuration
And I hate its scroll button, but I love its three buttons! I hate scroll buttons too. I was very happy when I discovered the dell DY651A mouse: http://www8.hp.com/uk/en/products/oas/product-detail.html?oid=403895#!tab=features also branded as IBM M-U0013-o -Steve
Re: [9fans] Raspberry Pi: won't recognize the USB mouse
On Fri, Feb 28, 2014 at 9:54 PM, Bakul Shah ba...@bitblocks.com wrote: On Fri, 28 Feb 2014 09:45:42 EST Anthony Sorace a...@9srv.net wrote: Based on my own experience with USB weirdness with the Pi, I still suspec power issues. How are you powering the Pi itself? Using a 1 amp supply yielded problems, regardless of the sort of hub I had, which all went away when I switched to a 2 amp supply. I'm told the second generation of these boards are a bit better on that regard, but I don't have any to test. The RasPi FAQ suggest 1.2A or more. In rev 2 they replaced two current limiting polyfuses with shunts so you can use a a powered hub or connect periphs requiring 100mA. The RasPi wastes a lot of power. Its processor require 1.8V and only the USB requires 5V. For battery powered use people have tried a number of tricks to reduce power use: replace the onboard linear reg. with a switcher or two, tie 5V + 3.3V together and only use a USB periphs that runs on 3.3V use model A Raspi -- the ethernet chip on model B draws a lot of power even when idle and you don't need it for wifi. Apparently Ralink RT5370 basedt cheapo wifi dongles can run on 3.3V. Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the keyboard and mouse are not recognized. Once I saw a warning message that the descriptor length is short. But when I rebooted, I didn't see that message. Well, I now have a plan9 installation under qemu (compiled from the git sources, as I couldn't boot the one shipped with Debian unstable). If there is something I can try and test to help out with usb, I will gladly help. Thanks Ramakrishnan
Re: [9fans] Raspberry Pi: won't recognize the USB mouse
Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the keyboard and mouse are not recognized. Once I saw a warning message that the descriptor length is short. But when I rebooted, I didn't see that message. i think one of the issues behind this was debugged yesterday. usbshortdesc (/n/sources/patch/usbshortdesc) has been submitted. richard may have improvements, but this should eliminate this issue. cinap has verified that requesting the correct length doesn't cause any issues. - erik
Re: [9fans] How to find or build 9pxeload?
OK got it now. I was specifying the wrong network card to VirtualBox, the 'Intel PRO/1000 MT Server' works and the 'Desktop' doesn't. Now I can TFTP boot but so far can't start a graphical session. That's for the next email... Thanks, pete
Re: [9fans] Raspberry Pi: won't recognize the USB mouse
On Tue, Mar 4, 2014 at 7:57 PM, erik quanstrom quans...@quanstro.net wrote: Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the keyboard and mouse are not recognized. Once I saw a warning message that the descriptor length is short. But when I rebooted, I didn't see that message. i think one of the issues behind this was debugged yesterday. usbshortdesc (/n/sources/patch/usbshortdesc) has been submitted. richard may have improvements, but this should eliminate this issue. Sorry if this question is dumb: How can I build a 9pi image with this patch and test? Can someone create a 9pi image for me to test? -- Ramakrishnan
Re: [9fans] Raspberry Pi: won't recognize the USB mouse
On Tue Mar 4 10:56:33 EST 2014, vu3...@gmail.com wrote: On Tue, Mar 4, 2014 at 7:57 PM, erik quanstrom quans...@quanstro.net wrote: Okay, I tried a powered hub. Now, it boots with both keyboard and mouse (previously it used to hang when I connect both keyboard and mouse). But still the keyboard and mouse are not recognized. Once I saw a warning message that the descriptor length is short. But when I rebooted, I didn't see that message. i think one of the issues behind this was debugged yesterday. usbshortdesc (/n/sources/patch/usbshortdesc) has been submitted. richard may have improvements, but this should eliminate this issue. Sorry if this question is dumb: How can I build a 9pi image with this patch and test? Can someone create a 9pi image for me to test? not dumb. but you don't really need to create a whole new image. i'm typing this on the fly, so i hope there are no errors. :-) first, apply the patch to the source, then build all of usb 9fs sources cd /sys/src/cmd/usb/lib cp /n/sources/patch/usbshortdesc/dev.c dev.c cd .. mk install then, build a new kernel cd /sys/src/cmd/bcm; mk i believe you can give it a quick test by doing a hot reboot. fshalt -r ./9pi if you'd like to install the new kernel on the flash, then dossrv mount /srv/dos /n/9fat /dev/sdM0/dos cd /n/9fat cp 9pi 9pi-dist cp /sys/src/9/bcm/9pi 9pi-usbfix cp 9pi-usbfix 9pi and reboot. if this doesn't work out, you can rescue yourself by using anything that understands fat and replacing 9pi with the contents of 9pi-dist. - erik
Re: [9fans] usb configuration
Yes, I also use the DY651A, and like you am very happy with it. I wasn't aware that it is also available under a different brand; thanks for mentioning it. Mark.
Re: [9fans] Raspberry Pi: won't recognize the USB mouse
On Tue, 04 Mar 2014 11:26:31 EST erik quanstrom quans...@quanstro.net wrote: first, apply the patch to the source, then build all of usb 9fs sources cd /sys/src/cmd/usb/lib cp /n/sources/patch/usbshortdesc/dev.c dev.c cd .. mk install then, build a new kernel cd /sys/src/cmd/bcm; mk i believe you can give it a quick test by doing a hot reboot. fshalt -r ./9pi if you'd like to install the new kernel on the flash, then dossrv mount /srv/dos /n/9fat /dev/sdM0/dos cd /n/9fat cp 9pi 9pi-dist cp /sys/src/9/bcm/9pi 9pi-usbfix cp 9pi-usbfix 9pi and reboot. if this doesn't work out, you can rescue yourself by using anything that understands fat and replacing 9pi with the contents of 9pi-dist. IIRC Ramakrishnan doesn't have a working 9pi system. I put 9pi with this patch in contrib/bakul on sources. It was cross-built on a 386 VM with a pull done this morning + the above patch. I had to rebuild the host 5c due to rune related errors so I am not 100% certain this will work (I probably should've done a full rebuild of the host binaries too). He should be able to mount the dos partition on another machine and replace 9pi on it.
Re: [9fans] Raspberry Pi: won't recognize the USB mouse
IIRC Ramakrishnan doesn't have a working 9pi system. I put 9pi with this patch in contrib/bakul on sources. It was cross-built on a 386 VM with a pull done this morning + the above patch. I had to rebuild the host 5c due to rune related errors so I am not 100% certain this will work (I probably should've done a full rebuild of the host binaries too). should work, if the linker didn't complain. rebuilding applications is not critical, but rebuilding the libraries and compiler is. - erik
[9fans] imac keyboard issues
here's a detailed trace of an imac keyboard not playing nice. setting the address → transaction error. /boot/usbd: /dev/usb/ep6.0: port 3: attach setaddress: transaction error here's the trace: ivey# /boot/usbd: /dev/usb/ep3.0: port 2 attach sts 0x101 /dev/usb/ep3.0: h2d|cls|oth setfeat val 0|1 idx 2 cnt 0 out[8] 23 03 01 00 02 00 00 00 /dev/usb/ep3.0: h2d|cls|oth setfeat val 0|4 idx 2 cnt 0 out[8] 23 03 04 00 02 00 00 00 /boot/usbd: /dev/usb/ep3.0: port 2: attached status 0x103 /boot/usbd: opendev 0x437f90 /dev/usb/ep6.0 usb: ep6.0 debug 1 usbopen q 0x1c fid 283 omode 2 ehci: epopen ep6.0 ehci port 0xfe00fbb22000 frames 0xf0d54000 (1024 fr.) nintr 960 ntdintr 959 nqhintr 0 nisointr 0 cmd 0x10031 sts 0xc000 intr 0x37 frno 14743 base 0xd54000 link 0xd55700 fr0 0xd52502 p0 0x1005 p1 0x1000 qh 0xf0d51500 ep 0 dev 0 hub 0 port 0 link d55702Q clink 0x0 nrld 0 nak 0 max 0 h high mult 0 scm 0x0 ism 0x0 ovl 0xf0d930a0 nlink 1T alink 1T out d0 --hz ss max 0 pg 0 off 0x0 buffs: 0x0 0x0 0x0 0x0 0x0 epc 0xf0d55700 ep 0 dev 0 hub 3 port 2 link d55482Q clink 0x0 nrld 8 nak 0 max 64 cd full mult 1 scm 0x1c ism 0x0 ovl 0xf0d930a0 nlink 1T alink 1T out d0 --hz ss max 0 pg 0 off 0x0 buffs: 0x0 0x0 0x0 0x0 0x0 epc 0xf0d55480 ep 0 dev 3 hub 2 port 1 link d51502Q clink 0xd55700 nrld 8 nak 8 max 64 d high mult 1 scm 0x1c ism 0x0 ovl 0xf0d930a0 nlink 1T alink 11T out d0 -ih- ss max 0 pg 0 off 0x758 buffs: 0xd55 0xd56 0xd57 0xd58 0xd59 63 eds in tree 192 eds allocated = 134 in use + 58 free ehci: epopen done address 6 /dev/usb/ep6.0: h2d|std|dev setaddr val 0|6 idx 0 cnt 0 out[8] 00 05 06 00 00 00 00 00 usb epctl address /dev/usb/ep6.0: d2h|std|dev getdesc val 1|0 idx 0 cnt 64 out[8] 80 06 00 01 00 00 40 00 epread: 0x4281c0[8]: 120110010908 /dev/usb/ep6.0: in[8] 12 01 10 01 09 00 00 08 /boot/usbd; /dev/usb/ep3.0: port 2: maxpkt 8 usb epctl maxpkt 8 /dev/usb/ep6.0: d2h|std|dev getdesc val 1|0 idx 0 cnt 18 out[8] 80 06 00 01 00 00 12 00 epread: 0x4281ce[18]: 120110010908AC05... /dev/usb/ep6.0: in[18] 12 01 10 01 09 00 00 08 ac 05 03 10 20 04 01 02 00 01 /boot/usbd: parsedev /dev/usb/ep6.0: 12 01 10 01 09 00 00 08 ac 05 03 10 20 04 01 02 00 01 /dev/usb/ep6.0: d2h|std|dev getdesc val 3|1 idx 0 cnt 256 out[8] 80 06 01 03 00 00 00 01 epread: 0x428078[34]: 22034D00690074007300... /dev/usb/ep6.0: in[34] 22 03 4d 00 69 00 74 00 73 00 75 00 6d 00 69 00 20 00 45 00 6c 00 65 00 63 00 74 00 72 00 69 00 63 00 /dev/usb/ep6.0: d2h|std|dev getdesc val 3|1 idx 77 cnt 256 out[8] 80 06 01 03 4d 00 00 01 epread: 0x428078[34]: 22034D00690074007300... /dev/usb/ep6.0: in[34] 22 03 4d 00 69 00 74 00 73 00 75 00 6d 00 69 00 20 00 45 00 6c 00 65 00 63 00 74 00 72 00 69 00 63 00 /dev/usb/ep6.0: d2h|std|dev getdesc val 3|2 idx 0 cnt 256 out[8] 80 06 02 03 00 00 00 01 epread: 0x428078[70]: 46034800750062002000... /dev/usb/ep6.0: in[70] 46 03 48 00 75 00 62 00 20 00 69 00 6e 00 20 00 41 00 70 00 70 00 6c 00 65 00 20 00 45 00 78 00 74 00 65 00 6e 00 64 00 65 00 64 00 20 00 55 00 53 00 42 00 20 00 4b 00 65 00 79 00 62 00 6f 00 61 00 72 00 64 00 /dev/usb/ep6.0: d2h|std|dev getdesc val 3|2 idx 72 cnt 256 out[8] 80 06 02 03 48 00 00 01 epread: 0x428078[70]: 46034800750062002000... /dev/usb/ep6.0: in[70] 46 03 48 00 75 00 62 00 20 00 69 00 6e 00 20 00 41 00 70 00 70 00 6c 00 65 00 20 00 45 00 78 00 74 00 65 00 6e 00 64 00 65 00 64 00 20 00 55 00 53 00 42 00 20 00 4b 00 65 00 79 00 62 00 6f 00 61 00 72 00 64 00 /dev/usb/ep6.0: d2h|std|dev getdesc val 2|0 idx 0 cnt 4096 out[8] 80 06 00 02 00 00 00 10 epread: 0x438750[25]: 09021900010100A01909... /dev/usb/ep6.0: in[25] 09 02 19 00 01 01 00 a0 19 09 04 00 00 01 09 00 00 00 07 05 81 03 01 00 ff /boot/usbd: parseconf 09 02 19 00 01 01 00 a0 19 /boot/usbd: parsedesc interface 4[9] 09 04 00 00 01 09 00 00 00 /boot/usbd: parsedesc endpoint 5[7] 07 05 81 03 01 00 ff /dev/usb/ep6.0: h2d|std|dev setcnf val 0|1 idx 0 cnt 0 out[8] 00 09 01 00 00 00 00 00 /boot/usbd: /dev/usb/ep6.0 csp hub.0.0 vid 0x05ac did 0x1003 refs 1 Mitsumi ElectricC Hub in Apple Extended USB Keyboard none conf: cval 1 attrib a0 50 mA iface csp hub.0.0 alt 0 attr 3 ival 255 ep id 1 addr 129 dir in type intr itype 0 maxpkt 1 ntds 1 /boot/usbd: /dev/usb/ep3.0: port 2: configed: /dev/usb/ep6.0 usb epctl info /dev/usb/ep6.0: d2h|cls|dev getdesc val 41|0 idx 0 cnt 128 out[8] a0 06 00 29 00 00 80 00 epread: 0x4281a4[9]: 0929030D00163208FF /dev/usb/ep6.0: in[9] 09 29 03 0d 00 16 32 08 ff usb epctl hub usb epctl info /dev/usb/ep6.0: h2d|cls|oth setfeat val 0|8 idx 1 cnt 0 out[8] 23 03 08 00 01 00 00 00 /dev/usb/ep6.0: h2d|cls|oth setfeat val 0|8 idx 2 cnt 0 out[8] 23 03 08 00 02 00 00 00