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

Recent activity


Recent Threads on the Mailing Lists
when what who
Thursday 22:44Rockbox 3.13 on Sansa Clip+ skipping non-English named tracks Jason Heeris via rockbox
Thursday 11:07Recording issue on sansa clip zip Andrew Skretvedt via rockbox
28th Sep 14:46Sansa Clip+ internal flash defect john via rockbox
27th Sep 16:02Care of Lithium Ion batteries [was "Re: Sansa Clip Sport"] Steph yahoo via rockbox
26th Sep 14:15voiceBox Glenn via rockbox
26th Sep 13:30Sansa Clip Sport Steph yahoo via rockbox
25th Sep 08:46Gerrit is operational Amaury Pouly via rockbox-dev
16th Sep 02:47still cannot make voice file for Sansa Clip+ Ayiba via rockbox
14th Sep 03:44still cannot generate a voice for the Sansa Clip + Glenn via rockbox
14th Sep 01:52trying to make and install voice file Glenn via rockbox
13th Sep 03:49Generating Voice files and installing them Glenn via rockbox
13th Sep 03:34Sansa Clip+ and SD card format Tom Cole via rockbox
12th Sep 17:05more on Sansa Clip +installation Glenn via rockbox
12th Sep 03:49more on installing on the Sansa Clip + Glenn via rockbox
12th Sep 03:14Installing onto my new Sansa Clip + Glenn via rockbox
10th Sep 13:51Gerrit / git-review Amaury Pouly via rockbox-dev
9th Sep 20:21Gerrit is working again Amaury Pouly via rockbox-dev
7th Sep 02:24Sansa Clip or Clip Zip SD Memory Jon Lewis via rockbox
6th Sep 14:07[iPod Classic 6th gen] Cannot boot into Rockbox for more than 10-15 seconds auxo via rockbox
24th Jul 12:37POC Fuze+ scrollstrip support Sebastian Leonhardt via rockbox-dev


Tuesday 13:23LinuxSimpleGuideToCompilingHaydenPearce
4th Oct 16:07EvanildoAlmeidaCostaBaseUserMapping_222
30th Sep 15:22DarKoBaseUserMapping_222
29th Sep 20:54FiioX1AmauryPouly
28th Sep 14:29EddySanchezBaseUserMapping_222
24th Sep 10:08BrainLaurentiBaseUserMapping_222
24th Sep 10:08WikiUsersBaseUserMapping_333
23rd Sep 18:10RickOlegBaseUserMapping_222
22nd Sep 06:58VenkatRamBaseUserMapping_222
16th Sep 22:37JamaalGLANTONBaseUserMapping_222
10th Sep 08:23ChadArchibaldBaseUserMapping_222
10th Sep 08:05RusTCSMoViESBaseUserMapping_222


2014-12-09 d20185a: iPod Classic: reads HDD S.M.A.R.T. data

Adds ata_read_smart() function to storage ATA driver, current SMART data can be displayed and optionally written to hard disk using System->Debug menu.
apps/debug_menu.c [diff]
apps/gui/list.h [diff]
firmware/export/ata.h [diff]
firmware/export/config/ipod6g.h [diff]
firmware/target/arm/s5l8702/ipod6g/storage_ata-ipod6g.c [diff]
Cástor Muñoz
2014-12-09 32b4558: iPod Classic: initialize USB power configuration

This patch limits the drawn USB current to 100/500mA, instead of the actual 200/1000mA settings. It also initializes other USB power related GPIOs.

Solves some USB disconnect issues: FS #12990, FS #12956. I am using a powered USB HUB with no problems (Vusb=5.05V unloaded), but there are lots of USB disconnects when using the motherboard USB ports
(Vusb=4.91V), this patch solves all my issues.

Actually, it seems that the USB current drain is limited to 1000mA, when a load peak occurs most USB2 ports deliver more than 500mA, as current consumption increases the USB voltage decreases, an excesive voltage drop produces USB disconnections. Limiting USB current drain to 500mA also limits the voltage drop, preventing subsequent USB failures.

Anyway, to minimize voltage drop, it is recommended to use quality cables and preferably connect to USB ports with higher Vusb.
firmware/target/arm/s5l8702/ipod6g/power-ipod6g.c [diff]
Cástor Muñoz
2014-12-06 be5fc0f: iAP: lingo 1 (microphone)
apps/SOURCES [diff]
apps/audio_path.c [diff]
apps/iap/iap-core.c [diff]
apps/iap/iap-lingo.h [diff]
apps/iap/iap-lingo1.c [new]
apps/iap/iap-lingo2.c [diff]
firmware/export/iap.h [diff]
Cástor Muñoz
2014-12-06 b2d650f: iAP: authentication 1.0
apps/iap/iap-core.c [diff]
apps/iap/iap-core.h [diff]
apps/iap/iap-lingo0.c [diff]
Cástor Muñoz
2014-12-06 efd047a: iPod Classic: implement IPOD_ACCESSORY_PROTOCOL
firmware/export/config/ipod6g.h [diff]
firmware/target/arm/s5l8702/ipod6g/powermgmt-ipod6g.c [diff]
firmware/target/arm/s5l8702/ipod6g/serial-ipod6g.c [diff]
Cástor Muñoz
2014-12-06 38ae0d5: iPod Classic: implement HAVE_SERIAL
firmware/SOURCES [diff]
firmware/export/config/ipod6g.h [diff]
firmware/export/s5l8702.h [diff]
firmware/target/arm/s5l8702/debug-s5l8702.c [diff]
firmware/target/arm/s5l8702/ipod6g/serial-ipod6g.c [new]
firmware/target/arm/s5l8702/system-s5l8702.c [diff]
firmware/target/arm/s5l8702/uart-s5l8702.c [new]
firmware/target/arm/s5l8702/uart-s5l8702.h [new]
Cástor Muñoz
2014-12-06 9f27dc2: iPod Classic: introduce s5l8702 UART driver

- polling/IRQ modes for Tx/Rx (TODO?: DMA)
- fine adjust for Tx/Rx bitrates
- auto bauding using HW circuitry
- status and stats in debug screen
firmware/SOURCES [diff]
firmware/target/arm/s5l8702/uc8702.c [new]
firmware/target/arm/s5l8702/uc8702.h [new]
Cástor Muñoz
2014-12-06 291b233: ipod Classic: implement HAVE_RECORDING

This patch has been tested on iPod 80 and 160slim, actually it works but some updates must be done to the final version:

- unlimitted input buffer
- decrease CHUNK_SIZE
- use non-cached addresses instead of discard d-cache ???

Capture hardware versions:

Ver iPod models capture support
--- ----------- --------------- 0 80/160fat dock line-in 1 120/160slim dock line-in + jack mic

HW version 1 includes an amplifier for the jack plug mic.

Capture HW detection only tested on iPod 80 and 160slim.

CODEC power:

AFAIK, OF powers CS42L55 at VA=2.4V for capture (1.8V for playback) and turns on the ADC charge pump. CODEC datasheet recommmends to disable the charge pump for VA>2.1V.

CS42L55 DS, s4.13 (Required Initialization Settings): for VA>2.1V, some adjustments "must" be done using undocummented
"control port compensation" registers. OF does not modifies these registers when VA=2.4V.

This patch configures capture HW in the same way as OF does.

- ADC full scale voltage depends on VA, perform tests to find clipping levels for VA=1.8V and VA=2.4V
firmware/export/config/ipod6g.h [diff]
firmware/target/arm/s5l8702/debug-s5l8702.c [diff]
firmware/target/arm/s5l8702/gpio-s5l8702.c [diff]
firmware/target/arm/s5l8702/ipod6g/audio-ipod6g.c [diff]
firmware/target/arm/s5l8702/pcm-s5l8702.c [diff]
firmware/target/arm/s5l8702/system-s5l8702.c [diff]
Cástor Muñoz
2014-12-06 42abc6a: iPod Classic: capture support for CS42L55 codec

There are a couple of power saving options that can be selected using defines, they configure the CODEC in a different way than OF does:

MONO_MIC: jack microphone is connected to left channel, disabling right channel saves ~1 mW, there is no reason to not to do it.

BYPASS_PGA: this option only applies to the line-in, OF does not bypass the PGA and configures it to 0 dB gain. At the beginning, this patch was written based on CODEC datasheet, bypassing PGA because it saves power and incrementes dinamic range ~1dB, i have used this setup for a while without problems. Finally this option was disabled at the last minute, i decided to do it after reviewing the OF and realizing that CS42L55 datasheet recommends to bypass the PGA only if the HW includes a couple of capacitors (see Typical Connection Diagram, Note 4), at this moment i don't know if Classic includes these capacitors (probably not). Anyway, i am not able to tell the difference listening to voice recodings.

- Use variable PGA gain for jack microphone (it is fixed to +12 dB. as OF does).
- I am not a fan of having lots of unused #define options, these could be useful for a generic driver but actually this driver is Classic oriented, i am not sure if it could be considered disirable to eliminate them in the final version.
firmware/drivers/audio/cs42l55.c [diff]
firmware/export/cs42l55.h [diff]
Cástor Muñoz
2014-12-06 67b4e7f: iPod Classic: use new PL080 DMA driver

This patch uses the new pl080 DMA driver for I2S playback and LCD update. I have tried to be as fiel as possible to the current behaviour, algorithms and configurations are the same, but using the new driver. Other modifications:


- CHUNK_SIZE is decreased from 42988 to 8188 bytes, it does not affect normal playback (block size 1024), was tested using metronome (block size 46080). This change is needed because the new code commits d-cache range instead of commiting the whole d-cache, maximum time spent commiting the range should be limited, CHUNK_SIZE can be decreased even more if necessary.

- pcm_play_dma_start() calls pcm_play_dma_stop() to stop the channel when it is running (metronome replays the tick sound without stopping the channel).

- pcm_play_dma_get_peak_buffer(): same as actual SVN function but returns samples count instead of bytes count. TODO: AFAIK, actually this function is not used in RB. Not tested, but probably this function will fail because it returns pointers to the internal double buffer.

LCD update:

- suppresses lcd_wakeup semaphore and uses yield()
firmware/SOURCES [diff]
firmware/export/s5l8702.h [diff]
firmware/target/arm/s5l8702/debug-s5l8702.c [diff]
firmware/target/arm/s5l8702/dma-s5l8702.c [new]
firmware/target/arm/s5l8702/dma-s5l8702.h [new]
firmware/target/arm/s5l8702/ipod6g/lcd-ipod6g.c [diff]
firmware/target/arm/s5l8702/pcm-s5l8702.c [diff]
firmware/target/arm/s5l8702/pcm-target.h [diff]
firmware/target/arm/s5l8702/system-s5l8702.c [diff]
Cástor Muñoz
2014-12-06 d6ee2c9: iPod Classic: introduce PL080 DMA controller driver


This driver began as a set of functions to help to test and experiment with different DMA configurations. It is cumbersome, time consuming, and leads to mistakes to handle LLIs and DMA registers dispersed along the code.

Later, i decided to adapt an old DMA queue driver written in the past for a similar (scatter-gather) controller, all task/queue code is based on the old driver.

Finally, some cleaning and dmac_ch_get_info() function was added to complete RB needs.


- Generic, can be used by other targets including the same controller. Not difficult to adapt for other similar controllers if necesary.

- Easy to experiment and compare results using different setups and/or queue algorithms:

Multi-controller and fully configurable from an unique place.

All task and LLI management is done by the driver, user only has to (statically) allocate them.

- Two queue modes:

QUEUE_NORMAL: each task in the queue is launched using a new DMA transfer once previous task is finished.

QUEUE_LINK: when a task is queued, it is linked with the last queued task, creating a single continuous DMA transfer. New tasks must be queued while the channel is running, otherwise the continuous DMA transfer will be broken.

On Classic, QUEUE_LINK mode is needed for I2S continuous transfers, QUEUE_NORMAL is used for LCD and could be useful in the future for I2C or UART (non-blocking serial debug) if necessary.

- Robust DMA transfer progress info (peak meter), needs final testing, see below.

Technical details about DMA progress:

There are comments in the code related to the method actually used (sequence method), it reads progress without halting the DMA transfer. Althought the datasheet does not recommend to do that, the sequence method seems to be robust, I ran tests calling dmac_ch_get_info() millions of times and the results were always as expected (tests done at 2:1 CPU/AHB clock ratio, no other ratios were tried but probably sequence method will work for any typical ratio).

This controller allows to halt the transfer and drain the DMAC FIFO, DMA requests are ignored when the DMA channel is halted. This method is not suitable for playback because FIFO is never drained to I2S peripheral (who raises the DMA requests). This method probably works for capture, the FIFO is drained to memory before halting.

Another way is to disable (stop) the playback channel. When the channel is disabled, all FIFO data is lost. It is unknown how much the FIFO was filled when it was cleared, SRCADDR counter includes the lost data, therefore the only useful information is LINK and COUNT, that is the same information disponible when using the sequence method. At this point we must procced in the same way as in sequence method, in addition the playback channel should be relaunched (configure + start) after calculating real SRCADDR.

The stop+relaunch method should work, it is a bit complicated, and not valid for all peripheral FIFO configurations (depending on stream rate). Moreover, due to the way the COUNT register is implemented in HW, I suspect that this method will fail when source and destination bus widths doesn't match. And more important, it is not easy to garantize that no sample is lost here or there, using the sequence method we can always be sure that playback is ok.
firmware/SOURCES [diff]
firmware/export/pl080.h [new]
firmware/export/s5l8702.h [diff]
firmware/target/arm/s5l8702/pl080.c [new]
Cástor Muñoz
2014-11-10 609cde9: iPod Classic: s5l8702 GPIO interrupt controller.

This patch implements a simple API to use the external interrupt hardware present on s5l8702 (GPIO interrupt controller). This GPIOIC has been fully tested using emcore apps.

Code is based on openiBoot project, there are a few modifications to optimize space considering we will only use two or three external interrupts. The API compiles and works, but has been never used, therefore probably will need some changes to the final version.

External interrupts are necessary for jack remote+mic controller
(see iAP Interface Specifiction: Headphone Remote and Mic System), this controller is located at I2C bus address 0x72, there is a IRQ line for remote button press/release events routed to GPIO E6. At this moment, the functionallity of this controller has been extensively tested using emcore, getting a lot of information about how it works. Microphone is already working on RB, jack accessory detection and button events are work in progress.

PMU IRQ line is also routed to GPIO F3, it signals many events: holdswitch, usb plug, wall adapter, low battery... The use of PMU interrupts is the orthodox way of doing things, at this moment there is no work done in this direction, there are a lot of PMU events and i think it is a matter of discursion what to do and how.
firmware/SOURCES [diff]
firmware/export/s5l8702.h [diff]
firmware/target/arm/s5l8702/gpio-s5l8702.c [new]
firmware/target/arm/s5l8702/gpio-s5l8702.h [new]
firmware/target/arm/s5l8702/system-s5l8702.c [diff]
Cástor Muñoz
3rd Oct 21:09 3fdb86e: qeditor: fix uninitialised variable
utils/regtools/qeditor/utils.cpp [diff]
utils/regtools/qeditor/utils.h [diff]
Amaury Pouly
22nd Apr 22:07 f01fb3c: Fix chessbox keymap handling

Let's give the defined, yet unused keymaps some sense :)
apps/plugins/chessbox/chessbox.c [diff]
apps/plugins/chessbox/chessbox_pgn.h [diff]
Sebastian Leonhardt
All commits since last release, last four weeks.
Page was last modified "Jan 12 2012" The Rockbox Crew