Over the last few days I created a new kamikaze 7.09 Image.
It is able to boot off the hdd and boot off usb
http://wl700g.homelinux.net/drupal/?q=node/146
Printable View
Over the last few days I created a new kamikaze 7.09 Image.
It is able to boot off the hdd and boot off usb
http://wl700g.homelinux.net/drupal/?q=node/146
gonne test it tommorrow
Try your new FW from http://wl700g.homelinux.net/drupal/?...es/kam7.09.trx
after flashing my router as usual(http://wl700g.homelinux.net/drupal/?q=node/146) on first booting the ready light just flashing and can't stop, i don't know why, i thing my HDD didn't spin down well and now i have that problem :(
When the ready light keps flashing after the box is booted for the first time
Hold down the ez setup button and push the reset button, now let the ready light blink 1 time and then let go off the ez setup button ( Now the firmware is being rebuild and its boots when ready)
During the firstboot the ready light does on during boot and goes off when its ready booting
When you're light stays on, I think the box try to boot from hdd ot usb
Please boot another working kamikaze image and then 'nvram unset boot_dev' and 'nvram commit' then flash my image again.
Everytime you install a new image you have to unset this value!!!!
after root is changed to usb or hdd the leds changed: ready goes on on power then blinks on boot en goes on when ready with boot
I installed the kam7.09 image. It seems to be running well enough and stable.
However, one thig I did notice: when I run top, it reports that over 90% CPU is occupied all of the time, oscillating between the following two tasks:
Code:9695 root R 516 9689 97.4 0.8 hotplug-call
This doesn't seem right to me. Any ideas?Code:9705 root R 528 622 97.8 0.8 default.script
When I run htop, it tells me that the default.script is related to udhcpc.
I suspect that someone might be trying to "appropriate" some of my wireless bandwidth.
Another thing I noticed:
The USB ports don't seem to be working, and the connected USB printer is not seen. This means that it does not work as a print server any more.Code:Oct 29 20:18:28 (none) lpr.notice p9100d[9365]: Connection from 192.168.1.36 port 4355 accepted
Oct 29 20:18:28 (none) lpr.err p9100d[9365]: /dev/usb/lp0: No such file or directory
Oct 29 20:18:30 (none) lpr.notice p9100d[9365]: Finished job: 379372 bytes received, 0 bytes sent
Having said that, Samba 3.0 is better than previous OpenWrt offerings for Samba.Code:root@OpenWrt:/# ls /dev/usb/
root@OpenWrt:/# ls /dev/
console full kmem mtd nvram ptmx random shm urandom
cua gpio log mtdblock port pts root tts usb
discs ide mem null ppp pty scsi tty zero
did you installed the ipkg for usb printer (kmod-usb-printer)
whem my box is idle the top looks like this
Code:Mem: 61644K used, 1284K free, 0K shrd, 25340K buff, 18396K cached
Load average: 0.00 0.00 0.00
PID USER STATUS RSS PPID %CPU %MEM COMMAND
16205 root R 436 16202 1.1 0.6 top
16201 root S 564 562 0.1 0.8 dropbear
669 root S 5712 1 0.0 9.0 SABnzbd.py
738 root S 5712 670 0.0 9.0 SABnzbd.py
733 root S 5712 670 0.0 9.0 SABnzbd.py
737 root S 5712 670 0.0 9.0 SABnzbd.py
735 root S 5712 670 0.0 9.0 SABnzbd.py
734 root S 5712 670 0.0 9.0 SABnzbd.py
674 root S 5712 670 0.0 9.0 SABnzbd.py
684 root S 5712 670 0.0 9.0 SABnzbd.py
670 root S 5712 669 0.0 9.0 SABnzbd.py
671 root S 5712 670 0.0 9.0 SABnzbd.py
672 root S 5712 670 0.0 9.0 SABnzbd.py
673 root S 5712 670 0.0 9.0 SABnzbd.py
732 root S 5712 670 0.0 9.0 SABnzbd.py
742 root S 5712 670 0.0 9.0 SABnzbd.py
740 root S 5712 670 0.0 9.0 SABnzbd.py
675 root S 5712 670 0.0 9.0 SABnzbd.py
676 root S 5712 670 0.0 9.0 SABnzbd.py
743 root S 5712 670 0.0 9.0 SABnzbd.py
739 root S 5712 670 0.0 9.0 SABnzbd.py
Code:root@OpenWrt:~# uptime
12:52:24 up 20:38, load average: 0.00, 0.00, 0.00
Code:root@OpenWrt:~# logread -f
Oct 29 12:56:34 (none) user.info kernel: hub.c: new USB device 01:03.1-1, assigned address 2
Oct 29 12:56:34 (none) user.warn kernel: usb.c: USB device 2 (vend/prod 0x4b8/0x5) is not claimed by any active driver.
Code:root@OpenWrt:~# ipkg install kmod-usb-printer
Installing kmod-usb-printer (2.4.34-brcm-1) to root...
Downloading http://downloads.openwrt.org/kamikaze/7.09/brcm-2.4/packages/./kmod-usb-printer_2.4.34-brcm-1_mipsel.ipk
Configuring kmod-usb-printer
Done.
I think it should work :):confused::eek::rolleyes:Code:root@OpenWrt:~# logread -f
Oct 29 12:57:47 (none) user.info kernel: hub.c: new USB device 01:03.1-1, assigned address 3
Oct 29 12:57:47 (none) user.info kernel: printer.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
back2basic: Could you upload the image with the longer boottime, so we can get to mount our harddrives?
Thanks in advance
the last one I tryed kept flashing so wasn't working at all. Gonne dig in that image tommorrow, for today I build ourself a nice little portal on
http://wl700g.homelinux.net/portal
its to display the tutorials in a more clear way for beginning linux guys
so... i tried your advice!!!
i made nvram unset boot_dev' and 'nvram commit'
so i installed the kam 7.09 fw! the first test was hard power off and now i have same problem :( after 6-7 hours wait i tried power on... but :(
i have just ready light on and nothing more :(
any more advice?
I fixed this issue. It was due to using dhcp for both the router's connection to the ADSL modem and on the lan.
I set the ADSL modem to bridge mode, and I made sure that I had all of the pppoe related packages installed.
Then I modified /etc/config/network file so that it read:Code:ipkg list_installed | grep ppp
kmod-ppp - 2.4.34-brcm-1 -
kmod-pppoe - 2.4.34-brcm-1 -
ppp - 2.4.3-8 -
ppp-mod-pppoe - 2.4.3-8 -
... but with the correct username & password, of course.Code:config interface wan
option ifname "eth0.1"
option proto pppoe
option macaddr "00:17:31:c5:41:79"
option username "user@isp.com"
option password "password"
option keepalive 10
Now it is all sweet.
Kam 7.09 is now stable and working OK.
If I get brave, I am going to add a web server next ...
I installed lighttpd and a .php webmail application, and I have checked it from a remote login. Still sweet.
This is now by far the best state I have EVER had this box running in.
Web server, printer daemon, Xwrt, Xmail server, mldonkey daemon as a "download master", Samba 3.0, correct dnsmasq ... all working a treat.
Next I might be trying out MySql for the first time.
Thankyou to back2basic for your effort here. Kamikaze is still a beast to install and configure, but once you have version 7.09 going it is the best solution for wl700ge yet.
How does it work? Do i got a GUI for config the router? The Firmware is only 1,85 MB big -.-. Can someone describe it with pictures or make an video please?
you will probably find it too overwhelming if you have no experience working in a command prompt... Anyways there are some great step-by-step guides here: http://http://wl700g.homelinux.net/drupal/?q=node/145
But again, ask yourself what you want to accomplish by switching firmware. You can install a web gui, much like the ASUS one, but not as user friendly, and besides you'll still need to do some work in the command prompt.
to config the router I use dropbear and x-wrt(pictures @ http://x-wrt.org)
After the complete setup of the system you have several different web if
expl. one for the mldonkey, one for you lightppd webserver(php & mysqladmin), one for sabnzbd
the firmware is only 1,85 MB but after completion its about 500 MB ( Mine is :) )
Hello,
I am a happy user of the Kfurge image and personally I don't have valid reasons to switch to OpenWrt but one: 2.6 kernel. Unfortunately, I guess that kam7.09.trx image is based on the "brcm-2.4" platform which means a 2.4 kernel. Anyone interested in building a "brcm47xx-2.6" based image (kernel 2.6)?
think you would need this patch: https://dev.openwrt.org/ticket/2516
and if I'm not mistaken 2.6 will disable your wireless
It seems that the support for BCM43xx will be included in the upcoming 2.6.24 kernel (http://kernelnewbies.org/Linux_2_6_2...87fc6c22ab368b). Maybe this is the reason developers are not actively trying to fix it in OpenWrt.
Regards,
--milky
I compiled a new Image and set the boot timer to 15 sec It was 10 before
So now the hdd boots fine. maybe you can give it a try http://wl700g.homelinux.net/drupal/?q=node/145
Hi,
I just installed the kam7.09V2.trx on my new wl700gE. Installation seems to be ok, but I cant cd to the root ( / ) if I try, the router hangs and I have to power cycle. For the same reason (at least I think so) all the scripts to boot from different sources in /sbin fail (I tried to boot from a usb pen but the script hanged when trying to copy the /usr/lib/ipkg and in fact if I try to browse to that folder manually the router hangs.).
If I mount the usb part1 I can see the partial files the script tried to copy until it hanged.
Can anyone help me (Im newbye, so please be patient).
Thanlks and bye.
Pino.
This is my df
root@OpenWrt:/usr/lib# df
Filesystem 1k-blocks Used Available Use% Mounted on
none 31464 28 31436 0% /tmp
mini_fo:/tmp/root 1216 1216 0 100% /tmp/root
/dev/mtdblock/4 64 64 0 100% /jffs
mini_fo:/jffs 1216 1216 0 100% /
root@OpenWrt:/usr/lib#
Have you followed all of the setup instructions?
It seems to me that you are still running the raw firmware, and you haven't yet switched root to either the hdd or to usb.
Setup root on hdd:
http://wl700g.homelinux.net/portal/content/view/31/30/
Setup root on USB:
http://wl700g.homelinux.net/portal/content/view/32/30/
I myself use the hdd, and I have partitioned the hdd to have three partions, one for NAS use, one for the root OS and applications, and one for swap.
Here is the way it ends up:
Code:# df
Filesystem 1k-blocks Used Available Use% Mounted on
none 31464 32 31432 0% /tmp
/dev/ide/host0/bus0/target0/lun0/part1 1928596 199740 1630862 11% /
/dev/ide/host0/bus0/target0/lun0/part3 150878843 13942686 129269939 10% /hdd
Code:# fdisk -l
Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 1 244 1959898+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 19333 20023 5550457+ 82 Linux swap
/dev/ide/host0/bus0/target0/lun0/part3 245 19332 153324360 83 Linux
Partition table entries are not in disk order
Code:# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
none on /dev/pts type devpts (rw)
/dev/ide/host0/bus0/target0/lun0/part1 on / type ext3 (rw)
/dev/ide/host0/bus0/target0/lun0/part3 on /hdd type ext3 (rw)
none on /proc/bus/usb type usbfs (rw)
Code:root@OpenWrt:/# cd /
root@OpenWrt:/# pwd
/
root@OpenWrt:/# ls
bin etc lib mnt opt rom sys usr
dev hdd lost+found oldroot proc sbin tmp var
root@OpenWrt:/#
Hey,
Thanks a lot for your help.
Thats what I was trying to do but running: /sbin/root2x.sh scsi 0 part1
hangs the router when the script tried to copy the folder /usr/lib/ipkg so it never completes.
Btw if I understand the raw firmware has no root, so Its normal that I cant cd to / ? if so why does root2x scsi 0 part1 hang?
Another thing is that every change to nvram variables have no effects. I tried to change my ip from 192.168.1.1 to another and even if I committed and the lan_ipaddr is really changed, I sill have the router on 192.168.1.1. Is that normal too?
Here is my actual situation:
Code:root@OpenWrt:/# df
Filesystem 1k-blocks Used Available Use% Mounted on
none 31464 28 31436 0% /tmp
mini_fo:/tmp/root 1216 1216 0 100% /tmp/root
/dev/mtdblock/4 64 64 0 100% /jffs
mini_fo:/jffs 1216 1216 0 100% /
Code:root@OpenWrt:/# fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 1021 MB, 1021313024 bytes
15 heads, 46 sectors/track, 2890 cylinders
Units = cylinders of 690 * 512 = 353280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 2890 997027 83 Linux
root@OpenWrt:/#
(I have to manually mount the usb stick to /mnt)Code:root@OpenWrt:/# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro)
none on /dev type devfs (rw)
none on /proc type proc (rw)
none on /tmp type tmpfs (rw,nosuid,nodev)
none on /dev/pts type devpts (rw)
mini_fo:/tmp/root on /tmp/root type mini_fo (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/mtdblock/4 on /jffs type jffs2 (rw)
mini_fo:/jffs on / type mini_fo (rw)
root@OpenWrt:/#
I also noticed that the router cant see the internal HDD. I didnt even try it yet cos I wanted to setup the stick too. Is that normal? Im a bit worried it cant be detected..hehe.
EDIT: I rebooted and now it seems the hdd is there..it really scared me...hehe
Code:root@OpenWrt:/# fdisk -l
Disk /dev/scsi/host0/bus0/target0/lun0/disc: 1021 MB, 1021313024 bytes
15 heads, 46 sectors/track, 2890 cylinders
Units = cylinders of 690 * 512 = 353280 bytes
Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 1 2890 997027 83 Linux
Disk /dev/ide/host0/bus0/target0/lun0/disc: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/ide/host0/bus0/target0/lun0/disc doesn't contain a valid partition tab le
root@OpenWrt:/#
try the Kam7.09.trx It is more stable than the v2.
change root 2 usbstick
/sbin/root2x.sh scsi 0 part1
Hey back2basic, thanks a lot for your work.
Ok so how do I switch. I just pit the router in service mode and upload the trx as usual, or there is some other thing I have to do to delete the older kamikaze?
(I checked and since root2 script never ends the nvram variable to choose the boot hasnt been created)
P.s.: Is there any mirc channel where you guys meet?Code:root@OpenWrt:/# nvram show | grep boot
size: 2239 bytes (30529 left)
boot_wait=off
root@OpenWrt:/#
EDIT:
HEY It worked!
the script completed successfully using the Kam7.09.trx. Now I can cd to root and I have:
So whats the problem with the missing delay. I heard it could hang the boot since the hdd is not initialized properly. Could it work for me too now?Code:root@OpenWrt:/sbin# df
Filesystem 1k-blocks Used Available Use% Mounted on
none 31464 4 31460 0% /tmp
/dev/scsi/host0/bus0/target0/lun0/part1 981113 27678 903584 3% /
Btw it works so far.
Now I follow the other tutorials to install stuff.
Thanks a lot.
Pino.
Hi,
I solved the problem with the root switching.
Btw now I cant change the nvram variables. I changed lan_netmask and lan_ipaddr using the nvram set name=value, I commit and the changes seems registered. Btw If I reboot I still have the router on default 192.168.1.1 even if the nvram variables have new values. Any suggestions?
P.s.: Do I have to add all the ppp_<> nvram variables to setup my adsl connection? login password etc? they seems missing in kamikaze but I used them in white russian.
Is there a list of valid bvram variables somewhere, or maybe I can use nbd script to reset nvram created for white russian?
Thanks and bye.
Pino.
EDIT: Im sorry I flooded with posts. I just read kamikaze uses uci to ser environment. So maybe nvram is ignored. Can anyone confirm this pls?
EDIT2: Ok It seems to work with UCI. Sorry again for posting without reading...and THANKS again!
It is when youre device has been off for an hour or so and it boots it cant see the hdd. So when root is on hdd it boots on jjfs. then you have to manualy set the ip again and reboot the box. But when the root is on Usb the only thing that doesn't show up is youre samba share -> so i set my copy button to reboot. But my router is on 24h so i dont think it such a problem.
Even on a power outage with root on usb it is booting nicely exept for the samba (but ey who needs it when youre not @home)
ps nvram is only used for the initialization off the usb or hdd all the config are in files
Hi again,
Thanks again for reply.
Im setting the router and im facing a problem.
I installed pppoe packages and now my router is connected to the WAN, I can ping internet sites etc, but all my client pcs cant go online. They can ping router lan ip but cant ping internet sites. All I did was to set the def gateway of all my clients to the router ip as I do usually. Is there any additional step I have to do (install some package...). I installed x-wrt and it set me up a lot of additional uci variables and they added some network settings I havent in white russian, like type for lan (none bridged) etc, or maybe I have to initialize firewall... Actually I can't find any firewall or firewall.user files.... These are my actual network vars:
Can anyone help?Code:network.eth0=switch
network.eth0.vlan0=1 2 3 4 5*
network.eth0.vlan1=0 5
network.loopback=interface
network.loopback.ifname=lo
network.loopback.proto=static
network.loopback.ipaddr=127.0.0.1
network.loopback.netmask=255.0.0.0
network.lan=interface
network.lan.type=bridge
network.lan.ifname=eth0.0
network.lan.macaddr=<MY MAC>
network.lan.proto=static
network.lan.ipaddr=192.168.0.150
network.lan.netmask=255.255.0.0
network.lan.dns=193.**.**.**
network.lan.gateway=192.168.0.150
network.wan=interface
network.wan.ifname=eth0.1
network.wan.macaddr=<MY MAC>
network.wan.proto=pppoe
network.wan.username=<MY LOGIN>
network.wan.password=<MY PASS>
network.wan.mtu=1492
network.wan.keepalive=30
network.wan.defaultroute=1
network.wan.ppp_redial=persist
Thanks and bye.
Pino.
youre firewall is in /etc/firewall.user
it must be installed first with ipkg install firewall
on pppoe I can't help you I dont use it.But I know there is some more information about it in one of these threads here
Firstly, check that pppoe is connecting.
What is the result if you type the command "ifconfig" on its own? Do you have a pppoe entry in the listing that is produced, and does the pppoe entry have an IP address that is correct for your ISP?
If all these are correct, then your pppoe is connected. If it is not connected, then have you got pppoe configured correctly correctly in /etc/config/network file? There should be a section in /etc/config/network that looks like the settings in section 1.3.3 on this page:
http://wiki.openwrt.org/OpenWrtDocs/...eConfiguration
If pppoe is connected OK, then when you say "They can ping router lan ip but cant ping internet sites", what do you actually mean?Quote:
config interface wan
option ifname "eth0.1"
option proto pppoe
option username "xxxxxx"
option password "xxxxxx"
If you mean that, from a client PC on your lan, then
"ping 192.168.1.1" works, but ...
"ping google.com" doesn't work, then your problem is not necessarily with pppoe at all.
It may be that your router is connected OK, but that the dns lookup of google.com isn't working.
Have you completed all of this step?:
http://wl700g.homelinux.net/portal/content/view/36/30/
Is dnsmasq running? Have you configured /etc/hosts and /etc/ethers ?Quote:
1.6 Dhcp-server & Firewall
Written by back2basic
Monday, 29 October 2007
Install the dhcp and firewall
ipkg install dnsmasq iptables bridge
start the firewall & dhcp server
/etc/init.d/dnsmasq start
/etc/init.d/firewall start
/etc/init.d/dnsmasq enable
/etc/init.d/firewall enable
This OpenWRT thing seems very interresting, certainly offers a bit more "room" for tweaking the box. I just have a couple of questions i hope you have the answers for :-)
How does uPnP function on OpenWRT? Is there a daemon installed by default, or do i need to download this? And what about QoS?
I haven't tried it, but anyway FWIW:
http://wiki.openwrt.org/OpenWrtDocs/upnp
... alternatively:Code:root@OpenWrt:~# ipkg-opt list | grep upnp
libupnp - 1.4.3-1 - The Universal Plug and Play (UPnP) SDK for Linux provides support for building UPnP-compliant control points, devices, and brid
With miniupnpd, Only one package is required to be installed : for kamikaze users : ftp://ftp.berlios.de/pub/xwrt/kamika...3-1_mipsel.ipk
http://miniupnp.tuxfamily.org/
Caveat: there seem to be lots of warnings about security if you do this.
I have no knowledge at all about qos.
Thank you for your reply. :)
Well i have no major plans in this weekend, so maybe i should just get to work with this thing, and get my hands dirty ;-)
Thank you Back2Basics for all the effort you have put into the guide and making the kamikazee image :)
Hi all,
Thanks again (yes..again!) for your help. I couldnt even turn on the router properly without you guys.
First the good news. My pppoe works nice now and fo my pc clients too.
Now a few problems I had. I left the router turned off for a few days and this morning I turned it on and no boot (I had it set to boot from usb stick) I had to reinstall the whole thing. Now it works fine How can I possibly aavoid it to happen again? and if i cant Can I just reinstall the firmware in flash and recover the installation I already have on the usb stick? Probably I need to make a backup of uci vars and nvar vars and modify the boot2 script to avoid the whole installation and just pivot root from the stick... Im not sure if I know how to do. Btw id like a confirmation its the right way to do.
Now the last Problem Im facing. I need Samba installed. I installed samba 3 from opt repository I used the provided smb.conf in the tutorial and it starts and I can browse the share but I cant write to it (permission denied). Can anyone provider a working smb.conf? I had samba 2 installed on white russian and it worked fine but older smb.conf doesnt work anymore.
EDIT: I Switched to mount utility (I used smbmount tool with white russian) I added a samba user and configuring it into mount string now everything works!
Now my only worry is the risk to lose everything if I turn off the router. Can anyone provide a way to create a complete backup I can easily restore? (If anyone needs I can provide my mount string and my smb.conf).
Thanks a lot for your help and time.
Pino.
I did some testing and left my router off for a day.
It turns out that even when it is running on a usb stick it doesn't boot off the stick but instead it boots failsafe(ready light doesn't start blinking but instead it goes off after 20 sec or so.)
after some checking i found out that the nvram boot_dev was nothing ( So nvram is resetted when our box has no power. strange there is a batery onboard of our monster ????)
so I set it again(gave my network a static ip 192.168.1.1 and telnet):
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
and rebooted the router , now it boots on usb
Now here's a solution to the problem but it's a bit risky
on a working router I created myself a script called S99reboot in my samba share with this content:
copied that to my pc and removed it from the router after that boot failsafe.Code:#!/bin/sh
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
sleep1
reboot
nvram unset boot_dev
nvram commit
reboot
telnet to the router again and copy the scipt created into /etc/rc.d
http://www.putty.nl/download.html I used PSCP to copy
then chmod +x /etc/rc.d/S99reboot
and than run the scrip
I need to find a other way somehow to solve this problemCode::(:(the dirty thing is when the usb fails it keeps rebooting:(:(
stange that youre samba didn't worked the first time did you did a chmod 777 /hdd