- - | 30 Jan 09:48
Picon
Gravatar

inferno on android. linux-dev-names

i suggest do not embed names of Linux devices to source code, but use a configuration file to read it at boot
time. for example, i not have /dev/fb0, but have /dev/graphics/fb0 on my moto droid2 (perhaps there are
other differences. i don't have environment to rebuild now).
in any case, it is not very convenient - recompile for each device for a pair of strings.

thanks

Ish Rattan | 20 Jan 01:42

carewyn labs


on Inferno that used to be available at caerwyn.com site are not
available now. Is the archive available at some other site?

-ishwar

Richard Sit | 19 Jan 08:30
Picon
Gravatar

Inferno OS

Hi

I am new to Inferno OS.  I have it running on a hosted Linux machine.  My
question is how can I in inferno, ie running emu, list what devices is available
for me to mount.  For example, if I connect up a SD disk via usb.  On the hosted
OS say I can see the device as /dev/sdd.  In inferno, how can see this? Or is
this possible. 

Thanks

Regards
Richard 

Pavel Klinkovský | 17 Jan 14:46
Picon

'/net' not bound in the Inferno hosted by Plan9

Hi all,


I am using Inferno hosted under Plan 9.
I have the latest official version of both OS, Inferno and Plan 9.

When I start 'emu' I do not have '/net' bound:

bind / /
bind -ac '#U' /
bind /dev /dev
bind -b '#m' /dev
bind -b '#c' /dev
bind '#p' /prog
bind '#d' /fd
bind -c '#e' /env
cd /

The man pages assert the 'emu' should import Plan 9's '/net'.

Do I make something wrong?

Thanks in advance.

Pavel Klinkovsky

Ish Rattan | 14 Jan 04:27

Ignore the last post


It comes out that insertion at front is ok, append is problematic..

-ishwar

Ish Rattan | 14 Jan 04:11

Limbo query?


   l : list of (int, string);	(1)
   l = (23, "Joe") :: l;		(2)

1 is accpted by Limbo bu it barfs at 2 with:
   cannot :: (23, "Joe") to of type (int, string)

So how to build a list of tuples?

-ishwar

Shubhangi Tamsekar | 6 Jan 16:09
Picon

Limbo TK GUI reference?

Hi,

Is there any reference site/blog/man pages for Limbo TK programming ? I went through the samples /appl/demo/ folder. However, some of them seem to be created prior to Inferno 4th edition.

Thanks,
Shubhangi

Cheer Xiao | 2 Jan 12:33
Picon
Gravatar

isnan is a macro on Linux, and should be #undef'ed before declaring

Hi,

I was compiling latest Inferno from hg when the compiler complained
about syntax error at include/mathi.h:59. The line reads "extern int
isnan(double);", and it turns out that isnan is a macro on Linux [1]
defined in math.h, and I worked around that by adding "#undef isnan"
above that line. I considered adding that line to
Linux/*/include/lib9.h, below the '#include "math.h"' line, but that's
more tedious.

I suppose this issue is common to all Linux hosts, so you may to fix this.

The mk log was (cc links to clang on my box. clang wasn't able to
compile *with* this bug fixed, but that's another issue.):

(cd libmath; mk  install)
/home/xiaq/src/inferno/Linux/386/lib/libmath.a doesn't exist: assuming
it will be an archive
cc -c -m32 -g -O -Wuninitialized -Wunused -Wreturn-type -Wimplicit
-I/home/xiaq/src/inferno/Linux/386/include
-I/home/xiaq/src/inferno/include -I/usr/X11R6/include -DLINUX_386
blas.c
In file included from blas.c:2:
/home/xiaq/src/inferno/include/mathi.h:59:12: error: expected identifier or '('
extern int isnan(double);
           ^
/usr/include/math.h:258:7: note: expanded from:
     (sizeof (x) == sizeof (float)                                            \
      ^
In file included from blas.c:2:
/home/xiaq/src/inferno/include/mathi.h:59:12: error: expected ')'
/home/xiaq/src/inferno/include/mathi.h:59:12: note: to match this '('
extern int isnan(double);
           ^
/usr/include/math.h:258:6: note: expanded from:
     (sizeof (x) == sizeof (float)                                            \
     ^
2 errors generated.
mk: cc -c -m32 ...  : exit status=exit(1)
mk: for j in ...  : exit status=exit(1)

--

-- 
Regards,
Cheer Xiao aka. xiaq

Cheer Xiao | 31 Dec 05:20
Picon
Gravatar

Patch to fix building with pthread

Hi all,

I was unable to build inferno for SYSHOST=Linux and OBJTYPE=spim.
Compiler complained about duplicate definition of getup(). Apparently
this was caused by the latest move of adopting pthread, and I've made
a quick fix to Linux/mips/include/emu.h, as attached. Very likely
there are other targets affected, but I didn't bother to fix them all.

-- 
Regards,
Cheer Xiao aka. xiaq
diff -r 22ef83c0dd82 Linux/spim/include/emu.h
--- a/Linux/spim/include/emu.h	Fri Dec 30 18:56:40 2011 +0000
+++ b/Linux/spim/include/emu.h	Sat Dec 31 12:07:04 2011 +0800
@@ -20,6 +20,7 @@
  */
 #define KSTACK (16 * 1024)

+#ifndef USE_PTHREADS
 static __inline Proc *getup(void) {
 	Proc *p;
 	__asm__(	"move	%0, $29\n\t"
@@ -27,6 +28,9 @@
 	);
 	return *(Proc **)((unsigned long)p & ~(KSTACK - 1));
 };
+#else
+extern Proc* getup(void);
+#endif

 #define	up	(getup())

Pavel Klinkovský | 30 Dec 12:18
Picon

How to configure the graphic device?

Hi all,


I am trying to test the native Inferno on my old PC (x86 architecture).

I was able to install the Inferno successfuly.
The text mode works fine, commands are executed, the network is able to work.

However I would like to use wm/wm...
I tried all the graphic cards I have, including s3 family, ATI, NVidia.
I checked in the source code the drivers should support such cards according the VendorId/DeviceId pair.

I am using the following sequence to setup the graphic driver:
; echo type <drivername> >/dev/vgactl
; echo drawinit >/dev/vgactl

Real example:
; echo type mach64xx >/dev/vgactl
; echo drawinit >/dev/vgactl

After the last command the shell is frozen forever... :(

Please, can you help me to understand how to setup the graphic driver?
Thanks in advance.

Best regards,

Pavel Klinkovsky

Shubhangi Tamsekar | 15 Dec 08:31
Picon

Any plans for new release

The latest release of Inferno was done in Jan-11....almost a year ago. Are there any plans for new release? 


-Shubhangi

Gmane