Hi All,
I have very sucessfully installed OpenWrt 8.09 Kamikaze (r14417) and installed a SD/MMC card, but when I reboot the router all is lost, here is what I have done.
1. Installed the mmc.o for GPI02 Module to /lib/modules/2.4.35.4
2. echo 0x9c > /proc/diag/gpiomask
3. insmod mmc
4. dmesg gives me the following.
[INFO] mmc_hardware_init: initializing GPIOs
[INFO] mmc_card_init: the period of a 380KHz frequency lasts 524 CPU cycles
[INFO] mmc_card_init: powering card on. sending 80 CLK
[INFO] mmc_card_init: 80 CLK sent in 43646 CPU cycles
[INFO] mmc_card_init: resetting card (CMD0)
[INFO] mmc_card_init: doing initialization loop
[INFO] mmc_card_init: card inited successfully in 663 tries (20453423 CPU cycles).
[INFO] mmc_init: MMC/SD Card ID:
03 53 44 53 55 30 32 47 80 00 e3 a7 61 00 93 7b [INFO] Manufacturer ID : 03
[INFO] OEM/Application ID: SD
[INFO] Product name : SU02G
[INFO] Product revision : 8.0
[INFO] Product SN : 00e3a761
[INFO] Product Date : 2009-3
[INFO] mmc_card_config: size = 1931264, hardsectsize = 1024, sectors = 1931264
[WARN] mmc_init: hd_sizes=1931264, hd[0].nr_sects=3862528
[INFO] mmc_card_init: set_blocklen (CMD16) succeeded !
Partition check:
mmca: p1
5. opkg install e2fsprogs
6. mkfs.ext3 /dev/mmc/disc0/part1
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
241440 inodes, 482311 blocks
24115 blocks (5.00%) reserved for the super user
First data block=0
15 block groups
32768 blocks per group, 32768 fragments per group
16096 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
7. opkg install kmod-fs-ext3
8. mount -t ext3 /dev/mmc/disc0/part1 /mnt/
9. df -h
Filesystem Size Used Available Use% Mounted on
rootfs 1.6M 1.6M 0 100% /
/dev/root 1.6M 1.6M 0 100% /rom
tmpfs 7.0M 48.0k 7.0M 1% /tmp
/dev/mtdblock/4 1.7M 888.0k 840.0k 51% /jffs
mini_fo:/jffs 1.6M 1.6M 0 100% /
/dev/mmc/disc0/part1 1.8G 34.8M 1.7G 2% /mnt
I can now write or create whatever I want, in "mnt" which is my SD/MMC Card
------ Here is the strange part -------
1a. When I go "mount -t ext3 /dev/mmc/disc0/part1 /mnt/" the power LED keep flashing why is this?.
2b. The next is that this does not survive a reboot how can I fix this.
(Last edited by newboy on 1 Jun 2009, 03:41)