[SOLVED] Building image

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

[SOLVED] Building image

Postby Magikarp » Sun Oct 28, 2012 9:33 pm

Hello.
I would like to build a RPi image. I'm running x86_64 Arch on my main rig. Can anybody point me in the right direction? How do you build official images?

Thanks.
Last edited by Magikarp on Mon Oct 29, 2012 9:31 pm, edited 1 time in total.
Magikarp
 
Posts: 22
Joined: Thu Oct 25, 2012 1:18 pm

Re: Building image

Postby pepedog » Sun Oct 28, 2012 9:59 pm

Is this for yourself, or to distribute?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Building image

Postby Magikarp » Mon Oct 29, 2012 7:29 am

Just for myself, I want to understand cross compiling, toolchains, etc.
Magikarp
 
Posts: 22
Joined: Thu Oct 25, 2012 1:18 pm

Re: Building image

Postby pepedog » Mon Oct 29, 2012 10:25 am

We don't need to build that way, just boot on the device, install/change, delete downloaded packages in cache, then tidy up on an x86
Cross compiling is used in the distcc environment, you probably want to go down the qemu route?
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Building image

Postby Magikarp » Mon Oct 29, 2012 10:41 am

Oh, I thought you used some script, tool or whatever to build images.
Distcc is fine and I will use it, but I was wondering if it is possible to build packages with makepkg on x86_64 machine.
Ideally I would download (or write) pkgbuild, change arch to arm, edit flags and run makepkg -e.
Is this even possible?

EDIT: What do you mean by qemu route?
Magikarp
 
Posts: 22
Joined: Thu Oct 25, 2012 1:18 pm

Re: Building image

Postby pepedog » Mon Oct 29, 2012 2:48 pm

You don't have to change the arch, ie makepkg -A

The emu in qemu stands for emulator, if you search google for "qemu raspberry pi" it will explain
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Building image

Postby Magikarp » Mon Oct 29, 2012 9:31 pm

Thank you very much.
And the idea of emulating RPi sounds very interesting.
Magikarp
 
Posts: 22
Joined: Thu Oct 25, 2012 1:18 pm


Return to Raspberry Pi

Who is online

Users browsing this forum: Google [Bot] and 20 guests