Re: Booting from a USB disk
from Vincent DEFERT <20@defert.com>: > I've tried to install NetBSD onto another disk and it worked, so I made > further investigations on the disk having the issue. > I turned out it had a remaining zfs_member signature somewhere, which I > only saw after trying to recreate its partition table with fdisk under > Linux. > Once cleaned, the installation worked fine and the only manual operation > needed is to check /etc/fstab, and fix it if needed. > I have also installed NetBSD on a server (Dell R610) previously running > FreeBSD. > The problem I had there is that NetBSD does not support EFI partition > sizes greater than 128 MB. > In this case also, I had to wipe the partition table, but I could do it > with NetBSD's gpt(8). > A conclusion of this episode is that NetBSD works well, but is bad at > wiping disks. ;) > Fortunately, this is only needed at installation. :) This is the first time I see anything about NetBSD not booting by UEFI if the EFI system partition > 128 MB. EFI system partition is activated before any OS is booted. I read through the NetBSD wiki about UEFI booting, but where do I find something more comprehensive? Tom
Re: Booting from a USB disk
On Mon, Apr 27, 2020 at 10:02:41PM +0200, Vincent DEFERT wrote: > The problem I had there is that NetBSD does not support EFI partition sizes > greater than 128 MB. Can you explain this? What exactly goes wrong? Martin
Re: too many inodes?
There is some progress. The trick is the -N flag to newfs, which shows plenty of super-block backups: S# newfs -N -O 2 dk0 /dev/rdk0: 9537535.0MB (19532871680 sectors) block size 16384, fragment size 2048 using 51572 cylinder groups of 184.94MB, 11836 blks, 22976 inodes. super-block backups (for fsck_ffs -b #) at: 160, 378912, 757664, 1136416, 1515168, 1893920, 2272672, 2651424, 3030176, 3408928, 3787680, 4166432, 4545184, 4923936, 5302688, 5681440, 6060192, 6438944, 6817696, ... But even here, for each super-block listed, I got this result (of course, the number was 160,378912, etc on the other attempts) # fsck_ffs -y -b 160 /dev/rdk0 ~ Alternate super block location: 160 ** /dev/rdk0 BAD SUPER BLOCK: MAGIC NUMBER WRONG # fsck_ffs -y -b 160 /dev/dk0 ~ Alternate super block location: 160 ** /dev/rdk0 BAD SUPER BLOCK: MAGIC NUMBER 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 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 Sizestoo many inodes > >18446744073214959280* > > > >Is the data gone that I've been loading onto it for the past several > weeks? > > Try using an alternative superblock. > > christos > >
Re: Booting from a USB disk
I've tried to install NetBSD onto another disk and it worked, so I made further investigations on the disk having the issue. I turned out it had a remaining zfs_member signature somewhere, which I only saw after trying to recreate its partition table with fdisk under Linux. Once cleaned, the installation worked fine and the only manual operation needed is to check /etc/fstab, and fix it if needed. I have also installed NetBSD on a server (Dell R610) previously running FreeBSD. The problem I had there is that NetBSD does not support EFI partition sizes greater than 128 MB. In this case also, I had to wipe the partition table, but I could do it with NetBSD's gpt(8). A conclusion of this episode is that NetBSD works well, but is bad at wiping disks. ;) Fortunately, this is only needed at installation. :) On 27/04/2020 09:14, Martin Husemann wrote: On Mon, Apr 27, 2020 at 08:53:16AM +0200, Vincent DEFERT wrote: No, I haven't changed anything else and no modules are listed in /boot.cfg. Is there any chance it worked due to a side-effect of not loading modules? Yes, and I am currently out of ideas what went wrong. I wonder if we should make the libsa version of "panic" wait for a key press on the console, so you have a chance to fully read the message. Martin
Re: too many inodes?
In article , Michael Cheponis wrote: >-=-=-=-=-=- > >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 Sizestoo many inodes >18446744073214959280* > >Is the data gone that I've been loading onto it for the past several weeks? Try using an alternative superblock. christos
Intel i915 garbage (slugginsh & choppy) video play back.
Hello: Intel Dual Core T9300, Intel Intel(R) GM45 gpu. this machine has a problem while playing video. I guess I don't have hardware acceleration. seeing Xorg log file I can say two drivers are loading specifically i965 and i915. under linux it always uses i915 and plays back beautifully even 1080p and 4k video without cpu spike or high memory usage. tried to specify sna and uxa as the acceleration method in xorg.conf nothing helped. dmesg shows i915drmkms0: interrupting at ioapic0 pin 16 (i915drmkms0) xorg log file: https://0bin.net/paste/roERxYmWXhheo9hY#wSd11VWmrKjd7YPzDaYakjPzvHRVVMgeVFpH2PFw5SS dmesg: https://0bin.net/paste/PppJCaDXvBmTzxFI#7Tp-GT/G86DaN9iP0jBe6pReCu6KFg9gfEWNDpANbB9 xvinfo & glxinfo https://0bin.net/paste/gnypx4kgNjbCxS5w#vFPac6KmlWdDVlnzzHUk7ZRpLTXv8pweAcElBC+2rcp > 63.473] (EE) intel(0): Failed to submit rendering commands (Input/output > error), disabling acceleration. html version: https://www.unitedbsd.com/d/179-problem-playing-videos-on-intel-video-card/ > Is it possible to solve this issue? > Thank You > J.B
Re: Asterisk video conferences using NetBSD?
> So close to getting everything work, yet so far... Would appreciate any > hints whatsoever. I haven't tried Asterisk [yet], but set up multiOS general public groups with party/conference audio + video. On MS & Linux & Android & FreeBSD, So far we've used Jitsi, Links to Jitsi & loads of competitors / asociated etc & this NetBSD thread all on my page http://berklix.org/meet/ Cheers -- Julian Stacey, Consultant Systems Engineer, BSD Linux http://berklix.com/jhs/ http://www.berklix.org/corona/#masks150 Euro fine or tie 2 handkerchiefs ? www.bbc.com/news/business-52304821 Brexit 31 Dec 2020 will further hit UK & EU
authentication scheme to share password between bozohttpd and asterisk
I have a separate thread going on to setup webrtc with asterisk on NetBSD8. I have an existing website that uses stock bozohttpd on NetBSD. It uses .htpasswd aka basic authentication. The passwords are stored using blowfish encryption. Whenever I open up use of sip/webrtc to users, as far as possible I don't want them to be bothered with yet another password and preferably not even ask to enter the same password when using the webrtc app. Firstly asterisk doesn't seem to support blowfish. It supports md5, which bozohttpd also does (I guess). So I may have to have all passwords reset once - which is not so good, but acceptable. That may solve the `no 2 passwords' requirement. But I'd prefer not to prompt for a password for asterisk if the user has reached the landing page of webrtc app with basic auth. That seems difficult, as browser will have to send the credentials to asterisk directly. [I can possibly have a separate asterisk password which I can return to the browser to let it send it to asterisk, but that may be somewhat insecure.] Mayuresh
Re: Asterisk video conferences using NetBSD?
On Mon, Apr 27, 2020 at 01:33:31PM +0500, Vitaly Shevtsov wrote: > Sorry for the late reply. I don't know if sipjs supports video > conference. I used it for p2p video call and that worked well. > Regarding to letsencypt, I've never used it, sorry. Never mind. I experimented with sipml5 and jssip, both support conference. Only (and big) problem I have now, when using jssip, is: When I enable audio codec and no video codec in asterisk: audio works perfectly fine. When I add a video codec, no matter I keep audio codec or not: only video works fine, no audio. Still struggling to find whether it's asterisk side problem or JS side. Suspecting it to be asterisk, but not getting any clue. Tried various codecs, watched the console messages - if codec is not compatible it reports, and taken care of using only the supported ones on the client. With sipml5 audio works fine, video never did, at least for me. Haven't tried sip.js. Seems a fork of jssip with some high end features which I don't need. So thought of sticking to jssip. Also sipml5 / jssip provided simple demo applications to get going, which helped. Didn't find such quick help with sipjs. So close to getting everything work, yet so far... Would appreciate any hints whatsoever. Mayuresh
Re: !Playing video on integrade intel graphic card
the full account and update logs and resources is located at: https://www.unitedbsd.com/d/179-problem-playing-videos-on-intel-video-card please advice on the subject. thank you J.B
Re: !Playing video on integrade intel graphic card
On 27/04/2020 10:22, John m0t wrote: Hi; Playing video on T9300 CPU and Intel integrated GPU causes choppy and sluggish video playback. This effect is that much worse that causes system hang and restart. Only mpv is able to play the video but mplayer just plays sound and vlc would segfault. > mpv Downloads/Saturday_Night_Live_S41E03_480p_HDTV_Hiva.mkv.part [mkv] mkv metadata beyond end of file - incomplete file? (+) Video --vid=1 (*) (h264 848x480 29.970fps) (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz) AO: [oss] 48000Hz stereo 2ch s32 VO: [gpu] 848x480 => 853x480 yuv420p AV: 00:00:00 / 01:05:33 (0%) A-V: -0.008 Dropped: 15 Well based on that output the inconsistent behaviour and crashing is reasonable. You are playing an incomplete file. If the file is being downloaded with a torrent tool that could also explain the choppy as there could be incomplete data at various points in the file. Although based on the .part extension I'm guessing its a web browser download. That doesn't mean there isn't a problem with the xorg video playback but it would be good to verify with a complete file. Mike
!Playing video on integrade intel graphic card
Hi; Playing video on T9300 CPU and Intel integrated GPU causes choppy and sluggish video playback. This effect is that much worse that causes system hang and restart. Only mpv is able to play the video but mplayer just plays sound and vlc would segfault. > mpv Downloads/Saturday_Night_Live_S41E03_480p_HDTV_Hiva.mkv.part [mkv] mkv metadata beyond end of file - incomplete file? (+) Video --vid=1 (*) (h264 848x480 29.970fps) (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz) AO: [oss] 48000Hz stereo 2ch s32 VO: [gpu] 848x480 => 853x480 yuv420p AV: 00:00:00 / 01:05:33 (0%) A-V: -0.008 Dropped: 15 Audio/Video desynchronisation detected! Possible reasons include too slow hardware, temporary CPU spikes, broken drivers, and broken files. Audio position will not match to the video (see A-V status field). i965: Failed to submit batchbuffer: Input/output error == here is the Xorg log file [ 50.410] X.Org X Server 1.20.5 X Protocol Version 11, Revision 0 [ 50.410] Build Operating System: NetBSD/amd64 9.0_STABLE - The NetBSD Foundation, Inc. [ 50.410] Current Operating System: NetBSD localhost 9.0_STABLE NetBSD 9.0_STABLE (GENERIC) #0: Sat Apr 25 10:53:48 UTC 2020 mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64 [ 50.411] Build Date: 03 March 2019 07:11:23AM [ 50.411] [ 50.411] Current version of pixman: 0.38.4 [ 50.411] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 50.411] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 50.411] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 27 13:37:43 2020 [ 50.412] (II) Loader magic: 0x1bca8ea20 [ 50.412] (II) Module ABI versions: [ 50.412] X.Org ANSI C Emulation: 0.4 [ 50.412] X.Org Video Driver: 24.0 [ 50.412] X.Org XInput driver : 24.1 [ 50.412] X.Org Server Extension : 10.0 [ 50.426] (--) PCI:*(0@0:2:0) 8086:2a42:1028:02aa rev 7, Mem @ 0xf6c0/4194304, 0xe000/268435456, I/O @ 0xefe8/8 [ 50.426] (--) PCI: (0@0:2:1) 8086:2a43:1028:02aa rev 7, Mem @ 0xf6b0/1048576 [ 50.426] (==) Using default built-in configuration (39 lines) [ 50.426] (==) --- Start of built-in configuration --- [ 50.426] Section "Device" [ 50.426] Identifier "Builtin Default intel Device 0" [ 50.426] Driver "intel" [ 50.426] EndSection [ 50.426] Section "Screen" [ 50.426] Identifier "Builtin Default intel Screen 0" [ 50.426] Device "Builtin Default intel Device 0" [ 50.426] EndSection [ 50.426] Section "Device" [ 50.426] Identifier "Builtin Default modesetting Device 0" [ 50.426] Driver "modesetting" [ 50.426] EndSection [ 50.426] Section "Screen" [ 50.426] Identifier "Builtin Default modesetting Screen 0" [ 50.426] Device "Builtin Default modesetting Device 0" [ 50.426] EndSection [ 50.426] Section "Device" [ 50.426] Identifier "Builtin Default vesa Device 0" [ 50.426] Driver "vesa" [ 50.426] EndSection [ 50.426] Section "Screen" [ 50.426] Identifier "Builtin Default vesa Screen 0" [ 50.426] Device "Builtin Default vesa Device 0" [ 50.426] EndSection [ 50.426] Section "Device" [ 50.426] Identifier "Builtin Default wsfb Device 0" [ 50.426] Driver "wsfb" [ 50.426] EndSection [ 50.426] Section "Screen" [ 50.426] Identifier "Builtin Default wsfb Screen 0" [ 50.426] Device "Builtin Default wsfb Device 0" [ 50.426] EndSection [ 50.426] Section "ServerLayout" [ 50.426] Identifier "Builtin Default Layout" [ 50.426] Screen "Builtin Default intel Screen 0" [ 50.426] Screen "Builtin Default modesetting Screen 0" [ 50.426] Screen "Builtin Default vesa Screen 0" [ 50.426] Screen "Builtin Default wsfb Screen 0" [ 50.426] EndSection [ 50.426] (==) --- End of built-in configuration --- [ 50.426] (==) ServerLayout "Builtin Default Layout" [ 50.426] (**) |-->Screen "Builtin Default intel Screen 0" (0) [ 50.426] (**) | |-->Monitor "" [ 50.427] (**) | |-->Device "Builtin Default intel Device 0" [ 50.427] (==) No monitor specified for screen "Builtin Default intel Screen 0". Using a default monitor configuration. [ 50.427] (**) |-->Screen "Builtin Default modesetting Screen 0" (1) [ 50.427] (**) | |-->Monitor "" [ 50.427] (**) | |-->Device "Builtin Default modesetting Device 0" [ 50.427] (==) No monitor specified for screen "Builtin Default modesetting Screen 0". Using a default monitor configuration. [ 50.427]
Re: Asterisk video conferences using NetBSD?
Hello! Sorry for the late reply. I don't know if sipjs supports video conference. I used it for p2p video call and that worked well. Regarding to letsencypt, I've never used it, sorry. On Thu, Apr 23, 2020 at 2:48 PM Mayuresh wrote: > > On Wed, Apr 22, 2020 at 11:50:21PM +0500, Vitaly Shevtsov wrote: > > I used asterisk and both firefox and chromium browser with WebRTC > > through sipjs as a client phones. Worked perfectly. But I used Linux > > browsers were run under Linux so I don't know if webrtc works at all > > on NetBSD. > > That's fine. My server is NetBSD. Clients would be phones or Windows. > > Does sipjs support video conference calls? > > Mayuresh
Re: Booting from a USB disk
On Mon, Apr 27, 2020 at 08:53:16AM +0200, Vincent DEFERT wrote: > No, I haven't changed anything else and no modules are listed in /boot.cfg. > > Is there any chance it worked due to a side-effect of not loading modules? Yes, and I am currently out of ideas what went wrong. I wonder if we should make the libsa version of "panic" wait for a key press on the console, so you have a chance to fully read the message. Martin
Re: Booting from a USB disk
No, I haven't changed anything else and no modules are listed in /boot.cfg. Is there any chance it worked due to a side-effect of not loading modules? I have previously tried: installboot /dev/rsd0a /usr/mdec/bootxx_ffsv2 (i.e. without the '-o modules') but it still had the 'Heap full' error. On 27/04/2020 06:53, Martin Husemann wrote: On Sun, Apr 26, 2020 at 10:23:03PM +0200, Vincent DEFERT wrote: Here is the output of modstat in single user mode: NAME CLASS SOURCE FLAG REFS SIZE REQUIRES aac driver builtin - 1 - pci So no modules loaded - and the installboot change was the only thing that you changed? Are there any modules listed in your /boot.cfg? Something (and I have no clue what that could be) must have tried to load modules, which then failed with the out of memory message. Now you have inhibited module loading and it works. However, nothing in a default install should cause modules to be loaded this early (AFICT). Martin