From owner-freebsd-questions@FreeBSD.ORG Wed May 20 21:59:16 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DA244EE4 for ; Wed, 20 May 2015 21:59:15 +0000 (UTC) Received: from it2pimp.be (www.it2pimp.be [94.23.214.30]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7F8481C91 for ; Wed, 20 May 2015 21:59:14 +0000 (UTC) Received: from hephaestus (ion [81.82.195.181]) by it2pimp.be (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id t4KLsQC8021026 for ; Wed, 20 May 2015 23:54:27 +0200 Message-ID: <1432158865.12990.5.camel@belgoline.com> Subject: NanoBSD: issue including firmware for ral driver in image From: Buzz Zaman To: freebsd-questions@freebsd.org Date: Wed, 20 May 2015 23:54:25 +0200 Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.11 (3.12.11-1.fc21) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.6 at www.it2pimp.be X-Virus-Status: Clean X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 21:59:16 -0000 Hi all, With my current NanoBSD build I'm not able to bring up the ral0 interface. Instead I get the following: ... rt2561sfw: could not load firmware image, error 2 ral0: rt2661_load_microcode: unable to retrieve firmware image rt2561sfw ral0: rt2661_init_locked: could not load 8051 microcode, error 22 I figured out that I need the firmware for the device which I hoped accomplishing with including the firmware, ral and ralfw modules in my nanobsd.conf (included at the end). However this leads to the kernel failing to install, more specifically I get the following error ===> ral (install) install -o root -g wheel -m 555 if_ral.ko /usr/obj/nanobsd.nano//_.w/boot/kernel install -o root -g wheel -m 555 if_ral.ko.symbols /usr/obj/nanobsd.nano//_.w/boot/kernel ===> ralfw (install) ===> ralfw/rt2561 (install) install -o root -g wheel -m 555 rt2561fw.ko /usr/obj/nanobsd.nano//_.w/boot/kernel install: rt2561fw.ko: No such file or directory *** Error code 71 I'm working with 10.1-RELEASE. I googled around but didn't find anything useful. I guess that this is basic FreeBSD module building stuff... but I don't see it. Apart from that I'm really impressed with NanoBSD, it's simply great! nanobsd.conf: NANO_NAME="nano" NANO_KERNEL=GENERIC NANO_ARCH=i386 TARGET_ARCH=i386; export TARGET_ARCH TARGET_CPUTYPE=i386; export TARGET_CPUTYPE NO_CLEAN=YES NANO_DRIVE=ad1 NANO_MEDIASIZE=1900000 NANO_CONFSIZE=40960 NANO_RAM_ETCSIZE=20480 NANO_RAM_TMPVARSIZE=102400 NANO_NEWFS="-m 0 -b 4096 -f 512 -i 8192 -O1" # NANO_PMAKE="make -j 8" NANO_PMAKE="${NANO_PMAKE} -DDB_FROM_SRC" NANO_MODULES="pf pflog if_bridge bridgestp netgraph/netgraph netgraph/ether netgraph/pppoe netgraph/socket wlan wlan_xauth wlan_tkip wlan_ccmp wlan_wep wlan_rssadapt firmware amdtemp bios wlan_amrr ral ralfw" # 0 -> Leave second image all zeroes so it compresses better. # 1 -> Initialize second image with a copy of the first NANO_INIT_IMG2=0 CONF_INSTALL=' WITHOUT_INSTALLLIB=yes WITHOUT_TOOLCHAIN=yes ' CONF_WORLD=' WITHOUT_ACCT=yes WITHOUT_ACPI=yes WITHOUT_AMD=yes WITHOUT_APM=yes WITHOUT_AT=yes WITHOUT_ATM=yes WITHOUT_AUDIT=yes WITHOUT_AUTHPF=yes WITHOUT_BLUETOOTH=yes WITHOUT_CALENDAR=yes WITHOUT_CDDL=yes WITHOUT_CTM=yes WITHOUT_CVS=yes WITHOUT_DICT=yes WITHOUT_EXAMPLES=yes WITHOUT_FDT=yes WITHOUT_FLOPPY=yes WITHOUT_FREEBSD_UPDATE=yes WITHOUT_GAMES=yes WITHOUT_GCOV=yes WITHOUT_GPIB=yes WITHOUT_GPIO=yes WITHOUT_INFO=yes WITHOUT_IPFILTER=yes WITHOUT_IPFW=yes WITHOUT_IPX=yes WITHOUT_JAIL=yes WITHOUT_LOCALES=yes WITHOUT_LOCATE=yes WITHOUT_LPR=yes WITHOUT_NDIS=yes WITHOUT_NIS=yes WITHOUT_NLS=yes WITHOUT_NLS_CATALOGS=yes WITHOUT_NS_CACHING=yes WITHOUT_PC_SYSINSTALL=yes WITHOUT_PORTSNAP=yes WITHOUT_PROFILE=yes WITHOUT_QUOTAS=yes WITHOUT_RCMDS=yes WITHOUT_RCS=yes WITHOUT_ROUTED=yes WITHOUT_SHAREDOCS=yes WITHOUT_SOURCELESS=yes WITHOUT_SYSINSTALL=yes WITHOUT_USB=yes WITHOUT_MAN=yes WITHOUT_MAN_UTILS=yes ' cust_local() { echo ' sshd_enable=YES ifconfig_re0="DHCP" ' >>${NANO_WORLDDIR}/etc/rc.conf } customize_cmd cust_pkg customize_cmd cust_comconsole customize_cmd cust_install_files customize_cmd cust_allow_ssh_root customize_cmd cust_local Thanks All, B