RETROCEPTION: Using cc65 in Cygwin on Windows

Chat about anything CX16 related that doesn't fit elsewhere
Post Reply
SlithyMatt
Posts: 913
Joined: Tue Apr 28, 2020 2:45 am

RETROCEPTION: Using cc65 in Cygwin on Windows

Post by SlithyMatt »


If you are having a hard time getting cc65 development for the X16 working on Windows, I go through the straightforward process of using Cygwin to provide a GNU environment without having to start up any VMs. Of course, however, I do this all within a Windows 10 VM running on Linux, including running the X16 emulator, thus: RETROCEPTION!





 

ZeroByte
Posts: 714
Joined: Wed Feb 10, 2021 2:40 pm

RETROCEPTION: Using cc65 in Cygwin on Windows

Post by ZeroByte »


My "inception" moment was when I needed to fix a borked startup_config.txt on a virtual Cisco router appliance.

The chain was: HostPC -> VMWare Linux box -> qemu Linux box -> Cisco Virtual IOS

To fix, I had to log into the qemu linux box, and then use loopback device tools to mount the qcow image of the router appliance's filesystem. THAT filesystem in turn contained yet another image file: the NVRAM image where the startup_config.txt is located. Unfortunately, this FS was of a type that Linux didn't support, so the inception stopped there.

Fortunately, I could still "cat nvram.img | strings" to get the config out, and then rename the file so the router would boot as default (no nvram = default). Then I fixed the config on the host PC and copy/pasted the modified config into the prompt of the now-defaulted virtual router. EASY!

The config was broken in a way as to disallow any and all command line access, and I couldn't find any docs on how to boot the router in "ignore start config" mode - plus this way was more fun.

Post Reply