Skip to contentSkip to conversation

Linksys WRT54G and the GPL

DISCUSSION Erik Andersen 2 participants 3 messages Jun 8, 2003 – Jun 9, 2003

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Erik Andersen

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--

#1 lore raw
Quoted 1 line · Erik Andersen

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

interesting.. what do you make of:

	http://download.qlogic.com/sf/10215/fullimage_1.5.1.04.zip

which is the firmware that runs on QLogic SANBox2 2Gbit fibre-channel switches (Cyrix MediaGX iirc). Looking at strings it includes software such as glib (LGPL), Linux and GRUB.

QLogic did not answer my request for source to the (L)GPL parts of the firmware when i asked them.

Quoted 1 line

-Erik

regards,

Signature · 4 lines
Paul Jakma	[email protected]	[email protected]	Key ID: 64A2FF6A
	warning: do not ever send email to [email protected]
Fortune:
All I ask is a chance to prove that money can't make me happy.
#2 lore raw
Quoted 6 lines · Paul Jakma
Quoted 1 line · Erik Andersen

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

interesting.. what do you make of:

Quoted 8 lines
	http://download.qlogic.com/sf/10215/fullimage_1.5.1.04.zip

which is the firmware that runs on QLogic SANBox2 2Gbit fibre-channel switches (Cyrix MediaGX iirc). Looking at strings it includes software such as glib (LGPL), Linux and GRUB.

QLogic did not answer my request for source to the (L)GPL parts of the firmware when i asked them.

gzip magic at 0x4110 for a compressed 1.7 MB, i386, 2.4.18-xfs linux kernel

x86 boot sector with GRUB at 0xE3ACB6

gzip magic at 0xFA0E4 for file named "image" that contains a compressed 24 MB ext2 filesystem

gzip magic at 0x80D278 for a compressed 1.7 MB, i386, 2.4.18-xfs linux kernel (apparently a backup)

gzip magic at 0x90324Ci for a file name "fl_image" that also contains a compressed 24 MB ext2 filesystem

A quick look through their filesystem shows plenty of GPL'd stuff. Mostly looks lika RedHat ripoff, with a bunch of apparently proprietary junk under /itasca,

-Erik

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