Re: [LEDE-DEV] Adding new targets/subtargets

2016-12-31 Thread Philip Prindeville
> On Dec 31, 2016, at 9:32 AM, Yousong Zhou wrote: > > On 31 December 2016 at 06:13, Philip Prindeville > wrote: >> >>> On Dec 29, 2016, at 7:46 PM, Yousong Zhou wrote: >>> >>> On 30 December 2016 at 03:29, Philip Prindeville >>> wrote: On Dec 28, 2016, at 7:57 PM, Yousong Zhou wrote:

[LEDE-DEV] [PATCH 3/6] rpcd: Update to 2016-12-03

2016-12-31 Thread Florian Fainelli
Brings in the following changes: 0577cfc1acdb cmake: Find libubox/blobmsg_json.h 26c98ec94d7a sys: Check return values of chdir and write f4089654a399 cmake: Find libubus.h Signed-off-by: Florian Fainelli --- package/system/rpcd/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(

[LEDE-DEV] [PATCH 2/6] fstools: Update to 2016-12-04

2016-12-31 Thread Florian Fainelli
Brings in the following changes: 84b530a732b1 libfstools: Check return values for fread and system Signed-off-by: Florian Fainelli --- package/system/fstools/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package/system/fstools/Makefile b/package/system/fstool

[LEDE-DEV] [PATCH 6/6] malta: Fix README file examples

2016-12-31 Thread Florian Fainelli
The example command-lines used references and paths from an older directory structure. Signed-off-by: Florian Fainelli --- target/linux/malta/README | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/malta/README b/target/linux/malta/README index 22bdff5ac625..c

[LEDE-DEV] [PATCH 1/6] uclient: Update to 2016-12-09

2016-12-31 Thread Florian Fainelli
Brings in the following changes: 52d955fd802a remove obsolete mac os x /opt/local include/library search path a4e49b4163b2 Fix unused results warnings 48cfff3fbec9 uclient-http: send correct "Host:" header if port is set Signed-off-by: Florian Fainelli --- package/libs/uclient/Makefile | 6 +++-

[LEDE-DEV] [PATCH 0/6] Random updates and fixes

2016-12-31 Thread Florian Fainelli
This patch series bumps a few packages in order to get updated CMakeList.txt and/or compiler warning fixed. Patch 4 mimics what other packages (e.g: uhttpd) do wrt. libcrypt since for some reason CMake is unable to find this library. Patch 5 fixes an issue spotted with the stbgcc-4.8-1.5 external

[LEDE-DEV] [PATCH 5/6] toolchain: Broaden the executable loader pattern

2016-12-31 Thread Florian Fainelli
Some toolchains will produce executables with an interpreter that is e.g: ld.so.1 (typically a symbolic link). Due to our current LIBC_SPEC_FILE value, we would not be able to copy this symbolic link/file over to the rootfs and executables would fail to load. Extend the search pattern to include al

[LEDE-DEV] [PATCH 4/6] rpcd: Explicitly link with lcrypt

2016-12-31 Thread Florian Fainelli
Fixes build issues with some toolchains that don't add lcrypt in the default search paths: CMakeFiles/rpcd.dir/session.c.o: In function `rpc_login_test_password': build_dir/target-mipsel-linux-gnu/rpcd-2016-12-03-0577cfc1/session.c:823: undefined reference to `crypt' collect2: error: ld returned

[LEDE-DEV] Scripting builds... how to?

2016-12-31 Thread Philip Prindeville
Hi. I wanted to be able to script building images completely. I understand how to do: cp ../my-saved-config .config make defconfig make oldconfig to generate the .config file in a completely scripted way, by seeding it with the minimum set of relevant parameters (the deltas) per the steps des

[LEDE-DEV] Blackhole routes and other tidbits on the network configuration wiki page

2016-12-31 Thread Philip Prindeville
I was going over the “Network configuration” page on the wiki and it’s a little thin on routes. In particular, it implies that for a route you always need interface/target/netmask/gateway… but in the case of type=blackhole, a gateway doesn’t really seem applicable. So would you have: config r

Re: [LEDE-DEV] [PATCH 04/11] build: image.mk: don't install-images for devices not selected

2016-12-31 Thread Yousong Zhou
On 1 January 2017 at 01:11, Felix Fietkau wrote: > On 2016-12-31 18:06, Yousong Zhou wrote: >> This commit tries to fix the following situation >> >> - CONFIG_TARGET_MULTIPLE_PROFILE is not set >> - CONFIG_TARGET_sunxi_DEVICE_sun7i-a20-cubieboard2=y >> - All other devices are not selected >> >>

[LEDE-DEV] [PATCH v2 4/4] sunxi: use fwtool for checking sdcard images

2016-12-31 Thread Yousong Zhou
To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we n

[LEDE-DEV] [PATCH v2 2/4] sunxi: make sdcard image with squashfs as rootfs

2016-12-31 Thread Yousong Zhou
Two things that need to be noted - There is no partition type id allocated for squashfs yet. In the case of sunxi, any non-zero value should work and we keep it 83 (the value for ext4) - Remaining spare space within the rootfs partition, not the entire sdcard space will be formated as

[LEDE-DEV] [PATCH v2 3/4] sunxi: add sysupgrade support

2016-12-31 Thread Yousong Zhou
Enalbe builtin support for FAT filesystem as we need to mount boot partition to store sysupgrade.tgz there Signed-off-by: Yousong Zhou --- .../sunxi/base-files/lib/preinit/79_move_config| 20 +++ .../linux/sunxi/base-files/lib/upgrade/platform.sh | 67 ++ target/linux

[LEDE-DEV] [PATCH v2 0/4] sunxi: rework image build and sysupgrade support

2016-12-31 Thread Yousong Zhou
This series mainly tries achieve the following goals - use new image generation method - squashfs sdcard image support - mkfs.f2fs or mkfs.ext4 remaining space within squashfs rootfs partition and mount it as rw overlay - sysupgrade with fwtool check support Device profiles are automatical

[LEDE-DEV] [PATCH v2 1/4] sunxi: convert to new image generation method

2016-12-31 Thread Yousong Zhou
The new Device/xxx were transformed automatically from old profiles. Most device names are now taken from basename of the corresponding kernel device tree file. Device/sun5i-a13-olimex-som is an exception because it is not explicitly supported in the kernel yet and shares the same dts file with D

Re: [LEDE-DEV] [PATCH 00/11] sunxi: rework image build and sysupgrade support

2016-12-31 Thread Felix Fietkau
On 2016-12-31 18:06, Yousong Zhou wrote: > This series mainly tries achieve the following goals > > - use new image generation method > - squashfs sdcard image support > - mkfs.f2fs or mkfs.ext4 remaining space within squashfs rootfs partition and >mount it as rw overlay > - sysupgrade wit

Re: [LEDE-DEV] [PATCH 03/11] build: image.mk: add IMAGE_PREFIX as one of DEFAULT_DEVICE_VARS

2016-12-31 Thread Felix Fietkau
On 2016-12-31 18:06, Yousong Zhou wrote: > Its value is device-specific > > Signed-off-by: Yousong Zhou > --- > include/image.mk | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/image.mk b/include/image.mk > index 93c3bbd..b83d589 100644 > --- a/include/image.mk

[LEDE-DEV] [PATCH 11/11] sunxi: use fwtool for checking sdcard images

2016-12-31 Thread Yousong Zhou
To achieve this, device tree compatible string was used as boardname and the value of it will be checked against supported_devices list. It should be noted that we do not distinguish between sun5i-a13-olimex-som and sun5i-a13-olinuxino as they share the same dts file. The other thing is that we n

[LEDE-DEV] [PATCH 10/11] sunxi: add sysupgrade support

2016-12-31 Thread Yousong Zhou
Enalbe builtin support for FAT filesystem as we need to mount boot partition to store sysupgrade.tgz there Signed-off-by: Yousong Zhou --- .../sunxi/base-files/lib/preinit/79_move_config| 20 +++ .../linux/sunxi/base-files/lib/upgrade/platform.sh | 67 ++ target/linux

Re: [LEDE-DEV] [PATCH 04/11] build: image.mk: don't install-images for devices not selected

2016-12-31 Thread Felix Fietkau
On 2016-12-31 18:06, Yousong Zhou wrote: > This commit tries to fix the following situation > > - CONFIG_TARGET_MULTIPLE_PROFILE is not set > - CONFIG_TARGET_sunxi_DEVICE_sun7i-a20-cubieboard2=y > - All other devices are not selected > > The build system will still try to install-images for th

[LEDE-DEV] [PATCH 03/11] build: image.mk: add IMAGE_PREFIX as one of DEFAULT_DEVICE_VARS

2016-12-31 Thread Yousong Zhou
Its value is device-specific Signed-off-by: Yousong Zhou --- include/image.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/image.mk b/include/image.mk index 93c3bbd..b83d589 100644 --- a/include/image.mk +++ b/include/image.mk @@ -360,7 +360,7 @@ DEFAULT_DEVICE_VAR

[LEDE-DEV] [PATCH 04/11] build: image.mk: don't install-images for devices not selected

2016-12-31 Thread Yousong Zhou
This commit tries to fix the following situation - CONFIG_TARGET_MULTIPLE_PROFILE is not set - CONFIG_TARGET_sunxi_DEVICE_sun7i-a20-cubieboard2=y - All other devices are not selected The build system will still try to install-images for those other devices as PROFILES and PROFILE has value DEV

[LEDE-DEV] [PATCH 06/11] sunxi: convert to new image generation method

2016-12-31 Thread Yousong Zhou
The new Device/xxx were transformed automatically from old profiles. Most device names are now taken from basename of the corresponding kernel device tree file. Device/sun5i-a13-olimex-som is an exception because it is not explicitly supported in the kernel yet and shares the same dts file with D

[LEDE-DEV] [PATCH 07/11] sunxi: enable loopback device and f2fs support

2016-12-31 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/sunxi/config-4.4 | 14 ++ 1 file changed, 14 insertions(+) diff --git a/target/linux/sunxi/config-4.4 b/target/linux/sunxi/config-4.4 index 1962f77..816f44a 100644 --- a/target/linux/sunxi/config-4.4 +++ b/target/linux/sunxi/config-4.4 @@

[LEDE-DEV] [PATCH 01/11] x86: move sysupgrade.tgz only if it exists

2016-12-31 Thread Yousong Zhou
To squash error messages at boot time mv: can't rename '/mnt/sysupgrade.tgz': No such file or directory Signed-off-by: Yousong Zhou --- target/linux/x86/base-files/lib/preinit/79_move_config | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/target/linux/x86/base-f

[LEDE-DEV] [PATCH 00/11] sunxi: rework image build and sysupgrade support

2016-12-31 Thread Yousong Zhou
This series mainly tries achieve the following goals - use new image generation method - squashfs sdcard image support - mkfs.f2fs or mkfs.ext4 remaining space within squashfs rootfs partition and mount it as rw overlay - sysupgrade with fwtool check support Device profiles are automatical

[LEDE-DEV] [PATCH 02/11] build: unzip: perform operations quietly

2016-12-31 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- include/unpack.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/unpack.mk b/include/unpack.mk index 3fabf46..1f19402 100644 --- a/include/unpack.mk +++ b/include/unpack.mk @@ -12,7 +12,7 @@ else HOST_TAR:=$(TAR) endif TAR_CMD=$(HO

[LEDE-DEV] [PATCH 05/11] sunxi: fix dts name for Mele M9

2016-12-31 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- target/linux/sunxi/image/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/sunxi/image/Makefile b/target/linux/sunxi/image/Makefile index ce805f6..c7d90a2 100644 --- a/target/linux/sunxi/image/Makefile +++ b/target/linux/sun

[LEDE-DEV] [PATCH 08/11] sunxi: make sdcard image with squashfs as rootfs

2016-12-31 Thread Yousong Zhou
Two things that need to be noted - There is no partition type id allocated for squashfs yet. In the case of sunxi, any non-zero value should work and we keep it 83 (the value for ext4) - Remaining spare space within the rootfs partition, not the entire sdcard space will be formated as

[LEDE-DEV] [PATCH 09/11] base-files: export x86 platform upgrade functions to common.sh

2016-12-31 Thread Yousong Zhou
Signed-off-by: Yousong Zhou --- package/base-files/files/lib/upgrade/common.sh | 90 .../x86/base-files/lib/preinit/79_move_config | 4 +- .../linux/x86/base-files/lib/upgrade/platform.sh | 97 +- 3 files changed, 95 insertions(+), 96 deletions

Re: [LEDE-DEV] Adding new targets/subtargets

2016-12-31 Thread Yousong Zhou
On 31 December 2016 at 06:13, Philip Prindeville wrote: > >> On Dec 29, 2016, at 7:46 PM, Yousong Zhou wrote: >> >> On 30 December 2016 at 03:29, Philip Prindeville >> wrote: >>> On Dec 28, 2016, at 7:57 PM, Yousong Zhou wrote: >>> >>> The x86/64/config-default is missing the following switches