Discussion:
[Simh] Problems running simH in Android
Ray Jewhurst
2018-05-06 00:48:03 UTC
Permalink
Greetings

I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
try running it, it starts fine but when I go to run an OS, I get this:

PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>

Any ideas?

Thanks

Ray
Ray Jewhurst
2018-05-06 00:52:24 UTC
Permalink
Oh I forgot to mention that I am running the Arch Linux on Termux
distribution.
Post by Ray Jewhurst
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
Mark Pizzolato
2018-05-06 03:37:38 UTC
Permalink
If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Ray Jewhurst
Sent: Saturday, May 5, 2018 5:48 PM
To: simh <***@trailing-edge.com>
Subject: [Simh] Problems running simH in Android

Greetings

I have been trying forever to get simh to run under the Termux Android shell app and got very close but no cigar. It builds okay but then when I try running it, it starts fine but when I go to run an OS, I get this:

PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>

Any ideas?

Thanks

Ray
Mark Pizzolato
2018-05-07 06:46:35 UTC
Permalink
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Mark Pizzolato
Sent: Saturday, May 5, 2018 8:38 PM
To: Ray Jewhurst <***@gmail.com>; simh <***@trailing-edge.com>
Subject: Re: [Simh] Problems running simH in Android

If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Ray Jewhurst
Sent: Saturday, May 5, 2018 5:48 PM
To: simh <***@trailing-edge.com>
Subject: [Simh] Problems running simH in Android

Greetings

I have been trying forever to get simh to run under the Termux Android shell app and got very close but no cigar. It builds okay but then when I try running it, it starts fine but when I go to run an OS, I get this:

PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>

Any ideas?

Thanks

Ray
Mark Abene
2018-05-09 20:21:27 UTC
Permalink
Volume-down is the Control key in termux. Holding volume-down and hitting
the 'e' key works just fine.

-Mark
The github master branch code should now work under termux on Android for
at least Marshmallow on up. I have tested Marshmallow and Oreo. I would
1) Install termux from the Google Play Store
$ pkg install clang make git
$ git clone https://github.com/simh/simh
$ cd simh
$ make vax
$ BIN/vax
sim> B
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt.
Once you get that far, all the other simulators should build fine and be
usable pretty much like on most other Linux environments. Things which
require root access won’t work since termux doesn’t give you that. It
would be interesting to know if NAT mode networking works for the VAX
simulators

*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
Mark Pizzolato
2018-05-09 20:51:12 UTC
Permalink
That’s great.

Nougat (Android 7.0 and 7.1) are the most interesting ones.

The fix/workaround for original problem you were seeing with tcsetattr() appeared somewhere the Marshmallow and Oreo timeframe. The workaround is implemented specifically for a particular __ANDROID_API__ version level (which directly corresponds to the Android version). Testing on 7.0 and 7.1 will determine when the difference appeared and the workaround can be enabled for these versions.


From: Ray Jewhurst [mailto:***@gmail.com]
Sent: Wednesday, May 9, 2018 1:45 PM
To: Mark Abene <***@phiber.com>
Cc: Mark Pizzolato <***@infocomm.com>; simh <***@trailing-edge.com>
Subject: Re: [Simh] Problems running simH in Android

Lollipop works too.

On Wed, May 9, 2018, 4:21 PM Mark Abene < > wrote:
Volume-down is the Control key in termux. Holding volume-down and hitting the 'e' key works just fine.

-Mark


On Wed, May 9, 2018 at 11:49 AM, Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>> wrote:
The github master branch code should now work under termux on Android for at least Marshmallow on up. I have tested Marshmallow and Oreo. I would appreciate confirmation on other Android versions:


1) Install termux from the Google Play Store

2) Under termux, Install the tool chain:

$ pkg install clang make git

3) Testing with:

$ git clone https://github.com/simh/simh

$ cd simh

$ make vax

$ BIN/vax

sim> B

If you end up at the >>> prompt everything looks good. If you did this without a physical keyboard connected, you won’t be able to type Control-E to get back to the sim> prompt. Just enter B ZZZ which is an unknown device and the boot ROM will halt returning you to the sim> prompt.


Once you get that far, all the other simulators should build fine and be usable pretty much like on most other Linux environments. Things which require root access won’t work since termux doesn’t give you that. It would be interesting to know if NAT mode networking works for the VAX simulators


From: Mark Pizzolato
Sent: Tuesday, May 8, 2018 11:00 PM

To: Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>>; Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: RE: [Simh] Problems running simH in Android

Hi Ray,

Give the latest github code a try.

BTW, what Android version is running on your phone/tablet?

What is the output of ‘uname –a’ in your termux session?


- Mark
__
From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Mark Pizzolato
Sent: Tuesday, May 8, 2018 8:13 AM
To: Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: Re: [Simh] Problems running simH in Android

To follow up a little more on this.

The call to tcsetattr() is failing with errno: 13 – Permission denied

From: Mark Pizzolato
Sent: Sunday, May 6, 2018 11:47 PM
To: Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>>; Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: RE: [Simh] Problems running simH in Android

I did a little digging and struggled with typing a whole bunch on my
phone.

The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Mark Pizzolato
Sent: Saturday, May 5, 2018 8:38 PM
To: Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: Re: [Simh] Problems running simH in Android

If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Ray Jewhurst
Sent: Saturday, May 5, 2018 5:48 PM
To: simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: [Simh] Problems running simH in Android

Greetings

I have been trying forever to get simh to run under the Termux Android shell app and got very close but no cigar. It builds okay but then when I try running it, it starts fine but when I go to run an OS, I get this:

PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>

Any ideas?

Thanks

Ray

_______________________________________________
Simh mailing list
***@trailing-edge.com<mailto:***@trailing-edge.com>
http://mailman.trailing-edge.com/mailman/listinfo/simh
Ray Jewhurst
2018-05-09 23:17:26 UTC
Permalink
I just got that error too and now after doing a make clean, I cannot build
anything.
I'm having issues compiling on the note 8 with android 8.
Getting glob.h not found on the altairz80 and most give a warning about
redefinition of *DIR_ENTRY_CALLBACK
Kernel if 4.4.78
Works fine for me - LineageOS 14.1 (which is basically Nougat 7.1) on a
Nexus 7 tablet.
John.
The github master branch code should now work under termux on Android for
at least Marshmallow on up. I have tested Marshmallow and Oreo. I would
1) Install termux from the Google Play Store
$ pkg install clang make git
$ git clone https://github.com/simh/simh
$ cd simh
$ make vax
$ BIN/vax
sim> B
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt.
Once you get that far, all the other simulators should build fine and be
usable pretty much like on most other Linux environments. Things which
require root access won’t work since termux doesn’t give you that. It
would be interesting to know if NAT mode networking works for the VAX
simulators

*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
Gene Irwin
2018-05-09 23:51:11 UTC
Permalink
At least it's not just me.
Post by Ray Jewhurst
I just got that error too and now after doing a make clean, I cannot build
anything.
I'm having issues compiling on the note 8 with android 8.
Getting glob.h not found on the altairz80 and most give a warning about
redefinition of *DIR_ENTRY_CALLBACK
Kernel if 4.4.78
Works fine for me - LineageOS 14.1 (which is basically Nougat 7.1) on a
Nexus 7 tablet.
John.
The github master branch code should now work under termux on Android
for at least Marshmallow on up. I have tested Marshmallow and Oreo. I
1) Install termux from the Google Play Store
$ pkg install clang make git
$ git clone https://github.com/simh/simh
$ cd simh
$ make vax
$ BIN/vax
sim> B
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt.
Once you get that far, all the other simulators should build fine and be
usable pretty much like on most other Linux environments. Things which
require root access won’t work since termux doesn’t give you that. It
would be interesting to know if NAT mode networking works for the VAX
simulators

*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
Gene Irwin
2018-05-10 16:24:24 UTC
Permalink
Ok. So I switched to my tablet (Samsung tab a) running 7.1.1 and things
built fine. I pulled the software kit for rsts and when I tried to mount
the prebuilt rl0 the simulator errored.

RL0: non expandable disk rsts_full_r.dsk is smaller than simulated device
(2617KW < 2621KW)

File size according to ls -l is 5235200

Any ideas?
Skip the AltairZ80 for now. The change that caused the redefinition was
done to potentially help the AltairZ80 author to fix the glob.h missing
issue.
Pull the latest and you should hopefully be able to build all but the
AltairZ80 simulator.
Jewhurst
*Sent:* Wednesday, May 9, 2018 4:17 PM
*Subject:* Re: [Simh] Problems running simH in Android
I just got that error too and now after doing a make clean, I cannot build
anything.
I'm having issues compiling on the note 8 with android 8.
Getting glob.h not found on the altairz80 and most give a warning about
redefinition of *DIR_ENTRY_CALLBACK
Kernel if 4.4.78
Works fine for me - LineageOS 14.1 (which is basically Nougat 7.1) on a
Nexus 7 tablet.
John.
The github master branch code should now work under termux on Android for
at least Marshmallow on up. I have tested Marshmallow and Oreo. I would
1) Install termux from the Google Play Store
$ pkg install clang make git
$ git clone https://github.com/simh/simh
$ cd simh
$ make vax
$ BIN/vax
sim> B
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt.
Once you get that far, all the other simulators should build fine and be
usable pretty much like on most other Linux environments. Things which
require root access won’t work since termux doesn’t give you that. It
would be interesting to know if NAT mode networking works for the VAX
simulators

*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
Ray Jewhurst
2018-05-09 20:22:44 UTC
Permalink
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt
Works great and if you use the Hackers Keyboard (which I recommend for
Termux anyway) you can ctl-e. I tried it on Oreo and am about to try it on
Lollipop.

Thank you so very much

Ray
*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with tcgetattr()
then those attributes are adjusted so that every character typed is received
without any interpretation by the OS and output is also not translated (i.e.
\n only sends a LF character instead of CRLF characters). The error message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
Mike Stramba
2018-05-07 01:35:02 UTC
Permalink
I'm not familiar with Termux Android or the Android NDK

https://developer.android.com/ndk

Would the NDK be more sutiable ?

I see that Henry Bent had some success with the NDK :

Mike

----------------------------------------------------------------
https://www.mail-archive.com/***@trailing-edge.com/msg05131.html

Mon, 12 Sep 2016 08:00:55 -0700

I did a proof of concept build a while back using the Android NDK. It
required manually compiling libpcap for networking support but as I recall
it was fully functional. I was able to bring up 4.2BSD on a vax780 but disk
access was painfully slow. I was running as root so I have no idea how well
it would run on a non-rooted phone. So it's certainly possible but there
are bugs to be worked out.

--------------------------------------------------------------------------
Post by Ray Jewhurst
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
Gene Irwin
2018-05-10 21:33:37 UTC
Permalink
Same issue on my desktop.

I have used this very same process on older versions with my desktop
running an AMD FX processor, linux mint 18, and it has worked.

I went to the trailing edge page and went to the software kits section and
downloaded the 2 RSTS images.

I have looked in my archived copies if the kit, and the file sizes for the
disk images in my archived copy match the newly downloaded one.

an older copy of the pdp11 executable on my system mounts the image fine:

PDP-11 simulator V4.0-0 Beta git commit id: 9d2079df
sim> set cpu 1m
Disabling RK
Disabling HK
Disabling TM
sim> at rl0 rsts_full_rl.dsk
sim>

But the current build does not (same image file):

PDP-11 simulator V4.0-0 Current git commit id: c1894a7d
sim> set cpu 1m
Disabling RK
Disabling HK
Disabling TM
sim> at rl0 rsts_full_rl.dsk
RL0: non expandable disk rsts_full_rl.dsk is smaller than simulated device
(2617KW < 2621KW)
File open error
sim>

this image I am using (rsts_full_rl.dsk) is newly downloaded from the kits
page on the
trailing edge site.
First, please follow the exact same steps (grabbing the same disk image),
using the same configuration file on any of your other favorite simh
hosts. If this produces the same result, then it's not a platform problem.
In any case, precisely describe the steps, configuration file and source
of the disk image.
Let me know what you find.
- Mark
Ok. So I switched to my tablet (Samsung tab a) running 7.1.1 and things
built fine. I pulled the software kit for rsts and when I tried to mount
the prebuilt rl0 the simulator errored.
RL0: non expandable disk rsts_full_r.dsk is smaller than simulated device
(2617KW < 2621KW)
File size according to ls -l is 5235200
Any ideas?
Skip the AltairZ80 for now. The change that caused the redefinition was
done to potentially help the AltairZ80 author to fix the glob.h missing
issue.
Pull the latest and you should hopefully be able to build all but the
AltairZ80 simulator.
Jewhurst
*Sent:* Wednesday, May 9, 2018 4:17 PM
*Subject:* Re: [Simh] Problems running simH in Android
I just got that error too and now after doing a make clean, I cannot build
anything.
I'm having issues compiling on the note 8 with android 8.
Getting glob.h not found on the altairz80 and most give a warning about
redefinition of *DIR_ENTRY_CALLBACK
Kernel if 4.4.78
Works fine for me - LineageOS 14.1 (which is basically Nougat 7.1) on a
Nexus 7 tablet.
John.
The github master branch code should now work under termux on Android for
at least Marshmallow on up. I have tested Marshmallow and Oreo. I would
1) Install termux from the Google Play Store
$ pkg install clang make git
$ git clone https://github.com/simh/simh
$ cd simh
$ make vax
$ BIN/vax
sim> B
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt.
Once you get that far, all the other simulators should build fine and be
usable pretty much like on most other Linux environments. Things which
require root access won’t work since termux doesn’t give you that. It
would be interesting to know if NAT mode networking works for the VAX
simulators

*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with
tcgetattr()
then those attributes are adjusted so that every character typed is
received
without any interpretation by the OS and output is also not translated
(i.e.
\n only sends a LF character instead of CRLF characters). The error
message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create
an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
Gene Irwin
2018-05-10 23:51:28 UTC
Permalink
interestingly enough the pdp8 simulator seems fine. At least with rx devices
Post by Gene Irwin
Same issue on my desktop.
I have used this very same process on older versions with my desktop
running an AMD FX processor, linux mint 18, and it has worked.
I went to the trailing edge page and went to the software kits section and
downloaded the 2 RSTS images.
I have looked in my archived copies if the kit, and the file sizes for the
disk images in my archived copy match the newly downloaded one.
PDP-11 simulator V4.0-0 Beta git commit id: 9d2079df
sim> set cpu 1m
Disabling RK
Disabling HK
Disabling TM
sim> at rl0 rsts_full_rl.dsk
sim>
PDP-11 simulator V4.0-0 Current git commit id: c1894a7d
sim> set cpu 1m
Disabling RK
Disabling HK
Disabling TM
sim> at rl0 rsts_full_rl.dsk
RL0: non expandable disk rsts_full_rl.dsk is smaller than simulated device
(2617KW < 2621KW)
File open error
sim>
this image I am using (rsts_full_rl.dsk) is newly downloaded from the kits
page on the
trailing edge site.
First, please follow the exact same steps (grabbing the same disk image),
using the same configuration file on any of your other favorite simh
hosts. If this produces the same result, then it's not a platform problem.
In any case, precisely describe the steps, configuration file and source
of the disk image.
Let me know what you find.
- Mark
Ok. So I switched to my tablet (Samsung tab a) running 7.1.1 and things
built fine. I pulled the software kit for rsts and when I tried to mount
the prebuilt rl0 the simulator errored.
RL0: non expandable disk rsts_full_r.dsk is smaller than simulated device
(2617KW < 2621KW)
File size according to ls -l is 5235200
Any ideas?
Skip the AltairZ80 for now. The change that caused the redefinition was
done to potentially help the AltairZ80 author to fix the glob.h missing
issue.
Pull the latest and you should hopefully be able to build all but the
AltairZ80 simulator.
Jewhurst
*Sent:* Wednesday, May 9, 2018 4:17 PM
*Subject:* Re: [Simh] Problems running simH in Android
I just got that error too and now after doing a make clean, I cannot
build anything.
I'm having issues compiling on the note 8 with android 8.
Getting glob.h not found on the altairz80 and most give a warning about
redefinition of *DIR_ENTRY_CALLBACK
Kernel if 4.4.78
Works fine for me - LineageOS 14.1 (which is basically Nougat 7.1) on a
Nexus 7 tablet.
John.
The github master branch code should now work under termux on Android for
at least Marshmallow on up. I have tested Marshmallow and Oreo. I would
1) Install termux from the Google Play Store
$ pkg install clang make git
$ git clone https://github.com/simh/simh
$ cd simh
$ make vax
$ BIN/vax
sim> B
If you end up at the >>> prompt everything looks good. If you did this
without a physical keyboard connected, you won’t be able to type Control-E
to get back to the sim> prompt. Just enter B ZZZ which is an unknown
device and the boot ROM will halt returning you to the sim> prompt.
Once you get that far, all the other simulators should build fine and be
usable pretty much like on most other Linux environments. Things which
require root access won’t work since termux doesn’t give you that. It
would be interesting to know if NAT mode networking works for the VAX
simulators

*From:* Mark Pizzolato
*Sent:* Tuesday, May 8, 2018 11:00 PM
*Subject:* RE: [Simh] Problems running simH in Android
Hi Ray,
Give the latest github code a try.
BTW, what Android version is running on your phone/tablet?
What is the output of ‘uname –a’ in your termux session?
- Mark
__
*Sent:* Tuesday, May 8, 2018 8:13 AM
*Subject:* Re: [Simh] Problems running simH in Android
To follow up a little more on this.
The call to tcsetattr() is failing with errno: 13 – Permission denied
*From:* Mark Pizzolato
*Sent:* Sunday, May 6, 2018 11:47 PM
*Subject:* RE: [Simh] Problems running simH in Android
I did a little digging and struggled with typing a whole bunch on my
phone.
The problem you’re seeing is due to the Linux OS environment you’re
running under doesn’t support ‘raw’ mode for terminal I/O. When you
start a simulator the traffic to/from the simulated console device is
expected to be exactly the characters that the user types on the console
keyboard. To achieve this, the current tt mode is gathered with
tcgetattr()
then those attributes are adjusted so that every character typed is
received
without any interpretation by the OS and output is also not translated
(i.e.
\n only sends a LF character instead of CRLF characters). The error
message,
you seeing is due to the call a tcsetattr() failing.
*Sent:* Saturday, May 5, 2018 8:38 PM
*Subject:* Re: [Simh] Problems running simH in Android
If you’re not comfortable digging into this yourself, then please create
an
Issue at https://github.com/simh/simh/issues and spell out exactly how to
recreate your setup and reproduce the problem.
*Sent:* Saturday, May 5, 2018 5:48 PM
*Subject:* [Simh] Problems running simH in Android
Greetings
I have been trying forever to get simh to run under the Termux Android
shell app and got very close but no cigar. It builds okay but then when I
PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8
sim> do rt1154f.ini
Disabling XQ
rt1154f.ini-3> b rk0
sim_ttrun() returned: Console input I/O error
sim>
Any ideas?
Thanks
Ray
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
_______________________________________________
Simh mailing list
http://mailman.trailing-edge.com/mailman/listinfo/simh
David Moisan
2018-05-17 02:51:42 UTC
Permalink
This is the same issue I brought up on github yesterday. Mark suggested this:

ATTACH RL0 -F SIMH yourdiskimage.dsk.

Replace RL0 with your emulated device.

I have not tried this on Android, but I have RSTS/E running on an ARM board running Raspian.

From: Simh <simh-***@trailing-edge.com> On Behalf Of Gene Irwin
Sent: Thursday, May 10, 2018 7:51 PM
To: Mark Pizzolato <***@infocomm.com>
Cc: ***@trailing-edge.com
Subject: Re: [Simh] Problems running simH in Android

interestingly enough the pdp8 simulator seems fine. At least with rx devices
On Thu, May 10, 2018, 2:33 PM Gene Irwin <***@gmail.com<mailto:***@gmail.com>> wrote:
Same issue on my desktop.

I have used this very same process on older versions with my desktop running an AMD FX processor, linux mint 18, and it has worked.

I went to the trailing edge page and went to the software kits section and downloaded the 2 RSTS images.

I have looked in my archived copies if the kit, and the file sizes for the disk images in my archived copy match the newly downloaded one.

an older copy of the pdp11 executable on my system mounts the image fine:

PDP-11 simulator V4.0-0 Beta git commit id: 9d2079df
sim> set cpu 1m
Disabling RK
Disabling HK
Disabling TM
sim> at rl0 rsts_full_rl.dsk
sim>

But the current build does not (same image file):

PDP-11 simulator V4.0-0 Current git commit id: c1894a7d
sim> set cpu 1m
Disabling RK
Disabling HK
Disabling TM
sim> at rl0 rsts_full_rl.dsk
RL0: non expandable disk rsts_full_rl.dsk is smaller than simulated device (2617KW < 2621KW)
File open error
sim>

this image I am using (rsts_full_rl.dsk) is newly downloaded from the kits page on the
trailing edge site.

On Thu, May 10, 2018 at 9:37 AM Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>> wrote:
First, please follow the exact same steps (grabbing the same disk image), using the same configuration file on any of your other favorite simh hosts. If this produces the same result, then it's not a platform problem.

In any case, precisely describe the steps, configuration file and source of the disk image.

Let me know what you find.

- Mark

On May 10, 2018 9:24 AM, Gene Irwin <***@gmail.com<mailto:***@gmail.com>> wrote:
Ok. So I switched to my tablet (Samsung tab a) running 7.1.1 and things built fine. I pulled the software kit for rsts and when I tried to mount the prebuilt rl0 the simulator errored.

RL0: non expandable disk rsts_full_r.dsk is smaller than simulated device (2617KW < 2621KW)

File size according to ls -l is 5235200

Any ideas?
On Wed, May 9, 2018, 4:52 PM Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>> wrote:

Skip the AltairZ80 for now. The change that caused the redefinition was done to potentially help the AltairZ80 author to fix the glob.h missing issue.



Pull the latest and you should hopefully be able to build all but the AltairZ80 simulator.



From: Simh [mailto:simh-***@trailing-edge.com<mailto:simh-***@trailing-edge.com>] On Behalf Of Ray Jewhurst
Sent: Wednesday, May 9, 2018 4:17 PM
To: Gene Irwin <***@gmail.com<mailto:***@gmail.com>>
Cc: simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>

Subject: Re: [Simh] Problems running simH in Android



I just got that error too and now after doing a make clean, I cannot build anything.



On Wed, May 9, 2018, 6:45 PM Gene Irwin <***@gmail.com<mailto:***@gmail.com>> wrote:

I'm having issues compiling on the note 8 with android 8.

Getting glob.h not found on the altairz80 and most give a warning about redefinition of *DIR_ENTRY_CALLBACK

Kernel if 4.4.78



On Wed, May 9, 2018 at 2:05 PM John Forecast <***@forecast.name<mailto:***@forecast.name>> wrote:

Works fine for me - LineageOS 14.1 (which is basically Nougat 7.1) on a Nexus 7 tablet.



John.



On May 9, 2018, at 2:49 PM, Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>> wrote:



The github master branch code should now work under termux on Android for at least Marshmallow on up. I have tested Marshmallow and Oreo. I would appreciate confirmation on other Android versions:



1) Install termux from the Google Play Store

2) Under termux, Install the tool chain:

$ pkg install clang make git

3) Testing with:

$ git clone https://github.com/simh/simh

$ cd simh

$ make vax

$ BIN/vax

sim> B

If you end up at the >>> prompt everything looks good. If you did this without a physical keyboard connected, you won’t be able to type Control-E to get back to the sim> prompt. Just enter B ZZZ which is an unknown device and the boot ROM will halt returning you to the sim> prompt.



Once you get that far, all the other simulators should build fine and be usable pretty much like on most other Linux environments. Things which require root access won’t work since termux doesn’t give you that. It would be interesting to know if NAT mode networking works for the VAX simulators




From: Mark Pizzolato
Sent: Tuesday, May 8, 2018 11:00 PM
To: Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>>; Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: RE: [Simh] Problems running simH in Android



Hi Ray,



Give the latest github code a try.



BTW, what Android version is running on your phone/tablet?



What is the output of ‘uname –a’ in your termux session?



- Mark

__

From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Mark Pizzolato
Sent: Tuesday, May 8, 2018 8:13 AM
To: Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: Re: [Simh] Problems running simH in Android



To follow up a little more on this.



The call to tcsetattr() is failing with errno: 13 – Permission denied



From: Mark Pizzolato
Sent: Sunday, May 6, 2018 11:47 PM
To: Mark Pizzolato <***@infocomm.com<mailto:***@infocomm.com>>; Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: RE: [Simh] Problems running simH in Android



I did a little digging and struggled with typing a whole bunch on my

phone.



The problem you’re seeing is due to the Linux OS environment you’re

running under doesn’t support ‘raw’ mode for terminal I/O. When you

start a simulator the traffic to/from the simulated console device is

expected to be exactly the characters that the user types on the console

keyboard. To achieve this, the current tt mode is gathered with tcgetattr()

then those attributes are adjusted so that every character typed is received

without any interpretation by the OS and output is also not translated (i.e.

\n only sends a LF character instead of CRLF characters). The error message,

you seeing is due to the call a tcsetattr() failing.



From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Mark Pizzolato
Sent: Saturday, May 5, 2018 8:38 PM
To: Ray Jewhurst <***@gmail.com<mailto:***@gmail.com>>; simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: Re: [Simh] Problems running simH in Android



If you’re not comfortable digging into this yourself, then please create an

Issue at https://github.com/simh/simh/issues and spell out exactly how to

recreate your setup and reproduce the problem.



From: Simh [mailto:simh-***@trailing-edge.com] On Behalf Of Ray Jewhurst
Sent: Saturday, May 5, 2018 5:48 PM
To: simh <***@trailing-edge.com<mailto:***@trailing-edge.com>>
Subject: [Simh] Problems running simH in Android



Greetings



I have been trying forever to get simh to run under the Termux Android shell app and got very close but no cigar. It builds okay but then when I try running it, it starts fine but when I go to run an OS, I get this:



PDP-11 simulator V4.0-0 Current git commit id: f2f4bfa8

sim> do rt1154f.ini

Disabling XQ

rt1154f.ini-3> b rk0

sim_ttrun() returned: Console input I/O error

sim>



Any ideas?



Thanks



Ray

_______________________________________________
Simh mailing list
***@trailing-edge.com<mailto:***@trailing-edge.com>
http://mailman.trailing-edge.com/mailman/listinfo/simh



_______________________________________________
Simh mailing list
***@trailing-edge.com<mailto:***@trailing-edge.com>
http://mailman.trailing-edge.com/mailman/listinfo/simh

_______________________________________________
Simh mailing list
***@trailing-edge.com<mailto:***@trailing-edge.com>
http://mailman.trailing-edge.com/mailman/listinfo/simh

Loading...