PINE64

Full Version: NetBSD images for the pine (and other boards)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Thanks, will ask Pineadmin to add the images to the installer.
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
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)
Updated first post with more information and how to stay updated in current.
(11-06-2018, 07:13 AM)e-minguez Wrote: [ -> ]Updated first post with more information and how to stay updated in current.

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

or not? O_o