LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 01-08-2023, 03:40 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,508

Rep: Reputation: 234Reputation: 234Reputation: 234
NetBSD on the Raspberry PI 4 (RPI4) ?


Hello,

Which image may work on the Raspberry pi 4 ?

So far, it is said that Netbsd 10 might work.

https://blog.netbsd.org/tnf/entry/ne...beta_available

Installation
Using standard images
The simplest way is to download the appropriate SD card image from the NetBSD mirrors:

The Raspberry Pi 1 requires the ARMv6 rpi.img.gz.
The Raspberry Pi 2-3 can use the standard ARMv7 armv7.img.gz image.
The Raspberry Pi 3 can also use arm64.img.gz.
Decompress it and write it to the SD card:

$ gunzip armv7.img.gz
$ dd if=armv7.img of=/dev/rld0d conv=sync bs=1m progress=1
If you're not using NetBSD, your operating system's dd command's arguments may vary. On Windows, try Rawrite32.

The Raspberry Pi 4 requires the UEFI firmware. Write the UEFI firmware to the SD card, and then insert an USB drive with the standard NetBSD arm64.img written to it. The Pi will then boot from USB.

The Raspberry Pi 3 can also boot NetBSD from UEFI firmware, but the installation process is currently more complicated. However, there are some advantages, so you might want to try anyway.

Last edited by Xeratul; 01-08-2023 at 03:42 AM.
 
Old 01-10-2023, 02:53 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 14,719

Rep: Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029
There's going to be issues. Notably, booting is teetotally different from X86, and indeed all Arm sbcs are non-standard & unique that way. If you browse the distributions, you may see spins for various different sbcs. RazPi are popular, but the competition uses other chips.

Secondly, there's the porting issue. I presume the BSD libc isn't gnu libc, so you're left with the very little already compiled for that. Aarch64 is not x86_64, so patches have to be written and applied where the code doesn't suit. If you have a netbsd installer image that you can try on an sdcard, go ahead. Otherwise, I'd seriously advise sucking it up and installing Linux.
 
Old 01-10-2023, 03:38 PM   #3
DracoSentien
LQ Newbie
 
Registered: May 2019
Location: Bronx New York
Distribution: Debian
Posts: 27

Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
There's going to be issues. Notably, booting is teetotally different from X86, and indeed all Arm sbcs are non-standard & unique that way. If you browse the distributions, you may see spins for various different sbcs. RazPi are popular, but the competition uses other chips.

Secondly, there's the porting issue. I presume the BSD libc isn't gnu libc, so you're left with the very little already compiled for that. Aarch64 is not x86_64, so patches have to be written and applied where the code doesn't suit. If you have a netbsd installer image that you can try on an sdcard, go ahead. Otherwise, I'd seriously advise sucking it up and installing Linux.

Wrong, there is never a good reason to run linux unless someone is a low IQ poor person who buys random trash hardware e.g. walmart laptops or is running a top 500 supercomputer but theoretically FreeBSD or DragonflyBSD could be ported to the supercomputers. OpenBSD is based on NetBSD code so it inherits its portability but NetBSD is a smaller project so perhaps OpenBSD makes more sense here :

Viola :

https://www.mtsapv.com/rpi4obsd/

https://www.openbsd.org/arm64.html

https://cvsweb.openbsd.org/ports/

https://www.openbsd.org/faq/ports/ports.html

^ one could get pkgsrc to work on OpenBSD but it is more work and some packages won't use LibreSSL.

Last edited by DracoSentien; 01-10-2023 at 03:50 PM.
 
Old 01-11-2023, 05:39 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 14,719

Rep: Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029Reputation: 2029
Quote:
Originally Posted by DracoSentien View Post
Wrong, there is never a good reason to run linux unless someone is a low IQ poor person who buys random trash hardware e.g. walmart laptops or is running a top 500 supercomputer but theoretically FreeBSD or DragonflyBSD could be ported to the supercomputers. OpenBSD is based on NetBSD code so it inherits its portability but NetBSD is a smaller project so perhaps OpenBSD makes more sense here :

Viola :
https://www.mtsapv.com/rpi4obsd/
https://www.openbsd.org/arm64.html
https://cvsweb.openbsd.org/ports/
https://www.openbsd.org/faq/ports/ports.html
^ one could get pkgsrc to work on OpenBSD but it is more work and some packages won't use LibreSSL.
So you're berating me for the 'philosophical heresy' of suggesting linux? But you made the point yourself that I underlined in bold. There's no bsd for Arm, it has to be ported. Porting for Arm is a lot of hard work. The cpu requirements are different. That query was in "Zero Replies" some days before I replied. I preseume you had seen and ignored it. Then when I suggested another Unix, you're coming down on me? Try helping the OP instead. You wouldn't want to be seen as one of those guys who 'talks a good job' but never gets involved himself, would you?
 
Old 01-11-2023, 07:43 AM   #5
fatmac
Senior Member
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan with some NetBSD & Haiku thrown in.
Posts: 4,835

Rep: Reputation: Disabled
Each of the main BSD now have ARM versions available, but some work is sometimes needed to get them up & running, it's not quite as easy as Linux has become, but it will likely get there.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RPi4 (Sarpi) - Installs OK from USB stick, but not from pre-mounted dir on /floppy eduardr Slackware - ARM 2 03-22-2020 03:59 AM
[SOLVED] SARPI (fatdog) on RPi4 - no HDMI video [SOLVED] arfon Slackware - ARM 4 03-17-2020 02:47 AM
[SOLVED] Arduino IDE on RPi4 SlackwareARM -current using modified Slackbuild TheTKS Slackware - ARM 3 02-15-2020 11:50 PM
LXer: Raspberry Pi: Combine a Raspberry Pi with up to 4 Raspberry Pi Zeros for less than US$50 with the Cluster HAT LXer Syndicated Linux News 0 07-05-2019 01:03 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration