Jump to content


Using 'make' to compile stuff

- - - - -

  • Please log in to reply
18 replies to this topic

#1
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Is it possible? I used the Debian etch repositories to install build-essential, but it borks out, I THINK because headers aren't installed. Any linux gurus?

I want to compile usb-rndis-lite on it ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#2
Subliminal Aura

Subliminal Aura

    Diehard

  • Members
  • PipPipPipPip
  • 374 posts
  • Devices:ipaq 3630|Nokia 6210i|BooTooth
Moooo Haaaa

Best build it on another box and move the kernel over providing you're using similar architecture.

Otherwise I think it'll be a painful process of seeing what glibc libraries you have installed and yes you'll need kernel-headers etc etc

The later route is more simpler but depends on how much disk space you have left on your EEE.

SA


#3
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Plenty of space, I guess the question is if / how I get the Kernel headers!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#4
Subliminal Aura

Subliminal Aura

    Diehard

  • Members
  • PipPipPipPip
  • 374 posts
  • Devices:ipaq 3630|Nokia 6210i|BooTooth
root@XXXXX:/etc/apache2# dpkg -l | grep kern
ii  iptables       1.2.11-10      Linux kernel 2.4+ iptables administration to
ii  kernel-image-2 101            Linux kernel image for version 2.4 on PPro/C
ii  kernel-image-2 2.4.27-10sarge Linux kernel image for version 2.4.27 on PPr
ii  kernel-image-2 2.6.8-16sarge1 Linux kernel image for version 2.6.8 on PPro
ii  linux-image-2. posi.1         Linux kernel binary image for version 2.6.18
ii  linux-kernel-h 2.5.999-test7- Linux Kernel Headers for development
ii  module-init-to 3.2.2-1bpo1    tools for managing Linux kernel modules

Wonder if they have it in their repositories... give it a try

apt-get install linux-kernel-headers

Edited by Subliminal Aura, 15 November 2007 - 10:29 AM.


#5
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Hmm, apparently linux-kernel-headers is already the latest version, so I guess that's not the issue!

When I run make I get:

'/lib/modules/2.6.21.4-eeepc/build: No such file or directory.'

Sure enough, although /lib/modules/2.6.21.4-eeepc exists, the build subdir does not. Doh!

Extreme Linux newbie alert ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#6
Subliminal Aura

Subliminal Aura

    Diehard

  • Members
  • PipPipPipPip
  • 374 posts
  • Devices:ipaq 3630|Nokia 6210i|BooTooth
Where are my kernel headers ?

dpkg -L linux-kernel-headers

Read TFM time ;) http://www.synce.org.../Kernel_Headers

Specifically this line : Creating the symlink to the the kernel headers

ln -sf /usr/src/linux- /lib/modules//build

However I get the feeling that you'll need the kernel source too ? :|

PS This is the easy bit wait until you try getting synce to work LOL


#7
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
/usr/src is empty ;)

I've got usb-rndis-lite working before, just getting the damn thing compiled from SVN is the issue atm!

So how do I get kernel source? Isn't it apt-get source or something?

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#8
Subliminal Aura

Subliminal Aura

    Diehard

  • Members
  • PipPipPipPip
  • 374 posts
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

View PostPaul (MVP), on Nov 15 2007, 11:19, said:

So how do I get kernel source? Isn't it apt-get source or something?

Indeed ;)


#9
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
No source repositories defined.

BAH!

There has to be an easier way of getting the latest version of usb-rndis-lite installed, aside from just installing Ubuntu on the Eee (which is looking more and more attractive I have to say!)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#10
Subliminal Aura

Subliminal Aura

    Diehard

  • Members
  • PipPipPipPip
  • 374 posts
  • Devices:ipaq 3630|Nokia 6210i|BooTooth

View PostPaul (MVP), on Nov 15 2007, 11:28, said:

No source repositories define.

BAH!

There has to be an easier way of getting the latest version of usb-rndis-lite installed, aside from just installing Ubuntu on the Eee (which is looking more and more attractive I have to say!)

P

Mate I'd stick to Xandros if I were you.

Xandros looks like to be well suited and customised specifically to run on the EEE.

Now you're tempting me to buy 1 just so that I can configure 'stuff' ;)

Edited by Subliminal Aura, 15 November 2007 - 11:41 AM.


#11
Subliminal Aura

Subliminal Aura

    Diehard

  • Members
  • PipPipPipPip
  • 374 posts
  • Devices:ipaq 3630|Nokia 6210i|BooTooth
If you want to go 'HARDCORE' then you can try building a new kernel for the EEE, to make life easier check if you've got a /proc/config (the kernel config)

If you have (which I doubt) then you can build your kernel by preparing .config with make oldconfig

Edited by Subliminal Aura, 15 November 2007 - 11:46 AM.


#12
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien

Quote

Now you're tempting me to buy 1 just so that I can configure 'stuff' :(
Do it! Do it! ;)

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#13
MECX

MECX

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,077 posts
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc
Hey Paul,

Im trying to do exactly the same thing as you and am stuck at the same point, did you by any chance find a fix or another way to get this working?

Cheers in advance ;-)

Lifes nothin but bitches and money
O:)  :-#  :-({|=  =D>  :D/  #-o  =p~  :-s  =;  :^o  [-X  [-o<  :-$  8-[  :-&  :cheesy:  [-(  :-k  ](*,)  :-"  :arrow:  :arrowd:  :arrowl:  :arrowu:  :D  :?:  8)  :cry:  :shock:  :evil:  :exclaim:  :frown:  :idea:  :lol:  :x  :mrgreen:  :|  :??:  :P  :oops:  :roll:  :(  :)  :o  :twisted:  ;)

#14
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
I didn't, I kinda gave up and started playing with something else I imagine :(

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#15
MECX

MECX

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,077 posts
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc
ok figured it out,

http://dlsvr01.asus....rnel_071127.rar

download the kernel from asus above, unrar it somewhere and run:-

sudo make
sudo make install

you then need to link it into the /build directory

ln -sf /usr/src/linux- /lib/modules//build

to get the kernel version run uname -r.



You can then install rndis-lite as per the following instructions.
http://forum.xda-dev...ad.php?t=340747



Issue im having is that even tho I add the following to /etc/network/interfaces

auto rndis0
iface rndis0 inet dhcp

I still cant get a connection when plugging the phone in with internet sharing on.

After some playing I can get internet sharing to work when running the following commands:-

dhclient3 -r -pf /var/run/dhclient.rndis0.pid -lf /var/run/dhclient.rndis0.leases rndis0
ifconfig rndis0 down
ifconfig rndis0 up
dhclient3 -cf /etc/dhcp3/dhclient.$LOGICAL.conf -pf /var/run/dhclient.rndis0.pid -lf /var/run/dhclient.rndis0.leases rndis0


Anyone come up with any suggestions on how to make WM6 internet sharing just work on pluging in the phone?

Edited by MECX, 05 January 2008 - 05:55 PM.

Lifes nothin but bitches and money
O:)  :-#  :-({|=  =D>  :D/  #-o  =p~  :-s  =;  :^o  [-X  [-o<  :-$  8-[  :-&  :cheesy:  [-(  :-k  ](*,)  :-"  :arrow:  :arrowd:  :arrowl:  :arrowu:  :D  :?:  8)  :cry:  :shock:  :evil:  :exclaim:  :frown:  :idea:  :lol:  :x  :mrgreen:  :|  :??:  :P  :oops:  :roll:  :(  :)  :o  :twisted:  ;)

#16
PaulOBrien

PaulOBrien

    It's My Party

  • Founder
  • PipPipPipPipPipPip
  • 32,919 posts
  • Gender:Male
  • Location:Norwich, UK
  • Devices:Galaxy Nexus / TF Prime
  • Twitter:@paulobrien
Ah ha, nice one, will have a play!

P

You can follow me on Twitter - http://twitter.com/paulobrien / Follow MoDaCo on Twitter - http://twitter.com/modaco / Follow MoDaCo Android on Twitter - http://twitter.com/modacoandroid

Want to donate? MoDaCo is raising money for the Multiple Sclerosis society.

Posted Image


#17
MECX

MECX

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,077 posts
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc
Any issues give me a shout.

Gave up on getting it to work when its plugged in, just stuck the commands in my last post in a .sh file, made it executable and stuck it on the desktop.


Getting over 1mbit with my Treo 750v on Vodafone :-)

Lifes nothin but bitches and money
O:)  :-#  :-({|=  =D>  :D/  #-o  =p~  :-s  =;  :^o  [-X  [-o<  :-$  8-[  :-&  :cheesy:  [-(  :-k  ](*,)  :-"  :arrow:  :arrowd:  :arrowl:  :arrowu:  :D  :?:  8)  :cry:  :shock:  :evil:  :exclaim:  :frown:  :idea:  :lol:  :x  :mrgreen:  :|  :??:  :P  :oops:  :roll:  :(  :)  :o  :twisted:  ;)

#18
clarkee

clarkee

    Newbie

  • Members
  • Pip
  • 1 posts
Hi,

I have a 2G Surf and I don't have the disk space to do a build of this nature.

Is there any chance you could post the kernel so I can use your pre-built one.  I have a HTC Touch and REALLY want to get some internet-on-the-move over USB :D

This would probably be handy for a lot of other people with the same issue.


Thanks (in advance!)


#19
MECX

MECX

    Hardcore

  • Members
  • PipPipPipPipPipPip
  • 1,077 posts
  • Location:Norwich (ish)
  • Interests:Phones Woman Cars etc
Im sorry mate, I feel dirty saying this but I wiped my linux install to put windows on :-P


I had issues with the (rather buggy) linux version of Skype which is why I switched.

My Windows install is about 1.3GB (nlited a little) so you might be able to squeeze it on to your 2GB............. Im actually very happy with it for web-browsing skype/messenger etc (and thats coming from someone who runs ubuntu on his main machine)

Lifes nothin but bitches and money
O:)  :-#  :-({|=  =D>  :D/  #-o  =p~  :-s  =;  :^o  [-X  [-o<  :-$  8-[  :-&  :cheesy:  [-(  :-k  ](*,)  :-"  :arrow:  :arrowd:  :arrowl:  :arrowu:  :D  :?:  8)  :cry:  :shock:  :evil:  :exclaim:  :frown:  :idea:  :lol:  :x  :mrgreen:  :|  :??:  :P  :oops:  :roll:  :(  :)  :o  :twisted:  ;)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users