(This follows from the wireshark thread, but I've tried to move on)
I have a sparkling new rpi4B 4Gb. It booted raspbian (off the net)
happily, so I know that (a) the hardware works, and (b) I know how to
write the relevant sd card.
Can anyone help me get this going please? I really want to boot from HD ultimately. Thanks.
I've put some random notes at
https://lists.freebsd.org/archives/freebsd-arm/
but there are better resources by now.
In comp.sys.raspberry-pi Mike Scott <usenet.16@scottsonline.org.uk.invalid> wrote:
(This follows from the wireshark thread, but I've tried to move on)[snip]
I have a sparkling new rpi4B 4Gb. It booted raspbian (off the net)
happily, so I know that (a) the hardware works, and (b) I know how to
write the relevant sd card.
Can anyone help me get this going please? I really want to boot from HD
ultimately. Thanks.
Best to take a look at the freebsd-arm mailing list archives at https://lists.freebsd.org/archives/freebsd-arm/
While at it, subscribe to at least freebsd-arm. I've gotten vast
amounts of help there.
There are a few (many?) details to be worked through. I did it after
getting my RPI4, which is now working happily, proof positive that
it's a doable proposition with limited knowhow. As a first try, just
pick a different snapshot and try that. Older, newer, doesn't matter.
Start with SD card boot, then move to USB when you've got a good image.
I've put some random notes at
https://lists.freebsd.org/archives/freebsd-arm/
but there are better resources by now.
Hope this helps,
bob prohaska
Thanks for the advice. After posting, I kept digging around, and came
up with a long thread at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255080
of which comment #15 gives a download link (sourceforge) for an updated u-boot.bin which works fine for the sdcard boot.
However, booting from HD, it stalled after complaining 'mountroot:
waiting for device /dev/ufs/rootfs'.
Cranking up kern.cam.boot_delay to 10 sec, necessary for the pi3, has
mixed success here. Sometimes boots, sometimes not; sometimes tries the network instead. I'll free up a spare disk, and see if that makes a difference.
Glad you got it working thus far!
bob prohaska
I've now had it running happily off either sdcard or booting from HD.
But I've hit another annoyance.
Basically, it won't run with two USB HDs attached. If I boot off sdcard,
then plug in the disks, the first is fine: the second produces a stack
of errors then crashes.
Messages start with
da0: .... destroyed
then it detaches the keyboard and mouse, then I get
usbd_req_re_enumerate: .... USB_ERR_IOERROR, ignored
and it's power cycle time. Ouch!
Anyone had two HD's working in at once?
The PSU is the rpi 15W standard issue, btw. Could that be an issue though?
I've now had it running happily off either sdcard or booting from HD.
But I've hit another annoyance.
Basically, it won't run with two USB HDs attached. If I boot off sdcard,
then plug in the disks, the first is fine: the second produces a stack of errors then crashes.
Messages start with da0: .... destroyed then it detaches the keyboard and mouse, then I get usbd_req_re_enumerate: .... USB_ERR_IOERROR, ignored
and it's power cycle time. Ouch!
Anyone had two HD's working in at once?
The PSU is the rpi 15W standard issue, btw. Could that be an issue though?
Anyone had two HD's working in at once?
The PSU is the rpi 15W standard issue, btw. Could that be an issue though?
It's pretty much certain.
I do have a RasPi with two HDDs attached, but to make that work I had to
get a very powerful PSU (mine's rated at 8 amps, which is more than enough, but it was not expensive), and, crucially, I had to jumper the main 5V
line to the USB power pins so as to avoid the current limiting circuitry asspciated with USB within the Pi. This has my setup relying on the PSU's current limiting.
Don't do this unless you know what you're doing.
The other advice, getting a powered USB hub, is wise.
This may be jumping ahead a bit; but, if you get a hub and want to run
both the Pi and the hub off the same PSU, beware of cheap power splitters that don't have enough copper in them and thus drop too much voltage.
David
Longer term is that this would prevent my current offline backup scheme
(plug in backup disk, rsync, unplug disk) from working. I'll have to
think a bit before proceeding.
On Mon, 27 Sep 2021 16:29:50 +0100, Mike Scott wrote:
Longer term is that this would prevent my current offline backup schemeDon't forget that rsync can backup to a disk attached to a different
(plug in backup disk, rsync, unplug disk) from working. I'll have to
think a bit before proceeding.
machine on your LAN - when this is running there's a copy of rsync
running on each machine: they talk to each other to transfer the data
being backed up so, if the disk receiving backed up files is attached to
a host other than the RPi, you don't need to attach more than one HDD to
it.
I've been using this backup system for several years now. I'm backing up
one RPi and three other Linux systems onto the same USB-connected HDD
which, like you're planning to do, is kept offline in a firesafe when not receiving backups. Actually I have two backup disks, which are used in rotation, so there is always one in the firesafe with the door closed.
On 27/09/2021 17:09, Martin Gregorie wrote:
On Mon, 27 Sep 2021 16:29:50 +0100, Mike Scott wrote:Yes. The tradeoffs between a usb connected drive and a usb connected gigabit ethernet are worth exploring, if you have, or feel like
Longer term is that this would prevent my current offline backup schemeDon't forget that rsync can backup to a disk attached to a different
(plug in backup disk, rsync, unplug disk) from working. I'll have to
think a bit before proceeding.
machine on your LAN - when this is running there's a copy of rsync
running on each machine: they talk to each other to transfer the data
being backed up so, if the disk receiving backed up files is attached to
a host other than the RPi, you don't need to attach more than one HDD to
it.
I've been using this backup system for several years now. I'm backing up
one RPi and three other Linux systems onto the same USB-connected HDD
which, like you're planning to do, is kept offline in a firesafe when not
receiving backups. Actually I have two backup disks, which are used in
rotation, so there is always one in the firesafe with the door closed.
building, a NAS type solution
On 27/09/2021 17:52, The Natural Philosopher wrote:
On 27/09/2021 17:09, Martin Gregorie wrote:Thanks to both for the comments.
On Mon, 27 Sep 2021 16:29:50 +0100, Mike Scott wrote:Yes. The tradeoffs between a usb connected drive and a usb connected
Longer term is that this would prevent my current offline backupDon't forget that rsync can backup to a disk attached to a different
scheme (plug in backup disk, rsync, unplug disk) from working. I'll
have to think a bit before proceeding.
machine on your LAN - when this is running there's a copy of rsync
running on each machine: they talk to each other to transfer the data
being backed up so, if the disk receiving backed up files is attached
to a host other than the RPi, you don't need to attach more than one
HDD to it.
I've been using this backup system for several years now. I'm backing
up one RPi and three other Linux systems onto the same USB-connected
HDD which, like you're planning to do, is kept offline in a firesafe
when not receiving backups. Actually I have two backup disks, which
are used in rotation, so there is always one in the firesafe with the
door closed.
gigabit ethernet are worth exploring, if you have, or feel like
building, a NAS type solution
FWIW my main backup strategy is dump running daily, networking the
output to my desktop machine. So if the server dies nastily and kills
its disks, the data is safe elsewhere (although restore is /very/
messy!). That's kept for a couple of weeks. The 'rsync' backup is done occasionally, mainly to have a hot standby that's "not too out-of-date".
I'll review matters when the pi is running to my satisfaction.
The immediate reason for doing this is that the root partition resizes
to fill the disk. I can't work out a way of making it resize to what I
want -- hence a desire to copy between disks. But my knowledge of
partitions is ATM clearly too limited :-{
The pi internals cannot supply 2 HDs with power. Use an external USB C hub with its own power.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 371 |
Nodes: | 16 (2 / 14) |
Uptime: | 175:03:59 |
Calls: | 7,915 |
Files: | 12,983 |
Messages: | 5,797,724 |