you need to run flashfs save before executing flash commit.
Hey Guy's,
First of all a big commandation from me, aspecially to Oleg, Antiloop + technik. You're doing a very good job, keeping this alive.
I invested Friday night and the complete Saturday reading all interesting post's from here. Today I flashed Oleg's v5 on my Dad's router, mainly 'cause I want to do admin job's from my homesite via ssh , and 'cause smb is much more comfortable than ftp .
But here come's my prob: I followed the step's Oleg discripe's on his Site, and after reboot I can't login via ssh. I took top and saw dropbearkey is running again, but after the keygen part it seems not to start the sshd. I also tried "flashfs commit" but it echo's this error msg:
Erased 65536 bytes from address 0x00000000 in flash
fopen(): No such file or directory
Hope one of you has a hint for me, I'll reflash it right now and then after config restoration, I'll try again including flashfs commit after the nvram commit.
As I'm using Debian since several years the commands are not that new to me, and so I don't think the mistake was on my Side. >> Anyway every hint is very appreciated.
If one need's additional info's just drop me a line via Mail: schmid17@arcor.de
Greetz
Mirco
you need to run flashfs save before executing flash commit.
Hi Oleg, thnx for that very fast answer.
To ensure the mistake wasn't in front of the PC:
I reseted to factory setting's than I loaded my conf file. After rebooting I telnet'ed to the router and enter'ed the following commands:
#>/init/rc.sshd
after the keys are generated I enter'ed
#>flashfs save; flashfs commit
then I restarted dropbear as you descriped on your page using again
#>/init/rc.sshd
then I set the bootCmd using:
#>nvram set bootCmdX=/init/rc.sshd
at last I commit nvram changes using:
#>nvram commit
and restarted using:
#>reboot
When the router is rebooted I still can't login via ssh. If I start it via telnet using "/init/rc.sshd" dropbearkeys runs again, not starting dropbear sshd after the keys are generated.
I think I made the correct steps, to have sshd coming up on boot.
My next step is to reflash the FW as I said in my first posting.
Greetz
Mirco
Have you read the following WIKI page: http://wiki.wl500g.info/index.php/PackageDropbear
It contains all info on howto enable dropbear SSH daemon.
Using boot commands is not recommended, and 'BootCmdX' is wrong, the 'X' should be a number.
Anyway, check the WIKI page.
Hey Styno, thnx for your super fast answer.
I read the wiki on saturday, but I'll reread the info's and try again.
I'll post again to give an echo.
Greetz
Mirco
I should have read the whole page.
I've migrated to flashfs-boot, and have both samba and dropbear running.
But now I have probs mounting my "SanDisk Cruzer" 512Megs USB-Stick
mount shows that usbfs is mounted but I can't mount using one of the following cmd's
mount -o remount,rw,noatime /dev/scsi/host0/
mount -o rw,noatime /dev/scsi/host0/ /mnt/usbfs
mount /mnt/usbfs
But the main point is done, thnx to Styno and Oleg.
I'll post some log's in 15 min's, hope we'll find the mistake.
Greetz
Mirco
you should mount /dev/scsi/host0/bus0/target0/lun0/part1, not a host or disk. There is an example for post-boot script on my page.Originally Posted by mirco