This is an old revision of the document!


A PCRE internal error occured. This might be caused by a faulty plugin

====== Week 2 (May 30 to June 5) ====== ==== Day 1 (May 30) ==== **Breakthrough!** Found the point where attempting to open an IPv6 connection was failing (debug line in core/open.c) and added an AF_INET6 socket opener to TCP. I'll probably have to do the same for UDP soon. The kind of output I'm getting now is: <code> gPXE> imgfetch http://[f fc00::1]/test.bin creating xfer XFER 0xabc48 opening http URI RESOLV 0xac614 opening named socket "fc00::1" RESOLV 0xac664 attempting to resolve "fc00::1" RESOLV 0xac664 trying method NUMERIC NUMERIC 0xac6b4 attempting to resolve "fc00::1" ipv6 converting fc00::1 to an in6_addr RESOLV 0xac664 succeeded using method NUMERIC XFER 0xac61c->0xabfbc redirect XFER 0xabfbc->0xac61c close XFER 0xac61c->0xabfbc close XFER 0xabfbc opening (SOCK_STREAM,AF_INET6) socket TCP 0xac704 allocated TCP 0xac704 transitioned from CLOSED to SYN_SENT TCP 0xac704 bound to port 64065 XFER 0xac61c->0x97d98 close TCP 0xac704 timer fired in SYN_SENT for 3bf72bc6..3bf72bc6 00000000 TCP/IP sending IPv6 packet ipv6: tx IP6 0xad018 src fe80::5254:ff:fe12:3456 dest ::0 nxt_hdr 6 len 36 Neighbour cache miss: IP6 fc00::1 New neighbour cache entry: IP6 fc00::1 => Ethernet 00:00:00:00:00:00 TCP/IP sending IPv6 packet ipv6: tx IP6 0xb083c src fe80::5254:ff:fe12:3456 dest ::0 nxt_hdr 58 len 32 No entry for fc00::1 </code> As per the schedule, this week I'll be implementing neighbour discovery protocol and some other ICMPv6 features, so it's highly likely I'll have (basic) HTTP booting working by the end of the week. It's good to finally figure out how this part of gPXE works :). Update, a few hours later... [[soc/2011/pcmattman/notes/packetdumps/start|Packet Dumps]] now holds some packet dumps, and in particular now holds a valid HTTP response (albeit 404) from an IPv6 web server. Now the real coding begins - so far it's just been a lot of patching the existing IPv6 implementation; now I will be implementing completely new code. Update #2: had the weekly meeting and sorted through some coding style issues. Getting used to the new coding style has proved to be challenging :). I managed to get IPv6 routing working properly during/after the meeting but now remote hosts try and look up the MAC address of the gPXE host by sending Neighbour Solicit messages, which aren't handled yet. I'll work on that tomorrow - Guo-Fu gave some advice about how to make responding to Neighbour Solicit messages work. ==== Day 2 (May 31) ==== Modified the network -> transport transition in the network stack to pass a net_device object alongside the packet buffer. This will let me access the local machine's link-layer address in the ICMPv6/NDP implementation. I sorted out all the compile issues that came as a result of that and stubbed a few NDP functions ready for implementation. Once NDP solicits are working I'll get the relevant commits out there with a request for comments, as they change some of the fundamental prototypes in the network stack. It'll be easier to see the purpose of the changes when the changes are actually being used. ==== Day 3 (June 1) ==== Worked on getting NDP implemented today. I managed to get responding to NDP solicit messages working, which showed that the previously reimplemented IPv6 routing code has not caused a regression. As part of the test I pinged a gPXE host after it had autoconfigured an address for itself: <code> 64 bytes from 2001:44b8:7222:a50::f: icmp_seq=5 ttl=255 time=15.4 ms </code> It's nice to see gPXE talking to the network via IPv6 now :). The next step is to get a kernel booted via HTTP over IPv6, and then I can start working on router advertisements and configuring station addresses based on the prefix announcements (at the moment the 2001:44b8:7222:a50::/64 prefix is hardcoded for testing, but the link local address used for NDP is autoconfigured). [[http://git.etherboot.org/people/pcmattman/gpxe.git/commit/96acdca13776eb7be1525984b2609111ff6dea02|Commit containing today's work.]] (96acdca13776eb7be1525984b2609111ff6dea02) Update: HTTP booting [[https://picasaweb.google.com/pcmattman/GoogleSummerOfCode2011?authkey=Gv1sRgCImD_Zf4zsaUsgE#5613236860456772754|is]] [[https://picasaweb.google.com/pcmattman/GoogleSummerOfCode2011?authkey=Gv1sRgCImD_Zf4zsaUsgE#5613236847427503426|working]]!!! Success! [[http://git.etherboot.org/people/pcmattman/gpxe.git/commit/fe7ef6e404ca2597c915e7a1937154ff7afddc22|Commit containing fixes]] that were needed for HTTP booting on my network. (fe7ef6e404ca2597c915e7a1937154ff7afddc22) ==== Day 4 (June 2) ==== Did some more work on HTTP booting today. [[http://git.etherboot.org/people/pcmattman/gpxe.git/commit/6df968c5cfbb70c1ae1ee00c67ff07b5433c1f7d|First thing that I fixed up]] was address autoconfiguration, which now uses router advertisements to obtain a prefix to use. This allows the gPXE host to get a globally routable address without asking for it (although I will add router solicits shortly). [[http://git.etherboot.org/people/pcmattman/gpxe.git/commit/471457a331a9cae56dd103a0cdd85cdcdf9402d7|After this, I implemented AAAA records into DNS]] and set up a VPS I'm renting to use a Hurricane Electric tunnel for IPv6. [[http://ipv6.theiselins.net/gpxe/ipv6.gpxe|It's all set up with DNS]], too (IPv6 required for link). The most important change this evening however was to [[http://git.etherboot.org/people/pcmattman/gpxe.git/commit/c7883b820acfd07f5dd893015f6179e38a93fcc8|fix the IPv6 routing]] to work on both the local network as well as the Internet. This made it possible to boot a kernel from my IPv6 test server, which worked extremely well. Things are progressing nicely now, and I'm maintaining the pace I outlined in my project plan. It doesn't look like I'll miss the deadline on this week's milestones. Next up this week is Router Solicit messages and finishing off ICMPv6.


Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code soc:2011:pcmattman:journal:week2 (generated for current page)