TM - SD Mod.. Another one - problem

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8
Author Message
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Tue Nov 10, 2009 21:14    Post subject: Reply with quote
barryware wrote:
DHC_DarkShadow wrote:

So your intire start up script should look like

Code:
umount /mmc
sleep 5
rmmod mmc
cd /tmp
wget http://niuki.net/sdhc-gpio2.o
insmod /tmp/sdhc-gpio2.o
mount -t noatime,nodiratime /dev/mmc/disk0/part1 /mmc
sleep 2
mount -o bind /mmc/opt /opt
n=1
while [ ! -d /opt/etc/init.d ] ; do
  sleep 3
  [ $n -gt 30 ] && bread
  let n+=1
done
/opt/etc/init.d/optK


So, that is the complete startup script?

I still dont' have optware installed (re-installed). The remote server that gets connected to in the sh /tmp/prep_optware command is not responding.


In the end that is what the startup script will look like.

on a side note I just power cycled my router and the drive did not come back, but it has serviced several reboots.

NOTE scratch the step 5 change. It just screws everything up when you power cycle the router. I should probably start a new thread so I can change the fist post heheh

_________________
The New Me
Sponsor
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Tue Nov 10, 2009 21:26    Post subject: Reply with quote
forget about the sd driver update for now.

I am at a loss.. The sd card is mounted and properly seen. /opt is mounted to the sd card. I posted my mount output.

I have used the startup script in the wiki changing it for an sd card instead of a usb device.

Used only a command to mount /opt to the sd card, etc, etc..

using wget and running the following sh to install the optware, everything looks OK (to me). It installs a bunch of stuff, successfully terminates, at the end, the routine does an nvram commit:end

After that, the telnet screen shows no more output. I am not back at the telnet prompt. Watching the led's, there is something going on. (data transfer to / from the sd card) after a few, all activity stops.

How long should I wait before another re-boot. The wiki states that the process will take 10 - 20 minutes depending... Takes no where near that long to get the nvram commit. Possible 2 minutes..

It looks like the router reboots, the sd card is populated with files and folders in the folder /opt, and it just does not start (optware)..

Unless I am checking it wrong.. in telnet, I am issuing "service" to see what is running.. nada..

Time to take a break.

Edit:

Screw the break.. I finally got it. I don't know how. I did nothing different this time around, or at least nothing I have not done before.


DD-WRT v24-sp2 std (c) 2009 NewMedia-NET GmbH
Release: 09/30/09 (SVN revision: 13000)

DD-WRT login: root
Password:
==========================================================

____ ___ __ ______ _____ ____ _ _
| _ \| _ \ \ \ / / _ \_ _| __ _|___ \| || |
|| | || ||____\ \ /\ / /| |_) || | \ \ / / __) | || |_
||_| ||_||_____\ V V / | _ < | | \ V / / __/|__ _|
|___/|___/ \_/\_/ |_| \_\|_| \_/ |_____| |_|

DD-WRT v24-sp2
http://www.dd-wrt.com

==========================================================


BusyBox v1.13.4 (2009-09-30 12:41:56 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@DD-WRT:~# service
Service: usbmount (/opt/etc/init.d/S30usbmount) disabled
Service: automount (/opt/etc/init.d/S35automount)
Service: pound (/opt/etc/init.d/S80pound) disabled
Service: pixelserv (/opt/etc/init.d/S45pixelserv) disabled
Service: vlighttpd (/opt/etc/init.d/S80vlighttpd) disabled
Service: asterisk (/opt/etc/init.d/S90asterisk) disabled
Service: transmission-daemon (/opt/etc/init.d/S90transmission) disabled
Service: asiablock (/opt/etc/init.d/S95asiablock) disabled
Service: samba (/opt/etc/init.d/S80samba)
Service: xinetd (/opt/etc/init.d/S10xinetd) disabled
root@DD-WRT:~#

Mr. Green

_________________
[Moderator Deleted] Shocked
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Wed Nov 11, 2009 1:35    Post subject: Reply with quote
@dch....

clock your tm up to 216.. makes a huge diff.. Very Happy

_________________
[Moderator Deleted] Shocked
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Wed Nov 11, 2009 2:47    Post subject: Reply with quote
Yes it does configuring after the opt install, then it will pick backup with installing other software packages, but if you don't use the new sd driver the router finally gets over whelmed with sd activity it reboots. that was the problem I was having. The new driver fixed that and i don't have to overclock. Trust me there is a whole gob of Sh..... Stuff fraters script installs and configures. It's not a 10 or 15 min thing.

I have everything installed and working. Did it twice on two differen cards, just follow these steps.

Fresh system 30/30/30. Clean formated sd card ext2 or ext3. with 1 directory /opt

1. boot router and setup GPIO's in the GUI
2. login to the router via ssh
3. run this

Code:
umount /mmc
rmmod mmc
cd /tmp
wget http://niuki.net/sdhc-gpio2.o
insmod /tmp/sdhc-gpio2.o
mount /dev/mmc/part1 /mmc/
mount -o /mmc/opt /opt



4. then run fraters script

Code:
wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware
sh /tmp/prep_optware


5. When adviced to reboot, go into the GUI and at the line

Code:
mount -o /mmc/opt /opt


to the top of the startup script

6. reboot

Note. the new driver will only be used during installation. It will not survive the reboot. I haven't figured out how to run a script to keep it running.

_________________
The New Me
crashfly
DD-WRT Guru


Joined: 24 Feb 2009
Posts: 2026
Location: Sol System > Earth > USA > Arkansas

PostPosted: Wed Nov 11, 2009 3:34    Post subject: Reply with quote
DHC_DarkShadow wrote:
Note. the new driver will only be used during installation. It will not survive the reboot. I haven't figured out how to run a script to keep it running.

Too bad we cannot save binary information into any of DD-WRT's variables (maybe encode them first?). That would really improve the usability of "inserting" certain modules at startup. Just take the variable, rewrite the file to temp and then start up.

Of course, I suppose that is what jffs is for also.

_________________
E3000 22200M KongVPN K26
WRT600n v1.1 refirb mega 18767 BS K24 NEWD2 [not used]
WRT54G v2 16214 BS K24 [access point]

Try Dropbox for syncing files - get 2.5gb online for free by signing up.

Read! Peacock thread
*PLEASE* upgrade PAST v24SP1 or no support.
DHC_DarkShadow
DD-WRT Guru


Joined: 22 Jun 2008
Posts: 2440
Location: Am now Dark_Shadow

PostPosted: Fri Nov 13, 2009 9:17    Post subject: Reply with quote
@BW, When you had your SD card partitioned, did you get a chance to look at it via WinSCP? If so how did it look? Were you able to see all the partitions?
_________________
The New Me
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 13049
Location: Behind The Reset Button

PostPosted: Fri Nov 13, 2009 14:35    Post subject: Reply with quote
DHC_DarkShadow wrote:
@BW, When you had your SD card partitioned, did you get a chance to look at it via WinSCP? If so how did it look? Were you able to see all the partitions?


I didn't use winscp to look at anything. I was using telnet..

The mmc status would only report the size of the 1st partition. The others were not seen at first.

I was able to mount the other partitions /dev/mmc/disc0/part2 ~ part3, etc, but went to only a single partition with folders.

Got that to work so I never went back to the seperate partitions.

_________________
[Moderator Deleted] Shocked
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8 Display posts from previous:    Page 8 of 8
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum