AMiLDA FORUM

You are not logged in.

Announcement

### Our Homepage is down at the moment...work in progress !! ###

#1 2006-09-05 09:05:30

Schueler
New member
Netherlands
From: Veldhoven
Registered: 2006-09-05
Last visit: 2007-02-06
Posts: 6
Website

HowTo cmopile a kernel

Hi,

I started with the kernel of Jeroen Domburg. It works nice but I like to install some extra software. Is someone writing a howto compiler for AMiLDA?
There is a sort discription in the package but I don't get it. sad

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

1. Unpack your toolchain (the one Edimax supplies) to / . That will create a /export/tools/ etc. tree.
2. Unpack the AMiLDA source distribution to the directory of your choice (you should have done this so far if you're
   reading this file anyway!).
3. Run "make clean" in this directory.
4. Go to linux-2.4.32-amilda and run "make oldconfig" and then "make dep".
5. Go to this directory and run "make" and get something to eat while compiling completes.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Step 1 and 2 are no problem.
Step 3 works only in dir "linux-2.4.32-amilda"
Step 4 works
Step 5 "Go to this directory ..." ????? which directory is "this"????

That's the point a got stuck.

And if I want to include PureFTP, TeamSpeak and Samba? Like Jeroen Domburg did with the USB stick?
Is it possible?

My background is hardware and some software. Linux is compleetly new for me (tried once in a while but got stuck every time). hmm

Margo: I see there are still a lot of problems with the USB port, How did you and Jeroen manage to get it to work???

Offline

 

#2 2006-09-05 19:38:55

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: HowTo cmopile a kernel

Hi

Some fixes to the documentation specified (as should be):

1. Unpack your toolchain (the one Edimax supplies) to / . That will create a /export/tools/ etc. tree.
2. Unpack the AMiLDA source distribution to /usr/src. That will create a /usr/src/AMiLDA/ etc. tree.
3. In /usr/src/AMiLDA do a "make clean"
4. Go to linux-2.4.32-amilda and run "make oldconfig" and then "make dep".
5. Go to /usr/src/AMiLDA directory and run "make" and get something to eat while compiling completes.

I hope this makes things a lot easier.

Regards,

Sergio

Offline

 

#3 2006-09-06 11:32:04

Schueler
New member
Netherlands
From: Veldhoven
Registered: 2006-09-05
Last visit: 2007-02-06
Posts: 6
Website

Re: HowTo cmopile a kernel

Sergio,

Thanks for the reply.
Well, unpakking is not a problem so step 1 and 2 seems to work.

Step 3 is not working....
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++
  HP_Eigenaar@Tiger /usr/src/AMiLDA
  $ make clean
  make -C image clean
  make[1]: Entering directory `/usr/src/AMiLDA/image'
  rm -f linux-adm.bin
  make[1]: Leaving directory `/usr/src/AMiLDA/image'
  make -C linux-2.4.32 clean
  make: *** linux-2.4.32: Not a directory.  Stop.
  make: *** [clean] Error 2

  HP_Eigenaar@Tiger /usr/src/AMiLDA
  $
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++

Step 4 is working, I get no warnings or errors.

Step 5 is not working...
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++
  HP_Eigenaar@Tiger /usr/src/AMiLDA/linux-2.4.32-amilda
  $ cd ..

  HP_Eigenaar@Tiger /usr/src/AMiLDA
  $ make
  make -C apps KERNEL_DIR=`pwd`/linux-2.4.32 SOURCE_DIR=`pwd`
  make[1]: Entering directory `/usr/src/AMiLDA/apps'
  make -C admgpioconfig-0.1 all
  make[2]: Entering directory `/usr/src/AMiLDA/apps/admgpioconfig-0.1'
  /export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc -Wall   -c -o admgpiocon
  fig.o admgpioconfig.c
  /export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc: /export/tools/mipsel-li
  nux-uclibc/bin/mipsel-uclibc-gcc: cannot execute binary file
  make[2]: *** [admgpioconfig.o] Error 126
  make[2]: Leaving directory `/usr/src/AMiLDA/apps/admgpioconfig-0.1'
  make[1]: *** [all] Error 2
  make[1]: Leaving directory `/usr/src/AMiLDA/apps'
  make: *** [apps] Error 2

  HP_Eigenaar@Tiger /usr/src/AMiLDA
  $
  ++++++++++++++++++++++++++++++++++++++++++++++++++++++

What can be the problem?

Offline

 

#4 2006-09-06 13:52:07

Schueler
New member
Netherlands
From: Veldhoven
Registered: 2006-09-05
Last visit: 2007-02-06
Posts: 6
Website

Re: HowTo cmopile a kernel

Damn....

I installed the sources in the wrong directory...

Instead of /usr/src I installed AMiLDA in /home/HP_Eigenaar/usr/src
The Edimax_ToolChain was correctly installed but I reinstalled it anyway...

Now I can do a "make clean" in the /usr/src/AMiLDA" directory  smile

/usr/src/AMiLDA/make clean <OK>
/usr/src/AMiLDA/linux-2.4.32-amilda/make oldconfig <OK>
/usr/src/AMiLDA/linux-2.4.32-amilda/make dep <OK>
/usr/src/AMiLDA/make <NOT OK>

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
HP_Eigenaar@Tiger /usr/src/AMiLDA
$ make
make -C apps KERNEL_DIR=`pwd`/linux-2.4.32 SOURCE_DIR=`pwd`
make[1]: Entering directory `/usr/src/AMiLDA/apps'
make -C admgpioconfig-0.1 all
make[2]: Entering directory `/usr/src/AMiLDA/apps/admgpioconfig-0.1'
/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc -Wall   -c -o admgpiocon
fig.o admgpioconfig.c
/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc: /export/tools/mipsel-li
nux-uclibc/bin/mipsel-uclibc-gcc: cannot execute binary file
make[2]: *** [admgpioconfig.o] Error 126
make[2]: Leaving directory `/usr/src/AMiLDA/apps/admgpioconfig-0.1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/AMiLDA/apps'
make: *** [apps] Error 2

HP_Eigenaar@Tiger /usr/src/AMiLDA
$
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The file "admgpioconfig.c" aswell as "/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc" both excist.


What can be the problem?

Offline

 

#5 2006-09-06 15:13:09

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: HowTo cmopile a kernel

Hi

Maybe you're using a 64-bits linux distro without 32-bits compatibility? Try to run /export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc outside of the build process first. If it works, that would be quite weird.

If you're using a 64-bits linux distro, you can *try* this toolchain, but probably won't work: AMiLDA-toolchain-ADM5120-x86_64-gcc3.4.2-uclibc-0.9.28.tar.bz2. I haven't tested it yet, just compiled it :p

Hope this helps you,

Sergio

PS: Probably you should change the symlink of linux-2.4.32 to /usr/src/AMiLDA/linux-2.4.32-amilda to something that best fits to your system if you want to work on a different directory. That should be all you need to do.

Offline

 

#6 2006-09-06 16:13:36

Schueler
New member
Netherlands
From: Veldhoven
Registered: 2006-09-05
Last visit: 2007-02-06
Posts: 6
Website

Re: HowTo cmopile a kernel

Hi,

Well, /export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc gives the following error:

  HP_Eigenaar@Tiger /usr/src/AMiLDA
  $ /export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc
  /export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc: /export/tools/mipsel-li
  nux-uclibc/bin/mipsel-uclibc-gcc: cannot execute binary file

I dont use linux but cygwin (the full package). I should work too or not???
I will try to do it with knoppix, if can I can find out how to install it to HD.
Somehow my hardware or my knowledge leaves me behind.....  hmm

Offline

 

#7 2006-09-07 20:38:50

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: HowTo cmopile a kernel

Hi

Sorry, but that toolchain will not work under Windows. It only works under Linux (or something that can run linux programs). You can build a toolchain under cygwin, but you're at your own there.

Regards,

Sergio

Offline

 

#8 2006-09-07 21:44:03

Schueler
New member
Netherlands
From: Veldhoven
Registered: 2006-09-05
Last visit: 2007-02-06
Posts: 6
Website

Re: HowTo cmopile a kernel

knoppix give some problems with unpacking the toolchain of edimax. Only errors.....

I downloaded the bin file of AMiLDA 0.4.10 and uploaded it to my sweex. USB is detected but doesn't work.
Well, it detects my USB audio chip as well as my USB stick (the one of Jeroen Domburg) but get an eror after a while. I cannot mount it are so ever.

Does anybody know why his version does work???

Offline

 

#9 2006-09-16 20:35:28

HiVoltage
New member
Registered: 2006-09-16
Last visit: 2006-09-17
Posts: 1

Re: HowTo cmopile a kernel

Where do I find this Edimax toolchain you mention? I tried downloading the file on their site that is supposed to have the toolchain and firmware, but it seems to contain only the source. Anyone can help, please?

Offline

 

#10 2006-09-16 22:16:11

pabilo
Member
Netherlands
Registered: 2006-08-30
Last visit: 2007-10-05
Posts: 11

Re: HowTo cmopile a kernel

Hello there you can find the source over here: http://downloads.amilda.org/AMiLDA/

What you want is somekind the same i want to make.

I want to make an image with:

FTP
Samba
Madplay
PHP

I'm now trying to make the image ( version 0.4.13 ) smaller.
Samba and php are to big  at the moment. 2mb is to little.


There is no place like 127.0.0.1

Offline

 

#11 2006-09-16 22:18:26

pabilo
Member
Netherlands
Registered: 2006-08-30
Last visit: 2007-10-05
Posts: 11

Re: HowTo cmopile a kernel

A tip if you don't want to install linux on your computer but run it live.

Use SLax

there is a module called devolepment tools, include it and use an usb stick with enough memory ( 512m )

it's not as fast as an installed linux but it works.


There is no place like 127.0.0.1

Offline

 

#12 2006-09-16 23:57:13

Schueler
New member
Netherlands
From: Veldhoven
Registered: 2006-09-05
Last visit: 2007-02-06
Posts: 6
Website

Re: HowTo cmopile a kernel

Well, 2MB is indeed to little.
That is why I would like to have the Jeroen Domburg version extended with samba and FTP.
I am able to use a 2GB usb stick so there is no memory problem.

Offline

 

#13 2006-09-17 01:33:05

pabilo
Member
Netherlands
Registered: 2006-08-30
Last visit: 2007-10-05
Posts: 11

Re: HowTo cmopile a kernel

just a tought,
maybe we can build its together:P


There is no place like 127.0.0.1

Offline

 

#14 2007-02-06 01:23:51

diego
New member
Argentina
From: Soria
Registered: 2006-09-25
Last visit: 2007-05-01
Posts: 3

Re: HowTo cmopile a kernel

Hi:
I work with Madriva 2007

I Unpack toolchain in /export/tools
I Unpack amilda in /usr/src/Amilda

But when I run "make clean" in /usr/src/Amilda , the message is "command not found".

Can you helpme? Thanks

Offline

 

#15 2007-02-06 20:08:47

diego
New member
Argentina
From: Soria
Registered: 2006-09-25
Last visit: 2007-05-01
Posts: 3

Re: HowTo cmopile a kernel

Sorry, is de make package, that is not installed, now compile ok.

Offline

 
highlight_code($code); unset($syn);//free unused object ?>

#16 2007-02-25 18:34:55

bifferos
New member
Registered: 2007-02-25
Last visit: 2007-04-04
Posts: 8

Re: HowTo cmopile a kernel

I typed 'make' and got this error:

Code: txt:

make[4]: Leaving directory `/usr/src/AMiLDA/apps/busybox-1.1.0'
make[3]: Leaving directory `/usr/src/AMiLDA/apps/busybox-1.1.0'
make[2]: Leaving directory `/usr/src/AMiLDA/apps/busybox-1.1.0'
make -C dnrd-2.10/src all
make[2]: Entering directory `/usr/src/AMiLDA/apps/dnrd-2.10/src'
ctags *.[ch]
make[2]: Leaving directory `/usr/src/AMiLDA/apps/dnrd-2.10/src'
make -C flash-utils all
make[2]: Entering directory `/usr/src/AMiLDA/apps/flash-utils'
/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc    -c -o util.o util.c
util.c:6:20: config.h: No such file or directory
make[2]: *** [util.o] Error 1
make[2]: Leaving directory `/usr/src/AMiLDA/apps/flash-utils'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/AMiLDA/apps'
make: *** [apps] Error 2


However i was able to compile the kernel + rootfs by typing 'make' in the linux-2.4.32-amilda directory.
I've tried the above make command with 0.4.4, 0.4.10, 0.4.13, all with the same error.

Last edited by bifferos (2007-02-25 18:35:48)

Offline

 

#17 2007-02-26 05:37:38

sergioag
Developer
Peru
From: Lima
Registered: 2006-02-16
Last visit: 2011-08-15
Posts: 166
Website

Re: HowTo cmopile a kernel

Hi

Just try to do a "make" again.

Regards,

Sergio

Offline

 

#18 2007-02-26 20:57:07

bifferos
New member
Registered: 2007-02-25
Last visit: 2007-04-04
Posts: 8

Re: HowTo cmopile a kernel

sergioag wrote:

Hi

Just try to do a "make" again.

Regards,

Sergio

Hehe....  I did make 8 times, and always the same error about missing config.h!

Offline

 

#19 2007-04-03 12:19:05

andi
New member
Germany
Registered: 2007-04-02
Last visit: 2007-05-25
Posts: 3

Re: HowTo cmopile a kernel

I had the same error, I just changed

#include <config.h>

to

#include "config.h"

then my image compiles and works.

Offline

 

#20 2007-12-26 11:15:44

forest_gump
New member
Registered: 2007-12-26
Last visit: 2007-12-31
Posts: 1

Re: HowTo cmopile a kernel

Hi everybody, you have done a great work, congratulations ! I'm a new in this staff but I've already tried Amilda on my old ADM5120p router-board, I have another one board to test, from Zyxel-router-board it has the same hardware, so I want to ask you how to deal with toolchains, in oder words can someone explain step by step how to deal with toolchain the whole process through compilations to the kernel.
Thanks !

Offline

 

#21 2008-03-07 21:59:48

michallo
New member
Registered: 2008-03-07
Last visit: 2008-03-19
Posts: 1

Re: HowTo cmopile a kernel

What should I do if I have:
+++
make[2]: Entering directory `/usr/src/AMiLDA/apps/sysvinit-2.86/src'
/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-gcc   -o sulogin sulogin.o
sulogin.o: In function `main':
sulogin.o(.text+0x144c): undefined reference to `crypt'
collect2: ld returned 1 exit status
make[2]: *** [sulogin] Error 1
make[2]: Leaving directory `/usr/src/AMiLDA/apps/sysvinit-2.86/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/AMiLDA/apps'
make: *** [apps] Error 2
+++

Offline

 

#22 2010-07-23 06:39:18

laura0812
New member
Registered: 2010-07-22
Last visit: 2010-07-23
Posts: 1

Re: HowTo cmopile a kernel

Thank you for your posts. Might as well give it a try. Thank you for sharing this information at this forum.  pokie slot machines

Last edited by laura0812 (2010-07-23 08:34:44)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2008 PunBB