January 15, 2023

NetBSD on the Orange Pi - NetBSD 9.3 setup notes

So I put my SD card with u-boot for the Orance Pi PC into my Orange Pi PC plus. It boots, and I see the following messages: Note that the network device is "emac0:" It has used DHCP to set up the network, so I can simply use that. Note the fdisk device names:
/dev/rld0a: file system is clean; not checking
Not resizing /: already correct size
/dev/rld0e: 229 files, 48364 free (12091 clusters)
df
/dev/ld0a      15200568    1029088   13411456   7% /
/dev/ld0e         81820      33456      48364  40% /boot

Adding a new user

useradd -m -G wheel tom
passwd tom
I mangled the password files by trying to hack things by hand, but was able to fix them via "pwd_mkdb master.passwd".

Now I can ssh in (as tom) via "ssh 192.168.0.129".

I add the entry "netbsd" to the host file on my linux machine.
I add the entry "trona" to the host file on the netbsd machine.
I copy my id_rsa.pub to "netbsd" and add it to authorized_keys.
Now I can log in (as tom) to netbsd without a password.

02:81:b3:9c:e0:c9 is the MAC address. How does NetBSD get this?


Feedback? Questions? Drop me a line!

Tom's Computer Info / tom@mmto.org