From owner-freebsd-arm@freebsd.org Mon Oct 8 19:54:43 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 5B14710C9CF2 for ; Mon, 8 Oct 2018 19:54:43 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic305-21.consmr.mail.ne1.yahoo.com (sonic305-21.consmr.mail.ne1.yahoo.com [66.163.185.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E96677AA9D for ; Mon, 8 Oct 2018 19:54:42 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: ZGVR_gQVM1lb6ZeSRB1z7l4LbZfiCDpako2xV1CAaaCh3IBQkti3sTMmn3kbZYK MEkPD4Znbv44gfk_I7PTK8kQ3.aBcqJOZXEcKke1S3iwQtOJ2x4gz_3uHhDnfl.mnJ5DGsa63K2g aGyBijT4zXEbfmzSPJIsRN7gDVL0hUTC.D5x3sZ4MjtM.5e.3rlX1.6DimRGg8db1ebe.TNOrTlf Ivv7t5y.AHkiiYA.32Kvt_ZsvwysWhiwxfnGAW7FdfmkPwbLr_IAZKTYhPUrm75qRqUY4jnqfA0s .P7QuKqNJwtmwET_rIcy4UMey2cAjKS9s8cf42xChwqcj.AOJr4QaOHhCyyb_otIeoShZOkQf.WF NFr_W6cqrY7dK.YPtOe0DVKaU_yJ5UDQTptuDgf3MXeGRky1dRpqKF7Vr_fdROPkL1uL05bWat2y Iagcn9rQzzjSPiGTx1WX8Nih93rxHaIftAEIqokJhdBWoKiveBd5iSfKyf.cVqwuy9OOG4w6aP4F tFUmqgjHr1NbrRncFW2nXCEs4_Cz.DpQYvmkSs1cis2sqIVBYb0UKb_lrNKc_QGhcCof.aVNS6wb uQPM6OGbb0rnHAhaFjYBLkDuyNYR_xVeksbiwftAKBld_k9oEJHXKnCdY17ZNSOdZpcpjc9kMKZQ j.oFewB3n.tMdmej_2.La6be19E2xPoEeZpVF7iQySAIRNVFYnONFFhKJ5z3gARJxJSHxMBNZRfu 7un8iqvMRQPbb1xclf5CDCkjETF6_VXRwMP9Lub.xL_.hHnonWYeQFCqJ_2b0RdVE7_YZQ6yQk7b 0tT3CraKybd9hgP6_phDjqfyfvzdlkdnw5ezL4pdRyoEmOR6CMZ.zqmIPKxpdw_zTC13sF.hlZHA 6YA8AM65OLyJZ64umlb._XID9tWbTacsjCW6fnKHn1hNh8X5uGa63_RzU70UFRZRwHK0cJQ2UZAk RW4InquX8Hfk.5oF4eu6zHKLj25aswoO0nToOOOMPTpTAQzsXDhPVQlrp8iwg7LTRSULUFf33K0D Bs7v3LUddSn5p.dXhwO01H7b85XR_5WEDZgCvAPKSORgNijYODSdR1C8OIztY4eU84A-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic305.consmr.mail.ne1.yahoo.com with HTTP; Mon, 8 Oct 2018 19:54:41 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.101]) ([76.115.7.162]) by smtp423.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 6d2bfed66c2592ca0f8820d5732b4e74; Mon, 08 Oct 2018 19:54:40 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Question: How to boot FreeBSD head on a MACCHIATOBin (double shot)? From: Mark Millard In-Reply-To: <1539023879.3199.0@smtp.migadu.com> Date: Mon, 8 Oct 2018 12:54:38 -0700 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <84911233-9535-4005-82DC-1910BC3BF101@yahoo.com> References: <1539023879.3199.0@smtp.migadu.com> To: Greg V X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Oct 2018 19:54:43 -0000 On 2018-Oct-8, at 11:37 AM, Greg V = wrote: > On Mon, Oct 8, 2018 at 1:05 AM, Mark Millard via freebsd-arm = wrote: >> Anyone willing to provide notes or instructions >> for setting up a MACCHIATOBin (double shot) to boot >> FreeBSD head from a SATA SSD? (Failing that: a USB >> storage device?) (Failing that: microsd card?) >> This could well include notes/instructions about >> what needs to be on the media that may be unique >> to the MACCHIATOBin. I realize that various things >> will not work yet. I'd just explore some of what >> does work. >=20 > =46rom what I remember on this mailing list, PCIe and Ethernet won't = work. >=20 > (BTW, OpenBSD does have a PCIe driver for it already... and for the = Rockchip RK3399 too... dang) >=20 >> Needing to have the kernel and earlier stages >> and a preliminary /etc/fstab and /boot/loader.conf >> on an microsd card but getting the UFS file system >> (/) from the SATA SSD is likely a workable combination, >> similar to what I've sometimes done on smaller >> single board computers. For such, it is the kernel >> and earlier stages where I'm unclear on the details >> for the MACCHIATOBin double shot. >=20 > According to their wiki, SATA is supported in U-Boot: > = http://wiki.macchiatobin.net/tiki-index.php?page=3DUse+SATA+drives+in+U-Bo= ot Various details do not seem to match, such as the 1, 8, 9 device numbering for SATA (scsi) vs.: Marvell>> scsi scan scanning bus for devices... SATA link 0 timeout. SATA link 1 timeout. AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode flags: 64bit ncq led only pmp fbss pio slum part sxs=20 Target spinup took 0 ms. SATA link 1 timeout. AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode flags: 64bit ncq led only pmp fbss pio slum part sxs=20 Device 0: (0:0) Vendor: ATA Prod.: Samsung SSD 850 Rev: EXM0 Type: Hard Disk Capacity: 976762.3 MB =3D 953.8 GB (2000409264 x 512) The text seem to be for some older version of the board and/or firmware: the picture and description of the SATA connector position numbering is for an older board. > You should be able to just load and run loader.efi from the drive's = EFI System Partition. The help at the Marvell>> prompt mentioned EFI once: bootefi - Boots an EFI payload from memory with the longer description being: bootefi [fdt address] - boot EFI payload stored at address . If specified, the device tree located at gets exposed as EFI configuration table. I interpreted this as a lack of direct use of on-media EFI material being supported. > (And USB is supported too, so you can load from a USB stick to install = onto the SATA drive.) I was not successful at referencing USB media, despite: Marvell>> usb info 1: Hub, USB Revision 3.0 - U-Boot XHCI Host Controller=20 - Class: Hub - PacketSize: 9 Configurations: 1 - Vendor: 0x0000 Product 0x0000 Version 1.0 Configuration: 1 - Interfaces: 1 Self Powered 0mA Interface: 0 - Alternate Setting 0, Endpoints: 1 - Class Hub - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms 2: Mass Storage, USB Revision 3.0 - SanDisk Extreme - Class: (from Interface) Mass Storage - PacketSize: 9 Configurations: 1 - Vendor: 0x0781 Product 0x5580 Version 0.16 Configuration: 1 - Interfaces: 1 Bus Powered 100mA Interface: 0 - Alternate Setting 0, Endpoints: 2 - Class Mass Storage, Transp. SCSI, Bulk only - Endpoint 1 In Bulk MaxPacket 1024 - Endpoint 2 Out Bulk MaxPacket 1024 I just got "** Bad device usb 2 **" when trying have it do something with "2:" above --and things like: Marvell>> usb storage Card did not respond to voltage select! mmc_init: -95, time 26 No storage devices, perhaps not 'usb start'ed..? > If the built-in U-Boot doesn't support EFI, you can chainload a custom = build of U-Boot with the EFI option enabled. I'm not familiar with setting up and doing such (yet?). > According to = https://linux.debian.ports.arm.narkive.com/Co7jtx9F/debian-installer-on-ar= m64#post2 > you can even load an EDK II (TianoCore) build from U-Boot (without = directly flashing it). >=20 I'm not familiar with setting up doing such (yet?). Based on my (lack of) background in the area, no direction seemed to have clear steps to take. It seemed more like an error-prone exploration for me. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)