From owner-freebsd-current Sun Oct 7 3:39: 4 2001 Delivered-To: freebsd-current@freebsd.org Received: from nasu.utsunomiya-u.ac.jp (nasu.utsunomiya-u.ac.jp [160.12.128.3]) by hub.freebsd.org (Postfix) with ESMTP id E94B137B403; Sun, 7 Oct 2001 03:38:49 -0700 (PDT) Received: from nantai.utsunomiya-u.ac.jp by nasu.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/26Jan01-1134AM) id f97Ack5109847; Sun, 7 Oct 2001 19:38:46 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp by nantai.utsunomiya-u.ac.jp (8.11.2/1.1.29.3/30Jan01-0241PM) id f97AckE102756; Sun, 7 Oct 2001 19:38:46 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (IDENT:LTYJOV/J2YnL9vQrQpxRylhiJ2deNwUq@zodiac.mech.utsunomiya-u.ac.jp [160.12.43.7]) by zodiac.mech.utsunomiya-u.ac.jp (8.9.3+3.2W/3.7W/zodiac-May2000) with ESMTP id TAA07886; Sun, 7 Oct 2001 19:48:40 +0900 (JST) Message-Id: <200110071048.TAA07886@zodiac.mech.utsunomiya-u.ac.jp> To: current@freebsd.org Cc: doc@freebsd.org, Giorgos Keramidas , yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Proposal: Replacement for VISUALUSERCONFIG (was: Re: Need to update man section 4!) In-reply-to: Your message of "Sun, 07 Oct 2001 15:13:36 JST." <200110070613.PAA06382@zodiac.mech.utsunomiya-u.ac.jp> References: <200110061018.TAA03313@zodiac.mech.utsunomiya-u.ac.jp> <20011006142219.A12443@hades.hell.gr> <200110070613.PAA06382@zodiac.mech.utsunomiya-u.ac.jp> Date: Sun, 07 Oct 2001 19:48:38 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG We can manipulate "device hints" and loader/kernel environment variables in /boot/device.hints by the "set/unset/show" commands in the boot loader(8). This corresponds to what we used to do in the USERCONFIG menu in the kernel. I think it may be a good idea to have "visual" (or friendly?) interface to manipulate the device hints (and other loader variables) in the boot loader, just like the VISUALUSERCONFIG front-end, for novice users and those who are not quite familiar with the boot loader commands. If we are to have this facility in the boot loader, we can get rid of USERCONFIG and VISUALUSERCONFIG from the kernel :-) I wrote an experimental patch to the boot loader. You can find it at: ftp://people.freebsd.org/~yokota/vuserconfig.tar.gz It includes: vuserconfig.diff patch for /sys/boot/common/Makefile.inc and /sys/boot/i386/libi386/vidconsole.c vuseconfig.c put this in /sys/boot/common hints.diff patch for /sys/i386/conf/GENERIC.hints (and /boot/device.hints) to add some descriptive strings for device drivers Rebuild the loader. Type "userconfig" at the loader prompt, then you will be in this VISUALUSERCONFIG-like front-end. Use TAB, ENTER, and cursor keys to navigate. Type 'Q' to quit, and you will be put back to the loader prompt. Some notes: - I don't intend to do everything in this front-end. It provides just a simple interface to set/reset/edit device hints and other variables. - This front-end is not an exact "clone" of VISUALUSERCONFIG. But the basic idea is the same. - Maybe I should have written this in Forth, rather than in C. But, I have almost nil knowledge of Forth. - One big drawback: this will bloat the boot loader and will consume precious disk space in kern.flp... *sigh* I welcome any comments, suggestions, and ideas. Thank you, Kazu In my previous post, I wrote: >Thank you for your comments. > >The User Config menu is completely disabled and isn't available >in -CURRENT now. > >I strongly doubt it will ever come back. You see, we can now >set/unset/edit device resource "hints" from the loader(8) prompt, >thus, there is little need to have the old User Config menu compiled >into the kernel. > >Please also have a look at my draft on the man page for device.hints(5). > >http://people.freebsd.org/~yokota/device.hints.5 > >The only thing which were available in the User Config, but is not in >the loader(8) is the "Visual" User Config option. > >But, I expect such visual front-end to edit the device resource hints >can be added to the loader, in one way or another. > >Kazu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message