Re: [OpenWrt-Devel] [PATCH] image: default block size for squashfs
Where is squashfs ever necessary for initramfs? bcm53xx/image. The ubinize is invoked for any fs (initramfs, squashfs). And, in turn, in ubinize.conf the root.squashfs is reffered. So, if just ask to build initramfs (without any squash, etc.) it will invoke squashing, which would fail without default parameter. -- Alexey ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] comgt: add ncm proto support
Hi Jamie, On Thu, Oct 30, 2014 at 12:58:40PM +0200, Matti Laakso wrote: Hi Sami, Using John's version: config interface 'wan' option proto 'wwan' option apn 'opengate' # option device '/dev/cdc-wdm0' (with or without commenting this) Does absolutely nothing, nothing in logread... However now when using config interface 'wan' option proto 'ncm' option apn 'opengate' option device '/dev/ttyUSB1' I believe that device should be /dev/cdc-wdm0 also here, at least when using huawei_cdc_ncm. The /dev/ttyUSBx terminals created by the option driver do not necessarily support all necessary AT-commands. Also, (at least when using proto ncm) you need to specify in addition option ifname wwan0 That wasn't enough to get it to find the device for me for some reason. The following change to proto_ncm_setup does make it work: echo ncm[$$] Connected, starting DHCP - proto_init_update * 1 + proto_init_update wwan0 1 proto_send_update $interface For bringing the interface down the control device can't be found. The following change in proto_ncm_teardown makes that work: json_get_vars device + + device=/dev/ttyUSB0 echo ncm[$$] Stopping network With the above two changes in place this all works fine. I don't know enough about how this is all meant to work to know why this is needed or why those configuration values are not making it to where they need to be. I suspect that the call to json_load $(cat /etc/gcom/ncm.json) in ncm.sh causes the interface information to get lost, so that subsequent json_* calls no longer work correctly. We should somehow unload ncm.json after the necessary AT-commands are read, and then restore normal interface information. Or can we read ncm.json into a separate namespace or something? Maybe Felix or Steven could give some advice? Matti ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] kernel: Use defconfig instead of full fledged kernel configuration
On 2014-11-07 11:58, Maxime Ripard wrote: Rely on the Kconfig defconfig mechanism to fill all the missing options, instead of needing to set them all in the kernel configurations like what was previously done. This will allow to trim down a lot the configuration files, avoid carrying unused configuration options and preserve the developpers mental health. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com I think this is a very good idea. Did you verify on all relevant architectures that the resulting kernel config stays the same with this change? Thanks, - Felix ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH] 6in4: detect curl and busybox wget
b52053b 6in4: https support for he.net tunnel api introduced HTTPS support using wget. The busybox version of wget, however, doesn't support the -V option, thus poluting logfiles with a full invalid-parameter-output. Redirect stderr to fix that. As libcurl and curl support selecting the SSL library of your choice, also add support for curl which is more commonly used on OpenWrt than real wget which needs libopenssl. Also make sure to respect SSL_CERT_DIR and increase timeouts. Signed-off-by: Daniel Golle dan...@makrotopia.org --- package/network/ipv6/6in4/files/6in4.sh | 35 + 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/package/network/ipv6/6in4/files/6in4.sh b/package/network/ipv6/6in4/files/6in4.sh index 7ffd40d..f639a5d 100755 --- a/package/network/ipv6/6in4/files/6in4.sh +++ b/package/network/ipv6/6in4/files/6in4.sh @@ -67,23 +67,42 @@ proto_6in4_setup() { [ -n $updatekey ] password=$updatekey local http=http - local wget_opts=-qO/dev/null - if wget --version | grep -qF +https; then + local urlget=wget + local urlget_opts=-qO/dev/stdout + local ca_path=${SSL_CERT_DIR-/etc/ssl/certs} + + if [ -n $(which curl) ]; then + urlget=curl + urlget_opts=-s -S + if curl -V | grep Protocols: | grep -qF https; then + http=https + urlget_opts=$urlget_opts --capath $ca_path + fi + fi + if [ $http = http ] + wget --version 21 | grep -qF +https; then + urlget=wget + urlget_opts=-qO/dev/stdout --ca-directory=$ca_path http=https - [ -z $(find ${SSL_CERT_DIR-/etc/ssl/certs} -name *.0 2/dev/null) ] { - wget_opts=$wget_opts --no-check-certificate - } fi + [ $http = https -a -z $(find $ca_path -name *.0 2/dev/null) ] { + if [ $urlget = curl ]; then + urlget_opts=$urlget_opts -k + else + urlget_opts=$urlget_opts --no-check-certificate + fi + } local url=$http://ipv4.tunnelbroker.net/nic/update?username=$usernamepassword=$passwordhostname=$tunnelid; local try=0 local max=3 while [ $((++try)) -le $max ]; do - ( exec wget $wget_opts $url 2/dev/null ) + ( exec $urlget $urlget_opts $url | logger -t $link ) local pid=$! - ( sleep 5; kill $pid 2/dev/null ) + ( sleep 20; kill $pid 2/dev/null ) wait $pid break + sleep 20; done } } @@ -93,7 +112,7 @@ proto_6in4_teardown() { } proto_6in4_init_config() { - no_device=1 + no_device=1 available=1 proto_config_add_string ipaddr -- 2.1.3 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] ar8216 patch series
On 09.11.2014 00:19, Heiner Kallweit wrote: Am 08.11.2014 um 13:49 schrieb Dirk Neukirchen: On 31.10.2014 21:46, Heiner Kallweit wrote: Patch series adds more abstraction to the driver, adds smaller improvements and fixes an issue with kernels = 3.14. Ticket 17800: With kernel 3.14 sometimes ports operate at 10/half only This patch series works for me on: TP-LINK TL-WDR4300 ( ar71xx + AR8327v2) TP-LINK TL-WDR4900 (mpc85xx + AR8327v4) I'd appreciate if others with non-AR8327 switches supported by the ar8216 driver test this patch series. Rgds, Heiner I was testing this series on a TP-LINK TL-WDR3600 ( ar71xx + AR8327v2) but with default kernel (3.10.58). - as I understand this is supposed to work too I encountered an error: WAN (eth0.2) does not work. (LAN seems fine) The dmesg seems to be identical between patched+unpatched. Both list switch0: Atheros AR8327 rev. 2 switch registered on ag71xx-mdio.0 ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd033, driver=Atheros AR8216/AR8236/AR8316] eth0: Atheros AG71xx at 0xb900, irq 4, mode:RGMII Dirk, here come updated versions of patches 3-5 from the series. I'd appreciate if you could test the updated series. changes: patch 3|4: keep phy_fixup callback closer to the original fixup code patch 5: less intrusive, doesn't touch advertising Regards, Heiner I tested your updated series. TP-Link WDR3600 ( ar71xx + AR8327v2) WAN is working again Additionally I tested your series on a Sitecom WLR8100 ( ar71xx + AR8337v2) - it works with 3.10.58 there too ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 1/5] brcm63xx: Add DT support for AGPF-S0
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- diff --git a/target/linux/brcm63xx/dts/agpf-s0.dts b/target/linux/brcm63xx/dts/agpf-s0.dts new file mode 100644 index 000..9d66b89 --- /dev/null +++ b/target/linux/brcm63xx/dts/agpf-s0.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ bcm6358.dtsi + +/ { + model = Pirelli Alice Gate AGPF-S0; + compatible = pirelli,agpf-s0, brcm,bcm6358; +}; + +pflash { + status = ok; + + linux,part-probe = bcm63xxpart; + + cfe@0 { + label = CFE; + reg = 0x00 0x02; + read-only; + }; + + linux@2 { + label = linux; + reg = 0x02 0xfc; + }; + + nvram@fe { + label = nvram; + reg = 0xfe 0x02; + }; +}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index b7789cf..c67e9be 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -288,9 +288,6 @@ define Image/Build $(call Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2,OpenWRT-$(REVISION)) # Inventel Livebox $(call Image/Build/RedBoot,livebox) - # Pirelli Alice Gate VoIP 2 Plus Wi-Fi AGPF-S0 - $(call Image/Build/CFEAGPF,$(1),AGPF-S0,6358,0x2,AGV2+W-cfe) - $(call Image/Build/CFEAGPF,$(1),AGPF-S0,6358,0x2,AGV2+W) # Pirelli A226G $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x1,A226G-cfe) $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x1,A226G) @@ -388,6 +385,8 @@ $(eval $(call CfeImageDTB,HG553,hg553,HW553,6358,HG553,EchoLife_HG553,--image-of $(eval $(call CfeImageDTB,HG556a_AB,hg556a-a,HW556,6358,HG556a_A,EchoLife_HG556a,--image-offset 0x2 --block-size 0x1 --tag-version 8)) $(eval $(call CfeImageDTB,HG556a_AB,hg556a-b,HW556,6358,HG556a_B,EchoLife_HG556a,--image-offset 0x2 --block-size 0x2 --tag-version 8)) $(eval $(call CfeImageDTB,HG556a_C,hg556a-c,HW556,6358,HG556a_C,EchoLife_HG556a,--image-offset 0x2 --block-size 0x2 --tag-version 8)) +# Pirelli AGPF-S0 +$(eval $(call CfeImageDTB,AGPF_S0,agpf-s0,AGPF-S0,6358,AGV2+W,,--block-size 0x2 --image-offset 0x2 --signature2 IMAGE --tag-version 8)) # T-Com Speedport W 500V $(eval $(call CfeImageDTB,SPW500V,spw500v,96348GW,6348,SPW500V)) # Tecom GW6000 diff --git a/target/linux/brcm63xx/profiles/pirelli.mk b/target/linux/brcm63xx/profiles/pirelli.mk new file mode 100644 index 000..1ae8fbc --- /dev/null +++ b/target/linux/brcm63xx/profiles/pirelli.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/AGPF_S0 + NAME:=Pirelli AGPF-S0 + PACKAGES:=kmod-b43 wpad-mini\ + kmod-usb2 kmod-usb-ohci +endef +define Profile/AGPF_S0/Description + Package set optimized for AGPF-S0. +endef +$(eval $(call Profile,AGPF_S0)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 2/5] brcm63xx: Add DT support for A226G/M
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- diff --git a/target/linux/brcm63xx/dts/dwv-s0.dts b/target/linux/brcm63xx/dts/dwv-s0.dts new file mode 100644 index 000..002d59b --- /dev/null +++ b/target/linux/brcm63xx/dts/dwv-s0.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ bcm6358.dtsi + +/ { + model = Pirelli A226G/M; + compatible = pirelli,dwv-s0, brcm,bcm6358; +}; + +pflash { + status = ok; + + linux,part-probe = bcm63xxpart; + + cfe@0 { + label = CFE; + reg = 0x00 0x02; + read-only; + }; + + linux@2 { + label = linux; + reg = 0x02 0xfc; + }; + + nvram@fe { + label = nvram; + reg = 0xfe 0x02; + }; +}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index c67e9be..fccdf68 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -71,16 +71,6 @@ define Image/Build/ZYXCFEDTB rm -f $(BIN_DIR)/openwrt-$(5)-$(1).tmp endef -define Image/Build/CFEAGPF - # Generate the tagged image - $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \ - --output $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin \ - --boardid $(2) --chipid $(3) --entry $(LOADADDR) \ - --load-addr $(LOADADDR) --tag-version 8 \ - --signature2 IMAGE --block-size 0x2 \ - --image-offset $(4) --info1 -$(call Image/LimitName16,$(5)) --info2 $(1) -endef - define Image/Build/RG100A # Generate the tagged image $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \ @@ -288,13 +278,6 @@ define Image/Build $(call Image/Build/CFE,$(1),F@ST2704V2,6328,F@ST2704V2,OpenWRT-$(REVISION)) # Inventel Livebox $(call Image/Build/RedBoot,livebox) - # Pirelli A226G - $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x1,A226G-cfe) - $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x1,A226G) - - # Pirelli A226M - $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x2,A226M-cfe) - $(call Image/Build/CFEAGPF,$(1),DWV-S0,6358,0x2,A226M) # RG100A,DB120 etc. $(call Image/Build/RG100A,$(1),96358VW2,6358,0x2,RG100A_DB120) @@ -387,6 +370,9 @@ $(eval $(call CfeImageDTB,HG556a_AB,hg556a-b,HW556,6358,HG556a_B,EchoLife_HG556a $(eval $(call CfeImageDTB,HG556a_C,hg556a-c,HW556,6358,HG556a_C,EchoLife_HG556a,--image-offset 0x2 --block-size 0x2 --tag-version 8)) # Pirelli AGPF-S0 $(eval $(call CfeImageDTB,AGPF_S0,agpf-s0,AGPF-S0,6358,AGV2+W,,--block-size 0x2 --image-offset 0x2 --signature2 IMAGE --tag-version 8)) +# Pirelli A226G/M +$(eval $(call CfeImageDTB,A226G,dwv-s0,DWV-S0,6358,A226G,,--block-size 0x2 --image-offset 0x1 --signature2 IMAGE --tag-version 8)) +$(eval $(call CfeImageDTB,A226M,dwv-s0,DWV-S0,6358,A226M,,--block-size 0x2 --image-offset 0x2 --signature2 IMAGE --tag-version 8)) # T-Com Speedport W 500V $(eval $(call CfeImageDTB,SPW500V,spw500v,96348GW,6348,SPW500V)) # Tecom GW6000 diff --git a/target/linux/brcm63xx/patches-3.14/370-bcm63xx-add-of_board_ids-for-all-supported-boards.patch b/target/linux/brcm63xx/patches-3.14/370-bcm63xx-add-of_board_ids-for-all-supported-boards.patch index a997212..0423fe5 100644 --- a/target/linux/brcm63xx/patches-3.14/370-bcm63xx-add-of_board_ids-for-all-supported-boards.patch +++ b/target/linux/brcm63xx/patches-3.14/370-bcm63xx-add-of_board_ids-for-all-supported-boards.patch @@ -141,7 +141,7 @@ Subject: [PATCH 48/48] MIPS: BCM63XX: add of_board_ids for all supported boards static struct board_info __initdata board_DWVS0 = { .name = DWV-S0, -+ .of_board_id= pirelli,a226g, ++ .of_board_id= pirelli,dwv-s0, .expected_cpu_id= 0x6358, .has_enet0 = 1, diff --git a/target/linux/brcm63xx/profiles/pirelli.mk b/target/linux/brcm63xx/profiles/pirelli.mk index 1ae8fbc..d81ecca 100644 --- a/target/linux/brcm63xx/profiles/pirelli.mk +++ b/target/linux/brcm63xx/profiles/pirelli.mk @@ -5,6 +5,25 @@ # See /LICENSE for more information. # +define Profile/A226G + NAME:=Pirelli A226G + PACKAGES:=kmod-b43 wpad-mini\ + kmod-usb2 kmod-usb-ohci +endef +define Profile/A226G/Description + Package set optimized for A226G. +endef +$(eval $(call Profile,A226G)) + +define Profile/A226M + NAME:=Pirelli A226M + PACKAGES:=kmod-usb2 kmod-usb-ohci +endef +define Profile/A226M/Description + Package set optimized for A226M. +endef +$(eval $(call Profile,A226M)) + define Profile/AGPF_S0 NAME:=Pirelli AGPF-S0 PACKAGES:=kmod-b43 wpad-mini\ ___ openwrt-devel mailing list
[OpenWrt-Devel] [PATCH 3/5] brcm63xx: Add DT support for RG100A
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- diff --git a/target/linux/brcm63xx/dts/rg100a.dts b/target/linux/brcm63xx/dts/rg100a.dts new file mode 100644 index 000..4349376 --- /dev/null +++ b/target/linux/brcm63xx/dts/rg100a.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ bcm6358.dtsi + +/ { + model = Alcatel RG100A; + compatible = brcm,bcm96358vw2, brcm,bcm6358; +}; + +pflash { + status = ok; + + linux,part-probe = bcm63xxpart; + + cfe@0 { + label = CFE; + reg = 0x00 0x02; + read-only; + }; + + linux@2 { + label = linux; + reg = 0x02 0xfc; + }; + + nvram@fe { + label = nvram; + reg = 0xfe 0x02; + }; +}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index fccdf68..3106a46 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -71,15 +71,6 @@ define Image/Build/ZYXCFEDTB rm -f $(BIN_DIR)/openwrt-$(5)-$(1).tmp endef -define Image/Build/RG100A - # Generate the tagged image - $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \ - --output $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin \ - --boardid $(2) --chipid $(3) --entry $(LOADADDR) \ - --load-addr $(LOADADDR) --block-size 0x2 \ - --image-offset $(4) --info1 -$(call Image/LimitName16,$(5)) --info2 $(1) -endef - define Image/Build/RedBoot cp $(KDIR)/vmlinux.elf $(BIN_DIR)/openwrt-$(1)-vmlinux.elf gzip -9 -c $(KDIR)/vmlinux $(KDIR)/vmlinux.bin.gz @@ -279,9 +270,6 @@ define Image/Build # Inventel Livebox $(call Image/Build/RedBoot,livebox) - # RG100A,DB120 etc. - $(call Image/Build/RG100A,$(1),96358VW2,6358,0x2,RG100A_DB120) - # Telsey CPVA642-type (e.g. CPA-ZNTE60T) $(call Image/Build/CFE,$(1),CPVA642,6358,CPA-ZNTE60T,,--signature Telsey Tlc,--signature2 99.99.999,--second-image-flag 0) @@ -336,6 +324,8 @@ $(eval $(call CfeImageDTB,96368MVWG,bcm96368MVWG,96368MVWG,6368,96368MVWG-generi $(eval $(call CfeImageDTB,A4001N,a4001n,96328dg2x2,6328,A4001N,,--pad 8)) # ADB P.DG A4001N1 $(eval $(call CfeImageDTB,A4001N1,a4001n1,963281T_TEF,6328,A4001N1,,--pad 8)) +# Alcatel RG100A +$(eval $(call CfeImageDTB,RG100A,rg100a,96358VW2,6358,RG100A,,--block-size 0x2 --image-offset 0x2)) # Asmax AR 1004g $(eval $(call CfeImageDTB,AR1004G,ar1004g,96348GW-10,6348,AR1004G)) # Comtrend AR-5381u diff --git a/target/linux/brcm63xx/profiles/alcatel.mk b/target/linux/brcm63xx/profiles/alcatel.mk new file mode 100644 index 000..ec93a19 --- /dev/null +++ b/target/linux/brcm63xx/profiles/alcatel.mk @@ -0,0 +1,16 @@ +# +# Copyright (C) 2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/RG100A + NAME:=Alcatel RG100A + PACKAGES:=kmod-b43 wpad-mini\ + kmod-usb2 kmod-usb-ohci +endef +define Profile/RG100A/Description + Package set optimized for RG100A. +endef +$(eval $(call Profile,RG100A)) ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [PATCH 5/5] brcm63xx: add DT support for SPW303V
Signed-off-by: Álvaro Fernández Rojas nolt...@gmail.com --- diff --git a/target/linux/brcm63xx/dts/spw303v.dts b/target/linux/brcm63xx/dts/spw303v.dts new file mode 100644 index 000..664ad7b --- /dev/null +++ b/target/linux/brcm63xx/dts/spw303v.dts @@ -0,0 +1,30 @@ +/dts-v1/; + +/include/ bcm6358.dtsi + +/ { + model = T-Com Speedport W303 V; + compatible = t-com,spw303v, brcm,bcm6358; +}; + +pflash { + status = ok; + + linux,part-probe = bcm63xxpart; + + cfe@0 { + label = CFE; + reg = 0x00 0x01; + read-only; + }; + + linux@1 { + label = linux; + reg = 0x01 0x7e; + }; + + nvram@7f { + label = nvram; + reg = 0x7f 0x01; + }; +}; diff --git a/target/linux/brcm63xx/image/Makefile b/target/linux/brcm63xx/image/Makefile index 14b6cd2..8c56e25 100755 --- a/target/linux/brcm63xx/image/Makefile +++ b/target/linux/brcm63xx/image/Makefile @@ -64,6 +64,20 @@ define Image/Build/OLDCFEDTB -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe.bin $(6) endef +define Image/Build/SPW303VCFEDTB + # Generate the tagged image + $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux-$(2).lzma.cfe -f $(KDIR)/root.$(1) \ + --output $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ + --boardid $(3) --chipid $(4) --entry $(KERNEL_ENTRY) \ + --load-addr $(LOADADDR) --rsa-signature $(6) $(7) + # Fix up header + $(STAGING_DIR_HOST)/bin/spw303v -i $(BIN_DIR)/openwrt-$(5)-$(1).tmp \ + -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe-sysupgrade.bin + $(STAGING_DIR_HOST)/bin/xorimage -i $(BIN_DIR)/openwrt-$(5)-$(1)-cfe-sysupgrade.bin \ + -o $(BIN_DIR)/openwrt-$(5)-$(1)-cfe-factory.bin + rm -f $(BIN_DIR)/openwrt-$(5)-$(1).tmp +endef + define Image/Build/ZYXCFEDTB # Generate the tagged image $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux-$(2).lzma.cfe -f $(KDIR)/root.$(1) \ @@ -86,21 +100,6 @@ define Image/Build/RedBoot dd if=$(KDIR)/vmlinux.bin.gz of=$(BIN_DIR)/openwrt-$(1)-vmlinux.gz bs=65536 conv=sync endef -define Image/Build/SPW303V - # Generate the tagged image - $(STAGING_DIR_HOST)/bin/imagetag -i $(KDIR)/vmlinux.lzma.cfe -f $(KDIR)/root.$(1) \ - --output $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp \ - --boardid $(2) --chipid $(3) --entry $(KERNEL_ENTRY) \ - --load-addr $(LOADADDR) --rsa-signature $(5) \ - --pad 4 $(6) $(7) $(8) $(9) - # Fix up header - $(STAGING_DIR_HOST)/bin/spw303v -i $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp \ - -o $(BIN_DIR)/openwrt-$(4)-$(1)-cfe-sysupgrade.bin - $(STAGING_DIR_HOST)/bin/xorimage -i $(BIN_DIR)/openwrt-$(4)-$(1)-cfe-sysupgrade.bin \ - -o $(BIN_DIR)/openwrt-$(4)-$(1)-cfe-factory.bin - rm -f $(BIN_DIR)/openwrt-$(4)-$(1)-cfe.bin.tmp -endef - define Image/Build/HCS $(STAGING_DIR_HOST)/bin/hcsmakeimage --magic_byte=$(3) \ --rev_maj=$(4) --rev_min=$(5) --input_file=$(6) \ @@ -216,6 +215,24 @@ endef # $(5) = imagename # $(6) = rsa signature # $(7) = additional options +define Spw303vCfeImageDTB + define Image/Build/$(5) +$$(call Image/Build/SPW303VCFEDTB,$$(1),$(2),$(3),$(4),$(5),$(6),$(7)) + endef + + TARGET_Default_DTBS += $(2) + TARGET_Default_IMAGES += $(5) + TARGET_$(1)_DTBS += $(2) + TARGET_$(1)_IMAGES += $(5) +endef + +# $(1) = Profile +# $(2) = dtb +# $(3) = boardname +# $(4) = chipid +# $(5) = imagename +# $(6) = rsa signature +# $(7) = additional options define ZyxCfeImageDTB define Image/Build/$(5) $$(call Image/Build/ZYXCFEDTB,$$(1),$(2),$(3),$(4),$(5),$(6),$(7)) @@ -287,9 +304,6 @@ define Image/Build # Telsey CPVA642-type (e.g. CPA-ZNTE60T) $(call Image/Build/CFE,$(1),CPVA642,6358,CPA-ZNTE60T,,--signature Telsey Tlc,--signature2 99.99.999,--second-image-flag 0) - # T-Com Speedport W 303V Typ B - $(call Image/Build/SPW303V,$(1),96358-502V,6358,SPW303V) - # Netgear CVG834G $(call Image/Build/HCS,$(1),cvg834g,a020,0001,0022,$(KDIR)/vmlinux) @@ -379,6 +393,8 @@ $(eval $(call CfeImageDTB,AGPF_S0,agpf-s0,AGPF-S0,6358,AGV2+W,,--block-size 0x20 # Pirelli A226G/M $(eval $(call CfeImageDTB,A226G,dwv-s0,DWV-S0,6358,A226G,,--block-size 0x2 --image-offset 0x1 --signature2 IMAGE --tag-version 8)) $(eval $(call CfeImageDTB,A226M,dwv-s0,DWV-S0,6358,A226M,,--block-size 0x2 --image-offset 0x2 --signature2 IMAGE --tag-version 8)) +# T-Com Speedport W 303V Typ B +$(eval $(call Spw303vCfeImageDTB,SPW303V,spw303v,96358-502V,6358,SPW303V,,--pad 4)) # T-Com Speedport W 500V $(eval $(call CfeImageDTB,SPW500V,spw500v,96348GW,6348,SPW500V)) # Tecom GW6000 diff --git a/target/linux/brcm63xx/patches-3.14/510-board_spw303v.patch
[OpenWrt-Devel] [RFC] ncurses vs ncursesw
I'll try to get opinions about this. Since we're in the middle of packages migration, maybe it's an interesting opportunity to try to use ncursesw and drop ncurses. ncursesw is ncurses + Unicode (UTF8) support Both libraries built out of the same source base, and they're just 2 build variants. From what I can see, Midnight Commander may have some problems building with libncursesw, but I think those could be resolved. python + python3 pick up libncursesw if they find it, but they could be configured to take libncurses no idea about impact on other libs, hence this RFC in the openwrt/packages folder there are only these libs that reference libncurses: - deve/gdb - utils/util-linux - network/utils/iftop - network/services/samba36 libncursesw is slightly fatter (360 kb) than libncurses (295 kb) Having both installed on a device seems redundant, even though together the bloat is not too big. So, then, what would be some opinions/prefs ? Thanks Alex ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [RFC] ncurses vs ncursesw
On Sun, Nov 09, 2014 at 09:40:37PM +0200, Alexandru Ardelean wrote: I'll try to get opinions about this. Since we're in the middle of packages migration, maybe it's an interesting opportunity to try to use ncursesw and drop ncurses. ncursesw is ncurses + Unicode (UTF8) support Both libraries built out of the same source base, and they're just 2 build variants. From what I can see, Midnight Commander may have some problems building with libncursesw, but I think those could be resolved. python + python3 pick up libncursesw if they find it, but they could be configured to take libncurses no idea about impact on other libs, hence this RFC in the openwrt/packages folder there are only these libs that reference libncurses: - deve/gdb - utils/util-linux - network/utils/iftop - network/services/samba36 There are a lot more in the package feed on https://github.com/openwrt/packages Interestingly, utils/zsh depends both on libncurses and libncursesw. Also, sound/mocp can use one or the other: +PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses Here is the list of packages in the main feed depending on libncurses: - admin/htop - lang/erlang - lang/ruby - libs/liboping - libs/postgresql - libs/sqlite3 - libs/unixodbc - net/bmon - net/horst - net/irssi - net/kismet - net/krb5 - net/lftp - net/mtr - net/ocserv - net/wavemon - sound/lame - sound/mocp - utils/alsa-utils - utils/bash - utils/gnupg - utils/lvm2 - utils/mc - utils/minicom - utils/mysql - utils/nano - utils/opensc - utils/screen - utils/tcsh - utils/tmux - utils/zsh libncursesw is slightly fatter (360 kb) than libncurses (295 kb) Having both installed on a device seems redundant, even though together the bloat is not too big. So, then, what would be some opinions/prefs ? Thanks Alex ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel pgpzXrc_4VQzu.pgp Description: PGP signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [RFC] ncurses vs ncursesw
Well, yes, in the feeds there are more packages depending on libncurses. But since we are in the current feeds migration, it could be a good reason to encourage libncursesw. The reason I referenced openwrt/packages in my initial mail, is because those packages are more core, and we should try to keep them solid, so if any of those packages really needs libncurses (without w) we can disregard my proposition. For packages that are in feeds, we could encourage and investigate compatibility with libncursesw, and eventually make it the defacto standard. On Mon, Nov 10, 2014 at 12:11 AM, Baptiste Jonglez bapti...@bitsofnetworks.org wrote: On Sun, Nov 09, 2014 at 09:40:37PM +0200, Alexandru Ardelean wrote: I'll try to get opinions about this. Since we're in the middle of packages migration, maybe it's an interesting opportunity to try to use ncursesw and drop ncurses. ncursesw is ncurses + Unicode (UTF8) support Both libraries built out of the same source base, and they're just 2 build variants. From what I can see, Midnight Commander may have some problems building with libncursesw, but I think those could be resolved. python + python3 pick up libncursesw if they find it, but they could be configured to take libncurses no idea about impact on other libs, hence this RFC in the openwrt/packages folder there are only these libs that reference libncurses: - deve/gdb - utils/util-linux - network/utils/iftop - network/services/samba36 There are a lot more in the package feed on https://github.com/openwrt/packages Interestingly, utils/zsh depends both on libncurses and libncursesw. Also, sound/mocp can use one or the other: +PACKAGE_libncursesw:libncursesw +!PACKAGE_libncursesw:libncurses Here is the list of packages in the main feed depending on libncurses: - admin/htop - lang/erlang - lang/ruby - libs/liboping - libs/postgresql - libs/sqlite3 - libs/unixodbc - net/bmon - net/horst - net/irssi - net/kismet - net/krb5 - net/lftp - net/mtr - net/ocserv - net/wavemon - sound/lame - sound/mocp - utils/alsa-utils - utils/bash - utils/gnupg - utils/lvm2 - utils/mc - utils/minicom - utils/mysql - utils/nano - utils/opensc - utils/screen - utils/tcsh - utils/tmux - utils/zsh libncursesw is slightly fatter (360 kb) than libncurses (295 kb) Having both installed on a device seems redundant, even though together the bloat is not too big. So, then, what would be some opinions/prefs ? Thanks Alex ___ 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 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] kernel: Use defconfig instead of full fledged kernel configuration
Hi Felix, On Sun, Nov 09, 2014 at 11:54:15AM +0100, Felix Fietkau wrote: On 2014-11-07 11:58, Maxime Ripard wrote: Rely on the Kconfig defconfig mechanism to fill all the missing options, instead of needing to set them all in the kernel configurations like what was previously done. This will allow to trim down a lot the configuration files, avoid carrying unused configuration options and preserve the developpers mental health. Signed-off-by: Maxime Ripard maxime.rip...@free-electrons.com I think this is a very good idea. Did you verify on all relevant architectures that the resulting kernel config stays the same with this change? I've tested this only for mvebu so far, but I can test it on more platforms if you want to next week. The result for mvebu was almost identical, only one or two meaningless configuration options were not at the same values during a run before and after. Getting more test coverage should provide more samples :) Maxime -- Maxime Ripard, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com signature.asc Description: Digital signature ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel