From owner-freebsd-arm@freebsd.org Wed Mar 30 07:24:15 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 C2F04AE28DF for ; Wed, 30 Mar 2016 07:24:15 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 55CCE1CE0 for ; Wed, 30 Mar 2016 07:24:14 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from chamsa.cs.huji.ac.il ([132.65.80.19]) by kabab.cs.huji.ac.il with esmtp id 1alATz-000NEt-HT for freeBSD-arm@freebsd.org; Wed, 30 Mar 2016 10:24:03 +0300 From: Daniel Braniss Content-Type: multipart/mixed; boundary="Apple-Mail=_1F105C16-4745-478B-87CA-DAFF13EDB4DF" Subject: Odroidc1+ stuck booting Message-Id: <687E2129-BE66-4CC9-9B30-D8DFB7A2FEF6@cs.huji.ac.il> Date: Wed, 30 Mar 2016 10:24:03 +0300 To: freebsd-arm Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Mar 2016 07:24:15 -0000 --Apple-Mail=_1F105C16-4745-478B-87CA-DAFF13EDB4DF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, Managed to make a bootable SD, cross compile world/kernel, but the kernel startup gets stuck, I can=E2=80=99t even get into the = debugger. any help/hints most welcome :-) btw, I can also boot via the network, cutting down the debug cycle = considerably. thanks, danny PS: here is the console output --Apple-Mail=_1F105C16-4745-478B-87CA-DAFF13EDB4DF Content-Disposition: attachment; filename=s1 Content-Type: application/octet-stream; name="s1" Content-Transfer-Encoding: 7bit QA5:A;SVN:B72;POC:17F;STS:0;BOOT:0;INIT:10;BOOT:1;INIT:0;READ:0;CHECK:0;PASS:1; ----------------------------------------------------------------------- * Welcome to Hardkernel's ODROID-C... (Built at 19:33:00 Dec 8 2014) * ----------------------------------------------------------------------- CPU : AMLogic S805 MEM : 1024MB (DDR3@792MHz) BID : HKC1310001 S/N : HKC11122F37E041A 0x0000009f check SD_boot_type:0x1 card_type:0x1 Loading U-boot...success. U-boot(odroidc@) (Jun 12 2015 - 17:31:14) DRAM: 1 GiB relocation Offset is: 2ff1c000 MMC: SDCARD: 0, eMMC: 1 IR init is done! vpu clk_level = 3 set vpu clk: 182150000Hz, readback: 182150000Hz(0x701) mode = 6 vic = 4 set HDMI vic: 4 mode is: 6 viu chan = 1 config HPLL config HPLL done reconfig packet setting done MMC read: dev # 0, block # 33984, count 12288 ... 12288 blocks read: OK There is no valid bmp file at the given address ============================================================ Vendor: Man 035054 Snr da311585 Rev: 3.0 Prod: SS08G Type: Removable Hard Disk Capacity: 7388.0 MB = 7.2 GB (15130624 x 512) ------------------------------------------------------------ Partition Start Sector Num Sectors Type 1 1134 131040 6 2 132174 1964970 a5 ============================================================ Net: Meson_Ethernet init suspend firmware done. (ret:0) Hit Enter key to stop autoboot -- : 0 exit abortboot: 0 reading boot.ini 2560 bytes read Loading boot.ini from mmc0:1 (vfat) Executing the script... setenv m "1080p" # 1080P 1920x1080 setenv vout_mode "hdmi" setenv m_bpp "32" setenv disableuhs "disableuhs" setenv vpu "1" setenv hdmioutput "1" setenv bootargs "console=ttyS0,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro no_console_suspend vdaccfg=0xa000 logo=osd1,loaded,0x7900000,720p,full dmfc=3 cvbsmode=576cvbs hdmimode=${m} m_bpp=${m_bpp} vout=${vout_mode} ${disableuhs}" ethrst Success: reset mac OK!(0) ETH PHY hardware reset OK find net phy id=0x1cc916, phyad=0 set_mac_mode(0) final_addr[rx-tx]: 0xee100fb0-0xe2000003 Ethernet reset OK video open; video clear; video dev open 720p mode = 6 vic = 4 set HDMI vic: 4 mode is: 6 viu chan = 1 config HPLL config HPLL done reconfig packet setting done logo size 720p bmp scale setenv loaderdev mmc0:3 fatload mmc 0:1 0x21000000 ubldr reading ubldr 262654 bytes read fatload mmc 0:1 0x21800000 odroidc1.dtb reading odroidc1.dtb 10862 bytes read fdt addr 21800000 fdt set / board_serial ${fbt_id#} fdt set /mesonfb fb_width 1280 fdt set /mesonfb fb_height 720 fdt set /mesonfb fb_bpp 24 video dev open 480p mode = 2 vic = 3 set HDMI vic: 3 mode is: 2 viu chan = 1 config HPLL config HPLL done reconfig packet setting done fatload mmc 0 0x1000000 kernel.bin reading kernel.bin 4486116 bytes read go 0x1000000 ## Starting application at 0x01000000 ... ARM Debug Architecture v7 2 watchpoints and 3 breakpoints supported 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 #1 r297292M: Mon Mar 28 12:37:04 IDT 2016 danny@rnd:/home/obj/rnd/armv6/odroid/arm.armv6/r+d/vanilla/11/src/sys/ODROIDC1 arm FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. Preloaded elf kernel "kernel" at 0xc063e500. CPU: Cortex A5 rev 1 (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 2-way instruction cache Read-Alloc real memory = 1073737728 (1023 MB) avail memory = 1039278080 (991 MB) Physical memory chunk(s): 0x00001000 - 0x3fffffff, 1023 MB ( 262143 pages) Excluded memory regions: 0x01000000 - 0x01653fff, 6 MB ( 1620 pages) NoAlloc Static device mappings: 0xc1100000 - 0xc12fffff mapped at VA 0xffd00000 0xc4200000 - 0xc42fffff mapped at VA 0xffc00000 0xc4300000 - 0xc43fffff mapped at VA 0xffb00000 0xc8000000 - 0xc80fffff mapped at VA 0xffa00000 0xc8100000 - 0xc81fffff mapped at VA 0xff900000 0xc9000000 - 0xc97fffff mapped at VA 0xff100000 0xd9000000 - 0xd90fffff mapped at VA 0xff000000 0xda000000 - 0xda0fffff mapped at VA 0xfef00000 Amlogic aml8726-m8b SoC FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs ULE: setup cpu 0 ULE: setup cpu 1 ULE: setup cpu 2 ULE: setup cpu 3 null: openfirm: mem: random: harvesting attach, 8 bytes (4 bits) from nexus0 ofwbus0: simplebus0: on ofwbus0 random: harvesting attach, 8 bytes (4 bits) from simplebus0 random: harvesting attach, 8 bytes (4 bits) from ofwbus0 scu0: mem 0x4300000-0x4300fff on simplebus0 random: harvesting attach, 8 bytes (4 bits) from scu0 cpuconfig0: mem 0x1901ff80-0x1901ff8f on simplebus0 random: harvesting attach, 8 bytes (4 bits) from cpuconfig0 l2cache0: mem 0x4200000-0x4200fff irq 0 on simplebus0 l2cache0: Part number: 0x3, release: 0x9 l2cache0: L2 Cache enabled: 512KB/32B 8 ways l2cache0: Early BRESP response: disabled l2cache0: Instruction prefetch: disabled l2cache0: Data prefetch: enabled l2cache0: Non-secure interrupt control: disabled l2cache0: Non-secure lockdown: disabled l2cache0: Share override: disabled l2cache0: Double linefill: disabled l2cache0: Instruction prefetch: disabled l2cache0: Data prefetch: enabled l2cache0: Double linefill on WRAP request: disabled l2cache0: Prefetch drop: disabled l2cache0: Incr double Linefill: disabled l2cache0: Not same ID on exclusive sequence: disabled l2cache0: Prefetch offset: 0 random: harvesting attach, 8 bytes (4 bits) from l2cache0 ccm0: mem 0x1104140-0x1104153 on simplebus0 random: harvesting attach, 8 bytes (4 bits) from ccm0 pinctrl0: mem 0x11080b0-0x11080d7,0x11080e8-0x11080ff,0x1108120-0x1108137,0x8100014-0x8100017,0x810002c-0x810002f,0x810002c-0x810002f on simplebus0 Processing 3 pin-config node(s) in pinctrl-0 for pinctrl@11080b0 Processing 1 pin-config node(s) in pinctrl-0 for mmc@1108c20 Processing 1 pin-config node(s) in pinctrl-0 for sdxc@1108e00 random: harvesting attach, 8 bytes (4 bits) from pinctrl0 gic0: mem 0x4301000-0x4301fff,0x4300100-0x43001ff on simplebus0 simplebus0: no default resources for rid = 0, type = 1 gic0: pn 0x390, arch 0x1, rev 0x1, implementer 0x43b irqs 256 random: harvesting attach, 8 bytes (4 bits) from gic0 wdt0: mem 0x1109900-0x1109907 irq 1 on simplebus0 random: harvesting attach, 8 bytes (4 bits) from wdt0 timer0: mem 0x1109940-0x1109957 irq 2,3,4,5 on simplebus0 Event timer "aml8726 timer A" frequency 1000000 Hz quality 1000 Timecounter "aml8726 timer E" frequency 1000000 Hz quality 1000 random: harvesting attach, 8 bytes (4 bits) from timer0 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu0: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu0 cpu1: on cpulist0 cpu1: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu1 cpu2: on cpulist0 cpu2: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu2 cpu3: on cpulist0 cpu3: missing 'clock-frequency' property random: harvesting attach, 8 bytes (4 bits) from cpu3 random: harvesting attach, 8 bytes (4 bits) from cpulist0 rtc0: mem 0x8100740-0x8100753 irq 6 on simplebus0 rtc0: registered as a time-of-day clock (resolution 1000000us, adjustment 0.500000000s) random: harvesting attach, 8 bytes (4 bits) from rtc0 clkmsr0: mem 0x1108758-0x1108767 on simplebus0 clkmsr0: bus clock 159 MHz random: harvesting attach, 8 bytes (4 bits) from clkmsr0 uart0: mem 0x81004c0-0x81004d3 irq 7 on simplebus0 uart0: missing clock attribute in FDT device_attach: uart0 attach returned 6 gpio0: mem 0x8100024-0x8100027,0x8100024-0x8100027,0x8100028-0x810002b on simplebus0 gpiobus0: on gpio0 gpioled0: at pin 13 on gpiobus0 random: harvesting attach, 8 bytes (4 bits) from gpioled0 random: harvesting attach, 8 bytes (4 bits) from gpiobus0 gpioc0: on gpio0 random: harvesting attach, 8 bytes (4 bits) from gpioc0 random: harvesting attach, 8 bytes (4 bits) from gpio0 gpio1: mem 0x1108054-0x1108057,0x1108058-0x110805b,0x110805c-0x110805f on simplebus0 gpiobus1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpiobus1 gpioc1: on gpio1 random: harvesting attach, 8 bytes (4 bits) from gpioc1 random: harvesting attach, 8 bytes (4 bits) from gpio1 gpio2: mem 0x110806c-0x110806f,0x1108070-0x1108073,0x1108074-0x1108077 on simplebus0 gpiobus2: on gpio2 random: harvesting attach, 8 bytes (4 bits) from gpiobus2 gpioc2: on gpio2 random: harvesting attach, 8 bytes (4 bits) from gpioc2 random: harvesting attach, 8 bytes (4 bits) from gpio2 aml8726_mmc0: mem 0x1108c20-0x1108c3f irq 8 on simplebus0 mmc0: on aml8726_mmc0 random: harvesting attach, 8 bytes (4 bits) from mmc0 random: harvesting attach, 8 bytes (4 bits) from aml8726_mmc0 aml8726_sdxc0: mem 0x1108e00-0x1108e3b irq 9 on simplebus0 mmc1: on aml8726_sdxc0 random: harvesting attach, 8 bytes (4 bits) from mmc1 random: harvesting attach, 8 bytes (4 bits) from aml8726_sdxc0 simplebus0: mem 0x1108100-0x1108107 compat amlogic,aml8726-rng (no driver attached) aml8726_iic0: mem 0x1108500-0x110851f irq 10 on simplebus0 iicbb0: on aml8726_iic0 iicbus0: on iicbb0 master-only iic0: on iicbus0 random: harvesting attach, 8 bytes (4 bits) from iic0 random: harvesting attach, 8 bytes (4 bits) from iicbus0 random: harvesting attach, 8 bytes (4 bits) from iicbb0 random: harvesting attach, 8 bytes (4 bits) from aml8726_iic0 aml8726_iic1: mem 0x11087c0-0x11087df irq 11 on simplebus0 iicbb1: on aml8726_iic1 iicbus1: on iicbb1 master-only iic1: on iicbus1 random: harvesting attach, 8 bytes (4 bits) from iic1 random: harvesting attach, 8 bytes (4 bits) from iicbus1 random: harvesting attach, 8 bytes (4 bits) from iicbb1 random: harvesting attach, 8 bytes (4 bits) from aml8726_iic1 uart0: mem 0x11084c0-0x11084d3 irq 12 on simplebus0 uart0: missing clock attribute in FDT device_attach: uart0 attach returned 6 uart0: mem 0x11084dc-0x11084ef irq 13 on simplebus0 uart0: missing clock attribute in FDT device_attach: uart0 attach returned 6 uart0: mem 0x1108700-0x1108713 irq 14 on simplebus0 uart0: missing clock attribute in FDT device_attach: uart0 attach returned 6 usbphy0: mem 0x1108800-0x110881f on simplebus0 random: harvesting attach, 8 bytes (4 bits) from usbphy0 usbphy1: mem 0x1108820-0x110883f on simplebus0 random: harvesting attach, 8 bytes (4 bits) from usbphy1 dwcotg0: mem 0x9040000-0x907ffff irq 15 on simplebus0 usbus0 on dwcotg0 dwcotg0: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus0 random: harvesting attach, 8 bytes (4 bits) from dwcotg0 dwcotg1: mem 0x90c0000-0x90fffff irq 16 on simplebus0 usbus1 on dwcotg1 dwcotg1: usbpf: Attached random: harvesting attach, 8 bytes (4 bits) from usbus1 random: harvesting attach, 8 bytes (4 bits) from dwcotg1 dwc0: mem 0x9410000-0x9411fff irq 17 on simplebus0 miibus0: on dwc0 rgephy0: PHY 0 on miibus0 rgephy0: OUI 0x00e04c, model 0x0011, rev. 6 rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto random: harvesting attach, 8 bytes (4 bits) from rgephy0 rgephy1: PHY 1 on miibus0 rgephy1: OUI 0x00e04c, model 0x0011, rev. 6 rgephy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto random: harvesting attach, 8 bytes (4 bits) from rgephy1 random: harvesting attach, 8 bytes (4 bits) from miibus0 dwc0: bpf attached dwc0: Ethernet address: 62:73:64:9a:63:5f random: harvesting attach, 8 bytes (4 bits) from dwc0 fb0: mem 0x8006048-0x8006053,0x1106800-0x1106bff,0x1107400-0x11077ff irq 18,19,20,21 on simplebus0 fbd0 on fb0 VT: initialize with new VT driver "fb". random: harvesting attach, 8 bytes (4 bits) from fbd0 random: harvesting attach, 8 bytes (4 bits) from fb0 ofwbus0: compat gpio-leds (no driver attached) procfs registered Timecounters tick every 10.000 msec tcp_init: net.inet.tcp.tcbhashsize auto tuned to 8192 lo0: bpf attached mmc0: Probing bus usbus0: 480Mbps High Speed USB v2.0 usbus1: 480Mbps High Speed USB v2.0 **** and now it hungs **** --Apple-Mail=_1F105C16-4745-478B-87CA-DAFF13EDB4DF--