Hi,
I'm having trouble with using the SD card in the 4g dongle (Huawei e3372) with my TLMR3020 device (with chaos calmer). I'm having 2 partitions in the sd card, EXT4 and FAT32. I'm using the EXT4 partition for extroot
The following is my /etc/config/fstab file
config 'global'
option anon_swap '0'
option anon_mount '0'
option auto_swap '1'
option auto_mount '1'
option delay_root '5'
option check_fs '0'
config 'mount'
option target '/overlay'
option uuid 'd3a9435a-f2d3-4ae0-8b0a-d2bb81bc09e4'
option enabled '1'
option fstype 'ext4'
config 'mount'
option target '/mnt/sda2'
option uuid 'BAF4-BD79'
option enabled '1'
and here's the output of df -h once the extroot comes up
root@meshh-v1:~# df -h
Filesystem Size Used Available Use% Mounted on
rootfs 3.5G 40.7M 3.3G 1% /
/dev/root 2.5M 2.5M 0 100% /rom
tmpfs 14.0M 92.0K 13.9M 1% /tmp
/dev/sda1 3.5G 40.7M 3.3G 1% /overlay
overlayfs:/overlay 3.5G 40.7M 3.3G 1% /
tmpfs 512.0K 0 512.0K 0% /dev
/dev/sda2 3.6G 114.8M 3.5G 3% /mnt/fat32
This works fine until I pull off the power and put it back on. The device stops working(only the power LED constantly on and WPS/Reset LED blinks) and when I check logs via console(after a lot of effort with uart), I get this log
[ 19.380000] PPP generic driver version 2.4.2
[ 19.390000] NET: Registered protocol family 24
[ 19.490000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[ 23.410000] blk_update_request: I/O error, dev sda, sector 0
[ 23.410000] sd 0:0:0:1: [sda] Synchronizing SCSI cache
[ 23.440000] usb 1-1: USB disconnect, device number 2
[ 23.510000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1567, block 0)
[ 23.550000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1567: comm ls: reading directory lblock 0
[ 23.710000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1712: comm sh: reading directory lblock 0
[ 23.720000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1567, block 0)
[ 23.750000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #241: comm ppp.sh: reading directory lblock 0
[ 23.820000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1706: comm ppp.sh: reading directory lblock 0
[ 23.840000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1567, block 0)
[ 24.000000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1570, block 0)
[ 24.020000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1570: comm ls: reading directory lblock 0
[ 24.080000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1570, block 0)
[ 24.180000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #240: comm ppp.sh: reading directory lblock 0
[ 24.320000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1713, block 0)
[ 24.360000] device eth0 entered promiscuous mode
[ 24.360000] IPv6: ADDRCONF(NETDEV_UP): br-wifi: link is not ready
[ 24.410000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1569, block 0)
[ 24.420000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[ 24.440000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #1569: comm ls: reading directory lblock 0
[ 24.450000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 205, block 0)
[ 24.470000] EXT4-fs error (device sda1): ext4_find_entry:1289: inode #205: comm ls: reading directory lblock 0
[ 24.500000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 205, block 0)
[ 24.610000] EXT4-fs warning (device sda1): __ext4_read_dirblock:884: error -5 reading directory block (ino 1570, block 0)
[ 24.770000] cdc_ether 1-1:1.0 eth1: register 'cdc_ether' at usb-ehci-platform-1, CDC Ethernet Device, 0c:5b:8f:27:9a:64
[ 24.790000] usb-storage 1-1:1.2: USB Mass Storage device detected
[ 24.790000] scsi host1: usb-storage 1-1:1.2
[ 25.800000] scsi 1:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 25.810000] sd 1:0:0:0: [sdb] 15523840 512-byte logical blocks: (7.94 GB/7.40 GiB)
[ 25.820000] sd 1:0:0:0: [sdb] Write Protect is off
[ 25.820000] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 25.840000] sdb: sdb1 sdb2
[ 25.850000] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[ 26.400000] eth0: link up (100Mbps/Full duplex)
[ 26.400000] br-wifi: port 1(eth0) entered forwarding state
[ 26.410000] br-wifi: port 1(eth0) entered forwarding state
[ 26.410000] IPv6: ADDRCONF(NETDEV_CHANGE): br-wifi: link becomes ready
[ 28.410000] br-wifi: port 1(eth0) entered forwarding state
And now this happens whenever I pull down power and put it back.
To come out of this state, I pull out the dongle, and let the device boot up normally(non-extroot). After that I insert the dongle back, wait till the 2 file systems on the sdcard are detected again. I use the 'block info' command and get the following output once the 2 file systems are detected
root@OpenWrt:/# block info
/dev/mtdblock2: UUID="f0b30ee8-ed7dd8aa-326cd6a0-1ad4dc5c" VERSION="4.0" TYPE="squashfs"
/dev/mtdblock3: TYPE="jffs2"
/dev/sda1: UUID="d3a9435a-f2d3-4ae0-8b0a-d2bb81bc09e4" LABEL="EXT4" NAME="EXT_JOURNAL" VERSION="1.0" TYPE="ext4"
/dev/sda2: UUID="BAF4-BD79" LABEL="FAT32 " VERSION="FAT32" TYPE="vfat"
After that I use the command 'reboot' and the device boots up properly with extroot
Can anyone please tell me why I'm getting this error when I try to boot the device(since it is not feasible for me to go to the commandline and cleanly reboot everytime).
Regards,
PS: I have tested with a normal sdcard reader and this error does not occur.