diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-05-28 19:31:46 +0200 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-05-28 19:38:09 +0200 |
commit | 9c33f93c1c9bfd37f33f638eccceefa4c0d5b5e6 (patch) | |
tree | 300c51d61e2fb3bfe34abef9132b26f3086f087c | |
parent | eb027788cf6a073f54d48f9dad92d66bf1dbf53c (diff) | |
download | rockbox-9c33f93c1c9bfd37f33f638eccceefa4c0d5b5e6.tar.gz rockbox-9c33f93c1c9bfd37f33f638eccceefa4c0d5b5e6.zip |
ypr0: Add kernel module to required support fm radio.
To support fm radio a kernel module was written. This module is added to
the patched firmware that loads Rockbox. It's pre-compiled but its source
archive provided.
The kernel module provides raw-access to the built-in si4709 radio chip.
Our existing si 47xx drivers can be re-used this way.
The module itself was written Lorenzo Miori, I only integrated it
into the tree.
Change-Id: I6205d28a505d57791eaeb627e6856b9a1eaeaeaa
-rw-r--r-- | utils/ypr0tools/README | 3 | ||||
-rwxr-xr-x | utils/ypr0tools/files/lib/modules/si4709.ko | bin | 0 -> 129816 bytes | |||
-rwxr-xr-x | utils/ypr0tools/rockbox.sh | 8 | ||||
-rw-r--r-- | utils/ypr0tools/si4709.7z | bin | 0 -> 2259963 bytes |
4 files changed, 10 insertions, 1 deletions
diff --git a/utils/ypr0tools/README b/utils/ypr0tools/README index 45777dd8c5..c517eec037 100644 --- a/utils/ypr0tools/README +++ b/utils/ypr0tools/README | |||
@@ -10,3 +10,6 @@ After that, R0.ROM is patched and can load Rockbox. | |||
10 | 10 | ||
11 | rockbox.sh is a script to put into rockbox.zip. It's a small loader script | 11 | rockbox.sh is a script to put into rockbox.zip. It's a small loader script |
12 | that sets stuff up. | 12 | that sets stuff up. |
13 | |||
14 | files/lib/modules/si4709.ko is a replacement kernel module for fm radio support, | ||
15 | its source code is packaged in ./si4709.7z. | ||
diff --git a/utils/ypr0tools/files/lib/modules/si4709.ko b/utils/ypr0tools/files/lib/modules/si4709.ko new file mode 100755 index 0000000000..e2990d2b2d --- /dev/null +++ b/utils/ypr0tools/files/lib/modules/si4709.ko | |||
Binary files differ | |||
diff --git a/utils/ypr0tools/rockbox.sh b/utils/ypr0tools/rockbox.sh index 665ee9f97c..85e1b43533 100755 --- a/utils/ypr0tools/rockbox.sh +++ b/utils/ypr0tools/rockbox.sh | |||
@@ -1,4 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | ###################################################################### | 1 | ###################################################################### |
3 | # __________ __ ___. | 2 | # __________ __ ___. |
4 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | 3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
@@ -44,6 +43,13 @@ echo "95" > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold | |||
44 | mount --bind /mnt/media0/.rockbox /.rockbox | 43 | mount --bind /mnt/media0/.rockbox /.rockbox |
45 | mount --bind /mnt/media0/Playlists /Playlists | 44 | mount --bind /mnt/media0/Playlists /Playlists |
46 | 45 | ||
46 | # replace Samsung's si470x.ko with our si4709.ko to support fm radio | ||
47 | if [ -e /lib/modules/si4709.ko ] | ||
48 | then | ||
49 | rmmod /lib/modules/si470x.ko | ||
50 | insmod /lib/modules/si4709.ko | ||
51 | fi | ||
52 | |||
47 | MAINFILE="/mnt/media0/.rockbox/rockbox" | 53 | MAINFILE="/mnt/media0/.rockbox/rockbox" |
48 | MAINFILE_ARGV='' | 54 | MAINFILE_ARGV='' |
49 | MAINFILE_REDIRECT='>/dev/null 2>&1' | 55 | MAINFILE_REDIRECT='>/dev/null 2>&1' |
diff --git a/utils/ypr0tools/si4709.7z b/utils/ypr0tools/si4709.7z new file mode 100644 index 0000000000..5f500262ae --- /dev/null +++ b/utils/ypr0tools/si4709.7z | |||
Binary files differ | |||