LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-25-2008, 05:09 PM   #1
Grawp
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Rep: Reputation: 0
unified bootloader for x86 and arm


Is there any possibility of using the same bootloader binary on x86 and arm? Do these architectures have at least something in common which can allow to use the same bootloader?

Here's my problem. I have ipod and i want to install Debian or Sidux for i686 there but I want to keep also Rockbox and original apple os.

Any ideas?

sorry for my english.
 
Old 09-25-2008, 06:46 PM   #2
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
NO. ARM is a very different architecture; the CPU initializes and starts up in a different way from x86. In fact x86 has one of the most complicated start-up procedures, probably due to historical (back-compatibility) reasons.

Just to complicate things, ARM is a BI-ENDIAN machine. It defaults to BIG-END on start (I think you can play with some control lines and have it permanently start up in LITTLE-END - it's been too long since I read the manual). For whatever reason, Linux is built as LITTLE-END for the ARM. The ARM bootloader needs to switch to LITTLE-END then load Linux.

If your iPod has an ARM processor, x86 software will not run on it.

Don't confuse the bootloader with the application software or the CPU family - they're all very different things.
 
Old 09-26-2008, 03:36 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
The only way that you'd be able to run the same code on an ARM and an x86 would be if that code was interpreted in some way like java, Forth... That would be a useless solution for the problem of a bootloader, because the something would have had to have booted the VM before the bootloader and the bootloader, if it is to be a bootloader, is the first thing that will be run.

You may be slightly cheered by the fact that this seems to have little or nothing to do with your actual problem, as has already been pointed out. But then, as far as I understand your actual problem, that probably isn't soluble either.

Given that Debian is available for a wide range of architectures, your requirement to install Debian for the an arch that is incompatible is perplexing, although not necessarily significant; you probably wouldn't succeed even if you did try to load Debian for the right arch and keep all the Apple software (I'm betting that Apple have tried to make this difficult).
 
Old 09-27-2008, 08:34 AM   #4
Grawp
LQ Newbie
 
Registered: Apr 2007
Posts: 10

Original Poster
Rep: Reputation: 0
I think I should clarify my intentions.
I use Rockbox and original Apple os on my 5.5G iPod. And I want to use my iPod as external bootable usb-harddrive with Debian for x86.
I know that most x86 systems (i think all) execute bootloader code in MBR.
I don't know how ARM machines boot up but i think that they also use MBR(part of MBR actually).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem compiling BlueZ stack on ARM ( cross compilation from linux x86) shilpates Linux - Wireless Networking 1 08-20-2008 03:02 AM
LXer: Sabayon Linux x86/x86-64 3.5 Loop 2: Beta Release LXer Syndicated Linux News 0 03-17-2008 06:41 PM
LXer: Linux: Unified x86 Architecture LXer Syndicated Linux News 0 07-24-2007 10:32 AM
Cross compiling utftpd on x86 for arm SachinTCS Linux - Software 1 04-13-2007 09:50 PM
Boot x86 target from flash, with the image and file system on the x86 host. batsayan Linux - Software 2 08-23-2005 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:33 AM.

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