From owner-freebsd-arm@freebsd.org Mon Feb 22 10:31:34 2016 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 B3A92AAFFDC for ; Mon, 22 Feb 2016 10:31:34 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: from mail-yw0-x230.google.com (mail-yw0-x230.google.com [IPv6:2607:f8b0:4002:c05::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8A1F71E4D; Mon, 22 Feb 2016 10:31:34 +0000 (UTC) (envelope-from mikael.urankar@gmail.com) Received: by mail-yw0-x230.google.com with SMTP id h129so115153107ywb.1; Mon, 22 Feb 2016 02:31:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=KZUxP7BmEawDIB8OKu9gpFM1Q0gptORhjcbbLQjuenk=; b=Dbw+lkBSkjFPKBxLYhhcbFDuMeN+/a79yL7tiwjnS5bPFBwLZe9V8ejsKa/LEpGVY1 YZqL619gdEkz03VV1WzxW7EQxfCCuaT+8f6LWKjsqoEwCk3rdh5gDYXvda6hoi1YOz05 TFPSNpuudpNRIq1OJxAVnEOL5bdVfnpNhxgrQt2EWjskRDmiH3nnuubeTaEQysfzZR+K FexbwO7PmctuJcUmyupZ6oXEC3cPySW8STwy21TnSSB34zeSOmCOrNgEl9UnCpeKI2fF Gc8M/5VSqW73eqY6oDllZpUZfqEUnLPtRL/fjQ/J75a3nNXvpxMEd5tqkoMOkkZ7+Njl YE3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=KZUxP7BmEawDIB8OKu9gpFM1Q0gptORhjcbbLQjuenk=; b=MghYZ98s3EE+twt1ncfREG9hgxMOpe1bcLpwxkTVoF1l7v9YIZsGiMB7BIqKAVhR9X ru3xbjhpSEG7MWXYWE10JrKFBp7bcCk89ENkjXngnq2r27R6ojpOobXmhcdkdl9BF2RU qn0vKYkp0biLyG13LBXnmXWwnCdDLNafeOc8dJ2MY251W1/9wRxMg7BpvgWdF/My8/27 jO1r0D2qxAP1hhdSRs5msGefs6ihRxful6VPmk096dHtYqvoX/fT8tpk+/vjaHKxs27z 7eUH67JeeOlvT4b0psFGOviQVyJZqS+XAj3t70ru6ll/8xQdZs07aYCTHdhBml+P2Hag gEOQ== X-Gm-Message-State: AG10YORCqtwQlBO2hmATrcyXkzc4EUZ3XH/gQwDik0P8KZ9WBt5Lsd097vStFMwzyJx/9SeIHqCwiTiUQrNuEw== X-Received: by 10.13.201.131 with SMTP id l125mr14405019ywd.150.1456137093581; Mon, 22 Feb 2016 02:31:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.105.137 with HTTP; Mon, 22 Feb 2016 02:30:54 -0800 (PST) In-Reply-To: References: <201602220109.SAA20866@mail.lariat.net> <1456113068.1294.46.camel@freebsd.org> From: =?UTF-8?Q?Mika=C3=ABl_Urankar?= Date: Mon, 22 Feb 2016 11:30:54 +0100 Message-ID: Subject: Re: Latest 11.0 snapshot won't boot on CUBOX either To: Ian Lepore Cc: Brett Glass , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: Mon, 22 Feb 2016 10:31:34 -0000 2016-02-22 10:30 GMT+01:00 Mika=C3=ABl Urankar : > 2016-02-22 4:51 GMT+01:00 Ian Lepore : >> On Sun, 2016-02-21 at 18:09 -0700, Brett Glass wrote: >>> After the experience described in my last message, I tried the >>> mid-February 11.0 snapshot (r295683). This one actually began to >>> use the video display, but did not boot whether or not I attached a >>> USB keyboard. A serial terminal showed the following: >>> >>> U-Boot SPL 2013.10-rc4 (Feb 17 2016 - 08:14:06) >>> Boot Device: SD1 >>> spl: error reading image u-boot.img, err - -1 >>> Load image from RAW... >>> >>> >>> U-Boot 2013.10-rc4 (Feb 17 2016 - 08:14:06) >>> >>> CPU: Freescale i.MX6Q rev1.2 at 792 MHz >>> Reset cause: POR >>> Board: MX6-CuBox-i >>> DRAM: 1 GiB >>> MMC: FSL_SDHC: 0 >>> *** Warning - bad CRC, using default environment >>> >>> In: serial >>> Out: serial >>> Err: serial >>> Net: FEC [PRIME] >>> ** Unable to read file uEnv.txt ** >>> Hit any key to stop autoboot: 0 >>> Booting from: mmc 0 ubldr >>> 262739 bytes read in 25 ms (10 MiB/s) >>> ## Starting application at 0x12000094 ... >>> Consoles: U-Boot console >>> Compatible U-Boot API signature found @4f7708a8 >>> >>> FreeBSD/armv6 U-Boot loader, Revision 1.2 >>> (root@releng2.nyi.freebsd.org, Wed Feb 17 08:37:47 UTC 2016) >>> >>> DRAM: 1024MB >>> Number of U-Boot devices: 2 >>> U-Boot env: loaderdev=3D'mmc 0' >>> Found U-Boot device: disk >>> Checking unit=3D0 slice=3D partition=3D... good. >>> Booting from disk0s2a: >>> /boot/kernel/kernel data=3D0x6b6964+0xc969c >>> syms=3D[0x4+0x7f460+0x4+0x91631] >>> >>> Hit [Enter] to boot immediately, or any other key for command prompt. >>> Booting [/boot/kernel/kernel]... >>> /boot/dtb/imx6q-cubox-i.dtb size=3D0x89c9 >>> Loaded DTB from file 'imx6q-cubox-i.dtb'. >>> Kernel entry at 0x12200100... >>> Kernel args: (null) >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Copyright (c) 1992-2016 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 r295683: Wed Feb 17 08:44:44 UTC 2016 >>> root@releng2.nyi.freebsd.org:/usr/obj/arm.armv6/usr/src/sys/IMX6 >>> arm >>> FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225 >>> VT: init without driver. >>> CPU: Cortex A9-r2 rev 10 (Cortex-A core) >>> Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 >>> Security_Ext >>> WB enabled LABT branch prediction disabled >>> 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 =3D 1073741824 (1024 MB) >>> avail memory =3D 1039437824 (991 MB) >>> FreeBSD/SMP: Multiprocessor System Detected: 2 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 43,44,45 on simplebus1 >>> simplebus3: mem >>> 0x2100000-0x21fffff on simplebus0 >>> ocotp0: mem >>> 0x21bc000-0x21bffff on simplebus3 >>> ccm0: mem >>> 0x20c4000-0x20c7fff irq 41,42 on simplebus1 >>> l2cache0: mem 0xa02000-0xa02fff irq 6 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 simplebus0 >>> gic0: pn 0x390, arch 0x1, rev 0x2, implementer 0x43b irqs 160 >>> imx_gpt0: mem 0x2098000-0x209bfff irq 23 >>> on simplebus1 >>> Event timer "iMXGPT" frequency 66000000 Hz quality 800 >>> Timecounter "iMXGPT" frequency 66000000 Hz quality 1000 >>> mp_tmr0: mem 0xa00600-0xa0061f irq 5 on >>> simplebus0 >>> Event timer "MPCore" frequency 492000000 Hz quality 1000 >>> hdmi0: mem 0x120000-0x128fff irq 2 on >>> simplebus0 >>> hdmi0: HDMI controller 13:0a:a0:c1 >>> uart0: mem 0x2020000-0x2023fff irq 62 on >>> simplebus2 >>> uart0: console (115200,n,8,1) >>> gpio0: mem 0x209c000-0x209ffff irq >>> 24,25 on simplebus1 >>> gpiobus0: on gpio0 >>> gpioc0: on gpio0 >>> gpio1: mem 0x20a0000-0x20a3fff irq >>> 26,27 on simplebus1 >>> gpiobus1: on gpio1 >>> gpioc1: on gpio1 >>> gpio2: mem 0x20a4000-0x20a7fff irq >>> 28,29 on simplebus1 >>> gpiobus2: on gpio2 >>> gpioc2: on gpio2 >>> gpio3: mem 0x20a8000-0x20abfff irq >>> 30,31 on simplebus1 >>> gpiobus3: on gpio3 >>> gpioc3: on gpio3 >>> gpio4: mem 0x20ac000-0x20affff irq >>> 32,33 on simplebus1 >>> gpiobus4: on gpio4 >>> gpioc4: on gpio4 >>> gpio5: mem 0x20b0000-0x20b3fff irq >>> 34,35 on simplebus1 >>> gpiobus5: on gpio5 >>> gpioc5: on gpio5 >>> gpio6: mem 0x20b4000-0x20b7fff irq >>> 36,37 on simplebus1 >>> gpiobus6: on gpio6 >>> gpioc6: on gpio6 >>> imx_wdog0: mem 0x20bc000-0x20bffff irq 39 >>> on simplebus1 >>> usbphy0: mem 0x20c9000-0x20c9fff irq 46 on >>> simplebus1 >>> usbphy1: mem 0x20ca000-0x20cafff irq 47 on >>> simplebus1 >>> src0: mem >>> 0x20d8000-0x20dbfff irq 50,51 on simplebus1 >>> ehci0: mem >>> 0x2184000-0x21841ff irq 69 on simplebus3 >>> ehci0: [GIANT-LOCKED] >>> usbus0: EHCI version 1.0 >>> usbus0 on ehci0 >>> ehci1: mem >>> 0x2184200-0x21843ff irq 70 on simplebus3 >>> ehci1: [GIANT-LOCKED] >>> usbus1: EHCI version 1.0 >>> usbus1 on ehci1 >>> ffec0: mem >>> 0x2188000-0x218bfff irq 73,74 on simplebus3 >>> miibus0: on ffec0 >>> atphy0: PHY 0 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:18:99 >>> sdhci_imx0: mem 0x2190000-0x2193fff >>> irq 78 on simplebus3 >>> mmc0: on sdhci_imx0 >>> sdhci_imx1: mem 0x2194000-0x2197fff >>> irq 79 on simplebus3 >>> mmc1: on sdhci_imx1 >>> iichb0: mem 0x21a4000-0x21a7fff irq 83 on >>> simplebus3 >>> iicbus0: on iichb0 >>> iic0: on iicbus0 >>> iichb1: mem 0x21a8000-0x21abfff irq 84 on >>> simplebus3 >>> iicbus1: on iichb1 >>> iic1: on iicbus1 >>> iicbus1: at addr 0xd0 >>> uart1: mem 0x21f0000-0x21f3fff irq 91 on >>> simplebus3 >>> fb0: mem 0x2400000-0x27fffff irq 9,10 on simplebus0 >>> cryptosoft0: >>> Timecounters tick every 2.000 msec >>> IPsec: Initialized Security Association Processing. >>> hdmi0: reading EDID from iicbus0, addr 50 >>> usbus0: 480Mbps High Speed USB v2.0 >>> usbus1: 480Mbps High Speed USB v2.0 >>> ugen0.1: at usbus0 >>> uhub0: on >>> usbus0 >>> ugen1.1: at usbus1 >>> uhub1: on >>> usbus1 >>> fbd0 on fb0 >>> VT: initialize with new VT driver "fb". >>> uhub0: 1 port with 1 removable, self powered >>> uhub1: 1 port with 1 removable, self powered >>> sdhci_imx0-slot0: Controller timeout >>> sdhci_imx0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER D= UMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> sdhci_imx0-slot0: Sys addr: 0x00000000 | Version: 0x00000002 >>> sdhci_imx0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000001 >>> sdhci_imx0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 >>> sdhci_imx0-slot0: Present: 0x00f90000 | Host ctl: 0x00000001 >>> sdhci_imx0-slot0: Power: 0x0000000d | Blk gap: 0x00000080 >>> sdhci_imx0-slot0: Wake-up: 0x00000008 | Clock: 0x0000fa07 >>> sdhci_imx0-slot0: Timeout: 0x00000080 | Int stat: 0x00000001 >>> sdhci_imx0-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb >>> sdhci_imx0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000001 >>> sdhci_imx0-slot0: Caps: 0x0377c800 | Max curr: 0x80000000 >>> sdhci_imx0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>> sdhci_imx0-slot0: Controller timeout >>> sdhci_imx0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER D= UMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> sdhci_imx0-slot0: Sys addr: 0x00000000 | Version: 0x00000002 >>> sdhci_imx0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000001 >>> sdhci_imx0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 >>> sdhci_imx0-slot0: Present: 0x00f90000 | Host ctl: 0x00000001 >>> sdhci_imx0-slot0: Power: 0x0000000d | Blk gap: 0x00000080 >>> sdhci_imx0-slot0: Wake-up: 0x00000008 | Clock: 0x0000fa07 >>> sdhci_imx0-slot0: Timeout: 0x00000080 | Int stat: 0x00000001 >>> sdhci_imx0-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb >>> sdhci_imx0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000001 >>> sdhci_imx0-slot0: Caps: 0x0377c800 | Max curr: 0x80000000 >>> sdhci_imx0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>> sdhci_imx0-slot0: Controller timeout >>> sdhci_imx0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D REGISTER D= UMP =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D >>> sdhci_imx0-slot0: Sys addr: 0x00000000 | Version: 0x00000002 >>> sdhci_imx0-slot0: Blk size: 0x00000000 | Blk cnt: 0x00000001 >>> sdhci_imx0-slot0: Argument: 0x00000000 | Trn mode: 0x00000000 >>> sdhci_imx0-slot0: Present: 0x00f90000 | Host ctl: 0x00000001 >>> sdhci_imx0-slot0: Power: 0x0000000d | Blk gap: 0x00000080 >>> sdhci_imx0-slot0: Wake-up: 0x00000008 | Clock: 0x0000fa07 >>> sdhci_imx0-slot0: Timeout: 0x00000080 | Int stat: 0x00000001 >>> sdhci_imx0-slot0: Int enab: 0x017f00fb | Sig enab: 0x017f00fb >>> sdhci_imx0-slot0: AC12 err: 0x00000000 | Slot int: 0x00000001 >>> sdhci_imx0-slot0: Caps: 0x0377c800 | Max curr: 0x80000000 >>> sdhci_imx0-slot0: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D >>> >>> ...and similar messages ad infinitum. The lines after the one >>> beginning with "VT:" appeared on the VGA, but the bootstrap process >>> never completed. So, the only snapshot I have that will boot >>> completely is an old one from December.... Is there anything newer >>> or in the works that will boot? I would like to start developing on >>> this and contribute some code, but need a couple of systems to at >>> least be limping along to start. >>> >>> --Brett Glass >> >> My wandboards have hung up the same way for about a week now, but I >> haven't had time to investigate why. >> >> -- Ian > > The update of the Linux dts breaks the imx6 (r295436) They have changed the interrupt-parent to gpc in the 'soc' structure: /usr/src/sys/gnu/dts/arm/imx6qdl.dtsi soc { interrupt-parent =3D <&gpc>; My imx6q boots fine if I put back &intc I don't know what is the correct fix though