Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Trying to build ipodpatcher for openBSD

Re: Trying to build ipodpatcher for openBSD

From: Brian <bwaichu_at_yahoo.com>
Date: Wed, 27 Aug 2008 03:25:57 -0700 (PDT)

--- On Tue, 8/26/08, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> Hi Brian,
>
> I don't have any particular insights to share on this
> topic right now, but I
> would just like to point out that several developers are
> not tracking this
> (users) list but are instead easier to catch and get
> responses from on the
> rockbox-dev mailing list!
>
> ... and of course on IRC.
>
> --
>
> / daniel.haxx.se

Thanks. I actually just got it working. I made a mistake in my last post here. If I want to mount and write to my iPod, I mount /dev/sd0j; however, if I want to patch the partition table, I need to open /dev/sd0c. I guess, I can now work out patches, and make sure I didn't mess anything up commenting out those functions in fat32format.c.

I did subscribe to the -dev list, but I never received a confirmation back.

I should probably re-write the sprints with snprints to suppress the warnings below.

Here's my info:

$ gmake
gcc -Wall -W -DWITH_BOOTOBJS -o ipodpatcher main.c ipodpatcher.c fat32format.c arc4.c ipodio-posix.c ipod
1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini.c ipodmini2g.c ipodnano.c ipodvideo.c
/tmp//ccAmqkaF.o(.text+0x348d): In function `ipod_scan':
: warning: strcpy() is almost always misused, please use strlcpy()
/tmp//ccAmqkaF.o(.text+0x330e): In function `ipod_scan':
: warning: sprintf() is often misused, please use snprintf()
strip ipodpatcher
$ su
Password:
# ./ipodpatcher
ipodpatcher v2.0 with v2.0 bootloaders - (C) Dave Chapman 2006-2007
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Scanning disk devices...
[INFO] Ipod found - 1st Generation Nano ("winpod") - /dev/sd0c
[INFO] Reading partition table from /dev/sd0c
[INFO] Sector size is 512 bytes
[INFO] Part Start Sector End Sector Size (MB) Type
[INFO] 0 63 160649 78.4 Empty (0x00)
[INFO] 1 160650 1999870 898.1 W95 FAT32 (0x0b)
[INFO] Ipod model: 1st Generation Nano ("winpod")
Enter i to install the Rockbox bootloader, u to uninstall
 or c to cancel and do nothing (i/u/c) :u
[INFO] Reading firmware (5566464 bytes)
[INFO] Padding read from 0x0054f000 to 0x0054f000 bytes
[INFO] Updating firmware checksum
[INFO] Bootloader removed.
Press ENTER to exit ipodpatcher :
# ./ipodpatcher
ipodpatcher v2.0 with v2.0 bootloaders - (C) Dave Chapman 2006-2007
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

[INFO] Scanning disk devices...
[INFO] Ipod found - 1st Generation Nano ("winpod") - /dev/sd0c
[INFO] Reading partition table from /dev/sd0c
[INFO] Sector size is 512 bytes
[INFO] Part Start Sector End Sector Size (MB) Type
[INFO] 0 63 160649 78.4 Empty (0x00)
[INFO] 1 160650 1999870 898.1 W95 FAT32 (0x0b)
[INFO] Ipod model: 1st Generation Nano ("winpod")
Enter i to install the Rockbox bootloader, u to uninstall
 or c to cancel and do nothing (i/u/c) :i
[INFO] Using internal bootloader - 48972 bytes
[INFO] Reading original firmware...
[INFO] Wrote 5615616 bytes to firmware partition
[INFO] Bootloader installed successfully.
Press ENTER to exit ipodpatcher :
# uname -s
OpenBSD
# machine
amd64
#




      
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox
FAQ: http://www.rockbox.org/twiki/bin/view/Main/GeneralFAQ
Etiquette: http://www.rockbox.org/mail/etiquette.html
Received on 2008-08-27

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy