Jump to content

Using 'make' to compile stuff


Recommended Posts

Guest Paul (MVP)
Posted

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

Guest Subliminal Aura
Posted

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

Guest Paul (MVP)
Posted

Plenty of space, I guess the question is if / how I get the Kernel headers!

P

Guest Subliminal Aura
Posted (edited)

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
Guest Paul (MVP)
Posted

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

Guest Subliminal Aura
Posted

Where are my kernel headers ?

dpkg -L linux-kernel-headers

Read TFM time ;) http://www.synce.org/index.php/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

Guest Paul (MVP)
Posted

/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

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

Indeed ;)

Guest Paul (MVP)
Posted

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

Guest Subliminal Aura
Posted (edited)
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
Guest Subliminal Aura
Posted (edited)

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
Guest Paul (MVP)
Posted
Now you're tempting me to buy 1 just so that I can configure 'stuff' :(

Do it! Do it! ;)

P

  • 1 month later...
Posted

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 ;-)

Guest Paul (MVP)
Posted

I didn't, I kinda gave up and started playing with something else I imagine :(

P

Posted (edited)

ok figured it out,

http://dlsvr01.asus.com/pub/ASUS/EeePC/701...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-developers.com/showthread.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
Posted

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 :-)

  • 2 months later...
Guest clarkee
Posted

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!)

Posted

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)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.