Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Serial driver for 4G+ ipods
« previous next »
  • Print
Pages: [1]

Author Topic: Serial driver for 4G+ ipods  (Read 3065 times)

Offline Jacob83

  • Member
  • *
  • Posts: 4
Serial driver for 4G+ ipods
« on: June 22, 2007, 02:05:37 PM »
Hi guys,
I cant understand, why it is that complicated to implement a serial driver. I think you have to know the register for the  baudrate and anythin else is done by hardware... isn't it??
I would really enjoy my ipod mini with serial port for my homebre gadgets...
regards, Jacob
http://www.avr-projects.info
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Serial driver for 4G+ ipods
« Reply #1 on: June 22, 2007, 02:29:42 PM »
If it's easy, we look forward to your patch soon.
If you aren't both capable of doing it and plan on doing it, kindly shut up. Saying "it ought to be easy" doesn't accomplish anything. Especially when how easy something in doesn't always even factor into whether it gets done or not.
Logged

Offline Jacob83

  • Member
  • *
  • Posts: 4
Re: Serial driver for 4G+ ipods
« Reply #2 on: June 22, 2007, 02:39:12 PM »
Hmm...
but don't you think the only thing to do is to write some (<5) Bytes into some registers, that are at the moment not known? Or can you tell me what complicates this task?
thanks, Jacob
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Serial driver for 4G+ ipods
« Reply #3 on: June 22, 2007, 02:46:51 PM »
I believe no one has looked into implementing the serial port driver.  It may be easy or hard, we just don't know.
Logged

Offline Jacob83

  • Member
  • *
  • Posts: 4
Re: Serial driver for 4G+ ipods
« Reply #4 on: June 22, 2007, 03:14:56 PM »
Okay, i am nearly sure, that the only problem are the adresses of the registers...
I found this in the sources of ipodlinux (serial.h)
I found as well a log of an irc chat about this issue, see http://rainstorm.org/ipod/stats/ipodlinux.log-2006-08-16
but unfortunately i don't know that much about arms... so i'll have to wait for someone to find out how it works on newer ipod generations.
regards,
Jacob

Code: [Select]
/* PP5002 */
#define PP5002_IPOD_SER0_BASE 0xc0006000
#define PP5002_IPOD_SER1_BASE 0xc0006040
/* PP5020 */
#define PP5020_IPOD_SER0_BASE 0x70006000
#define PP5020_IPOD_SER1_BASE 0x70006040
/* The UART is clocked at 24MHz */
#define BASE_BAUD (24576000 / 16)
#define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF|ASYNC_SKIP_TEST)
#define DEFAULT_CFLAGS (B9600 | CS8 | CREAD | HUPCL | CLOCAL)
#define RS_TABLE_SIZE 2
#define STD_SERIAL_PORT_DEFNS \
{ \
magic: 0, \
baud_base: BASE_BAUD, \
irq: PP5002_SER0_IRQ, \
flags: STD_COM_FLAGS, \
type: PORT_UNKNOWN, \
iomem_base: (u8*)PP5002_IPOD_SER0_BASE, \
iomem_reg_shift: 2, \
io_type: SERIAL_IO_MEM \
}, /* ttyS0 */ \
{ \
magic: 0, \
baud_base: BASE_BAUD, \
irq: PP5002_SER1_IRQ, \
flags: STD_COM_FLAGS, \
type: PORT_UNKNOWN, \
iomem_base: (u8*)PP5002_IPOD_SER1_BASE, \
iomem_reg_shift: 2, \
io_type: SERIAL_IO_MEM \
} /* ttyS1 */
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Serial driver for 4G+ ipods
« Reply #5 on: June 22, 2007, 05:40:56 PM »
Quote from: Jacob83 on June 22, 2007, 03:14:56 PM
but unfortunately i don't know that much about arms

But, it is easy right?  Oh hang on, I guess maybe it isn't.

Coming on these forums and saying, this is easy, why hasn't someone done it (I can't do it myself it is too difficult) isn't going to be well received.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline Jacob83

  • Member
  • *
  • Posts: 4
Re: Serial driver for 4G+ ipods
« Reply #6 on: June 22, 2007, 06:09:44 PM »
compared to some other stuff that has already been acheived it should be possible... if you look at the init sequences in the sources of ipodlinux you'll see  it's just a matter of knowledge about some adresses that are kept secretly in the caves of nvidia  :'( - what a pity.
Logged

Offline AlexP

  • Global Moderator
  • Member
  • *
  • Posts: 3688
  • ex-BigBambi
Re: Serial driver for 4G+ ipods
« Reply #7 on: June 22, 2007, 06:21:23 PM »
Of course it is possible, but unless you have actually done it or are going to, saying something is easy, why haven't you done it will annoy people.
Logged
H140, F60, S120, e260, c240, Clip, Fuze v2, Connect, MP170, Meizu M3, Nano 1G, Android

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Serial driver for 4G+ ipods
« Reply #8 on: June 22, 2007, 06:55:35 PM »
Quote from: BigBambi on June 22, 2007, 06:21:23 PM
Of course it is possible, but unless you have actually done it or are going to, saying something is easy, why haven't you done it will annoy people.
Right.

I did some work with ARM chips before and I'm interested in looking into that issue. But there are a couple of problems:
- the hardware is barely known, which makes it difficult to "just" write a driver
- writing a driver is only a small amount of the work that's needed -- you need to integrate it into Rockbox as well. It's not just writing "some bytes into some register".
- time is usually an issue, which also applies for me
- and in my case, I bought some cheap Ipod accessory to create a serial cable out of it, but unfortunately this thing hasn't arrived yet.

Btw, why are you linking an AVR website?
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Serial driver for 4G+ ipods
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.092 seconds with 15 queries.