tag:blogger.com,1999:blog-4017745189504803687.post145582779525073617..comments2024-02-28T07:29:15.484+10:30Comments on Making a C64/C65 compatible computer: Testing Ethernet on the r1 PCBPaul Gardner-Stephenhttp://www.blogger.com/profile/10150903760695355706noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-4017745189504803687.post-59794007744212267352018-01-10T10:14:57.018+10:302018-01-10T10:14:57.018+10:30MIIM-compliant ethernet PHYs have a MAC address st...MIIM-compliant ethernet PHYs have a MAC address stored in a special register. However, I am not (yet) reading that out to use it. This is on my list of things to do. Likewise, I can add MAC filtering at the hardware level. These are not particularly hard things to do.Paul Gardner-Stephenhttps://www.blogger.com/profile/10150903760695355706noreply@blogger.comtag:blogger.com,1999:blog-4017745189504803687.post-75853913754600640022018-01-10T08:20:14.108+10:302018-01-10T08:20:14.108+10:30Very interesting post! I'm not sure however (d...Very interesting post! I'm not sure however (due my limited English knowledge, I guess) that I got everything. Do you mean, that it's no way M65 knows its own MAC address, ie reading it somehow? Does the board has an unique MAC address for every ethernet controller chip, or you need to assign one? Maybe if it's possible to assign one (even if it has - in the form, just send frames with a given MAC address you choose when TX'ing a frame) you can work around that situation used a hard-wired one into your test program or so. I don't know too much about ethernet controllers, but I enjoyed for example Microchips' ENC28J60 (if I remember the part number exactly know). As far as I remember it does not have any MAC address set by default (you need to assign one), however it has nice capabilities, like the "magic filter" which can ease the load of the MCU/CPU interfacing (via SPI, btw) with the 28J60, allow to only accept frames targeting its MAC addr set, or even the the broadcast MAC address (to implement the ARP resolution protocol), so it's efficient to implement a network stack then, even if the ethernet segment is quite "noisy" otherwise with frames not so much targeting us. Hmm, now I'm thinking to trying to implement ethernet emulation in Xemu, using Linux TAP device, I can "see" and send raw ethernet frames from software (AFAIK OSX for example has only TUN interface by default, so it's layer-3 not layer-2 access unfortunately, Linux has both of TUN and TAP).LGBhttps://www.blogger.com/profile/04820526370036466739noreply@blogger.com