#garfield Logs
Sep 14 2022
#garfield Calendar
01:08 AM rue_shop3: well
01:17 AM rue_shop3: in the name of crazy, I'm building a 6502 based servo loop controller
01:17 AM rue_shop3: becasue I can?
01:17 AM rue_shop3: becasue I think I can and I'm going to either prove or disprove it?
12:54 PM rue_mohr: 2777
12:54 PM rue_mohr: k
12:54 PM rue_mohr: thought it would go down
12:54 PM rue_mohr: How you making out ont he live cd Tom_L ?
12:55 PM Tom_L: not
12:57 PM rue_mohr: where did the road end?
01:05 PM Tom_L: dead
01:05 PM Tom_L: live build wasn't set up for the type of bootloader pi uses. not a normal thing like uboot or such
01:06 PM Tom_L: so i tried github.com/LinuxCNC/pi-gen
01:06 PM Tom_L: and that generated a non bootable img
01:06 PM Tom_L: but i think it's because there is no new kernel to use with bullseye or bookworm
01:09 PM rue_mohr: huh, what version kernel does the lcnc need?
01:10 PM Tom_L: the lastest one for bookworm i think is 5.15.xx
01:10 PM Tom_L: and the last realtime one i found was 4.19
01:10 PM Tom_L: if you try to use realtime patches on a non realtime kernel it builds but is not realtime
01:11 PM rue_mohr: oh, so the realtime is the snag?
01:11 PM Tom_L: one of them yes
01:11 PM Tom_L: and i'm not smart enough to make one
01:11 PM rue_mohr: well, time
01:12 PM rue_mohr: someone could do that a lot faster than you and me
01:12 PM rue_mohr: but it also means its just time before it can be done
01:13 PM Tom_L: needs interest or it won't get done
01:13 PM rue_mohr: does lcnc run on pi at all right now?
01:14 PM Tom_L: the way the pi-gen one works is it uses the native OS of the build PC to generate an arm64 version
01:14 PM Tom_L: yes
01:14 PM Tom_L: 32bit buster
01:15 PM Tom_L: https://www.youtube.com/watch?v=g0OLIth_cOI
01:16 PM Tom_L: my wiring is _almost_ as good as yours
01:29 PM rue_mohr: ?
01:29 PM rue_mohr: heh
02:59 PM aandrew: I'm actually pretty happy with the pi4 in general, they cleaned up a lot of the issues iwth pi3 and it's a pretty capable little beast
03:04 PM rue_mohr: having to fold the memory like this to use a 6502 is painfull
03:04 PM rue_mohr: whats FFFF-03FF?
03:04 PM rue_mohr: zippo:/morfiles/programming/asm/6502/6502servo# calc 0xFFFF-0x03FF
03:04 PM rue_mohr: 0xFFFF-0x03FF -->> 64512
03:04 PM rue_mohr: :P
03:05 PM rue_mohr: zippo:/morfiles/programming/asm/6502/6502servo# calc "0xFFFF-0x03FF(ResultBase=16)"
03:05 PM rue_mohr: 0xFFFF-0x03FF(ResultBase=16) -->> 0xFC00
03:05 PM Tom_L: https://www.aliexpress.com/item/3256804080322734.html
03:05 PM aandrew: rue_mohr: actually looking at buying an old Atari Lynx II to play around a bit with the old 6502
03:06 PM rue_mohr: Tom_L, ?
03:06 PM aandrew: found one near me for $70, tempted but I know it'll just sit for a few more years
03:06 PM rue_mohr: heh
03:07 PM rue_mohr: ; 0000-03FF Real memory
03:07 PM rue_mohr: ; 0400-3FFF repeats
03:07 PM rue_mohr: ;
03:07 PM rue_mohr: ; 4000-400F 6522 #1
03:07 PM rue_mohr: ; 4010-401F 6522 #2
03:07 PM rue_mohr: ; 4020-7FFF repeats
03:07 PM rue_mohr: ;
03:07 PM rue_mohr: ; 8000-8003 8255
03:07 PM rue_mohr: ; 8004-DFFF repeats
03:07 PM rue_mohr: ;
03:07 PM rue_mohr: ; C000-FBFF repeats of...
03:07 PM rue_mohr: ; FC00-FFFF repeat of memory
03:10 PM rue_mohr: so you cant really stack overflow a 6502 is the lesson from yesterday
03:11 PM rue_mohr: its stack is hard-wired 0x0100-0x01FF
03:11 PM rue_mohr: its only an 8 bit stack pointer
03:14 PM rue_mohr: well damnit
03:15 PM rue_mohr: after the page 0 and the stack, I only have 512 bytes left for software
03:15 PM rue_mohr: no
03:15 PM rue_mohr: oh I'm out by a bit
03:16 PM rue_mohr: 7FF not 3FF
03:17 PM rue_mohr: ; 0000-07FF Real memory
03:17 PM rue_mohr: ; 0800-3FFF repeats
03:17 PM rue_mohr: ;
03:17 PM rue_mohr: ; 4000-400F 6522 #1
03:17 PM rue_mohr: ; 4010-401F 6522 #2
03:17 PM rue_mohr: ; 4020-7FFF repeats
03:17 PM rue_mohr: ;
03:17 PM rue_mohr: ; 8000-8003 8255
03:17 PM rue_mohr: ; 8004-DFFF repeats
03:17 PM rue_mohr: ;
03:17 PM rue_mohr: ; C000-F7FF repeats of...
03:17 PM rue_mohr: ; F800-FFFF repeat of memory
03:20 PM rue_mohr: ; I'm going to abstract this all to high memory
03:20 PM rue_mohr: ; Ram: (page 0) 0xF800 - 0xF8FF
03:20 PM rue_mohr: ; Stack: 0xF900 - 0xF9FF
03:20 PM rue_mohr: ; Program: 0xFA00 - 0xFFFF
03:34 PM rue_mohr: assembled image looks good
04:35 PM polprog: doing 6502?
08:55 PM Tom_L: rue_mohr, you done ssh or git gui into github?
08:55 PM Tom_L: can't seem to get it working
09:18 PM rue_shop3: just command line
09:18 PM rue_shop3: I have a command line saved somewhere
09:19 PM rue_shop3: I think its on the other machine
09:19 PM rue_shop3: I'm fighting with a crystal osc
09:19 PM Tom_L: trying to use a ssh key for login
09:19 PM rue_shop3: its complex
09:19 PM Tom_L: but not getting very far
09:19 PM rue_shop3: yea I can find you my cheat
09:19 PM Tom_L: i generated the key and registered it on git
09:19 PM rue_shop3: its a big ugly command
09:19 PM Tom_L: trying to use git gui
09:20 PM rue_shop3: no I..
09:20 PM rue_shop3: let me just see if Ic an find my cheat
09:20 PM rue_shop3: its not something you can just make up
09:22 PM rue_shop3: I cant find it
09:22 PM Tom_L: i got them working locally between pcs
09:22 PM rue_shop3: its really big and long and ugly and you have to run an obscure command to make it work in the first place because of a param that says it does one thing but it doesn't
09:22 PM rue_shop3: want to try #git and it they cant help you out I'll dig more
09:23 PM Tom_L: not tonight
09:23 PM Tom_L: need a break from it
09:23 PM rue_shop3: you cant just do it
09:23 PM rue_shop3: it requires black magic
09:23 PM rue_shop3: no I cant find it
09:24 PM Tom_L: i read one place you identify as 'git'
09:24 PM Tom_L: does the user in the key have to match the git repo user?
09:24 PM Tom_L: ie: pi@raspberrypi
09:25 PM rue_shop3: the command options that should do it do not
09:25 PM Tom_L: at least none of the ones i've tried :)
09:25 PM rue_shop3: when I was told the solution my reaction was "thats really messed up"
09:25 PM rue_shop3: no you cant just make it up
09:26 PM rue_shop3: the docs dont tell you what you need to know
09:26 PM rue_shop3: I asked in the irc channel
09:26 PM Tom_L: i would like to use git gui though
09:26 PM Tom_L: if possible
10:14 PM rue_shop3: FFFFFFFFFFFFFFFF damn freaking crystal oscillators!!!!
10:16 PM Tom_L: i feel somewhat the same about github right now :)
10:42 PM rue_mohr: just understand that its not something you can sit down, read the documentation and figure out
10:42 PM rue_mohr: you need a bunch of junk on the commandline that makes no sense and isn't documented properly