Posted: Mon Oct 16, 2023 16:52 Post subject: USB mount problem / EX6200 memory stuck at 400MHz bug
Hi
I'm a new DD-WRT user with two questions for you.
I tested r53662 mini on my EX6200 and I can't figure out how to mount a usb drive, first I formatted it to fat32 on a linux computer using GParted - copied a file to it from win10 machine and when I choose 'Automatic Drive Mount', using ssh I can't see the file when I connect using Winscp.
I can copy the same file over using winscp, I can run it perfectly fine, I can see it active using 'PS' but if I shut down router and restart it file is gone from sda1.
I also tried turing off automount and added a startup command for mounting drive using UUID but file is still missing after a reboot.
mkdir -p /mnt/data
mount -t vfat $(findfs UUID="3D73-1EBC") /mnt/data
As you might have guessed I'm not not very well known in the linux world.
Any ideas for the correct way to make this work ?
Also this is more a bug, under Administration/Management there is an option to choose between 800MHz and 600MHz clock, standard is 800MHz cpu / 533MHz memory clock.
CFE for Foxconn Repeater EX6200 version: v2.0.8
Build Date: Thu Apr 17 18:30:49 CST 2014
Init Arena
Init Devs.
Boot up from NOR flash...
Boot partition size = 262144(0x40000)
DDR Clock: 533 MHz
Info: DDR frequency set from clkfreq=800,*533*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.9 (r456593)
et1: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.9 (r456593)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes
If you set cpu to 600MHz memory is set at 400MHz.
CFE for Foxconn Repeater EX6200 version: v2.0.8
Build Date: Thu Apr 17 18:30:49 CST 2014
Init Arena
Init Devs.
Boot up from NOR flash...
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Warning: invalid DDR setting of 0 MHz ignored. DDR frequency will be set to 400 MHz.
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.9 (r456593)
et1: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.9 (r456593)
CPU type 0x0: 600MHz
Tot mem: 131072 KBytes
But if you now set it back to 800MHz memory clock is still 400MHz
CFE for Foxconn Repeater EX6200 version: v2.0.8
Build Date: Thu Apr 17 18:30:49 CST 2014
Init Arena
Init Devs.
Boot up from NOR flash...
Boot partition size = 262144(0x40000)
DDR Clock: 400 MHz
Warning: invalid DDR setting of 0 MHz ignored. DDR frequency will be set to 400 MHz.
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.9 (r456593)
et1: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.9 (r456593)
CPU type 0x0: 800MHz
Tot mem: 131072 KBytes
Factory Defaults via gui won't get it back to 533MHz, reset button on the back won't help either but 'nvram erase' from the command shell and a reboot will set memory at proper 533MHz.
Thanks, I now formatted the drive with free-partition manager and following the example with 3 partitions with fat32, opt and jffs.
All 3 partitons now is automounted during boot but files I write to any of those partitions using winscp is gone after a reboot of the router - I can't understand why that happens, anyone know why ?
Also, having a look at cpu and memory frequency using 'nvram get clkfreq' only shows cpu frequency but setting cpu/mem clock using 'nvram set clkfreq=800,533 nvram commit' fixes that - Thanks
I don't know if backplane frequency is altered, its not listed.
Joined: 18 Mar 2014 Posts: 13880 Location: Netherlands
Posted: Tue Oct 17, 2023 13:49 Post subject:
If that is the mount point you can copy to it.
You can view your mount points with mount:
Quote:
root@EA6900:~# mount
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512k)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
devpts on /proc/bus/usb type usbfs (rw,relatime)
/dev/sda3 on /jffs type ext4 (rw,noatime,nodiratime,nobarrier,init_itable=0)
/dev/sda4 on /opt type ext4 (rw,noatime,nodiratime,nobarrier,init_itable=0)
/dev/sda1 on /tmp/mnt/sda1 type vfat
I tested a few older ddwrt versions, could not make usb mount.
I flashed Netgear's EX6200_V1.0.0.38_1.1.52 and the same usbpen mounted all 3 partitions and I could see and download a file I wrote to the fat32 partition so now I know the extender hardware is ok and same with usb pen.
Joined: 08 May 2018 Posts: 16703 Location: Texas, USA
Posted: Wed Oct 18, 2023 0:11 Post subject:
@bushant:
I presume that since the files are ~6.9MB in size and the hardware is Broadcom Northstar, it's considered a "mini" vs. "std" on similar hardware with larger flash space.
/dev/sda2:
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
blockdev: No such file or directory
setting standby to 242 (1 hours)
Partition 2: 107 MiB (112197632 bytes, 219136 blocks of 512 bytes from 204800)
Type Basic Data (GUID A2A0D0EB-E5B9-3344-87C0-68B6B72699C7)
Partition Name "Basic data partition"
Partition GUID 8D9A0700-3050-C602-6C20-DB011A350F00
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
blockdev: No such file or directory
Ext2 file system
Volume name "opt"
UUID BDDAC702-6C00-DA01-3050-C6026C00DA01 (NCS)
Volume size 107 MiB (112197632 bytes, 109568 blocks of 1 KiB)
Partition 3: 117 MiB (122683392 bytes, 239616 blocks of 512 bytes from 423936)
Type Basic Data (GUID A2A0D0EB-E5B9-3344-87C0-68B6B72699C7)
Partition Name "Basic data partition"
Partition GUID 9FA90700-50FF-1205-6C78-DE013E530F00
Ext2 file system
Volume name "jffs"
UUID DFFF1705-6C00-DA01-50FF-12056C00DA01 (NCS)
Volume size 117 MiB (122683392 bytes, 119808 blocks of 1 KiB)
Partition 4: unused
mount: mounting /dev/sda1 on /tmp/mnt/sda1 failed: No such device
mount: mounting /dev/sda1 on /tmp/mnt/sda1 failed: Invalid argument
mount: mounting /dev/sda3 on /jffs failed: No such device
mount: mounting /dev/sda2 on /opt failed: No such device
mount: mounting /dev/sda3 on /jffs failed: Invalid argument
mount: mounting /dev/sda2 on /opt failed: Invalid argument
/dev/sda:
cp: can't stat '/tmp/mycron.d/*': No such file or directory
setting standby to 242 (1 hours)
SG_IO: bad/missing sense data, sb[]: 70 00 05 00 00 00 00 0a 00 00 00 00 24 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
cp: can't stat '/jffs/mycron.d/*': No such file or directory
blockdev: No such file or directory
cp: can't stat '/mmc/mycron.d/*': No such file or directory
[cron] : successfully started/opt/etc/init.d/rcS: No such file or directory
[cron] : daemon successfully stopped
cp: can't stat '/tmp/mycron.d/*': No such file or directory
cp: can't stat '/jffs/mycron.d/*': No such file or directory
cp: can't stat '/mmc/mycron.d/*': No such file or directory
[cron] : successfully started[cron] : daemon successfully stopped
sh: can't create /sys/class/ksmbd-control/kill_server: nonexistent directory
cp: can't stat '/tmp/mycron.d/*': No such file or directory
cp: can't stat '/jffs/mycron.d/*': No such file or directory
sh: can't create /sys/class/ksmbd-control/kill_server: nonexistent directory
cp: can't stat '/mmc/mycron.d/*': No such file or directory
method nfs not found
[cron] : successfully startedmethod rsync not found
method dlna not found
method nfs not found
method rsync not found
sh: can't create /sys/class/ksmbd-control/kill_server: nonexistent directory
method dlna not found
method nfs not found
method rsync not found
method dlna not found
[cron] : daemon successfully stopped
cp: can't stat '/tmp/mycron.d/*': No such file or directory
cp: can't stat '/jffs/mycron.d/*': No such file or directory
cp: can't stat '/mmc/mycron.d/*': No such file or directory
[cron] : successfully startedsh: can't create /sys/class/ksmbd-control/kill_server: nonexistent directory
method nfs not found
method rsync not found
method dlna not found
As you see I get some invalid arguments during mounting:
Code:
mount: mounting /dev/sda1 on /tmp/mnt/sda1 failed: No such device
mount: mounting /dev/sda1 on /tmp/mnt/sda1 failed: Invalid argument
mount: mounting /dev/sda3 on /jffs failed: No such device
mount: mounting /dev/sda2 on /opt failed: No such device
mount: mounting /dev/sda3 on /jffs failed: Invalid argument
mount: mounting /dev/sda2 on /opt failed: Invalid argument
Is this because of the hub does not find any usb ports ?
Code:
hub 3-0:1.0: config failed, hub doesn't have any ports! (err -19)
Ok, I finally got it working - according to this user and his ticket usb was working using r45767 the very first release where usb support was added for the ex6200 - ticket 7345
I flashed it and my drives did not mount, I then tried ntfs and for the first time it worked fine and gui shows the used diskspace too but I could not write to the drive as winscp gave a 'Broken pipe' error.
I updated to r53708 and 'Broken pipe' error was gone, rereading BrainSlayer's post he writes that he added 'samba,exfat and ntfs3' - there is not a word about supporting ext2,3, or 4 filesystems.
Perhaps other filesystems was not added because the ex6200 only has 8MB flash memory.
I also tried exfat and it works just as fine as ntfs, files now does not disappear after a reboot and everything seems just fine.
Hehe I'm a happy camper even if I spent over a week looking for a solution for this usb problem - hope this post is helpful for others with same problem.