From owner-freebsd-ppc@freebsd.org Thu Apr 1 05:02:20 2021 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 EAC015C870F for ; Thu, 1 Apr 2021 05:02:20 +0000 (UTC) (envelope-from julio@meroh.net) Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F9rdl5Dccz3NlH for ; Thu, 1 Apr 2021 05:02:19 +0000 (UTC) (envelope-from julio@meroh.net) Received: by mail-qk1-x729.google.com with SMTP id v70so1097594qkb.8 for ; Wed, 31 Mar 2021 22:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meroh.net; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PiR319Eq7yiWNEE0WvW7ZGDZjOAEHe5PC/rD7EuQ5c0=; b=lpxVQnBgtv0YQru9aGDBe6RdtlNacrGL+pyQCfippPrM4KxSJiWBNild3t3+LQaXTd DqCFbjrbULx92nj6zFzpVRQlQJdDOTgW/3uoKTf/8KWOb2lckXR+57p/1PFIGubtKVVt BYGLs6r9CDNZUJ89AlzwlZMVsTdTZtmbjabRuvUEB320LYbK3QSu7DlVJXK2YrZFhT3G 9ZbLPbtQvf9rFx+WiIkBxHhBo0fXQe5CQ3eoahKcDEHn7iKMVALKGmlVuAVfGxLxpX1H P5uxAmD/wcOahdIWTdIPyuRsW+3MPSEgn3YfNfKjGU2RNfvBcPU2Uw064m60Jr6xma+/ dV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PiR319Eq7yiWNEE0WvW7ZGDZjOAEHe5PC/rD7EuQ5c0=; b=JmbnVrvBxY0Vju+J1pUOl1SpTMd7lR0GagclRa7FfVCgRY2gc57zqyYxEwLfrBbpd+ nAlGr9ziVpDJHbYf57v8WRG4C+ROz/AYBs/Ah4BoCX5pEeJ7gQtVsJYCfYRwEIbxRXA4 IO5sCBz4zvl7YhO4ZiqWg97vFDFafDTTefeG+3Yo6YHVlgb1BmQYKUcRCp0C1VI1oNeo fsatyJWHXkHQbVLM0CddeffjYt8uufKtnwYavthJUbByfUavELK16zBAE+0aPUqn/kQ4 7VqDP+sjc65DajUEpvqyi+vyynUzOUyJXWGa9q1KuXLhwSJTDgCdBcSVEDRxuDag2LG2 RcIQ== X-Gm-Message-State: AOAM533vCNvLf+QCXG02JxWlWiR4CmXRWiQBl93lN8mnTgK4xWmpp92T 8vNZ7mnU9x4pY5D2GEnjbQ4PdTLEdjkbQU8DP8mjVA== X-Google-Smtp-Source: ABdhPJxbwLcyQ74bX1fCUhlxYNR3n4takChelsV1F4/tZwwBfUFaxeKWsgLXXjZ/IXkMD9yqfssPYAgl9c1BemR98C0= X-Received: by 2002:a37:a48c:: with SMTP id n134mr6819658qke.490.1617253338194; Wed, 31 Mar 2021 22:02:18 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Julio Merino Date: Wed, 31 Mar 2021 22:02:07 -0700 Message-ID: Subject: Re: Troubles with USB To: Jason Bacon Cc: freebsd-ppc@freebsd.org X-Rspamd-Queue-Id: 4F9rdl5Dccz3NlH X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=meroh.net header.s=google header.b=lpxVQnBg; dmarc=none; spf=pass (mx1.freebsd.org: domain of julio@meroh.net designates 2607:f8b0:4864:20::729 as permitted sender) smtp.mailfrom=julio@meroh.net X-Spamd-Result: default: False [-3.48 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[meroh.net:s=google]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-ppc@freebsd.org]; DMARC_NA(0.00)[meroh.net]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::729:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[meroh.net:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::729:from]; NEURAL_HAM_SHORT(-0.98)[-0.982]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::729:from]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-ppc] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Apr 2021 05:02:21 -0000 I finally had some time today to get back to this. In the end, I traced the problem with USB drives to the RAM upgrade I performed. Pulling out the extra 8GB I added and leaving the machine with 2GB made the USB drives work again and I could reinstall the system. I'm not sure why my previous attempt at doing this failed. This smells like a bug in FreeBSD to me though. OpenFirmware had no trouble loading the kernel and booting it but FreeBSD was just confused reading from the drives. In fact, if I booted the already-installed FreeBSD, plugged the USB stick in, and ran a "dd" to read the data, all I got were zeroes. And if I tried to unplug and replug the drive, the system would hang. On Wed, Mar 10, 2021 at 6:39 PM Julio Merino wrote: > Well, note that the USB stick and drive that I mentioned had previously > worked on this machine. And OpenFirmware still sees them well and can boot > the loader and kernel just fine. It's FreeBSD the one that gets confused > when mounting the root file system... > > On Mon, Mar 8, 2021 at 6:30 AM Jason Bacon wrote: > >> >> I've had similar trouble, which I mentioned on this list in the past. >> The PowerMac is finicky about USB sticks. It seems that it does work >> with U3 drives and other newer drives. I was only able to boot from one >> older 2 GB drive that has since burned out, so I'm unable to upgrade at >> the moment, given that my optical drive can't read DVDs. >> >> If you can find a USB stick the same vintage as the PowerMac, your luck >> might change. >> >> JB >> >> On 3/7/21 10:18 PM, Julio Merino wrote: >> > However, here is where the strangeness starts. I want to repartition the >> > boot (SSD) drive now... and I just cannot get the installer to work >> again. >> > Using the same image as before and the same USB stick, the installation >> > kernel loads without issues from OpenFirmware... but as soon as it >> starts >> > loading /sbin/init, things start failing left and right. It feels as if >> > there is I/O corruption when reading from the USB drive given that the >> > system reports "invalid binary files" and segfaults everywhere. (I tried >> > with another drive and found the same problem. I'm pretty sure the >> drive is >> > good given that it can be read from another system.) >> >> >> -- >> Earth is a beta site. >> >> >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> > > > -- > jmmv.dev > -- jmmv.dev