Jet Hardware modem + kernel

Kernel development related

Jet Hardware modem + kernel

Postby MadRocker » Sat Jan 22, 2011 7:40 am

This is weird, it appears that the modem is active during JetQi load already.
This is the same as when in Touchwiz and pc studio usb cable option is selected.

I started the phone with no mem card in and usb-viewer running, see output below.
Gnome ppp detected it on /dev/ttyACM0 , analog modem , speed 460880
cdc_acm

We might be able to instead of adding more drivers get the modem / data part of the phone working fairly easy by just triggering it or something. It stays active into Froyo and likely even when usb cable is disconnected.
This could also be part of the battery draining so fast.

usb-viewer:
Code: Select all
SAMSUNG Mobile Modem
Manufacturer: SAMSUNG Electronics Co.,Ltd.
Speed: 480Mb/s (high)
USB Version:  2.00
Device Class: 02(comm.)
Device Subclass: 00
Device Protocol: 00
Maximum Default Endpoint Size: 64
Number of Configurations: 1
Vendor Id: 04e8
Product Id: 6601
Revision Number:  1.00

Config Number: 1
   Number of Interfaces: 3
   Attributes: a0
   MaxPower Needed: 400mA

   Interface Number: 0
      Name: cdc_acm
      Alternate Number: 0
      Class: 02(comm.)
      Sub Class: 02
      Protocol: 01
      Number of Endpoints: 1

         Endpoint Address: 83
         Direction: in
         Attribute: 3
         Type: Int.
         Max Packet Size: 64
         Interval: 1ms

   Interface Number: 1
      Name: cdc_acm
      Alternate Number: 0
      Class: 0a(data )
      Sub Class: 00
      Protocol: 00
      Number of Endpoints: 2

         Endpoint Address: 81
         Direction: in
         Attribute: 2
         Type: Bulk
         Max Packet Size: 512
         Interval: 0ms

         Endpoint Address: 02
         Direction: out
         Attribute: 2
         Type: Bulk
         Max Packet Size: 512
         Interval: 0ms

   Interface Number: 2
      Name: visor
      Alternate Number: 0
      Class: ff(vend.)
      Sub Class: 00
      Protocol: 00
      Number of Endpoints: 2

         Endpoint Address: 84
         Direction: in
         Attribute: 2
         Type: Bulk
         Max Packet Size: 512
         Interval: 0ms

         Endpoint Address: 05
         Direction: out
         Attribute: 2
         Type: Bulk
         Max Packet Size: 512
         Interval: 0ms
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Advertisement

       

Re: Jet Hardware modem + kernel

Postby Dopi » Tue Jan 25, 2011 3:46 pm

MadRocker wrote:This is weird, it appears that the modem is active during JetQi load already.
This is the same as when in Touchwiz and pc studio usb cable option is selected.

I started the phone with no mem card in and usb-viewer running, see output below.
Gnome ppp detected it on /dev/ttyACM0 , analog modem , speed 460880
cdc_acm

That is indeed an interesting observation. However, we need to check if this is really the MSM part or the S3C part that you are seeing. I think both can be connected to the USB port via a set of switches (including the main USB-port switch).

MadRocker wrote:We might be able to instead of adding more drivers get the modem / data part of the phone working fairly easy by just triggering it or something. It stays active into Froyo and likely even when usb cable is disconnected.

Yes, I agree. I was actually assuming something like that since I patched the bootloader. Before loading the kernel I executed some function calls that were done in the original bootloader, before the handover to the Samsung system. One of these functions had something to do with baseband initialization. Since then I was searching for a sign that our baseband processor was already alive ... I hope you just found that. As a test we could disable the init function in the bootloader and see if you can still see something when connection USB.

Cheers,
Dopi
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Re: Jet Hardware modem + kernel

Postby MadRocker » Wed Jan 26, 2011 3:07 am

No mem card in phone and same results.

You might be able to put later kernel .h files into JetQi next version to compensate for issues in 2.6.29 .
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: Jet Hardware modem + kernel

Postby Dopi » Wed Jan 26, 2011 4:17 pm

MadRocker wrote:No mem card in phone and same results.

You might be able to put later kernel .h files into JetQi next version to compensate for issues in 2.6.29 .

Maybe I did not make this clear enough. To test this you need to patch JetQi e.g. by removing or commenting out lines 219 to 228 (see below) in src/cpu/s3c6410/jet.c of the JetQi source.

Cheers,
Dopi

Code: Select all
LCD_print_newline("Initializing baseband ...");
asm volatile (
"stmfd sp!, {r1-r4}\n\t"
"ldr r0, aadr_Baseband_Init\n\t"
"blx r0\n\t"
"b after_bb_init\n\t"
"aadr_Baseband_Init: .word 0x5141983C\n\t"
"after_bb_init:\n\t"
"ldmfd sp!, {r1-r4}\n\t"
);
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Re: Jet Hardware modem + kernel

Postby MadRocker » Fri Jan 28, 2011 2:38 am

Sorry now I get it.
JetQi not going to touch it now, maybe later once I get more skills with Android ect.
I do not yet feel confident enough with JetQi.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: Jet Hardware modem + kernel

Postby Dopi » Fri Jan 28, 2011 10:15 am

MadRocker wrote:Sorry now I get it.
JetQi not going to touch it now, maybe later once I get more skills with Android ect.
I do not yet feel confident enough with JetQi.

I will try to create a patched version to test this.

Cheers,
Dopi
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Re: Jet Hardware modem + kernel

Postby Dopi » Tue Feb 22, 2011 10:28 pm

Dopi wrote:
MadRocker wrote:I will try to create a patched version to test this.

Attached is a patched JetQi that does not call the "baseband init" function. My testing shows that the Samsung Modem USB device is still visible. I did not make any more testing. If anyone can find out more, please post your results here.

Cheers,
Dopi
You do not have the required permissions to view the files attached to this post.
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm


Return to JetKernel

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron