Re: [9fans] imagereclaim()

2014-03-02 Thread Charles Forsyth
On 2 March 2014 03:55, wrote: > checked nix/port/page.c. your duppage() is wrong. It isn't needed at all. When a cached page is written, it's trying hard to replace the page in the cache by a new copy, to return the previously cached page. Instead, I copy the cached page and return the copy, wh

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread Richard Miller
>> PFU HHKB2Lite >> old iMac usb keyboard c. 2001 >> Apple 'Pro' keyboard, c. 2004 > > these two work for me using the modifications here: > http://9fans.net/archive/2014/02/202 > setting the langid is critical for some keyboards. I've just tried Erik's usbd with a 2003 iMac keyboard: usbo

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread erik quanstrom
> I've just tried Erik's usbd with a 2003 iMac keyboard: > > usbotg: ep6.0 error intr 0402 > usbotg: ep6.0 error intr 0402 > usbotg: ep6.0 error intr 0402 > usbotg: ep6.0 error intr 0402 > usbotg: ep6.0 error intr 0402 > usbotg: ep6.0 error intr 0402 > usbotg: ep6.0 error i

[9fans] cpp bug

2014-03-02 Thread erik quanstrom
david hoskin found a bug in cpp. - is evaluated right to left, so it computes the wrong result. for example # if 0 - 0 + 4 != 4 # error bogus preprocessor # endif errors, because cpp computes this as if it were # if 0 - (0 + 4) != 4 this is because it evaluates

[9fans] Bell usb keys boot fails

2014-03-02 Thread Adriano Verardo
Hi, all The Bell usb image doesn't boot on some (IMHO) very common machines. Screenshots available on https://plus.google.com/communities/114338091970720321008?partnerid=ogpy0 adriano

Re: [9fans] imagereclaim()

2014-03-02 Thread cinap_lenrek
you'r right. the smartness of duppage() isnt really neccesary. we can just leave the cache alone. when memory is low, newpage() will uncache pages for us. fixfault(): ... lkp = *pg; lock(lkp); if(lkp->ref == 0)

Re: [9fans] imagereclaim()

2014-03-02 Thread Charles Forsyth
On 2 March 2014 18:46, wrote: > you'r right. the smartness of duppage() isnt really neccesary. we > can just leave the cache alone. when memory is low, newpage() will > uncache pages for us. > I also ripped out all the swap stuff. Either I'm on a machine with at last a Gb or two of RAM, or it's

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread Richard Miller
> also, according to the linux kernel, we should not be looking for > configurations on anything that's not a hub. Personally I wouldn't look to the linux kernel as guidance for correct behaviour. Especially when there's a published specification available. Every usb device has at least one conf

[9fans] How to find or build 9pxeload?

2014-03-02 Thread Peter Hull
Hi all, I was looking at booting via PXE (this is all just on Virtual Box VMs). I need to provide a 9pxeload in the boot process but I can't find it in my distribution and I can't understand how to build it. I looked in the source tree but 9pxeload doesn't seem to be a target in the makefile. How

Re: [9fans] How to find or build 9pxeload?

2014-03-02 Thread David du Colombier
> How can I build 9pxeload? 9pxeload has been replaced by 9boot since the new boot loader replaced the old one in the distribution in May 2012. -- David du Colombier

Re: [9fans] How to find or build 9pxeload?

2014-03-02 Thread peterhull90
OK, brilliant, thanks for the swift reply. I didn’t see that written down anywhere! Pete From: David du Colombier Sent: ‎Sunday‎, ‎2‎ ‎March‎ ‎2014 ‎21‎:‎53 To: 9fans@9fans.net > How can I build 9pxeload? 9pxeload has been replaced by 9boot since the new boot loader replaced the old

[9fans] Welcome Plan 9 community

2014-03-02 Thread Szymon Olewniczak
Hi, I've just registerd to this mailing list, so hello everyone. I've read about Plan 9 several months ago and fascinated with ideas behind this OS. Now I've decided to try the system on my own and although I don't know much about it yet, I believe that it can be something that I would like to wo

Re: [9fans] imagereclaim()

2014-03-02 Thread Anthony Martin
Charles Forsyth once said: > I also ripped out all the swap stuff. Either I'm on a machine with at last > a Gb or two of RAM, or it's embedded > and there's no paging disk, or both. What do you do when you're out of memory? Panic? Do you still have something like the kickpager in nix? Anthony

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread Winston Kodogo
I'm not sure if this is helpful at this, or indeed any, stage in the conversation, but for me one of the great joys of using Richard's port has been that it just works on real hardware without having to mess about, or having to worry about esoterica about USB and chums. At least they're esoterica t

[9fans] print(2)'s format

2014-03-02 Thread trebol
Hello, this is the little story: I usually write scripts needing numbers padded on the left with zeros, like in '%03.0f'. In UNIX I use printf(1), but now I'm using more and more rc scripts with P9P, and I like to use Plan9 programs to make the scripts more portable to Plan9... so I tried with

Re: [9fans] imagereclaim()

2014-03-02 Thread erik quanstrom
On Sun Mar 2 18:01:39 EST 2014, al...@pbrane.org wrote: > Charles Forsyth once said: > > I also ripped out all the swap stuff. Either I'm on a machine with at last > > a Gb or two of RAM, or it's embedded > > and there's no paging disk, or both. > > What do you do when you're out of memory? Pani

Re: [9fans] Welcome Plan 9 community

2014-03-02 Thread erik quanstrom
> But to begin with the main issue that brings me to write this message. I > know that before I can do anything on Plan 9, I need hardware that > cooperate with it. I've read the Supported PC Hardware[0] and > realised that there is not much of it. Is there only one reliable motherboard > > (ASU

Re: [9fans] How to find or build 9pxeload?

2014-03-02 Thread erik quanstrom
On Sun Mar 2 16:55:07 EST 2014, 0in...@gmail.com wrote: > > How can I build 9pxeload? > > 9pxeload has been replaced by 9boot since the new boot loader > replaced the old one in the distribution in May 2012. 9pxeload is still found in 9atom, as is cinap's iplpxe, which is much better. it sets e

Re: [9fans] How to find or build 9pxeload?

2014-03-02 Thread cinap_lenrek
"iplpxe" is the most stupid name ever. tuttle is not amused. its called 9boot on the front. central cervices has to screw everything up... oh the paper work... ;-) -- cinap

Re: [9fans] Raspberry Pi: won't recognize the USB mouse

2014-03-02 Thread erik quanstrom
> Personally I wouldn't look to the linux kernel as guidance for > correct behaviour. Especially when there's a published specification > available. after looking over the spec, i didn't see this question addressed. do you? it's a byte, so in theory there could be 255 configurations. lacking an

Re: [9fans] How to find or build 9pxeload?

2014-03-02 Thread erik quanstrom
On Sun Mar 2 20:19:12 EST 2014, cinap_len...@felloff.net wrote: > "iplpxe" is the most stupid name ever. tuttle is not amused. > its called 9boot on the front. central cervices has to screw > everything up... oh the paper work... ;-) thank you. my new claim to fame. as long as we're abolishing

Re: [9fans] print(2)'s format

2014-03-02 Thread erik quanstrom
> Hello, this is the little story: > I usually write scripts needing numbers padded on the left with zeros, like > in '%03.0f'. In UNIX I use printf(1), but now I'm using more and more rc > scripts with P9P, and I like to use Plan9 programs to make the scripts more > portable to Plan9... so I t

Re: [9fans] How to find or build 9pxeload?

2014-03-02 Thread andrey mirtchovski
> http://en.wikipedia.org/wiki/Initial_Program_Load#IPL "1. Set the P register to 9" I like it!

Re: [9fans] Welcome Plan 9 community

2014-03-02 Thread Grant Mather
> I've also read that RaspberryPI can run Plan 9. I have RP rev. 2 so maybe it > should be the hardware which I can use to start my Plan 9 adventure. > > What hardware can you recommend? What hardware do you use? Is there is > any PC that can run both Plan 9 and Inferno? If you have a Raspberry P

Re: [9fans] Bell usb keys boot fails

2014-03-02 Thread Nick Owens
On Sun, Mar 02, 2014 at 06:19:57PM +0100, Adriano Verardo wrote: > Hi, all > > The Bell usb image doesn't boot on some (IMHO) very common machines. > Screenshots available on > you could just try adding the did to /sys/src/9/pc/sdiahci.c:1939 and recompile a new kernel. maybe it will work, mayb