lxdream.org :: Forums :: View topic - SVN warnings and elf loader issues
lxdream 0.9.1
released Jun 29
Download Now
It is currently Mon May 20, 2013 2:32 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: SVN warnings and elf loader issues
PostPosted: Fri May 23, 2008 5:37 pm 
Offline

Joined: Sat Nov 03, 2007 4:18 am
Posts: 6
Location: Brazil
I know maybe it's early to take care of this, but I think I got these warnings because my machine is a x86_64...

Another thing:
When I load a .elf using SVN version of lxdream, the video isn't shown anymore. Version 0.8.3 works fine, though.

And could you please let .elf files access cd driver? or the current directory as cd disc...
I don't wanna burn a disc only for test (and see I coded something wrong :P )

Thanks ans congrats!
Rodolfo

edited: Sound not works here since ever :)
14:54:15 A0000000 ERROR Unable to open audio output (ESD)
14:54:15 A0000000 ERROR Failed to initialize audio driver 'esd', using null driver


Attachments:
File comment: Some warnings like
"incompatible pointer type" or "overflow in implicit constant conversion"

warnings_log.txt [954 Bytes]
Downloaded 232 times
Top
 Profile  
 
 Post subject: Re: SVN warnings and elf loader issues
PostPosted: Sun May 25, 2008 11:10 pm 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293
rodolfo wrote:
I know maybe it's early to take care of this, but I think I got these warnings because my machine is a x86_64...

Another thing:
When I load a .elf using SVN version of lxdream, the video isn't shown anymore. Version 0.8.3 works fine, though.

And could you please let .elf files access cd driver? or the current directory as cd disc...
I don't wanna burn a disc only for test (and see I coded something wrong :P )

Thanks ans congrats!
Rodolfo

edited: Sound not works here since ever :)
14:54:15 A0000000 ERROR Unable to open audio output (ESD)
14:54:15 A0000000 ERROR Failed to initialize audio driver 'esd', using null driver


Hi Rodolfo,

In the order above,

1. There are still some 64-bit warnings left, which I think are mostly harmless but will be fixed real soon now(TM)

2. Could be a rendering problem (not that there's a shortage of those) - is there a demo or something you can point me to that demonstrates the regression? There isn't really anything elf-specific in the display code.

3. If you can build an image file, run with eg lxdream discimage.cdi someprog.elf, which will mount the disc and run as you might expect. You can also run with the -u switch which enables the local filesystem dc-load syscalls (if you're able to use those from your program)

4. Run esd first, or use a different audio driver (either ALSA or pulseaudio, depending on what you have installed)

Cheers,
Nathan


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 25, 2008 11:40 pm 
Offline

Joined: Sat Nov 03, 2007 4:18 am
Posts: 6
Location: Brazil
nkeynes wrote:
1. There are still some 64-bit warnings left, which I think are mostly harmless but will be fixed real soon now(TM)

2. Could be a rendering problem (not that there's a shortage of those) - is there a demo or something you can point me to that demonstrates the regression? There isn't really anything elf-specific in the display code.

3. If you can build an image file, run with eg lxdream discimage.cdi someprog.elf, which will mount the disc and run as you might expect. You can also run with the -u switch which enables the local filesystem dc-load syscalls (if you're able to use those from your program)

4. Run esd first, or use a different audio driver (either ALSA or pulseaudio, depending on what you have installed)


1. I know ;) I trust you hehe

2. I can send you made by me using Dan Potter's KOS? Anyway, when I use a .elf, it doesn't show anything (but I know it's emulating - framerate and lxdream console messages). When I build an image file, it works normally.

3. I didn't know these calling ways, thank you. But even so, GUI menu says it's mounted, but my code doesn't work, except when I build a cd...

4. Thanks, that really worked :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 26, 2008 5:22 am 
Offline
Admin

Joined: Mon Jun 26, 2006 9:47 pm
Posts: 293
rodolfo wrote:
2. I can send you made by me using Dan Potter's KOS? Anyway, when I use a .elf, it doesn't show anything (but I know it's emulating - framerate and lxdream console messages). When I build an image file, it works normally.


If you can email it to me, that would be helpful (esp w/ source if possible).

rodolfo wrote:
3. I didn't know these calling ways, thank you. But even so, GUI menu says it's mounted, but my code doesn't work, except when I build a cd...


Ok that's odd. The disc image and disc are identical? You can't boot the disc image either?

I should note that there are some subtle differences between booting a disc image and running an elf binary directly - the latter skips the BIOS boot sequence entirely, although it will still run the IP.BIN bootstrap if you have one installed. In other words, if your program depends on the BIOS setting something up for you, it may or may not work correctly. If your program makes BIOS syscalls though, it _definitely_ won't work atm without the going through the full boot[0].

Cheers,
Nathan

[0] There's some initial work in progress towards implementing the known BIOS syscalls for precisely this reason (see src/bios.c), but I've never finished it as I don't use them myself.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group