[KERNEL][DEV][ICS][TW-Only] M1 Kernel V5 [2012-06-19]

Search This thread

mdrjr

Senior Member
May 5, 2008
76
64
39
SP
Hi All,

Who I Am: My name is Mauro Ribeiro I'm from Brazil and I HATE long walks its gets even worst if its on the beach. I have 15+ years of experience on Linux, 5+ on Java. I do work as a Network Admin for a Large Brazilian Company.

Why: It comes my time to help this nice community that gaved me so much.

What: Linux Kernel 3.0.15 based on Samsung sources with Speedmod Patch's.
This kernel DOES NOT HAVE MMC_CAP_ERASE so it SHOULD be safe.

Its basicly Speedmod K3-3 Kernel with A TON OF MODULES. There are modules for USB Ethernet, USB Sound, USB Serial and Much much more.

BE CAREFUL WHEN YOU LOAD MODULES, MODULES USES MEMORY AND MEMORY IS A PRECIOUS RESOURCE.

MODULES ARE AT: /data/local/modules

IF YOU DON'T KNOW HOW TO LOAD A MODULE THIS KERNEL IS NOT FOR YOU.

ITS NOT A DAILY DRIVER KERNEL HAS ALOT OF STUFF. ITS FOR TESTING.

Be patient when I say that I'm working on something, My computer is a P3 with 1 Gig of ram. So everything takes time and I have to work too.

I'm 100% open to sugestions. Wanna chat about this kernel? I'm mdrjr @ freenode! come on IRC and chat with me. Leave this topic for development only.
I'm always at #project-voodoo .. come and chat.
DON'T PM ME. COME AND CHAT

Attached file is a ZIP that SHOULD BE FLASHED THRU CWM!

kernels are at:
http://www.mdrjr.net/kernel

v5:
Now that modules aren't on initramfs anymore
We have USB Serial and USB Wifi adapters!
YAY!
Let your BackTrack / Wifi Sniffing go
Also, moved files from XDA to my Hosting.

v4:
Added some missing stuff.
Build another TON of modules.
To make kernel smaller and friendly on RAM. Modules from now on will be at /data/local/modules.

v3:
Fixed some errors most of the stuff is pre-built inside the kernel now.
Removed USB-Serial Support. Ask me if you need this back.

v2:
Some idiot (ME) forgot that hardcore disable's logging for his kernel I have it enabled now.
Enabled logging and more logging.

v1:
Samsung ICS update 3 + Speedmod Patch K3-3.
Compiled with a tons of modules
modded initramfs

PS: Sorry for the typo on the date or.. i'm posting from the future.

Thanks goes to:
Linux (Linus)
Google (Android)
Samsung (For the phone)
Francisco Franco (For his work that I stoled... sorry, just few lines of code I'm using on this kernel)
Speedmod (For releasing all his work too and making this possible)
Chainfire (Plenty of instructions around and his work for android is HUGE)
Supercurio (Greate guy talked couple of lines with him. And his awesome job on Sound/Video on android)
If I'm missing someone else.. PM and I'll give you credit.
 
Last edited:

gattari

Senior Member
Aug 24, 2010
348
45
I don t know how to load a module...
I want anyway that the usb module for attach a fiio E 17 is loaded by default.
How to? :):)

Inviato dal mio GT-N7000 con Tapatalk 2
 
  • Like
Reactions: bigcow77

MatanZ

Senior Member
Jan 13, 2012
54
27
my.svgalib.org
You should not include the modules in the initramfs. The initramfs is always in memory, so this way the modules waste the precious RAM even if not loaded. It is better to have them on the large emmc partition.

BTW, the kernel's copyright license is GPL, a link to the binary should always be accompanied by a link to the source.
 

mdrjr

Senior Member
May 5, 2008
76
64
39
SP
You should not include the modules in the initramfs. The initramfs is always in memory, so this way the modules waste the precious RAM even if not loaded. It is better to have them on the large emmc partition.

BTW, the kernel's copyright license is GPL, a link to the binary should always be accompanied by a link to the source.

Its on the OP KERNEL IS SPEEDMOD KERNEL! Get the source from there. Its the same source.

And again on OP its a NOT A DAILY DRIVEN KERNEL. ITS FOR TESTING ONLY.
 
Last edited:

krypton_the_slayer

Senior Member
Oct 9, 2010
94
22
Portsmouth
I don t know how to load a module...
I want anyway that the usb module for attach a fiio E 17 is loaded by default.
How to? :):)

Inviato dal mio GT-N7000 con Tapatalk 2

A lot of USB DAC's are supported by the USB audio soundcard standard. The E7 (note not the E17) is confirmed to be working on S3. Some users have suggested a firmware upgrade for the E17 might solve things. Things are moving along nicely though. It seems Samsung are ahead of us but being tight lipped about it.....
 

krypton_the_slayer

Senior Member
Oct 9, 2010
94
22
Portsmouth
Can't load module.

insmod says

'unknown symbol in module or invalid parameter'

Also I found this, it details what modules the Nook Colour Dev team took to enable usb DAC.
Looks like we're missing a module?

insmod /drv/snd-hwdep.ko
insmod /drv/snd-rawmidi.ko
insmod /drv/snd-usbmidi-lib.ko
insmod /drv/snd-usb-audio.ko

From this page



Also, @mdrjr where can I find you on freenode?
 
Last edited:

mdrjr

Senior Member
May 5, 2008
76
64
39
SP
Can't load module.

insmod says

'unknown symbol in module or invalid parameter'

Also I found this, it details what modules the Nook Colour Dev team took to enable usb DAC.
Looks like we're missing a module?

insmod /drv/snd-hwdep.ko
insmod /drv/snd-rawmidi.ko
insmod /drv/snd-usbmidi-lib.ko
insmod /drv/snd-usb-audio.ko

From this page



Also, @mdrjr where can I find you on freenode?

#project-voodoo

and Yes, I got that issue as well... rebuilding stuff now.
 
  • Like
Reactions: krypton_the_slayer

gattari

Senior Member
Aug 24, 2010
348
45
Anyone test the module for usb dac?
Cmedia I suppose.

Inviato dal mio GT-N7000 con Tapatalk 2
 

dsan45

Senior Member
Aug 26, 2011
75
10
Sydney
Wow I don't know much about kernels but os this mean I can connect external usb dac like galaxy s3? I like that! Now my note will be an ultimate sound machine!

Sent from my GT-N7000 using XDA
 
  • Like
Reactions: Aludolf

krypton_the_slayer

Senior Member
Oct 9, 2010
94
22
Portsmouth
Well done and thanks mdrjr , we have the device (cheap c-media, but it conforms to usb generic audio) recognised, listed under /dev/snd and

alsa-aplay -l

gives

2012-06-17


And also a bunch of new devices listed in /dev/snd
audio1
controlC1
dsp1
mixer1
pcmC1D0c, pcdC1D0p

Now for a bit of alsa.conf hacking!

For others reading, if you have a USB DAC and are rooted on a Samsung based ICS ROM, if you want to test, first, download and flash the kernel from CWM (reboot recovery, flash zip from sdcard, flash M1v3.zip) reboot

then please download Alsamixer from the Market - link below. It will install ALSA components and a handy app, (please be careful with it, you can damage you speakers/possibly hearing!)

https://play.google.com/store/apps/details?id=com.skvalex.alsamixer&feature=nav_result#?t=W251bGwsMSwxLDMsImNvbS5za3ZhbGV4LmFsc2FtaXhlciJd



And install a terminal app

Then in a terminal type these
su
alsa_aplay -l

If you have more than one device listed, should be USB generic audio, then you have advanced to level 1 on the "get usb audio on my note" challenge! :rolleyes:

If it says anything other than USB generic audio, let us know what. There is a chance that many more devices can be supported, if they work under a linux environment. So feel free to test there first.

Next up, custom alsa.conf configuration - level 2!

Still testing, but Alsamixer app might yeild some results if you play with it but I think we need an entry in alsa.conf or somewhere first.

Big boss at the end of level 3 will be a custom app for selecting input/output devices :)
 
Last edited:
  • Like
Reactions: bigcow77

krypton_the_slayer

Senior Member
Oct 9, 2010
94
22
Portsmouth
I tried appending this code below in /system/etc/asound.conf

pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}

This is pretty much what others have been doing (same code to get USB devices working under linux)

And I tried various other ways of doing the same thing but ultimately got the output below each time :-( You can see I used a standard PCM 16bit stereo 44kHz wav file.



app_197@android:/sdcard # alsa_aplay -D plughw:1,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1117: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 22052
PERIODS: (3 4)
BUFFER_TIME: 500000
BUFFER_SIZE: 22050
BUFFER_BYTES: 88200
TICK_TIME: 0

not sure if I'm missing something in asound.conf or if we're missing support in another library.


EDIT:

I've been poking around other sources that have USB audio support working.
One suggestion is that the order of module loading matters, and I wonder how we are affected since you compiled all the drivers into the kernel.
The drivers in order of insertion others are using are as follows
snd-hwdep.ko (this is part of speedmod kernel)
snd-rawmidi.ko
snd-usbmidi-lib.ko
snd-usb-audio.ko

Don't know about the order of these but pretty sure they're essential :)

snd-mixer-oss.ko
snd-pcm-oss.ko
 
Last edited:
  • Like
Reactions: celuppi

mdrjr

Senior Member
May 5, 2008
76
64
39
SP
I tried appending this code below in /system/etc/asound.conf

pcm.!default {
type plug
slave {
pcm "hw:1,0"
}
}

This is pretty much what others have been doing (same code to get USB devices working under linux)

And I tried various other ways of doing the same thing but ultimately got the output below each time :-( You can see I used a standard PCM 16bit stereo 44kHz wav file.



app_197@android:/sdcard # alsa_aplay -D plughw:1,0 test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
aplay: set_params:1117: Unable to install hw params:
ACCESS: RW_INTERLEAVED
FORMAT: S16_LE
SUBFORMAT: STD
SAMPLE_BITS: 16
FRAME_BITS: 32
CHANNELS: 2
RATE: 44100
PERIOD_TIME: (125011 125012)
PERIOD_SIZE: 5513
PERIOD_BYTES: 22052
PERIODS: (3 4)
BUFFER_TIME: 500000
BUFFER_SIZE: 22050
BUFFER_BYTES: 88200
TICK_TIME: 0

not sure if I'm missing something in asound.conf or if we're missing support in another library.


EDIT:

I've been poking around other sources that have USB audio support working.
One suggestion is that the order of module loading matters, and I wonder how we are affected since you compiled all the drivers into the kernel.
The drivers in order of insertion others are using are as follows
snd-hwdep.ko (this is part of speedmod kernel)
snd-rawmidi.ko
snd-usbmidi-lib.ko
snd-usb-audio.ko

Don't know about the order of these but pretty sure they're essential :)

snd-mixer-oss.ko
snd-pcm-oss.ko

Loading sequence does matter that's the main reason to leave it to kernel handle.
When you build modules as built-in kernel keeps the loaded all time at ram so you don't have to worry about loading.. its all there.

I'll check and see if snd-mixer-oss and snd-pcm-oss are there...

Meanwhile can you run alsa_aplay -D plughw:1,0 -vvv test.wav
and give us the output? getting that extra verbosity may help.
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Hi All,

    Who I Am: My name is Mauro Ribeiro I'm from Brazil and I HATE long walks its gets even worst if its on the beach. I have 15+ years of experience on Linux, 5+ on Java. I do work as a Network Admin for a Large Brazilian Company.

    Why: It comes my time to help this nice community that gaved me so much.

    What: Linux Kernel 3.0.15 based on Samsung sources with Speedmod Patch's.
    This kernel DOES NOT HAVE MMC_CAP_ERASE so it SHOULD be safe.

    Its basicly Speedmod K3-3 Kernel with A TON OF MODULES. There are modules for USB Ethernet, USB Sound, USB Serial and Much much more.

    BE CAREFUL WHEN YOU LOAD MODULES, MODULES USES MEMORY AND MEMORY IS A PRECIOUS RESOURCE.

    MODULES ARE AT: /data/local/modules

    IF YOU DON'T KNOW HOW TO LOAD A MODULE THIS KERNEL IS NOT FOR YOU.

    ITS NOT A DAILY DRIVER KERNEL HAS ALOT OF STUFF. ITS FOR TESTING.

    Be patient when I say that I'm working on something, My computer is a P3 with 1 Gig of ram. So everything takes time and I have to work too.

    I'm 100% open to sugestions. Wanna chat about this kernel? I'm mdrjr @ freenode! come on IRC and chat with me. Leave this topic for development only.
    I'm always at #project-voodoo .. come and chat.
    DON'T PM ME. COME AND CHAT

    Attached file is a ZIP that SHOULD BE FLASHED THRU CWM!

    kernels are at:
    http://www.mdrjr.net/kernel

    v5:
    Now that modules aren't on initramfs anymore
    We have USB Serial and USB Wifi adapters!
    YAY!
    Let your BackTrack / Wifi Sniffing go
    Also, moved files from XDA to my Hosting.

    v4:
    Added some missing stuff.
    Build another TON of modules.
    To make kernel smaller and friendly on RAM. Modules from now on will be at /data/local/modules.

    v3:
    Fixed some errors most of the stuff is pre-built inside the kernel now.
    Removed USB-Serial Support. Ask me if you need this back.

    v2:
    Some idiot (ME) forgot that hardcore disable's logging for his kernel I have it enabled now.
    Enabled logging and more logging.

    v1:
    Samsung ICS update 3 + Speedmod Patch K3-3.
    Compiled with a tons of modules
    modded initramfs

    PS: Sorry for the typo on the date or.. i'm posting from the future.

    Thanks goes to:
    Linux (Linus)
    Google (Android)
    Samsung (For the phone)
    Francisco Franco (For his work that I stoled... sorry, just few lines of code I'm using on this kernel)
    Speedmod (For releasing all his work too and making this possible)
    Chainfire (Plenty of instructions around and his work for android is HUGE)
    Supercurio (Greate guy talked couple of lines with him. And his awesome job on Sound/Video on android)
    If I'm missing someone else.. PM and I'll give you credit.
    2
    IF YOU DON'T KNOW HOW TO LOAD A MODULE THIS KERNEL IS NOT FOR YOU.

    I don t know how to load a module...
    I want anyway that the usb module for attach a fiio E 17 is loaded by default.
    How to? :):)

    No no, dont fill development threads with this rubbish - google it and learn - then you can use this :)
    1
    I don t know how to load a module...
    I want anyway that the usb module for attach a fiio E 17 is loaded by default.
    How to? :):)

    Inviato dal mio GT-N7000 con Tapatalk 2
    1
    Can't load module.

    insmod says

    'unknown symbol in module or invalid parameter'

    Also I found this, it details what modules the Nook Colour Dev team took to enable usb DAC.
    Looks like we're missing a module?

    insmod /drv/snd-hwdep.ko
    insmod /drv/snd-rawmidi.ko
    insmod /drv/snd-usbmidi-lib.ko
    insmod /drv/snd-usb-audio.ko

    From this page



    Also, @mdrjr where can I find you on freenode?

    #project-voodoo

    and Yes, I got that issue as well... rebuilding stuff now.
    1
    Another xda dev pointed me to this dmesg output from an s3 when connecting a c media dac

    http://pastebin.com/nHmTRUN6

    This is something like we'll see on success.

    Sent from my GT-N7000 using XDA

    Drivers are built-in on V3. You shouldn't need any modules to get it working.