frisco
May 7th, 2003, 14:03
Has anyone worked with firewire on OpenBSD? According to the IMPLEMENTATION file in the src, the drivers should work with PCI/Cardbus firewire cards, firewire on some Sony laptops, and firewire in some G3's.

I'm compiling a 3.3 kernel with firewire support and will try it out on x86 with a Belkin card and LaCie dvd-burner sometime tonight, hopefully.

frisco
May 9th, 2003, 12:20
The card was recognized and the drive i used was recognized too - i ended up testing a 40 gig drive in a firewire enclosure. disklabel, newfs and mount worked, but when i tried copying over a 400mb file the drive froze. Firewire on OpenBSD still isn't usable, but it's getting there.

|MiNi0n|
May 9th, 2003, 13:22
If I'm not mistaken, I think krusty gave firewire a go on FBSD to try and hook up to his iPod. It was unsuccessful but the reason for it escapes me right now, perhaps he'll enlighten us.

Keep us posted on any advances frisco... firewire opens a cornucopia of new possibilites!

frisco
May 9th, 2003, 13:40
If I'm not mistaken, I think krusty gave firewire a go on FBSD to try and hook up to his iPod. It was unsuccessful but the reason for it escapes me right now, perhaps he'll enlighten us.

My coworker set up firewire on FreeBSD 4.8-stable and was able to mount and use a drive via firewire. I think he even got the firewire dvd burner to work. I think that's all he tried, though.

Does the iPod have some sort of weird formatting or is it ntfs/fat32/hfs+ depending on what system you use?

cod3fr3ak
May 9th, 2003, 18:24
Hmm firewire. I wonder will OBSD ever support USB micro drives and such?

bsdjunkie
May 9th, 2003, 18:31
I wonder will OBSD ever support USB micro drives and such? USB drives should work fine afaik.

KrUsTy!
May 21st, 2003, 23:18
I gave the ipod a go on my FBSD 5.0 computer. I know that this is the OBSD area, but since I was prompted... :)

Firewire was pretty easy to get working, just compiled the devices into my kernel. It picked up my cheap firewire card no problem. I bought the card without even checking the compatabilty with FBSD because it was so cheap. I got lucky it would seem.

In my kernel config file;

# Firewire
device firewire
device sbp

sbp is the ipod device driver. Actually just the Firewire Hardrive driver that supports ipods... You also must have SCSI support in your kernel, all of which are there by default.

I have a windows ipod. So its fat32...

After a reboot it picks up my firewire card;

May 21 20:38:12 bigtime kernel: fwohci0: <VIA VT6306> port 0xa400-0xa47f mem 0xdb000000-0xdb0007ff irq 5 at device 10.0 on pci0
May 21 20:38:12 bigtime kernel: fwohci0: PCI bus latency was changing to 250.
May 21 20:38:12 bigtime kernel: fwohci0: OHCI version 1.0 (ROM=1)
May 21 20:38:12 bigtime kernel: fwohci0: No. of Isochronous channel is 8.
May 21 20:38:12 bigtime kernel: fwohci0: EUI64 00:11:06:00:00:00:41:66
May 21 20:38:12 bigtime kernel: fwohci0: Phy 1394a available S400, 3 ports.
May 21 20:38:12 bigtime kernel: fwohci0: Link S400, max_rec 2048 bytes.
May 21 20:38:12 bigtime kernel: firewire0: <IEEE1394(FireWire) bus> on fwohci0
May 21 20:38:12 bigtime kernel: sbp0: &lt;SBP2/SCSI over firewire&gt; on firewire0
May 21 20:38:12 bigtime kernel: fwohci0: BUS reset
May 21 20:38:12 bigtime kernel: fwohci0: node_id = 0xc800ffc0, CYCLEMASTER mode
May 21 20:38:12 bigtime kernel: firewire0: 1 nodes, maxhop &lt;= 0, cable IRM = 0 (me)


When the ipod is plugged in, seems to get picked up...

May 21 21:39:01 bigtime kernel: fwohci0: BUS reset
May 21 21:39:01 bigtime kernel: fwohci0: node_id = 0x8800ffc0, non CYCLEMASTER mode
May 21 21:39:01 bigtime kernel: firewire0: 2 nodes, maxhop &lt;= 1, cable IRM = 0 (me)
May 21 21:39:02 bigtime kernel: firewire0: New S400 device ID:000a270002056d7f
May 21 21:39:02 bigtime kernel: firewire0: Device SBP-II
May 21 21:39:02 bigtime kernel: da0 at sbp0 bus 0 target 0 lun 0
May 21 21:39:02 bigtime kernel: da0: &lt;Apple Co iPod 2700&gt; Removable Simplified Direct Access SCSI-2 device
May 21 21:39:02 bigtime kernel: da0: 50.000MB/s transfers
May 21 21:39:02 bigtime kernel: da0: 4775MB (9780750 512 byte sectors: 255H 63S/T 608C)
May 21 21:39:02 bigtime kernel: fwohci0: BUS reset
May 21 21:39:02 bigtime kernel: fwohci0: node_id = 0xc800ffc1, CYCLEMASTER mode
May 21 21:39:02 bigtime kernel: firewire0: 2 nodes, maxhop &lt;= 1, cable IRM = 1 (me)

Now of course is the question of how to use it! I thought I would just mount the device, it is afterall just a hard-drive. I thought I had it working once, but I was wrong...

mount_msdosfs /dev/da0 /ipod

This crashes the kernel...

May 21 21:54:47 bigtime kernel: Fatal trap 18: integer divide fault while in kernel mode
May 21 21:54:47 bigtime kernel: instruction pointer = 0x8:0xc0209549
May 21 21:54:47 bigtime kernel: stack pointer = 0x10:0xdd5a76c0
May 21 21:54:47 bigtime kernel: frame pointer = 0x10:0xdd5a7764
May 21 21:54:47 bigtime kernel: code segment = base 0x0, limit 0xfffff, type 0x1b
May 21 21:54:47 bigtime kernel: = DPL 0, pres 1, def32 1, gran 1
May 21 21:54:47 bigtime kernel: processor eflags = interrupt enabled, resume, IOPL = 0
May 21 21:54:47 bigtime kernel: current process = 907 (mount_msdosfs)
May 21 21:54:47 bigtime kernel: trap number = 18
May 21 21:54:47 bigtime kernel: panic: integer divide fault

Does anyone have any ideas for me? Has anyone tried this and had better results? Perhaps the mount is not the right command for this device? This is the only firewire device I have so I can't test something else to see if it works...

Does the iPod have some sort of weird formatting or is it ntfs/fat32/hfs+ depending on what system you use?

Yup, extactly. Windows ipods are fat32 and Mac ipods are hfs+.

I'm compiling a 3.3 kernel with firewire support and will try it out on x86 with a Belkin card and LaCie dvd-burner sometime tonight, hopefully.

Hey frisco, how did you make out with your firewire on OBSD 3.3? I'd be interested in knowing if you got it to work.

Edit- Duh, I'm blind! You posted how you got it to work in the second post in this thread. Interesting that OBSD froze and FBSD basically did the same thing. Although at least you got OBSD to mount, FBSD 5.0 didn't get that far.

{K}

KrUsTy!
May 22nd, 2003, 00:39
My coworker set up firewire on FreeBSD 4.8-stable and was able to mount and use a drive via firewire. I think he even got the firewire dvd burner to work. I think that's all he tried, though.


Any chance you could get your co-worker to post on SE about what he did to get a drive via firewire on FBSD to work? Perhaps that would help me out with my ipod problem....

Thanks!

{K}