[Voyage-linux] Re: can't compile compat-wireless [No rule to make target]

Alfonso Fiore (spam-protected)
Tue Feb 7 07:04:39 HKT 2012


I think I found a way (far from the best, but it works).

If you don't care if the process is a bit slower and that you write on your
CF, you can execute the same commands on your system without creating the
qemu image...

download latest voyage sdk from:
http://mirror.voyage.hk/download/ISO/sdk/

don't forget there might be a mirror closer to you:
http://linux.voyage.hk/mirror

create a qemu disk:
qemu-img create voyage_disk.iso 1G

run voyage:
qemu -cdrom voyage-sdk-0.8.0.iso -hda voyage_disk.iso -redir tcp:2222::22
-boot d

now you can ssh (much easy to cut and paste) into the voyage host with:
ssh 127.0.0.1 -p 2222 -l root

partition and mkfs /dev/hda

mount /dev/hda1 /usr/src

remountrw

if you know how, edit (to use local mirrors and download faster):
/etc/apt/sources.list
/etc/apt/sources.list.d/voyage.list

apt-get update

apt-get install kernel-package build-essential linux-image-3.0.0-voyage
linux-source-3.0.0-voyage

cd /usr/src

tar xvjf linux-source-3.0.0-voyage.tar.bz2

cd /usr/src/linux-source-3.0.0-voyage

make oldconfig
make prepare
make modules_prepare

cd /usr/src

download latest compat-wireless (for example):
wget
http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.3/compat-wireless-3.3-rc1-2.tar.bz2

extract:
tar xvjf compat-wireless-3.3-rc1-2.tar.bz2

cd /usr/src/compat-wireless-3.3-rc1-2

./scripts/driver-select
./scripts/driver-select ath5k

make

tar cvzf compat-wireless-3.3-rc1-2_compiled.tgz compat-wireless-3.3-rc1-2/

copy compat-wireless-3.3-rc1-2_compiled.tgz from the qemu VM to the ALIX
(eg using scp)

on the alix:
tar xvzf compat-wireless-3.3-rc1-2_compiled.tgz
cd compat-wireless-3.3-rc1-2
make install

mmmmmmmmmm it seems "make install" did actually compile on ALIX for me, so
maybe my idea is wrong. If this doesn't work for you, try to follow this
same howto but directly on the ALIX. In any case, I can now compile
compat-wireless.

hope this helps,
alfonso

On Mon, Feb 6, 2012 at 1:25 AM, Alfonso Fiore <alfonso.fiore at gmail.com>wrote:

> Hi,
>
> I run voyage 0.8.0 on an Alix 3d3
>
> I'm trying to compile the latest compat-wireless and I'm doing
> something terribly wrong. I'm sure it's a rookie mistake. Thanks to
> anyone who can help.
>
> First I tried to install headers and source for my current kernel:
> apt-get install linux-headers-3.0.0-voyage linux-image-3.0.0-voyage
> linux-source-3.0.0-voyage
> apt-get install build-essential
>
> When I first tried to compile compat-wireless I saw there where no
> links in /lib/modules/3.0.0-voyage to source and build so I make them
> manually:
>
> cd /lib/modules/3.0.0-voyage
> ln -s /usr/src/linux-headers-3.0.0-voyage source
> ln -s /usr/src/linux-headers-3.0.0-voyage build
>
> But I still get errors:
>
> /usr/src/linux-headers-3.0.0-voyage/arch/x86/Makefile:39:
> /usr/src/linux-headers-3.0.0-voyage/arch/x86/Makefile_32.cpu: No such
> file or directory
> make: *** No rule to make target
> `/usr/src/linux-headers-3.0.0-voyage/arch/x86/Makefile_32.cpu'.  Stop.
>
> Thank you,
> alfonso
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20120207/9abb7148/attachment.html>


More information about the Voyage-linux mailing list