Error » Hardware Error!! » Hardware tutorials » Connecting a Mac and a GNU/Linux Box with FireWire

Hardware tutorials All Knowledge Info and links to posted here

Post New Thread Reply
  Connecting a Mac and a GNU/Linux Box with FireWire
LinkBack Thread Tools Display Modes
Old 30-Dec-2006, 11:14 PM   #1 (permalink)
Administrator
 
Anilrgowda's Avatar

Posts: 18,703
Join Date: Jan 2006
Rep Power: 10 Anilrgowda is on a distinguished road

IM:
Default Connecting a Mac and a GNU/Linux Box with FireWire

With a 2.6 Linux kernel, particularly on a modern distribution with udev, it is quite easy to get FireWire to act as the physical network interface between a GNU/Linux box and a Mac. FireWire does have some advantages over USB in some areas, although support for FireWire is dwindling. For more information on FireWire see the wikipedia entry. We will focus on getting a GNU/Linux box ASAP that will accept a complete rsync of the root filesystem of a Mac over FireWire.

To start with, since support is dwindling, the standard kernels for Red Hat and Centos on the latest version don't support FireWire. Recompiling a Red Hat kernel is a possibility, but there is a special procedure and many patches to apply. We have done it, but other things break. For instance, if you use a standard kernel VMware works well. As soon as you change your kernel, VMware has trouble loading the vmnet and vmmon modules. There are workarounds, but it is a PITA. Because of this we run a standard kernel:


[root@sv-1 /]# uname -a
Linux sv-1.networking7by24.com 2.6.9-34.EL #1 Wed Mar 8 00:07:35
CST 2006 i686 i686 i386 GNU/Linux
[root@sv-1 /]#

One very easy way to get firewire running is to boot with a CentOS LiveCD kernel, available from here:


uname -a
Linux sv-1.networking7by24.com 2.6.9-34.19.EL.livecd.2 #1
Sat May 6 13:29:18 CDT 2006 i686 i686 i386 GNU/Linux
[root@sv-1 ~]#

After rebooting, load the eth1394 module:


insmod /lib/modules/2.6.9-34.19.EL.livecd.2/kernel/drivers/ieee1394/eth1394.ko

Look for the interface to show up with dmesg:


[root@sv-1 ~]# dmesg | grep eth2
divert: not allocating divert_blk for non-ethernet device eth2
eth1394: eth2: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
[root@sv-1 ~]#

Configure the interface with an IP address and subnet mask:


[root@sv-1 ~]# ifconfig eth2 10.50.1.1 netmask 255.255.255.0 up
[root@sv-1 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:07:E9:EE:18:AF
inet addr:10.50.100.1 Bcast:10.50.100.255 Mask:255.255.255.0
inet6 addr: fe80::207:e9ff:feee:18af/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:333 errors:0 dropped:0 overruns:0 frame:0
TX packets:234 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:31726 (30.9 KiB) TX bytes:33491 (32.7 KiB)
eth2 Link encap:UNSPEC HWaddr 00-02-3C-00-50-01-78-18-00-00-00-00-00-00-00-00
inet addr:10.50.1.1 Bcast:10.50.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8258 (8.0 KiB) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:588 (588.0 b) TX bytes:588 (588.0 b)
[root@sv-1 ~]#

On the Mac side, simply configure the FireWire port as a network port:



Check it out. An rsync of the Mac root filesystem clocks in at 1,679,401.25 bytes/sec with the z compression option:


srv-5:/Users/usr4 root# rsync -e 'ssh -p 22' -avz --delete --exclude=/dev
--exclude=/volumes / root@10.50.1.1:/mac/

The authenticity of host '10.50.1.1 (10.50.1.1)' can't be established.
RSA key fingerprint is e5:4b:a8:11:9b:5d:3f:a7:1c:44:07:c1:3d:24:e3:54.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.50.1.1' (RSA) to the list of known hosts.
root@10.50.1.1's password:
building file list ...
uilding file list ... done
./
.DS_Store
.Spotlight-V100/
.Spotlight-V100/.journalHistoryLog
.Spotlight-V100/.store.db
.Spotlight-V100/ContentIndex.db
.
.
.
usr/standalone/ppc/bootx.xcoff
var -> private/var
xcode_2.2.1_8g1165_018213632.dmg
sent 19434683867 bytes received 10263460 bytes 1679401.25 bytes/sec
total size is 28655889892 speedup is 1.47
rsync warning: some files vanished before they could be transferred
(code 24) at /SourceCache/rsync/rsync-24/rsync/main.c(717)
srv-5:/Users/usr4 root#

That is fast! The destination was a blank directory, so this is pure transfer.

Anilrgowda is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
   


   
Post New Thread Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 02:52 AM.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0

DMCA Policy

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228