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.

DM8148 EVM Boot from NFS

I have the DM8148 EVM

http://www.ti.com/tool/tmdxevm8148

I am trying  to boot it, following the instruction in the DM EX Software Developers guide.

However,

The document referred to ‘DM814x_AM387x_PSP_U-Boot.pdf’ shows only boot mode settings for NAND/SPI/UART/SD/NOR.

 What should be the switch settings for booting the board from NFS?

I need a response quickly  as i am unable  get past this point.

  • You'll at least need to load uboot from NAND/SD/NOR/SPI.  Afterwards the kernel can be fetched over NFS.

  • I have gotten to this point in the EZDSK install users guide

    3.

    Minicom is set up to communicate with the target over RS-232. If you want to use a windows host for

    connecting to the target instead, see the #Setting_up_Tera_Term section.

    Note! To boot the board from NFS, you may need to change the boot switch settings on your EVM. Please

    refer the UBoot user guide in the board-support/docs folder for more information on the switch settings.

    If you start minicom on your Linux development host using minicom -w (or Tera Term on Windows) and

    power cycle the EVM, Linux will boot.

    After Linux boots up, login into the target using root as the login name.

    What i am asking is ...........what are the settings to boot from NFS  ?

  • Hi Derek,

    I have recently got the DM814x board & I am stuck in the same step as you did.

    Did you solve it? If so, it will be very grateful if you can share the solution.

    Thanks in adv,

    Manisha.

  • Just set env in 2nd u-boot

  • Mr Free said:

    Just set env in 2nd u-boot

    Can you please further explain? I am also stuck on here, it seems to me that there is nothing on NAND? My DM8148 EVM only boots in SD mode with SD card - all other options seem not to work, I only get u-boot prompt when booting with SD card

  • Tobias,

    Its nothing but to set the proper environment variables in u-boot. What is your problem in booting from NAND. How are you flashing it to NAND? Explain the detailed steps along with logs.

  • I just received a TMDXEVM8148 and followed Quick Start Guide - with SD it is working, i can see matrix demo und log in via serial console. Now I was going through Software Developers Guide where I got stuck in "Setting up the EZ SDK" for setting it up to boot from NFS. I rebooted the sytem via serial, entered u-boot and wanted to set environment as follows:

    setenv bootdelay 4
    setenv baudrate 115200
    setenv bootargs console=ttyO0,115200n8 rootwait rw mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=192.168.13.108:/data/targetfs ip=dhcp
    setenv bootcmd 'mmc rescan 0;fatload mmc 0 0x82000000 uImage;bootm 0x82000000'

    and save them via 'saveenv' but this did not work (hanging in Erasing Nand...). I am also not sure if it is a problem if I get

    NAND:  HW ECC Hamming Code selected
    No NAND device found!!!
    0 MiB
    *** Warning - bad CRC or NAND, using default environment

    Logs:

    Restarting system.


    U-Boot 2010.06 (Nov 10 2011 - 23:50:16)

    TI8148-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    DRAM:  2 GiB
    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
    MMC:   OMAP SD/MMC: 0
    Hit any key to stop autoboot:  0
    reading u-boot.bin

    185044 bytes read
    ## Starting application at 0x80800000 ...


    U-Boot 2010.06 (Nov 10 2011 - 23:45:47)

    TI8148-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    I2C:   ready
    DRAM:  2 GiB
    NAND:  HW ECC Hamming Code selected
    No NAND device found!!!
    0 MiB
    *** Warning - bad CRC or NAND, using default environment

                              .:;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,                

    MMC:   OMAP SD/MMC: 0
    Net:   <ethaddr> not set. Reading from E-fuse
    Detected MACID:40:5f:c2:3e:7:a8
    cpsw
    Hit any key to stop autoboot:  0
    TI8148_EVM#setenv bootdelay 4
    TI8148_EVM#setenv baudrate 115200
    ## Switch baudrate to 115200 bps and press ENTER ...
    TI8148_EVM#
    TI8148_EVM#setenv bootargs console=ttyO0,115200n8 rootwait rw mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=192.168.13.108:/data/targetfs ip=dhcp
    TI8148_EVM#setenv bootcmd 'mmc rescan 0;fatload mmc 0 0x82000000 uImage;bootm 0x82000000'
    TI8148_EVM#print
    autoload=yes
    verify=yes
    bootfile=uImage
    ramdisk_file=ramdisk.gz
    loadaddr=0x81000000
    script_addr=0x80900000
    loadbootscript=fatload mmc 0 ${script_addr} boot.scr
    bootscript= echo Running bootscript from MMC/SD to set the ENV...; source ${script_addr}
    stdin=serial
    stdout=serial
    stderr=serial
    ethaddr=40:5f:c2:3e:07:a8
    ethact=cpsw
    bootdelay=4
    baudrate=115200
    bootargs=console=ttyO0,115200n8 rootwait rw mem=364M@0x80000000 mem=320M@0x9FC00000 vmalloc=500M notifyk.vpssm3_sva=0xBF900000 root=/dev/nfs nfsroot=192.168.13.108:/data/targetfs ip=dhcp
    bootcmd=mmc rescan 0;fatload mmc 0 0x82000000 uImage;bootm 0x82000000

    Environment size: 633/8188 bytes
    TI8148_EVM#saveenv
    Saving Environment to NAND...
    Erasing Nand...
  • If I switch Bootmode on EVM (S1) to NAND I don't see anything via serial console - so this is why I assume that NAND is empty on EVM?

  • Solved one of my problems - if you get the error

    No NAND device found!!!
    0 MiB

    than you have to set SW2 NAND switch to ON!

    I am still unsure if my NAND is empty anyway...can't flash stage 1 from SD boot stage2 as described here:

    http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_U-Boot#Flashing_1st_stage_to_NAND_from_2nd_stage_in_SD_boot

    because I get the problem:

    TI8148_EVM#mmc rescan 0
    TI8148_EVM#mw.b 0x81000000 0xFF 0x20000
    TI8148_EVM#fatload mmc 0 0x81000000 u-boot.min.nand
    reading u-boot.min.nand

    ** Unable to read "u-boot.min.nand" from mmc 0:1 **
    TI8148_EVM#

  • Tobias,

    Follow this wiki page. 

    http://processors.wiki.ti.com/index.php/DM814x_AM387x_PSP_04.01.00.07_Release_Notes

    Check the statement and try setting the bus width properly.

    This release supports both 8 and 16 bit NAND flash. To use 8-bit NAND, set the CS0BW (buswidth) switch on the EVM to ON state (CS0BW is connected to BTMODE12 switch on DM814X board). To use 16-bit NAND, set the CS0BW (buswidth) switch on the EVM to OFF state. The switch states for 8 and 16 bit (ON and OFF respectively) are decided so as to maintain backward compatibility with our previous releases which supported 16-bit NAND flash by default (i.e. CS0BW pin in OFF state).

  • The problem of not being able to flash stage 1 into nand seems to be somewhere with the SD card

    TI8148_EVM#mmc rescan 0
    TI8148_EVM#fatls mmc 0
          301   boot.scr
          301   boot.scr
          229   boot.cmd
      2570080   uimage
       185044   u-boot.bin
        68796   mlo
       126399   top_ti814x_evm.png
         1756   windows_users.htm
                'v牢.n/
            0   execute.uim

    9 file(s), 1 dir(s)

    on my linux system:

    schneider@laplace  BOOT > ls -l
    insgesamt 3070
    -rw-r--r-- 1 schneider users     229 23. Nov 2011  boot.cmd
    -rw-r--r-- 1 schneider users     301 23. Nov 2011  boot.scr
    -rw-r--r-- 1 schneider users   68796 23. Nov 2011  MLO
    -rw-r--r-- 1 schneider users   93920 10. Okt 10:39 n-boot.bin
    -rw-r--r-- 1 schneider users   93920 10. Okt 10:39 nboot.bin
    -rw-r--r-- 1 schneider users     244 23. Nov 2011  README.boot.scr
    -rw-r--r-- 1 schneider users  126399 23. Nov 2011  top_ti814x_evm.png
    -rw-r--r-- 1 schneider users  185044 23. Nov 2011  u-boot.bin
    -rw-r--r-- 1 schneider users 2570080 23. Nov 2011  uImage
    -rw-r--r-- 1 schneider users    1756  2. Nov 15:43 windows_users.htm

  • Tobias,

    Try one simple thing. Setup a TFTP server and download the u-boot from the TFTP using Ethernet and flash it and see whether it works or not.

  • Renjith,

    thanks for that hint, so I was able to flash it to NAND. But when booting from NAND I know get the following message:

    
    
    U-Boot 2010.06 (Oct 10 2012 - 14:08:25)

    TI8148-GP rev 2.1

    ARM clk: 600MHz
    DDR clk: 400MHz

    DRAM:  2 GiB
    NAND:  HW ECC BCH8 Selected
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron NAND 256MiB 3,3V 16-bit)
    NAND bus width 8 instead 16 bit
    No NAND device found!!!
    0 MiB
    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

    no devices available
    ## Starting application at 0x81000000 ...

  • Tobias,

    This is a known issue because of the update of ECC layout implementation in latest u-boot. 

    Can you checkout the latest u-boot from arago project and create and SD card image and boot from SD. Then you create a NAND flash u-boot images and flash it after booting from the SD image?

  • Tobias

    You can use the prebuilt images from PSP latest release from below link
    http://software-dl.ti.com/dsps/dsps_public_sw/psp/LinuxPSP/TI81XX_04_04/04_04_00_02/index_FDS.html

    Regards
    Mugunthan V N

  • Mugunthan, when using the newset PSP via TFTP/NFS I have a problem with VPSS - yan you please check http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/716/t/226016.aspx