Diff for /wikisrc/tutorials/how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn between versions 1.2 and 1.3

version 1.2, 2015/05/28 21:08:14 version 1.3, 2019/04/08 13:40:19
Line 132  Setup the various files in the exported  Line 132  Setup the various files in the exported 
   
     $ sudo nano hosts      $ sudo nano hosts
 <pre><code>  <pre><code>
 #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.1 2011/11/20 20:55:21 mspo Exp $  #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.2 2015/05/28 21:08:14 riastradh Exp $
 #  #
 # Host Database  # Host Database
 # This file should contain the addresses and aliases  # This file should contain the addresses and aliases
Line 184  telnet          stream  tcp6    nowait   Line 184  telnet          stream  tcp6    nowait  
 <pre><code>  <pre><code>
 $ sudo nano rc.conf  $ sudo nano rc.conf
   
 #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.1 2011/11/20 20:55:21 mspo Exp $  #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.2 2015/05/28 21:08:14 riastradh Exp $
 #  #
 # see rc.conf(5) for more information.  # see rc.conf(5) for more information.
 #  #
Line 215  net_interfaces="" Line 215  net_interfaces=""
 <pre><code>  <pre><code>
 $ sudo nano ttys  $ sudo nano ttys
   
 #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.1 2011/11/20 20:55:21 mspo Exp $  #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.2 2015/05/28 21:08:14 riastradh Exp $
 #  #
 #       from: @(#)ttys  5.1 (Berkeley) 4/17/89  #       from: @(#)ttys  5.1 (Berkeley) 4/17/89
 #  #
Line 543  Make sure you enter a password for the r Line 543  Make sure you enter a password for the r
   
 Slug's rc.conf:  Slug's rc.conf:
 <pre><code>  <pre><code>
 #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.1 2011/11/20 20:55:21 mspo Exp $  
 #  #
 # see rc.conf(5) for more information.  # see rc.conf(5) for more information.
 #  #
Line 570  sshd=YES Line 569  sshd=YES
 </code></pre>  </code></pre>
 Slug's ssh/sshd_config:  Slug's ssh/sshd_config:
 <pre><code>  <pre><code>
 #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.1 2011/11/20 20:55:21 mspo Exp $  #       $NetBSD: how_to_install_netbsd_on_the_linksys_nslu2___40__slug__41___without_a_serial_port__44___using_nfs_and_telnet.mdwn,v 1.2 2015/05/28 21:08:14 riastradh Exp $
 #       $OpenBSD: sshd_config,v 1.75 2007/03/19 01:01:29 djm Exp $  #       $OpenBSD: sshd_config,v 1.75 2007/03/19 01:01:29 djm Exp $
   
 # This is the sshd server system-wide configuration file.  See  # This is the sshd server system-wide configuration file.  See
Line 677  Get the NPE code from Intel, as above. S Line 676  Get the NPE code from Intel, as above. S
 ./build.sh -O ../obj -T ../tools -U -u -m evbarm-eb -V KERNEL_SETS=NSLU2_ALL release  ./build.sh -O ../obj -T ../tools -U -u -m evbarm-eb -V KERNEL_SETS=NSLU2_ALL release
   
 The files you'll need are now in *~/net/obj/releasedir/evbarm/binary/sets*.   The files you'll need are now in *~/net/obj/releasedir/evbarm/binary/sets*. 
   
   #To add USB audio support
   
   
   Create the kernel configuration file: 
       
       $ echo 'include "arch/evbarm/conf/NSLU2"' >NSLU2_AUDIO
       $ echo 'uaudio* at uhub? port ? configuration ?' >>NSLU2_AUDIO 
       $ echo 'audio* at uaudio?' >>NSLU2_AUDIO 
       $ echo 'config netbsd-aud-npe0 root on npe0 type nfs' >>NSLU2_AUDIO
       $ echo 'config netbsd-aud-sd0 root on sd0a type ffs' >>NSLU2_AUDIO
       $ echo 'config netbsd-aud-sd1 root on sd1a type ffs' >>NSLU2_AUDIO
       
   
   Build as described in the above link, except change the final build command line to: 
       
       $ ./build.sh -u -U -m evbarm -a armeb -V KERNEL_SETS=NSLU2_AUDIO release
       
   
   ##  Boot the kernel
   
   Use tftp to load the kernel as described in the link above. You should see the following lines (or something similar) in your dmesg or console output. The order of the lines may be slightly different. You may not see anything about "uhub3" unless you have an external hub. 
       
       uhub0 at usb1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1    
       uhub0: 2 ports with 2 removable, self powered                                   
       uhub1 at usb2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1    
       uhub1: 5 ports with 5 removable, self powered                                   
       uhub2 at usb0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1    
       uhub2: 3 ports with 3 removable, self powered                                   
       ehci0: handing over full speed device on port 1 to ohci0                        
       uaudio0 at uhub2 port 1 configuration 1 interface 0: C-Media INC. USB Sound Device, rev 1.10/0.10, addr 2                                                       
       uaudio0: audio rev 1.00                                                         
       audio0 at uaudio0: full duplex, independent                                     
       uhub3 at uhub1 port 2: vendor 0x0409 product 0x005a, class 9/0, rev 2.00/1.00, addr 2
       
   
   Note in particular the line that says "ehci0: handing over full speed device on port 1 to ohci0." The NetBSD USB ehci driver can not handle isochronous devices (required for audio), but the ohci driver can. Unfortunately, it also appears that NetBSD can not handle an attached hub with the ohci driver, so you can't plug the USB audio device into a hub - it must be plugged directly into one of the two USB ports on the back of the device. 
   
   ##  Add the device entry in /dev
   
   As root, enter the following: 
       
       # cd /dev
       # ./MAKEDEV audio
       
   
   You should now be able to play music to /dev/audio. If you want to play mp3 files, I recommend using _madplay_, which can be added using packages. 
   

Removed from v.1.2  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb