From owner-freebsd-ppc@freebsd.org Tue Nov 27 09:26:20 2018 Return-Path: Delivered-To: freebsd-ppc@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 5D9F11142319 for ; Tue, 27 Nov 2018 09:26:20 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from atl4mhob21.registeredsite.com (atl4mhob21.registeredsite.com [209.17.115.115]) by mx1.freebsd.org (Postfix) with ESMTP id 7D68B6D915 for ; Tue, 27 Nov 2018 09:26:19 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mailpod.hostingplatform.com (atl4qobmail01pod2.registeredsite.com [10.30.77.35]) by atl4mhob21.registeredsite.com (8.14.4/8.14.4) with ESMTP id wAR9QHVY050924 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 27 Nov 2018 04:26:17 -0500 Received: (qmail 15869 invoked by uid 0); 27 Nov 2018 09:26:17 -0000 X-TCPREMOTEIP: 174.118.245.214 X-Authenticated-UID: dclarke@blastwave.org Received: from unknown (HELO ?172.16.35.3?) (dclarke@blastwave.org@174.118.245.214) by 0 with ESMTPA; 27 Nov 2018 09:26:16 -0000 To: FreeBSD PowerPC ML From: Dennis Clarke Subject: revision 341006 quite unusable Message-ID: <62bd5352-6eb5-ea4c-fd5b-fd4d1a35186b@blastwave.org> Date: Tue, 27 Nov 2018 04:26:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Thunderbird/64.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 7D68B6D915 X-Spamd-Result: default: False [1.32 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_SPAM_SHORT(0.21)[0.208,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.09)[-0.095,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; DMARC_NA(0.00)[blastwave.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: mx1.netsolmail.net]; RCVD_IN_DNSWL_NONE(0.00)[115.115.17.209.list.dnswl.org : 127.0.5.0]; NEURAL_SPAM_MEDIUM(0.23)[0.231,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; IP_SCORE(-0.02)[country: US(-0.09)]; ASN(0.00)[asn:19871, ipnet:209.17.112.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2018 09:26:20 -0000 So I did a checkout of revision 341006 and without any changes to make.conf and a trivial "make buildkernel" followed by the requisite "make installkernel" I get a machine with a black screen and entirely quite a warm brick. Loud fans. That is all. Pretty sure I missed a big step such as "make buildworld". May as well forget the idea of a make -jX foo with any value X other than 1. I did the exact same process with the sources as provided in RC2 and the machine would boot and run fine with kern.smp.disabled=1 otherwise a warm brick with fans roaring and at least there was something on the console. I did try to load /usr/lib/debug/boot/kernel.old/kernel.debug and seemed to get me nowhere. I don't see any docs anywhere on how to load the last working kernel from forth so I booted the RC2 DVD ( without the dreaded kern.smp.disabled ) and was then able to mount /dev/ada0s3 on /mnt and move the old kernel back into place. Bearing in mind that it was built from the RC2 sources. Anyways here is output from dmesg from the RC2 DVD : ---<>--- 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-RC2 r340839 GENERIC powerpc gcc version 4.2.1 20070831 patched [FreeBSD] VT(ofwfb): resolution 1280x1024 cpu0: IBM PowerPC 970MP revision 1.1, 2500.28 MHz cpu0: Features dc000000 cpu0: HID0 1511081 real memory = 8541921280 (8146 MB) avail memory = 8152719360 (7775 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs arc4random: no preloaded entropy cache random: entropy device external interface kbd0 at kbdmux0 ofwbus0: on nexus0 cpulist0: on ofwbus0 cpu0: on cpulist0 pcr0: on cpu0 cpu1: on cpulist0 pcr1: on cpu1 cpu2: on cpulist0 pcr2: on cpu2 cpu3: on cpulist0 pcr3: on cpu3 powermac_nvram0: mem 0xfff04000-0xfff07fff on ofwbus0 powermac_nvram0: bank0 generation 452, bank1 generation 453 unin0: mem 0xf8000000-0xf8ffffff on ofwbus0 unin0: Version 66 iichb0: mem 0xf8001000-0xf8001fff irq 0 on unin0 iicbus0: on iichb0 iic0: on iicbus0 ds17750: at addr 0x94 on iicbus0 ds16310: at addr 0x96 on iicbus0 max66900: at addr 0x98 on iicbus0 max66901: at addr 0x9c on iicbus0 htpic0: mem 0xf8040000-0xf807ffff on unin0 pcib0: mem 0xf0000000-0xf1ffffff on ofwbus0 pci0: on pcib0 vgapci0: mem 0xa1000000-0xa1ffffff,0x90000000-0x9fffffff,0xa0000000-0xa0ffffff irq 3 at device 0.0 on pci0 vgapci0: Boot video device pcib1: mem 0xf2000000-0xf47fffff,0xf8070000-0xf8070fff on ofwbus0 pcib1: 86 HT IRQs on device 7.0 pci1: on pcib1 pcib1: Enabling MSI window for HyperTransport slave at pci1:0:1:0 pcib2: at device 1.0 on pci1 pci2: on pcib2 pcib3: at device 2.0 on pci1 pci3: on pcib3 bge0: mem 0xfa530000-0xfa53ffff,0xfa520000-0xfa52ffff irq 66 at device 4.0 on pci3 bge0: CHIP ID 0x00008003; ASIC REV 0x08; CHIP REV 0x80; PCI-X 33 MHz miibus0: on bge0 brgphy0: PHY 1 on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge0: Ethernet address: 00:14:51:64:67:10 bge1: mem 0xfa510000-0xfa51ffff,0xfa500000-0xfa50ffff irq 67 at device 4.1 on pci3 bge1: CHIP ID 0x00008003; ASIC REV 0x08; CHIP REV 0x80; PCI-X 33 MHz miibus1: on bge1 brgphy1: PHY 1 on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow bge1: Ethernet address: 00:14:51:64:67:11 pcib4: at device 3.0 on pci1 pci4: on pcib4 pcib5: at device 4.0 on pci1 pci5: on pcib5 pcib6: at device 5.0 on pci1 pci6: on pcib6 pcib7: at device 6.0 on pci1 pci7: on pcib7 pcib8: at device 7.0 on pci1 pci8: on pcib8 gem0: mem 0xfa200000-0xfa3fffff at device 15.0 on pci8 gem0: invalid MAC address device_attach: gem0 attach returned 6 pcib9: at device 8.0 on pci1 pci9: on pcib9 macio0: mem 0x80000000-0x8007ffff at device 7.0 on pci9 macgpio0: mem 0x50-0x8a on macio0 scc0: mem 0x13000-0x13fff,0x8400-0x84ff,0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 23,17,18,24,19,20 on macio0 uart0: on scc0 uart1: on scc0 iichb1: mem 0x18000-0x18fff irq 27 on macio0 iicbus1: on iichb1 iic1: on iicbus1 onyx0: at addr 0x8c on iicbus1 iicbus1: at addr 0x24 pcm0: mem 0x10000-0x10fff,0x8000-0x80ff,0x8100-0x81ff irq 28,11,12,30,15,16 on macio0 ohci0: mem 0x80082000-0x80082fff irq 70 at device 11.0 on pci9 usbus0 on ohci0 ohci1: mem 0x80081000-0x80081fff irq 70 at device 11.1 on pci9 usbus1 on ohci1 ehci0: mem 0x80080000-0x800800ff irq 70 at device 11.2 on pci9 usbus2: EHCI version 1.0 usbus2 on ehci0 pcib10: at device 9.0 on pci1 pci10: on pcib10 atapci0: mem 0xfa402000-0xfa403fff irq 10 at device 12.0 on pci10 pcib1: failed to reserve resource for pcib10 atapci0: 0x10 bytes of rid 0x20 res 4 failed (0, 0xffffffffffffffff). ata2: at channel 0 on atapci0 ata3: at channel 1 on atapci0 ata4: at channel 2 on atapci0 ata5: at channel 3 on atapci0 ata0: mem 0xfa404000-0xfa407fff irq 38,37 at device 13.0 on pci10 fwohci0: <1394 Open Host Controller Interface> mem 0xfa400000-0xfa400fff irq 39 at device 14.0 on pci10 fwohci0: OHCI version 1.0 (ROM=0) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:11:24:ff:fe:e5:13:d0 fwohci0: invalid speed 7 (fixed to 3). fwohci0: Phy 1394a available S800, 3 ports. fwohci0: Link S800, max_rec 4096 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:11:24:e5:13:d0 fwe0: Ethernet address: 02:11:24:e5:13:d0 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: fwohci_intr_core: BUS reset fwohci0: PhysicalUpperBound register is not implemented. Physical memory access is limited to the first 4GB fwohci0: PhysicalUpperBound = 0x00000000 fwohci0: fwohci_intr_core: node_id=0x00000001, SelfID Count=1, CYCLEMASTER mode smu0: on ofwbus0 smu0: registered as a time-of-day clock, resolution 0.001000s iichb2: on smu0 iicbus2: on iichb2 iic2: on iicbus2 smusat0: at addr 0xb0 on iicbus2 smusat1: at addr 0xb2 on iicbus2 iicbus2: at addr 0xd4 iichb3: on smu0 iicbus3: on iichb3 iic3: on iicbus3 Timecounter "timebase" frequency 33333333 Hz quality 0 Event timer "decrementer" frequency 33333333 Hz quality 1000 Timecounters tick every 1.000 msec firewire0: 2 nodes, maxhop <= 1 cable IRM irm(1) (me) firewire0: bus manager 1 bge0: link state changed to DOWN max66900: 2 sensors detected. max66901: 2 sensors detected. usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 usbus2: 480Mbps High Speed USB v2.0 ugen2.1: at usbus2 uhub2: on usbus2 uhub1: 2 ports with 2 removable, self powered uhub0: 3 ports with 3 removable, self powered uhub2: 5 ports with 5 removable, self powered ada0 at ata2 bus 0 scbus0 target 0 lun 0 ada0: ATA-7 SATA 1.x device ada0: Serial Number KRVN23ZAHA5DBD ada0: 150.000MB/s transfers (SATA 1.x, UDMA5, PIO 8192bytes) ada0: 476940MB (976773168 512 byte sectors) cd0 at ata0 bus 0 scbus4 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number M0063NE3358 cd0: 66.700MB/s transfers (UDMA4, ATAPI 12bytes, PIO 65534bytes) cd0: 4482MB (2295104 2048 byte sectors) SMP: AP CPU #1 launched SMP: AP CPU #2 launched SMP: AP CPU #3 launched arc4random: no preloaded entropy cache Trying to mount root from cd9660:/dev/iso9660/12_0_RC2_POWERPC64_DVD [ro]... ugen1.2: at usbus1 ukbd0 on uhub1 ukbd0: on usbus1 kbd1 at ukbd0 uhid0 on uhub1 uhid0: on usbus1 random: unblocking device. arc4random: no preloaded entropy cache arc4random: no preloaded entropy cache lo0: link state changed to UP Note that all four processor cores are available when I boot the DVD but there seems to be no way to get the same result when I boot from the installed image. That baffles me. What is the diff? Well here is the diff : root@eris:/usr/src # dmesg > /var/tmp/ondisk_dmesg root@eris:/usr/src # diff /var/tmp/rc2_dvd_dmesg /var/tmp/ondisk_dmesg 6c6 < FreeBSD 12.0-RC2 r340839 GENERIC powerpc --- > FreeBSD 12.0-RC2 GENERIC powerpc 9c9 < cpu0: IBM PowerPC 970MP revision 1.1, 2500.28 MHz --- > cpu0: IBM PowerPC 970MP revision 1.1, 2500.33 MHz 12,15c12,14 < real memory = 8541921280 (8146 MB) < avail memory = 8152719360 (7775 MB) < FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs < arc4random: no preloaded entropy cache --- > real memory = 8542404608 (8146 MB) > avail memory = 8152752128 (7775 MB) > random: unblocking device. 141,142d139 < max66900: 2 sensors detected. < max66901: 2 sensors detected. 145,146c142,143 < ugen0.1: at usbus0 < uhub0: on usbus0 --- > max66900: 2 sensors detected. > max66901: 2 sensors detected. 148c145,147 < uhub1: on usbus1 --- > uhub0: on usbus1 > ugen0.1: at usbus0 > uhub1: on usbus0 152,153c151,152 < uhub1: 2 ports with 2 removable, self powered < uhub0: 3 ports with 3 removable, self powered --- > uhub0: 2 ports with 2 removable, self powered > uhub1: 3 ports with 3 removable, self powered 159a159 > Trying to mount root from ufs:/dev/ada0s3 [rw]... 165,169d164 < SMP: AP CPU #1 launched < SMP: AP CPU #2 launched < SMP: AP CPU #3 launched < arc4random: no preloaded entropy cache < Trying to mount root from cd9660:/dev/iso9660/12_0_RC2_POWERPC64_DVD [ro]... 171c166 < ukbd0 on uhub1 --- > ukbd0 on uhub0 174c169 < uhid0 on uhub1 --- > uhid0 on uhub0 176,178d170 < random: unblocking device. < arc4random: no preloaded entropy cache < arc4random: no preloaded entropy cache 179a172,176 > bge0: link state changed to UP > module_register: cannot register gem/miibus from if_gem.ko; already loaded from kernel > Module gem/miibus failed to register: 17 > module_register: cannot register pci/gem from if_gem.ko; already loaded from kernel > Module pci/gem failed to register: 17 Really a mystery here. Dennis ps: I wonder if anyone reads these ? I'll keep hacking away regardless. root@eris:/usr/src # svnlite update /usr/src Updating '.': U sys/net/if.c U sys/net/rtsock.c U stand/i386/pxeldr/pxeboot.8 Updated to revision 341008. root@eris:/usr/src # moving onwards