Hello!

I saw that there is support for the Netgear R6250 in openwrt. So I thought 
maybe the R7000 is not so far from being support. It's not ;-)
After I modified the R6250 config in openwrt to allow the initramfs image to be flashed. First problem I then saw is that the image loads fine, but on serial I get only rubbish. But the luck was on my side, the device responded to ping and allowed me a login.

This is the CFE boot log:

CFE for Foxconn Router R7000 version: v1.0.21
Build Date: Wed Aug  7 19:11:17 CST 2013
Init Arena
Init Devs.
Boot up from NAND flash...
Bootcode Boot partition size = 524288(0x80000)
DDR Clock: 800 MHz
Info: DDR frequency set from clkfreq=1000,*800*
et0: Broadcom BCM47XX 10/100/1000 Mbps Ethernet Controller 6.37.15.1 (r407936)
CPU type 0x0: 1000MHz
Tot mem: 262144 KBytes

Device eth0:  hwaddr C4-04-15-5B-C4-66, ipaddr 192.168.1.1, mask 255.255.255.0
        gateway not set, nameserver not set
Loader:raw Filesys:tftp Dev:eth0 File:192.168.1.2:vmlinuz Options:(null)
Loading: TFTP error 1: File not found
Failed.
Could not load 192.168.1.2:vmlinuz: Network protocol error
Checking crc...Loader:raw Filesys:raw Dev:nflash0.os File: Options:(null)
Loading: ... 2113986 bytes read
Entry at 0x00008000
Closing network.
Starting program at 0x00008000

And now the dmesg:

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.36 (avalentin@varus) (gcc version 4.8.3 
(OpenWrt/Linaro GCC 4.8-2014.01 r40555) ) #24 SMP Mon May 12 21:30:34 CEST 2014
[    0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[    0.000000] Machine: BCM5301X, model: Netgear R6250 V1 (BCM4708)
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c060d240, node_mem_map 
c064b000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32768 pages, LIFO batch:7
[    0.000000] PERCPU: Embedded 7 pages/cpu @c074f000 s6784 r8192 d13696 u32768
[    0.000000] pcpu-alloc: s6784 r8192 d13696 u32768 alloc=8*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 123416k/123416k available, 7656k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc02d6db4   (2876 kB)
[    0.000000]       .init : 0xc02d7000 - 0xc0606a80   (3263 kB)
[    0.000000]       .data : 0xc0608000 - 0xc061ee88   (  92 kB)
[    0.000000]        .bss : 0xc061ee88 - 0xc064ac54   ( 176 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] sched_clock: 32 bits at 400MHz, resolution 2ns, wraps every 
10737ms
[    0.000227] Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
[    0.090046] pid_max: default: 32768 minimum: 301
[    0.090201] Mount-cache hash table entries: 512
[    0.091418] CPU: Testing write buffer coherency: ok
[    0.091709] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.091780] Setting up static identity map for 0xc0010ef0 - 0xc0010f24
[    0.092829] CPU1: failed to boot: -38
[    0.092865] Brought up 1 CPUs
[    0.092877] SMP: Total of 1 processors activated (1594.16 BogoMIPS).
[    0.092884] CPU: All CPU(s) started in SVC mode.
[    0.101230] NET: Registered protocol family 16
[    0.101667] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.102704] L310 cache controller enabled
[    0.102724] l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x0a130000, Cache 
size: 262144 B
[    0.111556] bio: create slab <bio-0> at 0
[    0.113982] Switching to clocksource arm_global_timer
[    0.116878] NET: Registered protocol family 2
[    0.117442] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[    0.117479] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.117505] TCP: Hash tables configured (established 1024 bind 1024)
[    0.117572] TCP: reno registered
[    0.117595] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.117638] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.117928] NET: Registered protocol family 1
[    0.117976] PCI: CLS 0 bytes, default 64
[    0.171551] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.171575] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.171766] msgmni has been set to 241
[    0.172128] io scheduler noop registered
[    0.172144] io scheduler deadline registered (default)
[    0.172445] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.173744] 18000300.serial: ttyS0 at MMIO 0x18000300 (irq = 117) is a 16550
[    0.511739] console [ttyS0] enabled
[    0.515881] 18000400.serial: ttyS1 at MMIO 0x18000400 (irq = 117) is a 16550
[    0.525266] platform physmap-flash.0: failed to claim resource 0
[    0.532398] bgmac: Broadcom 47xx GBit MAC driver loaded
[    0.537753] bcma: bus0: Found chip with id 0xCF12, rev 0x00 and package 0x00
[    0.544837] bcma: bus0: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 
0x2A, class 0x0)
[    0.553339] bcma: bus0: Core 1 found: DMA (manuf 0x4BF, id 0x502, rev 0x01, 
class 0x0)
[    0.561260] bcma: bus0: Core 2 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 
0x05, class 0x0)
[    0.569595] bcma: bus0: Core 3 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 
0x05, class 0x0)
[    0.577929] bcma: bus0: Core 4 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 
0x05, class 0x0)
[    0.586276] bcma: bus0: Core 5 found: GBit MAC (manuf 0x4BF, id 0x82D, rev 
0x05, class 0x0)
[    0.594616] bcma: bus0: Core 6 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 
0x01, class 0x0)
[    0.603112] bcma: bus0: Core 7 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 
0x01, class 0x0)
[    0.611625] bcma: bus0: Core 8 found: PCIe Gen 2 (manuf 0x4BF, id 0x501, rev 
0x01, class 0x0)
[    0.620138] bcma: bus0: Core 9 found: ARM Cortex A9 core (ihost) (manuf 
0x4BF, id 0x510, rev 0x01, class 0x0)
[    0.630029] bcma: bus0: Core 10 found: USB 2.0 (manuf 0x4BF, id 0x504, rev 
0x01, class 0x0)
[    0.638365] bcma: bus0: Core 11 found: USB 3.0 (manuf 0x4BF, id 0x505, rev 
0x01, class 0x0)
[    0.646694] bcma: bus0: Core 12 found: SDIO3 (manuf 0x4BF, id 0x503, rev 
0x01, class 0x0)
[    0.654850] bcma: bus0: Core 13 found: I2S (manuf 0x4BF, id 0x834, rev 0x03, 
class 0x0)
[    0.662821] bcma: bus0: Core 14 found: ARM Cortex A9 JTAG (manuf 0x4BF, id 
0x506, rev 0x01, class 0x0)
[    0.672107] bcma: bus0: Core 15 found: Denali DDR2/DDR3 memory controller 
(manuf 0x4BF, id 0x507, rev 0x01, class 0x0)
[    0.682779] bcma: bus0: Core 16 found: ROM (manuf 0x4BF, id 0x508, rev 0x01, 
class 0x0)
[    0.690770] bcma: bus0: Core 17 found: NAND flash controller (manuf 0x4BF, 
id 0x509, rev 0x01, class 0x0)
[    0.700314] bcma: bus0: Core 18 found: SPI flash controller (manuf 0x4BF, id 
0x50A, rev 0x01, class 0x0)
[    0.709773] bcma: bus0: Using fallback SPROM failed (err -2)
[    0.715413] bcma: bus0: No SPROM available
[    0.720062] bgmac bcma0:1: Invalid MAC addr: 00:00:00:00:00:00
[    0.725939] bgmac bcma0:1: Using random MAC: 82:72:c2:30:30:36
[    0.731818] bgmac bcma0:1: Found PHY addr: 30 (NOREGS)
[    0.738838] bgmac bcma0:1: Support for Roboswitch not implemented
[    0.745761] libphy: bgmac mii bus: probed
[    0.751145] b53_common: found switch: BCM53012, rev 3
[    0.757436] bgmac: Unsupported core_unit 1
[    0.761535] bgmac: probe of bcma0:2 failed with error -524
[    0.767319] bgmac: Unsupported core_unit 2
[    0.771409] bgmac: probe of bcma0:3 failed with error -524
[    0.777165] bgmac: Unsupported core_unit 3
[    0.781258] bgmac: probe of bcma0:4 failed with error -524
[    0.789468] bcma: bus0: GPIO driver not activated
[    0.789700] bcma: bus0: Bus registered
[    0.793899] TCP: cubic registered
[    0.797254] NET: Registered protocol family 17
[    0.801756] 8021q: 802.1Q VLAN Support v1.8
[    0.807257] ### dt-test ### No testcase data in device tree; not running 
tests
[    0.817818] Freeing unused kernel memory: 3260K (c02d7000 - c0606000)
[    0.824959] External imprecise Data abort at addr=0xb6fb8005, fsr=0x1c06 
ignored.
[    4.872757] NET: Registered protocol family 10
[    4.881863] nf_conntrack version 0.5.0 (1979 buckets, 7916 max)
[    4.891468] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    4.907703] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.936548] xt_time: kernel timezone is -0000
[    4.945947] PPP generic driver version 2.4.2
[    4.952002] NET: Registered protocol family 24
[    7.211057] device eth0 entered promiscuous mode
[    7.224514] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[    8.204095] br-lan: port 1(eth0) entered forwarding state
[    8.209529] br-lan: port 1(eth0) entered forwarding state
[    8.214969] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.234161] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   10.204054] br-lan: port 1(eth0) entered forwarding state

The problems I have is that I do not know how to get the flash working. It 
seems it is available via bcma, but not initialized.
I took a look at the r6250 dts file which is used here, but there is no 
reference to the flash? Can someone give me a hint?

André
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to