WEBVTT
Kind: captions
Language: en

00:00:00.760 --> 00:00:09.840 align:start position:19%
this is a demo of my ethernet boot
loader for AVR this is an at Mega 328p

00:00:06.640 --> 00:00:15.839 align:start position:19%
with a 16 MHz Crystal this is a breakout
board for the very cheap ENC 28 j60

00:00:13.440 --> 00:00:21.760 align:start position:19%
which implements a physical layer and
the bootloader acts as a tftp

00:00:19.480 --> 00:00:26.760 align:start position:19%
client I've configured it to flash the
orange LED when receiving and the green

00:00:24.439 --> 00:00:30.199 align:start position:19%
LED when transmitting which bizarrely
isn't the default and this ethernet

00:00:28.960 --> 00:00:34.480 align:start position:19%
cable is actually plugged into the side
of my laptop where I've set up a network

00:00:32.599 --> 00:00:39.200 align:start position:19%
bridge to the Wi-Fi the reason I've done
that is so that we can then monitor

00:00:36.239 --> 00:00:45.079 align:start position:19%
every packet in wi shark but normally
you would just plug this into your home

00:00:41.000 --> 00:00:50.840 align:start position:19%
router or router I have a Raspberry Pi
setup as a public tftp server and the IP

00:00:49.360 --> 00:00:54.079 align:start position:19%
address for that happens to be hardcoded
into the

00:00:51.879 --> 00:01:00.000 align:start position:19%
bootloader I can force the bootloader to
run to run just by pressing the uh reset

00:01:00.399 --> 00:01:06.360 align:start position:19%
and there you go and here it is again in
wi

00:01:04.479 --> 00:01:12.880 align:start position:19%
shark so you can see the first thing it
did was a AR request for the default

00:01:09.680 --> 00:01:18.680 align:start position:19%
gateway at 1921681254
and then the tftp read request and this

00:01:16.600 --> 00:01:23.759 align:start position:19%
is just a small program that just
enables a uart and sends out a demo

00:01:21.600 --> 00:01:28.159 align:start position:19%
message now as well as using the
settings stored in the flash it can also

00:01:25.479 --> 00:01:32.640 align:start position:19%
use addresses stored in the e prom so as
a demo I'll just write some values into

00:01:29.799 --> 00:01:35.399 align:start position:19%
the there using AVR dude and this time
I'll give it an IP address that's on the

00:01:34.600 --> 00:01:42.200 align:start position:19%
local
network that's my laptop running

00:01:38.119 --> 00:01:42.200 align:start position:19%
this Windows tftp

00:01:44.920 --> 00:01:51.759 align:start position:19%
Server the reason I wanted it to load
from the squ prom is that I haven't

00:01:49.079 --> 00:01:56.520 align:start position:19%
implemented a DHCP client but the odds
are if you're using ethernet your main

00:01:54.040 --> 00:02:00.799 align:start position:19%
application will have a DHCP client in
which case it can write its IP addresses

00:01:58.600 --> 00:02:04.600 align:start position:19%
into the esqu prom and the bootloader
will then use

00:02:02.280 --> 00:02:10.080 align:start position:19%
them the whole thing is less than 1
kilobyte of code so it fits into the 512

00:02:08.160 --> 00:02:13.599 align:start position:19%
word boot
sector the main reason I made this was

00:02:12.440 --> 00:02:17.280 align:start position:19%
just that I wanted to play around with
the lower layers of networking something

00:02:15.440 --> 00:02:20.800 align:start position:19%
I've never really experimented with
before but at the same time I wanted to

00:02:19.599 --> 00:02:26.280 align:start position:19%
make something
useful the source code is on GitHub H

00:02:24.000 --> 00:02:30.160 align:start position:19%
all in assembly of course and I've put
quite a long write up explaining

00:02:27.640 --> 00:02:33.440 align:start position:19%
everything on MIT zella.com
see y

