-
tsoome
jbk ouch..
-
jperkin
is there any way to just download a proposed changed file from gerrit?
-
jperkin
every link I've tried so far is obfuscated in some way
-
ptribble
If you click on the name of the file in the view, it will just show you the diff for that individual file, and the download button on that page allows you to download just the old or new version of the file
-
ptribble
It does give you a zip file with a horrendously named file, but unzip -c allows you to just see it
-
jperkin
yeh that's what I mean by obfuscated, I just want to grab the file, but I guess I'll have to workaround
-
ptribble
Actually, unzip -qc
-
tsoome
I usually do click on download and select either cherry-pick or something like and get my branch for the change
-
tsoome
(and [re]name it accordingly, git branch -m or such)
-
tsoome
if I have freed memory (from ::whatis fffffe0c031b3d18 is freed from kmem_alloc_160), is there still information where from it was allocated?
-
jbk
tsoome: efiserialio.c is missing a `void comc_ini(void)` function
-
jbk
which appears to be what adds the console entries to consoles
-
jbk
but even just adding the tty[a-d] structs to consoles in that, it still shows device is not present
-
jbk
for all 4 of them
-
jbk
(I'd figure if the port ids are shifted by one, then at least ttyb would show up instead of ttya)
-
tsoome
yes, right, that was added when I did change from static list to dynamic.
-
jbk
but not sure how it's making the determination it's not there
-
tsoome
I should find out why this stupid pointer is not removed from list of backchannel connections, then i can celebrate great success by poking loader bits:D
-
jbk
(to speed up testing, i'm testing on a win2019 server system first)
-
tsoome
they have used list_t with clnt_clts.c but not with clnt_cots.c ... I wonder why...
-
jbk
... though this is odd... i think we recognize the serial io protocol guid as 'serial io' in lsefi, but this VM with a serial port configured doesn't seem to show up in lsefi
-
jbk
though i see additional handle w/ both 'simple text input' and 'simple text output' protocols
-
jbk
but not sure how to get more details on that...
-
jbk
(this is in addition to the handles w/ stdin and stdout)
-
tsoome
I just remembered, I do have something prepared, see if this is any help:
github.com/tsoome/illumos-gate/tree/efiserialio
-
tsoome
(it did turn out to be quite a bit more complicated because of different io protocols invented over the time;)
-
sommerfeld
tsoome: my recollection is that DEBUG kernels set a bunch of kmem_flags; KMF_AUDIT enables tracking who last did something with a buffer but at first glance it only stores the last transaction (free or alloc).
-
sommerfeld
(though maybe I'm wrong about that?)
-
tsoome
it seems so, yes
-
jbk
tsoome: looks like that doesn't see the serial ports either
-
tsoome
lsefi did list them, but ports do not get configured?
-
jbk
well i see a handle (aside from the ones w/ stdin and stdout) with simple text input and simple text output
-
jbk
but i don't know how to see anything else about them
-
tsoome
and the serialio protocol is listed with this handle?
-
jbk
i'm assuming because there's 1 serial port configured in this VM that that is probably it
-
jbk
no
-
jbk
just simple text input and simple text output
-
tsoome
does it print device path? probably not...
-
jbk
-
tsoome
i see
-
tsoome
that VenHW line is device path for this handle
-
tsoome
just a moment...
-
tsoome
ok, cant find that guid.... can you paste outputs from efi-show -g global -v ConIn and also ConInDev, and ConOut, ConOutDev
-
jbk
-
jbk
presumably that's the text console
-
tsoome
ConIn and ConOut are current setup, *Dev is list of possible devices. But problem with hose VenHw devices is that those are generally not documented...
-
tsoome
those guids are from windows 11 hyper-v? what does azure provide?
-
jbk
I can't interact with azure
-
jbk
i was hoping if I got loader talking through the serial port on win 11, then i'd at least have a chance of doing something on azure
-
jbk
because building and then booting an image with azure adds at least another 30 minutes to each test
-
jbk
with all of the fiddling to take the blob, create an image from it, provision a vm, and then try to boot (this could all be automated, but that usually happens after everything is working)
-
jbk
the only way you can interact with the console on azure is through the serial port, hence the problem :)
-
jbk
reading/writing to the IO ports directly works for a bit until it does something that resets the VM
-
jbk
you can get screenshots from the text console, but no interaction
-
tsoome
ok, so, can you test with fbsd image?;)
-
tsoome
we only need confirmation of which protocol is present there.
-
jbk
hrm... the only fbsd image i can find is gen1
-
jbk
which works fine
-
jbk
except for the glacial boot disk issue
-
tsoome
right, yes. because gen1 is working ok:D
-
tsoome
well, ok, we can make an intelligent assumption that serialio is available there, and in that case you can verify your binary with any system with serialio protocol present.
-
jbk
oh wait.. finally found a gen2 fbsd image.. let me spin that up and see what i can see
-
tsoome
:)
-
jbk
and wow.. provisioning is slow
-
jbk
it seems to have booted at least..
-
jbk
(this is a fbsd 14 image)
-
jbk
hrm..
-
jbk
it goes by so quick i can't escape at the loader prom
-
jbk
actually i don't think it even pauses
-
jbk
let me see if I can login and change that...
-
jbk
hrm.. autoboot_delay="-1" -- i thought that disabled the countdown timer
-
jbk
or i guess what value will let it sit at the loader prompt?
-
jbk
hrm.. this doesn't seem to have a show-efi command
-
nomad
I'm glad to see I'm not the only one who gets chatty doing these things. :)
-
tsoome
but efi-show?
-
tsoome
yes, i think they did kill timeouts for cloud images or something like that:)
-
jbk
it said it didn't recognize the command
-
jbk
it looks like it's maybe the loader using lua instead of forth?
-
tsoome
um, efi-show should be there still
-
jbk
hrm.. i wonder if i fat fingered it earlier.. the ansi emulation on this isn't the greatest
-
jbk
or does the arrow keys not work as expected in this version?
-
jbk
-
jbk
(I think it was the arrow keys that were the problem)
-
jbk
hrm.. so this is different from the win2019 server output
-
jclulow
jperkin: Gerrit is just a git remote, so I usually just pull down changes; e.g., see
illumos.org/docs/contributing/gerri…errit-using-more-advanced-git-tools
-
jperkin
yeh I just wanted to grab a couple of individual patched files directly like I can with github/gitlab/etc, no matter, done now.
-
jbk
tsoome: so, that branch works on azure, but serial port doesn't work on win server unless you access the ports directly :P
-
jbk
so fun
-
sommerfeld
jperkin: just do the "git fetch" from gerrit, then git show FETCH_HEAD:usr/src/uts/whatever.c
-
sommerfeld
(or git cat-file blob ${rev}:${path} )
-
jclulow
jperkin: If you know the commit ID, you might also be able to point gitiles at it; e.g.,
code.illumos.org/plugins/gitiles/il…131c030d22a7aac9fa1cdca3f6cf31c%5E!
-
jclulow
-
tsoome
jbk sigh
-
jbk
i'm less concerned about the win server bits -- since kmdb and such will still work, but it is incredibly annoying
-
jbk
(what MS is doing here)