[OpenWrt-Devel] OpenWRT 15.05:bcm2708 device tree

2015-09-17 Thread Jernej Izak
Hi,



I'm trying to activate device tree on OpenWRT 15.05 released version with 
bcm2708 platform (raspberry pi).

I activated it in kernel_menuconfig, but after building there is no dtb file on 
boot partition of sd card.



Is there any patch to fix the issue, or device tree is really not jet supported?



Best Regards

Jernej Izak

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


[OpenWrt-Devel] Adding device driver to OpenWRT (RBP)

2015-07-22 Thread Jernej Izak
Hi,

 

I am trying to integrate https://github.com/ivan19871002/nxp-pn5xx driver as
a kernel module to OpenWRT for RaspberyPi. 

 

What I did:

-Put nxp-pn5xx sources to drivers/misc of build_dir 

-Added obj-y += nxp-pn5xx/  to drivers/misc/Makefile

-Added source drivers/misc/nxp-pn5xx/Kconfig to
drivers/misc/Kconfig

 

After that can see  NXP PN5XX based driver in (Device Drivers - Misc
devices) I checked it.

 

Also tried to add structs showed below to bcm2807.c file :

 

struct pn544_i2c_platform_data pn544_platform_data = {

   .irq_gpio = 23,

   .ven_gpio = 24

};

 

// Use the actual device name rather than generic driver name

static struct i2c_board_info __initdata pn544_i2c_devices[] = {

   {

  I2C_BOARD_INFO(pn544, 0x28), .platform_data
= pn544_platform_data

   },

};

 

 

i2c_register_board_info_dt(1, pn544_i2c_devices,
ARRAY_SIZE(pn544_i2c_devices));

 

 

But after successful builded image, cannot see any module on OpenWRT.

 

In use 14.07 branch (Barrier Breaker) of OpenWRT.  

Maybe someone know what I did wrong?

 

With Best Regards

 

Jernej

 



smime.p7s
Description: S/MIME cryptographic signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Build errors when activating the Device Tree flag for Raspberry Pi

2015-07-14 Thread Jernej Izak
 

Hi,

 

About activating device tree on build OpenWRT with Raspberry pi. 

We tried to add patch “0002-kernel-fix-build-with-CONFIG_MTD-unset.patch” to
“/target/linux/generic/patches-3.18” in second try to
“/target/linux/brcm2708/patches-3.18 but we still got below error:

 

Applying patch generic/0002-kernel-fix-build-with-CONFIG_MTD-unset.patch
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 21
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|From f98ce9c7abf1e13443d129aba0e01fe63265445f Mon Sep 17 00:00:00 2001
|From: Hauke Mehrtens ha...@hauke-m.de mailto:ha...@hauke-m.de 
|Date: Sun, 12 Jul 2015 13:39:30 +0200
|Subject: [PATCH 2/2] kernel: fix build with CONFIG_MTD unset
|
|of_get_mac_address_mtd() accesses functions behind CONFIG_MTD without
|checking if it is available, deactivate this function if
|of_get_mac_address_mtd is not available.
|
|Signed-off-by: Hauke Mehrtens ha...@hauke-m.de mailto:ha...@hauke-m.de 
|---
| .../patches-3.18/681-NET-add-of_get_mac_address_mtd.patch   | 13
+++--
| .../patches-4.0/681-NET-add-of_get_mac_address_mtd.patch| 13
+++--
| .../patches-4.1/681-NET-add-of_get_mac_address_mtd.patch| 13
+++--
| 3 files changed, 33 insertions(+), 6 deletions(-)
|
|diff --git
a/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
b/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
|index 8ce17fe..2603f11 100644
|---
a/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
|+++
b/target/linux/generic/patches-3.18/681-NET-add-of_get_mac_address_mtd.patch
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 62
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|diff --git
a/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
b/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
|index 8ce17fe..2603f11 100644
|---
a/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
|+++
b/target/linux/generic/patches-4.0/681-NET-add-of_get_mac_address_mtd.patch
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
(Stripping trailing CRs from patch; use --binary to disable.)
can't find file to patch at input line 103
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--
|diff --git
a/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
b/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
|index 6542898..ecbe75c 100644
|---
a/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
|+++
b/target/linux/generic/patches-4.1/681-NET-add-of_get_mac_address_mtd.patch
--
No file to patch.  Skipping patch.
2 out of 2 hunks ignored
Patch generic/0002-kernel-fix-build-with-CONFIG_MTD-unset.patch does not
apply (enforce with -f)
make[4]: ***
[/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_eabi
/linux-brcm2708_bcm2708/linux-3.18.18/.quilt_checked] Error 1
make[4]: Leaving directory `/home/jernej/openwrt/target/linux/brcm2708'
make[3]: *** [compile] Error 2
make[3]: Leaving directory `/home/jernej/openwrt/target/linux'
make[2]: *** [target/linux/compile] Error 2
make[2]: Leaving directory `/home/jernej/openwrt'
make[1]: ***
[/home/jernej/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_ea
bi/stamp/.target_compile] Error 2
make[1]: Leaving directory `/home/jernej/openwrt'
make: *** [world] Error 2

 

 

With Best Regards, Mit Freundlichen Grüßen

 

Jernej Izak

 



smime.p7s
Description: S/MIME cryptographic signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] Build errors when activating the Device Tree flag for Raspberry Pi

2015-07-14 Thread Jernej Izak
Hi,

 

Revision from today without any changes fails with:

 

+ dd bs=512

if=/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_ea

bi/linux-brcm2708_bcm2708/tmp/openwrt-brcm2708-bcm2708-rpi-b-ext4-sdcard.bin

.boot

of=/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_ea

bi/linux-brcm2708_bcm2708/tmp/openwrt-brcm2708-bcm2708-rpi-b-ext4-sdcard.bin

seek=8192 conv=notrunc

40960+0 records in

40960+0 records out

20971520 bytes (21 MB) copied, 0.0961893 s, 218 MB/s

+ dd bs=512

if=/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_ea

bi/linux-brcm2708_bcm2708/root.ext4

of=/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_ea

bi/linux-brcm2708_bcm2708/tmp/openwrt-brcm2708-bcm2708-rpi-b-ext4-sdcard.bin

seek=57344 conv=notrunc

98304+0 records in

98304+0 records out

50331648 bytes (50 MB) copied, 0.184787 s, 272 MB/s

ifneq (y,)

bash: -c: line 0: syntax error near unexpected token `y,'

bash: -c: line 0: `ifneq (y,)'

make[5]: ***

[/home/jernej/openwrt/build_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_eabi

/linux-brcm2708_bcm2708/tmp/openwrt-brcm2708-bcm2708-rpi-b-ext4-sdcard.bin]

Error 1

make[5]: Leaving directory

`/home/jernej/openwrt/target/linux/brcm2708/image'

make[4]: *** [install] Error 2

make[4]: Leaving directory `/home/jernej/openwrt/target/linux/brcm2708'

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

make[3]: Leaving directory `/home/jernej/openwrt/target/linux'

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

make[2]: Leaving directory `/home/jernej/openwrt'

make[1]: ***

[/home/jernej/openwrt/staging_dir/target-arm_arm1176jzf-s+vfp_musl-1.1.10_ea

bi/stamp/.target_install] Error 2

make[1]: Leaving directory `/home/jernej/openwrt'

make: *** [world] Error 2

 

 

With Best Regards, Mit Freundlichen Grüßen

 

Jernej Izak

 



smime.p7s
Description: S/MIME cryptographic signature
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel