1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New tomato mod with SDHC support

Discussion in 'Tomato Firmware' started by slodki, Feb 13, 2009.

  1. slodki

    slodki Addicted to LI Member

    I've prepared new tomato mod with latest SDHC card driver v.2.0.1 included. This allows to use SDHC cards (4GB and more) with the standard SD hardware mod for Linksys routers. You can also select any GPIO configuration via GUI.

    More information on http://gemini.net.pl/~slodki/tomato-sdhc.html

    I plan to merge this driver with other mods avaiable at git repo - to build a custom firmware specially for routers without USB like WRT54GL (openvpn, ftp, samba, new drivers...). Now with 16GB extra storage there is enough space not only for software, but also for any data (like torrents).

    Tom
     
  2. wdca

    wdca LI Guru Member

    Great work Tomku :)
    It would be nice if you could put the binary and src code somewhere "beyond" the git .cz repo because it's running so slowly.... that i can't download anything at all.
    Mirror the files please :)
    BTW It's nice that you didn't forget about the old routers :)
    Is the mmc.o module not enough to run the sdhc sd ?
    What is the "additional" thing to your mod (backend) that makes your tomato run with SDHC connected to gpio???
     
  3. slodki

    slodki Addicted to LI Member

    Mirroring all the source files is bad idea - I've only added/patched few files. Maybe I sould generate a patch file only (it should be avaiable from the git repo somewhere already)? But after merging changes with different mods (like openvpn etc) it could be hard to manage all the source file version locally...

    BTW repo.or.cz works very fast (for me) - sometimes even faster then local gitk browser (replication of all tomato branches takes only few minutes) :)

    This mod is very simple - new driver adds module parameters for GPIO settings, so I've only to add 4 nvram parameters and change modprobe() call to eval() with additional parameters. There are also some performance tunning parametres for this driver, but my benchmark doesn't show big differences among default settings.
    Original binary driver (build for openwrt) didn't work for my tomato, so I think recompiling is necesary.

    GUI is based on roadkill mod (I've used his firmware for a lon time, but didn't thank for the great mod - THANK YOU ROADKILL :).

    Tom
     
  4. teddy_bear

    teddy_bear Network Guru Member

    I would recommend anyone who is going to build a firmware image from this mod to merge it with my "tomato-FS-patches" branch. Since both mods are already in the same repo, and there are no conflicting changes in these branches, it will be an easy merge.
    With this merge you'll get:
    • a bunch of bug fixes for FAT/Ext2/Ext3 filesystems from later kernel versions;
    • support for large files (2 to 4 GB) on FAT;
    • support for Ext2/Ext3 filesystems with expanded inodes (i.e. inodes with szie 256);
    • forward-compatibility with other features of later versions of Ext2/Ext3 filesystems.
     
  5. Victek

    Victek Network Guru Member

    Hi slodki, welcome to the Babel Tower where the fun and passion are the kings. I downloaded your binary to try (I have an WRT54GL. v.1.0 with the typical GPIO 2-3-4-7 (same as your default configuration). Erase nvram after upgarde to start clean and then I selected Administration/SDHC GUI menu, when I push SAVE button after enable SDHC function it remain quiet, no message and the changes are not saved.

    Then I enter telnet and after insmod mmc, yep, it runs and the amber LED light up, here is the log after I typed the command:

    Feb 13 14:47:16 unknown user.info kernel: [INF] mmc: Version: 2.0.1 Parms: major=0 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2 dbg=0000
    Feb 13 14:47:16 unknown user.info kernel: [INF] mmc: SD Card detected & initialized
    Feb 13 14:47:16 unknown user.info kernel: [INF] mmc: Assigned dynamic major number 254
    Feb 13 14:47:16 unknown user.info kernel: Partition check:
    Feb 13 14:47:16 unknown user.info kernel: mmca:
    Feb 13 14:47:16 unknown user.info kernel: p1
    Feb 13 14:47:16 unknown user.info kernel: [INF] mmc: Module loaded

    But the GUI is not saving data, some bug?, edit: forgot to add, sdhc card 1GB, FAT format.

    Great job, Tomato grow (I hope stable). :)

    PS. One clarification, the original Tomato SD/MMC mod was made by Augusto Bott, roadkill integrated and clean it. I think we must mention each one of the Tomato contributors.
     
  6. Engineer

    Engineer Network Guru Member


    1GB card = SD. SDHC = larger than 2GB, for the record! ;)
     
  7. CheezWiz

    CheezWiz Guest

    SD cards are available up to 4 GB's so that equation is not entirely accurate..


    I too am having the issue where the web based GUI does nothing so there must be a bug somewhere?

    WRT54G-TM & Kingston 2 GB SD card..
     
  8. Engineer

    Engineer Network Guru Member

  9. jurasp

    jurasp Addicted to LI Member

    Hi guys,

    I've upgraded the linksys WRT54GL v1.1 with Tomato firmware to the version form the first post. But I'm not able to initialize the card properly.
    I've used two SanDisk cards (UltraII series) 512MB and 1GB, formated as ext2 or fat32.
    The sd mod was done according to following guide:
    http://wiki.openwrt.org/OpenWrtDocs/Customizing/Hardware/MMC

    After executiion of a command insmod mmc (the save button from GUI seems not working), I always receive the same result:

    Code:
    insmod: init_module: mmc: Protocol error
    Does anybody have an idea what can be wrong?

    I've also attached below the dmesg output:

    Code:
    [INF] mmc: Version: 2.0.1  Parms: major=0 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2 dbg=0000
    [ERR] mmc: init MM: CMD58 - protocol error - r1=ff
    [ERR] mmc: init: CMD16 - set blocksize failed - r1=ff
    [ERR] mmc: init MM: CMD58 - protocol error - r1=ff
    [ERR] mmc: init: CMD16 - set blocksize failed - r1=ff
    [INF] mmc: Module unloaded due to error
     
  10. slodki

    slodki Addicted to LI Member

  11. slodki

    slodki Addicted to LI Member

    You could add some debugging info to the syslog using:
    Code:
    modprobe -s mmc dbg=127
    Bit flags that specify what debugging to product to the system log:

    1 - Card initialization trace
    2 - Calls to module "open" function
    3 - Calls to module "release" function
    4 - Calls to module "check_change" function
    5 - Calls to module "revalidate" function
    6 - Calls to module "request" function
    7 - Calls to module "ioctl" function
    8 - Print "busy wait" information

    Tom
     
  12. Victek

    Victek Network Guru Member

    slodki, Thanks I go try now.
     
  13. jurasp

    jurasp Addicted to LI Member

    Thanks for a quick reply.
    With the newest version the 'Save' button works ok.

    I've tried to analyze some debug info and the driver source code, but I'm note an expert in linux low level drivers :)
    As I can se from the log, first few commands pass successfully - CMD8 chcecking the card type, CMD58 - voltage range, then ACMD41 returns an error.

    Maybe this is a card problem?

    Belwo the more detailed debug info:

    Code:
    [INF] mmc: Version: 2.0.1  Parms: major=0 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2 dbg=007f
    [DBG] mmc: init: power on/insertion initialization...
    [DBG] mmc: init: CMD0 - reset...
    [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    [DBG] mmc: init SD: CMD8 - illegal command - not v2.0 SD card...
    [DBG] mmc: init SD: CMD58 - OCR voltage range check...
    [DBG] mmc: init SD: ACMD41 - card initialization...
    [ERR] mmc: init SD: ACMD41 - protocol error - r1=c1
    [DBG] mmc: init - CMD16 - set 512 byte blocksize...
    [ERR] mmc: init: CMD16 - set blocksize failed - r1=f0
    [DBG] mmc: init: power on/insertion initialization...
    [DBG] mmc: init: CMD0 - reset...
    [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    [DBG] mmc: init SD: CMD8 - illegal command - not v2.0 SD card...
    [DBG] mmc: init SD: CMD58 - OCR voltage range check...
    [DBG] mmc: init SD: ACMD41 - card initialization...
    [ERR] mmc: init SD: ACMD41 - protocol error - r1=c1
    [DBG] mmc: init - CMD16 - set 512 byte blocksize...
    [ERR] mmc: init: CMD16 - set blocksize failed - r1=f0
    [INF] mmc: Module unloaded due to error
    
     
  14. stroths

    stroths Addicted to LI Member

    Thanks for setting this up. Did my first SD mod using a WRT54G-TM and got it working nicely.

    I did the mod on my router using the SD to microsd adapter that commonly comes with microsd cards now. I plugged in a FAT32 2GB as well as a FAT32 8gb microsd and both mounted as advertised. Great job!!

    When do you plan on merging in all the other Tomato updates into your build? Would you consider adding the blue dream theme to your build as well? I have been loading mine out of jffs, but it would be nicer if it was already included.

    Thanks again.
     
  15. CsBubo

    CsBubo Addicted to LI Member

    Problem with IE/Tomato GUI?

    Hello,

    not sure what is causing the problem, but for sure that under IE 7.0 I don't see the management page for SD/SDHC. In Firefox it shows up correctly.
    Anyway thanks for that, this is the first mod, utilizing My mod for the first try. Excellent work! :thumbup:
     
  16. MrSVT

    MrSVT LI Guru Member

    Hi slodki,

    First, I must say that your mod is working well with my router (WRT54GL). I've been able to do what I wanted since a while using your sources: I'm now able to mount the root on my SD card.

    The next step would be to have OpenVPN integrated to this Tomato version. If any one is interested in the steps I took, let me know.

    Code:
    [FONT="Fixedsys"]
    # df -h
    Filesystem                Size      Used Available Use% Mounted on
    rootfs                    1.9G     12.2M      1.8G   1% /
    /dev/root                 2.2M      2.2M         0 100% /mmc
    df: ramfs: No such file or directory
    /dev/mmc/disc0/part1      1.9G     12.2M      1.8G   1% /
    [/FONT]
     
  17. landa

    landa LI Guru Member

    I am interested; i have a WRT54GL with sd card and this version of tomato.
    Tell me what are the advantages to mount the root on the card? I use the card just to save the graphics and logos. What else can I do?

    Thanks!
     
  18. kmartburrito

    kmartburrito Addicted to LI Member

    Hey there,

    Please forgive my ignorance on the subject, but I wanted to run a question by the experts on this topic.

    I currently have two WRT54G's running DD-WRT micro and want to make the jump (if possible) to Tomato.

    Now, I completely understand that Tomato is "supposed" to be only compatible with the v1-v4 WRT54G's, but this is completely due to the lack of memory in the later versions from what I understand.

    Now to my question, if I do the SD mod to both of these routers (I think I have a v5 and a v8) to effectively raise their memory, can I then put on Tomato firmware to both of these routers?

    Thanks in advance for your help, it is GREATLY appreciated. I have done some research around this combo, and can't seem to find anything regarding my specific question. :thumbup:
     
  19. Toastman

    Toastman Super Moderator Staff Member Member

    I think you are posting in the wrong thread - but here goes. Adding SD card increases storage - not memory. Your memory is only 8MB and your routers are not running Linux - they are using VXworks. Therefore, you can't add the SD card anyway. So the answer is, you'll have to buy a proper router!
     
  20. kmartburrito

    kmartburrito Addicted to LI Member

    Thanks Toastman for your quick reply!

    Unfortunately, this is not the news I was hoping to hear, but now that you mention VXWorks, I remember that. :(

    All I want is a little Tomato action! I'll have to grab a Tomato-capable router after my DD-WRT setup fails me. Thanks again.
     
  21. MrSVT

    MrSVT LI Guru Member

    Hi,

    My goal is to be able to also add some other softwares later which the firmware can't hold since it have to fit to a specific memory size. Let me explain a bit. If I can compile or find softwares already compiled, install those softwares properly and/or just copy them to my SD card and they are becoming available to my router.

    You have to understand that for now, it's just proof of concept. I still have a lot of work to get it to a more usable point. Honestly. what I did was quite easy to achieve.

    Note: I also made my script in a way that if the router reboots without the SD card or with an empty SD card, it will revert as before and doesn't mount the rootfs on the SD card.
     
  22. saintraziel2

    saintraziel2 Addicted to LI Member

    if you only want to install software on sd you can simply use optware.

    maybe someone know how to add ftp/samba to this mod (like in other mods - accessible from gui)? samba2 already works from optware but for some reason i can't install vsftpd nor proftpd
     
  23. landa

    landa LI Guru Member

    However, tell me how you did. I want to try!

    Thanks!
     
  24. MrSVT

    MrSVT LI Guru Member

    Sorry for the long delay! To make a long story short, I had to reinstall my machine. First of all, I don't know much about Linux and router, I do this for fun.

    I simply added/activated pivot_root package to be built (in some configuration files in busybox directory) and rebuilt the firmware.

    Then everything I did is based on this link: Mounting the SD card to the root directory

    In order to make it work, I began by copying some files using the following steps (in a shell on my tomato router -- NOTE: SD card must be an ext2 file system):

    Code:
    mkdir /tmp/root
    mount -o bind /rom /tmp/root
    mount -o bind / /tmp/root
    cp /tmp/root/* /mmc -a
    
    Then I wrote a script called init2 (I created it in /mmc/sbin/) which I've put as a script to run once the card is mounted (it doesn't seems to execute busybox init properly, I will try work on it later); here is the script:

    Code:
    boot_dev="/dev/mmc/disc0/part1"
    [ -x /mmc/sbin/init ] && {
            mount -o move /proc /mmc/proc && \
                    pivot_root /mmc /mmc/mmc && {
                    mount -o move /mmc/dev /dev
                    mount -o move /mmc/tmp /tmp
                    mount -o move /mmc/jffs2 /jffs2 2>&-
                    mount -o move /mmc/sys /sys 2>&-
            }
    }
    exec /bin/busybox init
    
    This script changes the root only if the SD card is in (/mmc/sbin/init file existence detection on the SD card). By doing so, I can have as many SD card with as many firmware configurations or packages installed.

    Anyway, I'm doing for fun.

    Enjoy!
     
  25. landa

    landa LI Guru Member

    If i set the SD to ext2, i receive an error. The card is not mounted.

    Code:
    Apr 13 19:50:33 WRT54GL user.info kernel: [INF] mmc: Version: 2.0.1  Parms: major=121 din=2 dout=4 clk=3 cs=7 maxsec=32 rahead=2 dbg=0001
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init: power on/insertion initialization...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init: CMD0 - reset...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: CMD8 - illegal command - not v2.0 SD card...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: CMD58 - OCR voltage range check...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: ACMD41 - card initialization...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: CMD10 - Card Identification Register read...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: CMD9 - Card Specific Data read...
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init SD: ACMD51 - SD Config Register read...
    Apr 13 19:50:33 WRT54GL user.info kernel: [INF] mmc: SD Card detected & initialized
    Apr 13 19:50:33 WRT54GL user.info kernel: [DBG] mmc: init - CMD16 - set 512 byte blocksize...
    Apr 13 19:50:33 WRT54GL user.info kernel:  mmca:
    Apr 13 19:50:33 WRT54GL user.info kernel:  p1
    Apr 13 19:50:33 WRT54GL user.err kernel: devfs_mk_dir(mmc/disc0): using old entry in dir: 80a3aca0 "mmc"
    Apr 13 19:50:33 WRT54GL user.err kernel: devfs_register(disc): could not append to parent, err: -17
    Apr 13 19:50:33 WRT54GL user.info kernel: [INF] mmc: Module loaded
    Apr 13 19:50:33 WRT54GL user.warn kernel: VFS: Can't find ext2 filesystem on dev mmc(121,1).
    Apr 13 19:50:33 WRT54GL user.info kernel: [INF] mmc: Module unloaded
    
    What is the problem?
     
  26. MrSVT

    MrSVT LI Guru Member

    You need to format it in ext2. I don't know if it's feasible in Windows.
     
  27. landa

    landa LI Guru Member

    Thanks! I solved the problem. With Partition Manager is possible to format in ext2 trought windows.
     
  28. unknownserv

    unknownserv LI Guru Member

    Do you plan to add fat32 support?
     
  29. unknownserv

    unknownserv LI Guru Member

    I just carried out the SD mod, following the guide at http://www.the-mesh.org/tiki-index.php?page=LinksysSDCard. When I try and enable the SD card, I get this error "user.err kernel: [ERR] mmc: init: No card detected". I've checked the wires for continuity and made sure that they were each only soldered to one pad. What should I check next?
     
  30. landa

    landa LI Guru Member

    If you get that error means that the links are not soldered well!
    Look at this. Use Google to translate.
     
  31. unknownserv

    unknownserv LI Guru Member

    Turns out that it was the SD socket. I've now just soldered directly to the SD card, and it works fine. Is it possible to have samba2 running from the SD card (To make it available to windows as a share).
     
  32. landa

    landa LI Guru Member

    Will this upgrade to version 1.24?
     
  33. landa

    landa LI Guru Member

    Or to 1.25...
     
  34. crai

    crai LI Guru Member

    Sorry for my English.
    Slodki thanks for this great mod.
    I'm using this mod with my WRT54G-TM with a microSD and I have installed Asterisk as my home office PBX.
    It works great. I also installed PPTP server for access from outside.
    Slodki thanks for sharing your work.
     
  35. landa

    landa LI Guru Member

    No 1.25 on this version! :frown:
     
  36. slodki

    slodki Addicted to LI Member

  37. landa

    landa LI Guru Member

    Yesterday I installed the latest version. After, in the logos appear messages like:

    Nov 4 23:59:15 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 4 23:59:50 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 00:00:26 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 00:06:06 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 00:06:41 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 00:07:54 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 00:08:29 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 09:27:17 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 09:27:53 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 12:07:34 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 12:37:19 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 12:37:55 router user.info buttons[26]: SES pushed. Count was 1.
    Nov 5 12:38:30 router user.info buttons[26]: SES pushed. Count was 1.

    Why is happening? With 1.23 version, no such messages appeared.
     
  38. landa

    landa LI Guru Member

    Nobody use this version? That messages apear only when are clients connected to the router. Could be a problem with the sd card or with the soldering?

    Thanks!
     
  39. baldrickturnip

    baldrickturnip LI Guru Member

    as the button seems to be continually on maybe you have accidently shorted the button contacts when you have done your soldering.



    on the download page for this mod there is

    tomato-sdhc and tomato-slodki , what is the difference ?

    also on the todo list

    are the todo's being worked on and if so , is there a eta ?

    I was going to flash up a 54GL , but I did not want to to too much config if I will have to wipe it for newer firmware soon

    thanks
     
  40. landa

    landa LI Guru Member

    tomato-slodki is with OpenVPN client/server.
     
  41. DaeMonS

    DaeMonS Addicted to LI Member

    hi

    somebody know about version to WRT54GL, with sd and ftp ? i do not need vpn, but gui ftpd..
    thx
     
  42. roadkill

    roadkill Super Moderator Staff Member Member

    every wrg54gl will fit you, both versions work with the sd mod
     
  43. slodki

    slodki Addicted to LI Member

  44. kamatschka

    kamatschka Network Guru Member

    Thanks man...

    Finally a the 1.28 Tomato with SDHC Mod. I do not understand why other modders do not support SDHC anymore e.g. like TeddyBear. So thanks slodki!
     
  45. kamatschka

    kamatschka Network Guru Member

    Is it possible to merge the SDHC Support into the tomatoUSB Mod from teddy_bear (www.tomatousb.org) . Would be really great..

    Thanks in advance
     
  46. slodki

    slodki Addicted to LI Member

    New tomato-slodki-ND-1.28.02

    New version for routers with USB and/or SD is ready (http://gemini.net.pl/~slodki/tomato-sdhc.html). Based on the latest TomatoUSB (ND CIFS SMB USB EXT2 EXT3 FAT NTFS VPN FTP TFTP Zebra printserver) with SDHC/MMC support added.

    Tested on WRT54GL with SD mod. I need to add USB ports to my WRT54GL and see how it works with USB functions...

    Tom
     
  47. Beftus

    Beftus Network Guru Member

    I installed JTAG pin headers on my WRT54GL v1.1 and while I was at it I did the SD hardware mod. The 2 Gig SD card shows up in the Tomato web interface, see attachment.

    Output from dmesg:
    [INF] mmc: Version: 2.0.1 Parms: major=121 din=2 dout=4 clk=3 cs=7 maxsec=32 ra
    head=2 dbg=0001
    [DBG] mmc: init: power on/insertion initialization...
    [DBG] mmc: init: CMD0 - reset...
    [DBG] mmc: init SD: CMD8 - CIC voltage range check...
    [DBG] mmc: init SD: CMD58 - OCR voltage range check...
    [DBG] mmc: init SD: ACMD41 - card initialization...
    [DBG] mmc: init SD: CMD58 - Card Capacity Status check...
    [DBG] mmc: init SD: CMD10 - Card Identification Register read...
    [DBG] mmc: init SD: CMD9 - Card Specific Data read...
    [DBG] mmc: init SD: ACMD51 - SD Config Register read...
    [INF] mmc: SD Card detected & initialized
    [DBG] mmc: init - CMD16 - set 512 byte blocksize...
    Partition check:
    mmca: p1
    [INF] mmc: Module loaded

    I see no glaring error messages so I assume it's all well and groovy. Now how does this Linux-noob go about using/accessing the added storage? What can I use it for? Can it be used to write Tomato Syslogs to? Can it store hosts files for the ad-blocking script?
     

    Attached Files:

  48. slodki

    slodki Addicted to LI Member

    You have 2GB extra storage at /mmc directory ready. You can store here additional programs (/mmc/bin) or your own files. You can share this disk (or subdirectories) using ftp, samba, www server etc.

    Tom
     
  49. Beftus

    Beftus Network Guru Member

    OK using some shell commands I see

    Code:
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/mmc/disc0/part1   1925464      9860   1915604   1% /mmc
    
    How do I access it using FTP? Is there a method of accessing it through the Tomato GUI or must I Telnet into the router to do that? Remember I'm a complete Linux noob... Thanks!
     
  50. shibby20

    shibby20 Network Guru Member

    i think better mount sdcard directly on /opt. This will help in optware install. What do you think pal?
     
  51. aklee

    aklee Networkin' Nut Member

    SDHC mod for WRT320N

    Anyone has done the sdhc mod to routers with r2 processors, e.g. wrt320n?
     
  52. baluvee

    baluvee Network Guru Member

    Good work
    Suggestions to next version
    busybox updated to latest
    All in One Adblock
    BW IP/MAC limiter
    CPU Frequency & Oveclocking
    More themes
    Thanks
    Bala
     
  53. samsara00

    samsara00 Addicted to LI Member

    File riestica

    -edit-

    seems like the router didnt like the micro sd adapter anymore, i made a new sd adapter with a normal 4gb sdhc sd card in it, and it works :)
    but now, i dont know how to mount the sd card to the root directory, or how to save the logs,webmon and bandwithdata to the sdcard.

    The script from page 3 doesnt work for me


    Code:
    boot_dev="/dev/mmc/disc0/part1"
    [ -x /mmc/sbin/init ] && {
            mount -o move /proc /mmc/proc && \
                    pivot_root /mmc /mmc/mmc && {
                    mount -o move /mmc/dev /dev
                    mount -o move /mmc/tmp /tmp
                    mount -o move /mmc/jffs2 /jffs2 2>&-
                    mount -o move /mmc/sys /sys 2>&-
            }
    }
    exec /bin/busybox init
    but this works

    Code:
    mkdir /tmp/root
    mount -o bind /rom /tmp/root
    mount -o bind / /tmp/root
    cp /tmp/root/* /mmc -a
    But if I enter the first script in the init page, it wont load it.
    If i enter for example mount -o move /mmc/dev /dev via console, i get an error or unknown command.
    I tried it with "mount --bin /mmc /blabla" in the console and this works, but not via init script. But if i do "mount /mmc /" and then check via df -h the mmc is mountet to root, but has the exact same size than die flash ~3MB and not the 3,xx GB

    So anyone know how to bind the sdcard to root so the logs and everything will automatically be saved on it, or a script to save the logs, webmon and so on on the sd?
    thank you very much in advance :)
     
  54. matjadoel

    matjadoel Networkin' Nut Member

    SDHC/MMC driver upgrade

    any chance to upgrade to v2.0.2 http://4mul8.ca/openwrt/source/ ?

    --
    Mat JaDoel
     
  55. efkawe

    efkawe Addicted to LI Member

    Bug uploading files > 6MB

    Is there a bug in the software? Uploading date more than 6 MB onto SD-Card the upload stops at about 6 MB. Ist this normal and I do expect too much from the system? Or did I do something wron with soldering or configuration?
     

Share This Page