Hello,
Registration is now open for the fifty-ninth meeting, featuring talks on
trust and provenance in Open Data at GDS, adding security to compilers
(LADA project and SECURE project), extending a RISC ISA to add
capability enhancements for improved security (CHERI project).
A big thanks to Sevan Janiyan and Andy Bennett for arranging this meeting!
Details and registration link below.
Cheers,
Andrew
//
OSHUG #59 — CHERI CPU, Adding Security to Compilers, Trust & Provenance
in Open Data.
On the 27 July 2017, 18:00 - 21:00 at BCS London, 1st Floor, The
Davidson Building, 5 Southampton Street, London, WC2E 7HA.
Registration: http://oshug.org/event/59
After a brief hiatus we return this month for an evening of talks on the
topics of trust and provenance in Open Data at GDS, adding security to
compilers (LADA project and SECURE project), extending a RISC ISA to add
capability enhancements for improved security (CHERI project).
— Trust and provenance in Open Data
T.B.A.
— Adding security to compilers
Information leakage via side channels is a widely recognised threat to
cyber security. In particular small devices are known to leak
information through physical channels, i.e. power consumption,
electromagnetic radiation, and timing behaviour. Serveral implementation
techniques and countermeasures are arising nowadays against this kind of
threaths, but still only fully equipped testing labs with skilled people
can afford to test new implementations against leakage attacks. We will
focus on the information leakage due to timing behaviour and the
possibility of 'cache-based' timing attacks. Then we will discuss about
my work in the context of two projects (LADA project and SECURE project)
which aim at bringing the skill of a testing lab to the desk of a
developer of standard consumer devices, without the need for domain
specific knowledge through the development of open source compilers.
* Paolo Savini is an Intern Compiler Engineer at Embecosm Ltd working on
the SECURE Project, where he is helping to bring the next generation of
secure programming techniques to open source compilers. Prior to joining
Embecosm he cooperated with the LADA project at the University of
Bristol in order to explore the possility of creating compiler tools to
help improve implementation of cryptography. Paolo is currently
graduating at the University of Pavia (Italy), where he achieved a
Bachelor degree in Electronic and Computer Engineering.
— The CHERI CPU: Hardware-software co-design for security
This talk will introduce the CHERI CPU and associated C/C++ compiler
stack. Various design decisions in the project were made based on the
needs of programming languages to support real-world code and the
requirements of hardware implementation. The C specification is
intentionally vague and it would be very easy to create a conforming
implementation of the language if this were the only requirement, but a
C environment is only as good as the code that it runs. In the CHERI
project, we have investigated a number of common C idioms and ensured
that these can be supported by our hardware, while simultaneously
allowing fine-grained memory safety and coarser-grained
compartmentalisation of C programs.
* David Chisnall is a Senior Research Associate at the University of
Cambridge. His primary research interest is safe interoperability
between programming languages. Most recently, he has been working on
this in the context of the CHERI project, creating an implementation of
the C programming language that can be used safely in the same process
as languages with stricter safety guarantees. He presented a case study
of this, allowing Java and C code to coexist in the same process without
violating any of the JVM's safety and security guarantees at ASPLOS
earlier this year. David is an active open source contributor, having
been an LLVM committer since 2008, a member of the FreeBSD Core Team for
two successive terms, and the author / maintainer of widely deployed
Objective-C and C++ runtime libraries.
Note: Please aim to arrive by 18:15 as the event will start at 18:30 prompt.
--
Andrew Back
http://abopen.com
Hi All,
I'm pleased to announce that we have 8 talks and 6 workshops confirmed
for Open Source Hardware Camp 2017, with a few more TBC. As ever, some
really great topics being covered and excellent speakers.
Should you be interested in giving a talk and have not yet put forward a
proposal, please drop me a line off-list ASAP.
As in previous years, there will be a social event on the Saturday
evening and OSHCamp is once again being hosted to coincide with the
Wuthering Bytes technology festival. You're encouraged to check the
website for details of other participating events, as some are likely to
be of interest.
http://wutheringbytes.com/
We have some fantastic talks lined up for Festival Day, including a
keynote from Dr David Hartley FBCS on the early history of computing in
Britain, and one on particle accelerators (with live demo!)
Cheers,
Andrew
//
Open Source Hardware Camp 2017
On the 2nd September 2017, 09:00 Saturday morning - 16:00 on the Sunday
afternoon at The Birchcliffe Centre, Birchcliffe Road, Hebden Bridge,
West Yorkshire, HX7 8DG, UK.
Registration: http://oshug.org/event/oshcamp2017
Open Source Hardware Camp 2017 will take place place in the Pennine town
of Hebden Bridge. For the fifth year running it is being hosted as part
of the Wuthering Bytes technology festival.
Hebden Bridge is approximately 1 hour by rail from Leeds and Manchester.
Budget accommodation is available at the Hebden Bridge Hostel which
adjoins the venue, with private rooms available and discounts for group
bookings. Details of other local accommodation can be found at
www.hebdenbridge.co.uk.
There will be a social event on the Saturday evening from 8PM.
*** Saturday :: Talks ***
— An introduction to RISC-V, a Free and Open RISC Instruction Set
Architecture
An Instruction Set Architecture (ISA) defines the interface between a
computer's hardware and software, the valid instructions that the
machine may execute. Unlike other ISAs (such as those from ARM, MIPS,
Intel, etc.), the RISC-V ISA is provided under an open-source licence,
giving anyone the freedom to create a RISC-V implementation.
This freedom has enabled a proliferation of RISC-V implementations for a
wide range of applications, from small 32-bit embedded cores up to
complex 64-bit multicore superscalar designs. As RISC-V is a relatively
new ISA, there are many parts of the ecosystem such as compilers,
assemblers, simulators, debugging tools, and other supporting
infrastructure in rapid concurrent development.
This talk gives an overview of the RISC-V ISA, and takes a look at some
of the more interesting RISC-V cores. We will take a short look at the
present state of the RISC-V software ecosystem, and try to predict where
we will see RISC-V implementations used in the future.
* Dr Graham Markall has a background in languages and compilers for
scientific computing, and is well known for his work on the Numba
project. He is part of Embecosm’s GNU tool chain team, where his current
projects include the implementation of security enhancements to the GCC
and LLVM compilers for RISC-V and ARM, and the development a GCC-based
toolchain for a customised RISC-V processor.
— Artificial intelligence and Machine learning for embedded systems
Artificial Intelligence (AI) and Machine Learning (ML) allow technology
to automate what was previously considered unique to human intelligence,
we already see this in big data with image classification, speech
recognition and sentiment analysis to name just a few applications. How
will this effect embedded systems and hardware, what part can open
source play in this emerging area by embedding intelligence or intuition
into future products.
Alan will provide an overview the current state of machine learning and
inference techniques used within embedded applications, he will show how
open source software and hardware can be used to apply these ML
techniques into embedded and robotics and projects.
Areas covered will include Artificial Neural Networks (ANN), Recurrent
Neural Networks (RNN), Reinforcement Learning (RL) along with
differences between training and inference deployments. Alan will also
discuss some emergent AI hardware areas such as energy efficient
neuromorphic computation and processing which can perhaps commodify AI
over the coming decades.
With both open source software and hardware we are poised to rapidly
advance both education, experimentation and development of machine
learning into working embedded automation, there could not be a better
time to get into this emerging area of technology.
* Alan Wood has been working with parallel distributed programming for
several decades. His recent work includes smart grids, 3D printers,
robotics, automation and biotec diagnostics. His current research is
focused on machine learning for embedded automation using FPGA, CSP and
Neural Turing Machines. He is a long term advocate of open source
communities, a moderator (aka Folknology) for xCORE, the co-founder of
myStorm open hardware FPGA community, as well as a co-founder of Surrey
and Hampshire Makerspace.
— So you decided to run a workshop
Over the past year many fixes/improvements/bug reports have been made
for the NetBSD workshop to run smoothly. This talk covers the changes
which go in to a project to insure a workshop goes smoothly on the day,
how a workshop evolved, and what was done to prevent the same issues
reoccurring.
* Sevan Janiyan is founder of Venture 37, which provides system
administration & consultancy services. As a fan of operating systems and
computers with different CPU architectures, in his spare time he
maintains builds of open source software on a variety of systems
featuring PowerPC, SPARC and armv7l CPUs. He hopes to own a NeXTcube &
OMRON LUNA-88K2 one day.
— An Introduction to Open Source for Film production : From Sensor to Post
This discussion will be based on the future of Open Source and its
relationship wth Film & TV Production. New colour developments through
ACES (Academy Color Encoding System) and new approaches by vendors such
as Blackmagic and, of course, Blender, we are seeing a wider adoption of
Open Source.
We will discuss ACES and Apertusº Axiom OS camera and see where the
future may lie regarding OS and Film Production.
* Daniel Mulligan started in cameras (assisting and focus pulling),
before then graduating up the ranks to Camera Operating for F1, BBC
Dramas then 2nd Unit Cinematography for Feature Theatrical Productions.
Daniel also started and privately ran a rental house supplying digital
cameras, plus an onset/location company providing location post and
digital camera workflows. This culminated just recently with a 2-3 year
stint at Technicolor as their locations digital dailies supervisor,
looking after projects such as Jupiter Ascending, Mortdecai and The Man
from UNCLE.
Now running new Companies for Open Source Cinema and an imaging research
Company called Cine Imaging Lab, Daniel is also writing new Courses for
the University of Portsmouth for both Undergraduate and Masters Degree
in Imaging Science and consulting for image workflows for Post
Production and VFX Houses.
During this time Daniel has seen a few changes and re-iterations of the
current digital workflows and it has struck him over time how much we do
rely on proprietary systems for most delivery. And perhaps quite rightly
so, as the delivery requirements for VFX to DI, to onset LUTs and more
need that service.
— Some micro:bit stories
Lawrence recently helped the BBC and a consortium of partner companies
produce the micro:bit. He thinks there are some stories worth telling
about the instigation and development of the product.
- BBC micro:bit grew from the passion of real people, not publicity
departments
- Asking for a few million pounds is quite fun
- Shenzhen may be fast, but ShenFen is pretty good too
- Engineers like the probably-impossible
- Some cost and design decisions
- Your support would be much appreciated
* Lawrence Archard grew up among heterodyne whistles of an amateur radio
rig hand-built by his grandad, who started him off building a
two-transistor musical oscillator. That led to him studying Music
Technology at Keele University, then Electronics primarily as an excuse
to stay there. After a spell designing synthesizers, he had to get a
'proper job' with a consultancy developing high-volume, cost-sensitive
products across a range of industries - music, toys, construction,
medical, office and kitchen appliances. He became an early proponent of
IoT (but not for the fridge ordering milk) and left to work with an
informal group of associates in 2000. As DevelAngel, Lawrence acts as
interim CTO or project manager for angel and VC-funded startups. For
mainstream R&D-for-hire, there is sister entity uPBeat Product Development.
— Robot Operating System
Robot Operating System is 8 years old, and despite the fact that it
isn't actually an operating system has become the default platform for
robotic research in Universities around the world.
I will talk about the recent version of their turtlebot platform that
has made the hardware side much more open, and may attempt a live demo.
It might even work this time. In addition I will also talk about ROS2,
the next version that is currently in development.
* Nick Weldin initiated the first public Arduino course in the UK in
2005, because he didn't want to program PIC chips on the accounts
computer at work after everyone else had gone home any more, and he
couldn't get his boss to send him to the Arduino course that was running
in Spain. When Tinker London started up he joined them and ran courses
teaching Arduino wherever anyone was interested. He is co-author of the
Arduino Cookbook and now works for Middlesex University.
— BuggyAir for mobile personal pollution exposure monitoring
Last year we did a trial of a consortium project called BuggyAir for
mobile personal pollution exposure monitoring. This was based on GSM
comms using a smartphone for that and GPS. This year we have made a
second version with LoRaWAN comms and tested this in London. We have
also demonstrated an initial version with a choice of the two comms
approaches. We are about to do another trial in Cambridge and our
partners are also working on another version of the hardware to make it
smaller and lighter without compromising the sensor precision.
* Paul Tanner is a consultant, developer and maker in wood, metal,
plastic, electronics and software. His day job has evolved from IT-based
business improvement for SMEs to a specialisation in Internet of Things
system development. By night he turns energy nut, creating tools to
optimise energy use and for "assistive" applications. Paul graduated in
electronics and was responsible for hardware and software product
development and customer services in several product and service
start-ups, forming his consulting firm Virtual Technologies in 2000.
— Computer Science from the Ground Up
As computers become increasingly sophisticated, it is difficult for
students of computing science and electronic engineering to gain a broad
enough understanding of the technology to fully grasp the underlying
principles of some modern devices. In his presentation, Ken takes you
back to when computers were much simpler, and proposes that with the
help of practical learning by doing, and a bottom up approach, there is
a better way of teaching the next generation of engineers.
* Ken Boak built his first computer from a kit, aged 17 when he should
have been revising for A Levels. Despite mediocre A level grades, Ken
got a 1st class degree in electronic engineering in 1986 and went on to
work on early experimental HDTV systems at BBC Research Department. In
the last 30 years, and 10 subsequent jobs, Ken has encountered much of
the fabric of the Digital Revolution - but chosen to ignore 95% of it -
and now spends quality time on a narrow boat in Hebden Bridge.
*** Sunday :: Workshops ***
— Debugging and Troubleshooting Projects with OpenScope MZ
Participants learn how to connect a portable multi-function programmable
instrumentation module to computer (through WiFi or a USB cable) to
acquire, analyze, visualize, and control signals from circuits, sensors,
and other electronic devices.
Run by: engineers from Digilent
— An introductory workshop to NetBSD on embedded platforms
An introductory workshop to NetBSD in the context of developing embedded
platforms. NetBSD is a fully featured operating system with great
agility that has been around for many many years. This workshop is
intended to introduce some of the features which are available in the
operating system as standard. We'll explore how to go from obtaining the
source code to building the operating system, cover features which
simplify working with the system, how accessible it is without resorting
to installing third party software or writing any C.
In this workshop participants will learn how to use the LoRaWAN
development shield based on the Microchip RN2483 LoRaWAN module. This
comes with a number of basic sensors, while the shield also includes
additional Arduino headers so you can add your own sensor shields and
devices.
Topics we will cover:
1. Cross compilation support with build.sh
2. File tamper detection / execution prevention with Veriexec
3. High-level access to subsystems e.g exploring GPIO via Lua
4. Rapid development with Rumpkernel
Participants should bring:
* A laptop (Macos, Linux or Windows (windows 10 specifically))
* ARM board (Pi or BeagleBoneBlack and such)
* USB->TTL for serial access
Run by: Sevan Janiyan
— Robot Operating System - a practical intro
This will be a practical hands on session getting started with using ROS
to get robots to do things. You will learn about what a ROS system is
how to ineract with it, and write basic code to work within a ROS
system. We will look mostly at mobile robots, and will spend time
looking at mapping and autonomous navigation.
We will have a few robots and sensors on hand to get practical
experience with. You will also learn about using robot simulators with
ROS, so that you can carry on experimenting after the workshop even if
you don't have access to a robot.
You will need to bring a computer to work with. ROS currently runs
primarily on Ubuntu. We will have virtual machine images with ROS
installed that you can use.
No knowledge of ROS is assumed, but some experience using the command
line and python would be useful.
Run by: Nick Weldin
— Open Source Applications for Feature Film Workflows: Demonstrating an
entire 4K/HD workflow from the sensor to dailies and Post Production
We will firstly be demonstrating the Axiom 4K Open Source camera from
Apertusº. The camera has a 4K CMV12000 sensor that is entirely Open
which allows us the opportunity to create a camera unencumbered by
proprietary restrictions.
Recording live 1080p30 video and capturing 4K images as RAW snap12 files
we can demonstrate how the RAW imaging can be processed and turned into
usable 4K images with correct colour applied for Post. We can process
then to Log-C encoded imaging for full information for the Grading
processes.
Next will be a look at the imaging as it is processed digitally. By
using a digital Lab system we can then playback the captured images and
produce our final desired deliverable.
Run by: Daniel Mulligan
— Artificial Intelligence and Machine Learning
This workshop will take participants through an ML/AI based embedded
application, you will need a Raspberry Pi and something to communicate
with it (Laptop etc..).This will provide a lightning hands on intro to
using embedded AI.
Run by: Alan Wood
— Assembling the OSHCamp kit
Get help with soldering this year's kit.
* Chelsea Back is a trainee engineer and is working towards a degree in
Electronic Engineering. She enjoys building microcontroller projects and
teaching people how to solder, is a student member of the IET and a STEM
Ambassador.
NOTE:
* There are separate tickets for Saturday and Sunday.
* A light lunch and refreshments will be provided each day.
* Please aim to arrive between 09:00 and 09:15 on the Saturday as the
event will start at 09:20 prompt.
--
Andrew Back
http://abopen.com
Hello,
Registration is now open for the fifty-eighth meeting, which will
provide a hands-on introduction to NetBSD on embedded platforms, picking
up where the workshop left off at the previous meeting in April.
Cheers,
Andrew
//
Event #58 — Getting started with NetBSD on embedded platforms Pt. 2
On the 18 May 2017, 17:30 - 20:00 at BCS London, 1st Floor, The Davidson
Building, 5 Southampton Street, London, WC2E 7HA.
Registration: http://oshug.org/event/58
— Workshop scope
Following on from the previous workshop, we will be continuing with the
theme of NetBSD on embedded platforms. This time covering GPIO access
with lua and rapid development with Rump kernel, which we did not get to
in the previous workshop due to the lack of time.
If you did not get to attend the previous workshop, not to worry, notes
are available [1] and assistance will be provided on the day.
[1] http://oshug.org/pipermail/oshug/2017-April/000608.html
— Participant requirements
You will need to bring:
* Your own laptop (running Windows, Linux or Mac OS X);
* A Raspberry Pi or BeagleBone Black;
* An appropriate SD card for your board;
* USB card reader to write a new OS image onto said SD card;
* An ethernet cable to connect board to laptop and/or a USB UART/FTDI
adapter to access the board via the serial console.
— Windows 10 users
Install Windows Subsystem for Linux.
— Windows 10 / Linux (Debian/Ubuntu) users
Install the following packages:
* build-essential
* zlib1g-dev
* flex
* libc6-dev-i386
— Mac OS X users
Install GCC or clang via Xcode or command line tools.
— All
Everyone should fetch the source code for NetBSD:
Download all source archives (.tgz files) from
http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/201704270800Z/source/sets/ .
(It is likely the above URL will become invalid as old builds are purged
and new ones are generated. Substitute 201704270800Z with the most
recent release available on http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD).
Any questions should be directed to the discussion list.
— Hosted by
Sevan Janiyan is founder of Venture 37, which provides system
administration & consultancy services. As a fan of operating systems and
computers with different CPU architectures, in his spare time he
maintains builds of open source software on a variety of systems
featuring PowerPC, SPARC and armv7l CPUs. He hopes to own a NeXTcube &
OMRON LUNA-88K2 one day.
Note: Please aim to arrive by 17:15 as the workshop will start at 17:30
prompt.
--
Andrew Back
http://abopen.com
Hi all,
Apologies for the software related post.
This summer the pkgsrc[1] project is holding its annual developer
conference in London at the British Computer Society in association with
the Open Source Specialist Group[2] on Saturday the 1st of July and a
hack day at the London Hack Space[3] on Sunday the 2nd of July. While
the conference is primarily about pkgsrc, it's on the topic of building
& packaging open source software in general. I'm currently contacting
different communities to raise awareness of the event & to ask folks to
submit talks on such topics if they are interested.
There will be a formal announcement for attendees soon (it's free & open
to all) but in the meantime, if you would like to give a talk on the
subject of building or packaging open source software (the more
technical the better) please send your submission to sevan(a)NetBSD.org
(including a title, abstract and a short bio in the submission (for the
website)).
For those not familiar with pkgsrc, it's a cross platform packaging
system by the NetBSD project, originally forked from FreeBSD ports but
with a portability twist added to cover a diverse range of operating
systems. It enables you to have such things as the same version of
software built with matching set of patches across a wide range of
operating systems and to use the same workflow on said operating systems.
At OSHUG #55 - "FPGA projects past, planned and possible", the framework
I was demonstrating in the "Deploying your FPGA toolchain consistently
regardless of your development environment" talk was pkgsrc.
Regards,
Sevan
[1] http://pkgsrc.org
[2] http://ossg.bcs.org/
[3] https://london.hackspace.org.uk
Hello,
I've written up the notes from last Thursday's workshop, give it a try
if you have a Pi handy.
You can use a Pi 3 if you have it hooked up to a HDMI monitor & keyboard.
I skipped on the instructions for the BeagleBone Black, email me off
list if you'd like to use such a device.
Sevan Janiyan
These notes cover
1) Cross compilation support (build.sh)
2) Tamper proofing / Tamper detection (Veriexec)
*Useful link*:
http://man.NetBSD.org - Man pages shipped with the OS available from a
web browser
http://www.netbsd.org/docs/guide/en/index.html - The NetBSD Guide
http://cvsweb.netbsd.org/bsdweb.cgi/src/?only_with_tag=MAIN - Web
interface to the OS source code
*Cross compilation support as standard*
*Requirements*:
*Windows 10*
Install Windows Subsystem for Linux
https://msdn.microsoft.com/en-us/commandline/wsl/abouthttps://msdn.microsoft.com/en-us/commandline/wsl/about
Windows 10 / Linux (Debian/Ubuntu)
build-essential
zlib1g-dev
flex
libc6-dev-i386
*Mac OS X*
GCC or clang via Xcode or command line tools
xcode-select --install
*Windows 8 & Prior*
Install Linux dependencies via Cygwin.
TODO: list dependencies
*Fetch the sources*:
download all source archives (.tgz files) from
http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/201704222230Z/source/sets/
(It is likely this url will become invalid as old builds are purged and
new ones are generated. Substitute 201704222230Z with the most recent
release available on http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD.
*Extract all fetched files*:
for file in *.tar.gz
do
tar -xzf $file
done
*Change into the extracted source directory*:
cd usr/src
*List supported architectures and variations we can cross compile for*:
./build.sh list-arch
Reduce the listing to the ARM evaluation board archs which devices such
as the Pi family are categorised under:
./build.sh list-arch | grep evbarm
MACHINE=evbarm MACHINE_ARCH=arm ALIAS=evboarm-el
MACHINE=evbarm MACHINE_ARCH=armeb ALIAS=evboarm-eb
MACHINE=evbarm MACHINE_ARCH=earm ALIAS=evbearm-el DEFAULT
MACHINE=evbarm MACHINE_ARCH=earmeb ALIAS=evbearm-eb
MACHINE=evbarm MACHINE_ARCH=earmhf ALIAS=evbearmhf-el
MACHINE=evbarm MACHINE_ARCH=earmhfeb ALIAS=evbearmhf-eb
MACHINE=evbarm MACHINE_ARCH=earmv4 ALIAS=evbearmv4-el
MACHINE=evbarm MACHINE_ARCH=earmv4eb ALIAS=evbearmv4-eb
MACHINE=evbarm MACHINE_ARCH=earmv5 ALIAS=evbearmv5-el
MACHINE=evbarm MACHINE_ARCH=earmv5eb ALIAS=evbearmv5-eb
MACHINE=evbarm MACHINE_ARCH=earmv6 ALIAS=evbearmv6-el
MACHINE=evbarm MACHINE_ARCH=earmv6hf ALIAS=evbearmv6hf-el
MACHINE=evbarm MACHINE_ARCH=earmv6eb ALIAS=evbearmv6-eb
MACHINE=evbarm MACHINE_ARCH=earmv6hfeb ALIAS=evbearmv6hf-eb
MACHINE=evbarm MACHINE_ARCH=earmv7 ALIAS=evbearmv7-el
MACHINE=evbarm MACHINE_ARCH=earmv7eb ALIAS=evbearmv7-eb
MACHINE=evbarm MACHINE_ARCH=earmv7hf ALIAS=evbearmv7hf-el
MACHINE=evbarm MACHINE_ARCH=earmv7hfeb ALIAS=evbearmv7hf-eb
MACHINE=evbarm64 MACHINE_ARCH=aarch64 ALIAS=evbarm64-el DEFAULT
MACHINE=evbarm64 MACHINE_ARCH=aarch64eb ALIAS=evbarm64-eb
eb and el indicate the endianness (big or little)
hf refers to hardware floating point support.
For the Pi, we'll target the ARMv6 with hardware floating point support
in little endian mode as the lowest common denominator:
evbearmv6hf-el
*Build the cross compile toolchain*:
To build the tools without requiring elevated privileges (root) the -U
flag specifies unprivileged
To save us have to specify the MACHINE/MACHINE_ARCH combination which
would be done using -m/-a, we specify the ALIAS listed above to -m
To speed up the build process we increase the number of parallel jobs
the build we execute. This number should match the number of available
cores & not exceed it.
./build.sh -U -m evbearmv6hf-el -j2 tools
*Build a new kernel for the Pi or Pi2*:
./build.sh -U -m evbearmv6hf-el -j2 kernel=RPI
or
./build.sh -U -m evbearmv6hf-el -j2 kernel=RPI2
*To build a complete operating system including images*:
**WARNING** Depending on the system it may take a little time
./build.sh -U -m evbearmv6hf-el -j2 release
When the build is finished, a report is printed out which contains
details of where the generated files are located (this will be relative
to your system) & the time it took to build.
===> Summary of results:
build.sh command: ./build.sh -U -m evbearmv6hf-el -j2 kernel=RPI
build.sh started: Mon Apr 24 17:19:18 BST 2017
NetBSD version: 7.99.70
MACHINE: evbarm
MACHINE_ARCH: earmv6hf
Build platform: NetBSD 7.99.70 i386
HOST_SH: /bin/sh
MAKECONF file: /etc/mk.conf
TOOLDIR path: /usr/src/obj/tooldir.NetBSD-7.99.70-i386
DESTDIR path: /usr/src/obj/destdir.evbarm
RELEASEDIR path: /usr/src/obj/releasedir
Updated makewrapper:
/usr/src/obj/tooldir.NetBSD-7.99.70-i386/bin/nbmake-evbearmv6hf-el
Building kernel without building new tools
Building kernel: RPI
Build directory: /usr/src/sys/arch/evbarm/compile/obj/RPI
Kernels built from RPI:
/usr/src/sys/arch/evbarm/compile/obj/RPI/netbsd
build.sh ended: Mon Apr 24 17:27:42 BST 2017
===> .
*Writing Pi image to SD card*:
Either you ran build.sh with the release target or you fetched a
pre-built image from nycdn.NetBSD.org for your Pi, such as:
http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/201704222230Z/evbarm-earmv6hf…
(It is likely this url will become invalid as old builds are purged and
new ones are generated. Substitute 201704222230Z with the most recent
release available on http://nycdn.netbsd.org/pub/NetBSD-daily/HEAD.
*Uncompress image*:
gunzip rpi.img.gz
Use the flash instructions relevant to the operating system the SD card
will be written on
http://elinux.org/RPi_Easy_SD_Card_Setup
Section 3.3 for Windows
Section 3.4 for Mac OS X
Section 3.5 for Linux
Where the documentation refers to Raspbian images, substitute the NetBSD
rpi.img you have.
*Preparing to boot*:
For the Pi 3, serial console access is not currently available in
NetBSD. The system should work with an HDMI display & USB keyboard
however. There is nothing further to do for you in this section.
For the Pi & Pi 2, connect your USB to TTL adapter to the GND, TXD & RXD
pins
The location of the pins are the same on the Pi & Pi2, see
https://www.raspberrypi.org/documentation/usage/gpio/images/gpio-led.png
and
https://pinout.xyz
You'll need to run a terminal emulator set at 115200 BAUD.
Use the cu utility on Linux & OS X.
*On Windows*:
Use Terraterm http://ttssh2.osdn.jp
Set baud rate to 115200
Choose com port associated with your USB adapter.
*On Debian & derivatives* (Ubuntu):
you need to install the uucp package to obtain the cu utility.
The ownership of the device file for the USB adapter need to be changed
otherwise you will receive "line in use" error.
chown uucp:uucp /dev/ttyUSB0
*On OS X*:
Depending on the USB to TTL adapter, the device node in /dev will have a
different name
Run
ls /dev/tty.*
to see some of the serial devices detected.
Such as /dev/tty.SLAB_USBtoUART or /dev/tty.usbserial-RANDOMCHARACTERS
eg /dev/tty.usbserial-AM01Z4V3
*Running cu*:
Replace /dev/ttyUSB0 with the device node relevant to your system.
sudo cu -l /dev/ttyUSB0 -s 115200
*Exiting cu*:
press ~.
*Enable serial console on Pi* (not for Pi3):
The rpi.img is split into a DOS partition (containing firmware & NetBSD
kernel) and NetBSD UFS partition (containing NetBSD operating system).
On the DOS partition there is file called cmdline.txt
The first line reads
root=ld0a console=fb
Delete the console=fb so that it reads
root=ld0a
Save & exit text editor
*Booting Pi*:
Insert SD card into Pi
Apply power
Login as root (no password)
*Tamper proofing / Tamper detection* (Veriexec)
*A device node is needed for veriexec to function, it is currently not
created automatically*:
cd /dev
sh MAKEDEV veriexec
*Make a duplicate copy of the ls utility*:
cp /bin/ls /bin/ls-2
*Set the veriexec mode to be IDS (Intrusion Detection System) when it runs*:
echo veriexec_strict=1 >> /etc/rc.conf
*Generate a has of all executables in search patch*:
veriexecgen
*Verify the hashes on for ls & ls-2 are listed*:
grep ls /etc/signatures
*Enable veriexec temporarily*: (ignore any errors related to
/etc/signatures)
/etc/rc.d/veriexec onestart
*Confirm you are able to read /bin/ls-2*:
cksum -a SHA256 /bin/ls-2
*Clobber /bin/ls-2*:
echo 1 > /bin/ls-2
*Try to re-read /bin/ls-2 (it should fail with an error)*:
cksum -a SHA256 /bin/ls-2
Hello,
This year Open Source Hardware Camp will take place over the weekend
of Saturday 2nd & Sunday 3rd September, hosted as part of the Wuthering
Bytes festival in Hebden Bridge, which in 2017 will take place over the
course of 10 days (again!)
We will be returning to the Birchcliffe Centre in Hebden Bridge, which
benefits from the convenience of adjoining, budget accommodation.
Proposals for talks and workshops for OSHCamp 2017 are invited!
There is no theme and topics may include, for example:
* Open source hardware projects
* Open development practices and principles
* Novel/interesting/fun projects built using open source hardware
* Tools (hardware and software)
* Skills and techniques, e.g. PCB fab, DIY SMT assembly
* Relevant technologies, e.g. SPI/I2C bus programming
* ...something else relevant to the community
If you would like to give a talk on the Saturday and/or run a workshop
on the Sunday please contact me off-list.
**** Note that the deadline for submitting titles and abstracts is
Monday 1st May. If you would like to discuss ideas etc. please get in
touch sooner, rather than later. ****
Other events running as part of Wuthering Bytes 2017 and which may be of
interest:
* Fri 1st: Wuthering Bytes Festival Day
* Wed 6th & Thurs 7th: Chip Hack (http://chiphack.org/)
* Thurs 7th PM & Fri 8th AM: EDSAC Challenge
* Fri 8th AM - Sunday 10th PM: GNU ORConf (http://orconf.org/)
Further details on these events to be provided in due course.
Cheers,
Andrew
PS. If you are planning on coming along and thinking of staying at the
adjoining hosted, it is worth noting that this can book up quickly.
http://www.hebdenbridgehostel.co.uk/
PPS. Super Early Bird tickets for the super organised:
https://www.eventbrite.co.uk/e/open-source-hardware-camp-2017-tickets-31845…
(pretty sure Eventbrite don't take payment until after the event).
--
Andrew Back
http://abopen.com
We welcome you to join us at the University of Cambridge on April 20-21,
2017 for the NetFPGA Developers Summit [1].
Held immediately prior to Eurosys 2017, this event is intended to permit
participants attend both events with reduced intercontinental travel.
The programme includes presentations, live demonstrations, and group
discussions on topics that are of an interest to the NetFPGA community.
This event will run "un-conference style" in that we brainstorm the actual
session schedule on the first morning, with a focus on interactive topics
that reflect the interests and exploit the knowledge of the attendees --
but there's also room for traditional talks, etc. There are plenty of
break-out rooms for small groups to meet as they see fit.
Confirmed topics include:
* Running P4 programmes on NetFPGA
* Low latency networking
* Running network services in hardware
* Optical networks
* Traffic control tools
* More -- See the draft programme on the Wiki [1]
See you in Cambridge,
The NetFPGA Team
http://www.netfpga.org
[1] NetFPGA-Developers-Summit-2017
<https://github.com/NetFPGA/NetFPGA-public/wiki/NetFPGA-Developers-Summit-20…>
The ORCONF 2017 CFP is out! Why not head up to Hebden Bridge and make a
week of it, with Open Source Hardware Camp, ORCONF and Chip Hack :o)
Details below.
Cheers,
Andrew
-------- Forwarded Message --------
Subject: [Orconf-announce] ORConf 2017 call for participation
Date: Wed, 15 Mar 2017 23:03:14 +1100
From: Julius Baxter <julius(a)fossi-foundation.org>
To: orconf-announce(a)lists.librecores.org
Hi all,
ORConf 2017 will be held in Hebden Bridge in the UK from Friday to
Sunday, September 8th to the 10th.
I'd like to announce that we've opened submissions for presentations,
posters and hardware displays at the event. Proposals may be submitted
through this form:
https://goo.gl/forms/fwALSQvbyUfE83Fh1
ORConf aims to be an event aimed at anyone involved in free and open
source computer system design, with an emphasis on open source digital
design. So if you contribute to a tool to help put systems together, or
develop on and debug them, or publish components and IP, or even make
fully-open source chips(!) we'd very much like to hear from you!
ORConf this year is being held as part of the esteemed Wuthering Bytes
Festival of Technology: http://wutheringbytes.com/ There will be events
in Hebden Bridge starting September 1st, so do check it out.
We'll be in touch when general registration opens and further details of
the event become available, which shouldn't be too far away. All details
will be on http://orconf.org as they become available.
As always we're looking for sponsorship for this year's event. If you
think you'd like to have your company's name associated with it, please
email us at orconf(a)fossi-foundation.org
<mailto:orconf@fossi-foundation.org> and we'll get talking.
Whether or not you're intending on presenting, we're hoping to see
everyone again for another year of great presentations and, this time, a
few good English ales.
Cheers,
The ORConf team
Hello,
Registration is now open for the fifty-seventh meeting, which will be an
evening workshop, providing a hands-on introduction to NetBSD on
embedded platforms.
Cheers,
Andrew
//
OSHUG #57 — Getting started with NetBSD on embedded platforms
On the 20 April 2017, 17:30 - 20:00 at BCS London, 1st Floor, The
Davidson Building, 5 Southampton Street, London, WC2E 7HA.
Registration: http://oshug.org/event/57
— Workshop scope
You're hired at the latest startup as a hardware engineer and required
to build the firmware which will run on "The Greatest Next Generation
Appliance" (GNA). The GNA boots, prints a message and interacts with a
device (in this case an LED).
In this workshop we cover how a person with an interest and a focus on
hardware can make progress with the software side by using the NetBSD
operating system and the features it offers to save considerable time
and effort.
* NetBSD supports a wide & diverse range of systems & CPU architectures.
* Support for cross compilation is offered by default and works out of
the box.
* There is a high level language interface to interact with the system
internals.
* File integrity verification support to detect tampering of binaries
and preventing execution is builtin.
* An instance of the kernel can be run as a user process on different
operating systems where rapid development can take place.
Things we will cover:
1. An introduction to cross-compilation with build.sh and constructing
an image to boot on your hardware.
2. Interacting with the system using Lua (which is embedded in the
kernel, avoiding having to write C or have knowledge of OS internals) to
e.g. access GPIO.
3. Preventing the execution of tampered or unauthorised binaries with
veriexec.
4. Using rump kernel for rapid development away from a potentially slow
dev board.
** Note: Due to budgeting cuts, "The Greatest Next Generation Appliance"
has not yet been purchased, so, the workshop will target the development
of the firmware on a Raspberry Pi or BeagleBone Black.**
— Participant requirements
You will need to bring:
* Your own laptop (running Windows, Linux or Mac OS X);
* A Raspberry Pi or BeagleBone Black;
* An appropriate SD card for your board;
* USB card reader to write a new OS image onto said SD card;
* An ethernet cable to connect board to laptop and/or a USB UART/FTDI
adapter to access the board via the serial console.
— Hosted by
Sevan Janiyan is founder of Venture 37, which provides system
administration & consultancy services. As a fan of operating systems and
computers with different CPU architectures, in his spare time he
maintains builds of open source software on a variety of systems
featuring PowerPC, SPARC and armv7l CPUs. He hopes to own a NeXTcube &
OMRON LUNA-88K2 one day.
Note: Please aim to arrive by 17:15 as the workshop will start at 17:30
prompt.
--
Andrew Back
http://abopen.com
Job opportunity for freelance electrical engineer / PCB designer
It's The Flash Pac <http://www.itstheflashpack.com/>k are an award winning
photo experience agency, specialising in creating fun, interactive
photography based experiences at live events. We are known for our
innovative approach to briefs, our ability to create striking branded
content, and our expertise in delivering amplification of content pre,
during, and post event.
We are in need of a electrical engineer to spec and design a small PCB for
the Raspberry Pi 2, in effect a Raspberry Pi ‘HAT’. The applicant must be
able to show recent examples of PCBs designed through to fabrication in
Eagle CAD or similar for a commercial client, a thorough understanding of
the Raspberry Pi 2 B+ is of benefit.
We have a technical requirements document and have sourced some components
but consultation is required to fully scope the work, to check that our
desired specifications are fully feasible and the components are sufficient
to fulfil the requirements.
For those interested please email me at (neil(a)itstheflashpack.com) with CV
/ portfolio.
Thanks!