Re: unix assembly programming

2025-07-27 Thread Michael Cheponis
ok, off topic, but if you've not written assembly language for the pdp-10 in MACRO-10 --- you haven't lived ! Example of awesomeness: We built a 24-bit AMD2901 bit-slice machine with a simple instruction set for image processing. The custom assembly language code was assembled using macros in MA

Re: Wordpress with bozohttpd - anyone?

2025-07-21 Thread Michael Cheponis
bozohttpd with a pure static (html + javascript) web page seems fine. I know you very likely checked this, but did you have to wait for the disk to spin up to retrieve the page? My external disk (holding the web pages) needs to spin up before serving the static pages sometimes (well, often). On

Re: Anyone using Google Drive on NetBSD

2024-08-22 Thread Michael Cheponis
Check out https://rclone.org/drive/ rclone is in pkgsrc On Thu, Aug 22, 2024 at 10:24 AM Brian Buhrow wrote: > hello. Thanks for the reply. What I'm looking for is some kind > of command line, or > perhaps a fuse mount for grafting Google drives into the filesystem tree. > Is anyone

Re: Error in returned value of sizeof(long double) in amd64?

2024-07-07 Thread Michael Cheponis
ientific calculation I needed to do whose precision improved using long doubles, a satellite orbital prediction over very long times) -Mike On Fri, Jul 5, 2024 at 9:35 PM Martin Husemann wrote: > On Fri, Jul 05, 2024 at 07:13:05PM -0700, Michael Cheponis wrote: > > sizeof(long double)

Error in returned value of sizeof(long double) in amd64?

2024-07-05 Thread Michael Cheponis
sizeof(long double) reports 16 in both amd64 and arm64. I think that amd64 uses 80-bit long double floats, and arm64 uses 128-bit long double floats. See enclosed code. What am I misunderstanding? -Mike amd64 gives: 9 is 8.91326382620115964528, error is 0.08673617

Re: RPi 4b Wifi Device

2024-04-20 Thread Michael Cheponis
I run an RPi 4B/8G with external USB SSD drive; I do this because my uSD cards were getting worn out after about a year of use; I've had no such problems with my Samsung 870 EVO nor Samsung SSD T7. I use the built-in GigE adaptor on the RPi 4B, because it's convenient as I have wired ethernet most

Re: RC6 (and later)

2024-03-16 Thread Michael Cheponis
I am not on the Release Team or involved except as a user --- however, I greatly approve of _RC6 release, AND the additional time it will take for people to beat on it before it becomes the 10.0 release. We have more hardware to properly work on now (just for starters, all RPi up to 4 at least), e

'forgot' password ? Couldn't generate salt

2024-02-29 Thread Michael Cheponis
I did a sysupgrade to amd64 to _RC5 (from _RC3), but it seems to have reset my passwords. The accounts are there, just the passwords have been changed. Tried logging in single-user as described in https://www.netbsd.org/docs/guide/en/chap-boot.html # passwd root ... Couldn't generate salt. Unab

Re: NetBSD and ECC RAM?

2024-02-18 Thread Michael Cheponis
I've been running ECC in the Windows box for years, it seems like a 'no brainer' for servers. Servers usually run for years, and Stuff Happens over the years [1]. Most of the computing industry has been hell-bent on performance, yielding impressive gains (albeit with occasional setbacks: https://c

./build.sh -O ../obj tools producing error

2023-07-24 Thread Michael Cheponis
Hi, fresh download; /usr/src nonexistent, /usr/obj nonexistent # cd /usr # cvs checkout -A -P src # cd src # ./build.sh -O ../obj tools gives me: << stuff >> cc -o nbmake arch.o buf.o compat.o cond.o dir.o for.o hash.o job.o lst.o main.o make.o make_malloc.o meta.o metachar.o parse.o str.o suf

Transparent Page Placement

2023-06-14 Thread Michael Cheponis
TPP apparently improves 'hot' data locality with a low-overhead algorithm that has been implemented in mainstream Linux. https://cse.engin.umich.edu/stories/new-technique-for-memory-page-placement-integrated-into-linux-kernel

Re: How to use the 'ls' -M flag?

2023-05-27 Thread Michael Cheponis
o-op. On Fri, May 26, 2023 at 11:50 PM RVP wrote: > On Fri, 26 May 2023, Michael Cheponis wrote: > > > I'm having no success trying to get ls to print file sizes, using the -M > > flag. > > > > The `thousands separator' char. is locale-specific. In th

How to use the 'ls' -M flag?

2023-05-26 Thread Michael Cheponis
I'm having no success trying to get ls to print file sizes, using the -M flag. -MModifies the -l and -s options, causing the sizes or block counts reported to be separated with commas (or a locale appropriate separator) resulting in a more readable output. Over

Re: libc license

2023-02-10 Thread Michael Cheponis
I believe the font size of the printed documentation is not specified... I liked what Perry Metzger said about BSD vs 'other' licenses: "Instead of worrying that people are going to steal my code, with BSD, I *know* they will!" On Fri, Feb 10, 2023 at 10:55 AM r0ller wrote: > Hi All, > > Than

Re: Is this normal floppy behavior?

2023-01-05 Thread Michael Cheponis
899 free blocks 899 available 0 total files 224 free files 1810 filesys id msdos fstype 0x1000 flag255 filename length 0 owner 7 syncwrites 12 asyncwrites* -Mike On Thu, Jan 5, 2023 at 2:07 PM wrote: > &g

Re: Is this normal floppy behavior?

2023-01-05 Thread Michael Cheponis
u're in the directory you're trying to umount." Naturally, I 'should' know that "Device busy" means "hey dude! you're in the directory you're trying to umount." gosh. ;-) On Thu, Jan 5, 2023 at 1:33 PM Christian Groessler wrote: >

Re: Is this normal floppy behavior?

2023-01-05 Thread Michael Cheponis
gly, now, when I try to "umount" the filesystem: *# umount /a umount: /a: Device busy* This behavior seems incorrect. On Thu, Jan 5, 2023 at 5:26 AM Greg Troxel wrote: > Michael Cheponis writes: > > > There are a bunch of files on the floppy when mounted; I delete them all; &

Is this normal floppy behavior?

2023-01-04 Thread Michael Cheponis
There are a bunch of files on the floppy when mounted; I delete them all; but then, there is a large amount of 'used' space! unmounting + remounting 'fixes' this problem. *# mount_msdos /dev/sd2a /a* *# ls -l /atotal 2drwxr-xr-x 1 root wheel512

odd /dev/random behavior with dd ?

2023-01-04 Thread Michael Cheponis
Hi, 'dd' seems to behave different if the 'if' is /dev/random than if it is anything else, e.g. /dev/zero: *# sh # dd if=/dev/zero of=zero.out bs=65536 count=11+0 records in1+0 records out65536 bytes transferred in 0.001 secs (65536000 bytes/sec)# ls -l zero.out-rw-r--r--

Re: 'cd' if HOME is unset

2022-12-26 Thread Michael Cheponis
cases, directory does not change when HOME is not defined. On Mon, Dec 26, 2022 at 9:47 AM Robert Elz wrote: > Date:Sun, 25 Dec 2022 15:33:57 -0800 > From: Michael Cheponis > Message-ID: 5rw...@mail.gmail.com> > > | Maybe it should print "$H

Re: 'cd' if HOME is unset

2022-12-26 Thread Michael Cheponis
Maybe it should print "$HOME is not set" in that case? On Sun, Dec 25, 2022 at 2:52 PM Valery Ushakov wrote: > On Sat, Dec 24, 2022 at 22:32:22 -0500, Jan Schaumann wrote: > > > Robert Elz wrote: > > > Why bother? > > > > I happily admit that it's a rare edge case. I simply > > find it surpris

More floppy oddities

2022-11-16 Thread Michael Cheponis
# scsictl sd1 format /dev/rsd1: Check Condition on CDB: 1a 00 03 00 24 00 SENSE KEY: No Additional Sense ASC/ASCQ: No Additional Sense Information I don't know what that means. The console prints: [ 2207.9560928] sd1(umass1:0:0): medium error, data = 00 00 00 00 30 01 00 00 00 00 [ 2207.

Re: noob Question: How to format a floppy on a USB floppy disk drive (on RPi 4) ?

2022-11-16 Thread Michael Cheponis
Yes, the process for making a floppy useful to an OS is the same as any other computer media. The common "1.44" MB floppy is actually 2.0 MB (12 Mbits) worth of data. However, a controller chip (usually an NEC 765 or equivalent) is used to write certain patterns onto the diskette; for a standard 3

Re: noob Question: How to format a floppy on a USB floppy disk drive (on RPi 4) ?

2022-11-15 Thread Michael Cheponis
otal 1568 -rwxr-xr-x 1 root wheel 737280 Nov 15 08:06 f1* -rwxr-xr-x 1 root wheel 65536 Nov 16 00:00 f2* Thanks, again for any pointers / suggestions. On Mon, Nov 14, 2022 at 1:29 PM Michael van Elst wrote: > On Mon, Nov 14, 2022 at 09:33:07AM -0800, Michael Cheponis wrote: > >

Re: noob Question: How to format a floppy on a USB floppy disk drive (on RPi 4) ?

2022-11-14 Thread Michael Cheponis
*# scsictl sd1 format/dev/rsd1: device had unknown status 4* The dd trick seems to work only if the diskette is pre-formatted. great suggestions, thank you. I'll keep whacking at this. -Mike On Mon, Nov 14, 2022 at 9:11 AM Michael van Elst wrote: > michael.chepo...@gmail.com

noob Question: How to format a floppy on a USB floppy disk drive (on RPi 4) ?

2022-11-14 Thread Michael Cheponis
I would think 'fdformat' would work, but... *[ 1063553.609981] umass1 at uhub2 port 3 configuration 1 interface 0* *[ 1063553.612982] umass1: TEACV0.0 (0x0644) TEACV0.0 (0x), rev 1.10/2.00, addr 3* *[ 1063553.620984] umass1: using UFI over CBI with CCI* *[ 1063553.621985] atapibus0 at umass1:

Re: Bug in NetBSD grep ?

2022-08-16 Thread Michael Cheponis
On arm64 / RPi 4 9.99.96 this gives "00:00:" as expected. I know this is quite ancient (April '22 version of -current). On Tue, Aug 16, 2022 at 1:41 PM Marc Baudoin wrote: > Hi, > > The following command-line: > > echo 00:00: | grep -E '^([0]{2}[:-]){2}$' > > doesn't print anything on NetBSD

A book seems to be missing here...

2022-08-10 Thread Michael Cheponis
Was looking at no-starch press, and saw these 2 books: http://culver.net/NetBSD/no-starch.jpg And I realized, you know, there seems to be a 'missing' book --- I see only Absolute FreeBSD and Absolute OpenBSD. Is there any status on a "NetBSD Book" ? Or is this pretty much it: http://www.netbs

Re: Release

2021-12-16 Thread Michael Cheponis
The last "Danger" smartphone -- some say still the very best smartphone for its time -- used NetBSD under the hood. It was really fast and responsive, small, easy to fit onto the processor -- all from a buddy of mine who worked at Danger in SW. Danger did the App SW, which was also very good. Bu

Re: Install on Pi3

2021-09-16 Thread Michael Cheponis
James, 2 quick suggestions: 1) Use evbarm 32-bittry this http://www.armbsd.org/arm/ or nyftp 2) For day-to-day use, you really want to boot/use USB. I have a 128G USB stick, and no uSD card. I have been burned too many times, even with quality uSD cards. They're OK to boot with, and in fac

Re: Running docker containers with podman (on NetBSD!)

2021-09-05 Thread Michael Cheponis
Perhaps not on-topic, but... I put the "options HZ=1000" into my RPi config (as Alistair suggests, it's GENERIC64 plus this one extra options line) and now *$ sysctl kern.clockrate* *kern.clockrate: tick = 1000, tickadj = 4, hz = 1000, profhz = 1000, stathz = 1000* the whole "UI" feels more resp

libm rounding accuracy?

2021-08-26 Thread Michael Cheponis
https://blog.sigplan.org/2021/08/26/high-performance-correctly-rounded-math-libraries-for-32-bit-floating-point-representations/ describes "RLibm" that correctly rounds 32-bit results for many common math/trig functions, and compares their library to glibc and Intel. It's interesting that the 32-

Re: MPV results

2021-07-25 Thread Michael Cheponis
VLC on non-NetBSD machines sometimes operates this way (stuttering / freezing) so much so that I now use AnyDVD on Windows, which seems to have taken the VLC codebase and fixed lots of things. By the way, an excellent intro to digital video is https://xiph.org/video/ Episode 1. On Sun, Jul 25, 20

Re: Compiling NetBSD-HEAD kernel sources

2021-06-29 Thread Michael Cheponis
I, too, have started w/GENERIC and commented out h/w I don't have; these days, I don't bother, because we have plenty of memory & disk (relatively on modern machines). AND, if you (can) stick w/GENERIC -- then you can compare against the Official Release if there are problems. Another reason I do

Re: possible new feature: unrm ?

2020-07-01 Thread Michael Cheponis
Regards, Malcolm I like the idea that every file is treated as if the FS were one, giant, VCS... On Wed, Jul 1, 2020 at 9:35 AM Hauke Fath wrote: > On 2020-07-01 18:25, Michael Cheponis wrote: > > I agree that backups are necessary, but who hasn't had a corrupted > backup? >

Re: possible new feature: unrm ?

2020-07-01 Thread Michael Cheponis
default? On Wed, Jul 1, 2020 at 2:42 AM Ottavio Caruso < ottavio2006-usenet2...@yahoo.com> wrote: > On Wed, 1 Jul 2020 at 01:18, Michael Cheponis > wrote: > > > > Have you ever done this: > > > > $ rm good-stuff > > $ echo oh noo\! > > >

possible new feature: unrm ?

2020-06-30 Thread Michael Cheponis
Have you ever done this: $ rm good-stuff $ echo oh noo\! because good-stuff is in the bitbucket of no return. unrm exists as a shell script: http://freshmeat.sourceforge.net/projects/unrm But, as the commenter says, it would be great to restore filenames and directories. TOPS-20 had this n

Re: cvs better than git?

2020-06-17 Thread Michael Cheponis
monoculture. I understand. I guess the real question is: is something broken? For pkgsrc-wip, for a bunch of reasons, they decided on git. If something's not broken otherwise, why change? That's legitimate, too. On Wed, Jun 17, 2020 at 12:03 PM Sad Clouds wrote: > On Wed, 17 Jun 2

Re: cvs better than git?

2020-06-17 Thread Michael Cheponis
Two points: 1) As much as folks (like me, Johnny) don't like it: git is THE most widely-used rcs in the world, by far; I consider it just a kind of annotated tar file. 2) git complexity (and user confusion) comes about due to the lack of conceptual integrity of the design / command structure.

Re: too many inodes?

2020-04-27 Thread Michael Cheponis
WRONG # Feels...hosed On Mon, Apr 27, 2020 at 12:17 PM Christos Zoulas wrote: > In article < > caoax04pbwg4p2cq31v0gz7mpza7bc-jrvc2fusdojl-wgof...@mail.gmail.com>, > Michael Cheponis wrote: > >-=-=-=-=-=- > > > >I plugged in a 10TB USB disk, was work

too many inodes?

2020-04-26 Thread Michael Cheponis
I plugged in a 10TB USB disk, was working fine, then today it got weird. *# ls /t>▒x4S▒▒XWе▒3▒▒Hj▒▒l▒▒gw,▒=▒&▒X▒▒צA▒▒▒B▒w l: Invalid argument* *# umount -f /t* *# fsck -f -tffs /dev/dk0** /dev/rdk0** File system is already clean** Last Mounted on /t** Phase 1 - Check Blocks and Sizest

Re: Hard Real-Time?

2020-04-19 Thread Michael Cheponis
t; you usually will get responses within a very short time. But again, that > is not what defines hard real time. > > If you get into a discussion with someone else, and that someone else > says Unix can't do hard real time, he is still correct, no matter how > much you fiddl

Re: Hard Real-Time?

2020-04-19 Thread Michael Cheponis
Thanks to all who contributed here, I'm learning a lot. As to what is 'real time' -- as you can probably tell by watching the video at the URL, the robots were dynamically stable - they had to react within a millisecond (Read sensors; do all control; storage of data for post-run analysis, run all

Hard Real-Time?

2020-04-15 Thread Michael Cheponis
Is there already a way to do "hard real time" on NetBSD? To me, "hard real time" means from an external pin going 'high' to the 1st instruction of my driver executing is on the order of (up to) 10 usec. Many eons ago, I did this on BSD4.3 VAX 785 and achieved < about 100 usec jitter. It was a R

Re: tutorial on how to use iic on raspberry pi?

2020-02-12 Thread Michael Cheponis
s not finding any i2c bus. On Wed, Feb 12, 2020 at 1:41 PM Michael van Elst wrote: > michael.chepo...@gmail.com (Michael Cheponis) writes: > > -rwxr-xr-x 1 root wheel 22630 Jun 16 2019 bcm2837-rpi-3-b-plus.dtb* > > > Raspberry Pi 3 Model B Plus Rev 1.3 - so I'm not sure whi

Re: tutorial on how to use iic on raspberry pi?

2020-02-12 Thread Michael Cheponis
two dtb files. They both seem to have i2c* entries. Thanks for all help. On Wed, Feb 12, 2020 at 12:01 AM Michael van Elst wrote: > michael.chepo...@gmail.com (Michael Cheponis) writes: > > >Hi all, I want to hook up a sensor using iic on an RPi. Is there a > >tutorial

tutorial on how to use iic on raspberry pi?

2020-02-11 Thread Michael Cheponis
Hi all, I want to hook up a sensor using iic on an RPi. Is there a tutorial somewhere on how to do this? Do I have to compile a specific config to enable iic because GENERIC doesn't? I tried this: *# i2cscan iic0 i2cscan: couldn't open iic0: Device not configured# i2cscan iic1

Re: netbsd-8 build distribution error

2018-10-22 Thread Michael Cheponis
Hi, it's great this is fixed. But, I do wonder: How is even possible to have something called "NetBSD mumble STABLE ..." not compile? Because, you know, not compiling is kinda Not Stable. It would seem to me some automatic check isn't working -- the one that guarantees buildability? On Sun, Oc

Re: Simple way to securely access remote machine that's behind a NAT?

2018-09-28 Thread Michael Cheponis
Thanks everybody for help. I really liked the .onion setup idea, but I ended up using openvpn. The documentation is very good, and the relevant page for me was: https://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html What is fantastic about openvpn is

Simple way to securely access remote machine that's behind a NAT?

2018-09-24 Thread Michael Cheponis
Hi, I have a (linux raspberry pi) that's remotely located and NATted in such a way that I cannot control that part of the infrastructure, although do have complete control of the machine otherwise (e.g. access to root). What I'd like to do is access it from my local NetBSD system (which does hav