Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
Hi, I applied the new 7 patches from Wojtek (see mail "[PATCH 0/7] mpc85xx: P1010RDB and P1020WLAN support"), compiled the sources and the p1020wlan image boots. With the patches the kernel recognized the 2 cores. But the RAM problem is not gone. I also tested the eth1 interface. It works ;) I get an IP over DHCP and I can ping the outside world. The two WLAN-Cards are recognized without visible problems. Association to an open wireless network and scan also works. This time there is a watchdog device but I don't manage to get an automated reboot. Greetings, Rainer ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
> Hello, > > On 03/28/2012 09:08 AM, Wojciech Dubowik wrote: > > Unless somebody else wants to do it I will try to consolidate > > the patches for mpc85xx and post for review. > > Do you have any progress? I am working at the moment on P1020WLAN dts file. I have now eth0 and eth1 working but there are still some things I don't quite understand i.e. when I map eTsec3 to eth2 in dts it shows as eth1 in linux. On the other hand maybe it's good so. I will post patches today or tomorrow once I have them cleaned up. Status: * upgraded kernel of mpc85xx to 3.3 * added watchdog module makefile * p1010 rdb support * p1020wlan support * rtc clock on p1010 TODO: * flash layouts for future support of sysupgrade * nand flash support for p1010 and p1020 * rtc clock on p1020 * figure out why autonegotiation takes so long on p1020wlan * mac id mappings from u-boot to linux, atm mac's of eth2 and eth1 are swapped Wojtek > > > Hopefully P1020WLAN dts file won't take too long so I can do it > > this > > week. > > Do you need the official Freescale patches for the P1020rdb board? I have all released and public sdk. Or at least I think so. Thanks. > > Greetings, > > Rainer > > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
Hello, On 03/28/2012 09:08 AM, Wojciech Dubowik wrote: > Unless somebody else wants to do it I will try to consolidate > the patches for mpc85xx and post for review. Do you have any progress? > Hopefully P1020WLAN dts file won't take too long so I can do it this > week. Do you need the official Freescale patches for the P1020rdb board? Greetings, Rainer ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
Hello, Unless somebody else wants to do it I will try to consolidate the patches for mpc85xx and post for review. I can test p1010 and p1020 on my side. The older mpc854x will be only compile tested. Hopefully P1020WLAN dts file won't take too long so I can do it this week. Wojtek - Original Message - > Hey, > > On Tue, 27 Mar 2012 18:05:29 +0200, Rainer 'Rei' Schuth > wrote: > > > On 03/27/2012 05:31 PM, Wojciech Dubowik wrote: > > Thank you, > > > > I would apply the patch and try to run OpenWRT on the P1020rdb. I > > let > > you know my experience. > > > >> I don't have any older mpc85xx devices so I don't know whether > >> they need patches with latest kernel or not. At the moment > >> I have just removed them. > > > > The Freescale developer team make for the P1020rdb around 170 > > patches > > for the 2.6.32 Linux kernel. Many of them are meanwhile upstream > > but > > some are hardware hacks and driver changes. Its hard to say which > > patches really work and which don't without a working OS. > > If you have something basic up and running, I'm happy to review and > (if > needed) clean up the patches. Given how much I could nuke from the > freescale patches previosly, you probably will be fine porting about > 10 > over from the 170 ;) > > > Imre > ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
Hello, On 03/27/2012 08:41 PM, Imre Kaloz wrote: > If you have something basic up and running, I'm happy to review and (if > needed) clean up the patches. Given how much I could nuke from the > freescale patches previosly, you probably will be fine porting about 10 > over from the 170 ;) What do you need exactly? I applied the patch from Wojtek and worked. But we need some kernel patches. Greetings, Rainer ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, On 03/27/2012 06:05 PM, Rainer 'Rei' Schuth wrote: > I would apply the patch and try to run OpenWRT on the P1020rdb. I let > you know my experience. I managed to boot a standard ramfs image with default out of the box configuration. Developer enviromet settings: - OpenWRT SVN trunk rev 31088 - Target System Freescale MPC85xx - with the patch from Wojtek u-boot: setenv gatewayip 10.26.254.16 setenv netmask 255.255.0.0 setenv ipaddr 10.26.1.6 setenv serverip 10.26.254.16 setenv fdtfile [full-path-to-file]/openwrt-mpc85xx-p1020rdb.fdt setenv bootfile [full-path-to-file]/openwrt-mpc85xx-uImage setenv bootargs root=/dev/ram rw console=$consoledev,$baudrate $othbootargs ramdisk_size=12; tftp $loadaddr $bootfile; tftp $fdtaddr $fdtfile; bootm $loadaddr - $fdtaddr It then boots OpenWRT :) But, there are some problems: 1. Bug with the missing eth1 (second ethernet interface) confirmed Kernel says: [ 418.361439] net eth1: PHY already attached [ 418.365566] net eth1: could not attach to PHY 2. the kernel only sees one of two processors grep cpu /proc/cpuinfo | wc -l 1 3. the kernel only sees 776892 kB of the available (1048576 kB) memory 4. no working watchdog It's a good start ;) Rainer -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.17 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJPcjRKAAoJEPizOL253ODVXF0IAJzWsofTgMhljAekQB+u5pL9 SFaHjbNvgl3K1qAJkojgl7YM4PAFn9jzzL8ZB8EDf/ljA4pSBdBmv9t80qnHSFbA nmMMnzRAgv+059mWVnAEL5xQNr4558/Ys8clYYfN8rFlzaNPMo2/j2qLqxtGkDY6 PGwPnw9oEBubAXBMefXs6T4dxxX33EOLj7c3FIDEtIl0Cqy55FVaknvtQtJp6z0v /XS9x6+2+VGQGzOkjl8XAh2myvvzO7JRNb1I062rNywzR8FKFHnrgaglaMg8nDtX LP/9u/gjU7hnahXGElgfkvQ1cHY2SWnUHg9ynJivBzllgD+H/tSVBD9D1LvXJj0= =WNVM -END PGP SIGNATURE- ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
Hey, On Tue, 27 Mar 2012 18:05:29 +0200, Rainer 'Rei' Schuth wrote: On 03/27/2012 05:31 PM, Wojciech Dubowik wrote: Thank you, I would apply the patch and try to run OpenWRT on the P1020rdb. I let you know my experience. I don't have any older mpc85xx devices so I don't know whether they need patches with latest kernel or not. At the moment I have just removed them. The Freescale developer team make for the P1020rdb around 170 patches for the 2.6.32 Linux kernel. Many of them are meanwhile upstream but some are hardware hacks and driver changes. Its hard to say which patches really work and which don't without a working OS. If you have something basic up and running, I'm happy to review and (if needed) clean up the patches. Given how much I could nuke from the freescale patches previosly, you probably will be fine porting about 10 over from the 170 ;) Imre ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
On 03/27/2012 05:31 PM, Wojciech Dubowik wrote: Thank you, I would apply the patch and try to run OpenWRT on the P1020rdb. I let you know my experience. > I don't have any older mpc85xx devices so I don't know whether > they need patches with latest kernel or not. At the moment > I have just removed them. The Freescale developer team make for the P1020rdb around 170 patches for the 2.6.32 Linux kernel. Many of them are meanwhile upstream but some are hardware hacks and driver changes. Its hard to say which patches really work and which don't without a working OS. Greetings, Rainer ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
So I have cooked sth up based on latest trunk. I have made mistake in my setup and I accidentally used p1010rdb device tree instead of p1020rdb and got eth0 to work ;o) Device tree for 1020WLAN needs some more work to get physical addresses right. Anyway the current image should run on WAN interface. I don't have any older mpc85xx devices so I don't know whether they need patches with latest kernel or not. At the moment I have just removed them. I have used following command for booting: setenv fdtfile openwrt-mpc85xx-p1020rdb.fdt setenv bootfile openwrt-mpc85xx-uImage setenv bootcmd 'run ramboot2' setenv ramboot2 'setenv bootargs root=/dev/ram rw console=$consoledev, $baudrate $othbootargs ramdisk_size=12;tftp $loadaddr $bootfile; tftp $fdtaddr $fdtfile;bootm $loadaddr - $fdtaddr' and the patch >From bd32a8f6c3e64ba787ab3f2214ae35a12ea8ad30 Mon Sep 17 00:00:00 2001 From: Wojciech Dubowik Date: Tue, 27 Mar 2012 17:18:04 +0200 Subject: [PATCH 1/1] mpc85xx: Experimental support for Feeescale P1010RDB and P1020WLAN Signed-off-by: Wojciech Dubowik --- target/linux/mpc85xx/Makefile |2 +- target/linux/mpc85xx/config-3.3| 255 target/linux/mpc85xx/image/Makefile|8 +- .../patches-3.3/200-p1020-dts-eth0-hack.patch | 47 .../patches-3.3/201-p1010-dts-typo-fix.patch | 11 + 5 files changed, 318 insertions(+), 5 deletions(-) create mode 100644 target/linux/mpc85xx/config-3.3 create mode 100644 target/linux/mpc85xx/patches-3.3/200-p1020-dts-eth0-hack.patch create mode 100644 target/linux/mpc85xx/patches-3.3/201-p1010-dts-typo-fix.patch diff --git a/target/linux/mpc85xx/Makefile b/target/linux/mpc85xx/Makefile index 3543438..91d608c 100644 --- a/target/linux/mpc85xx/Makefile +++ b/target/linux/mpc85xx/Makefile @@ -13,7 +13,7 @@ CFLAGS:=-Os -pipe -fno-caller-saves -mcpu=8540 FEATURES:=spe_fpu ramdisk MAINTAINER:=Imre Kaloz -LINUX_VERSION:=2.6.38.8 +LINUX_VERSION:=3.3 include $(INCLUDE_DIR)/target.mk diff --git a/target/linux/mpc85xx/config-3.3 b/target/linux/mpc85xx/config-3.3 new file mode 100644 index 000..7c8adb6 --- /dev/null +++ b/target/linux/mpc85xx/config-3.3 @@ -0,0 +1,255 @@ +# CONFIG_40x is not set +# CONFIG_44x is not set +# CONFIG_ADVANCED_OPTIONS is not set +# CONFIG_ARCH_DMA_ADDR_T_64BIT is not set +CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y +CONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=y +CONFIG_ARCH_HAS_CPU_IDLE_WAIT=y +CONFIG_ARCH_HAS_ILOG2_U32=y +CONFIG_ARCH_HAS_WALK_MEMORY=y +CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y +CONFIG_ARCH_HIBERNATION_POSSIBLE=y +CONFIG_ARCH_MAY_HAVE_PC_FDC=y +# CONFIG_ARCH_NO_VIRT_TO_BUS is not set +# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set +CONFIG_ARCH_REQUIRE_GPIOLIB=y +CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y +CONFIG_ARCH_SUPPORTS_MSI=y +CONFIG_ARCH_SUSPEND_POSSIBLE=y +CONFIG_ARCH_WANT_OPTIONAL_GPIOLIB=y +CONFIG_AUDIT_ARCH=y +CONFIG_BCMA_POSSIBLE=y +CONFIG_BOOKE=y +CONFIG_BOUNCE=y +CONFIG_CMDLINE="console=ttyS0,115200" +CONFIG_CMDLINE_BOOL=y +# CONFIG_CPM2 is not set +CONFIG_DEBUG_BUGVERBOSE=y +CONFIG_DECOMPRESS_LZMA=y +CONFIG_DEFAULT_UIMAGE=y +CONFIG_DEVKMEM=y +CONFIG_DNOTIFY=y +CONFIG_DTC=y +# CONFIG_E200 is not set +CONFIG_E500=y +CONFIG_EARLY_PRINTK=y +CONFIG_ELF_CORE=y +CONFIG_ENABLE_MUST_CHECK=y +# CONFIG_EPAPR_BOOT is not set +CONFIG_FREEZER=y +CONFIG_FSL_BOOKE=y +CONFIG_FSL_EMB_PERFMON=y +CONFIG_FSL_LBC=y +CONFIG_FSL_PCI=y +CONFIG_FSL_PMC=y +CONFIG_FSL_PQ_MDIO=y +CONFIG_FSL_SOC=y +CONFIG_FSL_SOC_BOOKE=y +CONFIG_FSL_ULI1575=y +CONFIG_GENERIC_ATOMIC64=y +CONFIG_GENERIC_BUG=y +CONFIG_GENERIC_CLOCKEVENTS=y +CONFIG_GENERIC_CLOCKEVENTS_BUILD=y +CONFIG_GENERIC_CMOS_UPDATE=y +# CONFIG_GENERIC_CPU_DEVICES is not set +CONFIG_GENERIC_GPIO=y +CONFIG_GENERIC_IRQ_SHOW=y +CONFIG_GENERIC_IRQ_SHOW_LEVEL=y +CONFIG_GENERIC_ISA_DMA=y +CONFIG_GENERIC_NVRAM=y +CONFIG_GENERIC_PCI_IOMAP=y +# CONFIG_GENERIC_TBSYNC is not set +CONFIG_GENERIC_TIME_VSYSCALL=y +CONFIG_GEN_RTC=y +# CONFIG_GEN_RTC_X is not set +CONFIG_GIANFAR=y +CONFIG_GPIOLIB=y +CONFIG_GPIO_MPC8XXX=y +# CONFIG_HAMRADIO is not set +CONFIG_HAS_DMA=y +CONFIG_HAS_IOMEM=y +CONFIG_HAS_IOPORT=y +CONFIG_HAS_RAPIDIO=y +CONFIG_HAVE_ARCH_JUMP_LABEL=y +CONFIG_HAVE_ARCH_KGDB=y +CONFIG_HAVE_ARCH_TRACEHOOK=y +CONFIG_HAVE_DMA_API_DEBUG=y +CONFIG_HAVE_DMA_ATTRS=y +CONFIG_HAVE_DYNAMIC_FTRACE=y +CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y +CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y +CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y +CONFIG_HAVE_FUNCTION_TRACER=y +# CONFIG_HAVE_GENERIC_DMA_COHERENT is not set +CONFIG_HAVE_GENERIC_HARDIRQS=y +CONFIG_HAVE_IDE=y +CONFIG_HAVE_IOREMAP_PROT=y +CONFIG_HAVE_IRQ_WORK=y +CONFIG_HAVE_LATENCYTOP_SUPPORT=y +CONFIG_HAVE_MEMBLOCK=y +CONFIG_HAVE_MEMBLOCK_NODE_MAP=y +CONFIG_HAVE_OPROFILE=y +CONFIG_HAVE_PERF_EVENTS=y +CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y +# CONFIG_HAVE_SETUP_PER_CPU_AREA is not set +CONFIG_HAVE_SPARSE_IRQ=y +CONFIG_HAVE_SYSCALL_TRACEPOINTS=y +CONFIG_HZ=250 +# CONFIG_HZ_100 is not set +CONFIG_HZ_250=y
Re: [OpenWrt-Devel] [Projekt-wlan] Freescale P1020 WLAN support
On 03/27/2012 04:14 PM, Wojciech Dubowik wrote: > I have just tried kernel 3.3 on p1020wlan and it seems to run with > empty target patches folder. Do you have any Makefile and scripts for this? > Only eth0 is working at the moment and most probably dts file has > to be adapted slightly for eth1. Do work the mPCIe ports and the serial console? > What kind of other Freescale patches are you planning to port? > We are planning to port almost all patches from the ltib build from freescale. Many of them are in the mainline kernel others don't. I wrote in the OpenWRT wiki a page for the P1020WLAN[0] board. Rainer [0] http://wiki.openwrt.org/hardware/freescale/p1020 ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel