LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 02-09-2010, 01:33 AM   #1
langerak
LQ Newbie
 
Registered: Jan 2010
Location: Netherlands
Distribution: Ubuntu 12.04
Posts: 13

Rep: Reputation: 0
Using debootstrap to install a foreign system (X86 to ARM)


Hi all!

At work they gave me the following task (and i need some help from you guys!):

At work we have a normal PC running Ubuntu 9.10 (32-bit), which works good.
We also have a LaCie Ethernet Disk Mini v2, which runs embedded Linux (RedHat), but is so trimmed down, you can't use the disk we would like to use it.

The task is this: On the X86 machine, make a bootable image for the ARM architecture and write it to a harddisk (which fits the LaCie offc.) so it can boot off it.

Now i have done some investigation, but don't know how to combine it all:

- I can use debootstrap to create a minimal Debian system, but there comes the problem, you can't chroot into a foreign created system (i.e. X86 cannot chroot into ARM system).
- I can use QEMU, which can emulate a ARM processor, but can i use the image that QEMU uses as a normal image for a harddisk, so it would boot off it (when using dd to write it to a real harddisk)?
- Current kernels support the LaCie hardware (Marvell chipset)
- I know how to use tools such as dd, so if the image is generated i can write it to disk and have the LaCie boot from it.

The LaCie box has the following:
1 ARM9 ARMv5TEJ (266 MHz) CPU with 64 Mb RAM, Gigabit network controller and 1 usb host port, internal there is a sata port obviously.

The only thing i want at the moment is to have the LaCie boot Debian and i can SSH into it, from there the rest is easy as pie.

Is someone willing to help me accomplish this task? It would seriously mean and help alot!

If all goes well and if i get all things up and running i would like to make a Howto of it and place that here, maybe it will be of some use !
 
Old 09-10-2010, 09:46 AM   #2
jeff.parent
LQ Newbie
 
Registered: Sep 2010
Location: Iowa, USA
Distribution: Ubuntu, Debian and Build my own Distros
Posts: 2

Rep: Reputation: 0
How To for an ARM Devel Environment

Searching for an answer to a completely different topic I saw your post and thought I'd send you the url to my How To for building a Cross Compiling Development Environment. I'm actually going through it right now and updating all the steps so keep watching it, but for the most part you should be able to get through it.

Ok I guess I cant post a link yet, so I'll do it in the next post.
 
Old 09-10-2010, 09:47 AM   #3
jeff.parent
LQ Newbie
 
Registered: Sep 2010
Location: Iowa, USA
Distribution: Ubuntu, Debian and Build my own Distros
Posts: 2

Rep: Reputation: 0
Link for previous post

Here is the link

http://biffengineering.com/wiki/inde...ileEnvironment
 
Old 09-10-2010, 07:12 PM   #4
ComputerErik
Member
 
Registered: Apr 2005
Location: NYC
Distribution: Debian, RHEL
Posts: 268

Rep: Reputation: 42
While I can certainly understand the fun and interesting side of doing such a project it really seems to me like it would be a lot of work for very little return. You could build a much better device using an old PC, a few spare drives and FreeNAS or OpenFiler for an appliance methodology, or any distro of choice for ultimate freedom.

To me the biggest lacking factor is that it is a single drive, and I hate single points of failure.
 
Old 09-11-2010, 01:14 PM   #5
langerak
LQ Newbie
 
Registered: Jan 2010
Location: Netherlands
Distribution: Ubuntu 12.04
Posts: 13

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by ComputerErik View Post
While I can certainly understand the fun and interesting side of doing such a project it really seems to me like it would be a lot of work for very little return. You could build a much better device using an old PC, a few spare drives and FreeNAS or OpenFiler for an appliance methodology, or any distro of choice for ultimate freedom.

To me the biggest lacking factor is that it is a single drive, and I hate single points of failure.
I think that depends on the use of the NAS. Personally, i currently am only using it as a Transmission server and store my music on it. That's data i don't care about if the disk fails.

Therefore it's a small device, whilst a small PC would result in a Shuttle or so, that's bigger already .

---------------

I finished working on this project 2 months ago and compiled my own 2.6.34 kernel and installed Debian Lenny on the box. I seriously recommend a serial connection to the device to program U-Boot. Now it boots automatically and runs great! The speed is a bit better btw. Still it's a slow CPU, but now i am squeezing the max out of it .

If anyone needs help, let me know .
 
  


Reply

Tags
arm9, debian, x86


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
LXer: Whither Windows? OLPC 2 likely to use ARM, not x86 LXer Syndicated Linux News 0 03-14-2009 10:50 AM
ARM or x86 fro embedded?? raedbenz Linux - Embedded & Single-board computer 3 12-20-2008 07:26 AM
unified bootloader for x86 and arm Grawp Linux - Hardware 3 09-27-2008 08:34 AM
Cross compiling utftpd on x86 for arm SachinTCS Linux - Software 1 04-13-2007 09:50 PM
How is build and install X window system on ARM sateeshgalla Programming 1 09-17-2005 05:42 PM


All times are GMT -5. The time now is 11:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration