From owner-freebsd-arm@freebsd.org Sat Nov 3 00:23:26 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8458010E0345 for ; Sat, 3 Nov 2018 00:23:26 +0000 (UTC) (envelope-from neerajpal09@gmail.com) Received: from mail-ot1-x341.google.com (mail-ot1-x341.google.com [IPv6:2607:f8b0:4864:20::341]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 10EE886373 for ; Sat, 3 Nov 2018 00:23:26 +0000 (UTC) (envelope-from neerajpal09@gmail.com) Received: by mail-ot1-x341.google.com with SMTP id e9so3227063oti.1 for ; Fri, 02 Nov 2018 17:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+vawxrYgTXRbq5Phejnr0kZ2PdnDHzlyaomvB+DSO98=; b=kcs2RbiUEBHmQLl85hik9Rm4j2usv05cMtZ8jMgXxbKktbirXcWC4u9EC828wbp12T D8Fm/tmenSdRBZeiE/ykYe9weEpjx9LTDn97g9wZkYCZkpGzxRgoM1uWasEkQc4N3Ud5 F/01twAntGr0dq6c4+yNwhmSo+MCAsYwwLFrikL90CJb86jRBElTIO02DWioVjLOsP/R E3+0Hgqd4ZHanytlQWuvYdq3MwTsMahUdI+hcrbS2TUupmL7IqXfd6AI0q8DhXcsNogG 8cHfPnKXlyGiYhs5C1gMLhmhYblQeNMPm2Mi2tyEULrZ8l0IpOsbtqTbeQXwqZR2K9PH eJYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+vawxrYgTXRbq5Phejnr0kZ2PdnDHzlyaomvB+DSO98=; b=npWVzbD49otOU12hD0+nDUevRlqIdpIJsvV6cj1e9MZvlVkxmur1t1VfYhMwdMDj5n LoD8HZsn1Ks3pGGJfSUgV7vtES4UNBfUaBnYbC+IZ8TeuMT//rc7TYKVrBAVR/Mzg0v/ rStMqhACOK841yGH+pQf94vDMdpm1uFpJx1wCoeLx1VuJekEeNINj8jRkRN3o7mKxMiB cEulgQNyU836tuc/dWrFH5iGa/k98uj82bIvFIbovgWofV5r7ZMXDXRuiPLiz++TLkrA 16j95k/s+z+ShsFI72ZDYWHn6dX6o34S2sSbO5gPV8r6Dwt1IqzeCY00E5d4FNRs0LTq RCKA== X-Gm-Message-State: AGRZ1gLaLH1i1kSvK11pPEuwNwZcHgVOS68Vr3tsCa2BolvYYtH1tSi8 C2J/JaugXPLApgTj0xC1OI2u/qsDG/0gcOs0Dfxp6TFQ/CI= X-Google-Smtp-Source: AJdET5fGMMsE/U5f6EZs6tjfZY/BstSwVrE6M9sJ31ISBwTfRDvFW5LcjBhU7AtaEGwo2f+zO4EV3DbE7UDKyhnKa1M= X-Received: by 2002:a9d:2a26:: with SMTP id t35mr8929650ota.16.1541204604848; Fri, 02 Nov 2018 17:23:24 -0700 (PDT) MIME-Version: 1.0 From: Neeraj Pal Date: Sat, 3 Nov 2018 05:53:13 +0530 Message-ID: Subject: FreeBSD-13.0-current not booting/hang in BeagleBone Black To: freebsd-arm@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2018 00:23:26 -0000 Hi there, I have written the FreeBSD-13.0-current snapshot BeagleBone image file into sd card (16gb) using dd. Then, trying to load the image file into BeagleBone Black Rev. C but it seems it is not working. And, after that, I have tried FreeBSD-12.0-ALPHA10 image and it is working fine and below is the dmesg (after log of FreeBSD-13.0-current). Maybe there is something wrong with the FreeBSD-13.0-current snapshot, although I am not sure. Here, is the log: FreeBSD-13.0-current: U-Boot SPL 2018.09 (Nov 01 2018 - 03:26:04 +0000) Trying to boot from MMC1 Loading Environment from FAT... *** Warning - bad CRC, using default environment Loading Environment from MMC... *** Warning - bad CRC, using default environment U-Boot 2018.09 (Nov 01 2018 - 03:26:04 +0000) CPU : AM335X-GP rev 2.1 I2C: ready DRAM: 512 MiB No match for driver 'omap_hsmmc' No match for driver 'omap_hsmmc' Some drivers were not found MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment Loading Environment from MMC... *** Warning - bad CRC, using default environment not set. Validating first E-fuse MAC Net: cpsw, usb_ether Press SPACE to abort autoboot in 2 seconds switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... 51500 bytes read in 6 ms (8.2 MiB/s) Found EFI removable media binary efi/boot/bootarm.efi Scanning disks on usb... Disk usb0 not ready Disk usb1 not ready Disk usb2 not ready Disk usb3 not ready Loading kernel... /boot/kernel/kernel text=0x860500 data=0xb5d28+0x24cdd8 syms=[0x4+0xa91d0+0x4+]- Loading configured modules... can't find '/boot/entropy' /boot/kernel/umodem.ko text=0x1bf4 text=0x1320 data=0x1080+0xf88 syms=[0x4+0x10] loading required module 'ucom' /boot/kernel/ucom.ko text=0x1f8c text=0x2e90 data=0x1080+0x17bc syms=[0x4+0x14f] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... Using DTB provided by EFI at 0x87ff1000. Kernel entry at 0x95000180... Kernel args: (null) modulep: 0xc0d3b000 relocation_offset 0 ---<>--- ARM Debug Architecture not supported KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 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 13.0-CURRENT r339979 GENERIC arm FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module_register: cannot register ofwbus/pcib from kernel; already loaded from kl Module ofwbus/pcib failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded frol Module simplebus/pcib failed to register: 17 CPU: ARM Cortex-A8 r3p2 (ECO: 0x00000000) CPU Features: Thumb2, Security, VMSAv7 Optional instructions: UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:1 Cache level 1: 32KB/64B 4-way data cache WT WB Read-Alloc 32KB/64B 4-way instruction cache Read-Alloc Cache level 2: 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc real memory = 0 (0 MB) avail memory = 505835520 (482 MB) No PSCI/SMCCC call function found Texas Instruments AM335x Processor, Revision ES2.1 arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 simplebus1: on simplebus0 am335x_prcm0: mem 0x200000-0x203fff on simp1 simplebus2: mem 0x210000-0x211fff on simpleb1 ti_scm0: mem 0-0x7ff on simplebus2 regfix0: on ofwbus0 clk_fixed0: on ofwbus0 ti_aintc0: mem 0x48200000-0x48200fff on simpleb0 ti_aintc0: Revision 5.0 am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz cpulist0: on ofwbus0 cpu0: on cpulist0 pmu0: mem 0x4b000000-0x4bffffff irq 0 on ofwbus0 ti_pinmux0: mem 0x800-0xa37 on simplebus2 am335x_scm0: on ti_scm0 gpio0: mem 0x44e07000-0x44e07fff irq 7 o0 gpiobus0: on gpio0 gpioc0: on gpio0 gpio1: mem 0x4804c000-0x4804cfff irq 8 o0 gpiobus1: on gpio1 gpioc1: on gpio1 gpio2: mem 0x481ac000-0x481acfff irq 9 o0 gpiobus2: on gpio2 gpioc2: on gpio2 gpio3: mem 0x481ae000-0x481aefff irq 10 0 gpiobus3: on gpio3 gpioc3: on gpio3 uart0: console (115384,n,8,1)atible)> mem 0x44e09000-0x44e0afff irq 11 on simpl0 iichb0: mem 0x44e0b000-0x44e0bfff irq 17 on simplebus0 iichb0: I2C revision 4.0 FIFO size: 32 bytes iichb1: mem 0x4819c000-0x4819cfff irq 19 on simplebus0 iichb1: I2C revision 4.0 FIFO size: 32 bytes sdhci_ti0: mem 0x48060000-0x48060fff irq 20 on simplebus0 mmc0: on sdhci_ti0 sdhci_ti1: mem 0x481d8000-0x481d8fff irq 21 on simplebus0 mmc1: on sdhci_ti1 ti_wdt0: mem 0x44e35000-0x44e35fff irq 23 on simplebus0 ti_mbox0: mem 0x480c8000-0x480c81ff irq 26 on simplebus0 ti_mbox0: revision 4.0 am335x_dmtimer0: mem 0x48040000-0x480403ff irq 28 on simplebu0 Event timer "DMTimer2" frequency 24000000 Hz quality 500 am335x_dmtimer1: mem 0x48042000-0x480423ff irq 29 on simplebu0 Timecounter "DMTimer3" frequency 24000000 Hz quality 500 am335x_rtc0: mem 0x44e3e000-0x44e3efff irq0 am335x_rtc0: AM335X RTC v1.0.6 usbss0: mem 0x47400000-0x47400fff on 0 usbss0: TI AM335X USBSS v0.0.13 musbotg0: mem 0x47401400-0x474017ff,00 usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM usbus0 on musbotg0 musbotg1: mem 0x47401c00-0x47401fff,00 usbus1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM usbus1 on musbotg1 cpswss0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a1007ff,0x4a101200 cpswss0: CPSW SS Version 1.12 (0) cpswss0: Initial queue size TX=128 RX=384 cpsw0: on cpswss0 miibus0: on cpsw0 smscphy0: PHY 0 on miibus0 smscphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cpsw0: Ethernet address: 88:c2:55:8d:ec:f6 fb0: mem 0x4830e000-0x4830efff irq 43 on simplebus0 ti_adc0: mem 0x44e0d000-0x44e0dfff irq 44 disabled on simpl0 ti_adc0: scheme: 0x1 func: 0x730 rtl: 0 rev: 0.1 custom rev: 0 gpioled0: on ofwbus0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 iicbus0: on iichb0 iic0: on iicbus0 am335x_pmic0: at addr 0x48 irq 59 on iicbus0 icee0: at addr 0xa0 on iicbus0 tda0 at addr 0xe0 on iicbus0 iicbus1: on iichb1 iic1: on iicbus1 icee1: at addr 0xa8 on iicbus1 icee2: at addr 0xaa on iicbus1 icee3: at addr 0xac on iicbus1 icee4: at addr 0xae on iicbus1 ugen1.1: at usbus1 uhub0: on usbu1 ugen0.1: at usbus0 uhub1: on usbu0 mmcsd0: 16GB at mmc0 48.0MHz/4k uhub1: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered ugen0.2: at0 ugen0.2: at) ugen0.2: at0 umodem0 on uhub1 umodem0: on usbus0 umodem0: data interface 1, has CM over data, has break mmcsd1: 4GB at mmc1 48k mmcsd1boot0: 4MB partion 1 at mmcsd1 mmcsd1boot1: 4MB partion 2 at mmcsd1 mmcsd1rpmb: 4MB partion 3 at mmcsd1 am335x_pmic0: TPS65217C ver 1.2 powered by USB tda0: TDA19988 GEOM_PART: integrity check failed (mmcsd1s4, BSD) GEOM_PART: integrity check failed (diskid/DISK-4EDE5FD4s4, BSD) tda0: failed to read EDID WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ufs/rootfs [rw]... Warning: no time-of-day clock registered, system time will not be set accurately random: unblocking device. FreeBSD-12.0-ALPHA10 freebsd@generic:~ % dmesg ---<>--- ARM Debug Architecture not supported KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 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 12.0-ALPHA10 r339377 GENERIC arm FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLVM 6.0.1) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. module_register: cannot register ofwbus/pcib from kernel; already loaded from kernel Module ofwbus/pcib failed to register: 17 module_register: cannot register simplebus/pcib from kernel; already loaded from kernel Module simplebus/pcib failed to register: 17 CPU: ARM Cortex-A8 r3p2 (ECO: 0x00000000) CPU Features: Thumb2, Security, VMSAv7 Optional instructions: UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:1 Cache level 1: 32KB/64B 4-way data cache WT WB Read-Alloc 32KB/64B 4-way instruction cache Read-Alloc Cache level 2: 256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc real memory = 0 (0 MB) avail memory = 505872384 (482 MB) No PSCI/SMCCC call function found Texas Instruments AM335x Processor, Revision ES2.1 arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 simplebus1: on simplebus0 am335x_prcm0: mem 0x200000-0x203fff on simplebus1 simplebus2: mem 0x210000-0x211fff on simplebus1 ti_scm0: mem 0-0x7ff on simplebus2 regfix0: on ofwbus0 clk_fixed0: on ofwbus0 ti_aintc0: mem 0x48200000-0x48200fff on simplebus0 ti_aintc0: Revision 5.0 am335x_prcm0: Clocks: System 24.0 MHz, CPU 1000 MHz cpulist0: on ofwbus0 cpu0: on cpulist0 pmu0: mem 0x4b000000-0x4bffffff irq 0 on ofwbus0 ti_pinmux0: mem 0x800-0xa37 on simplebus2 am335x_scm0: on ti_scm0 gpio0: mem 0x44e07000-0x44e07fff irq 7 on simplebus0 gpiobus0: on gpio0 gpioc0: on gpio0 gpio1: mem 0x4804c000-0x4804cfff irq 8 on simplebus0 gpiobus1: on gpio1 gpioc1: on gpio1 gpio2: mem 0x481ac000-0x481acfff irq 9 on simplebus0 gpiobus2: on gpio2 gpioc2: on gpio2 gpio3: mem 0x481ae000-0x481aefff irq 10 on simplebus0 gpiobus3: on gpio3 gpioc3: on gpio3 uart0: mem 0x44e09000-0x44e0afff irq 11 on simplebus0 uart0: console (115384,n,8,1) iichb0: mem 0x44e0b000-0x44e0bfff irq 17 on simplebus0 iichb0: I2C revision 4.0 FIFO size: 32 bytes iichb1: mem 0x4819c000-0x4819cfff irq 19 on simplebus0 iichb1: I2C revision 4.0 FIFO size: 32 bytes sdhci_ti0: mem 0x48060000-0x48060fff irq 20 on simplebus0 mmc0: on sdhci_ti0 sdhci_ti1: mem 0x481d8000-0x481d8fff irq 21 on simplebus0 mmc1: on sdhci_ti1 ti_wdt0: mem 0x44e35000-0x44e35fff irq 23 on simplebus0 ti_mbox0: mem 0x480c8000-0x480c81ff irq 26 on simplebus0 ti_mbox0: revision 4.0 am335x_dmtimer0: mem 0x48040000-0x480403ff irq 28 on simplebus0 Event timer "DMTimer2" frequency 24000000 Hz quality 500 am335x_dmtimer1: mem 0x48042000-0x480423ff irq 29 on simplebus0 Timecounter "DMTimer3" frequency 24000000 Hz quality 500 am335x_rtc0: mem 0x44e3e000-0x44e3efff irq 34,35 on simplebus0 am335x_rtc0: AM335X RTC v1.0.6 usbss0: mem 0x47400000-0x47400fff on simplebus0 usbss0: TI AM335X USBSS v0.0.13 musbotg0: mem 0x47401400-0x474017ff,0x47401000-0x474011ff irq 56 on usbss0 usbus0: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM usbus0 on musbotg0 musbotg1: mem 0x47401c00-0x47401fff,0x47401800-0x474019ff irq 57 on usbss0 usbus1: Dynamic FIFO sizing detected, assuming 16Kbytes of FIFO RAM usbus1 on musbotg1 cpswss0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a1007ff,0x4a101200-0x4a1012ff irq 38,39,40,41 on simplebus0 cpswss0: CPSW SS Version 1.12 (0) cpswss0: Initial queue size TX=128 RX=384 cpsw0: on cpswss0 miibus0: on cpsw0 smscphy0: PHY 0 on miibus0 smscphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto cpsw0: Ethernet address: 88:c2:55:8d:ec:f6 fb0: mem 0x4830e000-0x4830efff irq 43 on simplebus0 ti_adc0: mem 0x44e0d000-0x44e0dfff irq 44 disabled on simplebus0 ti_adc0: scheme: 0x1 func: 0x730 rtl: 0 rev: 0.1 custom rev: 0 gpioled0: on ofwbus0 cryptosoft0: Timecounters tick every 1.000 msec usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 iicbus0: on iichb0 iic0: on iicbus0 am335x_pmic0: at addr 0x48 irq 59 on iicbus0 icee0: at addr 0xa0 on iicbus0 tda0 at addr 0xe0 on iicbus0 iicbus1: on iichb1 iic1: on iicbus1 icee1: at addr 0xa8 on iicbus1 icee2: at addr 0xaa on iicbus1 icee3: at addr 0xac on iicbus1 icee4: at addr 0xae on iicbus1 ugen1.1: at usbus1 uhub0: on usbus1 ugen0.1: at usbus0 uhub1: on usbus0 mmcsd0: 16GB at mmc0 48.0MHz/4bit/65535-block uhub1: 1 port with 1 removable, self powered uhub0: 1 port with 1 removable, self powered ugen0.2: at usbus0 ugen0.2: at usbus0 (disconnected) ugen0.2: at usbus0 umodem0 on uhub1 umodem0: on usbus0 umodem0: data interface 1, has CM over data, has break mmcsd1: 4GB at mmc1 48.0MHz/8bit/65535-block mmcsd1boot0: 4MB partion 1 at mmcsd1 mmcsd1boot1: 4MB partion 2 at mmcsd1 mmcsd1rpmb: 4MB partion 3 at mmcsd1 am335x_pmic0: TPS65217C ver 1.2 powered by USB tda0: TDA19988 GEOM_PART: integrity check failed (mmcsd1s4, BSD) GEOM_PART: integrity check failed (diskid/DISK-4EDE5FD4s4, BSD) tda0: failed to read EDID WARNING: WITNESS option enabled, expect reduced performance. Trying to mount root from ufs:/dev/ufs/rootfs [rw]... Warning: no time-of-day clock registered, system time will not be set accurately GEOM_PART: mmcsd0s2 was automatically resized. Use `gpart commit mmcsd0s2` to save changes or `gpart undo mmcsd0s2` to revert them. random: unblocking device. lock order reversal: 1st 0xc2415b10 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3916 2nd 0xd37dcc00 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:289 stack backtrace: lo0: link state changed to UP cpsw0: link state changed to DOWN cpsw0: link state changed to UP -- Thank you! Sincere regards; Neeraj Pal