This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9340 - patch for openBSD support for rbutilqt
Attached to Project:
Rockbox
Opened by Brian (empedocles) - Saturday, 30 August 2008, 21:25 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Saturday, 13 December 2008, 11:11 GMT+2
Opened by Brian (empedocles) - Saturday, 30 August 2008, 21:25 GMT+2
Last edited by Dominik Riebeling (bluebrother) - Saturday, 13 December 2008, 11:11 GMT+2
|
DetailsThe following patches will allow you to build rbutilqt on openBSD for use with the iPod Nano. I have not tested these patches on other BSD's, nor have I tested these patches with other mp3 players.
To compile, you will need: qt4 (remember to qmake4 instead of qmake) gmake rockbox dependencies: a patched version of ipodpatcher (posted earlier on here; currently, having some build issues with development changes to creative.c, so watch out for these) a partially patched version of sansapatcher (will post later; I currently don't own one, so don't expect the patches to do anything besides getting you through the build process.) Other dependencies will become apparent during the build. I assume that the iPod is being mounted this way: mount -t msdos /dev/sd0j /mnt/ipod I assume that you are explicitly using type msdos; however, you can replace sd0 with sd followed by any number appropriate to your machine. The patch for ipodpatcher assumes the iPod is being treated as a block device (sd0j form) instead of a raw device (rsd0j form). Note: The combined.diff combines the above diffs into one file for ease of patching. The voicefile.diff is a hack to get through the build process. |
This task depends upon
Closed by Dominik Riebeling (bluebrother)
Saturday, 13 December 2008, 11:11 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed except the voicefile change as I guess this issue will hit in various other places as well, thus it would be better dealing with it separately.
Saturday, 13 December 2008, 11:11 GMT+2
Reason for closing: Accepted
Additional comments about closing: committed except the voicefile change as I guess this issue will hit in various other places as well, thus it would be better dealing with it separately.
As for the msdos, that is what BSD uses to mount fat32 file systems. msdos does provide long file name support. If you want explicit support, you need to mount with the -l option. However, if any files in the root directory of the file system being mounted use a long filename, then the -l option is defaulted. Here's some more information:
http://tinyurl.com/5jkct9
sd0 at scsibus1 targ 1 lun 0: <Apple, iPod, 1.62> SCSI0 0/direct removable
sd0: 976MB, 512 bytes/sec, 1999872 sec total
# disklabel sd0
disklabel: warning, DOS partition table with no valid OpenBSD partition
# /dev/rsd0c:
type: SCSI
disk: SCSI disk
label: iPod
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 124
total sectors: 1999872
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
c: 1999872 0 unused 0 0
i: 160587 63 unused 0 0
j: 1839221 160650 MSDOS
Now openBSD also offers another msdos filesystem: ntfs. But the ipod nano 1st gen
isn't built with it. I'm not sure about the other ipods.