dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Wiki > Main > GSoCSansaView (compare)

Difference: GSoCSansaView (r10 vs. r9)

Page heading

Rockbox on the Sansa View

This project is part of the Google Summer of Code 2009 project.

Project nameStudentMentorBackup mentor
Port of Rockbox to the Sansa View Robert KeevilPaul LoudenDaniel Stenberg

The aim of this project is to

Project Plan

  • Disassembly of the Views OF.
  • LCD Driver
  • Button Driver
  • Flash Driver
  • Audio Driver

Currently working on:

  • Disassembly!
  • Many registers seem to match PP502x ones. This includes Mailboxes, Interrupts, Timers, Processor Control, Cache Control and GPIOs.
  • The registers for LCD and MMC/IO are different to earlier Portal Player implementations
  • Locate OF hardware initialisation routines


For the disassembly I arbitrarily chose the 01.01.06a revision of the OF to work on, which is available at

Before disassembling the bootloader, I stripped the first 64 bytes, which contain header information.

Thanks to funman for pointing out to me that infact there isn't a 64 byte header (why I thought that I don't know), and also for the RAM insights below. Re-disassembled with the correct file (TODO: update offsets below). Both the bootloader and main OF binary are mixed thumb and 32bit ARM code.

IRAM is located at 0x40000000. There appears to be at least 96k worth? The OF maps the RAM to 0x10F00000. The bootloader appears to be copied to the start of this address, and then uses this offset to call various bits of code when running.

The code is a little generic? It tests if a COP is present, and also tries to setup 64Mb of RAM, even though the View has 32 (as indicated by the part number on the Samsung chip).

0x29FC COP Test - if true, initialise COP_CTL Nvidias own 6100 webpage implies single core, with a secondary Audio/Video processor?
0x3354 udelay(r0)  
0x5248 USB init See also 0x5352 & 0x53A4. Seems to be using the same registers and values as previous PP502Xs.
0x5CC8 lcd_init_gpio GPIO initialisation - E, F, J, B, H and more
0x623C GPIOB See also 0xC350 and 0xBB74
0x6278 lcd_write_reg  
0x643C backlight_on/_off(r1) set r1 to 0 to turn off, otherwise on
0x645C lcd_send_msg  
0x6478 lcd_send_byte  
0xBE28 GPIO H, I and O initialisation The 6100 seems to have 4 more GPIOs than the PP502Xs


I've also been experimenting with code hoping to find some clues I can use as references when looking at the disassembly, by using code like:

for (i = 0; i <= 31; i++)

within bootloader/main-pp.c, and then running it as a replacement to the OF (although a lot of the HW initialisation will already be done by that point?).


makes the entire LCD white


appears to turn off the LCD (i.e. it seems to be more than just turning the backlight off).


Turns ON the button light


Turns off the button light

    /* Disable interrupts on this core */

    /* Mask them on both cores */
    CPU_INT_DIS = -1;

    while (1)
        DEV_RS = -1;
        CPU_CTL = 0x40000000;

This is an amalgam of other PP targets shutdown code - on the View it actually resets the device (useful since I can use it to let me know when certain code/sleeps have finished). TODO: find the real reboot/shutdown code.

void bl_off(void)

void bl_on(void)

Turn the backlight on and off.


The first line corrupts the display (skews it). The second restores it to normal.


At first I thought the LCD was based on a Renesas controller, since the disassembly looked similar to the e200. This unfortunately turned out to be a massive red herring. Infact the controller appears to be an Ilitek ILI9320 (although this model is very nearly identical register-wise to the Renesas R61505).

So far I'm using the values from the disassembly in the LCD init routines, rather than the application notes. Despite this wealth of information I've yet to have any success in writing to the display.


There are many references in the main OF binary to OpenMAX. Khronos were mentioned as the developer of a reference design when the Nvidia 6100 SOC was launched.

I've sent emails to both Nvidia and Dragon Display Tech requesting technical information/data sheets. No response has so far been received.

ILI9320AN_V0.92.pdfpdfILI9320AN_V0.92.pdfmanage 294.2 K 09 Jul 2009 - 21:22RobertKeevil ILI9320 Application Notes
ILI9320DS_V0.55.pdfpdfILI9320DS_V0.55.pdfmanage 1210.2 K 09 Jul 2009 - 21:21RobertKeevil ILI9320 Datasheet
backlight-view.ccbacklight-view.cmanage 1.4 K 09 Jul 2009 - 21:23RobertKeevil  
lcd-view.cclcd-view.cmanage9.5K 9.7K 09 10 Jul 2009 - 21:23 15:15 RobertKeevil  

r12 - 29 Dec 2009 - 16:57:29 - MichaelGiacomelli

Revision r10 - 10 Jul 2009 - 15:15 - RobertKeevil
Revision r9 - 09 Jul 2009 - 21:30 - RobertKeevil
Copyright by the contributing authors.