[LEDE-DEV] Separate dts for Cavium routers

2016-11-01 Thread Michał Osowiecki
Hi. I'm struggling with Cavium based routers from Cisco trying 
to port them to LEDE. I do it in spare time but it get more and more 
complicated (especially board detection) and i would like to ask you - 
is it good idea to disable CONFIG_BUILTIN_DTB, create separate dts for 
Ubiquity ER and ERLITE and append them at image build process? Do LEDE 
support any other Cavium routers?


I do not have access to any Ubiquity routers so i will not be able to 
test if this method works. Also, from kernel version 4.4 we have  
CONFIG_MIPS_CMDLINE_FROM_DTB option so cmdline patch could be no more needed


Do you like the idea? I'm aware it could be too dificult for me but i'll 
try. Or  could someone provide patches?


Regards,
Michal




___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] cavium: Ignore MEM boot param when too small

2016-06-08 Thread Michał Osowiecki
Cisco RV0XX u-boot sets MEM=2048 as boot param. We assume that at least 
4MB (mem_alloc_size) of ram is needed to run linux on cavium boards, so 
if mem < 4M - ignore it and set default value



Signed-off-by: Michał Osowiecki <michal.osowie...@gmail.com>

--- a/arch/mips/cavium-octeon/setup.c   2016-06-06 18:15:32.0 +0200
+++ b/arch/mips/cavium-octeon/setup.c   2016-06-08 15:28:56.642919151 +0200
@@ -941,6 +941,11 @@
 * to consistently work.
 */
mem_alloc_size = 4 << 20;
+
+   /* Ignore bootarg MEM <= 4MB */
+   if (MAX_MEMORY <= mem_alloc_size)
+   MAX_MEMORY = 512ull << 20;
+
if (mem_alloc_size > MAX_MEMORY)
mem_alloc_size = MAX_MEMORY;


___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev