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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Help with X20 ARM programming
« previous next »
  • Print
Pages: [1] 2

Author Topic: Help with X20 ARM programming  (Read 9516 times)

Offline keenox

  • Member
  • *
  • Posts: 12
Help with X20 ARM programming
« on: April 25, 2008, 07:02:28 AM »
Hello! I played a little with my X20 firmware and the Insignia firmaware and i managed to flash my iriver with the insignia firmware, but it has no sound :( (more details here) so i switched back to iriver and played a little with it. can someone help me with a good arm editor/compiler, so i can view/modify the iriver firmware? some good arm asm tutorials would also be good as i have never programmed in asm... thank you!
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Help with X20 ARM programming
« Reply #1 on: April 25, 2008, 08:29:47 AM »
Rockbox isn't about modifying the original firmware. Please, questions for helping to modify other firmwares don't really belong here.
Logged

Offline keenox

  • Member
  • *
  • Posts: 12
Re: Help with X20 ARM programming
« Reply #2 on: April 25, 2008, 09:04:32 AM »
hmm... aren't we supposed to modify the firmware in order to make a working bootloader for rockbox???
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Help with X20 ARM programming
« Reply #3 on: April 25, 2008, 09:08:45 AM »
Rockbox bootloaders are written as stand alone programs. The original firmware isn't modified, usually a case is set up where the Rockbox bootloader is run *instead* of the original firmware, then it may launch the original.
Logged

Offline keenox

  • Member
  • *
  • Posts: 12
Re: Help with X20 ARM programming
« Reply #4 on: April 25, 2008, 09:18:26 AM »
i thought that using the original firmware as a starting point is easier for writing a bootloader... you said that the original firmware may be run after the bootloader. what is this useful for? isn't rockbox supposed to replace the original os? i was planning to modify/rewrite the original firmware in order to make a bootloader as a base for porting.  :-\
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Help with X20 ARM programming
« Reply #5 on: April 25, 2008, 09:20:51 AM »
Often users want to dual boot. Sometimes this is because the OF has a feature Rockbox doesn't have yet. So usually an attempt is made to have the player in a state where it can dual boot. This is especially important on some players where Rockbox won't have its own USB access for a while, so the original firmware's USB must be used.

Rockbox is made from the ground up. It does not contain parts of the original firmware. "Modifying" it would be quite contrary to that, as a modification of the OF would, by definition, include parts of it, wouldn't it?
Logged

Offline keenox

  • Member
  • *
  • Posts: 12
Re: Help with X20 ARM programming
« Reply #6 on: April 25, 2008, 09:28:00 AM »
i was meaning that we could use parts of the original firmware in order to use certain hardware. i guess that the firmware programmers know what they are doing and using parts from the OF could help rockbox developers to access different features. isn't it possible, for example, to include the usb functionality of the OF into the bootloader and low-level access it from Rockbox? (i don't really know much about low-level programming, so i apologize if i sound stupid)
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Help with X20 ARM programming
« Reply #7 on: April 25, 2008, 09:30:21 AM »
Quote
It does not contain parts of the original firmware.

Actually incorporating parts of the original firmware would be a violation of their copyright on it.
Logged

Offline keenox

  • Member
  • *
  • Posts: 12
Re: Help with X20 ARM programming
« Reply #8 on: April 25, 2008, 09:44:05 AM »
i don't think common parts of the software count as copyrighted. for example, if i copy the file access part of a program, does it count as a violation of the author's copyright? that part can be the same in many programs... btw. do you have a messenger id? it's rather unconfortable talking on a forum like this.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Help with X20 ARM programming
« Reply #9 on: April 25, 2008, 09:46:57 AM »
The whole point of the forum is that other people can join in the conversation.

ANY code you write is copyright you. You cannot simply take parts of another person's program and use them without permission.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Help with X20 ARM programming
« Reply #10 on: April 25, 2008, 10:40:15 AM »
Quote from: keenox on April 25, 2008, 09:44:05 AM
i don't think common parts of the software count as copyrighted. for example, if i copy the file access part of a program, does it count as a violation of the author's copyright?

Absolutely.  You cannot take even a single line from someone else's code.  If you're reverse engineering a binary, you can take facts about how the hardware works (register addresses, init sequences, etc), but no code.

Anyway, if you want to learn ARM, the programmers manual for your specific ARM core would be a good thing to start with.  Theres one for each ARM series core on the ARM website. 
Logged

Offline keenox

  • Member
  • *
  • Posts: 12
Re: Help with X20 ARM programming
« Reply #11 on: April 25, 2008, 11:09:40 AM »
thanks! i'll look for the manuals, but i've seen that you have to buy the software. do you know any free gcc->arm or basic->arm compilers? i found references about them on the net, but nothing to download. :-[
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Help with X20 ARM programming
« Reply #12 on: April 25, 2008, 11:20:03 AM »
There's some very useful information on this page:

http://www.rockbox.org/twiki/bin/view/Main/DevelopmentGuide

You can get all the required tools when you prepare a build environment.

Remember, Rockbox is written primarily in C, with some assembler. C++ is used on Rockbox Utility.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

Offline keenox

  • Member
  • *
  • Posts: 12
Re: Help with X20 ARM programming
« Reply #13 on: April 25, 2008, 11:49:13 AM »
LambdaCalculus379 thanks! but as i said before, i must first make a basic bootloader...
Logged

Offline LambdaCalculus

  • Member
  • *
  • Posts: 2257
  • Dreaming of Turing Machines...
    • The Nostalgia Roadtrip
Re: Help with X20 ARM programming
« Reply #14 on: April 25, 2008, 11:59:58 AM »
That's understandable, but if you want to get the idea of how a Rockbox bootloader works, why not read the source code for Rockbox?

Also, read some of the other New Ports threads, and go through the wiki. Take in all of the information you can. Download firmware updates and monitor USB traffic so you can see how the process is done. Come onto IRC and ask some of the devs a question or two.

Information is key, Padawan. ;) Use it to your advantage!

Remember: No firmware modifications, as was told. Use the original firmware only for pointers, not as a basis for programming.
Logged
Former Rockbox dev. Rising from the ashes...

Players: iPod Video /w 128GB SSD mod, H320 /w 128GB SSD mod

  • Print
Pages: [1] 2
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Help with X20 ARM programming
 

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

Page created in 0.086 seconds with 15 queries.