-
jclulow
twobitsahead: G'day!
-
twobitsahead
How's it going?
-
jclulow
It's been a busy day!
-
twobitsahead
Really?
-
jclulow
Yes indeed haha
-
jclulow
We're doing a software release at work
-
iximeow
i figured this week is probably not a great one to bug you about the pbchk changes :P
-
jclulow
iximeow: From what I have seen, which is not much, they seem on the right track, but yeah, I'll circle back haha sorry
-
iximeow
i'll just remember to not pbchk the wrong thing, np
-
twobitsahead
I am interested in ways in which I might be able to contribute to illumos. Is there anything that might exist which is somewhat beginner friendly?
-
jclulow
twobitsahead: I think the best way to contribute is to find something that you're personally motivated to fix!
-
jclulow
That is: a bug you're hitting personally, or a missing feature you need for something, or driver for hardware that you have available to work on and test with
-
twobitsahead
Noted, thank you
-
twobitsahead
I have a small list of features which I noticed could possibly be useful. If memory serves me right, one was the '-r' flag for 'pkg list'. I recall that 'pkg search' had that flag but not 'pkg list'. I'll have to check my notes to confirm that this was really it
-
twobitsahead
Admittedly, I have spent more time in the books than at the keyboard. If I run into uncharted territory and can't find the way out alone, would this place be the right one to ask for a bit of advice?
-
jclulow
twobitsahead: Sure, you can always ask questions here
-
jclulow
We'll do our best to answer them or to redirect you elsewhere!
-
jclulow
For pkg, FWIW, that comes from a separate repository from the illumos base. It's here:
github.com/omniosorg/pkg5
-
jclulow
I added a flag there myself recently:
omniosorg/pkg5 #504
-
jbk
hrm.. just by any chance does anyone have a disk (virtural or physical) w/ a GPT label that was created on linux, but could run prtvtoc against it?
-
jbk
or has tried to access it from illumos?
-
jbk
it looks like parted (among other things) will create an empty array of 128 partition entries
-
jbk
i'm just curious how illumos would handle that (p0-127? or will it ignore the trailing empty partitions)
-
jclulow
I can't recall ever seeing a p100+ haha
-
jclulow
But I have definitely noticed weird/unusual looking layouts in prtvtoc before
-
jbk
i'm thinking it does... but i hate assuming.. I can probably construct something
-
jclulow
I just cannot remember the specifics
-
jbk
just figured if someone had something they could easily run prtvtoc against
-
jbk
that's a lot faster
-
twobitsahead
I looked at the pkg man pages for Omni and OpenIndiana. It looks like Omni already has the -r flag for pkg list, and the man pages show that it doesn't search the remote repository
-
twobitsahead
It looks like the OI pkg doesn't include an -r flag for pkg list
-
twobitsahead
I looked through any mention of 'pkg list' through the files in the parent and subdirectories and didn't find where 'pkg list' is defined
-
twobitsahead
Many mentions of it and the interface in Python, but not the piece I am looking for
-
twobitsahead
Any ideas where it might be?
-
twobitsahead
^just to clarify, I am looking through the pkg5 repo from OpenIndiana
-
jbk
for my tar change, gordon suggested using I_PEEK instead of a 'peeker' thread.. testing seems to work against a fifo (from a simple test)... what I'm trying to think of is if there is a scenario (at least one plausible) where tar would be reading from something other than a regular file or a fifo (i.e. stdin is a pipe)
-
jbk
since if there isn't any, that would make I_PEEK an option
-
rmustacc
stdin can be any kind of fd that the person who calls fork/exec wants it to be.
-
rmustacc
While sure an event port isn't the case, certainly a character device or socket doesn't feel out of the question, even if a door isn't very realistic.
-
jbk
yes, but auto-detecting compression format when input on stdin is already broken, the question is would using I_PEEK instead of a thread that basically buffers the first few bytes to check be enough of an improvment to prefer scrapping the thread approach
-
jbk
and so is getting tar's stdin on something where I_PEEK doesn't work (which would be the status quo) a scenario that would be common enough
-
jbk
(at the same time, I really don't know when I'd have the time to go back and rewrite everything just because one advocate wants a specific approach)
-
jbk
but it'd at least be good to make sure the tradoffs between the two are known..
-
rmustacc
Well, that's more context than I had when you asked as I don't know your tar change really.
-
jbk
so the other scenarios are likely enough that not fixing them is a problem would favor what's there
-
jbk
+if
-
jbk
but if not, then maybe going the other way is better...
-
jbk
i suspect most use where a file isn't specified is via a pipe to stdin, but then, i've been surprised before :)
-
tsoome_
128 partitions can be seen with illumos tools as well, but we normally truncate the list and only show first 9 (end with reserved partition number 8). 128 is coming from the fact that by specification, we are required to allocate space for that many entries in partition entry array (16k, or 128 * 128 bytes).
-
jbk
yeah, i have a situation where I actually want to increase that -- mostly to force the last usable LBA on a disk to a specific alignment in a way where tools aren't all 'hey! you've got unused space there, do you want me to use it?'
-
jbk
as at least some seem to dislike it if you just set the last usable lba value in the label to something that leaves a gap between it and the GPT entries in the backup label
-
tsoome__
I guess, thats why they did create this reserved partition.
-
jbk
the reserved partition is used on illumos to stash a copy of the disk id.. i think that's for disks where we have to generate an id
-
jbk
it's not used for anything else, and the fixed size won't really change the alignment
-
jbk
(granted i've had a few ideas for things that might be interesting to stash in that partition)
-
tsoome
yep
-
twobitsahead
Hello
-
twobitsahead
Hello
-
tsoome
hi
-
twobitsahead
How's it going?
-
iprog4u
First, thank you all for Illumos! I feel like I have found some kind of secret treasure. That being said I tried out all of the Illumos-based distros on some new hardware and found out that it uses a newer Realtek 8125 driver. After testing the efforts of someone who patched the vendor's driver for FreeBSD I wonder how difficult it would be to port their efforts to the Illumos kernel. Is that even a reasonable approach or am I
-
iprog4u
getting in over my head?
-
jclulow
iprog4u: I think it will take some work, but I believe anybody can do kernel work if they stick with it!
-
iprog4u
@jclulow I am by no means a C guru but have successfully integrated C apps into a Common Lisp app years ago. Hoping that it could be a "simple" matter of porting the success that person had with FBSD kernel over to Illumos kernel but initial searching looks like kernel dev is INVOLVED!
-
jclulow
It definitely won't be a case of copying a C file into place, adjusting a couple of include paths, and then it works
-
jclulow
But it also won't be like inventing a totally new thing
-
iprog4u
Right. Clearly not a copy pasta situation but it also looks like there is a possibility of preparing the info for some entry points and then letting the C driver junk provided by the vendor work with the hardware.
-
iprog4u
Where would one even begin? This?
illumos.org/books/wdd/bookinfo.html#bookinfo ? The idea of this mini pc with 2x 2.5Gb NICs running an Illumos-based distro would open up some fun possibilities.
-
rmustacc
illumos.org/man/9E/mac is the overview for the current networking framework.
-
rmustacc
I don't think it's going to be just pointing things into the vendor driver per se.
-
rmustacc
Writing device drivers is useful background as well.
-
rmustacc
The challenge of no docs for the RTL8125 is definitely a factor that has slowed down support for it in the past.
-
iprog4u
Thank you for the direction. Figured it couldn't be super easy or else more would be doing it. Might be above my paygrade, I can parse C but not write idiomatic code. All I found was a leaked pdf for the 8125 and it definitely has a ton of info right down to electrical level.
-
rmustacc
Does it have the firmware docs?
-
rmustacc
Or really things like PCIe BAR layouts?
-
rmustacc
If you have specific questions, happy to answer them. I'm to blame for the mac manuals and can probably point you to some other references.
-
iprog4u
Oh nice! I would like to contribute somehow once I learn enough. Please forgive my massive ignorance here. Hehehe for example, how would I even determine firmware docs vs. PCIe BAR layouts?
-
iprog4u
There is AC and DC characteristics, Serial EEPROM Interface Timing, Differential Receiver Parameters, REFCLK Parameters. Tons of things I know nearly nothing about :)
-
rmustacc
Probably easier to work from something else.
-
rmustacc
Just to have a comparison point.
-
iprog4u
Like the drivers that worked for FBSD?
-
rmustacc
I meant easier to explain with a datasheet that has it.
-
rmustacc
-
iximeow
wow you weren't kidding that there's no docs here. that's unfortunate
-
iprog4u
I see. Yeah seems that there is not much of anything for this chip. So lame, I was looking forward to running Illumos-based goodness on this machine. Will have to settle for other hardware for now.
-
iprog4u
Thank you all for getting back to me and for your work on Illumos. I want to write a post about a lab-in-a-box on OmniOS or similar.
-
jbk
it does look like our rge driver supports some of the same models as the freebsd if_re driver (just that freebsd supports additional ones the illumos rge does not -- including the 8125)
-
jbk
which suggests there might be some common bits so it _might_ be a matter of just adding some 8125 specific bits
-
jbk
though at the same time, that could also be harder than just porting the driver..
-
jbk
-
megaTherion
jbk: btw. I just tried RTL8125 2.5Gbps recently which wasnt supported on OmniOS