[LEDE-DEV] Arcadyan vrv9510kwac23

2016-10-25 Thread Juan Rios
Hello again,
I have been working on adding support for this router with the
help of SCApi and we got it to the point that Ethernet ports works,
leds and buttons works and wifi card 0xa8d6 43222 works.

The wifi card don't have sprom and I had to write a patch to add
fallback sprom support for this card.

The sprom is not located in flash or at least I could not find it. I
used the logs from original firmware and information from broadcom
architecture to make it and put the interesting values and it works.

To supply sprom buffer I need the mac address of the interface. I want
to use the Ethernet mac address + 2. The Ethernet mac address is
stored in mtd at certain offset.

Where should be the registration of the sprom fallback function?.
Right now I did it in the b43_pci_ssb_bridge_init function from the
drivers/ssb/pci_b43_bridge.c file.

Also It is needed a way to specify the mtd partition where the mac
address is stored, the offset and the increment needed to the mac
address. Where and how should this be put?

Right now there is only three lantiq routers with broadcom wifi card
that I know of and may be in the same situation.

Regards
Juan Rios

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] Arcadyan vrv9510kwac23

2016-10-28 Thread Juan Rios
anyone can help? its already working.

Just need guidance about best place to put the configuration for it
and register the callback...

Thanks

On Tue, Oct 25, 2016 at 9:13 PM, Juan Rios  wrote:
> Hello again,
> I have been working on adding support for this router with the
> help of SCApi and we got it to the point that Ethernet ports works,
> leds and buttons works and wifi card 0xa8d6 43222 works.
>
> The wifi card don't have sprom and I had to write a patch to add
> fallback sprom support for this card.
>
> The sprom is not located in flash or at least I could not find it. I
> used the logs from original firmware and information from broadcom
> architecture to make it and put the interesting values and it works.
>
> To supply sprom buffer I need the mac address of the interface. I want
> to use the Ethernet mac address + 2. The Ethernet mac address is
> stored in mtd at certain offset.
>
> Where should be the registration of the sprom fallback function?.
> Right now I did it in the b43_pci_ssb_bridge_init function from the
> drivers/ssb/pci_b43_bridge.c file.
>
> Also It is needed a way to specify the mtd partition where the mac
> address is stored, the offset and the increment needed to the mac
> address. Where and how should this be put?
>
> Right now there is only three lantiq routers with broadcom wifi card
> that I know of and may be in the same situation.
>
> Regards
> Juan Rios

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] VRV9510KWAC23

2016-08-27 Thread Juan Rios
Hello,
   I managed to get this router and want to get lede on it. The hardware is this

Lantiq VRX288 500Mhz
2 NANYA NT5TU128M8HE-AC  256MB RAM
ZENTEL A501GA31ATS 8G 128MB NAND FLASH.
Wireless 2.4Ghz BCM43222KFBG
Wireless 5Ghz BCM4360KMLG
VDSL/ADSL2+ XWAY VRX208
5 port GB Ethernet

I already found serial port pins and got the console log. The log is
almost silent. I managed to get to the brnboot shell short cutting
pins in the flash but cant do a flash dump.

ERASE Flash
---
AreaAddress  Length
---
[0] Boot0x1024K
[1] Image 0 0x0010   10240K
[2] Image 1 0x00B0   10240K
[3] Configuration   0x01502048K
[4] Boot Params 0x01702048K
[5] Nvram   0x01901024K
[6] Cert0x01A0   32768K
[7] EmergencyValue  0x03A06144K
[8] Configuration2  0x04002048K
[9] All area0x   67584K

If I try to read from above address the router gets locked.

I can read from certain area like memory or 0xBC00 or 0xBE00
but others locks the router.

The boot ask for a password and continues booting.

The emergency boot kernel is openwrt 10.3

I found out that short cutting R201 I get CFG 07 instead of CFG 06 so
maybe UART Mode is R201 + R203 but not sure. Not quite sure to try
it...

I can load to memory using xmodem transfer and run but all I tried get
locked without any output.

What I want is first dump the current content of the flash. Any ideas?

Thanks in advance
JRios

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] VRV9510KWAC23

2016-08-28 Thread Juan Rios
Thanks for your help

The oem boot log, oem boot log with uart output enabled in config and
the recovery boot is included...

I tried several images from ARV7519RW22 because is the previous model
but this one is NOR. Also tried with EASY80920NAND and P2812HNUF1 but
this ones not tried the initramfs. Now I am compiling the
EASY80920NAND to get the initramfs but not sure about what
compressions to use. Will try none, gzip and lzma.

If there is anything I can try let me know.



On Sun, Aug 28, 2016 at 12:24 PM, Mathias Kresin  wrote:
> Am 28.08.2016 um 12:15 schrieb Hauke Mehrtens:
>>
>> On 08/28/2016 10:31 AM, Mathias Kresin wrote:
>>>
>>> Am 27.08.2016 um 19:44 schrieb Juan Rios:
>>>>
>>>> I can load to memory using xmodem transfer and run but all I tried get
>>>> locked without any output.
>>
>>
>> Have you tried the kenrel with both serial interfaces? The SoC supports
>> two and I do not know which on is used on your hardware.
>>
>> @Mathias is it normal that this does not work?
>
>
> Mhh, I've missed that part of Juans mail. It's not clear to me what Juan
> tried to load and run from ram.
>
> Loadx and run the kernel from ram is a brilliant idea. Albeit I've done it
> dozen times with u-boot, I never considered doing the same with brnboot.
>
> I might have some time later the day to give it a try.

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK
DDR PARAM flash addr 170
DDR PARAM:

00142404
00142304
00566504
00566504
0700

Rev 0.3d
DDR check ok... start booting...

END TUNE DDR
Start booting...



===
Wireless ADSL IAD VR9 Loader v1.00.13 build Apr 25 2014 13:12:00
Arcadyan Technology Corporation
===
A2x VR9
0xbe22ff1c : e71074ef
0xBf203014 : 7038
EON/Zentel NAND 128MB 3,3V 8-bit found
-
NAND page size: 2048
NAND oob size : 64
NAND block size   : 131072
NAND page/block   : 64
NAND block/chip   : 1024
NAND chip size: 0x800
NAND page shift   : 11
NAND page mask: 0x
NAND block shift  : 17
-

Scan BAD Block ...
BAD Block [1023] : 0x07FE data: 0x00
1 Bad Block(s)


Copying boot params.DONE

Enter command mode ...
Get Primary to 1.Image Check from FLASH_AREA_IMAGE_1 : 
Unzipping firmware at 0x80002000 ... with nAREA[2][ZIP 3] [ZIP 1]  done
Ready to run firmware
Enable UART TX
Disable UART TX
Enable UART TX
Disable UART TX
Enable UART TX
RFPI before chk 07 07 00 10 10
Disable UART TX
Enable UART TX
VPE loader: VPE1 running successfully
[KERN_ERR]ifx_pcie_wait_phy_link_up timeout
ifx_pmu_set: PMU_PWDCR1 = 0x006d module 32 regid 1 regbit 0
ifx_pmu_set: Module PCIE-PHY still is being used 0 times
ifx_pmu_set: Actual disabling..2
ifx_pmu_set: Module PCIE-PHY disactivated!!!
ifx_pmu_set: PMU_PWDCR1 = 0x006d module 36 regid 1 regbit 4
ifx_pmu_set: Module PDI has been activated 2 times before
ifx_pmu_set: PMU_PWDCR1 = 0x006c module 32 regid 1 regbit 0
ifx_pmu_set: Actual enabling.. 1
ifx_pmu_set: Module PCIE-PHY has been activated 1 times before
ifx_pmu_set: PMU_PWDCR1 = 0x006c module 33 regid 1 regbit 1
ifx_pmu_set: Module PCIE-CTRL has been activated 2 times before
ifx_pmu_set: PMU_PWDCR0 = 0x06110093 module 31 regid 0 regbit 31
ifx_pmu_set: Module PCIE_L0_CLK has been activated 2 times before
pciauto_assign_resources : bus 1
Autoconfig PCI channel 0x80D47038
Scanning bus 01, I/O 0x1d80:0x1d90, Mem 0x1c00:0x1d00
(bus:dev:fun)= 01:00.0 Class 0280: VenID 14e4: DevID 4360 (rev 03)
ifx_pcie_write_config : bus_number = 0 
ifx_pcie_write_config : bus_number = 0 
ifx_pcie_write_config : bus_number = 0 
Memifx_pcie_write_config : bus_number = 0 
ifx_pcie_write_config : bus_number = 0 
 at 0x1c00 [size=0x8000]
ifx_pcie_write_config : bus_number = 0 
ifx_pcie_write_config : bus_number = 0 
ifx_pcie_write_config : bus_number = 0 
ifx_pcie_write_config : bus_number = 0 



=== Console Debug ===
 (1)   Alert Mail Testing
 (3)   Write Web
 (4)   Firmware Upgrage
 (8)   Show B0,B1 Mem pool
 (9)   Toggle AAL5 Frame Dumping
 (A)ADSL
 (B)gSetting
 (c)DHCP Client
 (d)Dial
 (e)Ethernet
 (f)Firewall
 (F)FTP
 (g)LED
 (i)UPnP
 (l)SSL
 (n)NetBIOS/Printer
 (p)PPPoE
 (q)QoS
 (r)USB-IF Testing
 (s)System
 (t)WSC
 (u)USB Subsystem 
 (U)UMTS
 (v)VOIP
 (w)Wireless
 (x)   Exit
 (y)   Enable SIP Packet Display
 (Y)   Disable SIP Packet Display
 a(+ 20) / j(+ 10) / b(- 20)   Change SIP Bandwidth (20~800) 
 (h)   Enable VOIP Bandwidth Management
 (H)   Disable VOIP Bandwidth Management
 (k)   Dump Tel Session Status

Re: [LEDE-DEV] VRV9510KWAC23

2016-10-04 Thread Juan Rios
Hello again. Thanks to borderline at
http://foro.seguridadwireless.net/openwrt/(desarrollo)-openwrt-en-livevox-next-(astoria-networks-vrv9510)/
I could install the ZyXEL P-2812HNU-F1 uboot and I can boot into it.

What I did was shortcut the flash pins like described here
https://wiki.openwrt.org/toh/arcadyan/arv7519#bootloader_hack till I
got the VR9 prompt and
then used U -> 0 and uploaded via xmodem the file
https://github.com/ScApi/P2812HNUFx-Pre-Build/blob/OpenWrt-Designated-Driver-r47026/F1%20OpenWRT/uboot-lantiq-p2812hnufx_nandtpl/openwrt-lantiq-p2812hnufx_nandtpl-u-boot.img

With that installed this is the bootlog

ROM VER: 1.1.4
CFG 06
NAND
NAND Read OK

U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
SPL: initializing NAND flash
SPL: checking U-Boot image
SPL: loading U-Boot to RAM
SPL: decompressing U-Boot with LZO
SPL: jumping to U-Boot


U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx

Board: ZyXEL P-2812HNU-Fx
SoC:   Lantiq VRX288 v1.2
CPU:   500 MHz
IO:250 MHz
BUS:   250 MHz
BOOT:  NAND
DRAM:  256 MiB
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:serial
Out:   serial
Err:   serial
Net:   ltq-eth
Hit any key to stop autoboot:  0
Wrong Image Format for bootm command
ERROR: can't get kernel image!
P-2812HNU-Fx #


How can I get the information to make a proper .dts file for this
device ? The layout of the flash for the P-2812HNU-Fx has nothing to
do with this device.


---
AreaAddress  Length
---
[0] Boot0x1024K
[1] Image 0 0x0010   10240K
[2] Image 1 0x00B0   10240K
[3] Configuration   0x01502048K
[4] Boot Params 0x01702048K
[5] Nvram   0x01901024K
[6] Cert0x01A0   32768K
[7] EmergencyValue  0x03A06144K
[8] Configuration2  0x04002048K
[9] All area0x   67584K

On Mon, Aug 29, 2016 at 10:49 PM, Mathias Kresin  wrote:
> 28.08.2016 13:24, Mathias Kresin:
>
>> Am 28.08.2016 um 12:15 schrieb Hauke Mehrtens:
>>>
>>> On 08/28/2016 10:31 AM, Mathias Kresin wrote:
>>>>
>>>> Am 27.08.2016 um 19:44 schrieb Juan Rios:
>>>>>
>>>>> I can load to memory using xmodem transfer and run but all I tried get
>>>>> locked without any output.
>>>
>>>
>>> Have you tried the kenrel with both serial interfaces? The SoC supports
>>> two and I do not know which on is used on your hardware.
>>>
>>> @Mathias is it normal that this does not work?
>>
>>
>> Mhh, I've missed that part of Juans mail. It's not clear to me what Juan
>> tried to load and run from ram.
>>
>> Loadx and run the kernel from ram is a brilliant idea. Albeit I've done
>> it dozen times with u-boot, I never considered doing the same with
>> brnboot.
>>
>> I might have some time later the day to give it a try.
>
>
> I couldn't manage to start an uncompressed LEDE kernel from ram. I've tried
> kernels with brncmdline and without. But the router immediately resets
> itself.
>
> Running the uncompressed recovery kernel from ram worked however.
>
> Mathias
>

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] VRV9510KWAC23

2016-10-07 Thread Juan Rios
Thank you for your response,
Here you can find some pictures of the board. I can send high res ones
if still needed http://www.redeszone.net/orange/livebox-next/

Yes lan is working at lease in the first port. I can use tftp with it
without problems. I tried to boot the kernel via tftp but got locked
because could not find the root fs on flash.

On Fri, Oct 7, 2016 at 8:10 AM, Sylwek Petela  wrote:
> Can You post some hi rez pictures of board ?
>
> LAN is working on my U-Boot ?
>
>
> Regards
>
> Sylwek/ScApi
>
>
> W dniu 2016-10-04 o 21:59, Juan Rios pisze:
>>
>> Hello again. Thanks to borderline at
>>
>> http://foro.seguridadwireless.net/openwrt/(desarrollo)-openwrt-en-livevox-next-(astoria-networks-vrv9510)/
>> I could install the ZyXEL P-2812HNU-F1 uboot and I can boot into it.
>>
>> What I did was shortcut the flash pins like described here
>> https://wiki.openwrt.org/toh/arcadyan/arv7519#bootloader_hack till I
>> got the VR9 prompt and
>> then used U -> 0 and uploaded via xmodem the file
>>
>> https://github.com/ScApi/P2812HNUFx-Pre-Build/blob/OpenWrt-Designated-Driver-r47026/F1%20OpenWRT/uboot-lantiq-p2812hnufx_nandtpl/openwrt-lantiq-p2812hnufx_nandtpl-u-boot.img
>>
>> With that installed this is the bootlog
>>
>> ROM VER: 1.1.4
>> CFG 06
>> NAND
>> NAND Read OK
>>
>> U-Boot SPL 2013.10-openwrt5 (Nov 18 2014 - 19:54:01)
>> SPL: initializing NAND flash
>> SPL: checking U-Boot image
>> SPL: loading U-Boot to RAM
>> SPL: decompressing U-Boot with LZO
>> SPL: jumping to U-Boot
>>
>>
>> U-Boot 2013.10-openwrt5 (Nov 18 2014 - 19:54:01) P-2812HNU-Fx
>>
>> Board: ZyXEL P-2812HNU-Fx
>> SoC:   Lantiq VRX288 v1.2
>> CPU:   500 MHz
>> IO:250 MHz
>> BUS:   250 MHz
>> BOOT:  NAND
>> DRAM:  256 MiB
>> NAND:  128 MiB
>> *** Warning - bad CRC, using default environment
>>
>> In:serial
>> Out:   serial
>> Err:   serial
>> Net:   ltq-eth
>> Hit any key to stop autoboot:  0
>> Wrong Image Format for bootm command
>> ERROR: can't get kernel image!
>> P-2812HNU-Fx #
>>
>>
>> How can I get the information to make a proper .dts file for this
>> device ? The layout of the flash for the P-2812HNU-Fx has nothing to
>> do with this device.
>>
>>
>> ---
>>  AreaAddress  Length
>> ---
>> [0] Boot0x1024K
>> [1] Image 0 0x0010   10240K
>> [2] Image 1 0x00B0   10240K
>> [3] Configuration   0x01502048K
>> [4] Boot Params 0x01702048K
>> [5] Nvram   0x01901024K
>> [6] Cert    0x01A0   32768K
>> [7] EmergencyValue  0x03A06144K
>> [8] Configuration2  0x04002048K
>> [9] All area0x   67584K
>>
>> On Mon, Aug 29, 2016 at 10:49 PM, Mathias Kresin  wrote:
>>>
>>> 28.08.2016 13:24, Mathias Kresin:
>>>
>>>> Am 28.08.2016 um 12:15 schrieb Hauke Mehrtens:
>>>>>
>>>>> On 08/28/2016 10:31 AM, Mathias Kresin wrote:
>>>>>>
>>>>>> Am 27.08.2016 um 19:44 schrieb Juan Rios:
>>>>>>>
>>>>>>> I can load to memory using xmodem transfer and run but all I tried
>>>>>>> get
>>>>>>> locked without any output.
>>>>>
>>>>>
>>>>> Have you tried the kenrel with both serial interfaces? The SoC supports
>>>>> two and I do not know which on is used on your hardware.
>>>>>
>>>>> @Mathias is it normal that this does not work?
>>>>
>>>>
>>>> Mhh, I've missed that part of Juans mail. It's not clear to me what Juan
>>>> tried to load and run from ram.
>>>>
>>>> Loadx and run the kernel from ram is a brilliant idea. Albeit I've done
>>>> it dozen times with u-boot, I never considered doing the same with
>>>> brnboot.
>>>>
>>>> I might have some time later the day to give it a try.
>>>
>>>
>>> I couldn't manage to start an uncompressed LEDE kernel from ram. I've
>>> tried
>>> kernels with brncmdline and without. But the router immediately resets
>>> itself.
>>>
>>> Running the uncompressed recovery kernel from ram worked however.
>>>
>>> Mathias
>>>
>> ___
>> Lede-dev mailing list
>> Lede-dev@lists.infradead.org
>> http://lists.infradead.org/mailman/listinfo/lede-dev
>
>
>
> ___
> Lede-dev mailing list
> Lede-dev@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev