您尚未登录。

楼主 #1 2019-09-09 15:50:25

checkout
会员
注册时间: 2018-11-09
已发帖子: 173
积分: 168

widora NEO+openwrt ,无法cp文件

最近捣鼓openwrt,用widoraNEO,16M flash,刷最新的openwrt,挂载sd卡,无法cp大一点的文件
编译出来的内核大小有7.5M,不知是不是flash太小。有没大佬遇到过这种问题??

cp的时候报错,能cp小文件,大一点文件的就出错:

root@OpenWrt:/mnt# cp rtl8723bs_bt/rtlbt_* /lib/firmware/rtl_bt/
[  332.074739] attempt to access beyond end of device
[  332.079659] sda1: rw=0, want=274877915031, limit=15548416
[  332.090088] attempt to access beyond end of device
[  332.095049] sda1: rw=0, want=274877915016, limit=15548416
[  332.273654] attempt to access beyond end of device
[  332.278542] sda1: rw=0, want=274877915016, limit=15548416
[  332.284348] attempt to access beyond end of device
[  332.289213] sda1: rw=0, want=274877915016, limit=15548416
[  332.295006] attempt to access beyond end of device
[  332.299872] sda1: rw=0, want=274877915016, limit=15548416
cp: read error: I/O error
[  332.307076] attempt to access beyond end of device
[  332.312983] sda1: rw=0, want=274877915045, limit=15548416
[  332.322975] attempt to access beyond end of device
[  332.327886] sda1: rw=0, want=274877915016, limit=15548416
[  332.519397] attempt to access beyond end of device
[  332.524349] sda1: rw=0, want=274877915016, limit=15548416
[  332.529898] attempt to access beyond end of device
[  332.534809] sda1: rw=0, want=274877915016, limit=15548416
[  332.540657] attempt to access beyond end of device
[  332.545581] sda1: rw=0, want=274877915016, limit=15548416
cp: read error: I/O error
root@OpenWrt:/mnt# ls -l /lib/firmware/rtl_bt/
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_1.5M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_115200
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_1M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_2.5M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_2M
-rwxr-xr-x    1 root     root            55 Sep  5 12:39 rtlbt_config_921600
-rwxr-xr-x    1 root     root         32768 Sep  5 12:39 rtlbt_fw
-rwxr-xr-x    1 root     root         32768 Sep  5 12:39 rtlbt_fw_new
root@OpenWrt:/mnt# ls -l rtl8723bs_bt/rtlbt_*
-rwxr-xr-x    1 root     root            55 Sep  7  2019 rtl8723bs_bt/rtlbt_config
-rwxr-xr-x    1 root     root            55 Sep  4 00:18 rtl8723bs_bt/rtlbt_config_1.5M
-rwxr-xr-x    1 root     root            55 Sep  4 08:42 rtl8723bs_bt/rtlbt_config_115200
-rwxr-xr-x    1 root     root            55 Sep  4 15:26 rtl8723bs_bt/rtlbt_config_1M
-rwxr-xr-x    1 root     root            55 Sep  5  2019 rtl8723bs_bt/rtlbt_config_2.5M
-rwxr-xr-x    1 root     root            55 Sep  4 00:18 rtl8723bs_bt/rtlbt_config_2M
-rwxr-xr-x    1 root     root            55 Sep  4 00:18 rtl8723bs_bt/rtlbt_config_921600
-rwxr-xr-x    1 root     root         44504 Sep  4 00:18 rtl8723bs_bt/rtlbt_fw
-rwxr-xr-x    1 root     root         51364 Sep  4 00:18 rtl8723bs_bt/rtlbt_fw_new
root@OpenWrt:/mnt# 

启动log:

3: System Boot system code via Flash.
## Booting image at bc050000 ...
   Image Name:   MIPS OpenWrt Linux-4.14.141
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1887596 Bytes =  1.8 MB
   Load Address: 80000000
   Entry Point:  80000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 128

Starting kernel ...

[    0.000000] Linux version 4.14.141 (root@ubuntu) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r10956-62dbe36)) #0 Thu Sep 5 12:33:20 2019
[    0.000000] Board has DDR2
[    0.000000] Analog PMU set to hw control
[    0.000000] Digital PMU set to hw control
[    0.000000] SoC Type: MediaTek MT7688 ver:1 eco:2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019655 (MIPS 24KEc)
[    0.000000] MIPS: machine is Widora-NEO (16M)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Writing ErrCtl register=00038f6d
[    0.000000] Readback ErrCtl register=00038f6d
[    0.000000] Memory: 122560K/131072K available (4470K kernel code, 201K rwdata, 1020K rodata, 1212K init, 220K bss, 8512K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 256
[    0.000000] intc: using register map from devicetree
[    0.000000] CPU Clock: 580MHz
[    0.000000] timer_probe: no matching timers found
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6590553264 ns
[    0.000010] sched_clock: 32 bits at 290MHz, resolution 3ns, wraps every 7405115902ns
[    0.007542] Calibrating delay loop... 385.84 BogoMIPS (lpj=1929216)
[    0.073502] pid_max: default: 32768 minimum: 301
[    0.078234] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.084582] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.097627] random: get_random_u32 called from bucket_table_alloc+0x244/0x2d8 with crng_init=0
[    0.106467] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.115923] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.121972] pinctrl core: initialized pinctrl subsystem
[    0.128079] NET: Registered protocol family 16
[    0.167962] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.173557] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.179160] mt7621_gpio 10000600.gpio: registering 32 gpios
[    0.185544] i2c-mt7621 10000900.i2c: clock 100KHz, re-start not support
[    0.192273] Advanced Linux Sound Architecture Driver Initialized.
[    0.198755] Bluetooth: Core ver 2.22
[    0.202302] NET: Registered protocol family 31
[    0.206528] Bluetooth: HCI device and connection manager initialized
[    0.212689] Bluetooth: HCI socket layer initialized
[    0.217366] Bluetooth: L2CAP socket layer initialized
[    0.222265] Bluetooth: SCO socket layer initialized
[    0.231806] clocksource: Switched to clocksource MIPS
[    0.237941] NET: Registered protocol family 2
[    0.243022] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.249715] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.255908] TCP: Hash tables configured (established 1024 bind 1024)
[    0.262176] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.267776] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.274213] NET: Registered protocol family 1
[    0.282321] Crashlog allocated RAM at address 0x3f00000
[    0.289160] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[    0.302506] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.308082] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.336426] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    0.344892] io scheduler noop registered
[    0.348618] io scheduler deadline registered (default)
[    0.354566] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    0.361673] console [ttyS0] disabled
[    0.365184] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 28, base_baud = 2500000) is a 16550A
[    0.373920] console [ttyS0] enabled
[    0.373920] console [ttyS0] enabled
[    0.380902] bootconsole [early0] disabled
[    0.380902] bootconsole [early0] disabled
[    0.389668] 10000d00.uart1: ttyS1 at MMIO 0x10000d00 (irq = 29, base_baud = 2500000) is a 16550A
[    0.399273] 10000e00.uart2: ttyS2 at MMIO 0x10000e00 (irq = 30, base_baud = 2500000) is a 16550A
[    0.409903] spi-mt7621 10000b00.spi: sys_freq: 193333333
[    0.432269] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.437092] 4 fixed-partitions partitions found on MTD device spi0.0
[    0.443559] Creating 4 MTD partitions on "spi0.0":
[    0.448442] 0x000000000000-0x000000030000 : "u-boot"
[    0.454473] 0x000000030000-0x000000040000 : "u-boot-env"
[    0.460695] 0x000000040000-0x000000050000 : "factory"
[    0.466778] 0x000000050000-0x000001000000 : "firmware"
[    0.476094] 2 uimage-fw partitions found on MTD device firmware
[    0.482174] Creating 2 MTD partitions on "firmware":
[    0.487221] 0x000000000000-0x0000001ccdac : "kernel"
[    0.493226] 0x0000001ccdac-0x000000fb0000 : "rootfs"
[    0.499038] mtd: device 5 (rootfs) set to be root filesystem
[    0.506541] 1 squashfs-split partitions found on MTD device rootfs
[    0.512888] 0x000000760000-0x000000fb0000 : "rootfs_data"
[    0.520250] libphy: Fixed MDIO Bus: probed
[    0.535967] rt3050-esw 10110000.esw: link changed 0x00
[    0.542939] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[    0.552071] Bluetooth: HCI UART driver ver 2.3
[    0.556585] Bluetooth: HCI UART protocol H4 registered
[    0.561824] Bluetooth: HCI UART protocol BCSP registered
[    0.568997] NET: Registered protocol family 10
[    0.579175] Segment Routing with IPv6
[    0.583084] NET: Registered protocol family 17
[    0.588201] Bluetooth: RFCOMM TTY layer initialized
[    0.593237] Bluetooth: RFCOMM socket layer initialized
[    0.598473] Bluetooth: RFCOMM ver 1.11
[    0.602331] 8021q: 802.1Q VLAN Support v1.8
[    0.608534] ALSA device list:
[    0.611554]   No soundcards found.
[    0.620066] VFS: Mounted root (squashfs filesystem) readonly on device 31:5.
[    0.634000] Freeing unused kernel memory: 1212K
[    0.638593] This architecture does not have kernel memory protection.
[    1.463780] init: Console is alive
[    1.467478] init: - watchdog -
[    2.282097] random: fast init done
[    3.146608] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    3.233914] usbcore: registered new interface driver usbfs
[    3.239578] usbcore: registered new interface driver hub
[    3.245160] usbcore: registered new device driver usb
[    3.256815] exFAT: Version 1.2.9
[    3.294815] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.310916] SCSI subsystem initialized
[    3.320530] ehci-platform: EHCI generic platform driver
[    3.336241] phy phy-10120000.usbphy.0: remote usb device wakeup disabled
[    3.343072] phy phy-10120000.usbphy.0: UTMI 16bit 30MHz
[    3.348388] ehci-platform 101c0000.ehci: EHCI Host Controller
[    3.354267] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[    3.362435] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[    3.391858] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[    3.399286] hub 1-0:1.0: USB hub found
[    3.403652] hub 1-0:1.0: 1 port detected
[    3.411164] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    3.419401] ohci-platform: OHCI generic platform driver
[    3.425079] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[    3.432045] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[    3.440166] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[    3.516913] hub 2-0:1.0: USB hub found
[    3.521255] hub 2-0:1.0: 1 port detected
[    3.532678] usbcore: registered new interface driver usb-storage
[    3.539600] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.549324] init: - preinit -
[    4.406668] rt3050-esw 10110000.esw: link changed 0x00
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.714358] jffs2: notice: (455) jffs2_build_xattr_subsystem: complete building xattr subsystem, 5 of xdatum (3 unchecked, 2 orphan) and 8 of xref (2 dead, 0 orphan) found.
[    7.731948] mount_root: switching to jffs2 overlay
[    7.774758] overlayfs: upper fs does not support tmpfile.
[    7.784979] urandom-seed: Seeding with /etc/urandom.seed
[    7.916074] procd: - early -
[    7.919118] procd: - watchdog -
[    8.590203] procd: - watchdog -
[    8.593826] procd: - ubus -
[    8.748840] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.822226] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.829247] random: ubusd: uninitialized urandom read (4 bytes read)
[    8.836971] procd: - init -
Please press Enter to activate this console.
[    9.723534] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.900782] urngd: v1.0.0 started.
[    9.948031] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.969573] i2c /dev entries driver
[   10.011714] hidraw: raw HID events driver (C) Jiri Kosina
[   10.055377] Loading modules backported from Linux version v5.3-rc4-0-gd45331b00ddb
[   10.063140] Backport generated by backports.git v5.3-rc4-1-0-g4ec72687
[   10.093849] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.125043] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[   10.263371] usbcore: registered new interface driver usbhid
[   10.269031] usbhid: USB HID core driver
[   10.298269] usbcore: registered new interface driver usblp
[   10.316635] usbcore: registered new interface driver usbserial
[   10.322733] usbcore: registered new interface driver usbserial_generic
[   10.329434] usbserial: USB Serial support registered for generic
[   10.358915] random: crng init done
[   10.362413] random: 7 urandom warning(s) missed due to ratelimiting
[   10.390136] xt_time: kernel timezone is -0000
[   10.427138] usbcore: registered new interface driver cp210x
[   10.432980] usbserial: USB Serial support registered for cp210x
[   10.491876] mt76_wmac 10300000.wmac: ASIC revision: 76280001
[   11.513937] mt76_wmac 10300000.wmac: Firmware Version: 20151201
[   11.519960] mt76_wmac 10300000.wmac: Build Time: 20151201183641
[   11.541821] mt76_wmac 10300000.wmac: firmware init done
[   11.748018] PPP generic driver version 2.4.2
[   11.759277] NET: Registered protocol family 24
[   11.775986] kmodloader: done loading kernel modules from /etc/modules.d/*



BusyBox v1.31.0 () built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r10956-62dbe36
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# cat /proc/[   22.975107] br-lan: port 1(eth0) entered blocking state
[   22.980422] br-lan: port 1(eth0) entered disabled state
[   22.986178] device eth0 entered promiscuous mode
[   23.023331] br-lan: port 1(eth0) entered blocking state
[   23.028648] br-lan: port 1(eth0) entered forwarding state
[   23.034417] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   24.021895] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready

1/             158/           646/           device-tree/   mtd
10/            167/           7/             devices        net/
1042/          2/             761/           diskstats      partitions
1056/          221/           786/           driver/        scsi/
1061/          275/           8/             filesystems    self/
115/           3/             849/           fs/            softirqs
117/           339/           882/           interrupts     stat
118/           341/           9/             iomem          swaps
1196/          348/           939/           ioports        sys/
120/           4/             973/           kallsyms       sysrq-trigger
1255/          456/           asound/        kmsg           sysvipc/
1256/          5/             bus/           loadavg        thread-self/
1258/          516/           cgroups        meminfo        uptime
1260/          517/           cmdline        misc           version
1261/          534/           cpuinfo        modules        vmstat
145/           6/             crypto         mounts
root@OpenWrt:/# cat /proc/partitions 
major minor  #blocks  name

  31        0        192 mtdblock0
  31        1         64 mtdblock1
  31        2         64 mtdblock2
  31        3      16064 mtdblock3
  31        4       1843 mtdblock4
  31        5      14220 mtdblock5
  31        6       8512 mtdblock6
root@OpenWrt:/# cat /proc/filesystems 
nodev   sysfs
nodev   rootfs
nodev   ramfs
nodev   bdev
nodev   proc
nodev   cgroup
nodev   cgroup2
nodev   tmpfs
nodev   debugfs
nodev   sockfs
nodev   bpf
nodev   pipefs
nodev   devpts
        squashfs
nodev   jffs2
nodev   overlay
nodev   mqueue
        exfat
        ext3
        ext2
        ext4
nodev   autofs
        vfat
root@OpenWrt:/# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 00fb0000 00010000 "firmware"
mtd4: 001ccdac 00010000 "kernel"
mtd5: 00de3254 00010000 "rootfs"
mtd6: 00850000 00010000 "rootfs_data"
root@OpenWrt:/#

离线

楼主 #3 2019-09-09 16:20:16

checkout
会员
注册时间: 2018-11-09
已发帖子: 173
积分: 168

Re: widora NEO+openwrt ,无法cp文件

sd卡是FAT32文件系统
能挂载,就是cp大一点的文件会出错

root@OpenWrt:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                 5.8M      5.8M         0 100% /rom
tmpfs                    60.4M     60.0K     60.4M   0% /tmp
/dev/mtdblock6            8.3M    416.0K      7.9M   5% /overlay
overlayfs:/overlay        8.3M    416.0K      7.9M   5% /
tmpfs                   512.0K         0    512.0K   0% /dev
root@OpenWrt:/# mount /dev/sda1 /mnt/
[   51.724132] [EXFAT] trying to mount...
[   51.729609] [EXFAT] mounted successfully
root@OpenWrt:/# ls /mnt/
[   58.667871] convert_uni_to_ch: fail to use nls
[   58.672482] convert_uni_to_ch: fail to use nls
[   58.706128] convert_uni_to_ch: fail to use nls
[   58.710683] convert_uni_to_ch: fail to use nls
[   58.715243] convert_uni_to_ch: fail to use nls
[   58.719755] convert_uni_to_ch: fail to use nls
360                        backups
Android                    baidu
AppBuilder                 bluetooth
BaiduMusic                 download
DCIM                       go.sh
DockLock                   image2
LOST.DIR                   pictures
Movies                     posix-h5
Music                      rtl8723bs_bt
Scope代码                tbs
System Volume Information  voabbcassist
Tencent                    xy-tech
__Previews                 我的相册
root@OpenWrt:/# 
mango 说:

df -h 看一下,尤其是overlay的挂载。
sd卡是什么文件系统?我记得拷贝mp3挺顺利的。

最近编辑记录 checkout (2019-09-09 16:22:06)

离线

楼主 #4 2019-09-09 16:28:33

checkout
会员
注册时间: 2018-11-09
已发帖子: 173
积分: 168

Re: widora NEO+openwrt ,无法cp文件

换另外一张sd卡又可以了,可以拷贝大文件,泪奔。。。。
刷widora的官方固件两张sd卡都没问题,就是最新版本的openwrt一张sd卡拷贝不了大文件
搞不懂什么原因

离线

楼主 #6 2019-09-09 16:48:33

checkout
会员
注册时间: 2018-11-09
已发帖子: 173
积分: 168

Re: widora NEO+openwrt ,无法cp文件

不是这个问题,我是拿sd卡插读卡器,接usb-host的

mango 说:
checkout 说:

换另外一张sd卡又可以了,可以拷贝大文件,泪奔。。。。
刷widora的官方固件两张sd卡都没问题,就是最新版本的openwrt一张sd卡拷贝不了大文件
搞不懂什么原因

我擦,大概应该可以定位到sd驱动:mtk-sd: MediaTek MT6575 MSDC Driver
你看看最新op是否有这句打印,widora固件的log: https://www.widora.io/zh/version 
怕是op官方那些人又把驱动搞错了。

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn