LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-05-2010, 02:50 PM   #61
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197

Quote:
Originally Posted by smeezekitty View Post
Does 64 bit ASM work on a 32bit OS working on a 64 bit processor?
No.
 
Old 03-05-2010, 03:03 PM   #62
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
That's why I want to install Linux (Debian probably, they have an ARM version) in QEMU, simulating an ARM machine. I would like the ability to natively run the dev tools on it, no cross-compiling or having to transfer files from my desktop machine's hard drive to the VM image.

And I thought that I was programming in 32 bit asm all the time.
 
Old 03-05-2010, 03:15 PM   #63
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Thumbs down Error!

I started to follow this article:

http://dev.emcelettronica.com/instal...ebian-arm-qemu

and it all went file, until this (see attachment). I already tried with another mirror and it still does this. What should I do?
Attached Thumbnails
Click image for larger version

Name:	qemu-arm-debian-network-error.jpg
Views:	19
Size:	42.7 KB
ID:	2913  

Last edited by MTK358; 03-05-2010 at 03:16 PM.
 
Old 03-05-2010, 03:41 PM   #64
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
You can tell the compiler and the linker that you want to compile a 32 bit program instead of 64.

Code:
as --32  max.s -o max.o
ld -melf_i386 max.o -o max
 
Old 03-05-2010, 03:43 PM   #65
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Will is still work in 64-bit linux?

And still, how do I fix that Debian ARM error?
 
Old 03-05-2010, 03:52 PM   #66
whizje
Member
 
Registered: Sep 2008
Location: The Netherlands
Distribution: Slackware64 current
Posts: 594

Rep: Reputation: 141Reputation: 141
Yes that makes it work in 64 bit, and sorry i don't know about ARM error.
 
Old 03-05-2010, 04:10 PM   #67
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
I started to follow this article:

http://dev.emcelettronica.com/instal...ebian-arm-qemu

and it all went file, until this (see attachment). I already tried with another mirror and it still does this. What should I do?
What about network access from QEMU in general ?
 
Old 03-05-2010, 04:11 PM   #68
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by Sergei Steshenko View Post
What about network access from QEMU in general ?
What do you mean?
 
Old 03-05-2010, 04:34 PM   #69
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
What do you mean?
QEMU may work without network access. I don't remember whether network access is enabled by default or not. I think one needs to provide '-net user' on QEMU command line.

Have you verified the article against QEMU documentation or, at least, built-in help message ?

Can you in Debian ARM Linux you are dealing with check network access before installing anything ? By, say,

ping yahoo.com

or similar ?
 
Old 03-05-2010, 05:06 PM   #70
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Still no matter what I try I can't get it to work.

Isn't it possible to have it install from a CD image instead of all that complication?
 
Old 03-05-2010, 05:10 PM   #71
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
Still no matter what I try I can't get it to work.

Isn't it possible to have it install from a CD image instead of all that complication?
I was following this article: http://www.aurel32.net/info/debian_arm_qemu.php .

Debian has a configuration file with the list of mirrors, I don't remember what it is, but is well documented in all that apt* stuff.
 
Old 03-05-2010, 07:25 PM   #72
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Same error.

Please explain to me why I can't just use the ARM install CD?
 
Old 03-05-2010, 07:38 PM   #73
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
I had some fun with qemu too - only this was powerpc: http://www.linuxquestions.org/questi...?highlight=PPC
 
Old 03-06-2010, 06:35 AM   #74
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by MTK358 View Post
Same error.

Please explain to me why I can't just use the ARM install CD?
Anyone?
 
Old 03-06-2010, 10:27 AM   #75
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
The Q&A section at the bottom of http://dev.emcelettronica.com/instal...ebian-arm-qemu regarding modifying gpg behavior got me past the problem you describe. It wasn't obvious to me how to set up the network during the installation; turns out just pressing Enter at all of the dialogs worked for me.

Quote:
I had some problem...
problem seems to be in gpg verify.

I just skipped gpg verify:
when installation start switch to tty2 (alt+f2)
then press enter and type "mv /usr/bin/gpgv /usr/bin/gpgvb"
then switch back to tty1 (alt+f1) and continue with installation

!! REMEMBER THAT SKIPPING GPG VERIFY IS UNSECURE !!
(you can be victim of man-in-middle attack)
--- rod.

Last edited by theNbomr; 03-06-2010 at 10:30 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ASM or C++? Hb_Kai Programming 16 01-20-2010 09:12 AM
Is ASM dangerous? MrCode Programming 37 11-18-2009 08:29 AM
ASM x32 vs ASM x64 Tegramon Programming 3 02-27-2008 02:26 PM
I/O in ASM Mercurius Programming 10 11-16-2006 07:02 PM
ASM question zWaR Programming 2 06-26-2004 11:42 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration