NetBSD images for the pine (and other boards)
#1
Thanks to @jmcneill for creating the builds!!!
Code:
sudo dd if=./NetBSD-evbarm-aarch64-201811042130Z-pine64.img of=/dev/sdb


First boot
  • Plug the microsd into the pine
  • Boot the pine and wait for a couple of reboots (disk expansion)
  • Login as root (no password)
  • Configure password for root user
Code:
passwd
  • Create user (in my case, 'edu') and add it to the wheel group
Code:
useradd -m -G wheel edu
passwd edu
  • Edit /etc/wpa_supplicant.conf with the appropriate ssid/psk:
Code:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
       ssid="my favourite network"
       key_mgmt=WPA-PSK
       psk="hunter2"
}
  • Editing /etc/rc.conf to enable wpa_supplicant at boot. Notice my usb wireless adapter is urtwn0 (ifconfig will show you all the adapters):
Code:
wpa_supplicant=YES
wpa_supplicant_flags="-i urtwn0 -c /etc/wpa_supplicant.conf"
  • Start wpa_supplicant service:
Code:
chmod 600 /etc/wpa_supplicant.conf
/etc/rc.d/wpa_supplicant start
  • Verify it:
Code:
ifconfig urtwn0



Update to latest current

As root user:

Code:
# Create a temporary directory
mkdir -p /root/tmp/kernel
cd /root/tmp/kernel
# Backup the current NetBSD kernel
cp /netbsd /onetbsd
# Download a full tar with kernel and dtb files
ftp https://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/latest/evbarm-aarch64/binary/sets/kern-GENERIC64.tgz
tar xzvf /root/tmp/kernel/kern-GENERIC64.tgz
# Overwrite the current NetBSD kernel and dtb files
cp ./netbsd /netbsd
cp sun50i-a64-pine64* /boot/dtb/allwinner/
# Reboot
reboot

After reboot

Code:
mkdir -p /root/tmp/sets
cd /root/tmp/sets
# Download and untar all sets
for x in base comp games man misc modules tests text xbase xcomp xfont xserver; do ftp https://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/latest/evbarm-aarch64/binary/sets/$x.tgz; done
for x in base comp games man misc modules tests text xbase xcomp xfont xserver; do tar -C / -zxvpf $x.tgz; done


Update the /etc/ configuration

Code:
for x in etc xetc; do ftp https://nyftp.netbsd.org/pub/NetBSD-daily/HEAD/latest/evbarm-aarch64/binary/sets/$x.tgz; done
etcupdate -s etc.tgz -s xetc.tgz

Verify everything works, then clean up and reboot

Code:
rm -Rf /root/tmp
reboot

Based on @jmcneill instructions:

Code:
<jmcneill> Updated sets are on the autobuild server: http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/evbarm-aarch64/binary/sets/
<jmcneill> Backup current (working) kernel: cp /netbsd /onetbsd
<jmcneill> Then take "./netbsd" from kern-GENERIC64.tgz and put it as /netbsd
<jmcneill> and you probably want to update the dtb in /boot/dtb/allwinner/ to match
<jmcneill> (latest dtb is in that same file)
<jmcneill> reboot with the new kernel, make sure it works..
<jmcneill> (you need to be running the new kernel for this latest step -- old kernel may not support new userland)
<jmcneill> then extract sets..
<jmcneill> for x in base comp games man misc modules tests text xbase xcomp xfont xserver; do tar -C / -zxvpf $x.tgz; done
<jmcneill> note that I skipped the debug sets (they are big) and etc/xetc sets (we upgrade those separately)
<jmcneill> To see what sets you have installed, ls /etc/mtree/set.*
<jmcneill> Then to update etc and xetc: etcupdate -s etc.tgz -s xetc.tgz
Source https://gist.github.com/e-minguez/0f637c...ddbc5575f5
  Reply
#2
Thanks, will ask Pineadmin to add the images to the installer.
You can find me on IRC, Discord and Twitter


  Reply
#3
It seems we have news here:

https://twitter.com/jmcwhatever/status/1...6107128833

NetBSD ARM 64-bit images with SMP support now available at invisible.ca/arm
  Reply
#4
I've just installed it in a spare microsd and it seems to work fine so far (it boots!) Big Grin
The only caveat I've found is the wireless connectivity doesn't work (chipset not supported)
  Reply
#5
Updated first post with more information and how to stay updated in current.
  Reply
#6
(11-06-2018, 07:13 AM)e-minguez Wrote: Updated first post with more information and how to stay updated in current.

Thanks.
  Reply
#7
To do sudo you need to install it from pkgsrc ;(

or not? O_o
  Reply
#8
Can I have a user & password to SSH login please?

I've successfully installed, on a 16Gb SD card:
NetBSD-evbarm-aarch64-201906031130Z-rockpro64.img.gz
It boots on my RockPro64 board. I resizes the root filesystem.
On second boot and waiting five mins, I can SSH to it but the SSHD daemon
won't accept <no password>

I've investigated, as suggested, mounting the SD card root filesystem on a Linux box
and adding a user manually. But on Fedora 29, "guestmount" doesn't work.
I don't have a serial console connection.

What I'm looking for is an OS for the RK3399 that supports the NEON extended instructions and
a C compiler that also has NEON support.
Project: FreeDV, Digital Voice at low bitrates, Codec2 mode 2020 using LPCNet

Alan B
  Reply
#9
(07-02-2018, 04:53 AM)e-minguez Wrote:
  • Editing /etc/rc.conf to enable wpa_supplicant at boot. Notice my usb wireless adapter is urtwn0 (ifconfig will show you all the adapters):
Hello,

I just received my pinebook and installed NetBSD on it. Can you please share what usb wireless adapter you are using - brand and model?

Regards
rambius
  Reply
#10
(08-17-2019, 08:28 AM)rambius Wrote:
(07-02-2018, 04:53 AM)e-minguez Wrote:
  • Editing /etc/rc.conf to enable wpa_supplicant at boot. Notice my usb wireless adapter is urtwn0 (ifconfig will show you all the adapters):
Hello,

I just received my pinebook and installed NetBSD on it. Can you please share what usb wireless adapter you are using - brand and model?

Regards
rambius

I had one spare wireless usb that was luckly compatible with NetBSD but I cannot remember the model, see https://www.netbsd.org/support/hardware/usb.html for a list of supported adapters.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  NetBSD binary pkgsrc-current for Pinebook astr0baby 16 1,108 05-24-2019, 11:58 AM
Last Post: Luke
  NetBSD will does not install to eMMC ronverbs 2 188 05-15-2019, 10:57 AM
Last Post: ronverbs

Forum Jump:


Users browsing this thread: 1 Guest(s)