Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
Yeah I think that wants a RW filesystem, haha. My apologies in advance to all other ramips devices, then, I’ll add an init.d script for ./target/linux/ramips/base-files/etc/init.d/S99bootcount to do this. On Tue, Apr 26, 2016 at 2:35 PM, John Crispin wrote: > ok, this might not work, just move i

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread John Crispin
ok, this might not work, just move it to the init.d folder On 26/04/2016 08:31, Andrew Yong wrote: > Alright. > > Is it acceptable to call `. /lib/functions/uci-defaults.sh` in a preinit file? > > If it does not violate the sanctity of any OpenWrt init conventions, > I’ll do that and test drive

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
Alright. Is it acceptable to call `. /lib/functions/uci-defaults.sh` in a preinit file? If it does not violate the sanctity of any OpenWrt init conventions, I’ll do that and test drive it. On Tue, Apr 26, 2016 at 2:06 PM, John Crispin wrote: > > > On 26/04/2016 03:24, Andrew Yong wrote: >> "alt

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread John Crispin
On 26/04/2016 03:24, Andrew Yong wrote: > "alternatively call uboot-env directly without the fw_* abstraction layer" > > Pardon the obtuse question but how would I go about doing this? It > sounds like the cleanest way to do things. > > I'd like to avoid calling uci-default earlier than it need

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
"alternatively call uboot-env directly without the fw_* abstraction layer" Pardon the obtuse question but how would I go about doing this? It sounds like the cleanest way to do things. I'd like to avoid calling uci-default earlier than it needs to be, and potentially messing up other things in th

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread John Crispin
On 25/04/2016 18:01, Andrew Yong wrote: > diff --git a/target/linux/ramips/base-files/lib/preinit/04_handle_bootcount > b/target/linux/ramips/base-files/lib/preinit/04_handle_bootcount > new file mode 100644 > index 000..570fe16 > --- /dev/null > +++ b/target/linux/ramips/base-files/lib/prei

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
Hopefully third time's the charm: PATCHv1: This patch adds support for the SamKnows version 8.0 Whitebox, built around the MT7621 platform. 2.4GHz appears to be working, albeit poorly; 5GHz not working yet. PATCHv2: Fixed LED name in DTS. PATCHv3:  DTS: Syntax error fixed, LEDs and buttons mappe

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
Working on my email client choice. Anyway, preinit seems to be before fw_setenv gets its bearings: Board is SamKnows Whitebox 8, resetting bootcount environment variable... Cannot parse config file: No such file or directory Error: environment not initialized Router still soft bricks after 3 rebo

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread John Crispin
i'm afraid they are both badly formatted On 25/04/2016 16:51, Andrew Yong wrote: > PATCHv1: > This patch adds support for the SamKnows version 8.0 Whitebox, built > around the MT7621 platform. 2.4GHz appears to be working, albeit > poorly; 5GHz not working yet. > > PATCHv2: > Fixed LED name in

Re: [OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
Re-sending, newline issues (oops) diff --git a/package/boot/uboot-envtools/files/ramips b/package/boot/uboot-envtools/files/ramips index a759bcc..9ad5974 100644 --- a/package/boot/uboot-envtools/files/ramips +++ b/package/boot/uboot-envtools/files/ramips @@ -24,7 +24,8 @@ linkits7688d | \ wsr-600

[OpenWrt-Devel] [PATCHv5] ramips: add support for SamKnows SK-WB8

2016-04-25 Thread Andrew Yong
PATCHv1: This patch adds support for the SamKnows version 8.0 Whitebox, built around the MT7621 platform. 2.4GHz appears to be working, albeit poorly; 5GHz not working yet. PATCHv2: Fixed LED name in DTS. PATCHv3: DTS: Syntax error fixed, LEDs and buttons mapped correctly now - diag.sh updated t