OpenWrt Forum Archive

Topic: Boot from SD-Card/Router can't start

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi all,

i'm new to this forum and to openwrt; so please forgive me any newbie-mistakes...

i have a linksys wrt54G Rev 3.1 with SD-mod, running kamikaze 8.09 (kernel 2.4.x)... the sd-card is working...

now, i wanted to mount the sd-card to have enough space to install some additional software - to do this, i followed this howto (i like the idea to have the original filesystem still "available" if anything fails):
http://oldwiki.openwrt.org/OpenWrtDocs( … HowTo.html

after setting the correct gpiomask for the rev 3.1-mod, everything works fine, EXCEPT:
- the part "Testing the script with your setup"; grep-commands make the router stall
- autostarting the bootext-script will cause a loop, which can only be stopped by removing the micro-SD (i soldered the sd-adapter on the linksys, so i can change the microSD) and power off/power on the router...
- starting the script (/etc/init.d/bootext start) will also make the router stall

B U T    when (the rooter boots "normal", and) i enter the command

echo "0xb8" >> /proc/diag/gpiomask

manualy before "bootext start", everything is working fine...

i copied the bootext-script and the bootfromexternalmedia-config 1by1 from the howto-page, altering the gpiomask and mount-points i needed...  as a "new to linux-script and -config"-guy, i think the echo-command in the bootext-script is not beeing processed/or not in the needed chronological order... at the moment, i start the router without bootext, then i enter the gpiomask & start the bootext-script... due to my "experiments" with/on the router & the software, i have to reboot frequently, what makes this procedure very ... hard.

does anyone has an idea how i can solve this problem, so i can enable the script for automatic start on bootup?
(if you need any config-files or system-logs: pls. tell me which ones, or how i can get them & i'll post them, thanks!!)

cheers & thanks for any reply!
mike

Hello,
Sorry that's not an answer rather a question.

I have the same configuration(Kam 8.09.1 vs 2.4), trying to do the same work, execpt i use an WRT54GL V1.1 so my gpiomask is 0x9c.

My SD card works very fine through ext3 ... after format in my external linux box and some capacitors (100nF + 10µF in //) very near (on!) the SD adaptator for the microSD.

But when i try to follow the topic  testing /ect/init.d/bootext stop fail:
-ash : can't find /etc/rc.common

Of course the /etc/rc.common is well here and reacheable.
Of course when trying to boot, i run in a dead lock  ... "attempt to kill init" and reboot!

Every script with #!/bin/sh /something ... ash can't find the something.

I'm running crazy!
I'm shure that it must be so simple to fix!

Have you some light for me ... may be only a candle!

By advance thanks, and sorry about my froggy english...

PhL

I had the same problem as mike-k. I inserted the line

echo "0x9c" >/proc/diag/gpiomask

at the beginning of function 'bootext_start()' and commented out following line:

#[ $module != mmc ] || [ ! "$gpiomask" ] || echo "$gpiomask" > /proc/diag/gpiomask || bootext_fail "could not set gpiomask"

After that I could enable the script like described in:  http://oldwiki.openwrt.org/OpenWrtDocs% … HowTo.html
Now after booting OpenWRT my mmc-card was correctly mounted as root directory.

After that opkg still tried to use the old filesystem instead of the mmc card. Now i edited /etc/opkg.conf and commented out following line:

#option overlay_root /jffs

And finally I could install packages on the mmc-card.
Hope this helpes anyone wink

The discussion might have continued from here.