Re: [OpenWrt-Devel] ath79: Force usb host mode for ar9331

2019-11-18 Thread Micke Prag
Den 11/16/19 kl. 4:44 PM, skrev Piotr Dymacz: > Hi Micke, > > On 08.11.2019 13:30, Micke Prag wrote: >> Den 11/8/19 kl. 11:01 AM, skrev Piotr Dymacz: >>> Hi Micke, >>> >>> On 08.11.2019 08:36, Micke Prag wrote: >>>> In commit 00ea16557d [1]

Re: [OpenWrt-Devel] ath79: Force usb host mode for ar9331

2019-11-08 Thread Micke Prag
Den 11/8/19 kl. 11:01 AM, skrev Piotr Dymacz: > Hi Micke, > > On 08.11.2019 08:36, Micke Prag wrote: >> In commit 00ea16557d [1] the way usb is initiated was changed. Instead >> of initiate both ehci-platform and ci_hdrc the bootstrap status register >> is checked

[OpenWrt-Devel] ath79: Force usb host mode for ar9331

2019-11-07 Thread Micke Prag
In commit 00ea16557d [1] the way usb is initiated was changed. Instead of initiate both ehci-platform and ci_hdrc the bootstrap status register is checked and used to determine which platform to initiate. Unfortunately this break my board since the gpio used to determine this is used for other pur

[OpenWrt-Devel] ar71xx: Setting the usb mode from kernel board file

2016-11-08 Thread micke . prag
Hi, I have a board based on ar9331. According to the datasheet [1] page 81 the USB_MODE is determined by reading GPIO13 on boot. Unfortunately this pin is connected to some other function that ties this pin to ground and therefore the USB_MODE is set wrong. Does someone know how I can manual

[OpenWrt-Devel] [PATCH 2/2] ar71xx: add support for the Telldus TellStick ZNet Lite

2016-03-08 Thread Micke Prag
Signed-off-by: Micke Prag --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 5 + .../linux/ar71xx/base-files/etc/board.d/02_network | 5 + target/linux/ar71xx/base-files/etc/diag.sh | 3 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 + .../ar71xx/base-files/lib

[OpenWrt-Devel] [PATCH 1/2] base-files: add function ucidef_set_interface_raw to enable default configuration on interfaces other than lan and wan.

2016-03-08 Thread Micke Prag
Signed-off-by: Micke Prag --- package/base-files/files/lib/functions/uci-defaults.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/package/base-files/files/lib/functions/uci-defaults.sh b/package/base-files/files/lib/functions/uci-defaults.sh index 31e4687..b097fba 100755 --- a

[OpenWrt-Devel] [PATCHv2] base-files: add function ucidef_set_interface_raw

2016-03-01 Thread micke . prag
This function can be used to configure default configuration on interfaces other than lan and wan, such as wlan or other custom interfaces. Signed-off-by: Micke Prag --- package/base-files/files/lib/functions/uci-defaults.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/package

[OpenWrt-Devel] [PATCH] ar71xx: add support for the Telldus TellStick ZNet Lite

2016-03-01 Thread micke . prag
Signed-off-by: Micke Prag --- target/linux/ar71xx/base-files/etc/board.d/01_leds | 5 + .../linux/ar71xx/base-files/etc/board.d/02_network | 5 + target/linux/ar71xx/base-files/etc/diag.sh | 3 + target/linux/ar71xx/base-files/lib/ar71xx.sh | 6 + .../ar71xx/base-files/lib

[OpenWrt-Devel] [PATCH] base-files: add function ucidef_set_interface_raw

2016-02-29 Thread micke . prag
This function can be used to configure default configuration on interfaces other than lan and wan, such as wlan or other custom interfaces. Signed-off-by: Micke Prag --- package/base-files/files/lib/functions/uci-defaults.sh | 6 ++ 1 file changed, 6 insertions(+) diff --git a/package

Re: [OpenWrt-Devel] Setting uci defaults in trunk

2016-02-26 Thread micke . prag
2016-02-26 17:20 skrev Felix Fietkau: On 2016-02-26 15:54, micke.prag@telldus.sewrote: 2016-02-26 15:35 skrev Felix Fietkau: On 2016-02-26 15:27, micke.prag@telldus.sewrote: Hi I have a board config for a device that I am about to commit to OpenWRT. I am rebasing my work against trunk but

Re: [OpenWrt-Devel] Setting uci defaults in trunk

2016-02-26 Thread micke . prag
2016-02-26 15:35 skrev Felix Fietkau: On 2016-02-26 15:27, micke.prag@telldus.sewrote: Hi I have a board config for a device that I am about to commit to OpenWRT. I am rebasing my work against trunk but some things have changed since I made the config. My code was written against r46120 but s

[OpenWrt-Devel] Setting uci defaults in trunk

2016-02-26 Thread micke . prag
Hi I have a board config for a device that I am about to commit to OpenWRT. I am rebasing my work against trunk but some things have changed since I made the config. My code was written against r46120 but somethings doesn't work on r48800. My question is how I should update my code to "prope

Re: [OpenWrt-Devel] write/read from mtd ART partition

2016-02-16 Thread micke . prag
2016-02-16 11:43 skrev John kerry: Hi I am trying to write mac address and Serial number in ART partition. Creating 6 MTD partitions on "spi0.0": 0x-0x0004 : "u-boot" 0x0004-0x0005 : "u-boot-env" 0x0005-0x0068 : "rootfs" mtd: partition "rootf

Re: [OpenWrt-Devel] alternative for "pyserial+python-mini"

2015-06-26 Thread micke . prag
Hi, I have just created a pull request for an updated version of pyserial. https://github.com/openwrt/packages/pull/1485 Regards Micke Prag 2015-06-26 15:26 skrev Alexandru Ardelean: Ah, since that email, python became: - python-base - just the minimal to have a python interpreter running

[OpenWrt-Devel] musl breaks python

2015-06-22 Thread micke . prag
Hi, I have discovered that python is broken using musl. When a thread created using the threading library exists, python segfaults. This is a simple example application showing the issue: import time import threading def test(): print("Hello") time.sleep(2) print("wor

Re: [OpenWrt-Devel] [PATCH] Combine CA-certificates in one file

2015-06-12 Thread micke . prag
2015-06-12 09:39 skrev Cristian Morales Vega: On 12 June 2015 at 08:30, wrote: Some packages or libraries cannot use split ca cetificates in a folder. This adds a config to combine all certificates into one file. I have nothing against this patch. But do you have a list of such packages? I

Re: [OpenWrt-Devel] [PATCH] Combine CA-certificates in one file

2015-06-12 Thread micke . prag
2015-06-12 09:39 skrev Cristian Morales Vega: On 12 June 2015 at 08:30, wrote: Some packages or libraries cannot use split ca cetificates in a folder. This adds a config to combine all certificates into one file. I have nothing against this patch. But do you have a list of such packages? I

[OpenWrt-Devel] [PATCH] Combine CA-certificates in one file

2015-06-12 Thread micke . prag
From: Micke Prag Some packages or libraries cannot use split ca cetificates in a folder. This adds a config to combine all certificates into one file. Since this adds another ~300 Kb to the image this can be enabled by a config which is disabled by default. This also allows for packes to