Re: [9fans] updating 9vx root

2010-04-20 Thread yy
2010/4/21 EBo :
>
> what is the procedure for either updating the entire 9vx root, or setting up
> and building all the special customizations to build an up to date system?

See: http://9fans.net/archive/2008/07/118

I always start from the tree posted in that message, but you can also
follow the instructions to start from a cd.

-- 
- yiyus || JGL . 4l77.com



Re: [9fans] updating 9vx root

2010-04-20 Thread Fernan Bolando
On Wed, Apr 21, 2010 at 1:29 PM, EBo  wrote:
> Fernan Bolando  said:
>
>> On Wed, Apr 21, 2010 at 12:49 PM, EBo  wrote:
>> >
>> > what is the procedure for either updating the entire 9vx root, or setting 
>> > up
>> > and building all the special customizations to build an up to date system?
>> >
>> > For background, I am running the newest 9vx/vx32 sources and have tried
>> > various combinations of 9vx-0.12 (which is missing libc.a), the full tree 
>> > that
>> > was based on (a "pull -s /" overloads some customized program and renders 
>> > the
>> > root unbootable), root extracted from 9aton.iso (which gives me error 
>> > messages
>> > about not having kfs setup).
>> >
>> > Thanks and best regards,
>> >
>> have you tried replica/pull?
>> I have not used 9vx for sometime since I got my atom motherboard
>> working natively, But I remember doing a replica/pull to update my 9vx
>> installation. I did get a bunch of permission problem, if you do a
>> search in 9fans archive you should see an advice from andrey on how to
>> fix it.
>
> sorry I was not clear with the above.  Yes, but I used glenda's pull script.
>
> I'm looking up andrey's comments now...
>
>
Around the time Russ first announced 9vx, I remember reading that
updating 9vx was very similar to updating a native installation in
which case it should be through replica. I dont however remember
rendering my 9vx non-bootable after the update, so I am not really
sure what is going on your installation.


-- 
http://www.fernski.com



Re: [9fans] updating 9vx root

2010-04-20 Thread EBo
Fernan Bolando  said:

> On Wed, Apr 21, 2010 at 12:49 PM, EBo  wrote:
> >
> > what is the procedure for either updating the entire 9vx root, or setting up
> > and building all the special customizations to build an up to date system?
> >
> > For background, I am running the newest 9vx/vx32 sources and have tried
> > various combinations of 9vx-0.12 (which is missing libc.a), the full tree 
> > that
> > was based on (a "pull -s /" overloads some customized program and renders 
> > the
> > root unbootable), root extracted from 9aton.iso (which gives me error 
> > messages
> > about not having kfs setup).
> >
> > Thanks and best regards,
> >
> have you tried replica/pull?
> I have not used 9vx for sometime since I got my atom motherboard
> working natively, But I remember doing a replica/pull to update my 9vx
> installation. I did get a bunch of permission problem, if you do a
> search in 9fans archive you should see an advice from andrey on how to
> fix it.

sorry I was not clear with the above.  Yes, but I used glenda's pull script.

I'm looking up andrey's comments now...




Re: [9fans] updating 9vx root

2010-04-20 Thread Fernan Bolando
On Wed, Apr 21, 2010 at 12:49 PM, EBo  wrote:
>
> what is the procedure for either updating the entire 9vx root, or setting up
> and building all the special customizations to build an up to date system?
>
> For background, I am running the newest 9vx/vx32 sources and have tried
> various combinations of 9vx-0.12 (which is missing libc.a), the full tree that
> was based on (a "pull -s /" overloads some customized program and renders the
> root unbootable), root extracted from 9aton.iso (which gives me error messages
> about not having kfs setup).
>
> Thanks and best regards,
>
have you tried replica/pull?
I have not used 9vx for sometime since I got my atom motherboard
working natively, But I remember doing a replica/pull to update my 9vx
installation. I did get a bunch of permission problem, if you do a
search in 9fans archive you should see an advice from andrey on how to
fix it.


-- 
http://www.fernski.com



[9fans] updating 9vx root

2010-04-20 Thread EBo

what is the procedure for either updating the entire 9vx root, or setting up
and building all the special customizations to build an up to date system?

For background, I am running the newest 9vx/vx32 sources and have tried
various combinations of 9vx-0.12 (which is missing libc.a), the full tree that
was based on (a "pull -s /" overloads some customized program and renders the
root unbootable), root extracted from 9aton.iso (which gives me error messages
about not having kfs setup).

Thanks and best regards,

  EBo --




Re: [9fans] 9vx crashing

2010-04-20 Thread EBo

> that pc is in the floating point code.  clearly bogus.
> as find doesn't do any floating point.

I have no idea why this is happening, only that it is and it is failing
consistently.  

While I could spend time trying to tracing through the code to figure out what
is going on, I have opted for the moment to update the base root I am using as
the old one is just shy of two years old, and the newer one seem to run
correctly so far.  If this problem creeps up again I'll start debugging it in
earnest.

  EBo --




Re: [9fans] 9vx crashing

2010-04-20 Thread erik quanstrom
> 2) I installed Erik's find utility and running it gave the error:
> 
>  find 2062: suicide: sys: trap: invalid opcode pc=0x5001
> 
>from inside 9vx, and:
> 
>  invalid opcode ff ff ba at eip 5001
> 
>in the linux terminal that spawned it.

that pc is in the floating point code.  clearly bogus.
as find doesn't do any floating point.

/sys/src/libc/port/strtod.c:139
 134continue;
 135}
 136break;
 137case 'e':
 138case 'E':
>139if(state == S2 || state == S4) {
 140state = S5;
 141continue;
 142}
 143break;
 144}

- erik



[9fans] 9vx crashing

2010-04-20 Thread EBo

Just an FYI.  I've been working on getting 9vx running on a TinyCoreLinux USB
stick, and I have been having 9vx crash in odd ways and wanted to post a note
about it.

For starters, I am building 9vx from hg source and using the root from 9vx's
2008/7/1 release 9vx-0.12.  There are three points of possible interest:

1) the base root does not have libc.a which means that I can compile program,
but not link them.

2) I installed Erik's find utility and running it gave the error:

 find 2062: suicide: sys: trap: invalid opcode pc=0x5001

   from inside 9vx, and:

 invalid opcode ff ff ba at eip 5001

   in the linux terminal that spawned it.

3) I was able to resolve both problems by replace the Plan 9 root with one
copied from a recent 9atom.iso, however I am not finished testing that though.

  EBo --





Re: [9fans] Error building 9vx on OS X 10.5.8

2010-04-20 Thread Ethan Grammatikidis


On 20 Apr 2010, at 17:08, andrey mirtchovski wrote:


On Tue, Apr 20, 2010 at 10:07 AM, andrey mirtchovski
 wrote:

make 9vx/9vx is the first step, but I imagine you'll hit a snag with
ucontext.h being deprecated unless _XOPEN_SOURCE is defined.


oops, i could be wrong -- it may only be deprecated on snow leopard.



make 9vx/9vx worked, thanks.

--
Simplicity does not precede complexity, but follows it. -- Alan Perlis




Re: [9fans] Error building 9vx on OS X 10.5.8

2010-04-20 Thread andrey mirtchovski
On Tue, Apr 20, 2010 at 10:07 AM, andrey mirtchovski
 wrote:
> make 9vx/9vx is the first step, but I imagine you'll hit a snag with
> ucontext.h being deprecated unless _XOPEN_SOURCE is defined.

oops, i could be wrong -- it may only be deprecated on snow leopard.



Re: [9fans] Error building 9vx on OS X 10.5.8

2010-04-20 Thread andrey mirtchovski
make 9vx/9vx is the first step, but I imagine you'll hit a snag with
ucontext.h being deprecated unless _XOPEN_SOURCE is defined.



Re: [9fans] Fossil robustness

2010-04-20 Thread Anthony Sorace

Both fossil and kfs seem like the wrong tool for your job. In
addition to the robustness questions, they (especially fossil)
include features you're not going to get anything out of in
your environment. If you use something like paqfs(4) or
sacfs(4) (not sure which is more appropriate) you'll get
safer operation and have a smaller system as well.



PGP.sig
Description: This is a digitally signed message part


[9fans] Error building 9vx on OS X 10.5.8

2010-04-20 Thread Ethan Grammatikidis

9vx cloned from hg repo today. Error early in the build process:

libvxc/_exit.c: In function '_exit':
libvxc/syscall.h:8: error: can't find a register in class 'BREG' while  
reloading 'asm'

make: *** [libvxc/_exit.o] Error 1

I can't recall if those "can't find a register" errors are due to  
differences between gcc versions or optimisation settings.


Gcc is 4.0.1, I've no idea of the default optimisation options.

--
Simplicity does not precede complexity, but follows it. -- Alan Perlis




Re: [9fans] SATA boot failure

2010-04-20 Thread Peter A. Cejchan
>
> does resetting bios help?

no. i tried (almost) all combinations that came on my mind.there
is also some JMicron SATA option that I recall it caused me problems
with this same disk installation some half-a-year ago...Aug 11 2009
actually, the disk stopped to boot with the original native 9
installation, i first thought that the surface was damaged, as i
removed it from the box, but the surface check was ok (under windoze,
in a supplier company), than i thought that the bootloader in MBR got
damaged, so i completely reinstalled from 9atom.iso, as of Apr 19.
now i am almost convinced that i must fiddle more with bios, but i
have no idea what more to change.
regards, peter,
aka ++pac



Re: [9fans] SATA boot failure

2010-04-20 Thread EBo
> > no PATA drives, just SATA-II, it worked before, but stopped to, I
> > thought it was damaged but surface scan was OK, I reinstalled, but the
> > problem persists. it well may be also caused by the fact that I,
> > in the meantime, used that box with linux IDE discs, so I fiddled with
> > BIOS, sory...

This sounds exactly like the trouble I initially had on my AMD machine.  It
turned out there is a bios bug and it is highly sensitive to how the SATA is
configured, and whether in ACHI or native IDE mode.  I also found it necessary
to remove power to clear nvram or memory or something which seemed to maintain
state unless power was removed.




Re: [9fans] SATA boot failure

2010-04-20 Thread erik quanstrom
On Tue Apr 20 09:23:42 EDT 2010, tyap...@gmail.com wrote:
> no PATA drives, just SATA-II, it worked before, but stopped to, I
> thought it was damaged but surface scan was OK, I reinstalled, but the
> problem persists. it well may be also caused by the fact that I,
> in the meantime, used that box with linux IDE discs, so I fiddled with
> BIOS, sory...

does resetting bios help?

- erik



Re: [9fans] SATA boot failure

2010-04-20 Thread Peter A. Cejchan
no PATA drives, just SATA-II, it worked before, but stopped to, I
thought it was damaged but surface scan was OK, I reinstalled, but the
problem persists. it well may be also caused by the fact that I,
in the meantime, used that box with linux IDE discs, so I fiddled with
BIOS, sory...

peter.



Re: [9fans] SATA boot failure

2010-04-20 Thread erik quanstrom
> using 9atom.iso from Apr 19, installation completes but boot freezes.
> here is the transcript:
> cpu0: ...
> pat: ...
> ELCR: CC28
> pcirouting: ignoring south bridge PCI 0.31.0 8086/2810
> oni 0x732 phyno 1, mccv=0x3800, phyv=0x002
> #l0: rtl8169: 100Mb parport 0x6800 irq 10 tu 1514:001a9272efe7
> #S/sdE: ahci ahci port 0xe80: sss 1 ncs 31 coal 1 mport 3 led 1 clo 1 ems 
> 1
> #S/sdE ahci: Sata II with 4 ports
> 2047M memory, 256M kernel data, 1791m user, 2416 swap
> 
> <--- here it freezes
> 
> any hint?

thanks for the report.  i don't have anything at the moment.
i see this sometimes on a reboot through /dev/reboot, but
never on a cold boot.

you don't have pata drives mapped to sata, do you?

- erik



Re: [9fans] Fossil robustness

2010-04-20 Thread Adriano Verardo

erik quanstrom wrote:
I've made a customized install procedure copying from the standard one. 
Where can i find
a procedure for kfs to copy from?  Can kfs be configured to be 
absolutely insentive to hard power down ?



"absolutely" is too strong.  if one turns off atime with
kfscmd/atime, it is pretty robust.  see mkfs(8) for some
tools.  


but really, just get a ups.  you'll be much happier.
  
Oh, yes. It's true, but i can't and, in any case I cannot control the 
operators :-(

- erik



  





Re: [9fans] Character CR in Plan9?

2010-04-20 Thread yy
2010/4/20 pmarin :
> I wanted to remove this character from some files. I tried to do it with
> the p9p tr(1) and I noticed that It does not support '\r'.
>

You can use \x0d or probably sed 's/.$//'

-- 
- yiyus || JGL . 4l77.com



Re: [9fans] Fossil robustness

2010-04-20 Thread erik quanstrom
On Tue Apr 20 06:46:54 EDT 2010, a.vera...@tecmav.com wrote:
> Hi all.
> 
> I'm building an industrial  application  hosted by several independent 
> cpu server, each of them booted from a CFlash on sdD0.
> 
> The application doesn't write on sdD0 and there are no redirection on 
> local files in the cpurc scripts.
> 
> In this particular situation fossil should be actually used read only so 
> allowing to use write protected CF and/or to suddenly power off the system 
> without
> damaging the file system.
> 
> Instead, fossil writes on sdD0 (doesn't boot fom a write protected CF) 
> and the power loss destroy the file system more than fifty-fifty.
> 
> Unfortunately I cannot guarantee stable/correct operating conditions.

paqfs(4) seems ideal for this situation.

- erik



Re: [9fans] Fossil robustness

2010-04-20 Thread erik quanstrom
> I've made a customized install procedure copying from the standard one. 
> Where can i find
> a procedure for kfs to copy from?  Can kfs be configured to be 
> absolutely insentive to hard power down ?

"absolutely" is too strong.  if one turns off atime with
kfscmd/atime, it is pretty robust.  see mkfs(8) for some
tools.  

but really, just get a ups.  you'll be much happier.

- erik



Re: [9fans] Character CR in Plan9?

2010-04-20 Thread Mathieu Lonjaret
here's one way of doing it:

open the file in acme, and write in the tag bar:

Edit ,s:
::g

and execute that (select it with the mouse and button-2 click on it).

to get the 
 char, you can simply cp&paste it with the mouse from the
file itself.

Cheers,
Mathieu
--- Begin Message ---

I wanted to remove this character from some files. I tried to do it with
the p9p tr(1) and I noticed that It does not support '\r'.

--- End Message ---


Re: [9fans] Character CR in Plan9?

2010-04-20 Thread pmarin

I wanted to remove this character from some files. I tried to do it with
the p9p tr(1) and I noticed that It does not support '\r'.




Re: [9fans] Character CR in Plan9?

2010-04-20 Thread erik quanstrom
On Tue Apr 20 08:27:04 EDT 2010, pmarin.m...@gmail.com wrote:
> I wanted to remove this character from some files. I tried to do it with
> the p9p tr(1) and I noticed that It does not support '\r'.

use 
.  (type with compose + X + 000d)

- erik



Re: [9fans] Fossil robustness

2010-04-20 Thread John Soros
Yes, i've had a lot of problems with fossil when it gets killed. My issue was 
with wikifs that had some sort of memory leak i suspect, it would fill up the 
memory, and then fossil would crash and/or get corrupted. I had an idea for a 
project to use mycroftiv's rootless kernel images and have a script check 
whether fossil died or what, and if it did reformat it using latest venti 
snapshot and reopen the root, but i don't know how involved that would be.
 I would think -r doesn't modify the filesystem if snapshotting is turned off, 
but i am probably the wrong person to be asked...I currently don't even have 
my plan9 system installed.
HTH




On Tuesday 20 April 2010 13:39:59 Adriano Verardo wrote:
> John Soros wrote:
> > Hello Adriano,
> > Have you disabled all snapshotting features? Usiong open -r?
> > How are you starting fossil, what's your configuration?
> 
> Hi, John
> 
> fsys main open -AWVP -c 3000
> srv fossil
> srv -p fscons
> 
> on /dev/sdD0/fossil
> 
> open -r guarantees that fossil doesn't do physycal write at all or
> prevent only user to w/create files ?
> 
> After a fatal power down fossil complains about "metadata corruption" or
> "lost 386/init" or
> or the corruption of some very first logical sectors.
> 
> adriano



Re: [9fans] Character CR in Plan9?

2010-04-20 Thread Rudolf Sykora
On 20 April 2010 13:28, pmarin  wrote:
> Hi all.
>
> I notice that in Plan9 (p9p) the character CR is not represented with
> '\r'. What I have to use instead?
>
> Cheers.
> pmarin

what is it that you wanna achieve?
'\n' is almost always what I want...
R



Re: [9fans] Fossil robustness

2010-04-20 Thread Adriano Verardo

John Soros wrote:

Hello Adriano,
Have you disabled all snapshotting features? Usiong open -r?
How are you starting fossil, what's your configuration?

  


Hi, John

fsys main open -AWVP -c 3000
srv fossil
srv -p fscons

on /dev/sdD0/fossil

open -r guarantees that fossil doesn't do physycal write at all or 
prevent only user to w/create files ?


After a fatal power down fossil complains about "metadata corruption" or 
"lost 386/init" or

or the corruption of some very first logical sectors.

adriano




[9fans] Character CR in Plan9?

2010-04-20 Thread pmarin

Hi all.

I notice that in Plan9 (p9p) the character CR is not represented with
'\r'. What I have to use instead?

Cheers.
pmarin



Re: [9fans] Fossil robustness

2010-04-20 Thread Adriano Verardo

maht wrote:

On 20/04/2010 11:45, Adriano Verardo wrote:

Hi all.

I'm building an industrial  application  hosted by several 
independent cpu server,

each of them booted from a CFlash on sdD0.

The application doesn't write on sdD0 and there are no redirection on 
local files

in the cpurc scripts.

In this particular situation fossil should be actually used read only 
so allowing
to use write protected CF and/or to suddenly power off the system 
without

damaging the file system.

Instead, fossil writes on sdD0 (doesn't boot fom a write protected 
CF) and the

power loss destroy the file system more than fifty-fifty.

Unfortunately I cannot guarantee stable/correct operating conditions.

Any suggestion ?

Thanks in advance

adriano

Fossil is essentially a cache for Venti, the non-Venti special case is 
what you are attempting to use.


Perhaps kfs / cws would be a better choice.
I've made a customized install procedure copying from the standard one. 
Where can i find
a procedure for kfs to copy from?  Can kfs be configured to be 
absolutely insentive to hard power down ?


Or even booting from a CD.
I've only a CF slot. And, in any case, the environment doesn't allow to 
use mechanical devices.













Re: [9fans] Fossil robustness

2010-04-20 Thread John Soros
Hello Adriano,
Have you disabled all snapshotting features? Usiong open -r?
How are you starting fossil, what's your configuration?

-- 
John Soros


On Tuesday 20 April 2010 12:45:09 Adriano Verardo wrote:
> Hi all.
> 
> I'm building an industrial  application  hosted by several independent
> cpu server,
> each of them booted from a CFlash on sdD0.
> 
> The application doesn't write on sdD0 and there are no redirection on
> local files
> in the cpurc scripts.
> 
> In this particular situation fossil should be actually used read only so
> allowing
> to use write protected CF and/or to suddenly power off the system without
> damaging the file system.
> 
> Instead, fossil writes on sdD0 (doesn't boot fom a write protected CF)
> and the
> power loss destroy the file system more than fifty-fifty.
> 
> Unfortunately I cannot guarantee stable/correct operating conditions.
> 
> Any suggestion ?
> 
> Thanks in advance
> 
> adriano



Re: [9fans] Fossil robustness

2010-04-20 Thread maht

On 20/04/2010 11:45, Adriano Verardo wrote:

Hi all.

I'm building an industrial  application  hosted by several independent 
cpu server,

each of them booted from a CFlash on sdD0.

The application doesn't write on sdD0 and there are no redirection on 
local files

in the cpurc scripts.

In this particular situation fossil should be actually used read only 
so allowing

to use write protected CF and/or to suddenly power off the system without
damaging the file system.

Instead, fossil writes on sdD0 (doesn't boot fom a write protected CF) 
and the

power loss destroy the file system more than fifty-fifty.

Unfortunately I cannot guarantee stable/correct operating conditions.

Any suggestion ?

Thanks in advance

adriano

Fossil is essentially a cache for Venti, the non-Venti special case is 
what you are attempting to use.


Perhaps kfs / cws would be a better choice.

Or even booting from a CD.







[9fans] Fossil robustness

2010-04-20 Thread Adriano Verardo

Hi all.

I'm building an industrial  application  hosted by several independent 
cpu server,

each of them booted from a CFlash on sdD0.

The application doesn't write on sdD0 and there are no redirection on 
local files

in the cpurc scripts.

In this particular situation fossil should be actually used read only so 
allowing

to use write protected CF and/or to suddenly power off the system without
damaging the file system.

Instead, fossil writes on sdD0 (doesn't boot fom a write protected CF) 
and the

power loss destroy the file system more than fifty-fifty.

Unfortunately I cannot guarantee stable/correct operating conditions.

Any suggestion ?

Thanks in advance

adriano



[9fans] SATA boot failure

2010-04-20 Thread Peter A. Cejchan
hi,

using 9atom.iso from Apr 19, installation completes but boot freezes.
here is the transcript:
cpu0: ...
pat: ...
ELCR: CC28
pcirouting: ignoring south bridge PCI 0.31.0 8086/2810
oni 0x732 phyno 1, mccv=0x3800, phyv=0x002
#l0: rtl8169: 100Mb parport 0x6800 irq 10 tu 1514:001a9272efe7
#S/sdE: ahci ahci port 0xe80: sss 1 ncs 31 coal 1 mport 3 led 1 clo 1 ems 1
#S/sdE ahci: Sata II with 4 ports
2047M memory, 256M kernel data, 1791m user, 2416 swap

<--- here it freezes

any hint?
thanks, regards,
++pac