Login
Username:

Password:

Remember me



Lost Password?

Register now!
Main Menu
Who's Online
1 user(s) are online (1 user(s) are browsing Forum)

Members: 0
Guests: 1

more...
   All Posts (Beakster)


(1) 2 3 »


Re: Native port for Raspberry Pi

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Hi,

Been away for quite some time and thought I`d check on how the native Pi port is doing. Seems like it`s stalled :(

I always thought a working port on the Pi would be a great way to attract more developers to Aros.

Would it be worth creating a bounty for Raspberry Pi USB support?

Cheers

Posted on: 7/27 7:39
Transfer the post to other applications Transfer


Re: Native port for Raspberry Pi

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Hey, How's it going with this? Any updates? So far as I understand it we're just waiting on a USB HIDD driver so we can use Keyboard and mouse and then it will be usable?

Posted on: 2013/4/15 12:41
Transfer the post to other applications Transfer


Re: motivating aros development

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
I've experimented a bit with Aros development and one of the things I've found difficult is working with Zune/MUI. I read the MUI docs and the wiki page on Zune but still struggle when creating my own GUIs and wiring up event handlers. So I'd like to see some more tutorials specifically on this.

Posted on: 2012/8/21 7:20
Transfer the post to other applications Transfer


Re: Debugging from a VM

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Never heard of romwack. What is it?

Posted on: 2011/11/9 15:52
Transfer the post to other applications Transfer


Re: Debugging from a VM

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Hi,

Well I've been investigating this and I believe I've fixed it.

I had a look in:
arch/i386-pc/bootstrap/screen.c and the method there used to put characters out on the serial port has a TODO comment saying that it isn't set up properly so probably won't work with a real serial port.

I went into bootstrap.c and added the following lines just before the "[BOOT] Entered AROS Bootstrap" kprint:

kprintf("Before Serial Setup!");
outb(0x00, 0x3F8);
outb(0x80, 0x3FB);
outb(0x0C, 0x3F8);
outb(0x00, 0x3F9);
outb(0x03, 0x3FB);
kprintf("After Serial Setup!");

Now when I run it from cold I get the "Before Serial Setup" appearing corrupted, but then I get the "After Serial Setup" message and everything after it perfectly.

This is testing with VMWare that it appears perfectly all the time now (from cold and warm). With VBox I still see missing characters but no binary nonsense characters. Also with VBox the first 8 lines or so appear with no missing characters so I wonder if the serial port settings are being changed again later on to something vbox doesnt like. I'll investigate some more later.

The above code which I inserted basically sets up COM1 for 9600baud, 8N1.

Posted on: 2011/11/8 21:15
Transfer the post to other applications Transfer


Re: Debugging from a VM

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Ok, I've just spent a few hours experimenting. And here are my findings:

My overall conclusion is that there is something wrong with the way Aros initialises the serial port. I have tested with both VMWare and Virtual box and got slightly different results. Overall VMWare works better but here's what I found. The following tests were perfomed on my laptop running Windows 7sp1 64bit.

VMWare
So I set up a new VM using VMWare Player 3.1.0 build-261024 (free download) and the Icaros ISO. I added a serial port to the VM configured as:
Use named pipe: \\.\pipe\vmwaredebug
This end is the client
The other end is an application
Check: Yield CPU on poll

Before starting the VM I launched "vmwaregateway.exe /T /V" (To monitor the serial output from the virtual machine)

Once this was running, I started the Aros VM, selected a screen mode in Grub and let it boot. I was then presented with the following output from vmwaregateway:

Click to see original Image in a new window

At first it looks like nonsense, but we are expecting "[BOOT]" at the beginning of each line, and you can see there is a pattern there. The little cog symbols correspond to the letter O, so it's like it's using the wrong character set.

Now, with the VM still running, I did a warm reset by selecting Shutdown->Restart Computer in the Wanderer menu. When AROS had reloaded we had this in the output window:

Click to see original Image in a new window

The characters at the beginning are from the last run and everything that was output after the warm reboot is perfect, so it appears like some code to initialise the serial output isn't working properly the first time around. But something that happens later in the boot process fixes it so that after a warm reboot it works perfectly.

I repeated the above test using com2com and Putty. This yielded similar results. The first boot from cold displayed no text, just some line feeds and a bell. On the warm reboot the text appeared perfectly just like the above screenshot.

VirtualBox
I ran the same test with Virtual Box 4.1.4. Set it up using the same pipe and booted from cold. This is what we get:

Click to see original Image in a new window

When compared to the good output above we can see that there is a lot missing, but it does seem more inteligible that what VMWare output after it's cold boot. Now this is what we see after a warm reboot:

Click to see original Image in a new window

The first line in the window above is the last line from the previous run. We can see that what output we do have looks good with no letters missing, but there are a lot of lines missing in the middle and some nonsense characters too. I then reran the test but changed virtual box's serial port to output to a raw file. This showed that we are outputing the text, but there is a load of binary nonsense in the middle and when we view this in the console it must be changing the cursor position, clearing the screen, and overwriting what we have already read.

Click to see original Image in a new window

After this I tested Virtualbox with com2com setup and monitored the output in putty. Here is the cold boot:

Click to see original Image in a new window

and the warm reboot:

Click to see original Image in a new window

Not much difference with Com2Com.

I would conclude that something isn't quite right with what AROS is outputting to the serial port. It seems that VMWare handles it a bit better than VirtualBox on a warm reboot, but they are both having big problems with the cold boot.

My main reason for wanting the debugging working is that I'd like to get a better understanding of the Aros boot process. I'm going to take a look and see if I can find what's causing this problem. I'm not saying there is much chance of me finding and fixing it but I think it would be a good learning exercise. :) I'll report back when/if I find anything noteworthy.

Posted on: 2011/11/1 21:08
Transfer the post to other applications Transfer


Re: Debugging from a VM

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Hi Magorium,

Thanks very much for the reply. I'll give that a shot but first I think I'll try com0com. I'd never heard of it until you mentioned it there and it feels to me like a more sensible way of doing it (a bit closer to a real serial connection).

I had wondered if such a thing was possible in windows but hadn't found anything by googling. It sounds exactly like Nullmodem.device on the Amiga. I used to use that to connect to my MaxsBBS with NComm to do local logins. :)

I'll give it a shot tomorrow night and report back.
Thanks again

Posted on: 2011/10/31 22:06
Transfer the post to other applications Transfer


Debugging from a VM

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Hi,

I've been trying to monitor the serial debug output from an Aros VM running inside Windows.

Ideally I'd like to see the debug info in real time rather than outputting it to a file.

It seems that I can set up a pipe in windows (\\.\pipe\pipename) but there doesn't seem to be any windows software that can connect to such pipes to monitor the output. I got an interface from pipe to telnet so I can try and monitor it with Putty but the output seems corrupted.

Can someone who has done this before give me some pointers?

Thanks

Posted on: 2011/10/31 9:19
Transfer the post to other applications Transfer


Re: This may interest some

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
As AROS can be freely distributed, could this guy not just claim he is simply charging for the DVD and cost of his time to burn it? In the same way as you could pay for a DVD with Ubuntu on it.

Posted on: 2010/12/2 7:14
Transfer the post to other applications Transfer


Re: how to compiling aros from sources in ubuntu linux

Joined:
2008/1/23 9:11
Group:
Member
Posts: 28
Offline
Hi,

I did this just a few weeks ago on a fresh Ubuntu install. One thing I did not mentioned above is that I installed GCC 3.4 because I read somewhere in the docs that it was required. Maybe it works with the latest as well (4.3?), I'm not sure.

Posted on: 2010/11/30 6:45
Transfer the post to other applications Transfer



 Top
(1) 2 3 »




Search
Top Posters
1 paolone
paolone
4364
2 magorium
magorium
4095
3 phoenixkonsole
phoenixkonsole
3892
4 nikolaos
nikolaos
3694
5 deadwood
deadwood
2923
6 ncafferkey
ncafferkey
2648
7 mazze
mazze
2214
8 clusteruk
clusteruk
2111
9 Kalamatee
Kalamatee
2024
10 damocles
damocles
1789
© 2004-2017 AROS Exec