?>/script>'; } ?> [Desarrollo] OpenWrt en Sercomm AD1018 Widgets Magazine

Autor Tema: [Desarrollo] OpenWrt en Sercomm AD1018  (Leído 20905 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Pteridium

  • Visitante
[Desarrollo] OpenWrt en Sercomm AD1018
« en: 29-06-2015, 15:19 (Lunes) »
Este router lo proporciona Vodafone.

Características:
- SoC: BCM63283@320MHz
- RAM: 128 MB DDR2 (Etrontech EM68C16CWQE-25H).
- Flash: 128MB NAND (ESMT F59L1G81A-25T)
- Ethernet: 4x10/100Mb
- Wireless: BCM43217 b/g/n 2x2:2
- Antenas internas.
- USB: sin soldar
- VoIP: Si32177. Conectado al bus SPI.
- Board Id.: 96328avngr

Firmware Vodafone:
Usuario: admin
Contraseña: VF-ESad1018

Dmesg:
Código: [Seleccionar]
ad1018 login: admin
Password:
Welcome to ad1018, you can type '?' to find usage

view @ ad1018> sh


BusyBox v1.15.3 () built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ # dmesg
Linux version 2.6.30 (sharon@localhost.localdomain) (gcc version 4.4.2 (Buildroot 2010.02-git) ) #1
Fri Nov 22 17:23:33 CST 2013
BCM Flash API. Flash device is not found.
96328avngr prom init
CPU revision is: 0002a075 (Broadcom4350)
DSL SDRAM reserved: 0x100000
Determined physical RAM map:
 memory: 07f00000 @ 00000000 (usable)
Zone PFN ranges:
  DMA      0x00000000 -> 0x00001000
  Normal   0x00001000 -> 0x00007f00
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00007f00
On node 0 totalpages: 32512
free_area_init_node: node 0, pgdat 803e5200, node_mem_map 81000000
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 222 pages used for memmap
  Normal zone: 28194 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32258
Kernel command line: root=mtd:rootfs rw rootfstype=jffs2 console=ttyS0,115200
wait instruction: enabled
Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.
Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes
NR_IRQS:128
PID hash table entries: 512 (order: 9, 2048 bytes)
console [ttyS0] enabled
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Allocating memory for DSP module core and initialization code
Allocated DSP module memory - CORE=0x0 SIZE=0, INIT=0x0 SIZE=0
Memory: 124300k/130048k available (3099k kernel code, 5568k reserved, 830k data, 136k init, 0k highmem)
Calibrating delay loop... 319.48 BogoMIPS (lpj=159744)
Mount-cache hash table entries: 512
--Kernel Config--
  SMP=0
  PREEMPT=0
  DEBUG_SPINLOCK=0
  DEBUG_MUTEXES=0
Broadcom Logger v0.1 Nov 22 2013 17:13:38
net_namespace: 816 bytes
NET: Registered protocol family 16
Total Flash size: 0K with -1 sectors
registering PCI controller with io_map_base unset
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pci 0000:00:09.0: reg 10 32bit mmio: [0x10002600-0x100026ff]
pci 0000:00:0a.0: reg 10 32bit mmio: [0x10002500-0x100025ff]
pci 0000:01:00.0: PME# supported from D0 D3hot
pci 0000:01:00.0: PME# disabled
pci 0000:02:00.0: reg 10 64bit mmio: [0x000000-0x007fff]
pci 0000:02:00.0: supports D1 D2
pci 0000:01:00.0: PCI bridge, secondary bus 0000:02
pci 0000:01:00.0:   IO window: disabled
pci 0000:01:00.0:   MEM window: 0xa0000000-0xa00fffff
pci 0000:01:00.0:   PREFETCH window: disabled
PCI: Enabling device 0000:01:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:01:00.0 to 64
BLOG v3.0 Initialized
BLOG Rule v1.0 Initialized
Broadcom IQoS v0.1 Nov 22 2013 17:21:33 initialized
NET: Registered protocol family 8
NET: Registered protocol family 20
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
NTFS driver 2.1.29 [Flags: R/W].
JFFS2 version 2.2. (NAND) ┬® 2001-2006 Red Hat, Inc.
fuse init (API version 7.11)
msgmni has been set to 243
io scheduler noop registered (default)
pcieport-driver 0000:01:00.0: device [14e4:6328] has invalid IRQ; check vendor BIOS
PCI: Setting latency timer of device 0000:01:00.0 to 64
Driver 'sd' needs updating - please use bus_type methods
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
PPP BSD Compression module registered
NET: Registered protocol family 24
bcm963xx_mtd driver v2.0
Failed to read image tag from flash
Broadcom DSL NAND controller (BrcmNand Controller)
-->brcmnand_scan: CS=0, numchips=1, csi=0
mtd->oobsize=0, mtd->eccOobSize=0
NAND_CS_NAND_XOR=00000000
Disabling XOR on CS#0
brcmnand_scan: Calling brcmnand_probe for CS=0
B4: NandSelect=40000001, nandConfig=15142200, chipSelect=0
brcmnand_read_id: CS0: dev_id=92f18095
After: NandSelect=40000001, nandConfig=15142200
DevId 92f18095 may not be supported.  Will use config info
Block size=00020000, erase shift=17
NAND Config: Reg=15142200, chipSize=128 MB, blockSize=128K, erase_shift=11
busWidth=1, pageSize=2048B, page_shift=11, page_mask=000007ff
timing1 not adjusted: 5363444f
timing2 not adjusted: 00000fc6
BrcmNAND mfg 0 0 UNSUPPORTED NAND CHIP 128MB on CS0

Found NAND on CS0: ACC=f3000000, cfg=15142200, flashId=92f18095, tim1=5363444f, tim2=00000fc6
BrcmNAND version = 0x0202 128MB @00000000
B4: NandSelect=40000001, nandConfig=15142200, chipSelect=0
brcmnand_read_id: CS0: dev_id=92f18095
After: NandSelect=40000001, nandConfig=15142200
Found NAND flash on Chip Select 0, chipSize=128MB, usable size=128MB, base=0
brcmnand_scan: Done brcmnand_probe
brcmnand_scan: B4 nand_select = 40000001
brcmnand_scan: After nand_select = 40000001
brcmnand_scan 10
200 CS=0, chip->ctrl->CS[0]=0
200 chip->ecclevel=15, acc=f3000000
page_shift=11, bbt_erase_shift=17, chip_shift=27, phys_erase_shift=17
brcmnand_scan 220
Brcm NAND controller version = 2.2 NAND flash size 128MB @18000000
brcmnand_scan 230
brcmnand_scan 40, mtd->oobsize=64, chip->ecclayout=00000000
brcmnand_scan 42, mtd->oobsize=64, chip->ecclevel=15, isMLC=0, chip->cellinfo=0
ECC layout=brcmnand_oob_bch4_4k
brcmnand_scan:  mtd->oobsize=64
brcmnand_scan: oobavail=50, eccsize=512, writesize=2048
brcmnand_scan, eccsize=512, writesize=2048, eccsteps=4, ecclevel=15, eccbytes=3
300 CS=0, chip->ctrl->CS[0]=0
500 chip=879a7980, CS=0, chip->ctrl->CS[0]=0
-->brcmnand_default_bbt
brcmnand_default_bbt: bbt_td = bbt_main_descr
Bad block table Bbt0 found at page 0000ffc0, version 0x01 for chip on CS0
Bad block table 1tbB found at page 0000ff80, version 0x01 for chip on CS0
brcmnand_scan 99
==> sc_setup_mtd_partitions
[sc_setup_mtd_partitions] try read a page at offset = 0x20000
[sc_setup_mtd_partitions] read page OK at offset = 0x20000
mmap flag found on oft = 0x20000
[sc_setup_mtd_partitions] try read a page at offset = 0x20800
[sc_setup_mtd_partitions] read page OK at offset = 0x20800
=====> sc_set_running_rootfs
bootflags 1 = eRcOmM.000bootflags 2 = eRcOmM.000set booting from kfs 1
=== sc_set_running_rootfs
 sc_setup_mtd_partitions
Creating 14 MTD partitions on "brcmnand.0":
0x000000000000-0x000000020000 : "cferom"
0x0000000c0000-0x000000200000 : "mmap"
0x000000200000-0x000000340000 : "cferam1"
0x000000020000-0x0000000c0000 : "cferam2"
0x000000340000-0x0000003e0000 : "serial"
0x0000003e0000-0x000000520000 : "protect"
0x000000520000-0x000002320000 : "rootfs"
0x000003720000-0x000005520000 : "rootfs_inactive"
0x000006920000-0x000006a60000 : "bootflag1"
0x000006a60000-0x000006ba0000 : "bootflag2"
0x000006ba0000-0x000006e20000 : "xml_cfg"
0x000006e20000-0x0000070a0000 : "app_dat"
0x000002320000-0x000003720000 : "kfs1_lib"
0x000005520000-0x000006920000 : "kfs2_lib"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
PCI: Enabling device 0000:00:0a.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:0a.0 to 64
ehci_hcd 0000:00:0a.0: EHCI Host Controller
ehci_hcd 0000:00:0a.0: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:0a.0: Enabling legacy PCI PM
ehci_hcd 0000:00:0a.0: irq 50, io mem 0x10002500
ehci_hcd 0000:00:0a.0: USB f.f started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
PCI: Enabling device 0000:00:09.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:00:09.0 to 64
ohci_hcd 0000:00:09.0: OHCI Host Controller
ohci_hcd 0000:00:09.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:09.0: irq 49, io mem 0x10002600
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
brcmboard: brcm_board_init entry
SES: Button Interrupt 0x1 is enabled
sesBtn_mapIntr: is_sesBtn_irq_shared=0, sesBtn_irq=1
Serial: BCM63XX driver $Revision: 3.00 $
ttyS0 at MMIO 0xb0000100 (irq = 36) is a BCM63XX
ttyS1 at MMIO 0xb0000120 (irq = 47) is a BCM63XX
bcmPktDmaBds_init: Broadcom Packet DMA BDs initialized

bcmxtmrt: Broadcom BCM6328B0 ATM/PTM Network Device v0.3 Nov 22 2013 17:20:25
GACT probability NOT on
Mirror/redirect action on
u32 classifier
    input device check on
    Actions configured
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (2032 buckets, 8128 max)
nf_nat_pt: no ports specified
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
Ebtables v2.0 registered
ebt_time registered
ebt_ftos registered
ebt_wmm_mark registered
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (jffs2 filesystem) on device 31:6.
Freeing unused kernel memory: 136k freed
bcm_ingqos: module license 'Proprietary' taints kernel.
Broadcom Ingress QoS Module  Char Driver v0.1 Nov 22 2013 17:19:48 Registered<243>

Broadcom Ingress QoS ver 0.1 initialized
pktflow: module license 'Proprietary' taints kernel.
NBUFF v1.0 Initialized
Initialized fcache state
Broadcom Packet Flow Cache  Char Driver v2.2 Nov 22 2013 17:19:48 Registered<242>
Created Proc FS /procfs/fcache
Broadcom Packet Flow Cache registered with netdev chain
Broadcom Packet Flow Cache learning via BLOG enabled.
Constructed Broadcom Packet Flow Cache v2.2 Nov 22 2013 17:19:48
bcmxtmcfg: module license 'Proprietary' taints kernel.
bcmxtmcfg: bcmxtmcfg_init entry
adsldd: module license 'Proprietary' taints kernel.
adsl: adsl_init entry
Broadcom BCM6328B0 Ethernet Network Device v0.1 Nov 22 2013 17:20:14
ETH Init: Ch:0 - 200 tx BDs at 0xa7a90000
ETH Init: Ch:0 - 600 rx BDs at 0xa7142000
dgasp: kerSysRegisterDyingGaspHandler: bcmsw registered
eth0: MAC Address: D4:21:22:xx:xx:xx
eth1: MAC Address: D4:21:22:xx:xx:xx
eth2: MAC Address: D4:21:22:xx:xx:xx
eth3: MAC Address: D4:21:22:xx:xx:xx
bcmarl: module license 'Proprietary' taints kernel.
[NTC arl] arlEnable : Enabled ARL binding to Flow Cache
Broadcom Address Resolution Logic Processor (ARL) Char Driver v0.1 Nov 22 2013 17:17:22 Registered <
245>
bcmvlan: module license 'Proprietary' taints kernel.
Broadcom 802.1Q VLAN Interface, v0.1
pwrmngtd: module license 'Proprietary' taints kernel.
endpointdd: module license 'Proprietary' taints kernel.
Endpoint: endpoint_init entry
Endpoint: endpoint_init COMPLETED
sc_drv: module license 'Sercomm' taints kernel.
Host MIPS Clock divider pwrsaving is enabled
DDR Self Refresh pwrsaving is enabled
common: module license 'unspecified' taints kernel.
init common module successful
insert firewall block module success
netfilter tcp syn flood module loaded
netfilter other dos module loaded
netfilter brdcstSrc dos module loaded
ft_tool uses obsolete (PF_INET,SOCK_PACKET)
BcmAdsl_Initialize=0xC01220C0, g_pFnNotifyCallback=0xC01545A4
pSdramPHY=0xA7FFFFF8, 0xA1EA4118 0xA040EB81
*** XfaceOffset: 0x21F90 => 0x21F90 ***
*** PhySdramSize got adjusted: 0x8F648 => 0xA54AC ***
AdslCoreSharedMemInit: shareMemSize=371501(371504)
AdslCoreHwReset:  pLocSbSta=86450000 bkupThreshold=1600
AdslCoreHwReset:  AdslOemDataAddr = 0xA7F84150
***BcmDiagsMgrRegisterClient: 0 ***
dgasp: kerSysRegisterDyingGaspHandler: dsl0 registered
XTM Init: 600 rx BDs at 0xa645e000
XTM Init: 16 rx BDs at 0xa7145180
device eth3 entered promiscuous mode
device eth2 entered promiscuous mode
device eth1 entered promiscuous mode
secosdrv: module license 'Proprietary' taints kernel.
scm_setup_cdev() add cdev success
*** scm module init done ***
lan interface=[br0], index=10
netfilter PSD and TCP/UDP Echo/Chargen Attack loaded
networkmap: module license 'Sercomm License' taints kernel.
wl: module license 'Proprietary' taints kernel.
wl: dsl_tx_pkt_flush_len=338
wl: high_wmark_tot=400
PCI: Enabling device 0000:02:00.0 (0000 -> 0002)
PCI: Setting latency timer of device 0000:02:00.0 to 64
wl: passivemode=1
wl: napimode=0
wl0: allocskbmode=1 currallocskbsz=512
Neither SPROM nor OTP has valid image
wl:srom/otp not programmed, using main memory mapped srom info(wombo board)
wl:loading /etc/wlan/bcm43217_map.bin
srom rev:8
wl0: Broadcom BCMa8db 802.11 Wireless Controller 6.30.102.7.cpe4.12L08.0
dgasp: kerSysRegisterDyingGaspHandler: wl0 registered
device wl0 entered promiscuous mode
[LAN] LAN3 Link UP 100 mbps full duplex
eth1 (switch port: 1) Link UP 100 mbps full duplex
message received before monitor task is initialized kerSysSendtoMonitorTask
br0: port 3(eth1) entering learning state
br0: port 3(eth1) entering forwarding state
br0: port 4(wl0) entering learning state
br0: port 4(wl0) entering forwarding state
process `snmp' is using obsolete setsockopt SO_BSDCOMPAT

Nota: todavía no intenté portarlo porque no tengo ni idea de flash NAND para bcm63xx.  :-[

« Última modificación: 29-06-2015, 15:20 (Lunes) por Pteridium »

Noltari

  • Visitante
Re: [Desarrollo] OpenWrt en Sercomm AD1018
« Respuesta #1 en: 30-06-2015, 09:04 (Martes) »
Este router lo proporciona Vodafone.

Características:
- SoC: BCM63283@320MHz
- RAM: 128 MB DDR2 (Etrontech EM68C16CWQE-25H).
- Flash: 128MB NAND (ESMT F59L1G81A-25T)
- Ethernet: 4x10/100Mb
- Wireless: BCM43217 b/g/n 2x2:2
- Antenas internas.
- USB: sin soldar
- VoIP: Si32177. Conectado al bus SPI.
- Board Id.: 96328avngr

Firmware Vodafone:
Usuario: admin
Contraseña: VF-ESad1018

Nota: todavía no intenté portarlo porque no tengo ni idea de flash NAND para bcm63xx.  :-[
Échale un ojo a este branch:
https://github.com/openwrt-es/openwrt/commits/brcm63xx-devel

Es raro encontrarse un BCM6328 con una NAND como flash única/principal.
Lo bueno es que analizando la flash parece que no sigue la misma chapuza de los BCM63268, puesto que éste si tiene particiones definidas en la NAND para el rootfs y el kernel.
En los BCM63268 existe una única partición JFFS2 que el CFE monta al arrancar y que contiene todo: cferam y kernel alojados en el mismo rootfs que contiene el resto de ficheros. Vamos, una auténtica chapuza por parte de Broadcom.
Aun así, te recomiendo no flashear imágenes y utilizar sólo ramdisks.

Particiones:
0000000-0020000128KiBcferomParte básica del CFE
0020000-00c0000640KiBcferam2Parte secundaria del CFE
00c0000-02000001280KiBmmapNPI
0200000-03400001280KiBcferam1Parte secundaria del CFE
0340000-03e0000640KiBserialNPI
03e0000-05200001280KiBprotectNPI
0520000-232000030MiBrootfsRootFS (imagen 1)
2320000-372000020MiBkfs1_libKernelFS (imagen 1)
3720000-552000030MiBrootfs_inactiveRootFS (imagen 2)
5520000-692000020MiBkfs2_libKernelFS (imagen 2)
6920000-6a600001280KiBbootflag1NPI (imagen 1)
6a60000-6ba00001280KiBbootflag2NPI (imagen 2)
6ba0000-6e200002560KiBxml_cfgConfiguración A
6e20000-70a00002560KiBapp_datConfiguración B
70a0000-800000015744KiB--

Saludos.

« Última modificación: 25-11-2015, 12:01 (Miércoles) por Pteridium »

Desconectado Noltari

  • OpenWrt
  • **
  • Mensajes: 10
Re:[Desarrollo] OpenWrt en Sercomm AD1018
« Respuesta #2 en: 19-05-2020, 13:43 (Martes) »
Buenas,

Acabo de integrar el soporte para este router en el repo oficial de OpenWrt:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=5f826919232db2ca2d3d7e9da00de93c5f6a95bf

Ya no es necesario el mod de la flash SPI :).

Dentro de poco debería haber snapshots aquí:
https://downloads.openwrt.org/snapshots/targets/bcm63xx/smp/

Saludos!


Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re:[Desarrollo] OpenWrt en Sercomm AD1018
« Respuesta #3 en: 20-05-2020, 19:11 (Miércoles) »
Buenas,

Acabo de integrar el soporte para este router en el repo oficial de OpenWrt:
https://git.openwrt.org/?p=openwrt/openwrt.git;a=commitdiff;h=5f826919232db2ca2d3d7e9da00de93c5f6a95bf

Ya no es necesario el mod de la flash SPI :).

Dentro de poco debería haber snapshots aquí:
https://downloads.openwrt.org/snapshots/targets/bcm63xx/smp/

Saludos!

Cuanto tiempo sin verte por el foro  >:( >:( >:( >:(


Desconectado txutxy

  • **
  • Mensajes: 13
Re:[Desarrollo] OpenWrt en Sercomm AD1018
« Respuesta #4 en: 24-05-2020, 11:15 (Domingo) »
Buenos días y enhorabuena por el curro Noltari!
Tengo este router con 19.03.7 a traves de SPI. Funciona rapido y perfecto, pero no he podido configurarlo en modo repetidor o STA/AP. No se si algún firmware monta el driver propietario de Broadcom para poder hacerlo o con este router no se puede, me daría igual que fuera mas antiguo el firmware, pero si lo puedo activar me vendría genial.

Gracias y un saludo


Desconectado jar229

  • Moderador
  • *
  • Mensajes: 4607
Re:[Desarrollo] OpenWrt en Sercomm AD1018
« Respuesta #5 en: 27-05-2020, 11:05 (Miércoles) »
Buenos días y enhorabuena por el curro Noltari!
Tengo este router con 19.03.7 a traves de SPI. Funciona rapido y perfecto, pero no he podido configurarlo en modo repetidor o STA/AP. No se si algún firmware monta el driver propietario de Broadcom para poder hacerlo o con este router no se puede, me daría igual que fuera mas antiguo el firmware, pero si lo puedo activar me vendría genial.

Gracias y un saludo

Con las Wireless Broadcom no funciona el modo repetidor  >:D


Desconectado cheche

  • **
  • Mensajes: 33
Re:[Desarrollo] OpenWrt en Sercomm AD1018
« Respuesta #6 en: 07-08-2022, 11:04 (Domingo) »
Me ha llegado un  Sercomm VD1018. He conseguido llegar a la consola de administracion con estos datos:


Usuario: admin
Contraseña: VF-ESvd1018

¿Creeis que se puede usar el mismo firmware?