[フレーム]

NetBSDworkshop

This document summarizes a NetBSD workshop that will cover installing NetBSD on VirtualBox and a Raspberry Pi over 4 hours. It will include making a cross-compiling toolchain, building a Raspberry Pi kernel, installing on the Pi, configuring NTP time syncing, and cross-building new kernels. Required hardware includes a Windows PC, VirtualBox, Raspberry Pi, microSD card, and Ethernet cables.

Embed presentation

Download to read offline
NetBSD workshop Jun Ebihara jun@soum.co.jp jun@netbsd.org
OverView in 4hours くろまる Install NetBSD/i386 on VirtualBox – Make earmv6hf cross-compiling toolchain – Make RPI kernel くろまる Install NetBSD/earmv6hf on RPI – Play RPI with NetBSD – Feel difference between your favorite environment くろまる Copy your RPI kernel to RPI – Update NetBSD-current kernel くろまる Boot RPI with your cross-compiled kernel
Hardwares くろまる Windows 10 PC with VirtualBox くろまる Raspberry PI – MicroSD Card: 4 or 8GB class 10 – HDMI Display – USB Keyboard/mouse – USB power supply – Ethernet Cable くろまる Internet access via Ethernet Cable – RPI get IP address via DHCP – RPI set time via NTP
Pre-Downloading くろまる NetBSD-7.0.1.i386.iso くろまる src.tar.gz くろまる VirtualBox くろまる Rawrite32.exe くろまる RPI Image – 2016年07月29日-netbsd-earmv6hf.img.gz
VirtualBox くろまる NetBSD on VirtualBox くろまる NetBSD-7.0.1-i386.iso くろまる cd /usr くろまる ftp http://cdn.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src.tar.gz くろまる tar xzvf src.tar.gz
NetBSD RPI Image くろまる on Windows くろまる http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry- pi/2016-07-29-earmv6hf/2016-07-29-netbsd-raspi- earmv6hf.img.gz くろまる http://www.netbsd.org/~martin/rawrite32/download.html くろまる Use rawrite32 to write RPI image to microSD くろまる Connect RPI: くろまる Boot くろまる Wait 10 min to resize partition
Using RPI image くろまる Login: root くろまる startx くろまる medit くろまる mikutter くろまる mlterm-fb くろまる omxplayer & youtube-dl – pkg_add omxplayer – pkg_add youtube-dl
PaX くろまる Some application exec failed on starting くろまる sysctl -a |grep pax – security.pax.mprotect.enabled = 1 – security.pax.mprotect.global = 1 – security.pax.mprotect.ptrace = 1 – security.pax.mprotect.debug = 1 – security.pax.segvguard.enabled = 1 – security.pax.segvguard.global = 1 くろまる Loooose protection: (bad manner) – sysctl -w security.pax.mprotect.enabled=0
NTP time setting くろまる ntpq -p くろまる /etc/rc.d/ntpd stop くろまる /etc/rc.d/ntpdate start くろまる /etc/rc.d/ntpd start くろまる ntpq -p
Reboot and / mount failed くろまる Power supply cut down failure – make file system damaged くろまる Reboot but / read only access くろまる drop on single usermode – df – fsck /dev/ld0a – reboot くろまる /etc/fstab – add "log,noatime" – man 5 fstab
/etc/rc.conf くろまる sshd=YES くろまる ntpd=YES くろまる hostname=nandemoii
Kernel cross build くろまる cd /usr/src くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf tools くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf kernel=RPI くろまる Copy netbsd.bin to /boot/kernel.img
Kernel cross build for RPI2 くろまる cd /usr/src くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf tools くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf kernel=RPI2 くろまる Copy netbsd.bin to /boot/kernel7.img くろまる src/sys/arch/arm/broadcom/bcm2835_bsc.c:91 – if (strcmp(aaa->aaa_name, "bcmbsc") != 0) return 0; – + if (aaa->aaa_addr == BCM2835_BSC0_BASE) – + return 0;

More Related Content

NetBSD workshop
PDF
NetBSD workshop
Openwrt startup
PDF
Openwrt startup
EuroBSDCon 2021 - (auto)Installing BSD Systems
PDF
EuroBSDCon 2021 - (auto)Installing BSD Systems
FreeBSD hosting
PDF
FreeBSD hosting
LSA2 - 01 Virtualization with KVM
ODP
LSA2 - 01 Virtualization with KVM
A Journey to Boot Linux on Raspberry Pi
PDF
A Journey to Boot Linux on Raspberry Pi
How to train your L3DSR with PBR - MEMO -
PDF
How to train your L3DSR with PBR - MEMO -
My First XDP (eXpress Data Path)
PDF
My First XDP (eXpress Data Path)
NetBSD workshop
NetBSD workshop
Openwrt startup
Openwrt startup
EuroBSDCon 2021 - (auto)Installing BSD Systems
EuroBSDCon 2021 - (auto)Installing BSD Systems
FreeBSD hosting
FreeBSD hosting
LSA2 - 01 Virtualization with KVM
LSA2 - 01 Virtualization with KVM
A Journey to Boot Linux on Raspberry Pi
A Journey to Boot Linux on Raspberry Pi
How to train your L3DSR with PBR - MEMO -
How to train your L3DSR with PBR - MEMO -
My First XDP (eXpress Data Path)
My First XDP (eXpress Data Path)

What's hot

My First BCC
PDF
My First BCC
Ha opensuse
PDF
Ha opensuse
Porting Puppet to OpenBSD
PDF
Porting Puppet to OpenBSD
Asus WL500gP USB Serial
PDF
Asus WL500gP USB Serial
OpenBTS AirPutih
PDF
OpenBTS AirPutih
FUSE Filesystems
PDF
FUSE Filesystems
Linux fundamental - Chap 12 Hardware Management
PDF
Linux fundamental - Chap 12 Hardware Management
今さら聞けないAWS on Rails
KEY
今さら聞けないAWS on Rails
vbsd2013
PDF
vbsd2013
Look Into Libvirt Osier Yang
PDF
Look Into Libvirt Osier Yang
Qemu x86 BIOS @ https://youtu.be/F71LGSrj9cc
ODP
Qemu x86 BIOS @ https://youtu.be/F71LGSrj9cc
ゼロから始めるファミコンエミュレータ生活 PHPerKaigi2019
PDF
ゼロから始めるファミコンエミュレータ生活 PHPerKaigi2019
MongoDB Replication Cluster
PDF
MongoDB Replication Cluster
Hello, Worldまで3ヶ月 Golangでファミコンエミュレータ実装 #gocon fukuoka 2019
PDF
Hello, Worldまで3ヶ月 Golangでファミコンエミュレータ実装 #gocon fukuoka 2019
redis-benchmark with AMD RYZEN 1800X Intel Kaby Lake (i7-7700K) memo
PDF
redis-benchmark with AMD RYZEN 1800X Intel Kaby Lake (i7-7700K) memo
Life Preserver - AsiaBSDCon2014
PDF
Life Preserver - AsiaBSDCon2014
Kako napraviti Google od zgrade sa računalima?
PDF
Kako napraviti Google od zgrade sa računalima?
eurobsd2013
PDF
eurobsd2013
1. openvpn simple
RTF
1. openvpn simple
Linux
PDF
My First BCC
My First BCC
Ha opensuse
Ha opensuse
Porting Puppet to OpenBSD
Porting Puppet to OpenBSD
Asus WL500gP USB Serial
Asus WL500gP USB Serial
OpenBTS AirPutih
OpenBTS AirPutih
FUSE Filesystems
FUSE Filesystems
Linux fundamental - Chap 12 Hardware Management
Linux fundamental - Chap 12 Hardware Management
今さら聞けないAWS on Rails
今さら聞けないAWS on Rails
vbsd2013
vbsd2013
Look Into Libvirt Osier Yang
Look Into Libvirt Osier Yang
Qemu x86 BIOS @ https://youtu.be/F71LGSrj9cc
Qemu x86 BIOS @ https://youtu.be/F71LGSrj9cc
ゼロから始めるファミコンエミュレータ生活 PHPerKaigi2019
ゼロから始めるファミコンエミュレータ生活 PHPerKaigi2019
MongoDB Replication Cluster
MongoDB Replication Cluster
Hello, Worldまで3ヶ月 Golangでファミコンエミュレータ実装 #gocon fukuoka 2019
Hello, Worldまで3ヶ月 Golangでファミコンエミュレータ実装 #gocon fukuoka 2019
redis-benchmark with AMD RYZEN 1800X Intel Kaby Lake (i7-7700K) memo
redis-benchmark with AMD RYZEN 1800X Intel Kaby Lake (i7-7700K) memo
Life Preserver - AsiaBSDCon2014
Life Preserver - AsiaBSDCon2014
Kako napraviti Google od zgrade sa računalima?
Kako napraviti Google od zgrade sa računalima?
eurobsd2013
eurobsd2013
1. openvpn simple
1. openvpn simple
Linux

Similar to NetBSDworkshop

Debugging 2013- Jesper Brouer
PDF
Debugging 2013- Jesper Brouer
Introduction to NetBSD kernel
PDF
Introduction to NetBSD kernel
Embedded Linux primer
PDF
Embedded Linux primer
How to-boot-linuxl-on-your-soc-boards
PDF
How to-boot-linuxl-on-your-soc-boards
SHARE.ORG Orlando 2015
PDF
SHARE.ORG Orlando 2015
Kernel entrance to-geek-
PDF
Kernel entrance to-geek-
CONFidence 2017: Escaping the (sand)box: The promises and pitfalls of modern ...
PDF
CONFidence 2017: Escaping the (sand)box: The promises and pitfalls of modern ...
005 skyeye
PDF
005 skyeye
First steps on CentOs7
PPTX
First steps on CentOs7
How To Train Your ARM(SBC)
PDF
How To Train Your ARM(SBC)
C&C Botnet Factory
PDF
C&C Botnet Factory
Development platform virtualization using qemu
PDF
Development platform virtualization using qemu
Modern IoT and Embedded Linux Deployment - Berlin
PDF
Modern IoT and Embedded Linux Deployment - Berlin
Hack.LU 2018 ARM IoT Firmware Emulation Workshop
PDF
Hack.LU 2018 ARM IoT Firmware Emulation Workshop
Lecture 6 Kernel Debugging + Ports Development
PDF
Lecture 6 Kernel Debugging + Ports Development
0x01 - Breaking into Linux VMs for Fun and Profit
PPTX
0x01 - Breaking into Linux VMs for Fun and Profit
NetBSD and Linux for Embedded Systems
PDF
NetBSD and Linux for Embedded Systems
Embedded Linux Odp
ZIP
Embedded Linux Odp
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
PDF
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
3. configuring a compute node for nfv
PDF
3. configuring a compute node for nfv
Debugging 2013- Jesper Brouer
Debugging 2013- Jesper Brouer
Introduction to NetBSD kernel
Introduction to NetBSD kernel
Embedded Linux primer
Embedded Linux primer
How to-boot-linuxl-on-your-soc-boards
How to-boot-linuxl-on-your-soc-boards
SHARE.ORG Orlando 2015
SHARE.ORG Orlando 2015
Kernel entrance to-geek-
Kernel entrance to-geek-
CONFidence 2017: Escaping the (sand)box: The promises and pitfalls of modern ...
CONFidence 2017: Escaping the (sand)box: The promises and pitfalls of modern ...
005 skyeye
005 skyeye
First steps on CentOs7
First steps on CentOs7
How To Train Your ARM(SBC)
How To Train Your ARM(SBC)
C&C Botnet Factory
C&C Botnet Factory
Development platform virtualization using qemu
Development platform virtualization using qemu
Modern IoT and Embedded Linux Deployment - Berlin
Modern IoT and Embedded Linux Deployment - Berlin
Hack.LU 2018 ARM IoT Firmware Emulation Workshop
Hack.LU 2018 ARM IoT Firmware Emulation Workshop
Lecture 6 Kernel Debugging + Ports Development
Lecture 6 Kernel Debugging + Ports Development
0x01 - Breaking into Linux VMs for Fun and Profit
0x01 - Breaking into Linux VMs for Fun and Profit
NetBSD and Linux for Embedded Systems
NetBSD and Linux for Embedded Systems
Embedded Linux Odp
Embedded Linux Odp
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
Ubuntu初體驗:脫離邪惡微軟帝國吧!_150606
3. configuring a compute node for nfv
3. configuring a compute node for nfv

Recently uploaded

Streamline Your Production Process with ERP Solutions
PPTX
Streamline Your Production Process with ERP Solutions
A new Vision of Software Sustainability and its Engineering: Reflections and ...
PDF
A new Vision of Software Sustainability and its Engineering: Reflections and ...
Data Governance and Compliance Choosing a Tableau Replacement with Strong Con...
DOCX
Data Governance and Compliance Choosing a Tableau Replacement with Strong Con...
PharmaAI techinical architecture and data flows
PPTX
PharmaAI techinical architecture and data flows
How to do Portable Applicance Testing: example
PDF
How to do Portable Applicance Testing: example
Intoduction_to_Maven best java tool for project management
PPTX
Intoduction_to_Maven best java tool for project management
School-Hall-Pass-System-Modernizing-Student-Movement-Management.pptx
PPTX
School-Hall-Pass-System-Modernizing-Student-Movement-Management.pptx
AI and Automation Software | Best AI and Automation Software
PPTX
AI and Automation Software | Best AI and Automation Software
Communicating Software Architecture using Arc42
PPTX
Communicating Software Architecture using Arc42
The future Android App Development in 2025
PDF
The future Android App Development in 2025
Boobanker Token – Smart Contract Security Audit Report by EtherAuthority
PDF
Boobanker Token – Smart Contract Security Audit Report by EtherAuthority
Free Versus Paid Enterprise IT Monitoring Tools
PDF
Free Versus Paid Enterprise IT Monitoring Tools
WhaleSwap Token – Smart Contract Security Audit Report by EtherAuthority
PDF
WhaleSwap Token – Smart Contract Security Audit Report by EtherAuthority
Evolution of Microsoft Project Portfolio Management - What Modern PMOs Are Do...
PDF
Evolution of Microsoft Project Portfolio Management - What Modern PMOs Are Do...
AI EMR Software Making Healthcare Smarter, Simpler, and More Human
PPTX
AI EMR Software Making Healthcare Smarter, Simpler, and More Human
How to Get Premium Capacity Power BI.pdf
PDF
How to Get Premium Capacity Power BI.pdf
How to Make Your AI Reliable: Comprehensive Guide to Testing AI Applications ...
PDF
How to Make Your AI Reliable: Comprehensive Guide to Testing AI Applications ...
Wired_AnalyticsTraineeship_13112025_clean.pptx
PPTX
Wired_AnalyticsTraineeship_13112025_clean.pptx
6 Hotel Booking Trends You Can’t Ignore in 2025.pdf
PDF
6 Hotel Booking Trends You Can’t Ignore in 2025.pdf
Tableau Alternative Offers the Best Data Visualization Experience.docx
DOCX
Tableau Alternative Offers the Best Data Visualization Experience.docx
Streamline Your Production Process with ERP Solutions
Streamline Your Production Process with ERP Solutions
A new Vision of Software Sustainability and its Engineering: Reflections and ...
A new Vision of Software Sustainability and its Engineering: Reflections and ...
Data Governance and Compliance Choosing a Tableau Replacement with Strong Con...
Data Governance and Compliance Choosing a Tableau Replacement with Strong Con...
PharmaAI techinical architecture and data flows
PharmaAI techinical architecture and data flows
How to do Portable Applicance Testing: example
How to do Portable Applicance Testing: example
Intoduction_to_Maven best java tool for project management
Intoduction_to_Maven best java tool for project management
School-Hall-Pass-System-Modernizing-Student-Movement-Management.pptx
School-Hall-Pass-System-Modernizing-Student-Movement-Management.pptx
AI and Automation Software | Best AI and Automation Software
AI and Automation Software | Best AI and Automation Software
Communicating Software Architecture using Arc42
Communicating Software Architecture using Arc42
The future Android App Development in 2025
The future Android App Development in 2025
Boobanker Token – Smart Contract Security Audit Report by EtherAuthority
Boobanker Token – Smart Contract Security Audit Report by EtherAuthority
Free Versus Paid Enterprise IT Monitoring Tools
Free Versus Paid Enterprise IT Monitoring Tools
WhaleSwap Token – Smart Contract Security Audit Report by EtherAuthority
WhaleSwap Token – Smart Contract Security Audit Report by EtherAuthority
Evolution of Microsoft Project Portfolio Management - What Modern PMOs Are Do...
Evolution of Microsoft Project Portfolio Management - What Modern PMOs Are Do...
AI EMR Software Making Healthcare Smarter, Simpler, and More Human
AI EMR Software Making Healthcare Smarter, Simpler, and More Human
How to Get Premium Capacity Power BI.pdf
How to Get Premium Capacity Power BI.pdf
How to Make Your AI Reliable: Comprehensive Guide to Testing AI Applications ...
How to Make Your AI Reliable: Comprehensive Guide to Testing AI Applications ...
Wired_AnalyticsTraineeship_13112025_clean.pptx
Wired_AnalyticsTraineeship_13112025_clean.pptx
6 Hotel Booking Trends You Can’t Ignore in 2025.pdf
6 Hotel Booking Trends You Can’t Ignore in 2025.pdf
Tableau Alternative Offers the Best Data Visualization Experience.docx
Tableau Alternative Offers the Best Data Visualization Experience.docx

NetBSDworkshop

  • 1.
  • 2.
    OverView in 4hours くろまる Install NetBSD/i386 on VirtualBox – Make earmv6hf cross-compiling toolchain – Make RPI kernel くろまる Install NetBSD/earmv6hf on RPI – Play RPI with NetBSD – Feel difference between your favorite environment くろまる Copy your RPI kernel to RPI – Update NetBSD-current kernel くろまる Boot RPI with your cross-compiled kernel
  • 3.
    Hardwares くろまる Windows 10 PC with VirtualBox くろまる Raspberry PI – MicroSD Card: 4 or 8GB class 10 – HDMI Display – USB Keyboard/mouse – USB power supply – Ethernet Cable くろまる Internet access via Ethernet Cable – RPI get IP address via DHCP – RPI set time via NTP
  • 4.
    Pre-Downloading くろまる NetBSD-7.0.1.i386.iso くろまる src.tar.gz くろまる VirtualBox くろまる Rawrite32.exe くろまる RPI Image – 2016年07月29日-netbsd-earmv6hf.img.gz
  • 5.
    VirtualBox くろまる NetBSD on VirtualBox くろまる NetBSD-7.0.1-i386.iso くろまる cd /usr くろまる ftp http://cdn.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src.tar.gz くろまる tar xzvf src.tar.gz
  • 6.
    NetBSD RPI Image くろまる on Windows くろまる http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry- pi/2016-07-29-earmv6hf/2016-07-29-netbsd-raspi- earmv6hf.img.gz くろまる http://www.netbsd.org/~martin/rawrite32/download.html くろまる Use rawrite32 to write RPI image to microSD くろまる Connect RPI: くろまる Boot くろまる Wait 10 min to resize partition
  • 7.
    Using RPI image くろまる Login: root くろまる startx くろまる medit くろまる mikutter くろまる mlterm-fb くろまる omxplayer & youtube-dl – pkg_add omxplayer – pkg_add youtube-dl
  • 8.
    PaX くろまる Some application exec failed on starting くろまる sysctl -a |grep pax – security.pax.mprotect.enabled = 1 – security.pax.mprotect.global = 1 – security.pax.mprotect.ptrace = 1 – security.pax.mprotect.debug = 1 – security.pax.segvguard.enabled = 1 – security.pax.segvguard.global = 1 くろまる Loooose protection: (bad manner) – sysctl -w security.pax.mprotect.enabled=0
  • 9.
    NTP time setting くろまる ntpq -p くろまる /etc/rc.d/ntpd stop くろまる /etc/rc.d/ntpdate start くろまる /etc/rc.d/ntpd start くろまる ntpq -p
  • 10.
    Reboot and / mount failed くろまる Power supply cut down failure – make file system damaged くろまる Reboot but / read only access くろまる drop on single usermode – df – fsck /dev/ld0a – reboot くろまる /etc/fstab – add "log,noatime" – man 5 fstab
  • 11.
  • 12.
    Kernel cross build くろまる cd /usr/src くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf tools くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf kernel=RPI くろまる Copy netbsd.bin to /boot/kernel.img
  • 13.
    Kernel cross build for RPI2 くろまる cd /usr/src くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf tools くろまる ./build.sh -j 6 -u -U -m evbarm -a earmv6hf kernel=RPI2 くろまる Copy netbsd.bin to /boot/kernel7.img くろまる src/sys/arch/arm/broadcom/bcm2835_bsc.c:91 – if (strcmp(aaa->aaa_name, "bcmbsc") != 0) return 0; – + if (aaa->aaa_addr == BCM2835_BSC0_BASE) – + return 0;

AltStyle によって変換されたページ (->オリジナル) /