Re: [LEDE-DEV] [PATCH 0/9] lantiq: VGV7519 fixes

2016-11-09 Thread Mathias Kresin

09.11.2016 23:09, Eddi De Pieri:

Hi  Mathias,

Just tried to boot a ramimage from tftp on vgv7519:

On my board:
Bytes transferred = 7084442 (6c199a hex)
## Booting kernel from Legacy Image at 8100 ...
   Image Name:   MIPS OpenWrt Linux-3.10.49
   Created:  2014-11-11  17:40:00 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:7084378 Bytes = 6.8 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error
7 - must RESET b
ROM VER: 1.0.5
CFG 01

Any idea on how to fix this issue?
Does you see it on other board?


Yes I see this on other lantiq boards as well if the kernel gets to big.

The memory of lantiq devices starts at 0x8000. The default 
loadaddress in the env of your bootloader is 0x8100 (16MByte 
boundary). Which means the compressed kernel is loaded to 0x8100 by 
u-boots tftp.


During decompression the kernel is written to 0x8000 by u-boot. If 
the decompressed kernel is bigger than 0x100 bytes, it overwrites 
the compress kernel still in memory and not yet completely decompressed. 
The result is the error messages you are seeing.


The solution is either to shrink your kernel+initramfs by enabling LZMA 
compression for the initramfs or to load the kernel image to the 32MByte 
boundary for example:


  tftpboot 0x8200 image.bin; bootm 0x8200

Mathias

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


Re: [LEDE-DEV] [PATCH 0/9] lantiq: VGV7519 fixes

2016-11-09 Thread Eddi De Pieri
Hi  Mathias,

Just tried to boot a ramimage from tftp on vgv7519:

On my board:
Bytes transferred = 7084442 (6c199a hex)
## Booting kernel from Legacy Image at 8100 ...
   Image Name:   MIPS OpenWrt Linux-3.10.49
   Created:  2014-11-11  17:40:00 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:7084378 Bytes = 6.8 MiB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... LZMA: uncompress or overwrite error
7 - must RESET b
ROM VER: 1.0.5
CFG 01

Any idea on how to fix this issue?
Does you see it on other board?

Regards

On Thu, May 26, 2016 at 11:07 PM, Mathias Kresin  wrote:
> Beside cleaning up the device tree source file, this patch series fixes
> the following issues:
>
> - second usb doesn't work
> - switch not recognized by swconfig/no vlans
> - no working UART bootable u-boot available
> - only binary u-boot available/self compiled u-boot to big for partition
>
> The last remaining issue that couldn't be fixed so far, are three leds
> which do not blink on network tx/rx with the R01 revision of the
> VGV7519.
>
> This is related to a known bug of PEF 7071 v1.3 firmware. The firmware
> counts the packages but doesn't trigger the led. To workaround the
> issue it would be required to transfer control of the leds to the
> switch by enabling the LED Externally Controlled Mode (ECM) of the phys.
>
> All patches have been tested during the last weeks by the OpenWrt Forum
> users pe0fko and especially Timeless with both revision of the VGV7519.
>
> Mathias Kresin (9):
>   lantiq: VGV7519 - remove/merge redundant parts in dts
>   lantiq: VGV7519 - cleanup pinmux configuration
>   lantiq: VGV7519 - add second usb port
>   lantiq: VGV7519 - add vlan support
>   lantiq: VGV7519 - get mac address from board_config partition
>   lantiq: VGV7519 - fix brn partition layout
>   uboot-lantiq: vrx200 - add support for dual nor flash
>   uboot-lantiq: vrx200 - lzma compress gphy firmware
>   uboot-lantiq: Add Arcadyan VGV7519 support
>
>  package/boot/uboot-lantiq/Makefile |  35 ++-
>  ...014-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch |  74 --
>  .../0021-MIPS-vrx200-add-NAND-SPL-support.patch|   2 +-
>  ...PS-add-board-support-for-Arcadyan-VGV7519.patch | 288 
> +
>  .../linux/lantiq/base-files/etc/board.d/02_network |   3 +-
>  target/linux/lantiq/dts/VGV7519.dtsi   |  83 +++---
>  target/linux/lantiq/dts/VGV7519BRN.dts |  65 +++--
>  target/linux/lantiq/dts/VGV7519NOR.dts |  18 --
>  8 files changed, 450 insertions(+), 118 deletions(-)
>  create mode 100644 
> package/boot/uboot-lantiq/patches/0114-MIPS-add-board-support-for-Arcadyan-VGV7519.patch
>
> --
> 1.9.1
>

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


[LEDE-DEV] [PATCH 0/9] lantiq: VGV7519 fixes

2016-05-26 Thread Mathias Kresin
Beside cleaning up the device tree source file, this patch series fixes
the following issues:

- second usb doesn't work
- switch not recognized by swconfig/no vlans
- no working UART bootable u-boot available
- only binary u-boot available/self compiled u-boot to big for partition

The last remaining issue that couldn't be fixed so far, are three leds
which do not blink on network tx/rx with the R01 revision of the
VGV7519.

This is related to a known bug of PEF 7071 v1.3 firmware. The firmware
counts the packages but doesn't trigger the led. To workaround the
issue it would be required to transfer control of the leds to the
switch by enabling the LED Externally Controlled Mode (ECM) of the phys.

All patches have been tested during the last weeks by the OpenWrt Forum
users pe0fko and especially Timeless with both revision of the VGV7519.

Mathias Kresin (9):
  lantiq: VGV7519 - remove/merge redundant parts in dts
  lantiq: VGV7519 - cleanup pinmux configuration
  lantiq: VGV7519 - add second usb port
  lantiq: VGV7519 - add vlan support
  lantiq: VGV7519 - get mac address from board_config partition
  lantiq: VGV7519 - fix brn partition layout
  uboot-lantiq: vrx200 - add support for dual nor flash
  uboot-lantiq: vrx200 - lzma compress gphy firmware
  uboot-lantiq: Add Arcadyan VGV7519 support

 package/boot/uboot-lantiq/Makefile |  35 ++-
 ...014-MIPS-add-support-for-Lantiq-XWAY-SoCs.patch |  74 --
 .../0021-MIPS-vrx200-add-NAND-SPL-support.patch|   2 +-
 ...PS-add-board-support-for-Arcadyan-VGV7519.patch | 288 +
 .../linux/lantiq/base-files/etc/board.d/02_network |   3 +-
 target/linux/lantiq/dts/VGV7519.dtsi   |  83 +++---
 target/linux/lantiq/dts/VGV7519BRN.dts |  65 +++--
 target/linux/lantiq/dts/VGV7519NOR.dts |  18 --
 8 files changed, 450 insertions(+), 118 deletions(-)
 create mode 100644 
package/boot/uboot-lantiq/patches/0114-MIPS-add-board-support-for-Arcadyan-VGV7519.patch

-- 
1.9.1


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