From owner-freebsd-ppc@freebsd.org Wed Aug 14 16:24:42 2019 Return-Path: Delivered-To: freebsd-ppc@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1784DB130C for ; Wed, 14 Aug 2019 16:24:42 +0000 (UTC) (envelope-from al@datazap.net) Received: from agnus.datazap.net (agnus.datazap.net [209.160.40.35]) by mx1.freebsd.org (Postfix) with ESMTP id 467w09153Kz4WHR for ; Wed, 14 Aug 2019 16:24:40 +0000 (UTC) (envelope-from al@datazap.net) Received: from [127.0.0.1] (localhost [127.0.0.1]) by agnus.datazap.net (Postfix) with ESMTP id 5C735B794B; Wed, 14 Aug 2019 12:24:26 -0400 (EDT) Subject: Re: progress and some questions X5000 To: Justin Hibbits Cc: freebsd-ppc@freebsd.org References: <434669ac-ccc0-f971-7c41-f539b91fa9d7@datazap.net> <20190812141735.57fece60@ralga.knownspace> From: Al Message-ID: <0ba34cfb-6757-3010-e83e-fbd8ca589dbd@datazap.net> Date: Wed, 14 Aug 2019 18:24:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux ppc64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20190812141735.57fece60@ralga.knownspace> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 467w09153Kz4WHR X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of al@datazap.net has no SPF policy when checking 209.160.40.35) smtp.mailfrom=al@datazap.net X-Spamd-Result: default: False [0.34 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.08)[-0.077,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.63)[-0.629,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[datazap.net]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.03)[-0.030,0]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14361, ipnet:209.160.32.0/20, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.08)[ipnet: 209.160.32.0/20(0.50), asn: 14361(-0.04), country: US(-0.05)]; RCVD_COUNT_TWO(0.00)[2] 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: Wed, 14 Aug 2019 16:24:42 -0000 On 12/08/19 21:17, Justin Hibbits wrote: > On Mon, 12 Aug 2019 15:07:18 +0200 > Al wrote: > >> Hello, >> >> After a very long time of trying different things, it is where the >> serial console does work. It seems that none of the serial-to-usb >> devices were fast enough to transfer data from the X5000's serial >> port. >> >> Still, I have some issues. The kernel can't seem to find the >> userland. It stops with DHCP/BOOTP. It looks like it is trying to do >> a netboot. I have an install of FreeBSD on a thumb drive. My guess is >> that I need to move the boot loader to the FAT partition. Is this >> correct? >> >> Also, I just did an install to the thumb drive from an X86 FreeBSD >> machine that I borrowed to compile the powerpc install. Would it be >> better to have the cdrom installer on the thumb drive? >> >> Kind Regards, >> Al > Hi Al, > > I'll give a more thorough reply later, but for now I wanted to address > the kernel config. The QORIQ64 config is based on MPC85XX config, > which assumes an always-netboot environment. To remove this so that > you always boot locally, add the following to your kernel config: > > nooptions BOOTP > nooptions BOOTP_NFSROOT > > Also, we do have the ability to boot from loader, using ubldr. The > instructions to do so are on the wiki, at > https://wiki.freebsd.org/powerpc/UBoot-Install > > Basically you want two top-level partitions (The AmigaOne X5000 U-Boot > doesn't recognize GPT format, only MBR, so you're stuck with that > format). One partition is FAT, and should have ubldr and the .dtb > file. The other partition is a FreeBSD disklabel partition, where you > put your full FreeBSD install. You cannot create it from x86 as an > actual install. If you want to create the image from x86, you need to > use mkimg, and there are scripts around for building FreeBSD disklabel > images, you can find them online. > > - Justin > Hi Justin, Okay, I made some assumptions about how this would work that are totally wrong. To start, I will rebuild the kernel on the X86 system with what you specified above. I have some old power macs, I guess that I could try getting one of them running FreeBSD again. I don't know why, but every time I tried to load the install CD they would get almost to where I would expect to see the installer and then crash. Any ideas on how to get past this? Also, I had FreeBSD PowerPC running inside of qemu (not sure how hard that would be to get going again). I wonder if I could use that to setup the thumb drive. None of the code I compiled inside the emulator seems to run on the real hardware, so I don't think that is an option. Thank you for all your help! Kind Regards, Al