This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

can't interrupt uboot autoboot

Hi,

    I am using dm8148, I change the default uart0 to uart2 according to this link:

http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Using_different_UART_than_the_default_EVM_configuration_as_console.

I can see the boot message ,but  I can't interrupt the autoboot. If I change the DEFAULT_UART_BASE to UART2_BASE, the uboot just stop after printing "TI8148_IPNC#", and I also can't input anything.

Anyone can help??

  • Dan,

    Can you try booting from UART? Thus you will enter the 1st stage bootloader (TI-MIN#) for sure. See the below e2e post for more info:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/284046/997063.aspx#997063

    Provide also full boot up log.

    Regards,
    Pavel

  • Hi Pavel,

    I have read the page, and I think my problem is difficult to that one.

    If I don't change the marco DEFAULT_UART_BASE,my board can boot up.

    As I used to using uart0 as default  uboot console, I haven't change the default console of linux to uart2, so the last boot log is "Starting kernel ...".

    Now I can only use uart2 as console to print, but I couldn't use this console to change the parameter passed to bootargs as console=ttyO2,115200n8.

    ps: I muxed the pinctl AH6 as uart2_txd and AG6 as uart2_rxd.

    Regard,

    Dan

  • Dan,

    If you change the console from UART0 (default) to UART2, you should not be able to use UART0 as console!

    Dan Intel said:
    If I don't change the marco DEFAULT_UART_BASE,my board can boot up.

    Do you mean you can use the UART0 as console? Have you done any HW modifications in your custom board to change the console from UART0 to UART2?

    See also if the below e2e threads will be in help:

    http://e2e.ti.com/support/embedded/linux/f/354/t/148023.aspx

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/191218/712451.aspx#712451

    BR
    Pavel

  • Hi Pavel,

    Yes , my board's default uart is uart0, which is the same the evm. it seems that uart0_txd is direct to gnd when I test it with avometer last week. I thought I can use uart2 as default console according to Using_different_UART_than_the_default_EVM_configuration_as_console.

    I have read the threads you give to me I think that all  about how to  change uart in linux,kernel.

    Now I get  from your words that if I want to use uart2 as my default console I have to do some HW modificatios in my custom board, is it ? How can I change the HW ?

    What I can do in this situtation that the uart0 could not work? please give me some advice, THX!

    Regrads,

    Dan

  • Dan,

    Dan Intel said:
    I thought I can use uart2 as default console according to Using_different_UART_than_the_default_EVM_configuration_as_console.

    You can use UART2 for console, but after the appropriate HW and SW modifications.

    Dan Intel said:
    Now I get  from your words that if I want to use uart2 as my default console I have to do some HW modificatios in my custom board, is it ? How can I change the HW ?

    The DM814x EVM baseboard (BB) has UART0 as console by default, as UART0 pins/signal (uart0_txd and uart0_rxd) are selected and connected to DB9 connector (serial port) through MAX3221CPWR chip. See the DM814x EVM schematics:

    MS_TI_DM814x_REVD_BB_HUG.pdf

    The UART0 connector (P2) is connected to DM814x device through RS232 Transceiver (MAX3221CPWR).

    We have two signals/pins from DM814x UART0  (uart0_txd and uart0_rxd) connected to the MAX3221CPWR and then going into the DB9. See MS_TI_DM814x_BB_REVD_SCH.pdf, page 24

    Note also we have one enable signal (UART0_OFF) which is GPIO pin.

    So, you have selected UART2 pins, but do you have something attached to these pins? Something like RS232 Transceiver and DB9 connector? Without these, how you will use UART2 as console?

    Regards,
    Pavel

  • HI Pavel,

    Yes, my custom board uses connector which is a TTL transmit to USB. It's ok as I used this to communicate with uart0. But I couldn't  enter uboot console when connect to uart2, the same situtation to uart1. Except to changing the COM address and pinmux, is there  any variable I froget to set?

    Regards,

    Dan

  • Dan,

    Dan Intel said:
    Yes, my custom board uses connector which is a TTL transmit to USB. It's ok as I used this to communicate with uart0.

    So, your DM814x custom board use UART0 as console, and UART0 (uart0_txd and uart0_rxd) is connected to FTDI chip (i.e. FT232RQ), which convert UART to USB, and then USBDM/P is connected to USB connector, thus you are using USB cable for console?

    Dan Intel said:
    But I couldn't  enter uboot console when connect to uart2

    Do you have FTDI chip connected to UART2 (uart2_txd and uart2_rxd) and then this FTDI chip connected to USB connector?

    Regards,
    Pavel

  • Hi Pavel,

    The FTDI chip(for example) is integrated into the connector, it doesn't belong to board. so if I change uart, I simply connect tx ,rx and gnd to the respectively pin of the connector.

  • Dan,

    I see you are using IPNC RDK. Can you check your u-boot is up-to-date with the below branch:

    http://arago-project.org/git/projects/?p=u-boot-ipnc-rdk-dm81xx.git;a=shortlog;h=refs/heads/ipncrdk_psp_dm81xx_uboot

    Regards,
    Pavel

  • Hi Pavel,

    Sorry, I should have told you about the rdk I'm using.

    We are using RDK 3.5,  and I think I didn't do any patch, so my uboot is not up-to-date.

    Is it is ok to change default uart in RDK 3.8?

    Regards,

    Dan

  • Dan,

    Dan Intel said:
    We are using RDK 3.5

    Is this IPNC RDK or DVR RDK?

    I would recommend you to switch to the latest version of the u-boot.

    For IPNC RDK:

    http://arago-project.org/git/projects/?p=u-boot-ipnc-rdk-dm81xx.git;a=shortlog;h=refs/heads/ipncrdk_psp_dm81xx_uboot

    For DVR RDK:

    http://arago-project.org/git/projects/?p=u-boot-dvr-rdk-dm81xx.git;a=shortlog;h=refs/heads/dvrrdk_uboot_int_branch

    Regards,
    Pavel

  • Hi Pavel,

    yes, IPNC RDK。

    I will try and then tell you, THX!

    Regards,

    Dan

  • Dan,

    Dan Intel said:
    Yes, my custom board uses connector which is a TTL transmit to USB. It's ok as I used this to communicate with uart0. But I couldn't  enter uboot console when connect to uart2, the same situtation to uart1.

    The DM811x/J5Eco EVM UART console has similar design, so you might be able to use the HW diagnostic test (CCS project) to see if the HW transition from UART0 to UART1/2 is correct.

    http://support.spectrumdigital.com/boards/j5ecoevm/reve/

    Test Code -> j5ecoevm_BSL.zip -> j5ecoevm -> tests -> uart_usb

    You should modify the source code according to your specific HW design.

    BR
    Pavel

  • Dan,

    Can you also share where and how exactly you configure the UART2 pins in u-boot?

    Have you modified the below files for UART2?

    u-boot-omap3/include/configs/ti8148_evm.h

    - #define CONFIG_SYS_NS16550_COM1        0x48020000    /* Base EVM has UART0 */

    +#define CONFIG_SYS_NS16550_COM1        0x48024000    /* Base EVM has UART2 */

    /u-boot-omap3/arch/arm/include/asm/arch-ti81xx/cpu.h

    #ifdef CONFIG_TI814X
    #define DEFAULT_UART_BASE        UART2_BASE
    #endif

    See also the below e2e thread:

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/p/239814/849548.aspx#849548

    Regards,
    Pavel

  • HI  Pavel,

    Ok, I will follow your method to test my HW.

    1.u-boot/ include/configs/ti8148_ipnc.h,  as we use ipnc,and the change is the same to yours

    2.u-bootboard/ti/ti8148_ipnc/mux.h,     I change the value of pin 68 and  69 from (0), (7) to (1), (1).

    By the two changes, uboot can boot up normal unitl to starting kernl execpt I couldn't enter uboot console.

    If I add your second change. namely changing

     

  • Dan,

    Dan Intel said:
    By the two changes, uboot can boot up normal unitl to starting kernl execpt I couldn't enter uboot console.

    Can you provide full console log?

    Regards,
    Pavel

  • HI Pavel,

    
    U-Boot 2010.06 (Nov 07 2014 - 16:36:52) DM8127_IPNC_3.50.00
    
    TI8148-GP rev 2.1
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    L3 clk: 200MHz
    IVA clk: 450MHz
    ISS clk: 400MHz
    DSP Default OFF
    DSS Default OFF
    
    DRAM:  512 MiB
    MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1
    Using default environment
    
    The 2nd stage U-Boot will now be auto-loaded
    Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed
    Hit any key to stop autoboot:  0 
    reading u-boot.bin
    
    186228 bytes read
    ## Starting application at 0x80800000 ...
    
    
    U-Boot 2010.06 (Nov 07 2014 - 16:41:12) DM8127_IPNC_3.50.00
    
    TI8148-GP rev 2.1
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    L3 clk: 200MHz
    IVA clk: 450MHz
    ISS clk: 400MHz
    DSP Default OFF
    DSS Default OFF
    
    DRAM:  512 MiB
    NAND:  HW ECC BCH8 Selected
    256 MiB
    MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1
                              .:;rrr;;.                   
                        ,5#@@@@#####@@@@@@#2,             
                     ,A@@@hi;;;r5;;;;r;rrSG@@@A,          
                   r@@#i;:;s222hG;rrsrrrrrr;ri#@@r        
                 :@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:      
                B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B     
               @@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@    
              @@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@   
             @@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@  
            G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G 
            @9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@ 
           X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X
           @#;rsrsrsrsrr;r2ir@@@###::rrsrsrsrsrsrsrsrsr:@@
           @A:rrsrsrsrr;:2@29@@M@@@;:;rrrrsrsrsrsrsrsrs;H@
           @&;rsrsrsrr;A@@@@@@###@@@s::;:;;rrsrsrsrsrsr;G@
           @#:rrsrsrsr;G@5Hr25@@@#@@@#9XG9s:rrrrsrsrsrs:#@
           M@;rsrsrsrs;r@&#;::S@@@@@@@M@@@@Grr:;rsrsrsr;@#
           :@s;rsrsrsrr:M#Msrr;;&#@@@@@@@@@@H@@5;rsrsr;s@,
            @@:rrsrsrsr;S@rrrsr;:;r3MH@@#@M5,S@@irrsrr:@@ 
             @A:rrsrsrsrrrrrsrsrrr;::;@##@r:;rH@h;srr:H@  
             ;@9:rrsrsrsrrrsrsrsrsr;,S@Hi@i:;s;MX;rr:h@;  
              r@B:rrrrsrsrsrsrsrr;;sA@#i,i@h;r;S5;r:H@r   
               ,@@r;rrrsrsrsrsrr;2BM3r:;r:G@:rrr;;r@@,    
                 B@Mr;rrrrsrsrsr@@S;;;rrr:5M;rr;rM@H      
                  .@@@i;;rrrrsrs2i;rrrrr;r@M:;i@@@.       
                    .A@@#5r;;;r;;;rrr;r:r#AsM@@H.         
                       ;&@@@@MhXS5i5SX9B@@@@G;            
                           :ihM#@@@@@##hs,                
    
    Net:   Detected MACID:0:17:eb:59:69:f2
    cpsw
    Hit any key to stop autoboot:  0 
    reading uImage
    
    2700860 bytes read
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-2.6.37_DM8127_IPNC_3.50.00
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2700796 Bytes = 2.6 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    
    
    U-Boot 2010.06 (Nov 07 2014 - 17:15:42) DM8127_IPNC_3.50.00
    
    TI8148-GP rev 2.1
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    L3 clk: 200MHz
    IVA clk: 450MHz
    ISS clk: 400MHz
    DSP Default OFF
    DSS Default OFF
    
    DRAM:  512 MiB
    MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1
    Using default environment
    
    The 2nd stage U-Boot will now be auto-loaded
    Please do not interrupt the countdown till TI8148_EVM prompt if 2nd stage is already flashed
    Hit any key to stop autoboot:  0 
    reading u-boot.bin
    
    186228 bytes read
    ## Starting application at 0x80800000 ...
    
    
    U-Boot 2010.06 (Nov 07 2014 - 17:19:55) DM8127_IPNC_3.50.00
    
    TI8148-GP rev 2.1
    
    ARM clk: 600MHz
    DDR clk: 400MHz
    L3 clk: 200MHz
    IVA clk: 450MHz
    ISS clk: 400MHz
    DSP Default OFF
    DSS Default OFF
    
    DRAM:  512 MiB
    NAND:  HW ECC BCH8 Selected
    256 MiB
    MMC:   OMAP SD/MMC: 0, ON-BOARD SDIO: 1
                              .:;rrr;;.                   
                        ,5#@@@@#####@@@@@@#2,             
                     ,A@@@hi;;;r5;;;;r;rrSG@@@A,          
                   r@@#i;:;s222hG;rrsrrrrrr;ri#@@r        
                 :@@hr:r;SG3ssrr2r;rrsrsrsrsrr;rh@@:      
                B@H;;rr;3Hs;rrr;sr;;rrsrsrsrsrsr;;H@B     
               @@s:rrs;5#;;rrrr;r#@H:;;rrsrsrsrsrr:s@@    
              @@;;srs&X#9;r;r;;,2@@@rrr:;;rrsrsrsrr;;@@   
             @@;;rrsrrs@MB#@@@@@###@@@@@@#rsrsrsrsrr;;@@  
            G@r;rrsrsr;#X;SX25Ss#@@#M@#9H9rrsrsrsrsrs;r@G 
            @9:srsrsrs;2@;:;;:.X@@@@@H::;rrsrsrsrsrsrr:3@ 
           X@;rrsrsrsrr;XAi;;:&@@#@Bs:rrsrsrsrsrsrsrsrr;@X
           @#;rsrsrsrsrr;r2ir@@@###::rrsrsrsrsrsrsrsrsr:@@
           @A:rrsrsrsrr;:2@29@@M@@@;:;rrrrsrsrsrsrsrsrs;H@
           @&;rsrsrsrr;A@@@@@@###@@@s::;:;;rrsrsrsrsrsr;G@
           @#:rrsrsrsr;G@5Hr25@@@#@@@#9XG9s:rrrrsrsrsrs:#@
           M@;rsrsrsrs;r@&#;::S@@@@@@@M@@@@Grr:;rsrsrsr;@#
           :@s;rsrsrsrr:M#Msrr;;&#@@@@@@@@@@H@@5;rsrsr;s@,
            @@:rrsrsrsr;S@rrrsr;:;r3MH@@#@M5,S@@irrsrr:@@ 
             @A:rrsrsrsrrrrrsrsrrr;::;@##@r:;rH@h;srr:H@  
             ;@9:rrsrsrsrrrsrsrsrsr;,S@Hi@i:;s;MX;rr:h@;  
              r@B:rrrrsrsrsrsrsrr;;sA@#i,i@h;r;S5;r:H@r   
               ,@@r;rrrsrsrsrsrr;2BM3r:;r:G@:rrr;;r@@,    
                 B@Mr;rrrrsrsrsr@@S;;;rrr:5M;rr;rM@H      
                  .@@@i;;rrrrsrs2i;rrrrr;r@M:;i@@@.       
                    .A@@#5r;;;r;;;rrr;r:r#AsM@@H.         
                       ;&@@@@MhXS5i5SX9B@@@@G;            
                           :ihM#@@@@@##hs,                
    
    Net:   Detected MACID:0:17:eb:59:69:f2
    cpsw
    Hit any key to stop autoboot:  0 
    reading uImage
    
    2700860 bytes read
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-2.6.37_DM8127_IPNC_3.50.00
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    2700796 Bytes = 2.6 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    

    Above file is one log that I didn't change the  marco DEFAULT_UART_BASE. When I started the work changing uart0 to uart2 that I found the log was short and looked the same ,so I didn't keep the recently log, this maybe a one of my fault. 

    I don't know why my last reply isn't complete,  the following I want to express is : If I change the marco DEFAULT_UART_BASE, the uboot is stopped at "TI814x_IPNC#" without any bootdelay.  And my HW engineer may find some HW problems  due to the short circuit of uart0_tx, he is working on it.
    I will show you my new log as soon as possible.

    Regards,

    Dan