Re: [OpenWrt-Devel] [PATCH] config: enable some useful features on !SMALL_FLASH devices

2019-01-15 Thread Jo-Philipp Wich
Hi,

I lean towards enabling these features by default.

With the eventual switch to 4.19, most 4M boards will fall of the cliff
anyway.


Regards,
Jo



signature.asc
Description: OpenPGP digital signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [RFC 4/6] x86: geode: shrink amount of default packages

2019-01-15 Thread Philip Prindeville
Inline

> On Jan 15, 2019, at 12:40 AM, Tomasz Maciej Nowak  wrote:
> 
> Hi Philip
> 
> W dniu 14.01.2019 o 21:10, Philip Prindeville pisze:
> 
>> Why is the hwclock being dropped everywhere?
> 
> It's provided by busybox and installed by default, also greping for its usage 
> in target/linux/x86/base-files returned nothing. Am I missing something, is 
> the full fledged one used somewhere or by something?


It’s used at least two places.

When you first get the board and bring it up and set the clock, since it’s not 
usually set correctly by the factory, and it’s used by the ntpd script to save 
the synchronized time when the system is taken down.


> 
>> And who says the geos2, net5501, or alix2 are obsolete?
> 
> They are not obsolete by any means, only the way to assign packages for 
> specific device changes. Please take a look at patch nr 2 in this RFC and 
> section adding target/linux/x86/image/geode.mk. There You have almost all 
> packages replicated with additional geos device profile. Now You'll get two 
> images, one generic, and one for geos. This distinction is here because with 
> old way of adding packages, the generic image would end up with lot of 
> useless, geos/dsl specific packages.


So why is there a Device/geos but none of the other SBC’s?

And why doesn’t the geos DEVICE_PACKAGES include -kmod-via-rhine, since it uses 
the kmod-8139cp instead?

-Philip



> 
>> I have some running right here…
> 
> I have WRAP which runs perfectly fine with these changes.
> 
> Regards, Tomasz
> 
> -- 
> TMN


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH 5/9] sunxi: add support for pine64 lts

2019-01-15 Thread Oskari Lemmelä
Hi,

On 14.1.2019 21.03, Petr Štetiar wrote:
> Oskari Lemmela  [2019-01-14 19:54:25]:
>
> Hi,
>
>> CPU: R18 High Performance Quad-core 64-bit Cortex-A53
>> GPU: Mali400MP2 OpenGL ES 2.0/1.1/1.0, OpenVG 1.1, EGL
>> Memory: 2GB LPDDR3 (shared with GPU)
>> Onboard Storage: TF card / NOR flash(16MB)
>> Onboard Network: 1000M/100M Ethernet RJ45
> can you please add flashing instructions here?
>
> From https://openwrt.org/submitting-patches
>
> "If you add support for new hardware: Include in your commit message a short
> description of the hardware and how to install OpenWrt on it. Have a look at
> the recent additions for some examples."
Here is flashing instructions which I added to commit message:


    Flash instruction:
    1. Uncompress sdcard.img.gz image and write it to SD-card
   $ zcat  | dd of=/dev/sdX bs=1M
    2. Connect ethernet cable and boot Pine64 LTS with SD-card
    3. Copy u-boot-with-spl.bin to 192.168.1.1:/tmp
    4. Write u-boot image to the SPI flash
   $ mtd write  /dev/mtd0
    5. Copy squashfs-sysupgrade.bin image to 192.168.1.1:/tmp
    6. Run sysupgrade to copy the image and current configuration
   to the SPI flash
   $ sysupgrade 

>> +  IMAGES += sysupgrade.bin u-boot-with-spl.bin
>> +  IMAGE/u-boot-with-spl.bin := sunxi-uboot | check-size 896k
> Please use ARTIFACTS[1] for u-boot-with-spl.bin image.
Thanks, I did not notice this one. Already updated commit to use it.
> 1. 
> https://git.openwrt.org/?p=openwrt/openwrt.git;a=commit;h=493c9a35516c27a8ec412d97e63c8cf6f41a57ea
>
> -- ynezz

Oskari

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] config: enable some useful features on !SMALL_FLASH devices

2019-01-15 Thread Daniel Golle
Hi Jonas,

On Mon, Jan 07, 2019 at 03:48:29PM +0100, Daniel Golle wrote:
> On Mon, Jan 07, 2019 at 02:39:26PM +, Jonas Gorski wrote:
> > On Mon, 7 Jan 2019 at 14:21, Daniel Golle  wrote:
> > >
> > > On Mon, Jan 07, 2019 at 01:17:34PM +, Jonas Gorski wrote:
> > > > On Mon, 7 Jan 2019 at 11:42, Petr Štetiar  wrote:
> > > > >
> > > > > Daniel Golle  [2019-01-07 10:03:09]:
> > > > >
> > > > > Hi,
> > > > >
> > > > > > One. The MT7621 EVB. The TP-LINK RE350 v1 can probably be converted 
> > > > > > to
> > > > > > a more sane flash partition layout to gain another megabyte or so.
> > > > >
> > > > > I've looked only at mt7621, so this was just example from one 
> > > > > subtarget of
> > > > > ramips target. So I tend to believe, that there's quite more such 
> > > > > cases hidden
> > > > > in the tree. Please correct me if I'm wrong.
> > > > >
> > > > > > Why specific devices? Wouldn't all devices with the resources (which
> > > > > > boils down to !SMALL_FLASH) be potentially more useful with those
> > > > > > kernel features enabled?
> > > > >
> > > > > You currently can't use !SMALL_FLASH, because this is target/subtarget
> > > > > specific feature, not per device feature. I think, that in order to 
> > > > > use this
> > > > > feature, you would need to convert/fix all devices like that TP-Link 
> > > > > RE350
> > > > > from all (sub)targets into tiny subtarget and then you could freely 
> > > > > use
> > > > > !SMALL_FLASH.
> > > >
> > > > I agree with not abusing small_flash for that. It has a clear defined
> > > > meaning, and shouldn't have unrelated side effects.
> > >
> > > So what else would the SMALL_FLASH symbol be used for then?
> > > A quick grep reveals that currently already quite a few kernel config
> > > defaults are set according to SMALL_FLASH, see
> > >
> > > origin/master:Config-kernel.in-
> > > origin/master:Config-kernel.in-config KERNEL_SWAP
> > > origin/master:Config-kernel.in- bool "Support for paging of anonymous 
> > > memory (swap)"
> > > origin/master:Config-kernel.in: default y if !SMALL_FLASH
> > > --
> > > origin/master:Config-kernel.in-
> > > origin/master:Config-kernel.in-config KERNEL_KALLSYMS
> > > origin/master:Config-kernel.in- bool "Compile the kernel with symbol 
> > > table information"
> > > origin/master:Config-kernel.in: default y if !SMALL_FLASH
> > > --
> > > origin/master:Config-kernel.in-
> > > origin/master:Config-kernel.in-config KERNEL_DEBUG_INFO
> > > origin/master:Config-kernel.in- bool "Compile the kernel with debug 
> > > information"
> > > origin/master:Config-kernel.in: default y if !SMALL_FLASH
> > > --
> > > origin/master:Config-kernel.in-config KERNEL_ELF_CORE
> > > origin/master:Config-kernel.in- bool "Enable process core dump support"
> > > origin/master:Config-kernel.in- select KERNEL_COREDUMP
> > > origin/master:Config-kernel.in: default y if !SMALL_FLASH
> > > ...
> > 
> > Most of these option only influence the size of the kernel, and have
> > no further runtime side effects. Also small_flash has impact on the
> > compression options used.
> 
> They sure do, cache size on small CPUs is a very finite resource
> and having a kernel with debug symbols will make things slower, of
> course. SWAP also makes every single malloc call more expensive and
> is just as well only useful on devices with block storage (ok, and
> zramswap, but lets not talk about that).
> 
> > 
> > >
> > > >
> > > > I think a new opt-in symbol for those targets with hardware
> > > > virtualization support and/or beefy enough cpus would make more sense.
> > > > Those virtualization options (probably) don't come for free, they will
> > > > have also a memory and performance impact even when not actively used.
> > > > How much that is (and if this assumption is true) would be nice to
> > > > have in the PR/patch for it.
> > >
> > > This is not about virtualization and none of the features selected
> > > requires any special hardware support apart from the few extra
> > > kilobytes of flash and memory. You are still right, it doesn't come
> > > all for free at runtime in terms of CPU cycles, but the impact is
> > > hardly measurable.
> > >
> > > But sure, I understand that this can be opt-in, so lets call it
> > > 'full_kernel' or something like that and have target maintainers
> > > decide themselves. In the picture I get after browsing through
> > > all targets, it would still end up such that
> > > full_kernel == !small_flash is true for all cases.
> > 
> > "Full kernel" really has no real meaning and would describe
> > everything. The name should clearly describe the (non-default) feature
> > set it enables.
> 
> But they are not even necessarily related, just closer to the vanilla
> default config which is used eg. by Debian and most other Linux distros
> so projects like LVM2 started to rely on them.
> My goal here is to bring modern generic kernel features into OpenWrt,
> they are quite unrelated apart from being left out for space reasons
> and because for a min

[OpenWrt-Devel] Problems related to High Load on new LuCI

2019-01-15 Thread Fernando Frediani

Hi all.

I just wanted to let everyone know about this pretty interesting 
discussion on OpenWrt Forum about the ongoing problem of High Load on 
new LuCI interface since 18.01.


https://forum.openwrt.org/t/proposal-and-solution-for-high-load-fix-on-openwrt-luci/29006

Perhaps people and developrs who not follow the forum can give their 
input or find out more about this issue which is happening with several 
people reporting it.
That may not be the final solution but may encourage people to 
contribute or find out more about towards the resolution of the issue.


Regards


___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel