[Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread John Southern
Hi All,

Is anyone able to assit or at least start me off on a general direction.
I am trying to get the uQLx running on a slow (MK.all takes 160 seconds), 
memory restricted Raspberry Pi with the Armel architecture.

Following Javier's instructions from a message sent 10:17 27/11/2009 I edited 
the config file to the gcc version I was using and commented out the line in 
unixstuff.c for RTOP. I used gcc 4.1.3 although 4.4 gives an identical error.
The install appears to run without throwing up errors although there are 
plenty of warnings.

When I try to start the emulator, the outline of the QL screen briefly flashes 
up on screen before I get the followinf error message

pi@raspberrypi:~/bin$ ./qm 
problem, stat failed : No such file or directory
 - MountPoint /dev/fd0 for device FLP1_ may not be accessible
*** QL Emulator v0.81 ***
release 2010-02-25

Terminate on signal 11
This may be due to an internal error,
a feature not emulated or an 68000 exception
that typically occurs only when QDOS is unrecoverably
out of control
FATAL error, PC may not be displayed correctly
DebugInfo: PC=16c, code=adc7, SupervisorMode: yes USP=0 SSp=3 A7=3
Register Dump:   Dn An
0  0   0
1  0   0
2  0   0
3  0   0
4  0   0
5  0   0
6  0   0
7  0   3
pi@raspberrypi:~/bin$

Regards
John

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Martin Wheatley

On 24/05/2012 12:37, John Southern wrote:


Hi John - nice to hear you are still about.  Takes me back to one 
evening in the top room of a pub near Tony's
You and I and Colin Murphy were over in one corner meeting for the first 
time and the experts were all at the

tables dazzling each other!

martinw
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread tobias.froesc...@t-online.de
John,
if you have defined USE_VM, be aware that ARM-Linux uses a signal stack 
different from that of x86 Linux.
I don't have the sources at hand here, but it should be within vm_linux.c where 
the signal handler picks up information from the sigcontext in order to find 
where an instruction that needs patching occured. Linux x86 has the offending 
address in a different field than Linux ARM.

Will try and come back to you with more details in the evening when I'm home.

Cheers,
Tobias

-Original-Nachricht-
Von: John Southern j...@sinoda.demon.co.uk
An: ql-us...@q-v-d.com
Betreff: [Ql-Users] Errors with uQLx on Raspberry Pi
Datum: Thu, 24 May 2012 13:37:02 +0200

Hi All,

Is anyone able to assit or at least start me off on a general direction.
I am trying to get the uQLx running on a slow (MK.all takes 160 seconds), 
memory restricted Raspberry Pi with the Armel architecture.

Following Javier's instructions from a message sent 10:17 27/11/2009 I edited 
the config file to the gcc version I was using and commented out the line in 
unixstuff.c for RTOP. I used gcc 4.1.3 although 4.4 gives an identical error.
The install appears to run without throwing up errors although there are 
plenty of warnings.

When I try to start the emulator, the outline of the QL screen briefly flashes 
up on screen before I get the followinf error message

pi@raspberrypi:~/bin$ ./qm 
problem, stat failed : No such file or directory
 - MountPoint /dev/fd0 for device FLP1_ may not be accessible
*** QL Emulator v0.81 ***
release 2010-02-25

Terminate on signal 11
This may be due to an internal error,
a feature not emulated or an 68000 exception
that typically occurs only when QDOS is unrecoverably
out of control
FATAL error, PC may not be displayed correctly
DebugInfo: PC=16c, code=adc7, SupervisorMode: yes USP=0 SSp=3 A7=3
Register Dump:   Dn An
0  0   0
1  0   0
2  0   0
3  0   0
4  0   0
5  0   0
6  0   0
7  0   3
pi@raspberrypi:~/bin$

Regards
John

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm



___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Tony Firshman

Martin Wheatley wrote, on 24/May/12 12:59 | May24:

On 24/05/2012 12:37, John Southern wrote:


Hi John - nice to hear you are still about. Takes me back to one evening
in the top room of a pub near Tony's
You and I and Colin Murphy were over in one corner meeting for the first
time and the experts were all at the
tables dazzling each other!


(8-)#

I don't recall a 'top room' - what pub was it?
I remember a side room in a pub in SOuthwick Street, Paddington near 12 
Bouverie Place.


It became a restaurant, and is now empty!

... or are you referring to another Tony?

Tony


--
   t...@firshman.co.uk http://firshman.co.uk
Voice: +44(0)1442-828254 Fax: +44(0)1442-828255 Skype: tonyfirshman
TF Services, 29 Longfield Road, TRING, Herts, HP23 4DG
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Dave Walker
John,

My Raspberry PI shipped today, so I hope to be trying this myself over the 
weekend.  I am interested to hear if you resolve this issue, and if not I may 
be looking at it myself.

Dave Walker

Home:  01707 652791
Web:www.itimpi.com
Skype:  itimpi

Sent from my iPad3

On 24 May 2012, at 12:37, John Southern j...@sinoda.demon.co.uk wrote:

 Hi All,
 
 Is anyone able to assit or at least start me off on a general direction.
 I am trying to get the uQLx running on a slow (MK.all takes 160 seconds), 
 memory restricted Raspberry Pi with the Armel architecture.
 
 Following Javier's instructions from a message sent 10:17 27/11/2009 I edited 
 the config file to the gcc version I was using and commented out the line in 
 unixstuff.c for RTOP. I used gcc 4.1.3 although 4.4 gives an identical error.
 The install appears to run without throwing up errors although there are 
 plenty of warnings.
 
 When I try to start the emulator, the outline of the QL screen briefly 
 flashes 
 up on screen before I get the followinf error message
 
 pi@raspberrypi:~/bin$ ./qm 
 problem, stat failed : No such file or directory
 - MountPoint /dev/fd0 for device FLP1_ may not be accessible
 *** QL Emulator v0.81 ***
 release 2010-02-25
 
 Terminate on signal 11
 This may be due to an internal error,
 a feature not emulated or an 68000 exception
 that typically occurs only when QDOS is unrecoverably
 out of control
 FATAL error, PC may not be displayed correctly
 DebugInfo: PC=16c, code=adc7, SupervisorMode: yes USP=0 SSp=3 A7=3
 Register Dump:   Dn An
 0  0   0
 1  0   0
 2  0   0
 3  0   0
 4  0   0
 5  0   0
 6  0   0
 7  0   3
 pi@raspberrypi:~/bin$
 
 Regards
 John
 
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Malcolm Lear

Yes, just received mine. Odd thing is its got a Samsung CPU.


On 24/05/2012 15:10, Dave Walker wrote:

John,

My Raspberry PI shipped today, so I hope to be trying this myself over the 
weekend.  I am interested to hear if you resolve this issue, and if not I may 
be looking at it myself.

Dave Walker

Home:  01707 652791
Web:www.itimpi.com
Skype:  itimpi

Sent from my iPad3

On 24 May 2012, at 12:37, John Southernj...@sinoda.demon.co.uk  wrote:


Hi All,

Is anyone able to assit or at least start me off on a general direction.
I am trying to get the uQLx running on a slow (MK.all takes 160 seconds),
memory restricted Raspberry Pi with the Armel architecture.

Following Javier's instructions from a message sent 10:17 27/11/2009 I edited
the config file to the gcc version I was using and commented out the line in
unixstuff.c for RTOP. I used gcc 4.1.3 although 4.4 gives an identical error.
The install appears to run without throwing up errors although there are
plenty of warnings.

When I try to start the emulator, the outline of the QL screen briefly flashes
up on screen before I get the followinf error message

pi@raspberrypi:~/bin$ ./qm
problem, stat failed : No such file or directory
- MountPoint /dev/fd0 for device FLP1_ may not be accessible
*** QL Emulator v0.81 ***
release 2010-02-25

Terminate on signal 11
This may be due to an internal error,
a feature not emulated or an 68000 exception
that typically occurs only when QDOS is unrecoverably
out of control
FATAL error, PC may not be displayed correctly
DebugInfo: PC=16c, code=adc7, SupervisorMode: yes USP=0 SSp=3 A7=3
Register Dump:   Dn An
0  0   0
1  0   0
2  0   0
3  0   0
4  0   0
5  0   0
6  0   0
7  0   3
pi@raspberrypi:~/bin$

Regards
John

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Norman Dunbar

On 24/05/12 15:38, Malcolm Lear wrote:

Yes, just received mine. Odd thing is its got a Samsung CPU.
Are you sure? The chip on top is the RAM but the CPU is underneath it. 
They are piggy backed. The CPU is a Broadcom device.



Cheers,
Norm.

--
Norman Dunbar
Dunbar IT Consultants Ltd

Registered address:
Thorpe House
61 Richardshaw Lane
Pudsey
West Yorkshire
United Kingdom
LS28 7EL

Company Number: 05132767
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Martin Wheatley

On 24/05/2012 14:10, Tony Firshman wrote:

Martin Wheatley wrote, on 24/May/12 12:59 | May24:

On 24/05/2012 12:37, John Southern wrote:


Hi John - nice to hear you are still about. Takes me back to one evening
in the top room of a pub near Tony's
You and I and Colin Murphy were over in one corner meeting for the first
time and the experts were all at the
tables dazzling each other!


(8-)#

I don't recall a 'top room' - what pub was it?
I remember a side room in a pub in SOuthwick Street, Paddington near 
12 Bouverie Place.


It became a restaurant, and is now empty!

... or are you referring to another Tony?

Tony



That was probably it.  It gets hazy after such a time!
___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Malcolm Lear
Well if they are piggy backed that would explain it, rather unusual but 
a good idea.



On 24/05/2012 16:25, Norman Dunbar wrote:

On 24/05/12 15:38, Malcolm Lear wrote:

Yes, just received mine. Odd thing is its got a Samsung CPU.
Are you sure? The chip on top is the RAM but the CPU is underneath it. 
They are piggy backed. The CPU is a Broadcom device.



Cheers,
Norm.


___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm


Re: [Ql-Users] Errors with uQLx on Raspberry Pi

2012-05-24 Thread Tobias Fröschle
John,
back at home, I can't seem to find the ARM sources right now, but from memory:

I had to initialize the sigsegv signal handler differently (putting the handler 
into sac.sa_sigaction instead of sac.sa_handler (in unixstuff.c) in order to 
get a siginfo_t as second argument instead of a struct sigcontext to the 
SIGSEGV signal handler.
In the signal handler, I could then get the fault address from the siginfo_t 
(the sigcontext doesn't seem to have it on ARM Linux). I think the correct 
member was siginfo_t-fault_address.

What happens in your code seems to be that you're not getting the correct fault 
address, the code finds out this is not within the QL's address space and bails 
out.

If I remember right, those were the only changes to make it work. (Not on a 
RPI, but on a Genesi ARM Smartbook, but that shouldn't matter)

If you need more help, just come back on me.

Cheers,
Tobias


Am 24.05.2012 um 13:59 schrieb Martin Wheatley:

 On 24/05/2012 12:37, John Southern wrote:
 
 
 Hi John - nice to hear you are still about.  Takes me back to one evening in 
 the top room of a pub near Tony's
 You and I and Colin Murphy were over in one corner meeting for the first time 
 and the experts were all at the
 tables dazzling each other!
 
 martinw
 ___
 QL-Users Mailing List
 http://www.q-v-d.demon.co.uk/smsqe.htm

___
QL-Users Mailing List
http://www.q-v-d.demon.co.uk/smsqe.htm