Autor Tema: [Desarrollo] OpenWrt en Comtrend AR-5387un  (Leído 637213 veces)

0 Usuarios y 3 Visitantes están viendo este tema.

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1120 en: 03-11-2014, 23:31 (Lunes) »
EDITADO.

He encontrado la manera de instalar BLOCK MOUNT, que según parece es esencial para montar unidades. (lo he conseguido instalandolo desde LuCi, solo que había intentado hacerlo también desde el Putty solo para ver qué pasaba).

Código: [Seleccionar]
root@OpenWrt:/mnt# opkg update && opkg install kmod-usb-storage block-mount kmod-fs-vfat
Downloading http://downloads.openwrt.org/barrier_breaker/14.07-rc3/brcm63xx/generic/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker.
Package kmod-usb-storage (3.10.49-1) installed in root is up to date.
Package block-mount (2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e) installed in root is up to date.
Package kmod-fs-vfat (3.10.49-1) installed in root is up to date.

Sin embargo al montar el Pendrive me da error (FAT32 formateado desde un LiveCD de gParted)....

Código: [Seleccionar]
root@OpenWrt:/mnt# mkdir -p /mnt/pendrive && mount -t vfat /dev/sda1 /mnt/pendrive -o rw
,sync
mount: mounting /dev/sda1 on /mnt/pendrive failed: Invalid argument
root@OpenWrt:/mnt#


« Última modificación: 04-11-2014, 02:21 (Martes) por Sekmeth »

arfonzo

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1121 en: 04-11-2014, 08:10 (Martes) »
Una vez montada la unidad USB, que en uno de los hilos del foro viene explicado como hacerlo (no recuerdo en cual, échale un vistazo a uno que trae un índice de los esenciales), puedes seguir este video tutoríal que explica a las mil maravillas como montar samba desde Lucí.

Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 1956
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1122 en: 04-11-2014, 08:14 (Martes) »
EDITADO.

He encontrado la manera de instalar BLOCK MOUNT, que según parece es esencial para montar unidades. (lo he conseguido instalandolo desde LuCi, solo que había intentado hacerlo también desde el Putty solo para ver qué pasaba).

Código: [Seleccionar]
root@OpenWrt:/mnt# opkg update && opkg install kmod-usb-storage block-mount kmod-fs-vfat
Downloading http://downloads.openwrt.org/barrier_breaker/14.07-rc3/brcm63xx/generic/packages/Packages.gz.
Updated list of available packages in /var/opkg-lists/barrier_breaker.
Package kmod-usb-storage (3.10.49-1) installed in root is up to date.
Package block-mount (2014-06-22-e0430f5c62f367e5a8e02755412977b02c3fc45e) installed in root is up to date.
Package kmod-fs-vfat (3.10.49-1) installed in root is up to date.

Sin embargo al montar el Pendrive me da error (FAT32 formateado desde un LiveCD de gParted)....

Código: [Seleccionar]
root@OpenWrt:/mnt# mkdir -p /mnt/pendrive && mount -t vfat /dev/sda1 /mnt/pendrive -o rw
,sync
mount: mounting /dev/sda1 on /mnt/pendrive failed: Invalid argument
root@OpenWrt:/mnt#

Código: [Seleccionar]
mount --help

Usage: mount [OPTIONS] [-o OPTS] DEVICE NODE

Mount a filesystem. Filesystem autodetection requires /proc.

        -a              Mount all filesystems in fstab
        -i              Don't run mount helper
        -r              Read-only mount
        -w              Read-write mount (default)
        -t FSTYPE       Filesystem type
        -O OPT          Mount only filesystems with option OPT (-a only)
-o OPT:
        loop            Ignored (loop devices are autodetected)
        [a]sync         Writes are [a]synchronous
        [no]atime       Disable/enable updates to inode access times
        [no]diratime    Disable/enable atime updates to directories
        [no]relatime    Disable/enable atime updates relative to modification time
        [no]dev         (Dis)allow use of special device files
        [no]exec        (Dis)allow use of executable files
        [no]suid        (Dis)allow set-user-id-root programs
        [r]shared       Convert [recursively] to a shared subtree
        [r]slave        Convert [recursively] to a slave subtree
        [r]private      Convert [recursively] to a private subtree
        [un]bindable    Make mount point [un]able to be bind mounted
        [r]bind         Bind a file or directory [recursively] to another location
        move            Relocate an existing mount point
        remount         Remount a mounted filesystem, changing flags
        ro/rw           Same as -r/-w

Prueba con
Código: [Seleccionar]
mount -t vfat -o sync /dev/sda1 /mnt/pendriveEl read/write ya lo hace por defecto...
« Última modificación: 04-11-2014, 08:15 (Martes) por Tki2000 »
No habrás entendido algo, hasta que seas capaz de explicárselo a tu abuela...
Hacemos pantallas con píxeles casi invisibles, para luego ampliar la letra porque no la vemos... Bonita paradoja...
Creamos analfabetos tecnológicos con una velocidad pasmosa. Todo el mundo "maneja" tecnología, casi nadie sabe lo que tiene entre las manos, pero todo el mundo opina.
El analfabetismo, antes, pasaba desapercibido. Ahora, se transmite por Internet y las redes sociales.
Solo a un mandril epiléptico se le podría haber ocurrido diseñar la cinta de menú de M$.

pikomule

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1123 en: 04-11-2014, 12:23 (Martes) »
Con esto:
Código: [Seleccionar]
mount -t vfat -o sync /dev/sda1 /mnt/pendrive
Me dice esto:
Código: [Seleccionar]
root@OpenWrt:~# mounting /dev/sda7 on /mnt/sda2 failed: Invalid argument
sda7 es mi particion fat32 en ese disco duro

Con el comando "df -h" me muesra la particion ext4 "/dev/sda6" y me indica que esta montada en "mnt/sda1". Con las particiones EXT4 no tengo problema, se montan automaticamente. Pero con Fat32 no hay manera, ni por SSH ni a traves de Block-mount indicandole los parametros.

Este es el resultado de hacer un DMESG, justo despues de haber desconectado el disco duro usb y volviendolo a conectar:

root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (noltari@skynet) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42068) ) #1 Wed Aug 13 14:45:32 CEST 2014
[    0.000000] Detected Broadcom 0x6328 CPU revision b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-110.11-2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board: board name: 96328A-1441N1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802e6ab0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 61336k/65536k available (2375k kernel code, 4200k reserved, 631k data, 320k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.036000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.288000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.308000] PCI host bridge to bus 0000:00
[    0.312000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x10ffffff]
[    0.316000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.320000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.324000] pci 0000:00:00.0: [14e4:6328] type 01 class 0x060400
[    0.324000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.324000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.328000] pci 0000:01:00.0: [14e4:a8d8] type 00 class 0x028000
[    0.328000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.328000] pci 0000:01:00.0: supports D1 D2
[    0.328000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.328000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.328000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.332000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.336000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.340000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.344000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.348000] Switching to clocksource MIPS
[    0.356000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.364000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.372000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.380000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.388000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.480000] bcma: bus0: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    0.496000] bcma: bus0: Bus registered
[    0.504000] NET: Registered protocol family 2
[    0.508000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.516000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.520000] TCP: Hash tables configured (established 512 bind 512)
[    0.528000] TCP: reno registered
[    0.532000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.540000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.544000] NET: Registered protocol family 1
[    0.548000] PCI: CLS 0 bytes, default 16
[    0.552000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.560000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.572000] msgmni has been set to 119
[    0.576000] io scheduler noop registered
[    0.580000] io scheduler deadline registered (default)
[    0.588000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.596000] console [ttyS0] enabled, bootconsole disabled
[    0.612000] m25p80 spi1.0: found mx25l12805d, expected m25p80
[    0.620000] m25p80 spi1.0: mx25l12805d (16384 Kbytes)
[    0.624000] bcm63xxpart: CFE boot tag found with version 6 and board type 96328A-1441N1
[    0.632000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.640000] bcm63xxpart: Partition 1 is kernel offset 10100 and length 10ff00
[    0.648000] bcm63xxpart: Partition 2 is rootfs offset 120000 and length ed0000
[    0.656000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.660000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.668000] bcm63xxpart: Spare partition is offset 5e0004 and length a0fffc
[    0.676000] 5 bcm63xxpart partitions found on MTD device spi1.0
[    0.684000] Creating 5 MTD partitions on "spi1.0":
[    0.688000] 0x000000000000-0x000000010000 : "CFE"
[    0.696000] 0x000000010100-0x000000120000 : "kernel"
[    0.700000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.716000] 0x000000120000-0x000000ff0000 : "rootfs"
[    0.724000] mtd: device 2 (rootfs) set to be root filesystem
[    0.728000] mtd: partition "rootfs_data" created automatically, ofs=0x5e0000, len=0xa10000
[    0.740000] 0x0000005e0000-0x000000ff0000 : "rootfs_data"
[    0.748000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.756000] 0x000000010000-0x000000ff0000 : "linux"
[    0.804000] b53_common: found switch: BCM63xx, rev 0
[    0.808000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.820000] TCP: cubic registered
[    0.824000] NET: Registered protocol family 17
[    0.828000] 8021q: 802.1Q VLAN Support v1.8
[    0.844000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.856000] Freeing unused kernel memory: 320K (80300000 - 80350000)
[    7.184000] usbcore: registered new interface driver usbfs
[    7.192000] usbcore: registered new interface driver hub
[    7.196000] usbcore: registered new device driver usb
[    7.212000] Button Hotplug driver version 0.4.1
[    7.308000] SCSI subsystem initialized
[    7.328000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.336000] ehci-platform: EHCI generic platform driver
[    7.444000] ehci-platform ehci-platform: EHCI Host Controller
[    7.448000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    7.456000] ehci-platform ehci-platform: irq 50, io mem 0xb0002500
[    7.476000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[    7.484000] hub 1-0:1.0: USB hub found
[    7.488000] hub 1-0:1.0: 1 port detected
[    7.500000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.504000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[    7.512000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[    7.520000] ohci-platform ohci-platform: irq 49, io mem 0xb0002600
[    7.588000] hub 2-0:1.0: USB hub found
[    7.592000] hub 2-0:1.0: 1 port detected
[    7.608000] usbcore: registered new interface driver usb-storage
[    7.620000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[    7.808000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.092000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.108000] scsi0 : usb-storage 1-1:1.0
[    9.116000] scsi 0:0:0:0: Direct-Access     TOSHIBA  MK3265GSX H           PQ: 0 ANSI: 0
[    9.136000] sd 0:0:0:0: [sda] 625140335 512-byte logical blocks: (320 GB/298 GiB)
[    9.144000] sd 0:0:0:0: [sda] Write Protect is off
[    9.152000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[    9.152000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.156000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.168000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.172000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.260000]  sda: sda1 < sda5 sda6 sda7 >
[    9.272000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.280000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.284000] sd 0:0:0:0: [sda] Attached SCSI disk
[   12.556000] jffs2: notice: (262) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 68 of xref (0 dead, 53 orphan) found.
[   15.016000] EXT4-fs (sda1): unable to read superblock
[   15.024000] EXT4-fs (sda1): unable to read superblock
[   15.040000] EXT4-fs (sda1): unable to read superblock
[   16.152000] Adding 1020092k swap on /dev/sda5.  Priority:-1 extents:1 across:1020092k
[   19.360000] EXT4-fs (sda6): recovery complete
[   19.364000] EXT4-fs (sda6): mounted filesystem with ordered data mode. Opts: (null)
[   20.504000] NET: Registered protocol family 10
[   20.580000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   20.648000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)
[   20.684000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   20.752000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   20.760000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   20.808000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.844000] lib80211: common routines for IEEE802.11 drivers
[   20.848000] lib80211_crypt: registered algorithm 'NULL'
[   20.856000] lib80211_crypt: registered algorithm 'CCMP'
[   20.856000] lib80211_crypt: registered algorithm 'TKIP'
[   20.864000] lib80211_crypt: registered algorithm 'WEP'
[   21.000000] xt_time: kernel timezone is -0000
[   21.012000] usbcore: registered new interface driver zd1201
[   21.176000] cfg80211: Calling CRDA to update world regulatory domain
[   21.192000] usbcore: registered new interface driver p54usb
[   21.200000] cfg80211: World regulatory domain updated:
[   21.204000] cfg80211:  DFS Master region: unset
[   21.208000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   21.220000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   21.228000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   21.236000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   21.244000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   21.252000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   21.260000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   21.268000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   21.276000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   21.292000] PPP generic driver version 2.4.2
[   21.300000] NET: Registered protocol family 24
[   21.332000] usbcore: registered new interface driver rt73usb
[   21.352000] usbcore: registered new interface driver rtl8187
[   21.380000] usbcore: registered new interface driver usb8xxx
[   21.412000] usbcore: registered new interface driver zd1211rw
[   21.512000] usbcore: registered new interface driver brcmfmac
[   21.580000] FAT-fs (sda7): IO charset iso8859-1 not found
[   21.640000] usbcore: registered new interface driver carl9170
[   21.672000] usbcore: registered new interface driver rt2500usb
[   21.704000] brcmsmac bcma0:0: mfg 4bf core 812 rev 23 class 0 irq 31
[   21.716000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   21.736000] usbcore: registered new interface driver rt2800usb
[   21.784000] usbcore: registered new interface driver ath9k_htc
[   21.832000] usbcore: registered new interface driver rtl8192cu
[   39.672000] device eth0.1 entered promiscuous mode
[   39.676000] device eth0 entered promiscuous mode
[   39.808000] br-lan: port 1(eth0.1) entered forwarding state
[   39.812000] br-lan: port 1(eth0.1) entered forwarding state
[   41.816000] br-lan: port 1(eth0.1) entered forwarding state
[   42.996000] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
[   43.004000] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
[   43.020000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   48.436000] wlan0: authenticate with 88:03:55:ac:14:a3
[   48.440000] wlan0: send auth to 88:03:55:ac:14:a3 (try 1/3)
[   48.448000] wlan0: authenticated
[   48.472000] wlan0: associating with AP with corrupt beacon and probe response
[   48.480000] wlan0: associate with 88:03:55:ac:14:a3 (try 1/3)
[   48.496000] wlan0: RX AssocResp from 88:03:55:ac:14:a3 (capab=0x431 status=0 aid=16)
[   48.504000] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[   48.512000] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
[   48.520000] wlan0: associated
[   48.520000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  405.068000] FAT-fs (sda7): IO charset iso8859-1 not found
[  444.932000] FAT-fs (sda7): IO charset iso8859-1 not found
[  690.548000] usb 1-1: USB disconnect, device number 2
[  695.528000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[  695.676000] usb-storage 1-1:1.0: USB Mass Storage device detected
[  695.680000] scsi1 : usb-storage 1-1:1.0
[  696.692000] scsi 1:0:0:0: Direct-Access     TOSHIBA  MK3265GSX H           PQ: 0 ANSI: 0
[  696.708000] sd 1:0:0:0: [sdb] 625140335 512-byte logical blocks: (320 GB/298 GiB)
[  696.716000] sd 1:0:0:0: [sdb] Write Protect is off
[  696.720000] sd 1:0:0:0: [sdb] Mode Sense: 03 00 00 00
[  696.720000] sd 1:0:0:0: [sdb] No Caching mode page found
[  696.728000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[  696.736000] sd 1:0:0:0: [sdb] No Caching mode page found
[  696.744000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[  696.832000]  sdb: sdb1 < sdb5 sdb6 sdb7 >
[  696.856000] sd 1:0:0:0: [sdb] No Caching mode page found
[  696.860000] sd 1:0:0:0: [sdb] Assuming drive cache: write through
[  696.868000] sd 1:0:0:0: [sdb] Attached SCSI disk
[  697.740000] EXT4-fs (sdb1): unable to read superblock
[  697.748000] EXT4-fs (sdb1): unable to read superblock
[  697.752000] EXT4-fs (sdb1): unable to read superblock
root@OpenWrt:~#

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4586
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1124 en: 04-11-2014, 12:50 (Martes) »
Con esto:
Código: [Seleccionar]
mount -t vfat -o sync /dev/sda1 /mnt/pendrive
Me dice esto:
Código: [Seleccionar]
root@OpenWrt:~# mounting /dev/sda7 on /mnt/sda2 failed: Invalid argument
sda7 es mi particion fat32 en ese disco duro


Si la partición con fat32 es la sda7 (muchas particiones veo yo en ese disco), para montarla, debes usar:

Código: [Seleccionar]
mount -t vfat -o sync /dev/sda7 /mnt/pendrive
Te estaría montando la partición en /mnt/pendrive
Valoraciones positivas en compra/venta:
132 en Htcmania
179 en Har2mano
20 en elchapuzasinformatico
11 en gsmspain
 ....
 
Mis equipos en venta: https://drive.google.com/open?id=1jkj-kzmCBVkVb3_at6sgKinmE7YdFeRi

pikomule

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1125 en: 04-11-2014, 13:44 (Martes) »
es un disco duro que tiene sectores defctoosos al principio del HDD, tengo particiones a partir de los 5 GB. Ademas tengo particion SWAP. Aun asi, tambien lo he intentado con una simple memoria USB formateada en FAT32, y con las mismas.

Con esto:
mount -t vfat -o sync /dev/sda1 /mnt/pendrive

Me da esto (estoy probando ahora con la memoria usb de una sola particion, para simplificar todo):
mount: mounting /dev/sda1 on /mnt/pendrive failed: Invalid argument

Es posible que falte el modulo: iso8859-1?

Con el comando df -h, nunca me muestra las particiones FAT32, nisiquiera en /DEV/SDA..

Dmesg al conectar la memoria USB de una sola particion en FAT32:

root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (noltari@skynet) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42068) ) #1 Wed Aug 13 14:45:32 CEST 2014
[    0.000000] Detected Broadcom 0x6328 CPU revision b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-110.11-2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board: board name: 96328A-1441N1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802e6ab0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 61336k/65536k available (2375k kernel code, 4200k reserved, 631k data, 320k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.036000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.288000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.308000] PCI host bridge to bus 0000:00
[    0.312000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x10ffffff]
[    0.316000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.320000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.324000] pci 0000:00:00.0: [14e4:6328] type 01 class 0x060400
[    0.324000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.324000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.328000] pci 0000:01:00.0: [14e4:a8d8] type 00 class 0x028000
[    0.328000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.328000] pci 0000:01:00.0: supports D1 D2
[    0.328000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.328000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.328000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.332000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.336000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.340000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.344000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.348000] Switching to clocksource MIPS
[    0.356000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.364000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.372000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.380000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.388000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.480000] bcma: bus0: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    0.496000] bcma: bus0: Bus registered
[    0.504000] NET: Registered protocol family 2
[    0.508000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.516000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.520000] TCP: Hash tables configured (established 512 bind 512)
[    0.528000] TCP: reno registered
[    0.532000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.540000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.544000] NET: Registered protocol family 1
[    0.548000] PCI: CLS 0 bytes, default 16
[    0.552000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.560000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.572000] msgmni has been set to 119
[    0.576000] io scheduler noop registered
[    0.580000] io scheduler deadline registered (default)
[    0.588000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.596000] console [ttyS0] enabled, bootconsole disabled
[    0.612000] m25p80 spi1.0: found mx25l12805d, expected m25p80
[    0.620000] m25p80 spi1.0: mx25l12805d (16384 Kbytes)
[    0.624000] bcm63xxpart: CFE boot tag found with version 6 and board type 96328A-1441N1
[    0.632000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.640000] bcm63xxpart: Partition 1 is kernel offset 10100 and length 10ff00
[    0.648000] bcm63xxpart: Partition 2 is rootfs offset 120000 and length ed0000
[    0.656000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.660000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.668000] bcm63xxpart: Spare partition is offset 5e0004 and length a0fffc
[    0.676000] 5 bcm63xxpart partitions found on MTD device spi1.0
[    0.684000] Creating 5 MTD partitions on "spi1.0":
[    0.688000] 0x000000000000-0x000000010000 : "CFE"
[    0.696000] 0x000000010100-0x000000120000 : "kernel"
[    0.700000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.716000] 0x000000120000-0x000000ff0000 : "rootfs"
[    0.724000] mtd: device 2 (rootfs) set to be root filesystem
[    0.728000] mtd: partition "rootfs_data" created automatically, ofs=0x5e0000, len=0xa10000
[    0.740000] 0x0000005e0000-0x000000ff0000 : "rootfs_data"
[    0.748000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.756000] 0x000000010000-0x000000ff0000 : "linux"
[    0.804000] b53_common: found switch: BCM63xx, rev 0
[    0.808000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.820000] TCP: cubic registered
[    0.824000] NET: Registered protocol family 17
[    0.828000] 8021q: 802.1Q VLAN Support v1.8
[    0.844000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.856000] Freeing unused kernel memory: 320K (80300000 - 80350000)
[    7.184000] usbcore: registered new interface driver usbfs
[    7.192000] usbcore: registered new interface driver hub
[    7.196000] usbcore: registered new device driver usb
[    7.212000] Button Hotplug driver version 0.4.1
[    7.308000] SCSI subsystem initialized
[    7.328000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.336000] ehci-platform: EHCI generic platform driver
[    7.444000] ehci-platform ehci-platform: EHCI Host Controller
[    7.448000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    7.456000] ehci-platform ehci-platform: irq 50, io mem 0xb0002500
[    7.476000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[    7.484000] hub 1-0:1.0: USB hub found
[    7.488000] hub 1-0:1.0: 1 port detected
[    7.500000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.504000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[    7.512000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[    7.520000] ohci-platform ohci-platform: irq 49, io mem 0xb0002600
[    7.588000] hub 2-0:1.0: USB hub found
[    7.592000] hub 2-0:1.0: 1 port detected
[    7.608000] usbcore: registered new interface driver usb-storage
[    7.620000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[    7.808000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.108000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.120000] scsi0 : usb-storage 1-1:1.0
[    9.128000] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS
[    9.140000] sd 0:0:0:0: [sda] 7827456 512-byte logical blocks: (4.00 GB/3.73 GiB)
[    9.152000] sd 0:0:0:0: [sda] Write Protect is off
[    9.156000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    9.156000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.160000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.172000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.180000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.188000]  sda: sda1
[    9.196000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.200000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.208000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   12.520000] jffs2: notice: (258) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 68 of xref (0 dead, 53 orphan) found.
[   20.212000] NET: Registered protocol family 10
[   20.252000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   20.292000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)
[   20.312000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   20.340000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   20.348000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   20.368000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.392000] lib80211: common routines for IEEE802.11 drivers
[   20.396000] lib80211_crypt: registered algorithm 'NULL'
[   20.400000] lib80211_crypt: registered algorithm 'CCMP'
[   20.404000] lib80211_crypt: registered algorithm 'TKIP'
[   20.408000] lib80211_crypt: registered algorithm 'WEP'
[   20.484000] xt_time: kernel timezone is -0000
[   20.492000] usbcore: registered new interface driver zd1201
[   20.560000] cfg80211: Calling CRDA to update world regulatory domain
[   20.568000] cfg80211: World regulatory domain updated:
[   20.572000] cfg80211:  DFS Master region: unset
[   20.576000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   20.588000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   20.596000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   20.604000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   20.612000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   20.620000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   20.628000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   20.636000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   20.644000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   20.800000] usbcore: registered new interface driver p54usb
[   20.812000] PPP generic driver version 2.4.2
[   20.820000] NET: Registered protocol family 24
[   20.852000] usbcore: registered new interface driver rt73usb
[   20.872000] usbcore: registered new interface driver rtl8187
[   20.896000] usbcore: registered new interface driver usb8xxx
[   20.916000] usbcore: registered new interface driver zd1211rw
[   21.032000] usbcore: registered new interface driver brcmfmac
[   21.112000] usbcore: registered new interface driver carl9170
[   21.136000] brcmsmac bcma0:0: mfg 4bf core 812 rev 23 class 0 irq 31
[   21.144000] usbcore: registered new interface driver rt2500usb
[   21.152000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   21.204000] usbcore: registered new interface driver rt2800usb
[   21.264000] usbcore: registered new interface driver ath9k_htc
[   21.304000] usbcore: registered new interface driver rtl8192cu
[   33.864000] device eth0.1 entered promiscuous mode
[   33.872000] device eth0 entered promiscuous mode
[   33.888000] br-lan: port 1(eth0.1) entered forwarding state
[   33.892000] br-lan: port 1(eth0.1) entered forwarding state
[   35.896000] br-lan: port 1(eth0.1) entered forwarding state
[   37.868000] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: false (implement)
[   37.876000] brcmsmac bcma0:0: brcms_ops_config: change power-save mode: false (implement)
[   37.892000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[   41.756000] wlan0: authenticate with 88:03:55:ac:14:a3
[   41.764000] wlan0: send auth to 88:03:55:ac:14:a3 (try 1/3)
[   41.772000] wlan0: authenticated
[   41.784000] wlan0: associating with AP with corrupt beacon and probe response
[   41.792000] wlan0: associate with 88:03:55:ac:14:a3 (try 1/3)
[   41.812000] wlan0: RX AssocResp from 88:03:55:ac:14:a3 (capab=0x431 status=0 aid=16)
[   41.820000] brcmsmac bcma0:0: brcmsmac: brcms_ops_bss_info_changed: associated
[   41.828000] brcmsmac bcma0:0: brcms_ops_bss_info_changed: qos enabled: true (implement)
[   41.836000] wlan0: associated
[   41.840000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[  331.432000] FAT-fs (sda1): IO charset iso8859-1 not found
[  497.712000] usb 1-1: USB disconnect, device number 2
[  500.476000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[  500.636000] usb-storage 1-1:1.0: USB Mass Storage device detected
[  500.644000] scsi1 : usb-storage 1-1:1.0
[  501.676000] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 0 CCS
[  501.920000] sd 1:0:0:0: [sda] 7827456 512-byte logical blocks: (4.00 GB/3.73 GiB)
[  501.928000] sd 1:0:0:0: [sda] Write Protect is off
[  501.936000] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[  501.936000] sd 1:0:0:0: [sda] No Caching mode page found
[  501.940000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[  501.956000] sd 1:0:0:0: [sda] No Caching mode page found
[  501.960000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[  502.012000]  sda: sda1
[  502.024000] sd 1:0:0:0: [sda] No Caching mode page found
[  502.028000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[  502.036000] sd 1:0:0:0: [sda] Attached SCSI removable disk
[  502.768000] FAT-fs (sda1): IO charset iso8859-1 not found
« Última modificación: 04-11-2014, 13:45 (Martes) por pikomule »

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4586
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1126 en: 04-11-2014, 14:33 (Martes) »
Efectivamente, te falta el modulo: kmod-nls-iso8859

Código: [Seleccionar]
[  502.768000] FAT-fs (sda1): IO charset iso8859-1 not found
Pero ya sabes que la instalación de paquetes dependientes del kernel es problematica ...  ^-^
Valoraciones positivas en compra/venta:
132 en Htcmania
179 en Har2mano
20 en elchapuzasinformatico
11 en gsmspain
 ....
 
Mis equipos en venta: https://drive.google.com/open?id=1jkj-kzmCBVkVb3_at6sgKinmE7YdFeRi

pikomule

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1127 en: 04-11-2014, 14:44 (Martes) »
me quedo mas trankilo, pensaba que era yo el problema jeje. Ya intente instalar ese modulo y no me dejo. Que raro que Noltari con cayese en ese modulo para sus compilaciones. Esperemos que lo integre en proximas versiones.

Saludos y gracias

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1128 en: 04-11-2014, 18:26 (Martes) »
Hola


Sigo igual  :'(

Código: [Seleccionar]
root@OpenWrt:~# mount -t vfat -o sync /dev/sda1 /mnt/pendrive
mount: mounting /dev/sda1 on /mnt/pendrive failed: Invalid argument

Al igual que pikomule, he desenchufado y vuelto a enchufar el pendrive, tras lo cual he hecho un desg, por si sirve de ayuda.
He de aclarar que el pendrive tiene una única partición FAT32.
Después de desenchufarlo/enchufarlo, he probado de nuevo el comando mount con idéntico error.


Código: [Seleccionar]
root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (noltari@skynet) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42068) ) #1 SMP Wed Aug 13 16:35:00 CEST 2014
[    0.000000] Detected Broadcom 0x6328 CPU revision b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-110.11-2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board: board name: 96328A-1441N1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 8031da00, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] PERCPU: Embedded 7 pages/cpu @81083000 s6592 r8192 d13888 u32768
[    0.000000] pcpu-alloc: s6592 r8192 d13888 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 61140k/65536k available (2553k kernel code, 4396k reserved, 647k data, 316k init, 0k highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] NR_IRQS:256
[    0.036000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] Brought up 1 CPUs
[    0.080000] NET: Registered protocol family 16
[    0.320000] registering PCI controller with io_map_base unset
[    0.340000] bio: create slab <bio-0> at 0
[    0.348000] PCI host bridge to bus 0000:00
[    0.352000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x10ffffff]
[    0.356000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.360000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.364000] pci 0000:00:00.0: [14e4:6328] type 01 class 0x060400
[    0.364000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.364000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.368000] pci 0000:01:00.0: [14e4:a8d8] type 00 class 0x028000
[    0.368000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.368000] pci 0000:01:00.0: supports D1 D2
[    0.368000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.368000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.368000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.372000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.376000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.380000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.384000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.388000] Switching to clocksource MIPS
[    0.400000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.404000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.412000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.420000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.428000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.520000] bcma: bus0: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    0.540000] bcma: bus0: Bus registered
[    0.544000] NET: Registered protocol family 2
[    0.552000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.556000] TCP bind hash table entries: 512 (order: 0, 4096 bytes)
[    0.564000] TCP: Hash tables configured (established 512 bind 512)
[    0.572000] TCP: reno registered
[    0.576000] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.580000] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.588000] NET: Registered protocol family 1
[    0.592000] PCI: CLS 0 bytes, default 16
[    0.596000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.604000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.616000] msgmni has been set to 119
[    0.620000] io scheduler noop registered
[    0.624000] io scheduler deadline registered (default)
[    0.632000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.640000] console [ttyS0] enabled, bootconsole disabled
[    0.660000] m25p80 spi1.0: found mx25l12805d, expected m25p80
[    0.664000] m25p80 spi1.0: mx25l12805d (16384 Kbytes)
[    0.672000] bcm63xxpart: CFE boot tag found with version 6 and board type 96328A-1441N1
[    0.680000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.688000] bcm63xxpart: Partition 1 is kernel offset 10100 and length 11ff00
[    0.696000] bcm63xxpart: Partition 2 is rootfs offset 130000 and length ec0000
[    0.700000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.708000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.716000] bcm63xxpart: Spare partition is offset 5f0004 and length 9ffffc
[    0.724000] 5 bcm63xxpart partitions found on MTD device spi1.0
[    0.728000] Creating 5 MTD partitions on "spi1.0":
[    0.736000] 0x000000000000-0x000000010000 : "CFE"
[    0.744000] 0x000000010100-0x000000130000 : "kernel"
[    0.748000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.764000] 0x000000130000-0x000000ff0000 : "rootfs"
[    0.772000] mtd: device 2 (rootfs) set to be root filesystem
[    0.780000] mtd: partition "rootfs_data" created automatically, ofs=0x5f0000, len=0xa00000
[    0.788000] 0x0000005f0000-0x000000ff0000 : "rootfs_data"
[    0.796000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.804000] 0x000000010000-0x000000ff0000 : "linux"
[    0.856000] b53_common: found switch: BCM63xx, rev 0
[    0.864000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.876000] TCP: cubic registered
[    0.880000] NET: Registered protocol family 17
[    0.884000] 8021q: 802.1Q VLAN Support v1.8
[    0.900000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.912000] Freeing unused kernel memory: 316K (80331000 - 80380000)
[    7.472000] usbcore: registered new interface driver usbfs
[    7.480000] usbcore: registered new interface driver hub
[    7.484000] usbcore: registered new device driver usb
[    7.500000] Button Hotplug driver version 0.4.1
[    7.600000] SCSI subsystem initialized
[    7.620000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.628000] ehci-platform: EHCI generic platform driver
[    7.740000] ehci-platform ehci-platform: EHCI Host Controller
[    7.744000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    7.752000] ehci-platform ehci-platform: irq 50, io mem 0xb0002500
[    7.772000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[    7.780000] hub 1-0:1.0: USB hub found
[    7.784000] hub 1-0:1.0: 1 port detected
[    7.796000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.800000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[    7.808000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[    7.816000] ohci-platform ohci-platform: irq 49, io mem 0xb0002600
[    7.884000] hub 2-0:1.0: USB hub found
[    7.888000] hub 2-0:1.0: 1 port detected
[    7.908000] usbcore: registered new interface driver usb-storage
[    7.916000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[    8.112000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.364000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.372000] scsi0 : usb-storage 1-1:1.0
[    9.232000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[    9.384000] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
[    9.404000] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    9.416000] sd 0:0:0:0: [sda] Write Protect is off
[    9.420000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    9.428000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.432000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.452000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.460000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.596000]  sda: sda1
[    9.604000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.608000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.616000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   12.936000] jffs2: notice: (272) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (1 unchecked, 0 orphan) and 18 of xref (0 dead, 4 orphan) found.
[   17.584000] NET: Registered protocol family 10
[   17.628000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   17.664000] nf_conntrack version 0.5.0 (960 buckets, 3840 max)
[   17.688000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   17.720000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   17.728000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   17.744000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.764000] lib80211: common routines for IEEE802.11 drivers
[   17.768000] lib80211_crypt: registered algorithm 'NULL'
[   17.772000] lib80211_crypt: registered algorithm 'CCMP'
[   17.776000] lib80211_crypt: registered algorithm 'TKIP'
[   17.780000] lib80211_crypt: registered algorithm 'WEP'
[   17.860000] xt_time: kernel timezone is -0000
[   17.872000] usbcore: registered new interface driver zd1201
[   17.924000] cfg80211: Calling CRDA to update world regulatory domain
[   17.940000] cfg80211: World regulatory domain updated:
[   17.944000] cfg80211:  DFS Master region: unset
[   17.948000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   17.960000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   17.968000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   17.976000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   17.984000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   17.992000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   18.000000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   18.008000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   18.016000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   18.184000] usbcore: registered new interface driver p54usb
[   18.200000] PPP generic driver version 2.4.2
[   18.212000] NET: Registered protocol family 24
[   18.248000] usbcore: registered new interface driver rt73usb
[   18.264000] usbcore: registered new interface driver rtl8187
[   18.292000] usbcore: registered new interface driver usb8xxx
[   18.312000] usbcore: registered new interface driver zd1211rw
[   18.436000] b43-phy0: Broadcom 43225 WLAN found (core revision 23)
[   18.444000] b43-phy0: Found PHY: Analog 8, Type 4 (N), Revision 6
[   18.448000] b43-phy0: Found Radio: Manuf 0x17F, ID 0x2056, Revision 11, Version 0
[   18.460000] Broadcom 43xx driver loaded [ Features: PNL ]
[   18.512000] usbcore: registered new interface driver brcmfmac
[   18.560000] usbcore: registered new interface driver carl9170
[   18.612000] usbcore: registered new interface driver rt2500usb
[   18.656000] usbcore: registered new interface driver rt2800usb
[   18.732000] usbcore: registered new interface driver ath9k_htc
[   18.776000] usbcore: registered new interface driver rtl8192cu
[   19.052000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   24.100000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[   31.364000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[   31.376000] device eth0.1 entered promiscuous mode
[   31.380000] device eth0 entered promiscuous mode
[   31.392000] br-lan: port 1(eth0.1) entered forwarding state
[   31.396000] br-lan: port 1(eth0.1) entered forwarding state
[   33.400000] br-lan: port 1(eth0.1) entered forwarding state
[   91.360000] FAT-fs (sda1): IO charset iso8859-1 not found
[  392.976000] usb 1-1: USB disconnect, device number 2
[  395.776000] usb 1-1: new high-speed USB device number 3 using ehci-platform
[  395.920000] usb-storage 1-1:1.0: USB Mass Storage device detected
[  395.932000] scsi1 : usb-storage 1-1:1.0
[  396.940000] scsi 1:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
[  396.956000] sd 1:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.74 GiB)
[  396.964000] sd 1:0:0:0: [sda] Write Protect is off
[  396.972000] sd 1:0:0:0: [sda] Mode Sense: 23 00 00 00
[  396.976000] sd 1:0:0:0: [sda] No Caching mode page found
[  396.984000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[  396.996000] sd 1:0:0:0: [sda] No Caching mode page found
[  397.000000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[  397.136000]  sda: sda1
[  397.160000] sd 1:0:0:0: [sda] No Caching mode page found
[  397.164000] sd 1:0:0:0: [sda] Assuming drive cache: write through
[  397.172000] sd 1:0:0:0: [sda] Attached SCSI removable disk
root@OpenWrt:~#

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1129 en: 04-11-2014, 20:01 (Martes) »
Pensando que tal vez el pendrive pueda estar fallando, he formateado un HDD USB en FAT32 y los errores al intentar montarlo son los mismos.

Así que creyendo que tal vez pikomule y yo estemos dando vueltas al mismo fallo, he formateado en EXT3 el pendrive y este es el resultado:
(ambos usamos la misma versión de firmware)


Código: [Seleccionar]
root@OpenWrt:~# mount -t ext3 -o sync /dev/sda1 /mnt/pendrive
mount: mounting /dev/sda1 on /mnt/pendrive failed: Invalid argument
root@OpenWrt:~# dmesg
[    0.000000] Linux version 3.10.49 (noltari@skynet) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42068) ) #1 Wed Aug 13 14:45:32 CEST 2014
[    0.000000] Detected Broadcom 0x6328 CPU revision b0
[    0.000000] CPU frequency is 320 MHz
[    0.000000] 64MB of RAM installed
[    0.000000] registering 32 GPIOs
[    0.000000] board_bcm963xx: Boot address 0xb8000000
[    0.000000] board_bcm963xx: CFE version: 1.0.37-110.11-2
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)
[    0.000000] board: board name: 96328A-1441N1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 802e6ab0, node_mem_map 81000000
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Memory: 61336k/65536k available (2375k kernel code, 4200k reserved, 631k data, 320k init, 0k highmem)
[    0.000000] NR_IRQS:256
[    0.036000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)
[    0.036000] pid_max: default: 32768 minimum: 301
[    0.040000] Mount-cache hash table entries: 512
[    0.048000] NET: Registered protocol family 16
[    0.288000] registering PCI controller with io_map_base unset
[    0.300000] bio: create slab <bio-0> at 0
[    0.304000] PCI host bridge to bus 0000:00
[    0.308000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x10ffffff]
[    0.312000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[    0.316000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.320000] pci 0000:00:00.0: [14e4:6328] type 01 class 0x060400
[    0.320000] pci 0000:00:00.0: PME# supported from D0 D3hot
[    0.320000] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.324000] pci 0000:01:00.0: [14e4:a8d8] type 00 class 0x028000
[    0.324000] pci 0000:01:00.0: reg 10: [mem 0x00000000-0x00003fff 64bit]
[    0.324000] pci 0000:01:00.0: supports D1 D2
[    0.324000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.324000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 01
[    0.324000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]
[    0.328000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f03fff 64bit]
[    0.332000] pci 0000:00:00.0: PCI bridge to [bus 01]
[    0.336000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]
[    0.340000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
[    0.344000] Switching to clocksource MIPS
[    0.352000] PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
[    0.360000] bcma: bus0: Found chip with id 0xA8D9, rev 0x01 and package 0x0A
[    0.364000] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
[    0.376000] bcma: bus0: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
[    0.384000] bcma: bus0: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)
[    0.472000] bcma: bus0: Invalid SPROM read from the PCIe card, trying to use fallback SPROM
[    0.492000] bcma: bus0: Bus registered
[    0.496000] NET: Registered protocol family 2
[    0.504000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.512000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.516000] TCP: Hash tables configured (established 512 bind 512)
[    0.524000] TCP: reno registered
[    0.528000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.532000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.540000] NET: Registered protocol family 1
[    0.544000] PCI: CLS 0 bytes, default 16
[    0.548000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.556000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.564000] msgmni has been set to 119
[    0.572000] io scheduler noop registered
[    0.576000] io scheduler deadline registered (default)
[    0.580000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart
[    0.588000] console [ttyS0] enabled, bootconsole disabled
[    0.608000] m25p80 spi1.0: found mx25l12805d, expected m25p80
[    0.612000] m25p80 spi1.0: mx25l12805d (16384 Kbytes)
[    0.620000] bcm63xxpart: CFE boot tag found with version 6 and board type 96328A-1441N1
[    0.628000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000
[    0.632000] bcm63xxpart: Partition 1 is kernel offset 10100 and length 10ff00
[    0.640000] bcm63xxpart: Partition 2 is rootfs offset 120000 and length ed0000
[    0.648000] bcm63xxpart: Partition 3 is nvram offset ff0000 and length 10000
[    0.656000] bcm63xxpart: Partition 4 is linux offset 10000 and length fe0000
[    0.664000] bcm63xxpart: Spare partition is offset 5e0004 and length a0fffc
[    0.672000] 5 bcm63xxpart partitions found on MTD device spi1.0
[    0.676000] Creating 5 MTD partitions on "spi1.0":
[    0.680000] 0x000000000000-0x000000010000 : "CFE"
[    0.688000] 0x000000010100-0x000000120000 : "kernel"
[    0.696000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[    0.708000] 0x000000120000-0x000000ff0000 : "rootfs"
[    0.716000] mtd: device 2 (rootfs) set to be root filesystem
[    0.724000] mtd: partition "rootfs_data" created automatically, ofs=0x5e0000, len=0xa10000
[    0.732000] 0x0000005e0000-0x000000ff0000 : "rootfs_data"
[    0.740000] 0x000000ff0000-0x000001000000 : "nvram"
[    0.748000] 0x000000010000-0x000000ff0000 : "linux"
[    0.796000] b53_common: found switch: BCM63xx, rev 0
[    0.800000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec
[    0.812000] TCP: cubic registered
[    0.816000] NET: Registered protocol family 17
[    0.820000] 8021q: 802.1Q VLAN Support v1.8
[    0.836000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    0.848000] Freeing unused kernel memory: 320K (80300000 - 80350000)
[    7.172000] usbcore: registered new interface driver usbfs
[    7.180000] usbcore: registered new interface driver hub
[    7.184000] usbcore: registered new device driver usb
[    7.200000] Button Hotplug driver version 0.4.1
[    7.296000] SCSI subsystem initialized
[    7.316000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.324000] ehci-platform: EHCI generic platform driver
[    7.432000] ehci-platform ehci-platform: EHCI Host Controller
[    7.436000] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    7.444000] ehci-platform ehci-platform: irq 50, io mem 0xb0002500
[    7.464000] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00, overcurrent ignored
[    7.472000] hub 1-0:1.0: USB hub found
[    7.476000] hub 1-0:1.0: 1 port detected
[    7.488000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    7.492000] ohci-platform ohci-platform: Generic Platform OHCI Controller
[    7.500000] ohci-platform ohci-platform: new USB bus registered, assigned bus number 2
[    7.508000] ohci-platform ohci-platform: irq 49, io mem 0xb0002600
[    7.576000] hub 2-0:1.0: USB hub found
[    7.580000] hub 2-0:1.0: 1 port detected
[    7.596000] usbcore: registered new interface driver usb-storage
[    7.608000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0
[    7.796000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    8.032000] usb-storage 1-1:1.0: USB Mass Storage device detected
[    8.040000] scsi0 : usb-storage 1-1:1.0
[    8.880000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[    9.044000] scsi 0:0:0:0: Direct-Access     Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2
[    9.064000] sd 0:0:0:0: [sda] 7856128 512-byte logical blocks: (4.02 GB/3.74 GiB)
[    9.080000] sd 0:0:0:0: [sda] Write Protect is off
[    9.084000] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[    9.088000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.092000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.108000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.112000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.248000]  sda: sda1
[    9.256000] sd 0:0:0:0: [sda] No Caching mode page found
[    9.260000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.268000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   12.528000] jffs2: notice: (259) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 16 of xref (0 dead, 2 orphan) found.
[   15.860000] NET: Registered protocol family 10
[   15.900000] NTFS driver 2.1.30 [Flags: R/O MODULE].
[   15.936000] nf_conntrack version 0.5.0 (963 buckets, 3852 max)
[   15.956000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   15.988000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   15.996000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   16.016000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.032000] lib80211: common routines for IEEE802.11 drivers
[   16.040000] lib80211_crypt: registered algorithm 'NULL'
[   16.044000] lib80211_crypt: registered algorithm 'CCMP'
[   16.044000] lib80211_crypt: registered algorithm 'TKIP'
[   16.048000] lib80211_crypt: registered algorithm 'WEP'
[   16.124000] xt_time: kernel timezone is -0000
[   16.136000] usbcore: registered new interface driver zd1201
[   16.224000] cfg80211: Calling CRDA to update world regulatory domain
[   16.236000] cfg80211: World regulatory domain updated:
[   16.240000] cfg80211:  DFS Master region: unset
[   16.244000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   16.252000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   16.264000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   16.272000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   16.280000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   16.288000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   16.296000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   16.304000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   16.312000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   16.448000] usbcore: registered new interface driver p54usb
[   16.460000] PPP generic driver version 2.4.2
[   16.468000] NET: Registered protocol family 24
[   16.500000] usbcore: registered new interface driver rt73usb
[   16.520000] usbcore: registered new interface driver rtl8187
[   16.548000] usbcore: registered new interface driver usb8xxx
[   16.568000] usbcore: registered new interface driver zd1211rw
[   16.656000] usbcore: registered new interface driver brcmfmac
[   16.756000] usbcore: registered new interface driver carl9170
[   16.764000] brcmsmac bcma0:0: mfg 4bf core 812 rev 23 class 0 irq 31
[   16.780000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   16.804000] usbcore: registered new interface driver rt2500usb
[   16.856000] usbcore: registered new interface driver rt2800usb
[   16.924000] usbcore: registered new interface driver ath9k_htc
[   17.168000] usbcore: registered new interface driver rtl8192cu
[   22.364000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[   29.300000] bcm63xx_enetsw bcm63xx_enetsw.0: link UP on Port 1, 100Mbps, full-duplex
[   29.320000] device eth0.1 entered promiscuous mode
[   29.324000] device eth0 entered promiscuous mode
[   29.332000] br-lan: port 1(eth0.1) entered forwarding state
[   29.336000] br-lan: port 1(eth0.1) entered forwarding state
[   31.340000] br-lan: port 1(eth0.1) entered forwarding state
[  210.068000] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[  210.092000] JBD2: Journal too short (blocks 1-268).
[  210.100000] JBD2: recovery failed
[  210.100000] EXT4-fs (sda1): error loading journal
[  776.256000] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[  776.280000] JBD2: Journal too short (blocks 1-268).
[  776.284000] JBD2: recovery failed
[  776.288000] EXT4-fs (sda1): error loading journal
root@OpenWrt:~#

pikomule

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1130 en: 04-11-2014, 20:04 (Martes) »
sekmeth, para ext usa block-mount instalado desde luci, es mas comodo para montarlo

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1131 en: 04-11-2014, 21:03 (Martes) »
Hola pikomule

Creo, sin ánimo de ofender, que algo raro pasa con esta compilación de firmware.
Así que he revisado el hilo y he flasheado con esta versión:

https://foro.seguridadwireless.net/openwrt/openwrt-en-comtrend-ar5387un/msg317391/#msg317391


Ahora sí me coge el disco duro FAT32 y me lo monta (no he probado el pendrive, pero seguramente también se podrá).

Me estoy guiando por este video de arfonzo:



para compartir una carpeta, pero creo que es un poco engorroso hacerlo así. ¿No hay ningún modo de hacerlo todo enteramente por LuCi sin entrar en la consola de Putty?
« Última modificación: 04-11-2014, 21:05 (Martes) por Sekmeth »

pikomule

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1132 en: 04-11-2014, 21:29 (Martes) »
Gracias. Que version de Openwrt es?

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1133 en: 04-11-2014, 21:43 (Martes) »
OpenWrt Chaos Calmer r42608 / LuCI Trunk (svn-r10528)
Kernell 3.14.18


PD. He conseguido crear, compartir y hacer accesible una carpeta en el HDD FAT32. He intentado copiar un archivo de 8 Mb desde el Escritorio hacia esa carpeta y me da una tasa de escritura de 355 Kb/s. ¿Es eso posible? Encima, en mitad del proceso Windows me da un error de escritura  ^-^

Ya sabia desde el principio que no se podía conseguir gran velocidad, pero resulta que va incluso más lento (muchisimo más) que copiar ese mismo archivo via FTP al Comtrend AR-5381u (firmware Jazztel) que uso como ruter adsl.

mirasu

  • Visitante
Re:
« Respuesta #1134 en: 04-11-2014, 22:06 (Martes) »
A mi me paso algo parecido. Y resulto que no estaba montado el hdd. Por eso el error de win. Comprueba que sale el hdd con mount.

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1135 en: 04-11-2014, 23:56 (Martes) »
No sé, cosas raras. Cada vez más raras  :-[


- Enciendo el router con el pendrive fat32 enchufado.

- Creo la carpeta pendrive en /mnt

- Monto el pendrive en la carpeta /mnt/pendrive
mount -t ext3 -o sync /dev/sda1 /mnt/pendrive

- Le doy permisos de lectura y escritura a la carpeta pendrive
chmod 777 /mnt/pendrive/ -R

- Entro en LuCi, Network Shares y pongo:
Shared directories: pendrive
Path: /mnt/pendrive
Allowed Users: nobody
(marco la casilla "allow guest" guardando los cambios "save and apply)

Ahora desde Windows puedo entrar en el pendrive, directamente a la raiz, veo los archivos que hay ahí, puedo copiarlos al PC (a unos 4 Mb/segundo) pero no me deja meter archivos ni carpetas porque dice que no tengo permisos.

He probado a reiniciar el servicio de Samba
/etc/inid.d/samba restart
« Última modificación: 04-11-2014, 23:59 (Martes) por Sekmeth »

Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4586
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1136 en: 05-11-2014, 09:42 (Miércoles) »
Para que samba funcione correctamente, hay que crear algún usuario y darle los permisos pertinentes. Mira este hilo, te sacará de dudas: https://foro.seguridadwireless.net/openwrt/instalacion-(facil)-de-openwrt-en-huawei-553/
Valoraciones positivas en compra/venta:
132 en Htcmania
179 en Har2mano
20 en elchapuzasinformatico
11 en gsmspain
 ....
 
Mis equipos en venta: https://drive.google.com/open?id=1jkj-kzmCBVkVb3_at6sgKinmE7YdFeRi

Desconectado Tki2000

  • Moderador
  • *
  • Mensajes: 1956
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1137 en: 05-11-2014, 09:44 (Miércoles) »
No sé, cosas raras. Cada vez más raras  :-[


- Enciendo el router con el pendrive fat32 enchufado.

- Creo la carpeta pendrive en /mnt

- Monto el pendrive en la carpeta /mnt/pendrive
mount -t ext3 -o sync /dev/sda1 /mnt/pendrive

- Le doy permisos de lectura y escritura a la carpeta pendrive
chmod 777 /mnt/pendrive/ -R

- Entro en LuCi, Network Shares y pongo:
Shared directories: pendrive
Path: /mnt/pendrive
Allowed Users: nobody
(marco la casilla "allow guest" guardando los cambios "save and apply)

Ahora desde Windows puedo entrar en el pendrive, directamente a la raiz, veo los archivos que hay ahí, puedo copiarlos al PC (a unos 4 Mb/segundo) pero no me deja meter archivos ni carpetas porque dice que no tengo permisos.

He probado a reiniciar el servicio de Samba
/etc/inid.d/samba restart

Intenta crear un usuario con smbpasswd y accede con ese usuario con contraseña.
Yo tengo creado el usuario "administrador" con su contraseña y accedo desde windows, con la cuenta de administrador directamente, con permisos de escritura.
No tengo la directiva Allowed Users: nobody, ni tengo marcada la casilla de "allow guest", ya que accedo directamente con usuario.
De todas formas, intenta antes poner 777 tanto en "mask for new files" como en "mask for new directories" en Network Shares para el usuario nobody, a ver si funciona, e intenta darle permisos 777 al directorio una vez montado con chmod 777 /mnt/pendrive
No habrás entendido algo, hasta que seas capaz de explicárselo a tu abuela...
Hacemos pantallas con píxeles casi invisibles, para luego ampliar la letra porque no la vemos... Bonita paradoja...
Creamos analfabetos tecnológicos con una velocidad pasmosa. Todo el mundo "maneja" tecnología, casi nadie sabe lo que tiene entre las manos, pero todo el mundo opina.
El analfabetismo, antes, pasaba desapercibido. Ahora, se transmite por Internet y las redes sociales.
Solo a un mandril epiléptico se le podría haber ocurrido diseñar la cinta de menú de M$.

Sekmeth

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1138 en: 05-11-2014, 20:05 (Miércoles) »
En teoría, repito, en teoría, yo debería poder entrar sin usuario, pues para eso está activada la opción del "acceso anónimo" desde LuCi (usuario "nobody"), así como al dar permisos totales con el "chmod 777 -R".


Editado. He puesto la máscara 777 "mask for new files" y "mask for new directories" sin éxito. Voy a ver si creo un usuario y le asigno contraseña.

EDITADO:

jar229 he seguido tu hilo, y ahora al acceder a \\192.168.1.100 (la ip del Comtrend) me aparecen 2 carpetas:

pendrive
y
antonio (el usuario que he creado para samba)

- esa carpeta no la he creado yo.
- esa carpeta tiene los mismos archivos de prueba que "pendrive".

desde los comandos he entrado en /mnt/ y al hacer "ls" sólo aparece la carpeta "pendrive".
al hacer un "df" para ver los puntos de montaje, no sale nada de "antonio".
¡ah! y me sigue diciendo que no tengo permisos de escritura.  :-\


EDITADO 2: En lugar de poner esto en el archivo de configuración de samba:

Código: [Seleccionar]
config 'sambashare'
   option 'name' '130gigas'
   option 'path' '/mnt/130gigas'
   option 'read_only' 'no'
   option 'writeable' 'yes'
   option 'create_mask' '0777'
   option 'dir_mask' '0777'
   option 'guest_ok' 'no'
   option 'users' 'jar'

he puesto esto, de modo que ahora SI tengo aaceso anónimo, sin necesidad de crear usuario a posta para Samba.

Código: [Seleccionar]
config 'sambashare'
   option 'name' '130gigas'
   option 'path' '/mnt/130gigas'
   option 'read_only' 'no'
   option 'writeable' 'yes'
   option 'create_mask' '0777'
   option 'dir_mask' '0777'
   option 'guest_ok' 'yes'
Pero sigo sin poder crear contenido el el pendrive.

EDITADO 3: Gracias a un amigo que me ha puesto sobre la pista, parece ser que en unidades FAT32, para hacer el mount con permisos de escritura, se requiere conocer el UUID de la partición. Ese UUID viene dado al ejecutar blkid, que no está instalado.
Más información: http://yosoybubuntu.blogspot.com.es/2009/07/montar-una-particion-fat32-con-permisos.html
De modo que voy a formatear en EXT3, que según tengo entendido, requiere menos carga de proceso en la CPU del router.


EDITADO 4: Formateado con EXT3, modificando la línea del mount "vfat" por "ext3" y reiniciado el router, por fin puedo copiar desde y hacia el pendrive SIN usuarios, SIN contraseñas.
Lo que sí me gustaría comentar son las velocidades que obtengo son:

PC Windows -> Router: 940 Kbytes/segundo.
Router -> PC Windows: 4 Mbytes/segundo.
Ya sé que por el tema de los protocolos TCP no obtendré jamás los 10 Mbytes que en teoría podría obtener, pero ¿porqué esa diferencia tan radical de velocidad entre copiar un archivo al router (940 kbytes/segundo) y copiando desde el router (4 Mbytes/segundo)?


Sea como fuere, la verdad es que con mi problema he podido comprobar casi de primera mano el colosal trabajo que habéis hecho con OpenWRT, y la verdad es que es grandioso todo lo que se puede llegar a hacer. Chapó por vosotros.  :D
« Última modificación: 06-11-2014, 01:18 (Jueves) por Sekmeth »

Altair64

  • Visitante
Re: [Desarrollo] OpenWrt en Comtrend AR-5387un
« Respuesta #1139 en: 07-11-2014, 10:46 (Viernes) »
Hola gente! una pregunta rápida, qué kernel llevan los firmwares compilados? (los Barrier Breaker con LuCI); es que necesito un WRT con el kernel 3.14.18-1 para instalar USBIP. Me descargué el Trunk, que según la wiki de OpenWRT (y es cierto) lleva ese kernel, y pude instalar usbip, pero necesito otros programitas y... tengo algunos problemas para instalar cosas, me iría bien LuCI pero no está instalado, y aunque se puede isntalar todo lo que me falta... si esos Barrier Breaker tienen el kernel 3.14.18-1 me sería la épica, sinó seguiré trasteando con el Trunk.

Salud!

//FINAL Y MÁS DOS RESPUESTAS