View previous topic :: View next topic |
Author |
Message |
VisualPhoenix Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Sep 2002 Posts: 135 Location: (CT v NJ)
|
Posted: Thu Aug 07, 2003 4:04 am Post subject: Get a Mac IPod to work on x86 w/ native HFS+ support |
|
|
Ok guys... so until I get my ipod fixed and functional sometime tomorrow I'll let you all know exactly what I did to get it working...
Step 1: Code: | emerge sys-kernel/pfeifer-sources/pfeifer-sources-2.4.20.1_pre12.ebuild |
Step 2 : Code: | download patches-2.4.21-pfeifer-r1_pre4.tar.bz2 |
Step 3: Code: | un-Bzip patches-2.4.21-pfeifer-r1_pre4.tar.bz2 and copy out the 017_hfsplus patch |
Step 4 : Code: | Download http://www.ardistech.com/hfsplus/hfsplus-20030702.tar.gz |
Step 5: Code: | Untar hfsplus-20030702.tar.gz |
Step 6: Code: | Copy hfsplus-20030702/hfsplus/* files to /usr/src/linux-2.4.20-pfeifer-r1_pre12 |
Step 7: Code: | patch -p1 -d ../location/of/hfsplus_patch/017_hfsplus < /usr/src/linux-2.4.20-pfeifer-r1_pre12 |
Step 8 : Code: | cd /usr/src/linux-2.4.20-pfeifer-r1_pre12/fs/hfsplus |
Step 9 : Code: | nano -w inode.c
line 89 of inode.c:
-if (PageActive(node->page[i])) {
+if (PageActiveAnon(node->page[i])) {
|
Step 10 : Code: | cd /usr/src/linux-2.4.20-pfeifer-r1_pre12/kernel/ |
Step 11: Code: | nano -w ksyms.c
between line 280 and 281 of kernel/ksyms.c:
EXPORT_SYMBOL(set_page_dirty);
+EXPORT_SYMBOL(mark_page_accessed);
EXPORT_SYMBOL(vfs_readlink);
|
Step 12:
Step 13 :
Step 14 : Code: | ln -s /usr/src/linux-2.4.20-pfeifer-r1_pre12 linux |
Step 15 : Code: | Build kernel with File Systems>HFSPLUS built as a module |
Step 16 : Code: | Enable Mac Parition Support in File Systems>Partition Types>Mac Partition Support |
Step 17 :
Step 18 : Code: | make dep && make clean bzImage modules modules_install |
Step 19 :
Step 20 : Code: | cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinux-pfeifer-2.4.20 |
Step 21 : Code: | nano -w /etc/lilo.conf |
Step 22 : Code: | Add necessary lines for new kernel
MINE looks like:
# Linux bootable partition config begins
image = /boot/vmlinuz-pfeifer-2.4.20-pre12
initrd = /boot/initrd-pfeifer-2.4.20-pre12.gz
root = /dev/sda3
label = Pfeifer-2.4.20
read-only # read-only for checking
# #root = /devices/discs/disc0/part3
|
Step 23:
Step 24: Code: | REBOOT AND GOOD LUCK! |
[/code]
NOTE!!!! WARNINGS!!!! It is important you do the following each time you wish to mount or unmount your ipod!!!! NOTE!!!! WARNINGS!!!!
I make a dumb little script that does the following (I KNOW THIS CAN BE REVISED TO BE BETTER!!):
FILE: mount_ipod.sh
Code: |
echo "Cleaning up modules if they are running..."
rmmod sbp2
rmmod ohci1394
rmmod ieee1394
rmmod hfsplus
echo "Now mounting the IPOD... I hope its plugged in... You have 5 seconds."
sleep 1
modprobe hfsplus
sleep 4
modprobe ieee1394
sleep 5
modprobe ohci1394
sleep 10
mount /mnt/ipod
|
FILE: umount_ipod.sh
Code: |
echo "Unmounting Ipod"
umount /mnt/ipod
sleep 4
rmmod sbp2
sleep 4
rmmod ohci1394
sleep 4
rmmod ieee1394
|
IT IS IMPORTANT TO NOTE THAT ALL IEEE1394 DRIVERS MUST BE REMOVED BEFORE CONNECTING YOUR IPOD!
actually, the real kicker is ochi1394 -- i find that it crashes quite a bit if you only rmmod sbp2, remove the ipod, and expect it to act alright when you put it back in... As a precaution I suggest unloading all ieee1394 drivers before pluging in your ipod, then modprobing them -- and for unmounting, unmounting the drive, removing all modules, THEN unplugging the IPod.
GOOD LUCK AND HAPPY TESTING!
Last edited by VisualPhoenix on Thu Aug 07, 2003 4:07 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
VisualPhoenix Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Sep 2002 Posts: 135 Location: (CT v NJ)
|
Posted: Thu Aug 07, 2003 4:05 am Post subject: |
|
|
Also note that pfeifer-sources-2.4.21.1_pre4.ebuild has hfsplus support pre-built into the kernel... This guide is for people like me who want 2.4.20 support. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
VisualPhoenix Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Sep 2002 Posts: 135 Location: (CT v NJ)
|
Posted: Thu Aug 07, 2003 4:33 am Post subject: |
|
|
That reminds me... If doing
Code: | mount -t hfsplus /dev/sdXx /mnt/ipod |
returns errors about a bad superblock it is possible to correct it however i'm working on getting patches for the mac version of fsck and testing it...
WHATEVER YOU DO IF IT SAYS THAT YOU FAILED TO UNMOUNT THE IPOD AND TO RUN FSCK ON THE DRIVE DO NOT
I REPEAT
DO NOT RUN THE FOLLOWING COMMANDS!
WARNING DO NOT RUN Code: | mount -nw -t hfsplus -o remount /dev/sdXx |
WARNING DO NOT RUN Code: | mount -t hfsplus -force /dev/sdXx |
DO NOT INSTALL Code: | emerge hfsplusutils |
HFSPLUSUTILS can TANK your drive... IF you emerge it ONLY use it if you believe you have corrupted the superblock and want to try in desperation to back up your system. Its dubious that you will have success |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Kihaji Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 12 Sep 2002 Posts: 230
|
Posted: Thu Aug 07, 2003 6:30 am Post subject: |
|
|
Don't forget, for ease of use the difference between a Mac Ipod and a Windows Ipod is just a format away. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
VisualPhoenix Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 26 Sep 2002 Posts: 135 Location: (CT v NJ)
|
Posted: Thu Aug 07, 2003 2:01 pm Post subject: |
|
|
true -- however apple users get newer firmware updates ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
jerry arns Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 13 Dec 2003 Posts: 95 Location: France
|
Posted: Sun Apr 04, 2004 6:10 pm Post subject: |
|
|
Just a note to say that kernel 2.6.1 as HFS+ support and that there is no need to patch the kernel anymore.
I have a gentoo ppc on a iBook, and use my HFS+ iPod 15Gig with gtkpod and it works very well. _________________ Left handed, right minded. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
uglyman Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/226139533e712ba6d08ff.jpg)
Joined: 21 Apr 2002 Posts: 216 Location: Seattle, WA USA
|
Posted: Tue Dec 28, 2004 4:34 pm Post subject: |
|
|
Quote: | WARNING DO NOT RUN
Code:
mount -nw -t hfsplus -o remount /dev/sdXx
WARNING DO NOT RUN
Code:
mount -t hfsplus -force /dev/sdXx
DO NOT INSTALL
Code:
emerge hfsplusutils
|
Hi I am trying to get my new ipod working with hfs+. I agree whole heartedly with the above mentioned advice, as I have screwed up my ipod several times with hfsplusutils this week. but my question is, if we get that error about cleanly unmounting.... what SHOULD we do? I am using the hfsplus support in the 2.6.9 (I think, I am at work now though) kernel. It seems that some people dont have the problem every time like I do and I am wondering if it is because I am using USB instead of firewire (gonna get a firewire card this week). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
uglyman Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/226139533e712ba6d08ff.jpg)
Joined: 21 Apr 2002 Posts: 216 Location: Seattle, WA USA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
uglyman Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/226139533e712ba6d08ff.jpg)
Joined: 21 Apr 2002 Posts: 216 Location: Seattle, WA USA
|
Posted: Wed Dec 29, 2004 3:41 am Post subject: |
|
|
working great so far!.... hope I am not speaking too soon. ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|