Re: [OpenWrt-Devel] Response to LEDE proposal/queries/mail?

2016-06-07 Thread Oswald Buddenhagen
On Tue, Jun 07, 2016 at 02:42:36PM +0200, Zoltan HERPAI wrote:
> May I ask you to point to which e-mail are you referring to? We are
> yet to see an official line from LEDE on what they want to see to
> happen in OpenWrt. 
>
i don't think you'll get anything more official than jow's mail from may
26. i'll freely admit that it's somewhat lacking regarding directly
actionable "strategic" items, but you guys gave no (public) indication
that you're even interested in an actual dialog at all. the statements
regarding the canceled email forwards don't exactly help, either
(seriously, who's supposed to buy that?!).

> The OpenWrt team
>
this way to communicate is part of the explicitly stated problems which
lede is trying to address (and failing at inception, but hey, let's get
over this tiny faux pas already ^^).
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] I've come round to your way of thinking

2016-05-26 Thread Oswald Buddenhagen
On Thu, May 26, 2016 at 12:38:42AM -0400, Daniel Curran-Dickinson wrote:
> I'm sorry [...]
>
no worries. :)

> despite how overly strong you come into this discussion.
>
yeah, i'm known for being not exactly the greatest diplomat. :}
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] lantiq: add support for ARV7506PW11 (Alice/O2 IAD 4421)

2016-05-19 Thread Oswald Buddenhagen
On Thu, May 19, 2016 at 06:19:35PM +0200, Mathias Kresin wrote:
> I found the pins to enter UART boot mode. Apply 3,3V to the right side
> of R65 and GND to the right side of R80.
>
:)

> R80 is partially hidden under the heatsink of the SoC.
> 
not in my case - clearly, the glueing of the heatsinks isn't exactly
precision work. in fact, only the crystal next to the ram stopped the
sink from sliding off entirely. :D

> 2016-05-18 23:00 GMT+02:00 Oswald Buddenhagen <oswald.buddenha...@gmx.de>:
> > i'll do that if you don't beat me to it (which you can easily do if you
> > plan to seriously work on this - beyond email, this is a limited weekend
> > project for me).
> 
> From zero to working image in just a weekend. That is indeed amazing.
> 
well, i didn't say *one* weekend. ;)
i spent easily 50 hours on that project, though probably i could have
pulled it off in 5 hours if i had known what i'm doing. now i know more
about wifi drivers, pci busses and devicetrees than i ever wanted or
needed to. :D

but i really didn't start from zero - the dts at
https://wiki.openwrt.org/toh/arcadyan/arv7506 is almost complete, even
if broken in a most sinister way. ^^

> > i think i also know why rfkill doesn't work: i forgot to change the
> > keycode when i decided to switch the key's usage from wps to rfkill.
> > (facepalm)
> 
> That's something where I've a lack of knowledge. Where does the
> keycodes come from?
> 
it's in the devicetree. i sent an updated patch. it's not tested,
though.

> In the meantime I've added support for this board to u-boot, switched
> from brnboot to uImage and to a custom partitions layout with a
> firmware partition of 8128 KByte. Means, your image shrinking patches
> aren't required any more.
> 
cool.

> I haven't had a closer look to the OpenWrt image, but what I've
> noticed so far, is a not lit up WLAN led when the wireless is enabled.
> Does it work for you?
> 
not out of the box, iirc. i configured it to netdev/wlan0/link+tx+rx,
which works fine. this shouldn't be necessary, so a board case should be
probably added to /target/linux/lantiq/base-files/etc/board.d/01_leds.
just amend my patch and add a footer mentioning your co-authorship.

> Do you plan to work further on this patch or do you consider your
> weekend project as finished.
> 
i'll happily hand it off at this point.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH v2] lantiq: add support for ARV7506PW11 (Alice/O2 IAD 4421)

2016-05-19 Thread Oswald Buddenhagen
Ethernet, WiFi, ADSL2+, and LEDs are fully functional.

Supporting the two TAE ports and SIP gateway was not attempted.

The firmware image needs to be kept below ~3.6MiB due to brnboot's dual
image magic. This is just enough for the above configuration plus
dropbear. Luci and other non-critical packages must be installed into
the jffs2 once the device has booted.

U-boot support was not attempted.

Signed-off-by: Oswald Buddenhagen <oswald.buddenha...@gmx.de>
---
 .../linux/lantiq/base-files/etc/board.d/02_network |   8 +
 .../etc/hotplug.d/firmware/10-rt2x00-eeprom|   2 +-
 target/linux/lantiq/dts/ARV7506PW11.dts| 213 +
 target/linux/lantiq/image/Makefile |   2 +
 target/linux/lantiq/xway/profiles/arv.mk   |  12 ++
 5 files changed, 236 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/lantiq/dts/ARV7506PW11.dts

diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network 
b/target/linux/lantiq/base-files/etc/board.d/02_network
index b27b802..1f06c26 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -39,6 +39,14 @@ ACMP252|GIGASX76X)
"4:lan:1" "3:lan:2" "2:lan:3" "1:lan:4" "5t@eth0"
;;
 
+# rtl8306g
+ARV7506PW11)
+   lan_mac=$(mtd_get_mac_binary board_config 22)
+   wan_mac=$(macaddr_add "$lan_mac" 1)
+   ucidef_add_switch "switch0" \
+   "4:lan:1" "3:lan:2" "2:lan:3" "1:lan:4" "5t@eth0"
+   ;;
+
 # ar8316
 ARV4519PW|ARV7510PW22|ARV7518PW|ARV752DPW22|ARV8539PW22)
ucidef_add_switch "switch0" \
diff --git 
a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom 
b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 5f1cb00..da10797 100644
--- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -35,7 +35,7 @@ case "$FIRMWARE" in
 "RT2860.eeprom" )
local board=$(lantiq_board_name)
case $board in
-   ARV7510PW22|ARV7519PW|ARV752DPW|ARV752DPW22|VGV7519)
+   ARV7506PW11|ARV7510PW22|ARV7519PW|ARV752DPW|ARV752DPW22|VGV7519)
rt2x00_eeprom_extract "board_config" 520 256 1
;;
ARV7525PW)
diff --git a/target/linux/lantiq/dts/ARV7506PW11.dts 
b/target/linux/lantiq/dts/ARV7506PW11.dts
new file mode 100644
index 000..1c38c88
--- /dev/null
+++ b/target/linux/lantiq/dts/ARV7506PW11.dts
@@ -0,0 +1,213 @@
+/dts-v1/;
+
+/include/ "danube.dtsi"
+
+/ {
+   model = "ARV7506PW11 - Alice/O2 IAD 4421";
+
+   chosen {
+   leds {
+   boot = 
+   failsafe = _red;
+   running = 
+
+   dsl = 
+   internet = 
+   wifi = 
+   };
+   };
+
+   memory@0 {
+   reg = <0x0 0x400>;
+   };
+
+   sram@1F00 {
+   vmmc@107000 {
+   status = "okay";
+   gpios = < 1 0>;
+   };
+   };
+
+   fpi@1000 {
+   localbus@0 {
+   nor-boot@0 {
+   compatible = "lantiq,nor";
+   bank-width = <2>;
+   reg = <0 0x0 0x80>;
+
+   partitions {
+   compatible = "fixed-partitions";
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   partition@0 {
+   label = "brnboot";
+   reg = <0x0 0x2>;
+   read-only;
+   };
+
+   partition@2 {
+   label = "stuff";
+   reg = <0x2 0x7>;
+   };
+
+   partition@9 {
+   label = "rootfs_data";
+   reg = <0x9 0x3B>;
+   };
+
+   partition@44 {
+   label = "firmware";
+   reg = <0x44 0x3B0

Re: [OpenWrt-Devel] [PATCH] lantiq: add support for ARV7506PW11 (Alice/O2 IAD 4421)

2016-05-18 Thread Oswald Buddenhagen
On Wed, May 18, 2016 at 01:19:59PM +0200, Mathias Kresin wrote:
> But I need to identify the boot_sel pins first. I have looked at it
> only briefly and was only able to identify one of the boot_sel pins:
> R77. Unfortunately this pin alone doesn't switch the SoC to UART mode.
> Did you found already the other pins?
> 
no, i didn't bother with analyzing the hardware beyond soft-probing the
gpios to find some led and button pins. the dts is a copy job from
the wiki (which in turn is "derived" from another dts), with a lot of
studying and trial and error to get the bogus parts out of it, and some
polishing and adjustments to recent changes.

you probably noticed that the bootloader is able to dump the dram
registers, which sounds like a nice perk.

> > +   partition@2 {
> > +   label = "stuff";
> > +   reg = <0x2 0x7>;
> > +   };
> 
> Please add the real layout here and use proper names for the partitions!
> 
well, i can do that, but the partitions are entirely meaningless in the
used setup.

> > +
> > +   partition@9 {
> > +   label = "rootfs_data";
> > +   reg = <0x9 0x3B>;
> > +   };
> > +
> > +   partition@44 {
> > +   label = "firmware";
> > +   reg = <0x44 0x3B>;
> > +   };
> 
> Assuming you're using the brnboot recovery to flash the firmware, this
> wont work. brnboot recovery writes alternating to both partitions and
> stores the current active one in the Primary Setting partition
> (0x8).
>
yes. i always first entered the bootloader console, set the active
partition to 0 (so it would overwrite 1), and only then booted the
recovery firmware.

i also had to disable the partition splitter which would use the few
kilobytes behind the image to create rootfs_data.

not a particularly smart setup in retrospect, but that's what the wiki
page maneuvered me into, and i didn't want to invest yet more time in
figuring out alternatives.

> My patch to use the current active partition as firmware partition
> was merged lately to OpenWrt.
>
i know, that's what i mentioned in the other patch.

> Have a look at the VGV7510KW22BRN.dts for reference.
> 
i'll do that if you don't beat me to it (which you can easily do if you
plan to seriously work on this - beyond email, this is a limited weekend
project for me).

i think i also know why rfkill doesn't work: i forgot to change the
keycode when i decided to switch the key's usage from wps to rfkill.
(facepalm)
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] lantiq: remove references to bogus lantiq, internal-clock

2016-05-18 Thread Oswald Buddenhagen
There is no such property. It was probably meant as the counterpart
to lantiq,external-clock, but the internal clock always exists anyway.

Signed-off-by: Oswald Buddenhagen <oswald.buddenha...@gmx.de>
---
 target/linux/lantiq/dts/ARV4518PWR01.dts | 8 
 target/linux/lantiq/dts/GIGASX76X.dts| 1 -
 2 files changed, 9 deletions(-)

diff --git a/target/linux/lantiq/dts/ARV4518PWR01.dts 
b/target/linux/lantiq/dts/ARV4518PWR01.dts
index 7dfdb6f..c8e76a7 100644
--- a/target/linux/lantiq/dts/ARV4518PWR01.dts
+++ b/target/linux/lantiq/dts/ARV4518PWR01.dts
@@ -4,12 +4,4 @@
 
 / {
model = "ARV4518PWR01 - SMC7908A-ISP";
-
-   fpi@1000 {
-
-   pci@E105400 {
-   lantiq,internal-clock;
-   };
-
-   };
 };
diff --git a/target/linux/lantiq/dts/GIGASX76X.dts 
b/target/linux/lantiq/dts/GIGASX76X.dts
index a43e4d4..cdf8e4a 100644
--- a/target/linux/lantiq/dts/GIGASX76X.dts
+++ b/target/linux/lantiq/dts/GIGASX76X.dts
@@ -89,7 +89,6 @@
 
pci@E105400 {
status = "okay";
-   lantiq,internal-clock;
gpio-reset = < 21 0>;
req-mask = <0x1>;
};
-- 
2.7.4.1.gb6fc189
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH 2/2] [RFC] lantiq: explicitly configure some pins as outputs

2016-05-18 Thread Oswald Buddenhagen
They clearly are meant to be, and the bootloader (presumably) sets them
up accordingly, but it's nicer to state it explicitly in the DT.

Entirely untested.

Signed-off-by: Oswald Buddenhagen <oswald.buddenha...@gmx.de>
---
 target/linux/lantiq/dts/ARV4520PW.dts| 1 +
 target/linux/lantiq/dts/BTHOMEHUBV2B.dts | 1 +
 target/linux/lantiq/dts/BTHOMEHUBV3A.dts | 1 +
 target/linux/lantiq/dts/BTHOMEHUBV5A.dts | 1 +
 target/linux/lantiq/dts/EASY50712.dts| 1 +
 target/linux/lantiq/dts/EASY50810.dts| 1 +
 6 files changed, 6 insertions(+)

diff --git a/target/linux/lantiq/dts/ARV4520PW.dts 
b/target/linux/lantiq/dts/ARV4520PW.dts
index 0320ce4..3672601 100644
--- a/target/linux/lantiq/dts/ARV4520PW.dts
+++ b/target/linux/lantiq/dts/ARV4520PW.dts
@@ -111,6 +111,7 @@
pci_rst {
lantiq,pins = "io21";
lantiq,open-drain = <0>;
+   lantiq,output = <1>;
lantiq,pull = <0>;
};
};
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts 
b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts
index 219c584..46f197c 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV2B.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV2B.dts
@@ -148,6 +148,7 @@
nand_cs1 {
lantiq,groups = "nand cs1";
lantiq,function = "ebu";
+   lantiq,output = <1>;
lantiq,open-drain = <0>;
lantiq,pull = <0>;
};
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts 
b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts
index 61746af..190d949 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV3A.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV3A.dts
@@ -111,6 +111,7 @@
nand_cs1 {
lantiq,groups = "nand cs1";
lantiq,function = "ebu";
+   lantiq,output = <1>;
lantiq,open-drain = <0>;
lantiq,pull = <0>;
};
diff --git a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts 
b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
index e62a18d..df0b59e 100644
--- a/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
+++ b/target/linux/lantiq/dts/BTHOMEHUBV5A.dts
@@ -104,6 +104,7 @@
lantiq,function = "ebu";
lantiq,open-drain = <0>;
lantiq,pull = <0>;
+   lantiq,output = <1>;
};
};
};
diff --git a/target/linux/lantiq/dts/EASY50712.dts 
b/target/linux/lantiq/dts/EASY50712.dts
index 39ba1f7..9df3da0 100644
--- a/target/linux/lantiq/dts/EASY50712.dts
+++ b/target/linux/lantiq/dts/EASY50712.dts
@@ -80,6 +80,7 @@
};
conf_out {
lantiq,pins = "io4", "io5", "io6"; /* 
stp */
+   lantiq,output = <1>;
lantiq,open-drain;
lantiq,pull = <0>;
};
diff --git a/target/linux/lantiq/dts/EASY50810.dts 
b/target/linux/lantiq/dts/EASY50810.dts
index 70d2ff5..b155118 100644
--- a/target/linux/lantiq/dts/EASY50810.dts
+++ b/target/linux/lantiq/dts/EASY50810.dts
@@ -80,6 +80,7 @@
};
conf_out {
lantiq,pins = "io4", "io5", "io6"; /* 
stp */
+   lantiq,output = <1>;
lantiq,open-drain;
lantiq,pull = <0>;
};
-- 
2.7.4.1.gb6fc189
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] [RFC] lantiq: disable a bunch of features not applicable to my box

2016-05-18 Thread Oswald Buddenhagen
- NAND/UBI support is completely irrelevant for my box, and for
  lantiq/Danube in general (IIRC). It appears to me that it would make
  sense to split it off from the xway target.
- My box has no USB port and no other sensible option to connect
  mass storage devices, so anything related to that makes no sense as
  well.
- Some stuff related to my boot configuration/partitioning. Some of it
  should be obsolete by now due to the recently added support for
  brnboot alternative image switching.
- foo & bar, i guess

I found no way to subtract features/kernel configs in device profiles,
hence this somewhat big hammer. This patch is obviously not meant for
upstreaming.
---
 target/linux/lantiq/config-4.4  | 11 +-
 target/linux/lantiq/xway/config-default | 39 -
 target/linux/lantiq/xway/target.mk  |  2 +-
 3 files changed, 20 insertions(+), 32 deletions(-)

diff --git a/target/linux/lantiq/config-4.4 b/target/linux/lantiq/config-4.4
index cf3ec47..3e39303 100644
--- a/target/linux/lantiq/config-4.4
+++ b/target/linux/lantiq/config-4.4
@@ -139,10 +139,10 @@ CONFIG_MTD_LANTIQ=y
 CONFIG_MTD_M25P80=y
 CONFIG_MTD_SPI_NOR=y
 CONFIG_MTD_SPLIT_BRNIMAGE_FW=y
-CONFIG_MTD_SPLIT_EVA_FW=y
+# CONFIG_MTD_SPLIT_EVA_FW is not set
 CONFIG_MTD_SPLIT_FIRMWARE=y
-CONFIG_MTD_SPLIT_TPLINK_FW=y
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
+# CONFIG_MTD_SPLIT_TPLINK_FW is not set
+# CONFIG_MTD_SPLIT_UIMAGE_FW is not set
 CONFIG_NEED_DMA_MAP_STATE=y
 CONFIG_NEED_PER_CPU_KM=y
 CONFIG_NO_GENERIC_PCI_IOPORT_MAP=y
@@ -170,11 +170,10 @@ CONFIG_PINCTRL=y
 CONFIG_PINCTRL_LANTIQ=y
 # CONFIG_PINCTRL_SINGLE is not set
 CONFIG_PINCTRL_XWAY=y
-CONFIG_PSB6970_PHY=y
+# CONFIG_PSB6970_PHY is not set
 # CONFIG_RCU_STALL_COMMON is not set
 CONFIG_RESET_CONTROLLER=y
-CONFIG_RTL8366RB_PHY=y
-CONFIG_RTL8366_SMI=y
+# CONFIG_RTL8366RB_PHY is not set
 CONFIG_SCHED_HRTICK=y
 # CONFIG_SCHED_INFO is not set
 # CONFIG_SCSI_DMA is not set
diff --git a/target/linux/lantiq/xway/config-default 
b/target/linux/lantiq/xway/config-default
index ae13f80..306fe8f 100644
--- a/target/linux/lantiq/xway/config-default
+++ b/target/linux/lantiq/xway/config-default
@@ -1,5 +1,5 @@
-CONFIG_ADM6996_PHY=y
-CONFIG_AR8216_PHY=y
+# CONFIG_ADM6996_PHY is not set
+# CONFIG_AR8216_PHY is not set
 # CONFIG_ARCH_HAS_SG_CHAIN is not set
 CONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=y
 CONFIG_ARCH_MIGHT_HAVE_PC_SERIO=y
@@ -23,7 +23,7 @@ CONFIG_HAVE_DEBUG_STACKOVERFLOW=y
 CONFIG_HAVE_DMA_CONTIGUOUS=y
 CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
 CONFIG_HZ_PERIODIC=y
-CONFIG_INPUT=y
+# CONFIG_INPUT is not set
 CONFIG_INPUT_EVDEV=y
 CONFIG_INPUT_POLLDEV=y
 CONFIG_IRQCHIP=y
@@ -33,40 +33,29 @@ CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_LIBFDT=y
 CONFIG_LZO_COMPRESS=y
 CONFIG_LZO_DECOMPRESS=y
-CONFIG_MTD_NAND=y
-CONFIG_MTD_NAND_ECC=y
-CONFIG_MTD_NAND_PLATFORM=y
-CONFIG_MTD_NAND_XWAY=y
+# CONFIG_MTD_NAND is not set
 # CONFIG_MTD_PHYSMAP_OF is not set
-CONFIG_MTD_SPLIT_UIMAGE_FW=y
-CONFIG_MTD_UBI=y
-CONFIG_MTD_UBI_BEB_LIMIT=20
-CONFIG_MTD_UBI_BLOCK=y
-# CONFIG_MTD_UBI_FASTMAP is not set
-# CONFIG_MTD_UBI_GLUEBI is not set
-CONFIG_MTD_UBI_WL_THRESHOLD=4096
+# CONFIG_MTD_SPLIT_UIMAGE_FW is not set
+# CONFIG_MTD_UBI is not set
 CONFIG_NLS=y
 # CONFIG_NO_IOPORT_MAP is not set
 CONFIG_OF_ADDRESS_PCI=y
 # CONFIG_RCU_STALL_COMMON is not set
 CONFIG_RTL8306_PHY=y
-CONFIG_RTL8366S_PHY=y
-CONFIG_RTL8367B_PHY=y
-CONFIG_RTL8367_PHY=y
+# CONFIG_RTL8366S_PHY is not set
+# CONFIG_RTL8367B_PHY is not set
+# CONFIG_RTL8367_PHY is not set
 CONFIG_SPI=y
 CONFIG_SPI_LANTIQ=y
 CONFIG_SPI_MASTER=y
 CONFIG_SYS_SUPPORTS_MIPS16=y
-CONFIG_UBIFS_FS=y
-CONFIG_UBIFS_FS_ADVANCED_COMPR=y
-CONFIG_UBIFS_FS_LZO=y
-# CONFIG_UBIFS_FS_XZ is not set
-CONFIG_UBIFS_FS_ZLIB=y
-CONFIG_USB=y
-CONFIG_USB_COMMON=y
+# CONFIG_UBIFS_FS is not set
+# CONFIG_USB is not set
 # CONFIG_USB_EHCI_HCD is not set
-CONFIG_USB_SUPPORT=y
 # CONFIG_USB_UHCI_HCD is not set
 # CONFIG_XRX200_PHY_FW is not set
 CONFIG_ZLIB_DEFLATE=y
 CONFIG_ZLIB_INFLATE=y
+# CONFIG_EFI_PARTITION is not set
+# CONFIG_MSDOS_PARTITION is not set
+# CONFIG_MTD_SPLIT_SQUASHFS_ROOT is not set
diff --git a/target/linux/lantiq/xway/target.mk 
b/target/linux/lantiq/xway/target.mk
index b9d4a0f..8c72319 100644
--- a/target/linux/lantiq/xway/target.mk
+++ b/target/linux/lantiq/xway/target.mk
@@ -1,7 +1,7 @@
 ARCH:=mips
 SUBTARGET:=xway
 BOARDNAME:=XWAY
-FEATURES:=squashfs atm mips16 nand ubifs ramdisk
+FEATURES:=squashfs atm mips16 ramdisk
 CPU_TYPE:=34kc
 CPU_SUBTYPE:=dsp
 
-- 
2.7.4.1.gb6fc189
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] lantiq: add support for ARV7506PW11 (Alice/O2 IAD 4421)

2016-05-18 Thread Oswald Buddenhagen
Ethernet, WiFi, ADSL2+, and LEDS are fully functional.

The RFkill switch doesn't appear to be correctly configured.

Supporting the two TAE ports and SIP gateway was not attempted.

The firmware image needs to be kept below ~3.6MiB due to brnboot's dual
image magic. This is just enough for the above configuration plus
dropbear. Luci and other non-critical packages must be installed into
the jffs2 once the device has booted.

U-boot support was not attempted.

Signed-off-by: Oswald Buddenhagen <oswald.buddenha...@gmx.de>
---
 .../linux/lantiq/base-files/etc/board.d/02_network |   8 +
 .../etc/hotplug.d/firmware/10-rt2x00-eeprom|   2 +-
 target/linux/lantiq/dts/ARV7506PW11.dts| 213 +
 target/linux/lantiq/image/Makefile |   2 +
 target/linux/lantiq/xway/profiles/arv.mk   |  12 ++
 5 files changed, 236 insertions(+), 1 deletion(-)
 create mode 100644 target/linux/lantiq/dts/ARV7506PW11.dts

diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network 
b/target/linux/lantiq/base-files/etc/board.d/02_network
index b27b802..1f06c26 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -39,6 +39,14 @@ ACMP252|GIGASX76X)
"4:lan:1" "3:lan:2" "2:lan:3" "1:lan:4" "5t@eth0"
;;
 
+# rtl8306g
+ARV7506PW11)
+   lan_mac=$(mtd_get_mac_binary board_config 22)
+   wan_mac=$(macaddr_add "$lan_mac" 1)
+   ucidef_add_switch "switch0" \
+   "4:lan:1" "3:lan:2" "2:lan:3" "1:lan:4" "5t@eth0"
+   ;;
+
 # ar8316
 ARV4519PW|ARV7510PW22|ARV7518PW|ARV752DPW22|ARV8539PW22)
ucidef_add_switch "switch0" \
diff --git 
a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom 
b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 5f1cb00..da10797 100644
--- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -35,7 +35,7 @@ case "$FIRMWARE" in
 "RT2860.eeprom" )
local board=$(lantiq_board_name)
case $board in
-   ARV7510PW22|ARV7519PW|ARV752DPW|ARV752DPW22|VGV7519)
+   ARV7506PW11|ARV7510PW22|ARV7519PW|ARV752DPW|ARV752DPW22|VGV7519)
rt2x00_eeprom_extract "board_config" 520 256 1
;;
ARV7525PW)
diff --git a/target/linux/lantiq/dts/ARV7506PW11.dts 
b/target/linux/lantiq/dts/ARV7506PW11.dts
new file mode 100644
index 000..bb9ffd4
--- /dev/null
+++ b/target/linux/lantiq/dts/ARV7506PW11.dts
@@ -0,0 +1,213 @@
+/dts-v1/;
+
+/include/ "danube.dtsi"
+
+/ {
+   model = "ARV7506PW11 - Alice/O2 IAD 4421";
+
+   chosen {
+   leds {
+   boot = 
+   failsafe = _red;
+   running = 
+
+   dsl = 
+   internet = 
+   wifi = 
+   };
+   };
+
+   memory@0 {
+   reg = <0x0 0x400>;
+   };
+
+   sram@1F00 {
+   vmmc@107000 {
+   status = "okay";
+   gpios = < 1 0>;
+   };
+   };
+
+   fpi@1000 {
+   localbus@0 {
+   nor-boot@0 {
+   compatible = "lantiq,nor";
+   bank-width = <2>;
+   reg = <0 0x0 0x80>;
+
+   partitions {
+   compatible = "fixed-partitions";
+   #address-cells = <1>;
+   #size-cells = <1>;
+
+   partition@0 {
+   label = "brnboot";
+   reg = <0x0 0x2>;
+   read-only;
+   };
+
+   partition@2 {
+   label = "stuff";
+   reg = <0x2 0x7>;
+   };
+
+   partition@9 {
+   label = "rootfs_data";
+   reg = <0x9 0x3B>;
+   };
+
+   partition@44 {
+   label = "firmware";
+   

Re: [OpenWrt-Devel] [PATCH] lantiq: fix brnImage build

2016-04-23 Thread Oswald Buddenhagen
Mathias Kresin  kresin.me> writes:

> Use the kernel with the appended dtb as base, otherwise the kernel will
> panic with "no dtb found".
> 
indeed. confirmed to work now.

(and i'll freely admit that i failed to figure out how that appended image
ends up in the symbols __dtb_start/__dtb_end (the latter in particular) ...
:})

> Signed-off-by: Mathias Kresin  kresin.me>
> ---
>  target/linux/lantiq/image/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/linux/lantiq/image/Makefile
b/target/linux/lantiq/image/Makefile
> index c3cb48a..e63c134 100644
> --- a/target/linux/lantiq/image/Makefile
> +++ b/target/linux/lantiq/image/Makefile
>  -37,7 +37,7  define PatchKernelLzma
>  endef
> 
>  define MkBrnImage
> - mkbrncmdline -i $(KDIR)/vmlinux-$(5) -o $(KDIR)/vmlinux-$(5)-brn
BRN-BOOT $(7)
> + mkbrncmdline -i $(KDIR)/vmlinux-$(5).tmp -o $(KDIR)/vmlinux-$(5)-brn
BRN-BOOT $(7)
>   $(call 
> CompressLzma,$(KDIR)/vmlinux-$(5)-brn,$(KDIR)/vmlinux-$(5)-brn.lzma)
>   mkbrnimg -s $(1) -m $(2) -p $(3) -o $(4) $(KDIR)/vmlinux-$(5)-brn.lzma
$(KDIR)/root.$(6)
>  endef
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel