Bekijk de volledige versie : Debian Install Help Please
Hi, could someone please post an example of an fstab for a debian install? I'm not real sure what it should look like (I know it will have to be custom based on my partition layout) I'm just uncertain on the basic layout I need... Thanks!
Madar
Hello all,
I am very keen on setting up Debian on the WL-HDD however I am running into some snags following the tutorial. I am sure this can be done but the tutorial has left me in the dark on a several issues. If anyone can help me that would be great!!! Then we can try to add some more info to the wiki to make it easier for everyone (yeah :) )
Question #1
What should the fstab look like (I asked this before and a lot of people have viewed my post but no answers so far)? Is this fstab for the device root or does it go in my debian's /etc/fstab file? I’m pretty sure it goes in the debian /etc/fstab file but it doesn’t say on for sure on the wiki…
Question #2
I put the debian file tree where? In my current configuration I have set up 4 partitions (3 are ext3 1 is swp). Partition number one is for root, the second one is for swap (256mb) and two others I was hoping to use as HTTP and FTP separately.
I put my debian-distro on the first partition at /tmp/harddisk/distributions/debian. I tried mounting this onto /tmp on the actual root system and ended up with /tmp/tmp/harddisk/distributions/debian so I moved some stuff around and got it to look like this /tmp/harddisk/distributions/debian but quickly ran into other problems…
Question #3
exim4-config (actually all exim4 debs) is not installing properly and I think this is the reason that several other debs are not installing correctly either (telnet, wget, etc). I tried letting it slide; just running base-config but that fails out… I was trying this all using 1.9.2.7-4 so I thought maybe that was my problem. I started over with 1.9.2.7-1 last night but I’m having difficulty even getting as far as I was before now.
Questions #4
The wiki says “ssh to your Asus device”. I don’t see how I could do that as out of the box I don’t seem to have an sshd running on the device? I have been using telnet and seems to work okay but it makes me think I’m missing out on some step here.
I probably have other questions but nothing is coming to mind right now, I’m at work and it’s all a bit gray in my mind from here.
I know I’m a noob with all of this but I would really appreciate it if someone could help me out. I am pretty good at following directions but I find the current wiki instructions to be lacking in many ways.
Thanks in advance to everyone!!!
Madar
Questions #4
The wiki says “ssh to your Asus device”. I don’t see how I could do that as out of the box I don’t seem to have an sshd running on the device? I have been using telnet and seems to work okay but it makes me think I’m missing out on some step here.
SSH does not work right out the box indeed. When you've installed a custom firmware from Oleg, telnet should be running. You can use Putty to telnet to your box and setup SSH (dropbear) if you want to telnet to your box from WAN. There's a WIKI page on dropbear available.
Thanks Styno!
Well that is a start I will try this tonight when I get home. So do you think it's really necessary that I use ssh to set up debian? I'm still pretty confused about where the drives are supposed to be mounted. I've been plugging my drive in to my desktop (via usb) and mounting the first partition. Then I just copied the debian file structure onto the drive unmounted and reinstalled the drive to the WL-HDD. Then I used telnet to get onto the drive set up my (probably wonky) fstab, sources.list, and resolv.conf.
Hmm okay time to go home, I will experiment with it tonight...
Thanks again!
Madar
Well, I would'nt advise you to use SSH when you install debian on Wl-HDD. When you try an apt-get, the process hang under low memory using dropbear, when it works using telnet.
Also, try to reduce the memory consuption by stoppingunnecessary process, and set up a swap file to get some extended memory.
You can setup debian using the instruction on any partition, as long as it got enough space. 5Gb is enought IMHO.
You have to get the debian install files on your partition, in any folder, and then do a chroot to your folder. It should give you a shell.
You might have to do the final command more than 3 times (dpkg -iGREB /var/cache/apt/archive/), to end up the package install process.
After that, I found I still had brocken package. You can set up a apt repository with testing source (ie:
deb http://debian.ens-cachan.fr/ftp/debian/ testing main
deb-src http://debian.ens-cachan.fr/ftp/debian/ testing main
in you /etc/apt/sources.list (use a closer mirror for you)
then do apt-get update
then apt-get upgrade
you should get your distib running. Be gentle in the beggining with dependency, dont try to install something bug before installing dependency by yourlself, it can ease the process.
for the fstab, it is not readen properly anyway. You will have to do
mount -t proc none /proc
and also mount devfs devfs /dev
and laso mount you hd. mount -a doesn't work for me until I do this.
for info, here is my fstab, but i'm sure it's wrong:
proc /proc proc remount 0 0
ramfs /tmp ramfs defaults 0 0
usbfs /proc/bus/usb usbfs defaults 0 0
dev /dev devfs defaults 0 0
/dev/hda1 /mnt/hd ext3 defaults 1 1
/dev/hda2 /mnt/hd2 ext3 defaults 1 2
Hope this help. I can even run windowsmaker using vnc on the wl-hdd, and compile program natively
So do you think it's really necessary that I use ssh to set up debian?
No, SSH is absolutely NOT nessesary when you only plan to access the router through telnet from a local LAN.
SSH is advisable (not nessesary) when telnetting to the router from WAN.
Thanks to everyone, I haven't had a chance to try this all out yet but I will a.s.a.p. It's always good to find an active community that is willing to help. I reckon this is the coolest thing I've owned since Lego...
Cheers,
Madar
Thanks for all your help so far, I think I'm getting closer but I've run into another snag (DOH!)
I too have packages that can't be configured so I need to apt-get update, problem is networking is not working for me. "route" offers me the following:
[root@firefly /]$ route
/proc/net/route: No such file or directory
INET (IPv4) not configured in this system.
[root@firefly /]$
ipconfig is not installed yet so no luck on that end.
My resolve.conf looks like this:
search
192.168.1.254
here is what is mounted:
[root@firefly /]$ mount
none on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
dev on /dev type devfs (rw)
Here is a list of the packages I can't configure without updating:
base-files
console-data
passwd
adduser
exim4-daemon-light
debconf
dhcp3-client
exim4
tcpd
console-tools
netbase
dhcp3-common
tasksel
cron
at
logrotate
man-db
base-config
ppp
libssl0.9.7
ifupdown
pppoeconf
pppconfig
bsdmainutils
telnet
wget
So basically I'm sunk and I'm not sure what I should do next. :(
Thanks in advance to anyone who can help me out on this :)
ipconfig or ifconfig? It seems to me it is on the basic packages.
Basicaly, you have to be able to ping google.com to go on. Check your resolv.conf, and ifconfig. What is the result? Use static ip adressing.
Also, you MUST type
mount -t proc none /proc
after you have done the chroot to get use of ifconfig and route command.
Proc is mounted as per previous post and no I can't ping out (cuz the networks not working right :) ) so I can't stat debs of the net...
Anyway here is what is mounted:
[root@firefly /]$ mount
none on /proc type proc (rw)
ramfs on /tmp type ramfs (rw)
dev on /dev type devfs (rw)
My resolve.conf looks like this:
search
192.168.1.254
(192.168.1.254 is my router)
Your correct it is ifconfig just a typo on my part (i've been using Microsoft Windows at work a lot lately :mad: )
ipconfig yields the following:
[root@firefly /]$ ifconfig
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
[root@firefly /]$
route yields the following:
[root@firefly /]$ route
/proc/net/route: No such file or directory
INET (IPv4) not configured in this system.
[root@firefly /]$
when I try setting a default gateway I get this:
[root@firefly /]$ route add default gw 192.168.1.254
SIOCADDRT: File exists
[root@firefly /]$
I'm not exactly sure what SIOCADDRT is all about but it sounds like older kernel stuff which got me thinking about how I'm using "Sid" packages and the original tutorial mentioned "Sarge". I'm thinking to build a "Sarge" system and trying that. Does anyone know if this sounds like my problem? I'm thinking maybe... Doh! :(
did you actually type the command? What is the result when you type the
ps command? Does it complain about proc?
Hey now we're getting somewhere, it wasn't mounted... Okay ifconfig is working now :) how silly of me, we're not really booting so fstab isn't really read and "mount" just tells me what the fstab says... Doh! See I'm trying :D
Okay so I've never seen a br0 before and at first I thought it would be the wireless nic but it's actually the same mac on everything here, hmm. Here is what ifconfig yields:
br0 Link encap:Ethernet HWaddr 00:11:2F:C4:3E:D2
inet addr:192.168.1.220 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:2fff:fec4:3edf/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1538 errors:0 dropped:0 overruns:0 frame:0
TX packets:1256 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:90650 (88.5 KiB) TX bytes:281626 (275.0 KiB)
eth0 Link encap:Ethernet HWaddr 00:11:2F:C4:3E:D2
inet addr:192.168.1.220 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::211:2fff:fec4:3edf/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:288 (288.0 b)
Interrupt:3 Base address:0x2000
eth1 Link encap:Ethernet HWaddr 00:11:2F:C4:3E:D2
inet6 addr: fe80::211:2fff:fec4:3edf/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1538 errors:0 dropped:0 overruns:0 frame:0
TX packets:1260 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:118334 (115.5 KiB) TX bytes:281914 (275.3 KiB)
Interrupt:4 Base address:0x8000
eth2 Link encap:Ethernet HWaddr 00:11:2F:C4:3E:D2
inet6 addr: fe80::211:2fff:fec4:3edf/10 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:32 errors:768 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:7081 (6.9 KiB)
Interrupt:6
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MULTICAST MTU:16436 Metric:1
RX packets:738 errors:0 dropped:0 overruns:0 frame:0
TX packets:738 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:62172 (60.7 KiB) TX bytes:62172 (60.7 KiB)
[root@firefly /]$
At first I only had an ip on br0, I tried putting br0 down and telnet went dead on me and I couldn't get back up until I rebooted. Next I tried putting eth0 up with an ip. (everything is statically set up with my router for 192.168.1.220 and my mac) no luck they both are up with the same ip like in the ifconfig listed above... So then I put eth0 up and took br0 down; dead telnet again and I have to reboot.
here is the output from route if that helps at all:
[root@firefly /]$ route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 br0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.254 0.0.0.0 UG 0 0 0 br0
Any thoughts?
what are you trying to do? just setup the br0 interface and you will be fine.
don't forget to setup GATEWAY and try to ping your dns adress. when ok, just add them to resolv.conf and try ping google.com
then you can setup sources.list
I personnally dont have to setup ip, as it use the standard web interface setup (like yours it seems)
Okay so many problems have been solved (Thank you everyone!!! :) ) Networking is now up and running my resolv.conf was incorrect. I had it resolving to my router but I had to resolve it to my ISP's DNS server (drrr). Okay so I have networking up (I can ping out) and I can update my .debs from the online repositories no problem. Unfortunately I still have packages that cannot resolve themselves. The exact same ones as before I updated the packages from the web.
Here is a list:
base-files
console-data
passwd
adduser
exim4-daemon-light
debconf
dhcp3-client
exim4
tcpd
console-tools
netbase
dhcp3-common
tasksel
cron
at
logrotate
man-db
base-config
ppp
libssl0.9.7
ifupdown
pppoeconf
pppconfig
bsdmainutils
telnet
wget
So I said okay "okay" maybe it's because I'm using "Sid" (unstable) instead of "Sarge"(testing) so I changed my sources.list to the testing repositories and did apt-get update and got the testing debs. Unfortunately the exact same packages won't install in testing. On a lark I tried the "Woody"(stable) sources as well but still no go...
I have also tried installing the packages one by one individually but no luck there either. It seems like the key package that is stopping all the others is 'base-files' but no mater what I try I can't seem to get it to install. Any ideas? I don't see why I'm the only person having this problem it makes me think I'm either really dumb or I'm the only person out there besides Hugo and Styno that are interested in doing this... Hopefully these discussion posts will help to sort out others in the future... Thanks again for sticking with me and helping me out :)
what is the output if you do a last
dpkg -iGREB /var/cache/apt/archive/ ?
After an apt-get update, you have to do an apt-get upgrade
Stick on testing right now, there will be time to setup a double source with unstable later on.
Hey Hugo,
So I've done apt-get update and apt-get upgrade using various sources "stable", "testing", "unstable" they all end up the same for me. (I've installed Debian before on systems so I'm not completely unfamiliar with the proceedure)... Anyway, I working with "testing" now because that is what was advised in the beginning. When I run dpkg -iGREB /var/cache/apt/archive/ I get the following (everytime I run it even many times past the 3rd time it's always the same):
# ...more of the same before this for other packages:
dpkg: error processing pppconfig (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of logrotate:
logrotate depends on cron (>= 3.0pl1-53) | anacron; however:
Package cron is not configured yet.
Package anacron is not installed.
dpkg: error processing logrotate (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
debconf
man-db
console-tools
libssl0.9.7
base-config
netbase
ifupdown
dhcp3-client
console-data
exim4-daemon-light
adduser
tasksel
base-files
ppp
wget
at
passwd
bsdmainutils
exim4
cron
pppoeconf
dhcp3-common
tcpd
telnet
pppconfig
logrotate
firefly:/#
The big dependancy that seems to be causing all the others not to install appears to be either base-config or debconf maybe. I've tried manually install ever package on the above list but none of them will go in without at least one of these two packages first.
Any thoughts?
Are you sure of the quality of the source debian installation pack? I mean the one you made from the PC? I would redo it to be sure. I don't get this dependency errors, so I guess you might have lost one file somewere.
I agree it sounds like a good possibility that my packages are somehow corrupted. I've been pretty busy lately :( so no time to try it out yet. I will report back how it goes.
Thanks again,
Madar
I agree it sounds like a good possibility that my packages are somehow corrupted. I've been pretty busy lately :( so no time to try it out yet. I will report back how it goes.
Thanks again,
Madar
The main problem according to me is debconf.
I've also tried to install debian on a usb stick. So far I got something running, but it seems that debconf is broken in stable, unstable & testing.
In my opinion the only option left is to compile debconf by myself from source. So the next challenge is to setup a mipsel-emulator since compiling stuff on a 128Mb usb stick isn't really fun.
Hum, my debain is fully owrking from source. So it might be a problem with your source? I have to admit that I had a few steps to make it working, but I don't remember them fully now. Using a good source in testing was one of the steps.
Hum, my debain is fully owrking from source. So it might be a problem with your source? I have to admit that I had a few steps to make it working, but I don't remember them fully now. Using a good source in testing was one of the steps.
Since the problem involves broken packages, it's quite obvious that the problem resides in uses the correct sources! :p
Maybe you can upload your debconf.deb package? Or tell us which apt sources you use? What version of debconf do you use?
I don't use debconf package. Would that be of any use for you? Just tell me what command you want me to type.
For my source list, maybe a quick read of the previous post could help :rolleyes:
I don't use debconf package. Would that be of any use for you? Just tell me what command you want me to type.
For my source list, maybe a quick read of the previous post could help :rolleyes:
I'm sorry, I thought you were talking about the right "sources.list" for the dpkg tools :-)
I think a tarball of your root would help. :-) I can provide you with webspace to store it. It's not that I'm lazy, it's just that I don't feel like going through the trouble of setting up a crosscompiler and stuff. Please email me <iiivx [at] instituut.net>, so we can share your hard work.
Hu? 50 Megs would be a bit big to send by email, and I'm only talking about the first package, the one you get from the PC command line on the WIKI.
My root is now 4 Gigs. Maybe if you want I can directly send you my HD so you can have it fully working? :D
Seriously, if you can name me any text file that would be of any use for you, just ask, and I'll post. But posting my root sound as useless as copying a linux install form one PC to one other just to make it work.
Hu? 50 Megs would be a bit big to send by email, and I'm only talking about the first package, the one you get from the PC command line on the WIKI.
My root is now 4 Gigs. Maybe if you want I can directly send you my HD so you can have it fully working? :D
Seriously, if you can name me any text file that would be of any use for you, just ask, and I'll post. But posting my root sound as useless as copying a linux install form one PC to one other just to make it work.
I am serious about getting your whole root. If you have a fully working debian installation, I would love to obtain it. My plan is to strip it down till it's max 100megabyte, so it fits on my usb stick. But I can understand if you don't feel like uploading 4 gigabyte. :-)
I guess I'll just have to do some work myself ;-) I'm not in need for textfiles. I rather have a not-broken-precompiled serie of .deb's on the debian mirrors. I fear that if I start setting up my self-compiled toolchain and debian distro, I won't sleep the next 2 nights. But maybe I can create a nice howto based upon that experience.
Are people interessed in setting up a minimal -working- debian distro on a 128 mb stick? Or do most people use usb-harddisk anyway, so there is no need for minimalistic stuff?
the first pack of file for the debian install is already 150 Meg uncompressed.
the first pack of file for the debian install is already 150 Meg uncompressed.
I do not fully understand which pack you are talking about.
[root@(wl500g) /]# du -h --max-depth=1 2> /dev/null
15M ./var
6.5M ./lib
40M ./usr
3.4M ./sbin
400k ./etc
3.7M ./bin
1.0k ./boot
0 ./dev
1.0k ./home
1.0k ./mnt
0 ./proc
7.0k ./root
134k ./tmp
1.0k ./opt
1.0k ./floppy
1.0k ./cdrom
1.0k ./initrd
1.0k ./sys
68M .
The source you get from
cdebootstrap -amipsel sarge debian-distro http://ftp.fr.debian.org/debian command give me a 95610880 bytes file when tared and gziped. It will grow to 150 Meg when uncompressed. I would double check my source if I was you.
The source you get from
cdebootstrap -amipsel sarge debian-distro http://ftp.fr.debian.org/debian command give me a 95610880 bytes file when tared and gziped. It will grow to 150 Meg when uncompressed. I would double check my source if I was you.
Well, instead of the 'sarge' branche, I used 'stable' since stable is smaller. And 'sarge' is uncompressed 150 meg -including- the downloaded .deb archives. If you install small groups of .deb's at the same time, and after installing delete the .deb's you just installed, you can manage to fit it on a 128 mb stick. Also I delete a bunch of useless stuff from the filetree.
I used correct sources, and I swapped around with the little space that was left on my stick. Nothing special.
Well, I am going to compile the stuff myself, I'll report back when I've made a nice tarball with a complete debian smaller than 100 meg.
Maybe this is the problem. I odn't know if it will work with stable
tell us what you get.
Maybe this is the problem. I odn't know if it will work with stable
tell us what you get.
I posted a howto in howto talk, after moderation it will show up I guess. I cracked a debian installation using the 'testing' tree with additional cool packages into 77 megabyte. :D
That's great news iiivx!!! I finally got back to this and built it all again from new packages (from my existing system) and it all came out the same. I look forward to seeing your howto.
Madar
I've been super busy but I have some free time coming up (I hope) so I'm getting back to this finally.
So iiivx did you end up compiling debconf yourself? I think setting up a crosscompiler may be more work (and time) than I'm willing to go through. I have the wl-hdd with an actual hard drive so size isn't much of a concern to me...
Madar
atomilein
30-04-2005, 08:58
hey guys,
i am trying to get debian on my extern usb-hdd connected to my asus wl 500g. i read the wiki and after hours i have now an debian tree, that i got to my asus (debootstrap was not installed on my debian before :mad: ).
but now i can not get around with
"create etc/fstab hosts resolv.conf apt/sources.list"
in the wiki. i read some threads in the forums and found out, that it can be difficult to set up fstab. but the prob is, that i do not even know what the wiki mean with "create etc/fstab hosts resolv.conf apt/sources.list".
how create and where i get the input for the files?
sorry but i am just starting with linux and stuff. the wiki is not compatible to people like me.
i hope u can advice me because it was a lot of work to get so far. now i really want this debian get running!
thanx
I just wanted to post an update on my trials with Debian on the WL_HDD.
So I finally got some time in on this last weekend, and I’m happy to say things are going pretty well. I downloaded iiivx’s image and set it up on a partition on my hard drive and when I rebooted the device SHAZAM I had a functional Debian box. Admittedly, I haven’t played around with it much yet but so far so good Thanks you iiivx for all of your hard work. I’m curious how you overcame the problem packages (debconf for one). Did you end up setting up a cross compiler? If you did, all I can say is wow (I would have never sorted that out on my own)!!! Anyway, if anything exciting comes up I’ll be sure to post and let you all know.
Thanks to everyone for your help
Madar
atomilein
02-05-2005, 17:59
is there no one who is wants to help me? i really searched the forum for the solution, but no success...
Hi
I am hoping to be ready with a howto within long.
I havent tried debian yet - but as soon as I have it running I will write a howto.
It is all a question of finding the time.....
have you read through the thread on this topic? A lot has already been said on the subject http://wl500g.info/showthread.php?t=2088&highlight=debian I was able to get it up and running by using the image iiivx put together. His Debian on a USB drive tutorial has some pretty decent info and should get you up and running on the WL-500 in no time http://wl500g.info/showthread.php?t=2221&highlight=debian
Good Luck,
Madar
tophinus
03-05-2005, 11:37
Hi,
Sorry in advance for my language, i'm French. And sorry too in advance for my long post ;)
I bought the asus wl-500g deluxe four months ago and found the Great Work of Oleg.
As I'm not a newbie with Linux, I decide to install a debian mipsel system in order to boot on it and the base system works !!! I do say I boot on it, not only chroot on it. The features I have managed to work is the ssh server and the wired connection, and the hdparm too, it gives me :
#hdparm -tT /dev/scsi/host0/bus0/target0/lun0/disc
/dev/scsi/host0/bus0/target0/lun0/disc:
Timing cached reads: 112 MB in 2.00 seconds = 56.00 MB/sec
Timing buffered disk reads: 16 MB in 3.27 seconds = 4.89 MB/sec
I haven't get tested nfs or samba server but I think this is not a great problem.
My first problem comes from the wireless connection. I had to recompile Oleg's firmware (1.9.2.7-4) to modify "Oleg's/linuxrc" in order to boot on my "debian_usbdisk/linuxrc". So my /linuxrc load the "et", "wl" and "robo" modules because only the "et" module can be loaded in debian system. The "wl" and "robo" modules cause a segmentation fault in debian :eek:
I also tried to modify kernel to link wl on ap, sta or apsta but nothing works, I have always a segmentation fault. Here is my first question :
I have an error when I set the wl link to dongle, is there a way to link it correctly ?
So, I load modules in my /linuxrc before launching pivot_root and /sbin/init. But now, when I try to set wireless connection, I have these errors :
Error for wireless request "Set Mode" (8B06) :
SET failed on device eth1 ; Invalid argument.
Error for wireless request "Set Bit Rate" (8B20) :
SET failed on device eth1 ; Invalid argument.
Error for wireless request "Set Nickname" (8B1C) :
SET failed on device eth1 ; Invalid argument.
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device eth1 ; Invalid argument.
Then, after search on the web, I found that theses errors can be due to the lack of wireless firmware in /usr/lib/hotplug/firmware/. So here is my second question :
Is there a way to extract firmware code from the original asus' or oleg's hotplug in order to put it correctly ? because I think the firmware code must be present somewhere.
Now, i have questions about the kernel :
What does it occur when a bad kernel is uploaded ? Is there a way to restore the routeur correctly ? And how the web interface upload firmware work ? which instructions does it use ?
I think this because my CPU is a BCM5365 and this processor is not selected by default into the kernel, i have to do a "make menuconfig" in src/gateway.
And what does occur if I recompile the kernel with my debian mipsel system without the uclibc ? In fact, what is the uclibc ? (Sorry but i'm not a great developper, i'm an administrator)
And to finish, the way to install a debian system on the router is a bit difficult and as it not fully worked, I think it's not recommended for now to make an how-to, I will do it when it will be successfully installed.
Tophinus :)
atomilein
05-05-2005, 08:37
Yes I read both topics. But ur post was to special for me. But if got it running, could u post how to
"create etc/fstab hosts resolv.conf apt/sources.list"
an the the input for these files..
The second topic with 128 mb Stick I tried first and the only result was, that my usb-stick was first not recognized (maybe not compatible) and then I tried the same with my usb-hdd and it crashed :mad:.
I really want this debian running on my extern usb-hdd :(
atomilein
05-05-2005, 17:42
debian works now on my usb-stick :D my stick was totally damaged and full of dead partitions. now i cleaned up and got my debian on the stick.
but...how can i transfer the whole stuff on my extern usb-hdd?
greeeeeeetz
Howdy congrats on getting your USB stick up and running. As far as creating resolve.conf and fstab I'm not sure what you mean by "how to create" do you mean how to open a file and write to it or do you mean how to decide what it should say? you can write the files using "vi" a simple text editor. The version that you get by default is pretty stripped down but it works okay you have to use insert and delete keys to enter text. If your up and running I would 'apt-get install vim' as that will give you more text editing usability. As far as what to put in the files; the fstab really doesn't seem to matter much as because I don't believe it ever gets read in the first place (maybe someone out there can explain that better). Your resolv.conf should have something like 'nameserver: your.DNS.ip.address'. I hope that helps a little...
Regarding putting the files onto your HD: I have one of those little 2.5" usb HD enclosures so I just plugged the drive in there and mounted it from my computer. Then I moved the files over onto the drive unmounted and put the drive back into the WL-HDD enclosure. You have everything you need on the usb key so just plug it into a computer copy the entire file tree off the usbkey to your computer's HD. Now you can just mount your harddrive (the one your going to use with your Asus device) and move the file tree over to the HD... I'm not sure that was all that clear (typing fast) I hope it was... Good luck!
Madar
atomilein
09-05-2005, 18:54
thanx for help. i read ur thread after getting it work. i got it like this:
i created a debian like in the wiki
i tike etc/fstab hosts resolv.conf apt/sources.list from the "debian on 128mb..."-howto :D
[with "create etc/fstab hosts resolv.conf apt/sources.list" I meant what to put in the files. touch, vi and so on I know :cool: ]
and here I proudly present my solution to get torrent run on wl500g with extern usb:
> then I installed screen (apt-get)
> after that I installed bittornado (apt-get)
> and finally midnight commander (apt-get)
> to make things easier I created debian.sh like that:
killall stupid-ftpd
killall waveservermain
rmmod audio
rmmod soundcore
killall p910nd
killall lpd
killall infosvr
rmmod printer
rmmod parport
rmmod parport_splink
chroot /opt/distributions/debian/debian-distro/ /bin/bash
where /opt/.... is my mounted usb-hdd
-----------------------------------------------
I can´t complain about speed. Everything runs normal.
But...i am still looking forward to free more memory :D . Any ideas. Here is my "top":
PID USER STATUS RSS PPID %CPU %MEM COMMAND
181 admin R 3816 180 61.8 27.2 btdownloadcurse
205 admin R 412 202 8.1 2.9 top
182 admin S 3816 181 0.0 27.2 btdownloadcurse
202 admin S 404 41 0.0 2.8 sh
179 admin S 280 1 0.0 2.0 screen
101 admin S 232 1 0.0 1.6 nmbd
138 admin S 228 1 0.0 1.6 upnp
46 admin S 220 1 0.0 1.5 httpd
91 admin S 208 1 0.0 1.4 watchdog
88 admin S 208 1 0.0 1.4 pppd
113 admin S 140 1 0.0 1.0 dropbear
1 admin S 136 0 0.0 0.9 init
54 nobody S 104 1 0.0 0.7 dnsmasq
53 admin S 104 1 0.0 0.7 syslogd
41 admin S 104 1 0.0 0.7 telnetd
79 admin S 92 1 0.0 0.6 rcamdmain
52 admin S 88 1 0.0 0.6 klogd
92 admin S 88 91 0.0 0.6 ntp
99 admin S 28 1 0.0 0.2 smbd
180 admin S 8 179 0.0 0.0 sh
so far so good :cool:
steffen01
10-06-2005, 00:01
I have installed Debian on my WL-HDD. Now I have an Virtual Server on my WL-HDD, because it won't boot with the hdd. Apt, a few additional installed services are working quite fine. But the damned thing will not boot from hd.
But it still boots from the flash.
I tried to force to boot from hda, I set boot-dev to /dev/ide/.... ., but this wont work (I don't get even a ping).
As far as I understand Olegs comment, his firmware (I'll use the latest named wl-hdd) tries to boot the kernel from flash anywhere, and then tries to boot from hd (unfortunately there is only an howto for the WL500 on his site).
Do I need to install an bootloader? Or do I need an working kernel-image on the hd?
Or is there an simple nvram Variable which I simply overlooked?
steffen01
10-06-2005, 22:35
OK, I just look around a bit...
In /linuxrc (the first bootscript) is asking for the boot-device. So I need to set the boot_dev variable in the NVRAM.
Since the network isn't set in /linuxrc, it should be set in the debian-installation.
I think all I need is an working /etc/networking/interfaces in the debian distro (this is the config-place for debians network...) or an way to test the debian network-script.
PS. Getting debian on the WL-HDD is really ugly. Now I need to disconnect
the harddrive, unset the boot_dev variable, reboot, connect the harddrive again...
Is there an other option to unset the boot_dev variable?