Carl Johnson on 18 Jun 2013 08:03:46 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] wget options to retrieve file from github


ahhhh gotcha'! ok, so it's not wget molesting the file, it's actually pulling the html formatting code down with the firmware code itself. got it. thanks for the help.


On Mon, Jun 17, 2013 at 6:22 PM, Russ Thompson <vigornj@gmail.com> wrote:
Carl,

In this case you need to pull from 'plain' as the default is a hex dump with some dynamically generated HTML to make the format viewable in a browser.

You can pull from this URL (modified to pull the raw/plain source)

http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/plain/bnx2/bnx2-mips-06-4.6.16.fw

- Russ



On Mon, Jun 17, 2013 at 5:50 PM, Carl Johnson <cjohnson19791979@gmail.com> wrote:
here's an example.....

bnx2-mips-09-6.2.1b.fw is an example of and binary file i pulled from git using git clone
bnx2-mips-09-6.2.1b.bad.fw is an example of the same file pulled using wget.

if you "head" each file you'll see what happened.

https://www.dropbox.com/sh/2jwx6qbp90429l9/B7Hiv3mCim





On Fri, Jun 14, 2013 at 1:53 PM, Douglas Muth <doug.muth@gmail.com> wrote:
On Fri, Jun 14, 2013 at 9:23 AM, Carl Johnson
<cjohnson19791979@gmail.com> wrote:
> would something like this apply to pulling binaries from git too? say if i
> wanted to get some udev fimware for example.
>
> http://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/tree/bnx2/bnx2-mips-09-6.2.1b.fw
>
> how would i go about using wget/curl/etc.. to pull it down without turning
> it into HTML? is there a way to do it without git-clone?
>

What do you mean by "without turning it into HTML"?  wget and curl are
pretty content (and content-type) agnostic.  They don't care what
you're downloading.  Can you give me an example?

-- Doug
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug



___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug


___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug