All of lore.kernel.org
 help / color / mirror / Atom feed
From: Erik Andersen <andersen@codepoet.org>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linksys WRT54G and the GPL
Date: Sun, 8 Jun 2003 17:35:46 -0600	[thread overview]
Message-ID: <20030608233546.GA11064@codepoet.org> (raw)

On Sat, 7 Jun 2003 21:53:14 -0600, Erik Andersen wrote:
> I went through a similar exercise several weeks ago when I saw
> the thread on the l-k mailing list.  It took just a fix minutes
> to extract the linux kernel and cramfs filesystem from their
> firmware.  Linksys is indeed shipping BusyBox and the Linux

BTW, this is what I did to open up the Linksys rom...

    #!/bin/sh

    wget ftp://ftp.linksys.com/pub/network/WRT54G_1.02.1_US_code.bin

    # I noticed a GZIP signature for a file name "piggy" at offset
    # 60 bytes from the start, suggesting we have a compressed Linux
    # kernel
    dd if=WRT54G_1.02.1_US_code.bin bs=60 skip=1 | zcat > kernel

    # Noticed there was a cramfs magic signature (bytes 45 3D CD 28
    followed shortly by "Compressed ROMFS") at offset 786464
    dd if=WRT54G_1.02.1_US_code.bin of=cramfs.image bs=786464 skip=1
    file cramfs.image

    sudo mount -o loop,ro -t cramfs ./cramfs.image /mnt 
    ls -la /mnt/bin
    file /mnt/bin/busybox
    strings /mnt/bin/busybox | grep BusyBox
    # Use uClibc's ldd to get useful answers for non-x86 binaries
    /usr/i386-linux-uclibc/bin/i386-uclibc-ldd /mnt/bin/busybox

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--

             reply	other threads:[~2003-06-08 23:22 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-08 23:35 Erik Andersen [this message]
2003-06-09  0:09 ` Linksys WRT54G and the GPL Paul Jakma
2003-06-09  1:11   ` Erik Andersen
  -- strict thread matches above, loose matches on Subject: below --
2021-01-17 17:51 nipponmail
2003-07-18 23:48 root
2003-06-10  4:11 Russ Dill
2003-06-09 13:13 Downing, Thomas
2003-06-09 16:49 ` Martin List-Petersen
2003-06-09  3:47 Russ Dill
2003-06-09  8:04 ` Russell King
2003-06-09  0:05 Erik Andersen
2003-06-09  3:39 ` John Shifflett
2003-06-09 18:26   ` Alan Cox
2003-06-08 23:25 Hakan Lennestal
2003-06-08 23:55 ` Martin List-Petersen
2003-06-09  8:47   ` Hakan Lennestal
2003-06-08 20:57 Peter Westwood
2003-06-08 21:52 ` Russell King
2003-06-08 23:18 ` bill-linuxkernel20030609
2003-06-09  0:19 ` Oliver M. Bolzer
2003-06-09  0:31   ` Jeff
2003-06-10 20:43   ` Michael Neuffer
2003-06-08 20:41 greendisease
2003-06-08 21:08 ` Davide Libenzi
2003-06-08 21:23   ` Jack Aboutboul
2003-06-08 21:50   ` Russell King
2003-06-08 22:48     ` Davide Libenzi
2003-06-08  3:53 Erik Andersen
2003-06-08 10:08 ` Henning P. Schmiedehausen
2003-06-08 12:01   ` Christian Ullrich
2003-06-08 13:52     ` Dr. David Alan Gilbert
2003-06-08 14:05       ` Marcus Metzler
2003-06-08 16:49       ` Adrian Bunk
2003-06-08 17:00         ` Dr. David Alan Gilbert
2003-06-08  3:13 Brad Chapman
2003-06-08 16:35 ` Davide Libenzi
2003-06-08  2:41 Andrew Miklas
2003-06-08 11:54 ` Dave Jones
2003-06-08 14:23   ` Alan Cox
2003-06-08 18:13   ` uaca
2003-06-08 19:44 ` Colm MacCárthaigh
2003-06-08 20:14   ` Jörn Engel
2003-06-08 21:47   ` Russell King
2003-06-09 22:37   ` Daniel Phillips
2003-06-10 22:47     ` Andrew Miklas
2003-06-11 12:42       ` Alan Cox
2003-06-11 14:28       ` Kent Borg
2003-06-09  5:22 ` Frank Cusack
     [not found]   ` <20030609053010$504e@gated-at.bofh.it>
2003-06-09  8:28     ` Florian Weimer
2003-06-09 14:09   ` Horst von Brand
2003-06-09 18:23   ` Alan Cox
2003-06-09 21:33     ` Adrian Bunk
2003-06-09 21:50       ` David Schwartz
2003-06-09 22:21         ` Adrian Bunk
2003-06-10 20:17           ` Randolph Bentson
2003-06-11 15:38             ` Adrian Bunk
2003-06-11 17:39               ` Randolph Bentson
2003-06-11 19:22                 ` Adrian Bunk
2003-06-11 20:12                   ` David Schwartz
2003-06-09  5:32 ` David Schwartz
2003-06-09  5:47   ` Frank Cusack
2003-06-09 16:53     ` David Schwartz
2003-06-09 18:25     ` Alan Cox
2003-06-09 21:37     ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030608233546.GA11064@codepoet.org \
    --to=andersen@codepoet.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.