Re: [OpenWrt-Devel] Linux 4.x

2015-06-10 Thread Baptiste Clenet
2015-06-10 9:09 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/10/2015 12:35 PM, Baptiste Clenet wrote:

 2015-06-09 6:05 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On 06/08/2015 07:32 PM, Baptiste Clenet wrote:

 2015-06-08 15:23 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:


 (...)

 Thanks Varka for your help!

 It compiles now without those module:
 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - wpan-tools

 It's basically the same conf as yours.

 I don't get why those module would make an error since they worked
 well with Linux 3.18.

 Here are my tries:
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers


 Have you added this ?

 - kmod-mac802154
 - kmod-wpan-at86rf230

 Yes this packages weren't in OPENWRT Tree. I removed them and use the
 right ones now.
 - kmod-wpan-at86rf230 doesn't exist either, perhaps you meant
 kmod-at86rf230 under Wireless?


 Yes..  :-)

 I added:
 - kmod-at86rf230
 - kmod-ieee802154
 - kmod-mac802154
 - kmod-ipv6

 I got the following error:
 Package kmod-at86rf230 is missing dependencies for the following
 libraries:
 regmap-core.ko
 regmap-spi.ko


 Try this patch:

 diff --git a/package/kernel/linux/modules/wpan.mk
 b/package/kernel/linux/modules/wpan.mk
 index 6b07809..412d70e 100644
 --- a/package/kernel/linux/modules/wpan.mk
 +++ b/package/kernel/linux/modules/wpan.mk
 @@ -71,7 +71,7 @@ $(eval $(call KernelPackage,fakelb))
  define KernelPackage/at86rf230
SUBMENU:=$(WPAN_MENU)
TITLE:=AT86RF230 transceiver driver
 -  DEPENDS:=+kmod-mac802154
 +  DEPENDS:=+kmod-mac802154 +kmod-regmap
KCONFIG:=CONFIG_IEEE802154_AT86RF230 \
 CONFIG_SPI=y \
 CONFIG_SPI_MASTER=y
 @@ -107,7 +107,7 @@ $(eval $(call KernelPackage,cc2520))
  define KernelPackage/ieee802154_6lowpan
SUBMENU:=$(WPAN_MENU)
TITLE:= 6LoWPAN support over IEEE-802.15.4
 -  DEPENDS:=@LINUX_4_0 +kmod-6lowpan
 +  DEPENDS:=@LINUX_4_0 +kmod-6lowpan +kmod-ieee802154
KCONFIG:=CONFIG_IEEE802154_6LOWPAN
FILES:= \
 $(LINUX_DIR)/net/ieee802154/6lowpan/ieee802154_6lowpan.ko@ge4.0 \
 --
 1.7.9.5

 --
 Varka Bhadram


Thanks Varka, works well now!
Next step is making at86rf230 work seamlessly.
Cheers,

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-10 Thread Varka Bhadram

On 06/10/2015 12:35 PM, Baptiste Clenet wrote:


2015-06-09 6:05 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

On 06/08/2015 07:32 PM, Baptiste Clenet wrote:


2015-06-08 15:23 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:



(...)


Thanks Varka for your help!

It compiles now without those module:
- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- wpan-tools

It's basically the same conf as yours.

I don't get why those module would make an error since they worked
well with Linux 3.18.

Here are my tries:
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers


Have you added this ?


- kmod-mac802154
- kmod-wpan-at86rf230

Yes this packages weren't in OPENWRT Tree. I removed them and use the
right ones now.
- kmod-wpan-at86rf230 doesn't exist either, perhaps you meant
kmod-at86rf230 under Wireless?


Yes..  :-)


I added:
- kmod-at86rf230
- kmod-ieee802154
- kmod-mac802154
- kmod-ipv6

I got the following error:
Package kmod-at86rf230 is missing dependencies for the following libraries:
regmap-core.ko
regmap-spi.ko


Try this patch:

diff --git a/package/kernel/linux/modules/wpan.mk 
b/package/kernel/linux/modules/wpan.mk
index 6b07809..412d70e 100644
--- a/package/kernel/linux/modules/wpan.mk
+++ b/package/kernel/linux/modules/wpan.mk
@@ -71,7 +71,7 @@ $(eval $(call KernelPackage,fakelb))
 define KernelPackage/at86rf230
   SUBMENU:=$(WPAN_MENU)
   TITLE:=AT86RF230 transceiver driver
-  DEPENDS:=+kmod-mac802154
+  DEPENDS:=+kmod-mac802154 +kmod-regmap
   KCONFIG:=CONFIG_IEEE802154_AT86RF230 \
CONFIG_SPI=y \
CONFIG_SPI_MASTER=y
@@ -107,7 +107,7 @@ $(eval $(call KernelPackage,cc2520))
 define KernelPackage/ieee802154_6lowpan
   SUBMENU:=$(WPAN_MENU)
   TITLE:= 6LoWPAN support over IEEE-802.15.4
-  DEPENDS:=@LINUX_4_0 +kmod-6lowpan
+  DEPENDS:=@LINUX_4_0 +kmod-6lowpan +kmod-ieee802154
   KCONFIG:=CONFIG_IEEE802154_6LOWPAN
   FILES:= \
$(LINUX_DIR)/net/ieee802154/6lowpan/ieee802154_6lowpan.ko@ge4.0 \
--
1.7.9.5

--
Varka Bhadram
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-10 Thread Baptiste Clenet
2015-06-09 6:05 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 07:32 PM, Baptiste Clenet wrote:

 2015-06-08 15:23 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:


 (...)


 Thanks Varka for your help!

 It compiles now without those module:
 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - wpan-tools

 It's basically the same conf as yours.

 I don't get why those module would make an error since they worked
 well with Linux 3.18.

 Here are my tries:
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers


 Have you added this ?

 - kmod-mac802154
 - kmod-wpan-at86rf230


Yes this packages weren't in OPENWRT Tree. I removed them and use the
right ones now.
- kmod-wpan-at86rf230 doesn't exist either, perhaps you meant
kmod-at86rf230 under Wireless?

I added:
- kmod-at86rf230
- kmod-ieee802154
- kmod-mac802154
- kmod-ipv6

I got the following error:
Package kmod-at86rf230 is missing dependencies for the following libraries:
regmap-core.ko
regmap-spi.ko

Same error if I add kmod-regmap (which should add those missing
libraries, shouldn't it?)

Baptiste


 This also.

 I don't see these packages in OpenWrt tree.
 Please use already existing package stuff...

 All these packages available in Kernel Modules - Wireless Drivers
 in your menuconfig.


 - wpan-tools
 -- ERROR: module

 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/ieee802154/af_802154.ko'
 is missing.

 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - wpan-tools
 ---ERROR: module

 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
 is missing.


 --
 Varka Bhadram

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Varka Bhadram

On 06/08/2015 07:32 PM, Baptiste Clenet wrote:


2015-06-08 15:23 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:



(...)



Thanks Varka for your help!

It compiles now without those module:
- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- wpan-tools

It's basically the same conf as yours.

I don't get why those module would make an error since they worked
well with Linux 3.18.

Here are my tries:
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers


Have you added this ?


- kmod-mac802154
- kmod-wpan-at86rf230


This also.

I don't see these packages in OpenWrt tree.
Please use already existing package stuff...

All these packages available in Kernel Modules - Wireless Drivers
in your menuconfig.


- wpan-tools
-- ERROR: module
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/ieee802154/af_802154.ko'
is missing.

- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- wpan-tools
---ERROR: module
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
is missing.


--
Varka Bhadram
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-07 19:24 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

 Le 6 juin 2015 15:40, Roman Yeryomin leroi.li...@gmail.com a écrit :


 On 6 June 2015 at 09:21, Dirk Neukirchen dirkneukirc...@web.de wrote:
  On 05.06.2015 16:00, Baptiste Clenet wrote:
  Hi OpenWRT developers,
 
  Is there any plan to port OPENWRT on Linux 4.x? (Or is it already
  done?)
 
 
 
 
  - ar71xx: ar8216/ar8316/ar8xxx driver is broken
  on 8337N and some unknown router (reported yesterday on IRC)
  look at [3] if anybody is interested

 That was me, probably. I'm trying 4.0.4 on several ar71xx routers/APs,
 mostly Ubiquiti. All have the same problem:
 http://p.tet.rtu.lv/pbzn5sspm/wvtsep/raw
 I think the problem is inside ag71xx (ethernet driver) and related to
 timers and/or interrupts but not sure.

 Regards,
 Roman
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

 Hi,
 Thanks for your answer, I'm using the board Ralink MT7628. I've just seen
 that MT7628 board has Linux 3.18 as default. May I change to Linux 4.0.4 ?
 Will it work ? I'm going to try tomorrow.

 Cheers,

 Baptiste


I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed
and I got an error:

touch 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/.quilt_used

touch 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/.prepared
if [ -s 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/patches/series
]; then (cd 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4;
if quilt --quiltrc=- next /dev/null 21; then quilt --quiltrc=- push
-a; else quilt --quiltrc=- top /dev/null 21; fi ); fi

touch 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/.quilt_checked
/trunk/scripts/kconfig.pl 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/.config.target

Parse error at 3/trunk/scripts/kconfig.pl line 137.

make[4]: *** 
[/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/.configured]
Error 255

make[4]: Leaving directory `/trunk/target/linux/ramips'

make[3]: *** [compile] Error 2

make[3]: Leaving directory `/trunk/target/linux'

make[2]: *** [target/linux/compile] Error 2

make[2]: Leaving directory `/trunk'

make[1]: *** 
[/trunk/staging_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/stamp/.target_compile]
Error 2 make[1]: Leaving directory `/trunk'

make: *** [world] Erreur 2


Cheers,

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 9:29 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 12:54 PM, Baptiste Clenet wrote:

 2015-06-07 19:24 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

 Le 6 juin 2015 15:40, Roman Yeryomin leroi.li...@gmail.com a écrit :

 On 6 June 2015 at 09:21, Dirk Neukirchen dirkneukirc...@web.de wrote:

 On 05.06.2015 16:00, Baptiste Clenet wrote:

 Hi OpenWRT developers,

 Is there any plan to port OPENWRT on Linux 4.x? (Or is it already
 done?)



 - ar71xx: ar8216/ar8316/ar8xxx driver is broken
 on 8337N and some unknown router (reported yesterday on IRC)
 look at [3] if anybody is interested

 That was me, probably. I'm trying 4.0.4 on several ar71xx routers/APs,
 mostly Ubiquiti. All have the same problem:
 http://p.tet.rtu.lv/pbzn5sspm/wvtsep/raw
 I think the problem is inside ag71xx (ethernet driver) and related to
 timers and/or interrupts but not sure.

 Regards,
 Roman
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

 Hi,
 Thanks for your answer, I'm using the board Ralink MT7628. I've just seen
 that MT7628 board has Linux 3.18 as default. May I change to Linux 4.0.4
 ?
 Will it work ? I'm going to try tomorrow.

 Cheers,

 Baptiste


 I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
 in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


 Also you need to specify the configuration file for 4.0.4 kernel.

 just copy the file target/linux/ramips/mt7628/config-3.18 as
 target/linux/ramips/mt7628/config-4.0

 I hope it will resolve this error.

 --
 Varka Bhadram



Thanks Varka, I copied the files, I'm trying to make now. On question
came up, what about patches? There are many patches for Linux 3.18, is
there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
folder for 3.18 patches.

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Varka Bhadram

On 06/08/2015 12:54 PM, Baptiste Clenet wrote:

2015-06-07 19:24 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

Le 6 juin 2015 15:40, Roman Yeryomin leroi.li...@gmail.com a écrit :

On 6 June 2015 at 09:21, Dirk Neukirchen dirkneukirc...@web.de wrote:

On 05.06.2015 16:00, Baptiste Clenet wrote:

Hi OpenWRT developers,

Is there any plan to port OPENWRT on Linux 4.x? (Or is it already
done?)




- ar71xx: ar8216/ar8316/ar8xxx driver is broken
on 8337N and some unknown router (reported yesterday on IRC)
look at [3] if anybody is interested

That was me, probably. I'm trying 4.0.4 on several ar71xx routers/APs,
mostly Ubiquiti. All have the same problem:
http://p.tet.rtu.lv/pbzn5sspm/wvtsep/raw
I think the problem is inside ag71xx (ethernet driver) and related to
timers and/or interrupts but not sure.

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Hi,
Thanks for your answer, I'm using the board Ralink MT7628. I've just seen
that MT7628 board has Linux 3.18 as default. May I change to Linux 4.0.4 ?
Will it work ? I'm going to try tomorrow.

Cheers,

Baptiste


I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


Also you need to specify the configuration file for 4.0.4 kernel.

just copy the file target/linux/ramips/mt7628/config-3.18 as
target/linux/ramips/mt7628/config-4.0

I hope it will resolve this error.

--
Varka Bhadram
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Varka Bhadram

On 06/08/2015 01:36 PM, Baptiste Clenet wrote:



I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


Also you need to specify the configuration file for 4.0.4 kernel.

just copy the file target/linux/ramips/mt7628/config-3.18 as
target/linux/ramips/mt7628/config-4.0

I hope it will resolve this error.

--
Varka Bhadram



Thanks Varka, I copied the files, I'm trying to make now. On question
came up, what about patches? There are many patches for Linux 3.18, is
there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
folder for 3.18 patches.


There may be so-many patches merged into 4.0 from patches-3.18 directory..?

I just created a directory with the name patches-4.0 under
target/linux/ramips/ .

I think its a bad solution. But the build was successful and able generate the
binaries in bin/ramips directory. I don't know whether these binaries working
or not. I don't have hardware to test these binaries.

I only copied one patch from patches-3.18 to 4.0 to fix one build error.
i.e., 0103-MIPS-OWRTDTB.patch

Hope it helps. Its just a shoot in the dark for your problem.

Test it and update the results.

Thanks

--
Varka Bhadram
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Varka Bhadram
On Jun 8, 2015 6:41 PM, Baptiste Clenet bapcle...@gmail.com wrote:

 2015-06-08 14:46 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
  2015-06-08 14:20 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
  On 06/08/2015 05:48 PM, Baptiste Clenet wrote:
 
  2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 
  On 06/08/2015 05:27 PM, Baptiste Clenet wrote:
 
  2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 
  2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 
  On 06/08/2015 01:36 PM, Baptiste Clenet wrote:
 
  I've edited variable KERNEL_PATCHVER:=3.18 to
  KERNEL_PATCHVER:=4.0.4
  in target/Linux/ramips/Makefile in order to get Linux 4.0.4
  installed
 
 
  Also you need to specify the configuration file for 4.0.4
kernel.
 
  just copy the file target/linux/ramips/mt7628/config-3.18 as
  target/linux/ramips/mt7628/config-4.0
 
  I hope it will resolve this error.
 
  --
  Varka Bhadram
 
  Thanks Varka, I copied the files, I'm trying to make now. On
question
  came up, what about patches? There are many patches for Linux
3.18,
  is
  there any for Linux 4.0? target/linux/ramips/mt7628 only
contains a
  folder for 3.18 patches.
 
 
  There may be so-many patches merged into 4.0 from patches-3.18
  directory..?
 
  I just created a directory with the name patches-4.0 under
  target/linux/ramips/ .
 
  I think its a bad solution. But the build was successful and able
  generate
  the
  binaries in bin/ramips directory. I don't know whether these
binaries
  working
  or not. I don't have hardware to test these binaries.
 
  Why is it a bad solution?
 
  I only copied one patch from patches-3.18 to 4.0 to fix one build
  error.
  i.e., 0103-MIPS-OWRTDTB.patch
 


 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/MT7628.dtb
 DTB marker not found!
 Was it the error?

 I added 'trunk/target/linux/ramips/patches-4.0/0103-MIPS-OWRTDTB.patch'
 but it didn't solve the problem. Do I need to tell OPENWRT to use
 patches-4.0?

Try
make target/linux/{clean,prepare} V=s
make

 Baptiste

  Hope it helps. Its just a shoot in the dark for your problem.
 
  Test it and update the results.
 
  Thanks
 
  --
  Varka Bhadram
 
  Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:
 
  WARNING: kmod-6lowpan-iphc is not available in the kernel config -
  generating empty package
 
  ...
 
  ERROR: module
 
 
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
  is missing.
 
  This is about a package I added in menuconfig but I need them.
Those
  package worked well while compiling with Linux 3.18. Any idea?
 
 
  What package did you add..?
 
  I added :
  - kmod-bluetooth
  - kmod-bluetooth_6lowpan
  - kmod-6lowpan
  - kmod-ieee802154
  - kmod-ieee802154-6lowpan
  - kmod-ieee802154-drivers
  - kmod-mac802154
  - kmod-wpan-at86rf230
  - iw
  - wpan-tools
 
 
  These are already came into OpenWrt with [1].
 
  [1]:
https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html
 
  --
  Varka Bhadram
 
 
  Yes, I saw, I meant by added set in menuconfig.
 
  You meant that with or without those module, it should work?
 
  Baptiste
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 15:23 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On Jun 8, 2015 6:41 PM, Baptiste Clenet bapcle...@gmail.com wrote:

 2015-06-08 14:46 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
  2015-06-08 14:20 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
  On 06/08/2015 05:48 PM, Baptiste Clenet wrote:
 
  2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 
  On 06/08/2015 05:27 PM, Baptiste Clenet wrote:
 
  2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 
  2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 
  On 06/08/2015 01:36 PM, Baptiste Clenet wrote:
 
  I've edited variable KERNEL_PATCHVER:=3.18 to
  KERNEL_PATCHVER:=4.0.4
  in target/Linux/ramips/Makefile in order to get Linux 4.0.4
  installed
 
 
  Also you need to specify the configuration file for 4.0.4
  kernel.
 
  just copy the file target/linux/ramips/mt7628/config-3.18 as
  target/linux/ramips/mt7628/config-4.0
 
  I hope it will resolve this error.
 
  --
  Varka Bhadram
 
  Thanks Varka, I copied the files, I'm trying to make now. On
  question
  came up, what about patches? There are many patches for Linux
  3.18,
  is
  there any for Linux 4.0? target/linux/ramips/mt7628 only contains
  a
  folder for 3.18 patches.
 
 
  There may be so-many patches merged into 4.0 from patches-3.18
  directory..?
 
  I just created a directory with the name patches-4.0 under
  target/linux/ramips/ .
 
  I think its a bad solution. But the build was successful and able
  generate
  the
  binaries in bin/ramips directory. I don't know whether these
  binaries
  working
  or not. I don't have hardware to test these binaries.
 
  Why is it a bad solution?
 
  I only copied one patch from patches-3.18 to 4.0 to fix one build
  error.
  i.e., 0103-MIPS-OWRTDTB.patch
 


 /trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/MT7628.dtb
 DTB marker not found!
 Was it the error?

 I added 'trunk/target/linux/ramips/patches-4.0/0103-MIPS-OWRTDTB.patch'
 but it didn't solve the problem. Do I need to tell OPENWRT to use
 patches-4.0?

 Try
 make target/linux/{clean,prepare} V=s
 make

 Baptiste

  Hope it helps. Its just a shoot in the dark for your problem.
 
  Test it and update the results.
 
  Thanks
 
  --
  Varka Bhadram
 
  Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:
 
  WARNING: kmod-6lowpan-iphc is not available in the kernel config -
  generating empty package
 
  ...
 
  ERROR: module
 
 
  '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
  is missing.
 
  This is about a package I added in menuconfig but I need them.
  Those
  package worked well while compiling with Linux 3.18. Any idea?
 
 
  What package did you add..?
 
  I added :
  - kmod-bluetooth
  - kmod-bluetooth_6lowpan
  - kmod-6lowpan
  - kmod-ieee802154
  - kmod-ieee802154-6lowpan
  - kmod-ieee802154-drivers
  - kmod-mac802154
  - kmod-wpan-at86rf230
  - iw
  - wpan-tools
 
 
  These are already came into OpenWrt with [1].
 
 
  [1]:https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html
 
  --
  Varka Bhadram
 
 
  Yes, I saw, I meant by added set in menuconfig.
 
  You meant that with or without those module, it should work?
 
  Baptiste


Thanks Varka for your help!

It compiles now without those module:
- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- wpan-tools

It's basically the same conf as yours.

I don't get why those module would make an error since they worked
well with Linux 3.18.

Here are my tries:
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- wpan-tools
-- ERROR: module
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/ieee802154/af_802154.ko'
is missing.

- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- wpan-tools
---ERROR: module
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
is missing.
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 14:20 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 05:48 PM, Baptiste Clenet wrote:

 2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On 06/08/2015 05:27 PM, Baptiste Clenet wrote:

 2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

 2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On 06/08/2015 01:36 PM, Baptiste Clenet wrote:

 I've edited variable KERNEL_PATCHVER:=3.18 to
 KERNEL_PATCHVER:=4.0.4
 in target/Linux/ramips/Makefile in order to get Linux 4.0.4
 installed


 Also you need to specify the configuration file for 4.0.4 kernel.

 just copy the file target/linux/ramips/mt7628/config-3.18 as
 target/linux/ramips/mt7628/config-4.0

 I hope it will resolve this error.

 --
 Varka Bhadram

 Thanks Varka, I copied the files, I'm trying to make now. On question
 came up, what about patches? There are many patches for Linux 3.18,
 is
 there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
 folder for 3.18 patches.


 There may be so-many patches merged into 4.0 from patches-3.18
 directory..?

 I just created a directory with the name patches-4.0 under
 target/linux/ramips/ .

 I think its a bad solution. But the build was successful and able
 generate
 the
 binaries in bin/ramips directory. I don't know whether these binaries
 working
 or not. I don't have hardware to test these binaries.

 Why is it a bad solution?

 I only copied one patch from patches-3.18 to 4.0 to fix one build
 error.
 i.e., 0103-MIPS-OWRTDTB.patch

 Hope it helps. Its just a shoot in the dark for your problem.

 Test it and update the results.

 Thanks

 --
 Varka Bhadram

 Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

 WARNING: kmod-6lowpan-iphc is not available in the kernel config -
 generating empty package

 ...

 ERROR: module

 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
 is missing.

 This is about a package I added in menuconfig but I need them. Those
 package worked well while compiling with Linux 3.18. Any idea?


 What package did you add..?

 I added :
 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - iw
 - wpan-tools


 These are already came into OpenWrt with [1].

 [1]:https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html

 --
 Varka Bhadram


Yes, I saw, I meant by added set in menuconfig.

You meant that with or without those module, it should work?

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Varka Bhadram

On 06/08/2015 05:48 PM, Baptiste Clenet wrote:

2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

On 06/08/2015 05:27 PM, Baptiste Clenet wrote:

2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

On 06/08/2015 01:36 PM, Baptiste Clenet wrote:


I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


Also you need to specify the configuration file for 4.0.4 kernel.

just copy the file target/linux/ramips/mt7628/config-3.18 as
target/linux/ramips/mt7628/config-4.0

I hope it will resolve this error.

--
Varka Bhadram


Thanks Varka, I copied the files, I'm trying to make now. On question
came up, what about patches? There are many patches for Linux 3.18, is
there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
folder for 3.18 patches.


There may be so-many patches merged into 4.0 from patches-3.18
directory..?

I just created a directory with the name patches-4.0 under
target/linux/ramips/ .

I think its a bad solution. But the build was successful and able
generate
the
binaries in bin/ramips directory. I don't know whether these binaries
working
or not. I don't have hardware to test these binaries.

Why is it a bad solution?


I only copied one patch from patches-3.18 to 4.0 to fix one build error.
i.e., 0103-MIPS-OWRTDTB.patch

Hope it helps. Its just a shoot in the dark for your problem.

Test it and update the results.

Thanks

--
Varka Bhadram


Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

WARNING: kmod-6lowpan-iphc is not available in the kernel config -
generating empty package

...

ERROR: module
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
is missing.

This is about a package I added in menuconfig but I need them. Those
package worked well while compiling with Linux 3.18. Any idea?


What package did you add..?

I added :
- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- iw
- wpan-tools


These are already came into OpenWrt with [1].

[1]:https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html

--
Varka Bhadram
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 01:36 PM, Baptiste Clenet wrote:


 I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
 in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


 Also you need to specify the configuration file for 4.0.4 kernel.

 just copy the file target/linux/ramips/mt7628/config-3.18 as
 target/linux/ramips/mt7628/config-4.0

 I hope it will resolve this error.

 --
 Varka Bhadram


 Thanks Varka, I copied the files, I'm trying to make now. On question
 came up, what about patches? There are many patches for Linux 3.18, is
 there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
 folder for 3.18 patches.


 There may be so-many patches merged into 4.0 from patches-3.18 directory..?

 I just created a directory with the name patches-4.0 under
 target/linux/ramips/ .

 I think its a bad solution. But the build was successful and able generate
 the
 binaries in bin/ramips directory. I don't know whether these binaries
 working
 or not. I don't have hardware to test these binaries.

 I only copied one patch from patches-3.18 to 4.0 to fix one build error.
 i.e., 0103-MIPS-OWRTDTB.patch

 Hope it helps. Its just a shoot in the dark for your problem.

 Test it and update the results.

 Thanks

 --
 Varka Bhadram


Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

WARNING: kmod-6lowpan-iphc is not available in the kernel config -
generating empty package

...

ERROR: module 
'/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
is missing.

This is about a package I added in menuconfig but I need them. Those
package worked well while compiling with Linux 3.18. Any idea?

Varka, which configuration did you use? Only the minimal? (I mean set
Target and Subtarget in menuconfig)

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 01:36 PM, Baptiste Clenet wrote:


 I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
 in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


 Also you need to specify the configuration file for 4.0.4 kernel.

 just copy the file target/linux/ramips/mt7628/config-3.18 as
 target/linux/ramips/mt7628/config-4.0

 I hope it will resolve this error.

 --
 Varka Bhadram


 Thanks Varka, I copied the files, I'm trying to make now. On question
 came up, what about patches? There are many patches for Linux 3.18, is
 there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
 folder for 3.18 patches.


 There may be so-many patches merged into 4.0 from patches-3.18 directory..?

 I just created a directory with the name patches-4.0 under
 target/linux/ramips/ .

 I think its a bad solution. But the build was successful and able generate
 the
 binaries in bin/ramips directory. I don't know whether these binaries
 working
 or not. I don't have hardware to test these binaries.

Why is it a bad solution?


 I only copied one patch from patches-3.18 to 4.0 to fix one build error.
 i.e., 0103-MIPS-OWRTDTB.patch

 Hope it helps. Its just a shoot in the dark for your problem.

 Test it and update the results.

 Thanks

 --
 Varka Bhadram


 Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

 WARNING: kmod-6lowpan-iphc is not available in the kernel config -
 generating empty package

 ...

 ERROR: module 
 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
 is missing.

 This is about a package I added in menuconfig but I need them. Those
 package worked well while compiling with Linux 3.18. Any idea?

 Varka, which configuration did you use? Only the minimal? (I mean set
 Target and Subtarget in menuconfig)

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 05:27 PM, Baptiste Clenet wrote:

 2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

 2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On 06/08/2015 01:36 PM, Baptiste Clenet wrote:

 I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
 in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


 Also you need to specify the configuration file for 4.0.4 kernel.

 just copy the file target/linux/ramips/mt7628/config-3.18 as
 target/linux/ramips/mt7628/config-4.0

 I hope it will resolve this error.

 --
 Varka Bhadram

 Thanks Varka, I copied the files, I'm trying to make now. On question
 came up, what about patches? There are many patches for Linux 3.18, is
 there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
 folder for 3.18 patches.


 There may be so-many patches merged into 4.0 from patches-3.18
 directory..?

 I just created a directory with the name patches-4.0 under
 target/linux/ramips/ .

 I think its a bad solution. But the build was successful and able
 generate
 the
 binaries in bin/ramips directory. I don't know whether these binaries
 working
 or not. I don't have hardware to test these binaries.

 Why is it a bad solution?

 I only copied one patch from patches-3.18 to 4.0 to fix one build error.
 i.e., 0103-MIPS-OWRTDTB.patch

 Hope it helps. Its just a shoot in the dark for your problem.

 Test it and update the results.

 Thanks

 --
 Varka Bhadram

 Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

 WARNING: kmod-6lowpan-iphc is not available in the kernel config -
 generating empty package

 ...

 ERROR: module
 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
 is missing.

 This is about a package I added in menuconfig but I need them. Those
 package worked well while compiling with Linux 3.18. Any idea?


 What package did you add..?

I added :
- kmod-bluetooth
- kmod-bluetooth_6lowpan
- kmod-6lowpan
- kmod-ieee802154
- kmod-ieee802154-6lowpan
- kmod-ieee802154-drivers
- kmod-mac802154
- kmod-wpan-at86rf230
- iw
- wpan-tools

This conf worked with Linux 3.18.



 IEEE-802.15.4, 6LoWPAN and 6LoWPAN shared code b/w bluetooth and
 IEEE-802.15.4
 packages supported by OpenWrt now.


 Varka, which configuration did you use? Only the minimal? (I mean set
 Target and Subtarget in menuconfig)


 I just did the minimal configuration.

 --
 Varka Bhadram

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 14:46 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 2015-06-08 14:20 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 On 06/08/2015 05:48 PM, Baptiste Clenet wrote:

 2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On 06/08/2015 05:27 PM, Baptiste Clenet wrote:

 2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

 2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On 06/08/2015 01:36 PM, Baptiste Clenet wrote:

 I've edited variable KERNEL_PATCHVER:=3.18 to
 KERNEL_PATCHVER:=4.0.4
 in target/Linux/ramips/Makefile in order to get Linux 4.0.4
 installed


 Also you need to specify the configuration file for 4.0.4 kernel.

 just copy the file target/linux/ramips/mt7628/config-3.18 as
 target/linux/ramips/mt7628/config-4.0

 I hope it will resolve this error.

 --
 Varka Bhadram

 Thanks Varka, I copied the files, I'm trying to make now. On question
 came up, what about patches? There are many patches for Linux 3.18,
 is
 there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
 folder for 3.18 patches.


 There may be so-many patches merged into 4.0 from patches-3.18
 directory..?

 I just created a directory with the name patches-4.0 under
 target/linux/ramips/ .

 I think its a bad solution. But the build was successful and able
 generate
 the
 binaries in bin/ramips directory. I don't know whether these binaries
 working
 or not. I don't have hardware to test these binaries.

 Why is it a bad solution?

 I only copied one patch from patches-3.18 to 4.0 to fix one build
 error.
 i.e., 0103-MIPS-OWRTDTB.patch


 
/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/MT7628.dtb
DTB marker not found!
Was it the error?

I added 'trunk/target/linux/ramips/patches-4.0/0103-MIPS-OWRTDTB.patch'
but it didn't solve the problem. Do I need to tell OPENWRT to use
patches-4.0?

Baptiste

 Hope it helps. Its just a shoot in the dark for your problem.

 Test it and update the results.

 Thanks

 --
 Varka Bhadram

 Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:

 WARNING: kmod-6lowpan-iphc is not available in the kernel config -
 generating empty package

 ...

 ERROR: module

 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
 is missing.

 This is about a package I added in menuconfig but I need them. Those
 package worked well while compiling with Linux 3.18. Any idea?


 What package did you add..?

 I added :
 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - iw
 - wpan-tools


 These are already came into OpenWrt with [1].

 [1]:https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html

 --
 Varka Bhadram


 Yes, I saw, I meant by added set in menuconfig.

 You meant that with or without those module, it should work?

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Varka Bhadram

On 06/08/2015 05:27 PM, Baptiste Clenet wrote:


2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:

2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

On 06/08/2015 01:36 PM, Baptiste Clenet wrote:


I've edited variable KERNEL_PATCHVER:=3.18 to KERNEL_PATCHVER:=4.0.4
in target/Linux/ramips/Makefile in order to get Linux 4.0.4 installed


Also you need to specify the configuration file for 4.0.4 kernel.

just copy the file target/linux/ramips/mt7628/config-3.18 as
target/linux/ramips/mt7628/config-4.0

I hope it will resolve this error.

--
Varka Bhadram


Thanks Varka, I copied the files, I'm trying to make now. On question
came up, what about patches? There are many patches for Linux 3.18, is
there any for Linux 4.0? target/linux/ramips/mt7628 only contains a
folder for 3.18 patches.


There may be so-many patches merged into 4.0 from patches-3.18 directory..?

I just created a directory with the name patches-4.0 under
target/linux/ramips/ .

I think its a bad solution. But the build was successful and able generate
the
binaries in bin/ramips directory. I don't know whether these binaries
working
or not. I don't have hardware to test these binaries.

Why is it a bad solution?


We may miss few patches which are required by 4.0.

After testing the generated binaries with h/w without any problem
then it will be good.

--
Varka Bhadram
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-08 Thread Baptiste Clenet
2015-06-08 16:02 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 2015-06-08 15:23 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:

 On Jun 8, 2015 6:41 PM, Baptiste Clenet bapcle...@gmail.com wrote:

 2015-06-08 14:46 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
  2015-06-08 14:20 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
  On 06/08/2015 05:48 PM, Baptiste Clenet wrote:
 
  2015-06-08 14:10 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 
  On 06/08/2015 05:27 PM, Baptiste Clenet wrote:
 
  2015-06-08 13:49 GMT+02:00 Baptiste Clenet bapcle...@gmail.com:
 
  2015-06-08 10:53 GMT+02:00 Varka Bhadram varkabhad...@gmail.com:
 
  On 06/08/2015 01:36 PM, Baptiste Clenet wrote:
 
  I've edited variable KERNEL_PATCHVER:=3.18 to
  KERNEL_PATCHVER:=4.0.4
  in target/Linux/ramips/Makefile in order to get Linux 4.0.4
  installed
 
 
  Also you need to specify the configuration file for 4.0.4
  kernel.
 
  just copy the file target/linux/ramips/mt7628/config-3.18 as
  target/linux/ramips/mt7628/config-4.0
 
  I hope it will resolve this error.
 
  --
  Varka Bhadram
 
  Thanks Varka, I copied the files, I'm trying to make now. On
  question
  came up, what about patches? There are many patches for Linux
  3.18,
  is
  there any for Linux 4.0? target/linux/ramips/mt7628 only contains
  a
  folder for 3.18 patches.
 
 
  There may be so-many patches merged into 4.0 from patches-3.18
  directory..?
 
  I just created a directory with the name patches-4.0 under
  target/linux/ramips/ .
 
  I think its a bad solution. But the build was successful and able
  generate
  the
  binaries in bin/ramips directory. I don't know whether these
  binaries
  working
  or not. I don't have hardware to test these binaries.
 
  Why is it a bad solution?
 
  I only copied one patch from patches-3.18 to 4.0 to fix one build
  error.
  i.e., 0103-MIPS-OWRTDTB.patch
 


 /trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/MT7628.dtb
 DTB marker not found!
 Was it the error?

 I added 'trunk/target/linux/ramips/patches-4.0/0103-MIPS-OWRTDTB.patch'
 but it didn't solve the problem. Do I need to tell OPENWRT to use
 patches-4.0?

 Try
 make target/linux/{clean,prepare} V=s
 make

 Baptiste

  Hope it helps. Its just a shoot in the dark for your problem.
 
  Test it and update the results.
 
  Thanks
 
  --
  Varka Bhadram
 
  Without adding the patch 0103-MIPS-OWRTDTB.patch, I got an error:
 
  WARNING: kmod-6lowpan-iphc is not available in the kernel config -
  generating empty package
 
  ...
 
  ERROR: module
 
 
  '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
  is missing.
 
  This is about a package I added in menuconfig but I need them.
  Those
  package worked well while compiling with Linux 3.18. Any idea?
 
 
  What package did you add..?
 
  I added :
  - kmod-bluetooth
  - kmod-bluetooth_6lowpan
  - kmod-6lowpan
  - kmod-ieee802154
  - kmod-ieee802154-6lowpan
  - kmod-ieee802154-drivers
  - kmod-mac802154
  - kmod-wpan-at86rf230
  - iw
  - wpan-tools
 
 
  These are already came into OpenWrt with [1].
 
 
  [1]:https://lists.openwrt.org/pipermail/openwrt-devel/2015-April/032515.html
 
  --
  Varka Bhadram
 
 
  Yes, I saw, I meant by added set in menuconfig.
 
  You meant that with or without those module, it should work?
 
  Baptiste


 Thanks Varka for your help!

 It compiles now without those module:
 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - wpan-tools

 It's basically the same conf as yours.

 I don't get why those module would make an error since they worked
 well with Linux 3.18.

 Here are my tries:
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - wpan-tools
 -- ERROR: module
 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/ieee802154/af_802154.ko'
 is missing.

 - kmod-bluetooth
 - kmod-bluetooth_6lowpan
 - kmod-6lowpan
 - kmod-ieee802154
 - kmod-ieee802154-6lowpan
 - kmod-ieee802154-drivers
 - kmod-mac802154
 - kmod-wpan-at86rf230
 - wpan-tools
 ---ERROR: module
 '/trunk/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_mt7628/linux-4.0.4/net/bluetooth/rfcomm/rfcomm.ko'
 is missing.


Just to let you know the result with a minimal configuration for the
MT7628 and Linux 4.0.4:


Starting kernel ...

[0.00] Linux version 4.0.4 (-@ubuntu) (gcc version 4.8.3
(OpenWrt/Linaro GCC 4.8-2014.04 r45769) ) #1 Mon Jun 8 15:47:55 CEST
2015
[0.00] Board has DDR2
[0.00] Analog PMU set to hw control
[0.00] Digital PMU set to hw control
[0.00] SoC Type: Ralink MT7628AN ver:1 eco:2
[0.00] bootconsole [early0] enabled
[0.00] CPU0 revision is: 00019655 (MIPS 24KEc)
[0.00] MIPS: machine is Mediatek 

Re: [OpenWrt-Devel] Linux 4.x

2015-06-07 Thread Baptiste Clenet
Le 6 juin 2015 15:40, Roman Yeryomin leroi.li...@gmail.com a écrit :

 On 6 June 2015 at 09:21, Dirk Neukirchen dirkneukirc...@web.de wrote:
  On 05.06.2015 16:00, Baptiste Clenet wrote:
  Hi OpenWRT developers,
 
  Is there any plan to port OPENWRT on Linux 4.x? (Or is it already
done?)
 
 
 
 
  - ar71xx: ar8216/ar8316/ar8xxx driver is broken
  on 8337N and some unknown router (reported yesterday on IRC)
  look at [3] if anybody is interested

 That was me, probably. I'm trying 4.0.4 on several ar71xx routers/APs,
 mostly Ubiquiti. All have the same problem:
 http://p.tet.rtu.lv/pbzn5sspm/wvtsep/raw
 I think the problem is inside ag71xx (ethernet driver) and related to
 timers and/or interrupts but not sure.

 Regards,
 Roman
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Hi,
Thanks for your answer, I'm using the board Ralink MT7628. I've just seen
that MT7628 board has Linux 3.18 as default. May I change to Linux 4.0.4 ?
Will it work ? I'm going to try tomorrow.

Cheers,

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-06 Thread Dirk Neukirchen
On 05.06.2015 16:00, Baptiste Clenet wrote:
 Hi OpenWRT developers,
 
 Is there any plan to port OPENWRT on Linux 4.x? (Or is it already done?)
 
 

There is a patch available for Kernel 4.1-rc1 [1]
it does not apply cleanly anymore, have a look at my refreshed version [2]
There might be some compile issues depending your target, see the other folders 
at [2]

4.x commits are a little bit on hold since CC which has 3.18 
is not branched yet and probably needs some more testing

Some testing results for 4.0/4.1:
- afaik omap was running but produces an oops in bootup
(afair Arch Linux produced an oops too during bootup)

- ar71xx: ar8216/ar8316/ar8xxx driver is broken
on 8337N and some unknown router (reported yesterday on IRC)
look at [3] if anybody is interested


References:
[1]: http://patchwork.ozlabs.org/patch/465774/
[2]: https://github.com/plntyk/openwrt-patches/tree/master/kernel_4_1
[3]: ar71xx with 4.1-rc1 switch driver error: paste.debian.net/205511

 
 Wpan-tools works mainly on bluetooth-next kernel which is base on
 Linux 4.x so it doesn't currently work with OpenWRT.
 
 Cheers,
 
 Baptiste
 ___
 openwrt-devel mailing list
 openwrt-devel@lists.openwrt.org
 https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
 
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Linux 4.x

2015-06-06 Thread Hauke Mehrtens
On 06/06/2015 08:21 AM, Dirk Neukirchen wrote:
 On 05.06.2015 16:00, Baptiste Clenet wrote:
 Hi OpenWRT developers,

 Is there any plan to port OPENWRT on Linux 4.x? (Or is it already done?)


 
 There is a patch available for Kernel 4.1-rc1 [1]
 it does not apply cleanly anymore, have a look at my refreshed version [2]
 There might be some compile issues depending your target, see the other 
 folders at [2]
 
 4.x commits are a little bit on hold since CC which has 3.18 
 is not branched yet and probably needs some more testing
 
 Some testing results for 4.0/4.1:
 - afaik omap was running but produces an oops in bootup
 (afair Arch Linux produced an oops too during bootup)
 
 - ar71xx: ar8216/ar8316/ar8xxx driver is broken
 on 8337N and some unknown router (reported yesterday on IRC)
 look at [3] if anybody is interested
 
 
 References:
 [1]: http://patchwork.ozlabs.org/patch/465774/
 [2]: https://github.com/plntyk/openwrt-patches/tree/master/kernel_4_1
 [3]: ar71xx with 4.1-rc1 switch driver error: paste.debian.net/205511
 

Because of the CC release kernel updates are on hold, we want to get the
existing stuff stable first.

If your are interested here are some patches to make kernel 4.1 work,
they are based on the patches Dirk referenced:
https://github.com/hauke/openwrt/tree/bcm53xx-4.1

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-06 Thread Roman Yeryomin
On 6 June 2015 at 09:21, Dirk Neukirchen dirkneukirc...@web.de wrote:
 On 05.06.2015 16:00, Baptiste Clenet wrote:
 Hi OpenWRT developers,

 Is there any plan to port OPENWRT on Linux 4.x? (Or is it already done?)




 - ar71xx: ar8216/ar8316/ar8xxx driver is broken
 on 8337N and some unknown router (reported yesterday on IRC)
 look at [3] if anybody is interested

That was me, probably. I'm trying 4.0.4 on several ar71xx routers/APs,
mostly Ubiquiti. All have the same problem:
http://p.tet.rtu.lv/pbzn5sspm/wvtsep/raw
I think the problem is inside ag71xx (ethernet driver) and related to
timers and/or interrupts but not sure.

Regards,
Roman
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] Linux 4.x

2015-06-05 Thread Baptiste Clenet
Hi OpenWRT developers,

Is there any plan to port OPENWRT on Linux 4.x? (Or is it already done?)



Wpan-tools works mainly on bluetooth-next kernel which is base on
Linux 4.x so it doesn't currently work with OpenWRT.

Cheers,

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


Re: [OpenWrt-Devel] Linux 4.x

2015-06-05 Thread Sedat Dilek
On Fri, Jun 5, 2015 at 4:00 PM, Baptiste Clenet bapcle...@gmail.com wrote:
 Hi OpenWRT developers,

 Is there any plan to port OPENWRT on Linux 4.x? (Or is it already done?)


Linux v4.0.4 is supported, see...

http://git.openwrt.org/?p=openwrt.git;a=blob;f=include/kernel-version.mk

 Wpan-tools works mainly on bluetooth-next kernel which is base on
 Linux 4.x so it doesn't currently work with OpenWRT.


What do you mean by bluetooth-next?
Linux v4.1 is at -rc6.
So you mean bluetooth stuff for Linux v4.2?

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