From owner-freebsd-arm@freebsd.org Tue Jul 28 07:19:16 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F1AD19AB3EB for ; Tue, 28 Jul 2015 07:19:16 +0000 (UTC) (envelope-from usenet@ulrich-grey.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A71922A for ; Tue, 28 Jul 2015 07:19:15 +0000 (UTC) (envelope-from usenet@ulrich-grey.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1438067950; l=12754; s=domk; d=ulrich-grey.de; h=Content-Type:Mime-Version:Subject:Cc:To:From:Date; bh=ZvUWwrU8825oAjJQpc4O/D6iplRa6qaICGMPv0XZu0s=; b=KxZqlz/SxPtr4nZkiT8OGqXMhluyBDULKSSiOXDWa+fQMNihE+8ir892michJBumrkH g9VAQpL0071B0MEhSucLmkO80RohzCbEGA0rIgxu2LJWzccjty4GgP0HGdCwCwTu7yObP JREe5QNlLD97h1/pw/27+jmDgJDI6o+NYhc= X-RZG-AUTH: :OX8Be0W8W+pMC3rDLL/lo2xV/LZTbZkYhOcjg8suic3iYr/B8J9Lzp3TJg47scv96pU= X-RZG-CLASS-ID: mo00 Received: from quad (p54868B27.dip0.t-ipconnect.de [84.134.139.39]) by smtp.strato.de (RZmta 37.8 DYNA|AUTH) with ESMTPSA id u0598fr6S7IuGHG (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 28 Jul 2015 09:18:56 +0200 (CEST) Date: Tue, 28 Jul 2015 07:18:54 +0000 From: Ulrich Grey To: freebsd-arm@freebsd.org Subject: FreeBSD on CuBox-i-4x4 (with HDMI patch) Message-Id: <20150728071854.357c89785e048ae6d64c1c70@ulrich-grey.de> Organization: - X-Mailer: Sylpheed 3.4.2 (GTK+ 2.24.25; armv6-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Multipart=_Tue__28_Jul_2015_07_18_54_+0000_nGhGu84a2sjPdWkZ" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2015 07:19:17 -0000 This is a multi-part message in MIME format. --Multipart=_Tue__28_Jul_2015_07_18_54_+0000_nGhGu84a2sjPdWkZ Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello, I have the opportunity to test freebsd on a CuBox-i-4x4 http://solid-run.com/product/cubox-i-4x4/. uname -ap FreeBSD wqtest 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r285875M: Sun Jul 26 14= :55:10 UTC 2015 gwgpi@wqtest:/usr/obj/usr/src/sys/IMX6 arm armv6hf To boot I have used this patch from Mika=EBl Urankar: http://mikael.urankar.free.fr/FreeBSD/arm/patches/sysutils_u-boot-cubox-hum= mingboard.patch Because I got an "No valid device tree blob found" error, in /boot/dtb I copied imx6q-cubox-i.dtb to imx6q-cubox-i4p.dtb. Now I can boot, but only half of the memory and one of two USB ports is rec= ognized. I have compiled some ports on the text console without problems. If I compile in a xfce4-terminal, I get a panic: pmap_remove_pages: pmap 0xcad291b4 va 0x200ab000 pte1 0 panic: bad pte1 cpuid =3D 2 KDB: enter: panic [ thread pid 28202 tid 100131 ] Stopped at $d.7: ldrb r15, [r15, r15, ror r15]! But that may be related to the dtb-file. Regards Ulrich --Multipart=_Tue__28_Jul_2015_07_18_54_+0000_nGhGu84a2sjPdWkZ Content-Type: text/plain; name="dmesgCUBOX_HDMI_PHILIPS.txt" Content-Disposition: attachment; filename="dmesgCUBOX_HDMI_PHILIPS.txt" Content-Transfer-Encoding: 7bit KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2015 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.0-CURRENT #0 r285875M: Sun Jul 26 14:55:10 UTC 2015 gwgpi@wqtest:/usr/obj/usr/src/sys/IMX6 arm FreeBSD clang version 3.6.1 (tags/RELEASE_361/final 237755) 20150525 VT: init without driver. CPU: Cortex A9-r2 rev 10 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB disabled EABT branch prediction enabled LoUU:2 LoC:2 LoUIS:2 Cache level 1: 32KB/32B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 4-way instruction cache Read-Alloc real memory = 2147483648 (2048 MB) avail memory = 2092978176 (1996 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 simplebus1: mem 0x2000000-0x20fffff on simplebus0 simplebus2: mem 0x2000000-0x203ffff on simplebus1 imx6_anatop0: mem 0x20c8000-0x20c8fff irq 81,86,159 on simplebus1 simplebus3: on simplebus1 simplebus4: mem 0x2100000-0x21fffff on simplebus0 ocotp0: mem 0x21bc000-0x21bffff on simplebus4 ccm0: mem 0x20c4000-0x20c7fff irq 119,120 on simplebus1 l2cache0: mem 0xa02000-0xa02fff irq 124 on simplebus0 l2cache0: Part number: 0x3, release: 0x7 l2cache0: L2 Cache enabled: 1024KB/32B 16 ways imx_iomux0: mem 0x20e0000-0x20e3fff on simplebus1 gic0: mem 0xa01000-0xa01fff,0xa00100-0xa001ff on ofwbus0 gic0: pn 0x390, arch 0x1, rev 0x2, implementer 0x43b irqs 160 imx_gpt0: mem 0x2098000-0x209bfff irq 87 on simplebus1 Event timer "iMXGPT" frequency 66000000 Hz quality 800 Timecounter "iMXGPT" frequency 66000000 Hz quality 1000 mp_tmr0: mem 0xa00600-0xa0061f irq 29 on simplebus0 Event timer "MPCore" frequency 492000000 Hz quality 1000 uart0: mem 0x2020000-0x2023fff irq 58 on simplebus2 uart0: console (115200,n,8,1) gpio0: mem 0x209c000-0x209ffff irq 98,99 on simplebus1 gpiobus0: on gpio0 gpioc0: on gpio0 gpio1: mem 0x20a0000-0x20a3fff irq 100,101 on simplebus1 gpiobus1: on gpio1 gpioc1: on gpio1 gpio2: mem 0x20a4000-0x20a7fff irq 102,103 on simplebus1 gpiobus2: on gpio2 gpioc2: on gpio2 gpio3: mem 0x20a8000-0x20abfff irq 104,105 on simplebus1 gpiobus3: on gpio3 gpioc3: on gpio3 gpio4: mem 0x20ac000-0x20affff irq 106,107 on simplebus1 gpiobus4: on gpio4 gpioc4: on gpio4 gpio5: mem 0x20b0000-0x20b3fff irq 108,109 on simplebus1 gpiobus5: on gpio5 gpioc5: on gpio5 gpio6: mem 0x20b4000-0x20b7fff irq 110,111 on simplebus1 gpiobus6: on gpio6 gpioc6: on gpio6 usbphy0: mem 0x20c9000-0x20c9fff irq 76 on simplebus1 usbphy1: mem 0x20ca000-0x20cafff irq 77 on simplebus1 src0: mem 0x20d8000-0x20dbfff irq 123,128 on simplebus1 hdmi0: mem 0x120000-0x128fff irq 147 on simplebus1 hdmi0: HDMI controller 13:0a:a0:c1 GPR3 0f000000 -> 0f000000 ehci0: mem 0x2184000-0x21841ff irq 75 on simplebus4 ehci0: [GIANT-LOCKED] usbus0: EHCI version 1.0 usbus0 on ehci0 ehci1: mem 0x2184200-0x21843ff irq 72 on simplebus4 ehci1: [GIANT-LOCKED] usbus1: EHCI version 1.0 usbus1 on ehci1 ffec0: mem 0x2188000-0x218bfff irq 150,151 on simplebus4 miibus0: on ffec0 atphy0: PHY 4 on miibus0 atphy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseSX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto ffec0: Ethernet address: d0:63:b4:00:83:59 sdhci_imx0: mem 0x2194000-0x2197fff irq 55 on simplebus4 mmc0: on sdhci_imx0 iichb0: mem 0x21a4000-0x21a7fff irq 69 on simplebus4 iicbus0: on iichb0 iic0: on iicbus0 iichb1: mem 0x21a8000-0x21abfff irq 70 on simplebus4 iicbus1: on iichb1 iic1: on iicbus1 iicbus1: at addr 0x68 fb0: mem 0x2400000-0x27fffff irq 38,37 on simplebus0 cryptosoft0: Timecounters tick every 2.000 msec IPsec: Initialized Security Association Processing. hdmi0: reading EDID from iic0, addr 50 Vendor: [PHL] Philips Product: [D056] 19PFL3403DEU Serial number: 01010101 Manufactured 2009 Week 6 EDID Version 1.3 EDID Comment: Video Input: 80 Digital Gamma: 2.20 Max Size: 41 cm x 26 cm Features: 2a DPMS active-off RGB Preferred timing Chroma Info: Red X: 0.649 Red Y: 0.649 Grn X: 0.283 Grn Y: 0.605 Blu X: 0.151 Blu Y: 0.073 Wht X: 0.313 Wht Y: 0.329 Range: Horizontal: 30 - 80 kHz Vertical: 56 - 76 Hz Max Dot Clock: 170 MHz Video modes: 720x400 @ 70Hz (28320 738 846 900 412 414 449 -H +V) 640x480 @ 60Hz (25175 656 752 800 490 492 525 -H -V) 640x480 @ 73Hz (31500 664 704 832 489 492 520 -H -V) 640x480 @ 75Hz (31500 656 720 840 481 484 500 -H -V) 800x600 @ 60Hz (40000 840 968 1056 601 605 628 +H +V) 800x600 @ 72Hz (50000 856 976 1040 637 643 666 +H +V) 800x600 @ 75Hz (49500 816 896 1056 601 604 625 +H +V) 1024x768 @ 60Hz (65000 1048 1184 1344 771 777 806 -H -V) 1024x768 @ 70Hz (75000 1048 1184 1328 771 777 806 -H -V) 1024x768 @ 75Hz (78750 1040 1136 1312 769 772 800 +H +V) 1280x1024 @ 75Hz (135000 1296 1440 1688 1025 1028 1066 +H +V) 1280x960 @ 60Hz (108000 1376 1488 1800 961 964 1000 +H +V) 1280x1024 @ 60Hz (108000 1328 1440 1688 1025 1028 1066 +H +V) 1440x900 @ 75Hz (136492 1536 1688 1936 901 904 940 +H +V) 1440x900 @ 60Hz (88750 1488 1520 1600 903 909 926 +H -V) Preferred mode: 1440x900 @ 60Hz Number of extension blocks: 1 IPU_CONF == 00000000 DC_MAP_CONF[0]: 00000000 -> -> 00000000 DC_MAP_CONF_VAL[00258144]: 00000000 -> 000007ff DC_MAP_CONF_PTR[00258108]: 00000000 -> 00000000 DC_MAP_CONF_VAL[00258144]: 000007ff -> 0fff07ff DC_MAP_CONF_PTR[00258108]: 00000000 -> 00000020 DC_MAP_CONF_VAL[00258148]: 00000000 -> 000017ff DC_MAP_CONF_PTR[00258108]: 00000020 -> 00000820 DC_WRITE_CH_CONF_5: 00000000 -> 00000002 DC_WRITE_CH_ADDR_5: 00000000 -> 0x00000000 DC_GEN: 00000060 -> 0x00000084 DI_BS_CLKGEN0: 00000000 DI_BS_CLKGEN1: 00000000 CCM_CS2CDR = 00000003 CCM_CSCMR2 = 7 CCM_CBCDR = 1 [PLL2] DW_GEN: 00000000 -> 00000300 DW_SET: 00000000 -> 00020000 DI0_SW_GEN0_1 00000000 -> 29f90000 DI0_SW_GEN1_1 00000000 -> 10000000 IPU_DI1_STP_REP1 00000000 -> 00000000 DI0_SW_GEN0_2 00000000 -> 29f90001 DI0_SW_GEN1_2 00000000 -> 31101000 IPU_DI1_STP_REP2 00000000 -> 00000000 DI0_SW_GEN0_3 00000000 -> 192a0000 DI0_SW_GEN1_3 00000000 -> 300c2000 IPU_DI1_STP_REP2 00000000 -> 00000000 DI0_SW_GEN0_4 00000000 -> 0003004b DI0_SW_GEN1_4 00000000 -> 08000000 IPU_DI1_STP_REP3 00000000 -> 03000000 DI0_SW_GEN0_5 00000000 -> 00010501 DI0_SW_GEN1_5 00000000 -> 0a000000 IPU_DI1_STP_REP3 00000000 -> 00000400 W1[5] 00000000 -> 00008885 W2[5] 00000000 -> 00000380 W1[5] 00000000 -> 00008845 W2[5] 00000000 -> 00000380 W1[5] 00000000 -> 00008805 W2[5] 00000000 -> 00000380 DI_GENERAL: 00200000 -> 00300004 (XXX) SYNC_AS_GEN: 00000000 -> 00004002 DB_MODE_SEL 00200150: 00000000 -> 00800000 DISP_GEN: 00400000 -> 01400000 00208004: 00000000 00208008: 00000000 00208004: 00000000 -> 00800000 CONF: 00000002 -> 00000082 fbd0 on fb0 VT: initialize with new VT driver "fb". usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 ugen1.1: at usbus1 ugen0.1: at usbus0 uhub0: on usbus0 uhub1: on usbus1 mmcsd0: 16GB at mmc0 50.0MHz/4bit/65535-block Release APs Root mount waiting for: usbus1 usbus0 uhub0: 1 port with 1 removable, self powered uhub1: 1 port with 1 removable, self powered ugen1.2: at usbus1 uhub2: on usbus1 Root mount waiting for: usbus1 uhub2: 4 ports with 3 removable, self powered Root mount waiting for: usbus1 Root mount waiting for: usbus1 ugen1.3: at usbus1 umass0: on usbus1 umass0: SCSI over Bulk-Only; quirks = 0x0100 umass0:0:0: Attached to scbus0 da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-2 SCSI device da0: Serial Number 2HB50SN0 da0: 40.000MB/s transfers da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C) da0: quirks=0x2 ugen1.4: at usbus1 uhub3: on usbus1 Root mount waiting for: usbus1 uhub3: 4 ports with 4 removable, self powered ugen1.5: at usbus1 ukbd0: on usbus1 kbd1 at ukbd0 Root mount waiting for: usbus1 ugen1.6: at usbus1 umass1: on usbus1 umass1: 8070i (ATAPI) over Bulk-Only; quirks = 0x4080 umass1:1:1: Attached to scbus1 Trying to mount root from ufs:/dev/mmcsd0s2a [rw,noatime]... da1 at umass-sim1 bus 1 scbus1 target 0 lun 0 da1: Fixed Direct Access SCSI device da1: Serial Number 100 da1: 40.000MB/s transfers da1: 57231MB (117210240 512 byte sectors: 255H 63S/T 7296C) warning: no time-of-day clock registered, system time will not be set accurately da1: quirks=0x2 random: unblocking device. ffec0: link state changed to DOWN ums0: on usbus1 ums0: 5 buttons and [XYZT] coordinates ID=3 ffec0: link state changed to UP ugen1.7: at usbus1 ukbd1: on usbus1 kbd2 at ukbd1 ums1: on usbus1 ums1: 5 buttons and [XYZ] coordinates ID=1 --Multipart=_Tue__28_Jul_2015_07_18_54_+0000_nGhGu84a2sjPdWkZ--