PDA

Bekijk de volledige versie : Password changing issue after flashing open-wrt firmware



metamorphose
21-09-2008, 20:49
I have succesfully flashed latest (openwrt-brcm-2.4-squashfs.trx) Open-WRT firmware. After reboot my first thing was changing root password, I release passwd command, but I got an error message.

root@OpenWrt:/# passwd
Changing password for root
Enter the new password (minimum of 5 characters)
Please use a combination of upper and lower case lette
Enter new password:
Re-enter new password:
passwd: An error occurred updating the password file.


Any idea?

While I am not able to change root password I can not reach any other functions/settings on OpenWrt Administrative Console. :(

townkat
21-09-2008, 21:00
you can only set password after you set boot device (hdd or usb)

metamorphose
21-09-2008, 21:21
And how can I do that?

townkat
21-09-2008, 22:13
http://wl700g.homelinux.net/portal/content/view/31/30/

metamorphose
22-09-2008, 09:43
I also found this link, but I forgot an important thing: I do not have fdisk command (I do not know why)!

After I telnet to router and I list available command of Open-WRT Busybox (release help command), I cannot find fdisk! I guess it cannot be normal...

Have you got any idea how I can reach fdisk command?

townkat
22-09-2008, 11:56
because you did not followed that tutorial closely, use the firmware tutorial says ;)

metamorphose
22-09-2008, 21:21
Sorry, I do not understand what you think about. What step could I omit?
I did not find any other step here: http://www.macsat.com/macsat/content/view/62/30/

even here (according to your suggestion):
http://wl700g.homelinux.net/portal/content/view/31/30/

:confused:

townkat
23-09-2008, 02:22
flash with

http://wl700g.homelinux.net/drupal/?q=system/files/kam7.09V2_1.trx

http://wl700g.homelinux.net/portal/content/view/29/30/

(first step from tutorial)

metamorphose
24-09-2008, 21:40
I flashed firmware v2.1 as you suggested. After I reset the router I am able to ping that (and it answers), however I cannot enter to router via telnet. :mad:

So I return to openwrt-brcm-2.4-squashfs.trx, because at least its telnet is working.

I would like to ask you to tell me clearly what concrete activity do you think when say first step from tutorial (maybe resetting the router).

townkat
25-09-2008, 03:08
this is the tutorial that works for me
http://wl700g.homelinux.net/portal/content/category/5/16/30/

use static ip in the begining 192.168.1.2 on the pc
telnet should work

metamorphose
28-09-2008, 19:50
Unfortunatelly, there is no success: I set 192.168.1.2 IP address for my notebook, then I telnet to router, but error message was the same.

metamorphose
01-10-2008, 21:51
I have been trying to find solution and I found a suspicious thing after I released dmesg command.

mini_fo: create_sto_dir: ERROR creating sto dir.
mini_fo: build_sto_structure: failed to create storage dir [1].
mini_fo: get_neg_sto_dentry: ERROR building sto structure.
mini_fo: nondir_unmod_to_mod: ERROR getting neg. sto dentry.
mini_fo_open: ERROR creating storage file.

I released df command and I could see free space is ran out:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 896 896 0 100% /rom
none 31460 24 31436 0% /tmp
/dev/mtdblock/4 320 320 0 100% /jffs
/jffs 896 896 0 100% /

Can anybody how I can get more free space?

back2basic
08-10-2008, 13:31
I have been trying to find solution and I found a suspicious thing after I released dmesg command.

mini_fo: create_sto_dir: ERROR creating sto dir.
mini_fo: build_sto_structure: failed to create storage dir [1].
mini_fo: get_neg_sto_dentry: ERROR building sto structure.
mini_fo: nondir_unmod_to_mod: ERROR getting neg. sto dentry.
mini_fo_open: ERROR creating storage file.

I released df command and I could see free space is ran out:

Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 896 896 0 100% /rom
none 31460 24 31436 0% /tmp
/dev/mtdblock/4 320 320 0 100% /jffs
/jffs 896 896 0 100% /

Can anybody how I can get more free space?

Hy guys <>
I haven't been around for a while....

After testing i found out that my first firmware is stabler than the v2
http://wl700g.homelinux.net/drupal/files/kam7.09.trx

with this image you should run the /sbin/root2x.sh command after that you should have plenty of free space on the box about 160 GB or 250 Gb
there's is no way you can free up space on this box wothout doing this
its only a 2mb flash and the image is 1,8 mb
my box runs this image for a couple of months very smooth

currently I'm trying to develop a new image that gets rid of the problems when the box has been powered out for a couple of hours

metamorphose
09-10-2008, 20:21
Aaahh, yeaah! Many thanx for you!

/sbin/root2x.sh script was the key. I have successfully installed your firmware so far... ipkg packages will be followed.

But I stucked, I cannot install packages, because it seems my router cannot connect to Internet.

ping www.google.com
ping: www.google.com: Unknown host

Here is my

/etc/resolv.conf:

nameserver 192.168.1.1

#### VLAN configuration
config switch eth0
option vlan0"1 2 3 4 5*"
option vlan1"0 5"


#### Loopback configuration
config interface loopback
option ifname"lo"
option protostatic
option ipaddr127.0.0.1
option netmask255.0.0.0


#### LAN configuration
config interface lan
option type bridge
option ifname"eth0.0"
option macaddr"00:1A:92:B4:46:4E"
option protostatic
option ipaddr192.168.1.1
option netmask255.255.255.0


#### WAN configuration
#config interfacewan
#option ifname"eth0.1"
#option macaddr"00:1a:92:b4:46:4f"
#option protodhcp

config interface wan
option ifname "eth0.1"
option proto pppoe
option macaddr "00:1A:92:B4:46:4E"
option username "myusername"
option password "mypassword"
option keepalive 10

Could you/anybody help me?

back2basic
10-10-2008, 12:40
what is the output of ' ifconfig '
Do you see a wan ip in there
how are you connected to the internet example:

My Setup :
Internet - aDSL Modem - Router
Wan(96.*.*.*) - 192.168.1.1 - 192.168.2.1

When you provider is a adsl provider there is probably already a router in you modem and you need to set the asus to listen to 192.168.2.1
you can configure this setting in the /etc/config/network - now it is 192.168.1.1

metamorphose
10-10-2008, 20:39
Here is ifconfig output:

eth0 Link encap:Ethernet HWaddr 00:1A:92:B4:46:4E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2053 errors:0 dropped:0 overruns:0 frame:0
TX packets:1204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:472890 (461.8 KiB) TX bytes:854691 (834.6 KiB)
Interrupt:4

eth0.0 Link encap:Ethernet HWaddr 00:1A:92:B4:46:4E
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1108 errors:0 dropped:0 overruns:0 frame:0
TX packets:1205 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:75520 (73.7 KiB) TX bytes:849683 (829.7 KiB)

eth0.1 Link encap:Ethernet HWaddr 00:1A:92:B4:46:4E
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

According to your advice I changed LAN IP address to 192.168.1.2 (not 192.168.2.1 as you said), because I know so my IP address of ADSL-modem is 192.168.1.1 and my PC and notebook are in the 192.168.1.x range.
Unfortunatelly, I do not know how I can refresh IP setting of router, that is why I rebooted it to commit changes.
As you can see above, my router cannot get WAN side IP. Any idea?

back2basic
14-10-2008, 16:55
Please change youre router to 192.168.2.1 you cant run 2 dhcp servers on the same network range and reload the ip adress of all the pc's connected

all connected devices are now 192.168.2.* :)

metamorphose
14-10-2008, 21:09
Hi back2basic,


I did exactly what you said, I set up 192.168.2.1 IP address of my router, after that I set up ADSL settings in /etc/config/network. Here is significant part of that config file:

#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0"
option macaddr "00:1A:92:B4:46:4E"
option proto static
option ipaddr 192.168.2.1
option netmask 255.255.255.0


#### WAN configuration
config interface wan
option ifname "eth0.1"
# option macaddr "00:1a:92:b4:46:4f"
# option proto dhcp
option proto pppoe
option username "myusername"
option password "mypassword"
option keepalive 10

However, after reboot nothing happened, I do not have ADLS connection yet.

To tell the truth I do not understand few things:

1. What is the point of I set up 192.168.2.1 IP address? Why would be good 192.168.1.1?

2. If I am listing running process (with ps), why I can't find pppd or something like that?

3. Should I create an ppp entry in /etc/config/network file?

By the way, I have a workaround theory, it is just an idea: I downloaded latest web if (webif_latest.ipk), since I hope so, if I could manage to set up LAN/WAN/ADSL settings via web if, I would see the proper settings in /etc/config/network file too. That is why I copied ipk file of web if to USB drive with NTFS filesystem. Could you help me how I can mount that? I tried:

mount -t ntfs /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb
and
mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb

(I had created /mnt/usb)

but I did not have any success, mount is failed.


P.S.: One more strange thing I experienced, if I release 'ifup wan' command, I get this error:

"Interface type pppoe not supported."

back2basic
15-10-2008, 14:20
Hi back2basic,

****.

By the way, I have a workaround theory, it is just an idea: I downloaded latest web if (webif_latest.ipk), since I hope so, if I could manage to set up LAN/WAN/ADSL settings via web if, I would see the proper settings in /etc/config/network file too. That is why I copied ipk file of web if to USB drive with NTFS filesystem. Could you help me how I can mount that? I tried:

mount -t ntfs /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb
and
mount -t vfat /dev/scsi/host0/bus0/target0/lun0/part1 /mnt/usb

(I had created /mnt/usb)

but I did not have any success, mount is failed.


P.S.: One more strange thing I experienced, if I release 'ifup wan' command, I get this error:

"Interface type pppoe not supported."

you should be able to mount a usb stick make sure its formatted fat16/32
then mount /dev/scsi***** /mnt/usb should work

rest of the answers are coming still @work progress them later

metamorphose
15-10-2008, 21:35
OK, my workaround works: I have x-wrt web if on 192.168.1.1. Nice and detailed interface I am absolutelly amazed. Good work!

I found Network Configuration and I set these up:

LAN: connection type - static IP
type - none

WAN: connection type - PPPOE
type - none

Only if I modify last one and choose 'bridged', more options will appear.
So I could set connection datas, then I saved and applied changes, but while the router is committing changes, shows this error message:

"/sbin/ifup: export: 6: CONFIG_--help_ifname: bad variable name"

metamorphose
30-10-2008, 17:33
Hi back2basic,



could you attach your config file (/etc/config/network)?