Success with the debug port.

Discussion in 'Asus (Android)' started by mp035, Dec 5, 2011.

  1. mp035

    mp035 Underacheiver

    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    15
    I have had some success connecting to the serial terminal on the debug port (DEBUGCON1) on the Eee Note. The settings for the serial port are 38400, n, 8, 1.

    The pins are so small that I had to solder a single strand of copper to the connector for the TX pin and hold a sharp CRO probe on the connector for the RX pin.

    Counting the pin marked with a triangle as pin 1, the important pins are:

    20 - Eee Note Rx
    19 - GND
    18 - GND
    17 - Eee Note Tx

    When the EeeNote is booted without an internal uSD card, the following is output to the serial terminal:

    Code:
    *** Configure Flash...                                                                                   
    Fuse Config from boot ROM:                                                                               
    2d                                                                                                       
    mss_get_card failed                                                                                      
    Init MMC device failed, goto update mode.                                                                
    Prepare update mode bootup.
    I couldn't glean anything from the above.
    Here is a transcript of a quick session on the serial terminal:
    Code:
    *** Configure Flash...
    Fuse Config from boot ROM:
    2d      
    Read system parameters.
    Prepare normal mode bootup.
    Read normal ramdisk image.
    Read normal kernel image.
    Bootup normal mode.
    Uncompressing Linux...........................................................................................................................
    PXA_CAMERA: PXA Camera driver loaded for/dev/video0 
    pxacamera: mi2031 chip_test=-1
    init sensor board ok
    Start eTablet System...
    init started:  BusyBox v1.01 (2011.01.27-10:16+0000) multi-call binary
    
    
    BusyBox v1.01 (2011.01.27-10:16+0000) Built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    
    Processing /etc/profile... Done
    err=0
    mknod ok
    umount: /mnt/extsdcard: Invalid argument
    mount: Mounting /dev/mss/blk1 on /mnt/extsdcard failed: Invalid argument
    /etc/udev/scripts/sdautomount.sh: 9: /mnt/extsdcard/./ASUS_ETABLE_HOPPER_TEST: not found
    err=0
    mknod ok
    umount: /mnt/extsdcard: Invalid argument
    /etc/udev/scripts/sdautomount.sh: 9: /mnt/extsdcard/./ASUS_ETABLE_HOPPER_TEST: not found
    Using /lib/modules/bmm.ko
    wacom digitizer: set samplerate 80pps
    VERIFY ID: numid=4,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=4,iface=MIXER,name='Headphone Playback Switch'
      ; type=BOOLEAN,access=rw---,values=2
      : values=on,on
    VERIFY ID: numid=3,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=3,iface=MIXER,name='Headphone Playback Volume'
      ; type=INTEGER,access=rw---,values=2,min=0,max=31,step=0
      : values=0x17,0x17
    VERIFY ID: numid=2,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=2,iface=MIXER,name='Speaker Playback Switch'
      ; type=BOOLEAN,access=rw---,values=2
      : values=on,on
    VERIFY ID: numid=1,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=1,iface=MIXER,name='Speaker Playback Volume'
      ; type=INTEGER,access=rw---,values=2,min=0,max=31,step=0
      : values=0x11,0x11
    [root@Linux eTablet]#ls          
    bin         lib         remount.sh  run.sh      translator  version
    [root@Linux eTablet]#ls /
    UserApp        eTablet        media          sbin           usr
    bin            etc            mnt            srv            var
    boot           home           opt            sys            wac_tch
    cross-tools    lib            proc           tmp
    dev            lost+found     root           userStyle.css
    [root@Linux eTablet]#ˀ�Ȁ@�@Flush file system...
    The system is going down NOW !!
    Sending SIGTERM to all processes.
    The system is halted. Press Reset or turn off power
    *** OBM ***
    *** Configure Flash...
    Fuse Config from boot ROM:
    2d      
    Read system parameters.
    Prepare normal mode bootup.
    Read normal ramdisk image.
    
    I'm going to try to get an FPC connector from ebay and fit up an accesible serial port. Hopefully this will help with kernel changes.
     

    Attached Files:

  2. Jamie-B

    Jamie-B Scribbler - Standard Member

    Messages:
    262
    Likes Received:
    31
    Trophy Points:
    41
    That looks awesomely clever, mp035. What is the aim of what (and what is it exactly that) you're doing? You say it will hopefully help with kernel changes - does this mean that this step could help to change the OS from Linux to Android, for example? And if you figure out how to get that far, would it be easy for anyone else to follow your example through a guide? I'm very curious about this (whatever it is).
     
  3. mp035

    mp035 Underacheiver

    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    15
    Hi Jamie-B,
    The purpose of enabling the debug port is to allow the installation of a completely different OS (my goal is to get the angstrom distribution installed).

    Tablets do not have a keyboard, or a text mode video driver, so the only way to get the basic services running is via serial terminal.

    Having the serial terminal provides a means of logging into a system that only has the most basic hardware configured.

    Thx for your interest.
     
  4. l1q1d

    l1q1d Pen Pal - Newbie

    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    15
    Great! Did you use a serial to usb adapter?
     
  5. mp035

    mp035 Underacheiver

    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    15
    Yes, I used a FT232 3.3v breakout board from sparkfun.com
     
  6. LKJ

    LKJ Pen Pal - Newbie

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    5
    Hi mp035, is there any progress with kernel changes?
     
  7. PF4Tablet

    PF4Tablet Pen Pal - Newbie

    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    15
    Hi mp035
    What are the benefits of porting this new OS on eee Note?

    thanks
    PF
     
  8. BlacKnight

    BlacKnight Scribbler - Standard Member

    Messages:
    184
    Likes Received:
    0
    Trophy Points:
    31
    I made an adaptor to connect to the debug port. But I found the pin-out was different. I think the pin-out is like this...

    20 - Eee Note Rx
    19 - Vcc = 3.0v
    18 - Vcc = 3.0v
    17 - Eee Note Tx
    13 - GND
    9 - GND
    4 - GND

    To make the adaptor I used the following components:

    FFC connector
    FFC jumper cable
    0.5mm pitch connector prototyping board which I sawed in half.

    I used a logic-level to USB serial adaptor I had left over from another project.

    Here's the output of a terminal session (boot up and shut down)...
    Code:
    *** OBM ***
    *** Configure Flash...
    Fuse Config from boot ROM:
    2d
    Read system parameters.
    Prepare normal mode bootup.
    Read normal ramdisk image.
    Read normal kernel image.
    Bootup normal mode.
    Uncompressing Linux.............................................................................................................................. done, booting the kernel.
    PXA_CAMERA: PXA Camera driver loaded for/dev/video0
    pxacamera: mi2031 chip_test=-1
    init sensor board ok
    Start eTablet System...
    init started:  BusyBox v1.01 (2011.01.27-10:16+0000) multi-call binary
    error: /opt/etc/ini.d directory not found
    
    
    BusyBox v1.01 (2011.01.27-10:16+0000) Built-in shell (ash)
    Enter 'help' for a list of built-in commands.
    
    
    Processing /etc/profile... Done
    err=0
    mknod ok
    umount: /mnt/extsdcard: Invalid argument
    mount: Mounting /dev/mss/blk1 on /mnt/extsdcard failed: Invalid argument
    err=0
    mknod ok
    /etc/udev/scripts/sdautomount.sh: 9: /mnt/extsdcard/./ASUS_ETABLE_HOPPER_TEST: not found
    umount: /mnt/extsdcard: Invalid argument
    /etc/udev/scripts/sdautomount.sh: 9: /mnt/extsdcard/./ASUS_ETABLE_HOPPER_TEST: not found
    Using /lib/modules/bmm.ko
    wacom digitizer: set samplerate 80pps
    VERIFY ID: numid=4,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=4,iface=MIXER,name='Headphone Playback Switch'
      ; type=BOOLEAN,access=rw---,values=2
      : values=on,on
    VERIFY ID: numid=3,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=3,iface=MIXER,name='Headphone Playback Volume'
      ; type=INTEGER,access=rw---,values=2,min=0,max=31,step=0
      : values=0x17,0x17
    VERIFY ID: numid=2,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=2,iface=MIXER,name='Speaker Playback Switch'
      ; type=BOOLEAN,access=rw---,values=2
      : values=on,on
    VERIFY ID: numid=1,iface=MIXER,name=''
    cset
    call ond_ctl_elem_info
    numid=1,iface=MIXER,name='Speaker Playback Volume'
      ; type=INTEGER,access=rw---,values=2,min=0,max=31,step=0
      : values=0x11,0x11
    wacom touch: set samplerate 133pps
    [root@Linux eTablet]#ls
    bin           lib           run.sh        version
    hide_dict.sh  remount.sh    translator
    [root@Linux eTablet]#
    [root@Linux eTablet]#error: /opt/etc/ini.d directory not found
    Flush file system...
    The system is going down NOW !!
    Sending SIGTERM to all processes.
    The system is halted. Press Reset or turn off power
    Here's a photo of the adaptor...

    [​IMG]
     

    Attached Files:

    Last edited by a moderator: May 18, 2015
  9. mp035

    mp035 Underacheiver

    Messages:
    87
    Likes Received:
    0
    Trophy Points:
    15
    @LKJ, I managed to get a kernel for one of the Zaurus models to boot, however the kdrive xserver did not have support for the Eee Note display compiled in. Asus has posted sources for everything on their website, so It should be possible to get it up and running.

    @PF4Tablet, the Angstrom Distribution has a massive package feed. There are thousands of applications which can be installed via ipkg. Angstrom also has the option of an X-server so that conventional applications can be ported more easily.

    @Blacknight, Thanks for the info. I will recheck the levels on pins 19 and 18.
     
  10. l1q1d

    l1q1d Pen Pal - Newbie

    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    15
    @mp035 did you try to use a 3.1 kernel? Did you enable the framebuffer to use the X server?
     

Share This Page