Hi guys,
I've spent more times in these days to solve this problem on my WRT54G v3.1 with SDmod. I've read and used the howto follow this link: http://forum.openwrt.org/viewtopic.php?id=10816 and iìve try to do this on my environ...
I have modified the mount_root script with these line:
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org
. /etc/functions.sh
jffs2_ready () {
mtdpart="$(find_mtd_part rootfs_data)"
magic=$(hexdump $mtdpart -n 4 -e '4/1 "%02x"')
[ "$magic" != "deadc0de" ]
}
grep rootfs_data /proc/mtd >/dev/null 2>/dev/null && {
. /bin/firstboot
mtd unlock rootfs_data
jffs2_ready && {
echo "loading USB and ext2 modules"
insmod ext2
insmod mmc
echo "0x9c" > /proc/diag/gpiomask
sleep 2
echo "switching to jffs2"
mount /dev/mmc/disk0/part1 /jffs -t ext2 && \
fopivot /jffs /rom
} || {
echo "jffs2 not ready yet; using ramdisk"
ramoverlay
}
} || {
mtd unlock rootfs
mount -o remount,rw /dev/root /
}
I have correctly make image with ImageBuilder for Kamikaze 7.09 but when i reboot the router the jffs not change, the sd is loaded correctly but is not mounted properly the df -h command returns the sequences:
root@OpenWrt:/# df -h
Filesystem Size Used Available Use% Mounted on
none 7.0M 32.0k 7.0M 0% /tmp
mini_fo:/tmp/root 832.0k 832.0k 0 100% /tmp/root
/dev/mtdblock/4 2.4M 324.0k 2.1M 13% /jffs
mini_fo:/jffs 832.0k 832.0k 0 100% /
As you can see, no sd (/dev/mmc/disc0/part1) has mounted...
I don't know where i'd wrong!!!grrrrggrrrr.....
What can i try?
p.s.
If someone have solve this problem on wrt, please post the right mount_root script.
Thank you