Welcome
Welcome to a320

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Any and all A320 homebrew topics

Moderator: Moderators

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby cyberic99 on Thu Jul 23, 2009 5:32 pm

Yes I use a full qemu vm.

I tried to use user space emulation, but the fork() isn't working so you can have a shell but you can't launch anything.
That would give us an enormous speed increase to use user mode emulation... any qemu-mipsel guru here?

For the framebuffer, it is a bit tricky with qemu... I don't remember if it really worked. I think it worked but I couldn't directly see the display. But I could take screenshots.
I remember launching snes9x, and fbgrab to take snapshots, and getting .jpg of mario... ;-)
we can also launch x11vnc which can grab from a framebuffer.
This is very slow but usable.

All you have to do is to insmod cirrus logic modules, that is the card that qemu emulates. But the resolution is not the same as the dingoo. I think this could easily be changed in qemu source.

I started from this instructions:
http://www.aurel32.net/info/debian_mips_qemu.php

Be warned that the performance is AWFULL but at least you get native compilation.

It took 3 days to compile the kernel...

Maybe we could recap the instructions, and a clear tutorial, at opendingoo's wiki.

PS: I describe the problem with user mode emulation here:
http://qemu-forum.ipi.fi/viewtopic.php?f=3&t=3003
cyberic99
 
Posts: 36
Joined: Sat Jun 27, 2009 2:44 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby batman52 on Thu Jul 23, 2009 6:26 pm

I tried to use user space emulation, but the fork() isn't working so you can have a shell but you can't launch anything.
That would give us an enormous speed increase to use user mode emulation... any qemu-mipsel guru here?


Maybe this could still be useful to test stand-alone apps instead of the whole system?

For the framebuffer, it is a bit tricky with qemu... I don't remember if it really worked. I think it worked but I couldn't directly see the display. But I could take screenshots.

That doesn't sound SO good...

we can also launch x11vnc which can grab from a framebuffer.
This is very slow but usable.

This shouldn't be too bad! But I still can actually understand HOW it works...

I tried this:
Code: Select all
qemu-system-mipsel  -L . -m 32 -kernel zImage -initrd rootfs -append "root=/dev/ram console=tty0 console=ttyS0 init=/bin/sh"


but i get:
qemu:could not load kernel zImage

so I added the -nographic option (following the example) and it gives.

qemu:could not open monitor stdio

it seems to me that the kernel is loaded and "wants" write on the screen, that isn't properly configured...

All you have to do is to insmod cirrus logic modules


You mean that i have to compile them?
batman52
 
Posts: 47
Joined: Wed Jun 10, 2009 8:48 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby cyberic99 on Fri Jul 24, 2009 9:17 am

batman52 wrote:
I tried to use user space emulation, but the fork() isn't working so you can have a shell but you can't launch anything.
That would give us an enormous speed increase to use user mode emulation... any qemu-mipsel guru here?

Maybe this could still be useful to test stand-alone apps instead of the whole system?

It should be able to launch static application, yes

For the framebuffer, it is a bit tricky with qemu... I don't remember if it really worked. I think it worked but I couldn't directly see the display. But I could take screenshots.

That doesn't sound SO good...

we can also launch x11vnc which can grab from a framebuffer.
This is very slow but usable.

This shouldn't be too bad! But I still can actually understand HOW it works...

You have to launch x11vnc on qemu, and access it from a vncviewer on you PC by setting a port redirection... that is not easy I know...


I tried this:
Code: Select all
qemu-system-mipsel  -L . -m 32 -kernel zImage -initrd rootfs -append "root=/dev/ram console=tty0 console=ttyS0 init=/bin/sh"

but i get:
qemu:could not load kernel zImage
so I added the -nographic option (following the example) and it gives.
it seems to me that the kernel is loaded and "wants" write on the screen, that isn't properly configured...

Take this kernel:
http://people.debian.org/~aurel32/qemu/ ... -4kc-malta

it works for me


All you have to do is to insmod cirrus logic modules

You mean that i have to compile them?

No, you can istall them with apt-get

Keep me updated if you need info

Could you please try to write a short draft/tutorial to put on a wiki for other people?

Thanks
cyberic99
 
Posts: 36
Joined: Sat Jun 27, 2009 2:44 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby batman52 on Fri Jul 24, 2009 11:26 am

Thanks for your replies cyberic99!

Take this kernel:
http://people.debian.org/~aurel32/qemu/ ... -4kc-malta
it works for me


So assuming that it has a binary compatibility with dingux, you basically used a debian kernel?...
I'm starting to understand how the whole damn thing works!

Here is what I mean to try during the weekend:

1) a simple console app (probabilly something like nano) from debian binaries repo on dingoo hw using your script
2) qemu user space + dingux kernel + dingux app
3) if (1==OK) { qemu user space + dingux kernel + debian app }
3) qemu user space + debian kernel + dingux app
4) if (3==OK) { qemu vm + debian kernel + dingux app}

Could you please try to write a short draft/tutorial to put on a wiki for other people?


Obviously yes (if some of these attempts work)!
batman52
 
Posts: 47
Joined: Wed Jun 10, 2009 8:48 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby cyberic99 on Fri Jul 24, 2009 12:36 pm

batman52 wrote:Thanks for your replies cyberic99!

Take this kernel:
http://people.debian.org/~aurel32/qemu/ ... -4kc-malta
it works for me


So assuming that it has a binary compatibility with dingux, you basically used a debian kernel?...
I'm starting to understand how the whole damn thing works!

Here is what I mean to try during the weekend:

1) a simple console app (probabilly something like nano) from debian binaries repo on dingoo hw using your script

What script?

2) qemu user space + dingux kernel + dingux app

I think it won't work, because the dingux kernel is not really standard... Not sure

3) if (1==OK) { qemu user space + dingux kernel + debian app }

Qemu user space does not need any kernel

Please try it on a static app first, it should work. Then for a dynamic apps, you will need all required libs (use LDD is system emulation mode to know what libs are needed)

3) qemu user space + debian kernel + dingux app

Qemu user space does not need any kernel



4) if (3==OK) { qemu vm + debian kernel + dingux app}

Could you please try to write a short draft/tutorial to put on a wiki for other people?


Obviously yes (if some of these attempts work)!
cyberic99
 
Posts: 36
Joined: Sat Jun 27, 2009 2:44 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby cyberic99 on Fri Jul 24, 2009 12:37 pm

By the way, maybe you should start a new thread because this discussion seems unrelated to the tile now...
cyberic99
 
Posts: 36
Joined: Sat Jun 27, 2009 2:44 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby batman52 on Thu Aug 06, 2009 10:06 pm

Can all your binaries be seamlessly merged into the dingux rootfs?

We could set up an X-enabled dingux flavour...
batman52
 
Posts: 47
Joined: Wed Jun 10, 2009 8:48 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby cyberic99 on Fri Aug 07, 2009 1:13 am

Yes. And I can move the mouse now ;-)

I got things left to fix, such as fonts, icons, ...

What applications would you include?

I think a PDF reader and an image viewer could be great, at least
and maybe dillo web browser
cyberic99
 
Posts: 36
Joined: Sat Jun 27, 2009 2:44 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby batman52 on Fri Aug 07, 2009 9:08 am

cyberic99 wrote:Yes. And I can move the mouse now ;-)


Great job, man! (I'm waiting to know how you did it ;-) )

cyberic99 wrote:What applications would you include?
I think a PDF reader and an image viewer could be great, at least
and maybe dillo web browser


I would say fbreader on top of my wishlist,
then i think it's worth to try a jvm (kaffe or gcj-jre).

In the last few days i abandoned the attempts of writing a script to manage debian packages, because I discovered this project:
https://www.slind.org/Main_Page
It provides a "cross" debian environment in a way that you can have a local mirror on your pc to manage software and create a rootfs.. Unfortunately I haven't been able to set up an X-server without recompiling, so ATM i can run just console app (not very useful!).
It would be nice if we could set this thing with your X-server and then fetch apps on debian repo (no more need for custom probabilly buggy scripts! Just run a properly configured apt on your pc, then copy the rootfs on dingoo).

I noticed that debian has some packages compiled with uClibc (emdebian), maybe they can be used with the native dingux libraries?
batman52
 
Posts: 47
Joined: Wed Jun 10, 2009 8:48 pm

Re: X, mplayer, xmms, dillo, strace (sort of) running on Dingux

Postby shift3r on Fri Aug 07, 2009 10:50 am

so its usable but not quite as usable as dingux... it onestly sounds promising. if there is a way to install it as easly as dingux let me now :D i'm shure the othere scene ppl wold like to know about this as well but there have to be some ppl working on compiling it and launching a working stable version like dingux :D onestly it wold be a breath of fresh air...
shift3r
 
Posts: 2
Joined: Thu Aug 06, 2009 11:49 am

PreviousNext

Return to Homebrew

Who is online

Users browsing this forum: El Quedro and 3 guests