#garfield Logs

Oct 26 2019

#garfield Calendar

12:10 AM rue_mohr: oh
12:15 AM rue_mohr: only the midle one is an fpga
12:15 AM rue_mohr: and its config goes into internal sram
12:15 AM rue_mohr: aka, no power cycle retentio
12:15 AM rue_mohr: n
12:44 AM rue_mohr: when did intel buy altera?
12:46 AM rue_mohr: were chasing the cpld route
06:54 AM Tom_L: maybe when you were sleeping?
11:34 AM rue_mohr: I might be able to do a cpld thing
11:34 AM rue_mohr: with what I have
03:17 PM rue_mohr: back to converting my filter profiler to stm32
03:17 PM rue_mohr: nuce sunny day out too
03:18 PM rue_mohr: If I was set up it would be a good day to work on the big cnc
03:23 PM Tom_L: sucked up the leaves
03:27 PM rue_mohr: didn't blow them into someone elses problem?
03:28 PM rue_mohr: ok I think I figured out my pin mapping for the project
03:28 PM rue_mohr: but I need lunch
03:29 PM rue_mohr: no I forgot someone
03:31 PM rue_mohr: heh, its kinda funny
03:31 PM rue_mohr: all the 3.3V stuff
03:32 PM rue_mohr: so much of it is 5V tolerant that when I'm really using a 3.3V controller, its all talking to 3.3V stuff anyhow
07:45 PM Tom_L: turns out that ethernet was the mb one
07:45 PM Tom_L: i don't think it sees the other one
07:58 PM rue_mohr: it sees them both
07:58 PM rue_mohr: but if you got what you want working thats great
08:00 PM rue_shop1: ok, the top of the bench is changed
08:00 PM rue_shop1: I can breathe in the shop again
08:03 PM Tom_L: i thought i did but i don't
08:04 PM rue_shop1: so, do we work on it?
08:07 PM Tom_L: i am
08:07 PM Tom_L: got an odd bios problem right now
08:11 PM Tom_L: pulled the pcie card, now the bios screen won't display but it will boot linux and show it
08:13 PM rue_mohr: what?
08:13 PM Tom_L: the ethernet card is a pcie on slot 1
08:13 PM Tom_L: when i pull it, the bios won't display the settings screen
08:13 PM Tom_L: but it boots linux
08:13 PM rue_mohr: gee I spent the whole day fixing ma up with a non-cellphone and repairing the shop bench
08:14 PM Tom_L: tried the reset cmos jumper
08:14 PM rue_mohr: you pushed delete like crazy during the WHOLE TIME it was booting?
08:14 PM Tom_L: it won't display on the screen
08:14 PM rue_mohr: you dont wait for it to ask
08:14 PM Tom_L: it beeps like it's there
08:14 PM Tom_L: i'm aware how it works
08:14 PM rue_mohr: you just push delete like crazy after it powers up
08:15 PM Tom_L: it won't display on the screen
08:15 PM Tom_L: it won't display on the screen
08:15 PM Tom_L: it won't display on the screen
08:15 PM rue_mohr: whaaaaaaa
08:15 PM rue_mohr: the bios cant do video???
08:15 PM rue_mohr: what is that machine smoking
08:15 PM Tom_L: it's stuck going to the wrong one aparently
08:15 PM rue_mohr: you have more than one cvideo card in it?
08:16 PM Tom_L: no
08:17 PM Tom_L: hang on. i'm gonna borrow this monitor a sec
08:17 PM rue_mohr: onboard video counts as a video card
08:21 PM Tom_L: yeah it was going to the other plug
08:22 PM Tom_L: there's a square plug and a HDMI plug
08:22 PM Tom_L: i've been using the HDMI on it
08:22 PM Tom_L: do you know how to switch those in the bios?
08:22 PM rue_mohr: usually the card will use whatever is plugged in on boot
08:23 PM rue_mohr: often both in parallel
08:26 PM Tom_L: you would think the bios could figure it out
08:27 PM Tom_L: once out of the bios, linux booted and displayed
08:28 PM Tom_L: it was ok as long as the ethernet was in pcie slot1
08:28 PM Tom_L: i'm not sure what to look for in the bios to swap them
08:29 PM Tom_L: i can move the plug on the monitor but then my windows boot will be screwed up i bet
08:29 PM Tom_L: i was using dual monitors but not now, i pulled that card out
08:32 PM Tom_L: i guess for now i'll just switch the plugs
08:34 PM rue_mohr: hmm
08:34 PM rue_mohr: its a different port on the same card eh?
08:34 PM rue_mohr: you said you dont have two cards
08:34 PM rue_mohr: onboard video is a type of card
08:34 PM rue_mohr: so, did you have two cards?
08:34 PM rue_mohr: its just a built in card
08:35 PM Tom_L: the onboard has 2 plugs
08:36 PM Tom_L: i did have an add in card but not for a long time
08:36 PM Tom_L: ok so this lan card is realtek. just looked at the chip
08:37 PM Tom_L: RTL8111F
08:37 PM Tom_L: gonna plug it in pcie slot2 this time
08:38 PM rue_mohr: hmm
08:39 PM Tom_L: windows is ok with it. booting linux
08:40 PM Tom_L: now what was the command to view the ethernet hardware?
08:43 PM rue_mohr: lspci
08:49 PM rue_mohr: omg the stm32 code compiled
08:53 PM rue_mohr: ok see if it works!
08:59 PM Tom_L: can you read the mac address from linux?
09:00 PM rue_shop1: ifconfig
09:00 PM Tom_L: not found
09:00 PM rue_shop1: "ether"
09:00 PM rue_shop1: su bash
09:00 PM rue_shop1: then type ifconfig
09:01 PM Tom_L: no passwd entry for user 'bash'
09:01 PM rue_shop1: sudo bash
09:01 PM rue_shop1: sorry
09:01 PM Tom_L: command not found
09:01 PM rue_shop1: apt-get install sudo
09:01 PM Tom_L: sudo is installed
09:01 PM rue_shop1: sudo bash
09:02 PM Tom_L: ifconfig isn't
09:02 PM rue_shop1: 1 sec
09:02 PM rue_shop1: apt-get install net-tools
09:02 PM Tom_L: i'm about to give up on this
09:02 PM Tom_L: i don't think this card will work on this mb
09:02 PM rue_shop1: never give up, its just a matter of finding the button that needs pushing
09:03 PM rue_shop1: apt-get install net-tools
09:04 PM Tom_L: aww shit. my networks are botched right now :)
09:04 PM Tom_L: lemme fix one of em
09:04 PM rue_shop1: hahaha, oh I'm really only listening with half an ear, I'm sorry
09:04 PM rue_shop1: otherwise I wouldn't suggest apt-get to fix a network problem
09:04 PM rue_shop1: hahaha
09:05 PM rue_shop1: thats like telling a robot to walk thru a doorway and it cant cause the door isn't installed, then installing a door and telling the robot to do it again just for it to tell you that it cant cause the door is locked
09:07 PM rue_shop1: openocd -f $(OPENOCD_SCRIPTS_DIR)/interface/stlink-v2.cfg -f $(OPENOCD_SCRIPTS_DIR)/target/stm32f1x.cfg -c init -c targets -c "halt" -c "flash write_image erase ./$(BINARY).elf" -c "verify_image ./$(BINARY).elf" -c "reset run" -c shutdown
09:07 PM rue_shop1: every 2nd time I run this, it fails
09:08 PM rue_shop1: its a problem I had before, but thought this had the fix
09:08 PM Tom_L: ok net tools
09:08 PM rue_shop1: ...wrong channel rue
09:08 PM rue_shop1: damnit
09:14 PM Tom_L: i'm not finding the card
09:16 PM Tom_dev: 1.036809] r8169 0000:01:00.0 eth0: RTL8168g/8111g at 0xffffb66840039000, 40:8d:5c:58:ed:e9, XID 0c000800 IRQ 123
09:16 PM Tom_dev: is one of them
09:17 PM rue_shop1: eth0
09:17 PM Tom_dev: but that card has a RTL8111F iirc
09:17 PM rue_shop1: what does ifconfig -a say?
09:17 PM rue_shop1: does not matter, same protocol
09:18 PM Tom_dev: it just shows one card
09:18 PM Tom_dev: enpls0
09:18 PM Tom_dev: and loopback
09:19 PM rue_shop1: ifconfig -a
09:19 PM rue_shop1: ?
09:19 PM rue_shop1: cause the other thing said eth0
09:20 PM Tom_dev: https://paste.ubuntu.com/p/TZNXmWR6nf/
09:20 PM rue_shop1: well, thats not ambigious
09:21 PM rue_shop1: and that seems to be the motherboard or the pcie card?
09:21 PM Tom_L: that one is the mb
09:22 PM rue_shop1: hmm
09:22 PM rue_shop1: hmmmm
09:22 PM Tom_L: it works on the other mb but i want to use this one as my test pc setup now
09:22 PM Tom_L: i need the other one for work
09:22 PM rue_shop1: it almost sounds like the kernel autoloader coldn't identify it
09:23 PM Tom_L: they both must be realtek
09:24 PM rue_shop1: I have an idea
09:24 PM rue_shop1: the "communications controller" in the pci listing
09:25 PM rue_shop1: you want to pull the card out and see if that item disspears?
09:26 PM Tom_L: ok now what?
09:27 PM rue_shop1: lspci with and without it, see if one of the items appears and disappears with the card
09:27 PM rue_shop1: I think its the "communications controller"
09:27 PM Tom_L: still there
09:27 PM rue_shop1: but there *should* be two ethernet devices listed
09:27 PM rue_shop1: huh
09:27 PM rue_shop1: nothing changed with the card?
09:27 PM Tom_dev: 00:16.0 Communication controller: Intel Corporation Sunrise Point-H CSME HECI #1 (rev 31)
09:27 PM rue_shop1: mm
09:28 PM rue_shop1: ok, does the bios have a "non pnp os" setting?
09:28 PM Tom_dev: 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
09:28 PM Tom_dev: also there
09:28 PM Tom_dev: probably
09:28 PM rue_shop1: yea, it only lists the 1 ethernet iirc
09:28 PM Tom_L: gonna look in the bios now
09:29 PM Tom_L: not sure what to look for
09:29 PM rue_shop1: "non pnp os"
09:29 PM Tom_L: other os
09:30 PM Tom_L: or win 8-10
09:30 PM rue_shop1: if its a non-plug and play os, the bios will preconfigure the pnp, which might sort out a conflict somewehre
09:30 PM rue_shop1: other os, but it will usually specifically say pnp
09:30 PM Tom_L: no
09:30 PM rue_shop1: might be too new to have it
09:31 PM Tom_L: boot option for legacy network devices
09:31 PM Tom_L: that's probably just for net boot
09:31 PM Tom_L: other PCI device rom priority
09:31 PM rue_shop1: yea, they change how they look at the boot drive
09:31 PM Tom_L: uefi legacy or disabled
09:32 PM rue_shop1: dont think so, it'll be PNP
09:32 PM rue_shop1: any PNP settings?
09:32 PM Tom_L: not that i see yet
09:32 PM Tom_L: network stack disabled
09:33 PM Tom_L: the mb ethernet shows up as pcie too
09:34 PM Tom_L: realtek PCIe GBE family controller
09:34 PM Tom_L: i recognize the mac address
09:34 PM rue_shop1: it IS pcie
09:34 PM rue_shop1: its a card, on the pcie bus, thats just part of the motherboard
09:35 PM Tom_L: ya
09:35 PM rue_shop1: its rom is just stitched into the end of the bios chip
09:35 PM rue_shop1: do you want to try disabling the onboard ethernet and see if the card comes up?
09:36 PM Tom_L: don't see a place to disable it
09:36 PM Tom_L: it just shows info about it
09:36 PM Tom_L: i put the other one in pcie2 slot
09:37 PM Tom_L: was in 1 and still didn't work
09:37 PM rue_shop1: something about onboard hardware
09:38 PM Tom_L: other pci device rom priority
09:38 PM Tom_L: uefi or legacy
09:39 PM rue_shop1: wow, that bios sucks
09:39 PM rue_shop1: you should be able to turn onboard hardware on and off
09:40 PM Tom_L: wait
09:40 PM Tom_L: onboard lan controller
09:41 PM rue_shop1: yup
09:42 PM Tom_L: no network connections available
09:44 PM rue_shop1: hmm with the card in?
09:44 PM rue_shop1: what does lspci say?
09:44 PM Tom_L: too late
09:45 PM Tom_L: oh just a sec
09:45 PM Tom_L: still shows communication controller but not the other one
09:46 PM rue_shop1: huh
09:47 PM rue_shop1: I think somehow its not detecting
09:47 PM rue_shop1: which should not be possible
09:47 PM Tom_L: well, it's not there
09:48 PM Tom_L: comes right up when mb one is enabled
09:49 PM Tom_L: i give up on it
09:49 PM rue_shop1: I dont know where to go with it now
09:49 PM rue_shop1: its really like that card cant be detected
09:49 PM Tom_L: me either. it doesn't work
09:50 PM rue_shop1: and I couldn't tell you if its linux, the motherboard, or the card
09:50 PM rue_shop1: did it work on the same motherboard /card for windows?
09:50 PM Tom_L: i dunno
09:50 PM rue_shop1: ah
09:50 PM Tom_L: the card worked on another mb though
09:50 PM rue_shop1: I bet something does't work
09:50 PM Tom_L: with linux
09:50 PM rue_shop1: yea, maybe the motherboard has some slot issues?
09:51 PM Tom_L: tried both pcie slots
09:51 PM Tom_L: i have another mb in a box i can test but not tonight
09:51 PM rue_shop1: yep
09:52 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/cnc/Lcvette/Test_pc.jpg
09:52 PM Tom_L: it would be one of those kind of tests
09:52 PM Tom_L: no box for it
09:53 PM Tom_L: well just the one under it
09:53 PM rue_shop1: yup
09:53 PM Tom_L: go back to your arm code
09:53 PM rue_shop1: I didn't leave
09:56 PM Tom_L: ok how do i turn off the inactivity timeout on this thing?
09:58 PM rue_shop1: gui or console?
09:58 PM Tom_L: mate
09:58 PM rue_shop1: ?
09:58 PM Tom_L: gui
09:58 PM rue_shop1: xset s off dpms force on s noblank s expose -dpms
09:58 PM rue_shop1: should work
09:59 PM rue_shop1: I put it in a bash script called turnthedamnscreensaversoffalready.sh
10:00 PM Tom_L: no, it wants me to log back in
10:00 PM rue_shop1: yea, then run that
10:00 PM Tom_L: screensaver?
10:00 PM rue_shop1: xset s off dpms force on s noblank s expose -dpms
10:00 PM rue_shop1: will turn everything off
10:00 PM rue_shop1: EVERYTHING
10:00 PM Tom_L: not sure i want that
10:00 PM rue_shop1: there are like 4 freaking layers trying to turn your screen off
10:00 PM Tom_L: i turned off the screensaver
10:01 PM rue_shop1: it'll still blank the screen
10:02 PM Tom_L: i'll ask you again if i'm not happy with this :)
10:06 PM rue_shop1: heh
10:09 PM Tom_L: with the other pc i actually had both connections working at once
10:09 PM rue_shop1: yup
10:09 PM rue_shop1: linux can do that
10:09 PM rue_shop1: I have 5 in my router
10:09 PM Tom_L: and i've got 2 of these ethernet cards to test with
10:09 PM Tom_L: the mesa ones
10:10 PM rue_shop1: heh, I think the stm32 is too fast to bit-bang serial with
10:10 PM Tom_L: both free
10:10 PM Tom_L: for testing
10:11 PM Tom_L: one is 48? io and the other is 72
10:11 PM rue_shop1: 48? 72?
10:11 PM Tom_L: IO
10:11 PM rue_shop1: oh, heh
10:12 PM rue_shop1: the core of these is 72Mhz
10:12 PM rue_shop1: a few nops between bit flipping isn't enough
10:44 PM Tom_L: ok test mb set up
10:44 PM rue_shop1: ok
10:45 PM Tom_L: same thing
10:45 PM Tom_L: doesn't show up in lspci
10:46 PM rue_shop1: hmmmm
10:46 PM rue_shop1: I wonder if the card died on ya
10:46 PM Tom_dev: i've never used it on these gigabyte mbs
10:47 PM Tom_dev: the other one is asrock iirc
10:47 PM Tom_dev: i'd have to look
10:48 PM Tom_L: trying slot 2
10:48 PM Tom_L: 1
10:49 PM Tom_L: wait, enp2s0
10:50 PM Tom_L: wasn't the other one enp1?
10:51 PM rue_shop1: it assigns them as it finds them
10:51 PM rue_shop1: ifconfig -a should list all operational interfaces
10:51 PM rue_shop1: not set up ones, but all of them
10:52 PM Tom_L: ok how do i get both of them up at once?
10:52 PM rue_shop1: can you see two?
10:53 PM rue_shop1: ifconfig enp2s0 192.168.47.34
10:53 PM Tom_L: no but i configured 2 settings and can switch between them
10:53 PM Tom_L: the ip changes
10:54 PM rue_shop1: if you can install "pump" it can do the dhcp for you
10:54 PM rue_shop1: pump -i enp2s0
10:55 PM Tom_L: i wonder if i need to edit interfaces
10:55 PM rue_shop1: thought they didnt use that anymore
10:55 PM Tom_L: i think you can still edit it
10:56 PM rue_shop1: yea
10:56 PM rue_shop1: but i didnt think it was used anymore
10:57 PM rue_shop1: cat is trying to sleep on me
10:58 PM Tom_L: i still would need the device name and i don't have it
11:00 PM Tom_L: can you just use eth0 eth1 like you use to?
11:00 PM rue_shop1: ifconfig -a
11:00 PM rue_shop1: shows all the device names
11:00 PM Tom_L: same as before
11:02 PM Tom_L: what is uefi?
11:03 PM rue_shop1: its a protection system for the drives data
11:03 PM rue_shop1: so that the drive is keyed to the motherboard and you cant just stick it in another machine and get the data
11:03 PM rue_shop1: as far as I know
11:06 PM Tom_L: wonder if i should run the pci as legacy instead of uefi
11:09 PM rue_shop1: huh, I must be missing soemthing, try it!
11:11 PM Tom_L: nope
11:20 PM Tom_L: wonder if a bios update...
11:22 PM Tom_L: Caution: Make sure you have a functional floppy disk
11:22 PM Tom_L: hahaha
11:22 PM Tom_L: where do i plug it in????
11:31 PM rue_shop1: heh
11:37 PM Tom_L: i might poke around and try to find an intel pcie card maybe
11:39 PM rue_shop1: the stm32 halts on any floating point operation
11:39 PM Tom_L: bad lib?
11:39 PM rue_shop1: I think its trying to use a fpu it doesn't have
11:40 PM Tom_L: you'd think it would know that
11:40 PM rue_shop1: its no avr.... :/
11:41 PM Tom_L: china ethernet card $1.25
11:42 PM Tom_L: realtek rtl8111e
11:43 PM rue_shop1: this is such a pain to try to make work properly
11:43 PM rue_shop1: these chips are annoying
11:43 PM Tom_L: https://www.ebay.com/itm/PCI-e-Gigabit-Ethernet-Network-Adapter-Lan-Card-Realtek-RTL8111e-1000Mbps/133214890706?hash=item1f0439ead2:g:JboAAOSwEX1dsFyw
11:44 PM Tom_L: damn. free shipping too
11:44 PM Tom_L: hmm bid only
11:45 PM Tom_L: yeah from what i can tell, arm are a pita
11:46 PM Tom_L: gnite
11:58 PM rue_shop1: to set up for sure