[OpenWrt-Devel] [PATCH] procd: fixup double negative docker detection
Double `!!` results in false positives, making the snapshot unusable as procd won't mount essential things on *non virtial machines*. Signed-off-by: Paul Spooren --- container.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/container.h b/container.h index dd2e432..3c388ce 100644 --- a/container.h +++ b/container.h @@ -20,7 +20,7 @@ static inline bool is_container() { struct stat s; - return !!getenv("container") || !!stat("/.dockerenv", &s); + return !!getenv("container") || !stat("/.dockerenv", &s); } #endif -- 2.20.1 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] gpio-button-hotplug: support interrupt properties
Christian Lamparter [2019-05-29 21:58:29]: Hi, > Upstream Linux's input gpio-keys driver supports > specifying a external interrupt for a gpio via the > 'interrupts' properties as well as having support > for software debounce. [...] I've just checked this on ath79 (archer-c7-v5) and on ramips/mt7620 (bdcom,wap2100-sk) with WPS buttons. Acked-by: Petr Štetiar ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH uclient] uclient-http: set data_eof when content-length is 0
Yousong Zhou [2019-05-27 02:45:50]: Hi, > Otherwise uclient-fetch can report "Connection reset prematurely" just checked this, thanks for taking care of this. Acked-by: Petr Štetiar ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Devel, 2/7] at91bootstrap: bump v3.8.10 to v3.8.12
On 5/28/19 7:21 PM, Sandeep Sheriker M wrote: > From: Sandeep Sheriker Mallikarjun > > 1. bump to v3.8.12 > 2. add support for at91sam9x5ek > 3. add sama5d27_som1_eksd1_uboot as default defconfig > > Signed-off-by: Sandeep Sheriker Mallikarjun > > Signed-off-by: Sandeep Sheriker M > --- > package/boot/at91bootstrap/Makefile | 24 +--- > 1 file changed, 21 insertions(+), 3 deletions(-) > > diff --git a/package/boot/at91bootstrap/Makefile > b/package/boot/at91bootstrap/Makefile > index 8a08a7a..c06ea81 100644 > --- a/package/boot/at91bootstrap/Makefile > +++ b/package/boot/at91bootstrap/Makefile > @@ -9,12 +9,12 @@ > include $(TOPDIR)/rules.mk > > PKG_NAME:=at91bootstrap > -PKG_VERSION:=v3.8.10 > +PKG_VERSION:=v3.8.12 > PKG_RELEASE:= > > PKG_SOURCE_PROTO:=git > PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git > -PKG_SOURCE_VERSION:=04efa5500d60a0211d14b6ee60df7ce0a828704d > +PKG_SOURCE_VERSION:= 28e15d07e9f24efb04b87bb0baa211a0c5640ef1 Please remove this extra space > > PKG_BUILD_DIR = \ > $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) > @@ -28,6 +28,22 @@ define AT91Bootstrap/Default >AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin > endef > > +define AT91Bootstrap/at91sam9x5eknf_uboot > + NAME:=AT91Bootstrap for AT91SAM9X5-EK board (NandFlash) > + BUILD_SUBTARGET:=sam9x > + BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \ > + at91sam9g35ek at91sam9x25ek \ > + at91sam9x35ek Please use the same indention > +endef > + > +define AT91Bootstrap/at91sam9x5eksd_uboot > + NAME:=AT91Bootstrap for AT91SAM9X5-EK board (SDcard) > + BUILD_SUBTARGET:=sam9x > + BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \ > + at91sam9g35ek at91sam9x25ek \ > + at91sam9x35ek > +endef ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Devel, 3/7] at91: Generate sdcard images for at91sam9x5ek boards.
On 5/28/19 7:21 PM, Sandeep Sheriker M wrote: > From: Sandeep Sheriker Mallikarjun > > Signed-off-by: Sandeep Sheriker Mallikarjun > > Signed-off-by: Sandeep Sheriker M > --- > target/linux/at91/image/Makefile | 8 +++- > target/linux/at91/image/sam9x.mk | 5 + > 2 files changed, 12 insertions(+), 1 deletion(-) > > diff --git a/target/linux/at91/image/Makefile > b/target/linux/at91/image/Makefile > index e4c17e3..5b1433c 100644 > --- a/target/linux/at91/image/Makefile > +++ b/target/linux/at91/image/Makefile > @@ -51,13 +51,19 @@ define Build/at91-sdcard > mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ > ::$(dts).dtb) > > + $(if $(findstring sama5,$(DEVICE_NAME)) , \ >mcopy -i $@.boot \ > $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ > ::u-boot.bin > >mcopy -i $@.boot \ > $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ > -::BOOT.bin > +::BOOT.bin , > + > + mcopy -i $@.boot $(BIN_DIR)/u-boot-*_mmc/u-boot.bin ::u-boot.bin > + > + mcopy -i $@.boot \ > +$(BIN_DIR)/at91bootstrap-*sd*/at91bootstrap.bin ::BOOT.bin) > Wouldn't it be more maintainable to split the at91-sdcard build part into multiple parts? Is it save to use at91bootstrap-*sd*/ ? are you sure it will take the correct file? >./gen_at91_sdcard_img.sh \ >$@.img \ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] Lists - Del Mar Electronics And Manufacturing Show 2019 - Register Portal List
Dear Exhibitors, Thanks for participating in DEL MAR ELECTRONICS AND MANUFACTURING SHOW 2019. Del Mar Electronics And Manufacturing Show 01 - 02 MAY 2019 updated attendees List is Now Available! Which enables you to showcase your company's post-show marketing efforts with unlimited usage on the contact list (No restriction on usage). Attendees: Engineers, Developers, Manufacturers, Design Electronic Packaging, Key Decision Makers, Industry Professionals and many more.. Qualified Data Field includes: Company Name, Web Address, Contact Name, Job Title, Mailing Address, Phone Number, and Industry, SIC Code, Company Mailing address with Zip Code, Fax Number, Industry Classification, Website URL along with verified business email address. These contact list will be delivered in Excel format which can be used for telemarketing, direct marketing, and email marketing initiatives etc. Please let me know your thoughts, as it will be my pleasure to share you the counts and pricing of the lists. Looking back to hearing from you. Regards Kristen Paladiino DMEMS - Event Specialist. 01 - 02 MAY 2019 | SAN DIEGO, CA ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] gpio-button-hotplug: support interrupt properties
Hello, On Thursday, May 30, 2019 12:00:27 PM CEST Petr Štetiar wrote: > Christian Lamparter [2019-05-29 21:58:29]: > > Upstream Linux's input gpio-keys driver supports > > specifying a external interrupt for a gpio via the > > 'interrupts' properties as well as having support > > for software debounce. > > [...] > > I've just checked this on ath79 (archer-c7-v5) and on ramips/mt7620 > (bdcom,wap2100-sk) with WPS buttons. > > Acked-by: Petr Štetiar Can you tell me what you tested? Was it the software debounce? Because this should be the only bit that will affect the ath79 platform I think (since it already has support for interrupts through the gpio controller). From what I can tell, ramips should use gpio-keys-polled exclusivly for now. This is because the rt2880-pinmux driver doesn't implement and irq support (though some of the chips should support it). all gpio-keys-polled should work as before. Cheers, Christian ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH 1/2] gpio-button-hotplug: support interrupt properties
Christian Lamparter [2019-05-30 17:09:08]: Hi, > On Thursday, May 30, 2019 12:00:27 PM CEST Petr Štetiar wrote: > > > > I've just checked this on ath79 (archer-c7-v5) and on ramips/mt7620 > > (bdcom,wap2100-sk) with WPS buttons. > > > > Acked-by: Petr Štetiar > > Can you tell me what you tested? Was it the software debounce? > Because this should be the only bit that will affect the ath79 > platform I think (since it already has support for interrupts > through the gpio controller). it was just FYI, that I've checked it (run tested) and didn't noticed any side effects, possible regressions. I've simply added this patch on top of fix for FS#1965 and run tested it together. -- ynezz ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [OpenWrt-Devel, 3/7] at91: Generate sdcard images for at91sam9x5ek boards.
> -Original Message- > From: Hauke Mehrtens > Sent: Thursday, May 30, 2019 4:50 AM > To: Sandeep Sheriker Mallikarjun - C17018 > ; openwrt-devel@lists.openwrt.org > Cc: Sandeep Sheriker Mallikarjun - C17018 > > Subject: Re: [OpenWrt-Devel] [OpenWrt-Devel, 3/7] at91: Generate sdcard > images for at91sam9x5ek boards. > > External E-Mail > > > On 5/28/19 7:21 PM, Sandeep Sheriker M wrote: > > From: Sandeep Sheriker Mallikarjun > > > > > > Signed-off-by: Sandeep Sheriker Mallikarjun > > > > Signed-off-by: Sandeep Sheriker M > > --- > > target/linux/at91/image/Makefile | 8 +++- > > target/linux/at91/image/sam9x.mk | 5 + > > 2 files changed, 12 insertions(+), 1 deletion(-) > > > > diff --git a/target/linux/at91/image/Makefile > > b/target/linux/at91/image/Makefile > > index e4c17e3..5b1433c 100644 > > --- a/target/linux/at91/image/Makefile > > +++ b/target/linux/at91/image/Makefile > > @@ -51,13 +51,19 @@ define Build/at91-sdcard > > mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ > > ::$(dts).dtb) > > > > + $(if $(findstring sama5,$(DEVICE_NAME)) , \ > >mcopy -i $@.boot \ > > $(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ > > ::u-boot.bin > > > >mcopy -i $@.boot \ > > $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91- > %=%)sd*/at91bootstrap.bin \ > > -::BOOT.bin > > +::BOOT.bin , > > + > > + mcopy -i $@.boot $(BIN_DIR)/u-boot-*_mmc/u-boot.bin ::u-boot.bin > > + > > + mcopy -i $@.boot \ > > +$(BIN_DIR)/at91bootstrap-*sd*/at91bootstrap.bin ::BOOT.bin) > > > > Wouldn't it be more maintainable to split the at91-sdcard build part into > multiple parts? > > Is it save to use at91bootstrap-*sd*/ ? are you sure it will take the correct > file? > Ignore this patch, will resend it by splitting them in to multiple parts. > > >./gen_at91_sdcard_img.sh \ > >$@.img \ ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [PATCH] Support for Edimax EW-7476RPC / EW-7478AC
Hi Daniel, I have tried in vain to implement your suggestions. I am stuck and need some help: On 27.05.19 18:43, Daniel Golle wrote: >>> + >>> +&pinctrl { >>> + state_default: pinctrl0 { >>> + gpio { >>> + // might need pin 39: ; >>> + ralink,group = "i2c", "uartf", "nd_sd", >>> "rgmii2", "spi refclk"; >>> + ralink,function = "gpio"; >>> + }; >>> + }; >>> +}; >> A pinctrl group for the switch reset would be appropriate: >> GPIO 39 is p4led_an, hence add: >> phy_reset_pins: phy-reset { >> gpio { >> ralink,group = "p4led_an"; >> ralink,function = "gpio"; >> }; >> }; This does not work, I get the following error during boot: [ 1.227392] rt2880-pinmux pinctrl: invalid group "p4led_an" for function "gpio" [ 1.242028] mtk_soc_eth: probe of 1010.ethernet failed with error -22 gpio is part of the "spi refclk" group. Even if I remove that from the pinctrl0 group, the error stays. I then tried: &pinctrl { state_default: pinctrl0 { gpio { ralink,group = "i2c", "uartf", "nd_sd", "rgmii2"; ralink,function = "gpio"; }; }; /* the reset pin 39 is part of spi refclk */ phy_reset_pins: phy-reset { gpio { ralink,group = "spi refclk"; ralink,function = "gpio"; }; }; }; ðernet { status = "okay"; mtd-mac-address = <&factory 0x4>; pinctrl-names = "default"; pinctrl-0 = <&rgmii1_pins &mdio_pins &phy_reset_pins>; mediatek,portmap = "l"; mediatek,mdio-mode = <1>; phy-reset-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; ... } Which avoids the error. I am however not able to assign the gpio reset pin. The code looks like this in mtk_eth_soc.c: static int __init fe_init(struct net_device *dev) { struct fe_priv *priv = netdev_priv(dev); struct device_node *port; const char *mac_addr; int err; struct gpio_desc *phy_reset; priv->soc->reset_fe(); if (priv->soc->switch_init) if (priv->soc->switch_init(priv)) { netdev_err(dev, "failed to initialize switch core\n"); return -ENODEV; } phy_reset = devm_gpiod_get_optional(priv->dev, "phy-reset", 0); if(phy_reset) { pr_info("ethernet: Got something else than NULL\n"); if (IS_ERR(phy_reset)){ pr_info("ethernet: Got error %d\n", PTR_ERR(phy_reset)); } else { err = gpiod_direction_output(phy_reset, 1); if(!err) { pr_info("ethernet: direction is output\n"); mdelay(30); gpiod_set_value(phy_reset, 0); } else { pr_info("Error: %d\n", err); } } } else { pr_info("ethernet: No phy-reset present\n"); } However, this gives me the always the weird error code -517 as a result from PTR_ERR(), which is not documented. Any help appreciated. Birger > ___ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 06/11] at91bootstrap: add support for at91sam9x5ek
Signed-off-by: Sandeep Sheriker M --- package/boot/at91bootstrap/Makefile | 14 ++ 1 file changed, 14 insertions(+) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 642d094..6496b5a 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -27,6 +27,18 @@ define AT91Bootstrap/Default AT91BOOTSTRAP_IMAGE:=at91bootstrap.bin endef +define AT91Bootstrap/at91sam9x5eknf_uboot + NAME:=AT91Bootstrap for AT91SAM9X5-EK board (NandFlash) + BUILD_SUBTARGET:=sam9x + BUILD_DEVICES:=at91sam9x25ek at91sam9x35ek +endef + +define AT91Bootstrap/at91sam9x5eksd_uboot + NAME:=AT91Bootstrap for AT91SAM9X5-EK board (SDcard) + BUILD_SUBTARGET:=sam9x + BUILD_DEVICES:=at91sam9x25ek at91sam9x35ek +endef + define AT91Bootstrap/sama5d2_xplaineddf_uboot TITLE:=AT91Bootstrap for SAMA5D2 Xplained board (SPI Flash) BUILD_SUBTARGET:=sama5 @@ -106,6 +118,8 @@ define AT91Bootstrap/sama5d2_ptc_eksd_uboot endef AT91BOOTSTRAP_TARGETS := \ +at91sam9x5eknf_uboot \ +at91sam9x5eksd_uboot \ sama5d2_xplaineddf_uboot \ sama5d2_xplaineddf_qspi_uboot \ sama5d2_xplainedsd_uboot \ -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 03/11] uboot-at91: changed som1 ek default defconfigs
replaced som1 ek spi flash with qspi defconfig and mmc with mmc1 defconfig. Signed-off-by: Sandeep Sheriker M --- package/boot/uboot-at91/Makefile | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 90f1a3b..c17f1e0 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -88,13 +88,13 @@ define U-Boot/sama5d4_xplained_nandflash BUILD_DEVICES:=at91-sama5d4_xplained endef -define U-Boot/sama5d27_som1_ek_mmc - NAME:=SAMA5D27 SOM1 Ek (SDCard) +define U-Boot/sama5d27_som1_ek_mmc1 + NAME:=SAMA5D27 SOM1 Ek (SDCard1) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d27_som1_ek endef -define U-Boot/sama5d27_som1_ek_spiflash +define U-Boot/sama5d27_som1_ek_qspiflash NAME:=SAMA5D27 SOM1 Ek (QSPI Flash) BUILD_SUBTARGET:=sama5 BUILD_DEVICES:=at91-sama5d27_som1_ek @@ -123,8 +123,8 @@ UBOOT_TARGETS := \ sama5d4_xplained_mmc \ sama5d4_xplained_spiflash \ sama5d4_xplained_nandflash\ -sama5d27_som1_ek_mmc \ -sama5d27_som1_ek_spiflash \ + sama5d27_som1_ek_mmc1 \ + sama5d27_som1_ek_qspiflash \ sama5d2_ptc_ek_nandflash \ sama5d2_ptc_ek_mmc -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 04/11] uboot-at91: fix -Wformat-security
add patch to fix -Wformat-security warnings. Signed-off-by: Sandeep Sheriker M --- package/boot/uboot-at91/Makefile| 2 +- .../boot/uboot-at91/patches/001-fix-Wformat-security.patch | 13 + 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 package/boot/uboot-at91/patches/001-fix-Wformat-security.patch diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index c17f1e0..547b72f 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -131,7 +131,7 @@ UBOOT_TARGETS := \ define Build/Compile +$(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \ CROSS_COMPILE=$(TARGET_CROSS) \ -DTC=$(LINUX_DIR)/scripts/dtc/dtc \ +DTC=$(PKG_BUILD_DIR)/scripts/dtc/dtc \ KCFLAGS="$(filter-out -fstack-protector \ -mfloat-abi=hard, $(TARGET_CFLAGS)) -mfloat-abi=soft" endef diff --git a/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch new file mode 100644 index 000..18f9af7 --- /dev/null +++ b/package/boot/uboot-at91/patches/001-fix-Wformat-security.patch @@ -0,0 +1,13 @@ +diff --git a/cmd/version.c b/cmd/version.c +index b2fffe9..bcbbeb1 100644 +--- a/cmd/version.c b/cmd/version.c +@@ -18,7 +18,7 @@ static int do_version(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) + { + char buf[DISPLAY_OPTIONS_BANNER_LENGTH]; + +- printf(display_options_get_banner(false, buf, sizeof(buf))); ++ printf("%s",display_options_get_banner(false, buf, sizeof(buf))); + #ifdef CC_VERSION_STRING + puts(CC_VERSION_STRING "\n"); + #endif -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 01/11] uboot-at91: bump linux4sam_5.8 to linux4sam_6.0
Signed-off-by: Sandeep Sheriker M --- package/boot/uboot-at91/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index a3262b5..15a26be 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -7,12 +7,12 @@ include $(TOPDIR)/rules.mk -PKG_VERSION:=linux4sam_5.8 +PKG_VERSION:=linux4sam_6.0 PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/linux4sam/u-boot-at91.git -PKG_SOURCE_VERSION:=59f202622154f82e708a6ca2bf86350a5c1b2d33 +PKG_SOURCE_VERSION:=1e7d2e5973c1fb780e55e28a801c6c574158ac14 include $(INCLUDE_DIR)/u-boot.mk include $(INCLUDE_DIR)/package.mk -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 00/11] at91 patch series.
Hi, This patch series contains 1. rework in creating sdcard images for different subtarget. 2. creating a fit images. 3. add support for sam9x5ek soc 4. add uboot env file. 5. bump uboot & at91bootstrap to latest versions Sandeep Sheriker M (11): uboot-at91: bump linux4sam_5.8 to linux4sam_6.0 uboot-at91:add at91sam9x5ek soc uboot-at91: changed som1 ek default defconfigs uboot-at91: fix -Wformat-security at91bootstrap: bump v3.8.10 to v3.8.12 at91bootstrap: add support for at91sam9x5ek at91bootstrap: add sama5d27_som1_eksd1_uboot as default defconfig at91: move at91-sdcard command to sama5.mk at91: add uboot environments at91: create fit image at91: create sdcard images for at91sam9x25 & at91sam9x25 boards. package/boot/at91bootstrap/Makefile| 25 ++ package/boot/uboot-at91/Makefile | 25 +- .../patches/001-fix-Wformat-security.patch | 13 +++ target/linux/at91/image/Makefile | 33 ++ target/linux/at91/image/sam9x.mk | 40 ++ target/linux/at91/image/sama5.mk | 38 target/linux/at91/image/uboot-env.txt | 14 7 files changed, 143 insertions(+), 45 deletions(-) create mode 100644 package/boot/uboot-at91/patches/001-fix-Wformat-security.patch create mode 100644 target/linux/at91/image/uboot-env.txt -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 02/11] uboot-at91:add at91sam9x5ek soc
add support to build u-boot binaries for at91sam9x5ek socs. Signed-off-by: Sandeep Sheriker M --- package/boot/uboot-at91/Makefile | 9 + 1 file changed, 9 insertions(+) diff --git a/package/boot/uboot-at91/Makefile b/package/boot/uboot-at91/Makefile index 15a26be..90f1a3b 100644 --- a/package/boot/uboot-at91/Makefile +++ b/package/boot/uboot-at91/Makefile @@ -38,6 +38,14 @@ define U-Boot/at91sam9x5ek_nandflash at91sam9x35ek endef +define U-Boot/at91sam9x5ek_mmc + NAME:=AT91SAM9X5-EK board (SDcard) + BUILD_SUBTARGET:=sam9x + BUILD_DEVICES:=at91sam9g15ek at91sam9g25ek \ + at91sam9g35ek at91sam9x25ek \ +at91sam9x35ek +endef + define U-Boot/sama5d3_xplained_nandflash NAME:=SAMA5D3 Xplained board (NandFlash) BUILD_SUBTARGET:=sama5 @@ -107,6 +115,7 @@ endef UBOOT_TARGETS := \ at91sam9m10g45ek_nandflash \ at91sam9x5ek_nandflash \ + at91sam9x5ek_mmc \ sama5d3_xplained_nandflash \ sama5d3_xplained_mmc \ sama5d2_xplained_mmc \ -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 09/11] at91: add uboot environments
add uboot environments to sdcard image Signed-off-by: Sandeep Sheriker M --- target/linux/at91/image/sama5.mk | 11 ++- target/linux/at91/image/uboot-env.txt | 14 ++ 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 target/linux/at91/image/uboot-env.txt diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index f4548fb..bce89a0 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -25,6 +25,15 @@ define Build/at91-sdcard $(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ ::BOOT.bin + $(CP) uboot-env.txt $@-uboot-env.txt + sed -i '2d;3d' $@-uboot-env.txt + sed -i '2i board='"$(DEVICE_NAME:at91-%=%)"'' $@-uboot-env.txt + sed -i '3i board_name='"$(DEVICE_NAME:at91-%=%)"'' $@-uboot-env.txt + + mkenvimage -s 0x4000 -o $@-uboot.env $@-uboot-env.txt + + mcopy -i $@.boot $@-uboot.env ::uboot.env + ./gen_at91_sdcard_img.sh \ $@.img \ $@.boot \ @@ -34,7 +43,7 @@ define Build/at91-sdcard gzip -nc9 $@.img > $@ - rm -f $@.img $@.boot ) + rm -f $@.img $@.boot $@-uboot.env $@-uboot-env.txt) endef define Device/at91-sama5d2_xplained diff --git a/target/linux/at91/image/uboot-env.txt b/target/linux/at91/image/uboot-env.txt new file mode 100644 index 000..80d051b --- /dev/null +++ b/target/linux/at91/image/uboot-env.txt @@ -0,0 +1,14 @@ +/* Do Not remove First 2 lines, Makefile will modify these lines with proper board names */ +board=at91sam9x25ek +board_name=at91sam9x25ek +bootargs=console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 +bootargsd2=console=ttyS0,115200 earlyprintk root=/dev/mmcblk1p2 rw rootwait rootfstype=ext4 +bootargsxx=console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait rootfstype=ext4 +bootcmd=run setbootargs; run fatload_mmc; bootm 0x2100 +bootdelay=1 +fatload_mmc=if test ${board_name} = sama5d2_xplained || test ${board_name} = sama5d27_som1_ek; then fatload mmc 1:1 0x2100 ${board_name}-fit.itb; else fatload mmc 0:1 0x2100 ${board_name}-fit.itb; fi +setbootargs=if test ${board_name} = sama5d2_xplained || test ${board_name} = sama5d27_som1_ek; then setenv bootargs ${bootargsd2}; else setenv bootargs ${bootargsxx}; fi +ethact=gmac0 +stderr=serial +stdin=serial +stdout=serial -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 08/11] at91: move at91-sdcard command to sama5.mk
Signed-off-by: Sandeep Sheriker M --- target/linux/at91/image/Makefile | 31 --- target/linux/at91/image/sama5.mk | 31 +++ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/target/linux/at91/image/Makefile b/target/linux/at91/image/Makefile index e4c17e3..3b01d42 100644 --- a/target/linux/at91/image/Makefile +++ b/target/linux/at91/image/Makefile @@ -40,37 +40,6 @@ define Device/dtb KERNEL := kernel-bin | lzma | uImage lzma endef -define Build/at91-sdcard - $(if $(findstring ext4,$@), \ - rm -f $@.boot - mkfs.fat -C $@.boot $(FAT32_BLOCKS) - - mcopy -i $@.boot $(KDIR)/zImage ::zImage - - $(foreach dts,$(DEVICE_DTS), \ - mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ -::$(dts).dtb) - - mcopy -i $@.boot \ -$(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc/u-boot.bin \ -::u-boot.bin - - mcopy -i $@.boot \ -$(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ -::BOOT.bin - - ./gen_at91_sdcard_img.sh \ - $@.img \ - $@.boot \ - $(KDIR)/root.ext4 \ - $(AT91_SD_BOOT_PARTSIZE) \ - $(CONFIG_TARGET_ROOTFS_PARTSIZE) - - gzip -nc9 $@.img > $@ - - rm -f $@.img $@.boot ) -endef - define Device/evaluation-sdimage IMAGES += sdcard.img.gz IMAGE/sdcard.img.gz := at91-sdcard diff --git a/target/linux/at91/image/sama5.mk b/target/linux/at91/image/sama5.mk index f9a190c..f4548fb 100644 --- a/target/linux/at91/image/sama5.mk +++ b/target/linux/at91/image/sama5.mk @@ -6,6 +6,37 @@ define Device/default-nand MKUBIFS_OPTS := -m $$(PAGESIZE) -e 124KiB -c 2048 endef +define Build/at91-sdcard + $(if $(findstring ext4,$@), \ + rm -f $@.boot + mkfs.fat -C $@.boot $(FAT32_BLOCKS) + + mcopy -i $@.boot $(KDIR)/zImage ::zImage + + $(foreach dts,$(DEVICE_DTS), \ + mcopy -i $@.boot $(DTS_DIR)/$(dts).dtb \ +::$(dts).dtb) + + mcopy -i $@.boot \ +$(BIN_DIR)/u-boot-$(DEVICE_NAME:at91-%=%)_mmc*/u-boot.bin \ +::u-boot.bin + + mcopy -i $@.boot \ +$(BIN_DIR)/at91bootstrap-$(DEVICE_NAME:at91-%=%)sd*/at91bootstrap.bin \ +::BOOT.bin + + ./gen_at91_sdcard_img.sh \ + $@.img \ + $@.boot \ + $(KDIR)/root.ext4 \ + $(AT91_SD_BOOT_PARTSIZE) \ + $(CONFIG_TARGET_ROOTFS_PARTSIZE) + + gzip -nc9 $@.img > $@ + + rm -f $@.img $@.boot ) +endef + define Device/at91-sama5d2_xplained $(Device/evaluation-dtb) DEVICE_TITLE := Microchip(Atmel AT91) SAMA5D2 Xplained -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 05/11] at91bootstrap: bump v3.8.10 to v3.8.12
Signed-off-by: Sandeep Sheriker M --- package/boot/at91bootstrap/Makefile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 8a08a7a..642d094 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -9,13 +9,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=at91bootstrap -PKG_VERSION:=v3.8.10 +PKG_VERSION:=v3.8.12 PKG_RELEASE:= PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/linux4sam/at91bootstrap.git -PKG_SOURCE_VERSION:=04efa5500d60a0211d14b6ee60df7ce0a828704d - +PKG_SOURCE_VERSION:= 28e15d07e9f24efb04b87bb0baa211a0c5640ef1 PKG_BUILD_DIR = \ $(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION) -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
[OpenWrt-Devel] [patch v1 07/11] at91bootstrap: add sama5d27_som1_eksd1_uboot as default defconfig
Signed-off-by: Sandeep Sheriker M --- package/boot/at91bootstrap/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/boot/at91bootstrap/Makefile b/package/boot/at91bootstrap/Makefile index 6496b5a..1c07e21 100644 --- a/package/boot/at91bootstrap/Makefile +++ b/package/boot/at91bootstrap/Makefile @@ -128,9 +128,9 @@ AT91BOOTSTRAP_TARGETS := \ sama5d4_xplainednf_uboot_secure \ sama5d4_xplaineddf_uboot_secure \ sama5d4_xplainedsd_uboot_secure \ - sama5d27_som1_eksd_uboot \ - sama5d27_som1_ekqspi_uboot \ - sama5d2_ptc_eknf_uboot \ +sama5d27_som1_eksd1_uboot \ +sama5d27_som1_ekqspi_uboot \ +sama5d2_ptc_eknf_uboot \ sama5d2_ptc_eksd_uboot define Build/Compile -- 2.7.4 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel