|
|
Rockbox mail archiveSubject: Trying to build ipodpatcher for openBSDTrying to build ipodpatcher for openBSD
From: Brian <bwaichu_at_yahoo.com>
Date: Tue, 26 Aug 2008 21:32:48 -0700 (PDT)
I have started down the road of building ipodpatcher for openBSD. I have been successful in building ipodpatcher, but I am still have some questions. And I'm still trying to get it to work.
Some questions:
* if I had previously used ipodpatcher on an ipod nano, should I receive an error saying that the partition does not match an ipod, if I turn off the silence flags? This is where I am stuck.
Some info:
* ipods show up as /dev/sd0j, where 0 can be incremented, so I had to add
#elif defined(__OpenBSD__)
* some functions are redeclared in fat32format.c from byteorder(3) as found in sys/types.h, for now, I just #if 0 #endif'd them out. I need some help here.
* the geometry works differently on openBSD, so here's an example c program that opens up an ipod and gets some basic geometry information,
#include <stdio.h>
int
int fd;
if (ioctl(fd, DIOCGPDINFO, &dl) == -1) {
printf("sectors: %d\nsector size: %d\n", dl.d_nsectors, dl.d_secsize);
return 0;
Here are some temporary changes I made; need some help with how this file should be patched:
#elif defined(__OpenBSD__)
struct disklabel geometry;
if(ioctl(ipod->dh, DIOCGPDINFO, &geometry) == -1 &&
note: I go by _emp on the irc chat.
Thanks.
Page was last modified "Jan 10 2012" The Rockbox Crew |