PDA

Bekijk de volledige versie : New Kamikaz 7.09 image



back2basic
22-10-2007, 14:08
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

bado
24-10-2007, 17:04
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

What about problem with boot properly when the power cord has been removed for several hours?

back2basic
24-10-2007, 20:05
gonne test it tommorrow

back2basic
25-10-2007, 16:29
Here is my shutdown (http://home.orange.nl/r.vanhezik/shutdown.WMV) and after 15 min my boot (http://home.orange.nl/r.vanhezik/boot.WMV).

I created a new image that waits another 5 sec more than the old before it checks to boot because I noticed that it takes about 11/12 sec to let the disc spinnup. the timer on the old images where 10 sec:( now its 15 sec before it boots..

bado
25-10-2007, 21:37
Here is my shutdown (http://home.orange.nl/r.vanhezik/shutdown.WMV) and after 15 min my boot (http://home.orange.nl/r.vanhezik/boot.WMV).

I created a new image that waits another 5 sec more than the old before it checks to boot because I noticed that it takes about 11/12 sec to let the disc spinnup. the timer on the old images where 10 sec:( now its 15 sec before it boots..

I can't see the movies :(
But i should to know - it works(boot) without problems or now?

bado
25-10-2007, 21:58
Try your new FW from http://wl700g.homelinux.net/drupal/?q=system/files/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 :(

back2basic
26-10-2007, 15:56
Try your new FW from http://wl700g.homelinux.net/drupal/?q=system/files/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)

bado
27-10-2007, 03:39
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)


OK! i've done it and it's start to boot, but! with problems :(
The power button light - ok, ready light - ok, and nothing! no ping no something else!

back2basic
27-10-2007, 11:20
OK! i've done it and it's start to boot, but! with problems :(
The power button light - ok, ready light - ok, and nothing! no ping no something else!

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

hal2k1
29-10-2007, 02:40
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

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:


9695 root R 516 9689 97.4 0.8 hotplug-call

9705 root R 528 622 97.8 0.8 default.script

This doesn't seem right to me. Any ideas?

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.

hal2k1
29-10-2007, 10:13
I installed the kam7.09 image. .

Another thing I noticed:


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

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.


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

Having said that, Samba 3.0 is better than previous OpenWrt offerings for Samba.

back2basic
29-10-2007, 11:56
did you installed the ipkg for usb printer (kmod-usb-printer)
whem my box is idle the top looks like this


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




root@OpenWrt:~# uptime
12:52:24 up 20:38, load average: 0.00, 0.00, 0.00

back2basic
29-10-2007, 12:03
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.



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.



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


I think it should work :):confused::eek::rolleyes:

n00ben
29-10-2007, 16:10
back2basic: Could you upload the image with the longer boottime, so we can get to mount our harddrives?

Thanks in advance

back2basic
29-10-2007, 22:58
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

bado
02-11-2007, 23:45
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?

hal2k1
06-11-2007, 10:41
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:


9695 root R 516 9689 97.4 0.8 hotplug-call

9705 root R 528 622 97.8 0.8 default.script


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.

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 -

Then I modified /etc/config/network file so that it read:

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


... but with the correct username & password, of course.

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 ...

hal2k1
06-11-2007, 22:45
... 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.

SliderMKH6
08-11-2007, 16:56
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?

n00ben
08-11-2007, 17:44
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.

back2basic
08-11-2007, 17:47
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?

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

milky
08-11-2007, 20:53
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)?

n00ben
09-11-2007, 14:47
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

milky
12-11-2007, 10:59
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_24#head-aec75841e5c13dbb177565eff387fc6c22ab368b). Maybe this is the reason developers are not actively trying to fix it in OpenWrt.

Regards,
--milky

back2basic
14-11-2007, 18:18
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 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

puppinoo
01-12-2007, 22:26
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#

hal2k1
02-12-2007, 12:32
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:


# 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



# 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



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



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:/#

puppinoo
02-12-2007, 15:57
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 USB:
http://wl700g.homelinux.net/portal/content/view/32/30/


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:



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% /




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:/#





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 have to manually mount the usb stick to /mnt)
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



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:/#

back2basic
02-12-2007, 16:21
try the Kam7.09.trx It is more stable than the v2.
change root 2 usbstick
/sbin/root2x.sh scsi 0 part1

puppinoo
02-12-2007, 16:30
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)



root@OpenWrt:/# nvram show | grep boot
size: 2239 bytes (30529 left)
boot_wait=off
root@OpenWrt:/#



try the Kam7.09.trx It is more stable than the v2.
change root 2 usbstick
/sbin/root2x.sh scsi 0 part1

P.s.: Is there any mirc channel where you guys meet?

EDIT:
HEY It worked!

the script completed successfully using the Kam7.09.trx. Now I can cd to root and I have:



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% /


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?

Btw it works so far.
Now I follow the other tutorials to install stuff.
Thanks a lot.
Pino.

puppinoo
02-12-2007, 17:30
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!

back2basic
02-12-2007, 20:15
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?

Pino.

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

puppinoo
02-12-2007, 21:53
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:



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


Can anyone help?

Thanks and bye.
Pino.

back2basic
02-12-2007, 22:56
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

hal2k1
04-12-2007, 00:10
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:



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


Can anyone help?

Thanks and bye.
Pino.


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/KamikazeConfiguration

config interface wan
option ifname "eth0.1"
option proto pppoe
option username "xxxxxx"
option password "xxxxxx"


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?

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/

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

Is dnsmasq running? Have you configured /etc/hosts and /etc/ethers ?

Henrikh
05-12-2007, 20:35
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?

hal2k1
06-12-2007, 11:54
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


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

... alternatively:

With miniupnpd, Only one package is required to be installed : for kamikaze users : ftp://ftp.berlios.de/pub/xwrt/kamikaze/broadcom-2.4/packages/miniupnpd_1.0-RC3-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.

Henrikh
07-12-2007, 16:44
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 :)

puppinoo
07-12-2007, 17:02
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.

back2basic
07-12-2007, 23:36
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:


#!/bin/sh
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
sleep1
reboot

copied that to my pc and removed it from the router after that boot failsafe.
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

:(:(the dirty thing is when the usb fails it keeps rebooting:(:(

I need to find a other way somehow to solve this problem


stange that youre samba didn't worked the first time did you did a chmod 777 /hdd

Henrikh
08-12-2007, 08:51
So i tried flashing with Kamikazee firmware last night, and the whole flashing part went pretty smooth :)

But unfortunately i encountered another problem when trying to prepare the HDD. When running the fdisk command:
fdisk /dev/ide/host0/bus0/target0/lun0/disc

Fdisk was not able to find my disc :(. And when doing "fdisk -l" nothing appeared. Does anyone have a clue about what i am doing wrong?

*Update*
I just tried to do fdisk -l on the standard Asus firmware, and it reports that my disc is on:
/dev/ide/host2/bus0/target0/lun0/disc

So i just tried flashing with Kamikazee again, but it stills says:
"Fdisk:
Unable to open /dev/ide/host2/bus0/target0/lun0/disc"

puppinoo
08-12-2007, 09:31
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


If true That really sucks. I cant believe a modern device hasnt a decent backup battery to store minimal booting settings. How does the original firmware behave. Is there a way to hard code the nvram vars needed for boot process somewhere on the filesystem and force the device to use them?



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:


#!/bin/sh
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
sleep1
reboot

copied that to my pc and removed it from the router after that boot failsafe.
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

:(:(the dirty thing is when the usb fails it keeps rebooting:(:(

You mean that if my usb stick gets broken or erased, the router will loop forever? I mean I can always put the router in service mode keeping pressed the ezsetup button right?
Can't you put a condition that if fdisk -l has the mount partition reboot otherwise continue or something like that (Sorry if stupid but im very linux newbie)?



stange that youre samba didn't worked the first time did you did a chmod 777 /hdd


It was a problem of permissions for the user. I just created a new user with password, set the user and password parameter into the mount string and above all I chowned and chgrped the folder where the samba share pointed... after this last operation, I could wrtite to the share. I use it to store sat recording from a sat decoder called dreambox. Now everything seems to work.


Now my last fundamental setting is to set the passive mode for ftp. I had it working with white russian 0.6, but once upgraded to 0.9 it stopped working. I read on openwrt forum but nobody ever had a solution. I hope it works in kamikaze. I already have a rule on iptables to set a range of ports reserved to passive. Not sure if it still work now. This afternoon Ill test. Has ayone ever tried the ftp passive mode (to fxp some file from a source to a destination using flashfxp for example)? If so can anyone provide a complete iptable rules example and say if vsftpd is good or I need a more advanced daemon, like pure-frtpd or more?

EDIT: UNFORTUNATELY I tested the streaming with samba 3 and the performnce was really poor. Video was scattering and was unwatchable..so I decided to install samba 2.0 from openwrt repository. I used my older smb.conf and performance seems good, as I had on white russian. Unfortunately it requires more resources (top shows an average of 38% while 3.0 was 25%). Too bad. Ill leave the 3.0 installed bur disabled until I can find a viable way to use it.
EDIT2: Ok. I spent my whole day testing samba. Tried Samba 3.0, 2.0 and even Samba 2.2 from Opt and it seems to me that the performance arent as good as before when I used white russian. I even connected my old (not too much) wl500gP as client with the samba I used previously. It was good when used with White russian but it seems the performance are poorer too now that I use it as client. So my opinion is that its not related to Samba versions (except for the 3.0 which was seriously bad for me) but something related to Kamikaze. Not expert enough to realize what. I just think (but I could be wrong...need more tests) that the same exact samba configuration worked better under white russian than with kamikaze. I'll do other tests though.

Bye all.
Pino.

back2basic
10-12-2007, 18:47
*Update*
I just tried to do fdisk -l on the standard Asus firmware, and it reports that my disc is on:
/dev/ide/host2/bus0/target0/lun0/disc

So i just tried flashing with Kamikazee again, but it stills says:
"Fdisk:
Unable to open /dev/ide/host2/bus0/target0/lun0/disc"

If youre hdd doesn't showup after the firmware is installed simply type 'reboot'


root@OpenWrt:~# fdisk -l

Disk /dev/scsi/host0/bus0/target0/lun0/disc: 2048 MB, 2048901120 bytes
64 heads, 63 sectors/track, 992 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

Device Boot Start End Blocks Id System
/dev/scsi/host0/bus0/target0/lun0/part1 * 1 992 1999840+ 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

Device Boot Start End Blocks Id System
/dev/ide/host0/bus0/target0/lun0/part1 1 30276 243191938+ 83 Linux
/dev/ide/host0/bus0/target0/lun0/part2 30277 30401 1004062+ 82 Linux swap
root@OpenWrt:~#

puppinoo
10-12-2007, 20:09
Hi again,
Still configuring my router... just setup Passive mode and it seems to work... (Thank God. I wasnt able to make it work with White russian 0.9).
A few other questions (sorry for bothering you all... I promise Ive almost done everything I need :) ):

1) Is it safe to leave logs point to /opt/var/log if I boot from a usb stick?... I know from my previous White russian Experience that when you boot from a flash ram or flash memory They have a limited number of writes, so log files that often write to disk should point to /tmp which points to ram and not to stick.
2) Can anyone confirm nvram boot_wait var doesnt cause problem if set to 1. I'd like to set it up..but last time I had usb stick stop booting just after I set it up. But probably it was due to the fact I left the router powered off for many hrs.

P.s.: Still struggling with Samba. has anyone experience in successfully recording and streaming Sat video (not HD) using samba? if So any suggestion?

Bye all.
Pino.

Tobias Schwartz
02-03-2008, 13:27
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:



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


Can anyone help?

Thanks and bye.
Pino.

Running Kamikaze 7.09, I now have the same problem: the internet is reachable from the router but not from the LAN.
How did you solve that?

Tobias

ogeen
03-03-2008, 13:43
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:


#!/bin/sh
nvram set boot_dev = "/dev/scsi/host0/bus0/target0/lun0/part1"
nvram commit
sleep1
reboot

copied that to my pc and removed it from the router after that boot failsafe.
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

:(:(the dirty thing is when the usb fails it keeps rebooting:(:(

I need to find a other way somehow to solve this problem


stange that youre samba didn't worked the first time did you did a chmod 777 /hdd

Hello,
how did you exactly managed to copy init script into /etc/rc.d/ ? I tried pscp, but I was not able to find any way how to upload file after booting into failsafe.

Does anyone have different solution for this problem ?

Thanks.

PillzburyDoofus
19-03-2008, 07:42
Okay, so I followed all the steps and had this thing running beautifully, however I unplugged it to move it into its final location and plugged it back in (total of maybe 3 minutes) and now it only has telnet access. The HDD isn't mounted, etc. etc. I'm afraid to run the root2x.sh script again because I dont know if I will lose all of the work I've done so far. I tried manually mounting the hdd, and setting the nvram as follows:

nvram set boot_dev = "/dev/ide/host0/bus0/target0/lun0/part1"
nvram commit

(I'm running off the HDD) however after rebooting (by issuing the reboot command from telnet) I'm back to an unmounted HDD and nothing more than telnet access. What do I need to do to restore functionality?

jaja_ov
25-09-2008, 21:17
I have same problem.

5 min absence of current is OK
20 min absence of current is OK
for more than 60 min absence of current is problem..

http://www.youtube.com/watch?v=NKDS-8zysWI




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

back2basic
08-10-2008, 13:47
I have same problem.

5 min absence of current is OK
20 min absence of current is OK
for more than 60 min absence of current is problem..

http://www.youtube.com/watch?v=NKDS-8zysWI

Working on this one ......

Gregoire.Favre
23-01-2009, 20:44
Is it possible with this firmware to set the CPU to 300Mhz ?
The trick which used to work on the "modified original fimware" didn't seems to works here ???