Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Tue Nov 10, 2009 21:14 Post subject:
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
Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Tue Nov 10, 2009 21:26 Post subject:
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.
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Wed Nov 11, 2009 2:47 Post subject:
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
Joined: 24 Feb 2009 Posts: 2026 Location: Sol System > Earth > USA > Arkansas
Posted: Wed Nov 11, 2009 3:34 Post subject:
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.
Joined: 22 Jun 2008 Posts: 2440 Location: Am now Dark_Shadow
Posted: Fri Nov 13, 2009 9:17 Post subject:
@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
Joined: 26 Jan 2008 Posts: 13049 Location: Behind The Reset Button
Posted: Fri Nov 13, 2009 14:35 Post subject:
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]