FANDOM


It's faster to cross-build the kernel, but if you'd like to do the build on the Atari itself, here's how.

  1. Log in with your user account either at the console or via ssh. Some keyboard characters are mapped oddly on the Atari keyboard so I prefer to use ssh.
  2. mkdir syssrc
  3. cd syssrc
  4. ftp ftp://ftp.netbsd.org/pub/NetBSD/[NetBSD version]/source/sets/syssrc.tgz   (If you're behind a proxy, a mirror such as ftp2.us.NetBSD.org tends to work better.) 
  5. su to root
  6. cd /
  7. progress -zf ~[username]/syssrc/syssrc.tgz tar xpf -
  8. cd /usr/src/sys/arch/atari/conf
  9. cp ATARITT ATARIKERN
  10. Configure the kernel. FWIW, here's what I do:
    1. Prior to NetBSD 7:
      1. vi std.atari
      2. Add or edit the makeoptions line to:
        1. makeoptions COPTS="-Os -fomit-frame-pointer"
      3. Save and exit vi.
    2. On NetBSD 7 and above, don't edit std.atari, just update the makeoptions line in ATARIKERN:
      1. vi ATARIKERN
      2. Edit the makeoptions line to change -O2 to -Os and add -fomit-frame-pointer.
      3. Save and exit vi.
    3. vi ATARIKERN
    4. Enable IPSEC by adding these three lines after INET6:
      1. options IPSEC
      2. options IPSEC_ESP
      3. options IPSEC_NAT_T
    5. Enable NTP:
      1. options NTP
      2. options RTC_OFFSET=0
    6. Disable nfsserver. I leave the nfs client ("nfs") enabled for the purposes of backup.
    7. Disable lp0
    8. Disable unnecessary devices. I disable EtherNEC, BVME410, SMC Elite Ultra, and Crazy Dots.
    9. Disable SCSI autochangers, scanners, and SCSI Ethernet.
    10. If you plan to run apache add:
      1. pseudo-device accf_data
      2. pseudo-device accf_http
    11. If you plan to run filesystems in userspace (I don't use this, currently):
      1. file-system PUFFS
      2. pseudo-device putter
  11. Save and exit vi.
  12. config ATARIKERN
  13. cd /usr/src/sys/arch/atari/compile/ATARIKERN
  14. make depend && make
  15. mv /netbsd /netbsd-ataritt
  16. cp netbsd /netbsd
  17. shutdown -r now
  18. Once the system comes back up, log on as root
  19. cd /dev
  20. sh MAKEDEV all
  21. shutdown -r now

Note: Previously there was a suggestion to edit /usr/src/sys/arch/atari/conf/Makefile.atari to make some performance optimizations. These are actually not necessary so the advice has been removed.


David Ross 18:21, November 26, 2009 (UTC)

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.