OUR NETWORK:TiVoCommunity TechLore MyOpenRouter Dijit Community MediaSmart Home See all... About UsAdvertiseContact Us

 
Learn about scoring Forum's Raw Score: 176773.0
January 27, 2011 01:15 AM

Categories: PogoPlug Development

Rating (0 votes)
  • 1
  • 2
  • 3
  • 4
  • 5
Rate This!

Member Avatar

fenschop

Member
Joined: 01/26/2011

I need some help in setting up an environment to build the kernel.

I downloaded the kernel in /usr/src mounted on a usb disk

I downloaded the pogoplug-gcc package as well

Then I found two issues: I could not loacate a "make" and no plain "gcc"

Then I did "ipkg ïnstall optware-devel" from the NSLU2-Linux site (optware packages)

Now I have make, but "make clean" or whatever make I tried results in build errors. I resolved an isue with make being newer an not accepting the syntax of the make file, but fear a long list of remaining issues.

So what is the proper way to set up a build environment? Where can I obtain a proper make for the original kernel?

I also read the advice to install plugapps linux to install gcc, but I am not convinced to change my uboot yet.

Thanks for any help 

Discussion:    Add a Comment | Comments 1-3 of 3 | Latest Comment

January 27, 2011 3:27 AM updated: January 27, 2011 5:31 AM

Follow the instructions on:
http://www.nslu2-linux.org/wiki/Optware/PlugComputers

Both gcc and make are in /opt/bin if you used ipkg install optware-devel.
Versions are: make 3.81 and gcc 4.2.3

Hope you set up the path /opt/bin and /opt/sbin in your path.

Also edit the makefile to get rid of cross compile.
Everything is in the link above. If you follow it you can compile natively.

If you downloaded the pogoplug-gcc package, that is for cross compiling and you set that up on your desktop/laptop linux system.
With that you don't need to edit the makefile since you will cross compile.

Addendum:
Ok, Just checked repository for make and the latest is 3.82. The parser has been tightened up in 3.82

You need to change some lines in the Makefile:
config %config: scripts_basic outputmakefile FORCE
to
%config: scripts_basic outputmakefile FORCE
and
/ %/: prepare scripts FORCE
to
%/: prepare scripts FORCE

I believe the lines are around 391 and 1445 respectively.
I verified above works by making the kernel over again successfully.
Thanks to your post, I updated the link above.

You might consider cross compiling since it is a lot faster.
Good Luck!

January 27, 2011 5:51 AM

Thanks OddballHero. This is very reassuring, as I now have confirmation that I am on the right track, and that I am supposed to be able to build the kernel with the optware-devel package on the plug. The website that you refer to (and the page you maintain) is my most improtant source of information.

I figured out the Makefile syntax issue yesterday as well, but ran into further build issues. It complained that it was not able to build a certain target, something with "ether" in the name and thereof the Makefile. Possibly it is the same type of syntax issue. Now I know I am on the right track, I will take a further look tonight.

What make do I need to do first? A make clean? make config does not.

January 27, 2011 6:15 AM updated: January 27, 2011 6:25 AM

make clean
make menuconfig
Set the configuration you want.
make

Then wait for a really long time. It is a lot faster on a Pogoplug Pro. The desktop even way more.

Except for the make clean, everything else should agree with the link mentioned above.

If you get any errors you might want to google them and if you need a package, just "ipkg list|grep packagename" and this should give you an idea what to load.

I am not getting any errors so I am not sure what problems you are having. You might need to copy and paste the actual errors. Some warnings are ok, it will still build. Just as long as you end up with a vmlinux and I am assuming you are doing this to build some modules which you can find with "find . -name *.ko" everything should be ok.

Addendum:
Make sure you do "cp pogoplug_kernel.config linux-2.6.22.18/.config" as mentioned in the guide before doing any make. It is the config supplied by cloud engines.

Discussion:    Add a Comment | Comments 1-3 of 3 | Latest Comment

Add Your Reply

(will not be displayed)

Email me when comments are added to this thread

 
 

Please log in or register to participate in this community!

Log In

Remember

Not a member? Sign up!

Did you forget your password?

You can also log in using OpenID.

close this window
close this window