Re: [OpenWrt-Devel] bcm53xx: Netgear R7000 problems

2014-05-14 Thread Hauke Mehrtens
On 05/14/2014 09:26 AM, André Valentin wrote:
> Hello!
> 
> 
> On 13.05.2014 10:41, Rafał Miłecki wrote:
>> On 13 May 2014 10:10, James Hilliard  wrote:
>>> Seems there might be some relevant code here for the flash
>>> https://github.com/jameshilliard/R7000-V1.0.2.164_1.0.15_GPL/tree/master/src/shared
>>
>> Sure, you just need to re-write it to don't use 3 abstraction layers
>> and make it work without Broadcom's SDK specific code.
> 
> Thanks for the hint. But this is a bit too much work to be done for just one 
> single device I have.
> 
> Kind regards,
> 
> André

Support for flash is still missing. Someone is working on a flash chip
for the NAND controller, not exactly for this SoC but for the Core used
in this SoC.  These devices have a serial flash chip and a NAND flash chip.

I am currently working on the PCIe controller.

Thanks for the dmesg dump, I haven't seen a BCM4709 booting, the R6250
uses a BCM4708 with just two PCIe controller.

Hauke
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] bcm53xx: Netgear R7000 problems

2014-05-14 Thread André Valentin
Hello!


On 13.05.2014 10:41, Rafał Miłecki wrote:
> On 13 May 2014 10:10, James Hilliard  wrote:
>> Seems there might be some relevant code here for the flash
>> https://github.com/jameshilliard/R7000-V1.0.2.164_1.0.15_GPL/tree/master/src/shared
> 
> Sure, you just need to re-write it to don't use 3 abstraction layers
> and make it work without Broadcom's SDK specific code.

Thanks for the hint. But this is a bit too much work to be done for just one 
single device I have.

Kind regards,

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


Re: [OpenWrt-Devel] bcm53xx: Netgear R7000 problems

2014-05-13 Thread Rafał Miłecki
On 13 May 2014 10:10, James Hilliard  wrote:
> Seems there might be some relevant code here for the flash
> https://github.com/jameshilliard/R7000-V1.0.2.164_1.0.15_GPL/tree/master/src/shared

Sure, you just need to re-write it to don't use 3 abstraction layers
and make it work without Broadcom's SDK specific code.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] bcm53xx: Netgear R7000 problems

2014-05-13 Thread James Hilliard
Seems there might be some relevant code here for the flash
https://github.com/jameshilliard/R7000-V1.0.2.164_1.0.15_GPL/tree/master/src/shared


On Mon, May 12, 2014 at 11:30 PM, Rafał Miłecki  wrote:

> On 12 May 2014 21:50, Andre Valentin  wrote:
> > 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.
>
> Write a driver. There isn't any available yet.
> ___
> openwrt-devel mailing list
> openwrt-devel@lists.openwrt.org
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
>
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] bcm53xx: Netgear R7000 problems

2014-05-12 Thread Rafał Miłecki
On 12 May 2014 21:50, Andre Valentin  wrote:
> 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.

Write a driver. There isn't any available yet.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] bcm53xx: Netgear R7000 problems

2014-05-12 Thread Andre Valentin

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(0x8)
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 0x8000
Closing network.
Starting program at 0x8000

And now the dmesg:

[0.00] Booting Linux on physical CPU 0x0
[0.00] 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.00] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c53c7d
[0.00] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing 
instruction cache
[0.00] Machine: BCM5301X, model: Netgear R6250 V1 (BCM4708)
[0.00] Memory policy: ECC disabled, Data cache writealloc
[0.00] On node 0 totalpages: 32768
[0.00] free_area_init_node: node 0, pgdat c060d240, node_mem_map 
c064b000
[0.00]   Normal zone: 256 pages used for memmap
[0.00]   Normal zone: 0 pages reserved
[0.00]   Normal zone: 32768 pages, LIFO batch:7
[0.00] PERCPU: Embedded 7 pages/cpu @c074f000 s6784 r8192 d13696 u32768
[0.00] pcpu-alloc: s6784 r8192 d13696 u32768 alloc=8*4096
[0.00] pcpu-alloc: [0] 0 [0] 1
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 32512
[0.00] Kernel command line: console=ttyS0,115200
[0.00] PID hash table entries: 512 (order: -1, 2048 bytes)
[0.00] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[0.00] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[0.00] Memory: 128MB = 128MB total
[0.00] Memory: 123416k/123416k available, 7656k reserved, 0K highmem
[0.00] Virtual kernel memory layout:
[0.00] vector  : 0x - 0x1000   (   4 kB)
[0.00] fixmap  : 0xfff0 - 0xfffe   ( 896 kB)
[0.00] vmalloc : 0xc880 - 0xff00   ( 872 MB)
[0.00] lowmem  : 0xc000 - 0xc800   ( 128 MB)
[0.00] modules : 0xbf00 - 0xc000   (  16 MB)
[0.00]   .text : 0xc0008000 - 0xc02d6db4   (2876 kB)
[0.00]   .init : 0xc02d7000 - 0xc0606a80   (3263 kB)
[0.00]   .data : 0xc0608000 - 0xc061ee88   (  92 kB)
[0.00].bss : 0xc061ee88 - 0xc064ac54   ( 176 kB)
[0.00] Hierarchical RCU implementation.
[0.00]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[0.00] NR_IRQS:16 nr_irqs:16 16
[0.00] 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 8000
[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 0x41c8, AUX_CTRL 0x0a13, Cache 
size: 262144 B
[0.111556] bio: create slab  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 (ord