DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 15th March 2012
AnilG AnilG is offline
Real Name: Anil Gee
Port Guard
 
Join Date: Sep 2010
Location: Sydney Australia
Posts: 20
Thanked 0 Times in 0 Posts
Question How to build upgt firmware

I think I just need to know how to build the upgt firmware. I'm not finding anything anywhere on this, except my own posts from release 8.2!

upgt is a wireless usb stick driver and as of release 9.0 is now included loaded in the GENERIC kernel, but it requires firmware.

The firmware is available from a location but it seems to be broken: the filename for the firmware is sometimes called
Code:
upgt-firmware-2.13.1.0.tar.gz
and sometimes called
Code:
upgt-fw-2.13.1.0.tar.gz
. Spot the difference?

Moreover, inspecting the contents it is internally inconsistent, and also specifies the wrong total size in bytes.

I unpacked it, re-packed it with consistent name, and adjusted the checksum to match and tried a manual make. It then goes and tries to install a file that's just not present in the zip.

Also, wierdly, making the build attempts to retrieve itself from
Code:
/usr/ports/distfiles
and if not found or checksum fails attempts to retrieve self from network. So you have to provide the zip in distfiles when you run the build!

Are there TWO files, one called firmware and one called fw? Or is it completely broken? How are you supposed to build this? Can anyone help? Thanks very much.
Reply With Quote
  #2   (View Single Post)  
Old 15th March 2012
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,074
Thanked 198 Times in 156 Posts
Default

upgt-firmware-2.13.1.0.tar.gz is the port, and upgt-fw-2.13.1.0.tar.gz is the distfile for the port (i.e. the source).

utgp(4) lists the following URL on FreeBSD 9.0-RELEASE:
http://weongyo.org/project/upgt/upgt-firmware-2.13.1.0.tar.gz

The manapage incorrectly says this is a package to be added with pkg_add, this is not true, this is a port, so you'll need to extract & build it, which seems to work fine for me.

Code:
[~]# fetch http://weongyo.org/project/upgt/upgt-firmware-2.13.1.0.tar.gz
upgt-firmware-2.13.1.0.tar.gz                 100% of 1345  B 2128 kBps

[~]# tar xf upgt-firmware-2.13.1.0.tar.gz 

[~]# cd upgt-firmware-2.13.1.0/

[~/upgt-firmware-2.13.1.0]# make
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Extracting for upgt-firmware-kmod-2.13.1.0_1
=> SHA256 Checksum OK for upgt-fw-2.13.1.0.tar.gz.
===>  Patching for upgt-firmware-kmod-2.13.1.0_1
===>  Configuring for upgt-firmware-kmod-2.13.1.0_1
===>  Building for upgt-firmware-kmod-2.13.1.0_1
[...output snipped...]
[~/upgt-firmware-2.13.1.0]#
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #3   (View Single Post)  
Old 20th March 2012
AnilG AnilG is offline
Real Name: Anil Gee
Port Guard
 
Join Date: Sep 2010
Location: Sydney Australia
Posts: 20
Thanked 0 Times in 0 Posts
Default

Thanks Carpetsmoker. I see that there are two files now. However, my build looks for fw and since it's not there tries to download but there's no network, that's why I need it. Catch 22.
So I:
Put the fw zip in /usr/ports/distfiles
Put the other zip, probably anywhere, but I unpacked it in /usr/src/sys/modules/usb/upgtfw/
Then in that directory, "make" and "make install".
Since in release 9.0 everything else is pre-loaded in kernel I'd like to do the same with upgtfw but "device upgtfw" is rejected in the kernel conf file. There are other "device ****fw" lines but it doesn't work in this case.
So to load it dynamically at boot use /boot/loader.conf and add this line: upgtfw_load="YES"
Then reboot. USB wireless stick should be recognised properly.
Now you can use what you paid for.
Thanks to all those that made this possible.
Reply With Quote
Reply

Tags
driver, firmware, upgt, wireless

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
iwn0: fatal firmware error tehsean OpenBSD General 7 5th October 2010 03:10 PM
It's necesary to use firmware configuring rum or zyd? ximo FreeBSD General 7 8th July 2009 10:05 AM
wpi firmware Intel eula plouk NetBSD General 7 4th July 2009 04:14 AM
How do I manually load firmware in OpenBSD? Shagbag OpenBSD Packages and Ports 3 18th September 2008 08:37 PM
location for wpi-firmware-.tgz bsdnewbie999 OpenBSD General 1 18th June 2008 04:20 AM


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick