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.

AM3358: NAND not detected on GP EVM

Guru 10235 points
Part Number: AM3358
Other Parts Discussed in Thread: TMDXEVM3358

Hello, TI Experts,

 

We have a question about NAND-Flash on TMDXEVM3358.

We create SD-card by create-sdcard.sh of PROCESSOR-SDK-LINUX-AM335X.

And we tried to boot from the inserted SD card on  TMDXEVM3358.

Then we found the message "NAND:  0 MiB" like below;

 

>U-Boot 2017.01-00319-g7752743-dirty (Oct 10 2017 - 14:14:36 +0900)

>CPU  : AM335X-GP rev 1.0

>Model: TI AM335x EVM

>DRAM:  512 MiB

>NAND:  0 MiB

>MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1

 

Question: 

 Is there same experience?

  

We would appreciate if you tell us how to solve this problem.

 

I would also attach "pdf" the DIP-SW setting as below;

   Profile[3:0]=0000

   BOOT[4:0]=10011

 

Best regards,

dipsw.pdf

  • Hi,

    Besides setting the SYSBOOT switched you also need to set the Profile switch. See processors.wiki.ti.com/.../AM335x_General_Purpose_EVM_HW_User_Guide CPLD profiles can be seen here: processors.wiki.ti.com/.../Am335x_gpevm_pinuse.zip NAND is available in all profiles, except #2 and #3.
  • Hi,

    Thank you for your prompt reply.
    I have also same understanding with you.
    So I set the Profile switch to #0 to use NAND.

    From your information, the Profile switch seems to be set properly to use NAND.

    We would appreciate to continue to investigate the problem.

    Best regards,
  • OK, I'm transferring this to the software team. They will continue from here.
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.

    I am waiting for their feedback.

    Best regards,

  • Hello matusan,

    I set the exact DIP-SW settings like you and NAND size got detected by U-Boot. Seems like you have something modified in your U-Boot. Can you try to boot with the prebuilt images from Processor SDK?

    Best regards,
    Kemal

  • Hi,

     

    Thank you very much for your kindness.

    I really appreciate your help.

     

    From your information,

    I can understand you found NAND size got detected by U-Boot on TMDXEVM3358.

     

    I got another TMDXEVM3358 and tried to boot with the prebuilt images from Processor SDK.

    But result was same. (we found the message "NAND:  0 MiB" on both two TMDXEVM3358.)

     

    Question:

      Are there any difference from your experience of U-Boot on TMDXEVM3358 as below?

      (Do you find any key difference from your EVM and our EVMs of  attached pdf?)

     

     - Both two EVM versions (from teraterm console message)

       1) CPU:AM335X-GP rev 1.0

       2) CPU:AM335X-GP rev 2.1

     

     - Both EVM don't have U9(NAND device on the CPU Board) like attached pdf.

       but 

       Both EVM have U5(NAND device on the Daughter Board).

     

    We would appreciate if you tell us how to use U5(NAND device on the Daughter Board).

     

    Best regards,

    evm.pdf

  • Our hardware configuration is exactly the same as yours.

    Can you test my scenario on your board. Copy the attached https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/5140.MLO and https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/791/u_2D00_boot.img to SD card.

    nand erase.chip
    mmc rescan
    fatload mmc 0 0x82000000 MLO
    nand write 0x82000000 NAND.SPL
    fatload mmc 0 0x82000000 u-boot.img
    nand write 0x82000000 NAND.u-boot

    Then reboot and check the result.

  • Hi,

    Thank you very much for providing us your MLO & img files.

    I really appreciate your help.

    I tried to boot with your files and send the result with attached pdf.

    Unfortunately, result seemed to be same.

    (we found the message "NAND:  0 MiB" on both two TMDXEVM3358.)

    If you have any clue, please tell us.

    Best regards,

    result.pdf

  • Can you turn on/off the board after switching and check if the NAND will be detected in other profiles #1, #4, #5, #6, #7?

  • Hi,

     

    Thank you very much for your kindness.

    I really appreciate your help.

     

    I tried to boot with your files in other profiles #1, #4, #5, #6, #7.

     

    Unfortunately, result seemed to be same.

    (we found the message "NAND:  0 MiB" on both two TMDXEVM3358.)

     

    Best regards,

  • Hi,

     

    I found success to boot from NAND with your guide and files.

    Thank you very much.

     

    // Daughter board connection seemed to have problem.

    // So I re-built it with CPU board tightly.

     

    But I found another problem.

     

    If I  tried to boot from NAND with prebuild files (MLO & u-boot.img) of PROCESSOR-SDK-LINUX-AM335X  04_00_00_04

    following your guide as below, NAND boot seems to be fail. (there are no text on teraterm window).

     

    nand erase.chip

    mmc rescan

    fatload mmc 0 0x82000000 MLO

    nand write 0x82000000 NAND.SPL

    fatload mmc 0 0x82000000 u-boot.img

    nand write 0x82000000 NAND.u-boot

     

    Question:

      Could you tell us the difference between your files(MLO & u-boot.img) and  prebuild files?

     

    Best regards,

  • In my previous post I have attached the prebuilt images from the latest PROCESSOR-SDK-LINUX-AM335X 04_01_00_06. I have just tried to boot with the prebuilt images from PROCESSOR-SDK-LINUX-AM335X 04_00_00_04 and I succeeded again.

  • Hi,

    I found success to boot from NAND with the prebuilt images(MLO&u-boot.img) from PROCESSOR-SDK-LINUX-AM335X 04_00_00_04.

    Thank you very much.

    Now, I tried to Linux-kernel boot from NAND as following procedures on the EVM(target).

    U-Boot# setenv ipaddr 192.168.0.6

    U-Boot# setenv serverip 192.168.0.1

    U-Boot# nand erase.chip

    U-Boot# mw.b 0x81000000 0xFF 0x2950000

    U-Boot# tftp 0x81000000 MLO-am335x-evm

    U-Boot# cp.b 0x81000000 0x81020000 20000

        cp.b 0x81000000 0x81040000 20000

        cp.b 0x81000000 0x81060000 20000

    U-Boot# tftp 0x81080000 am335x-evm.dtb

    U-Boot# tftp 0x810c0000 u-boot-am335x-evm.img

    U-Boot# tftp 0x81200000 zImage-am335x-evm.bin

    U-Boot# tftp 0x81a00000 arago-base-tisdk-image-am335x-evm.ubi

    U-Boot# nand write 0x81000000 0x0 0x2950000

    then reboot & "run nandboot"

    But error of "Kernel panic" is occurred such as attached txt-file as below.

    Is there anything missing?

    We would appreciate if you tell us recommended way of Linux-Kernel boot from NAND.

    Best regards,

    U-Boot SPL 2017.01-g9fd60700db (Jun 28 2017 - 17:18:56)                                                                                                                         
    Trying to boot from NAND                                                                                                                                                        
    Card did not respond to voltage select!                                                                                                                                         
    ** Bad device mmc 0 **                                                                                                                                                          
    Using default environment                                                                                                                                                       
                                                                                                                                                                                    
                                                                                                                                                                                    
                                                                                                                                                                                    
    U-Boot 2017.01-g9fd60700db (Jun 28 2017 - 17:18:56 -0400)                                                                                                                       
                                                                                                                                                                                    
    CPU  : AM335X-GP rev 2.1                                                                                                                                                        
    Model: TI AM335x EVM                                                                                                                                                            
    DRAM:  1 GiB                                                                                                                                                                    
    NAND:  256 MiB                                                                                                                                                                  
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                                                                                                                           
    MMC: no card present                                                                                                                                                            
    ** Bad device mmc 0 **                                                                                                                                                          
    Using default environment                                                                                                                                                       
                                                                                                                                                                                    
    <ethaddr> not set. Validating first E-fuse MAC                                                                                                                                  
    Net:   cpsw, usb_ether                                                                                                                                                          
    Hit any key to stop autoboot:  0                                                                                                                                                
    =>  run nandboot                                                                                                                                                                
    Booting from nand ...                                                                                                                                                           
                                                                                                                                                                                    
    NAND read: device 0 offset 0x80000, size 0x40000                                                                                                                                
     262144 bytes read: OK                                                                                                                                                          
                                                                                                                                                                                    
    NAND read: device 0 offset 0x200000, size 0x800000                                                                                                                              
     8388608 bytes read: OK                                                                                                                                                         
    ## Flattened Device Tree blob at 88000000                                                                                                                                       
       Booting using the fdt blob at 0x88000000                                                                                                                                     
       Loading Device Tree to 8fff2000, end 8ffff75d ... OK                                                                                                                         
                                                                                                                                                                                    
    Starting kernel ...                                                                                                                                                             
                                                                                                                                                                                    
    [    0.000000] Booting Linux on physical CPU 0x0                                                                                                                                
    [    0.000000] Linux version 4.9.28-geed43d1050 (gtbldadm@ubuntu-16) (gcc version 6.2.1 20161016 (Linaro GCC 6.2-2016.11) ) #1 PREEMPT Wed Jun 28 17:20:01 EDT 2017             
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d                                                                                                  
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache                                                                                         
    [    0.000000] OF: fdt:Machine model: TI AM335x EVM                                                                                                                             
    [    0.000000] efi: Getting EFI parameters from FDT:                                                                                                                            
    [    0.000000] efi: UEFI not found.                                                                                                                                             
    [    0.000000] cma: Reserved 48 MiB at 0xbd000000                                                                                                                               
    [    0.000000] Memory policy: Data cache writeback                                                                                                                              
    [    0.000000] CPU: All CPU(s) started in SVC mode.                                                                                                                             
    [    0.000000] AM335X ES2.1 (sgx neon)                                                                                                                                          
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260416                                                                                      
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1                                        
    [    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)                                                                                                             
    [    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)                                                                                                 
    [    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)                                                                                                   
    [    0.000000] Memory: 977348K/1048576K available (7168K kernel code, 279K rwdata, 2424K rodata, 1024K init, 272K bss, 22076K reserved, 49152K cma-reserved, 212992K highmem)   
    [    0.000000] Virtual kernel memory layout:                                                                                                                                    
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)                                                                                                                
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)                                                                                                                
    [    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)                                                                                                                
    [    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)                                                                                                                
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)                                                                                                                
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)                                                                                                                
    [    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)                                                                                                                
    [    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)                                                                                                                
    [    0.000000]       .data : 0xc0c00000 - 0xc0c45f10   ( 280 kB)                                                                                                                
    [    0.000000]        .bss : 0xc0c45f10 - 0xc0c8a1b4   ( 273 kB)                                                                                                                
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1                                                                                                       
    [    0.000000] Preemptible hierarchical RCU implementation.                                                                                                                     
    [    0.000000]  Build-time adjustment of leaf fanout to 32.                                                                                                                     
    [    0.000000] NR_IRQS:16 nr_irqs:16 16                                                                                                                                         
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts                                                                                              
    [    0.000000] OMAP clockevent source: timer2 at 24000000 Hz                                                                                                                    
    [    0.000014] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns                                                                                        
    [    0.000033] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns                                                                        
    [    0.000043] OMAP clocksource: timer1 at 24000000 Hz                                                                                                                          
    [    0.000208] clocksource_probe: no matching clocksources found                                                                                                                
    [    0.000379] Console: colour dummy device 80x30                                                                                                                               
    [    0.000406] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'                                                                                                       
    [    0.000412] This ensures that you still see kernel messages. Please                                                                                                          
    [    0.000417] update your kernel commandline.                                                                                                                                  
    [    0.000440] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)                                                                                                          
    [    0.089195] pid_max: default: 32768 minimum: 301                                                                                                                             
    [    0.089322] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                                                      
    [    0.089332] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)                                                                                                 
    [    0.090094] CPU: Testing write buffer coherency: ok                                                                                                                          
    [    0.090480] Setting up static identity map for 0x80100000 - 0x80100060                                                                                                       
    [    0.091268] EFI services will not be available.                                                                                                                              
    [    0.092485] devtmpfs: initialized                                                                                                                                            
    [    0.103519] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3                                                                                          
    [    0.103839] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns                                                                 
    [    0.103866] futex hash table entries: 256 (order: -1, 3072 bytes)                                                                                                            
    [    0.107367] pinctrl core: initialized pinctrl subsystem                                                                                                                      
    [    0.108604] NET: Registered protocol family 16                                                                                                                               
    [    0.110441] DMA: preallocated 256 KiB pool for atomic coherent allocations                                                                                                   
    [    0.123948] omap_hwmod: debugss: _wait_target_disable failed                                                                                                                 
    [    0.199189] cpuidle: using governor ladder                                                                                                                                   
    [    0.229176] cpuidle: using governor menu                                                                                                                                     
    [    0.234689] OMAP GPIO hardware version 0.1                                                                                                                                   
    [    0.247114] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferring probe                          
    [    0.249969] hw-breakpoint: debug architecture 0x4 unsupported.                                                                                                               
    [    0.286502] edma 49000000.edma: TI EDMA DMA engine driver                                                                                                                    
    [    0.290376] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe                             
    [    0.290434] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe                             
    [    0.290559] media: Linux media interface: v0.10                                                                                                                              
    [    0.290606] Linux video capture interface: v2.00                                                                                                                             
    [    0.290644] pps_core: LinuxPPS API ver. 1 registered                                                                                                                         
    [    0.290651] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>                                                                         
    [    0.290672] PTP clock support registered                                                                                                                                     
    [    0.290707] EDAC MC: Ver: 3.0.0                                                                                                                                              
    [    0.291716] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400                                                                                                            
    [    0.292046] Advanced Linux Sound Architecture Driver Initialized.                                                                                                            
    [    0.293206] clocksource: Switched to clocksource timer1                                                                                                                      
    [    0.302566] NET: Registered protocol family 2                                                                                                                                
    [    0.303377] TCP established hash table entries: 8192 (order: 3, 32768 bytes)                                                                                                 
    [    0.303454] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)                                                                                                        
    [    0.303522] TCP: Hash tables configured (established 8192 bind 8192)                                                                                                         
    [    0.303630] UDP hash table entries: 512 (order: 1, 8192 bytes)                                                                                                               
    [    0.303654] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)                                                                                                          
    [    0.303785] NET: Registered protocol family 1                                                                                                                                
    [    0.304206] RPC: Registered named UNIX socket transport module.                                                                                                              
    [    0.304220] RPC: Registered udp transport module.                                                                                                                            
    [    0.304226] RPC: Registered tcp transport module.                                                                                                                            
    [    0.304232] RPC: Registered tcp NFSv4.1 backchannel transport module.                                                                                                        
    [    0.305151] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available                                                                                     
    [    0.307361] workingset: timestamp_bits=14 max_order=18 bucket_order=4                                                                                                        
    [    0.314353] squashfs: version 4.0 (2009/01/31) Phillip Lougher                                                                                                               
    [    0.315255] NFS: Registering the id_resolver key type                                                                                                                        
    [    0.315297] Key type id_resolver registered                                                                                                                                  
    [    0.315305] Key type id_legacy registered                                                                                                                                    
    [    0.315350] ntfs: driver 2.1.32 [Flags: R/O].                                                                                                                                
    [    0.316926] bounce: pool size: 64 pages                                                                                                                                      
    [    0.317133] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)                                                                                             
    [    0.317145] io scheduler noop registered                                                                                                                                     
    [    0.317152] io scheduler deadline registered                                                                                                                                 
    [    0.317272] io scheduler cfq registered (default)                                                                                                                            
    [    0.318189] pinctrl-single 44e10800.pinmux: please update dts to use #pinctrl-cells = <1>                                                                                    
    [    0.318639] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568                                                                                                 
    [    0.321560] backlight supply power not found, using dummy regulator                                                                                                          
    [    0.375666] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled                                                                                                        
    [    0.379436] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250                                                                             
    [    1.005323] console [ttyS0] enabled                                                                                                                                          
    [    1.010057] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250                                                                             
    [    1.020717] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20                                                                                                      
    [    1.027602] [drm] Initialized                                                                                                                                                
    [    1.031542] panel panel: found backlight                                                                                                                                     
    [    1.036511] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).                                                                                                      
    [    1.043166] [drm] No driver support for vblank timestamp query.                                                                                                              
    [    1.075882] Console: switching to colour frame buffer device 100x30                                                                                                          
    [    1.086740] tilcdc 4830e000.lcdc: fb0:  frame buffer device                                                                                                                  
    [    1.126746] brd: module loaded                                                                                                                                               
    [    1.136282] loop: module loaded                                                                                                                                              
    [    1.141857] libphy: Fixed MDIO Bus: probed                                                                                                                                   
    [    1.213248] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6                                                                                                            
    [    1.219420] davinci_mdio 4a101000.mdio: detected phy mask fffffffe                                                                                                           
    [    1.226403] libphy: 4a101000.mdio: probed                                                                                                                                    
    [    1.230445] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver Atheros 8031 ethernet                                                                        
    [    1.240563] cpsw 4a100000.ethernet: Detected MACID = c4:ed:ba:8b:31:86                                                                                                       
    [    1.247360] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)                                                                                                
    [    1.256329] mousedev: PS/2 mouse device common for all mice                                                                                                                  
    [    1.262291] i2c /dev entries driver                                                                                                                                          
    [    1.267722] cpuidle: enable-method property 'ti,am3352' found operations                                                                                                     
    [    1.275585] omap_hsmmc 48060000.mmc: Got CD GPIO                                                                                                                             
    [    1.453950] ledtrig-cpu: registered to indicate activity on CPUs                                                                                                             
    [    1.466809] NET: Registered protocol family 10                                                                                                                               
    [    1.473854] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver                                                                                                              
    [    1.480652] NET: Registered protocol family 17                                                                                                                               
    [    1.485522] Key type dns_resolver registered                                                                                                                                 
    [    1.490053] omap_voltage_late_init: Voltage driver support not added                                                                                                         
    [    1.502211] omap-gpmc 50000000.gpmc: GPMC revision 6.0                                                                                                                       
    [    1.507621] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000                                                                                                            
    [    1.515536] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda                                                                                                         
    [    1.521925] nand: Micron MT29F2G08ABAEAWP                                                                                                                                    
    [    1.526128] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64                                                                                           
    [    1.533794] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme                                                                                                                     
    [    1.539219] 10 ofpart partitions found on MTD device 8000000.nand                                                                                                            
    [    1.545394] Creating 10 MTD partitions on "8000000.nand":                                                                                                                    
    [    1.550824] 0x000000000000-0x000000020000 : "NAND.SPL"                                                                                                                       
    [    1.557382] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"                                                                                                               
    [    1.564407] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"                                                                                                               
    [    1.571335] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"                                                                                                               
    [    1.578442] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"                                                                                                             
    [    1.585738] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"                                                                                                                    
    [    1.592631] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"                                                                                                                
    [    1.599597] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"                                                                                                        
    [    1.607240] 0x000000200000-0x000000a00000 : "NAND.kernel"                                                                                                                    
    [    1.616448] 0x000000a00000-0x000010000000 : "NAND.file-system"                                                                                                               
    [    1.733464] tps65910 0-002d: No interrupt support, no core IRQ                                                                                                               
    [    1.741314] vrtc: supplied by vbat                                                                                                                                           
    [    1.748450] vio: supplied by vbat                                                                                                                                            
    [    1.752012] random: fast init done                                                                                                                                           
    [    1.756752] vdd1: supplied by vbat                                                                                                                                           
    [    1.761906] vdd2: supplied by vbat                                                                                                                                           
    [    1.768560] vdig1: supplied by vbat                                                                                                                                          
    [    1.773396] vdig2: supplied by vbat                                                                                                                                          
    [    1.778205] vpll: supplied by vbat                                                                                                                                           
    [    1.782967] vdac: supplied by vbat                                                                                                                                           
    [    1.787740] vaux1: supplied by vbat                                                                                                                                          
    [    1.792550] vaux2: supplied by vbat                                                                                                                                          
    [    1.797389] vaux33: supplied by vbat                                                                                                                                         
    [    1.802358] vmmc: supplied by vbat                                                                                                                                           
    [    1.807136] vbb: supplied by vbat                                                                                                                                            
    [    1.811565] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                                                                                                                  
    [    1.819039] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz                                                                                                                  
    [    1.826622] omap_hsmmc 48060000.mmc: Got CD GPIO                                                                                                                             
    [    1.883962] ubi0: attaching mtd9                                                                                                                                             
    [    2.850888] ubi0: scanning is finished                                                                                                                                       
    [    2.863167] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)                                                                                                      
    [    2.869976] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes                                                                                                   
    [    2.876900] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512                                                                                                     
    [    2.883660] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096                                                                                                  
    [    2.890650] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0                                                                                                            
    [    2.896798] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128                                                                                               
    [    2.904065] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 506754233                                                                          
    [    2.913165] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40                                                                       
    [    2.922532] ubi0: background thread "ubi_bgt0d" started, PID 78                                                                                                              
    [    2.929421] input: volume_keys0 as /devices/platform/volume_keys0/input/input0                                                                                               
    [    2.929837] hctosys: unable to open rtc device (rtc0)                                                                                                                        
    [    2.930341] lis3_reg: disabling                                                                                                                                              
    [    2.930348] wlan-en-regulator: disabling                                                                                                                                     
    [    2.937890] ALSA device list:                                                                                                                                                
    [    2.937894]   No soundcards found.                                                                                                                                           
    [    2.961313] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 79                                                                                                 
    [    2.994190] UBIFS error (ubi0:0 pid 1): ubifs_read_node: bad node type (255 but expected 9)                                                                                  
    [    3.002598] UBIFS error (ubi0:0 pid 1): ubifs_read_node: bad node at LEB 1091:2952, LEB mapping status 0                                                                     
    [    3.012201] Not a node, first 24 bytes:[    3.015907] 00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff                          ............
    ............                                                                                                                                                                    
    [    3.028870] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.28-geed43d1050 #1                                                                                                    
    [    3.035702] Hardware name: Generic AM33XX (Flattened Device Tree)                                                                                                            
    [    3.041818] Backtrace:                                                                                                                                                       
    [    3.044366] [<c010b790>] (dump_backtrace) from [<c010ba4c>] (show_stack+0x18/0x1c)                                                                                           
    [    3.051971]  r7:00000443 r6:ffffffea r5:00000b88 r4:ee82f000                                                                                                                 
    [    3.057686] [<c010ba34>] (show_stack) from [<c03bd930>] (dump_stack+0x24/0x28)                                                                                               
    [    3.064980] [<c03bd90c>] (dump_stack) from [<c034870c>] (ubifs_read_node+0x144/0x28c)                                                                                        
    [    3.072850] [<c03485c8>] (ubifs_read_node) from [<c0351308>] (dbg_old_index_check_init+0x70/0xa8)                                                                            
    [    3.081794]  r10:00000009 r9:00000b88 r8:00000058 r7:00000443 r6:eeded540 r5:ee82f000                                                                                        
    [    3.089667]  r4:eee0de00                                                                                                                                                     
    [    3.092230] [<c0351298>] (dbg_old_index_check_init) from [<c034df10>] (ubifs_read_master+0x758/0x8e0)                                                                        
    [    3.101503]  r9:00000000 r8:0055c220 r7:00000000 r6:066359a0 r5:ee82f690 r4:ee82f000                                                                                         
    [    3.109321] [<c034d7b8>] (ubifs_read_master) from [<c03442c0>] (ubifs_mount+0x320/0x16d0)                                                                                    
    [    3.117549]  r10:ee82f210 r9:00000000 r8:ee82f008 r7:ee82f000 r6:eee15940 r5:c0342f0c                                                                                        
    [    3.125510]  r4:ee82f828                                                                                                                                                     
    [    3.128065] [<c0343fa0>] (ubifs_mount) from [<c02146a4>] (mount_fs+0x1c/0xac)                                                                                                
    [    3.135249]  r10:00000001 r9:00008000 r8:c0c1b534 r7:c0c1b534 r6:00008000 r5:eee158c0                                                                                        
    [    3.143132]  r4:c0343fa0                                                                                                                                                     
    [    3.145715] [<c0214688>] (mount_fs) from [<c0231f68>] (vfs_kern_mount+0x50/0x11c)                                                                                            
    [    3.153246]  r8:00000000 r7:c0c1b534 r6:00008000 r5:eee158c0 r4:eeded480                                                                                                     
    [    3.160000] [<c0231f18>] (vfs_kern_mount) from [<c02353c4>] (do_mount+0x15c/0xc80)                                                                                           
    [    3.167617]  r9:00008000 r8:00000020 r7:eee15880 r6:eee158c0 r5:00000000 r4:c0c1b534                                                                                         
    [    3.175426] [<c0235268>] (do_mount) from [<c0236274>] (SyS_mount+0x94/0xbc)                                                                                                  
    [    3.182420]  r10:c0b3a868 r9:00008000 r8:00008000 r7:c0986130 r6:00000000 r5:eee15880                                                                                        
    [    3.190308]  r4:eee158c0                                                                                                                                                     
    [    3.192861] [<c02361e0>] (SyS_mount) from [<c0b012a8>] (mount_block_root+0x110/0x26c)                                                                                        
    [    3.200739]  r8:c0b3a858 r7:c0986130 r6:eee27000 r5:efd90d7c r4:eee27000                                                                                                     
    [    3.207499] [<c0b01198>] (mount_block_root) from [<c0b016c4>] (prepare_namespace+0xa4/0x1c8)                                                                                 
    [    3.215987]  r10:00000008 r9:c0b0061c r8:000000ba r7:c0b3a834 r6:00000008 r5:c0b3a868                                                                                        
    [    3.223876]  r4:c0b3a858                                                                                                                                                     
    [    3.226424] [<c0b01620>] (prepare_namespace) from [<c0b00f08>] (kernel_init_freeable+0x1b8/0x1cc)                                                                            
    [    3.235344]  r6:00000008 r5:c0c45f40 r4:c0c45f40                                                                                                                             
    [    3.240011] [<c0b00d50>] (kernel_init_freeable) from [<c07c6e68>] (kernel_init+0x10/0x110)                                                                                   
    [    3.248327]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c07c6e58                                                                                        
    [    3.256216]  r4:00000000                                                                                                                                                     
    [    3.258765] [<c07c6e58>] (kernel_init) from [<c0107d38>] (ret_from_fork+0x14/0x3c)                                                                                           
    [    3.266377]  r5:c07c6e58 r4:00000000                                                                                                                                         
    [    3.270001] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" stops                                                                                                           
    [    3.306147] UBIFS error (ubi0:0 pid 1): ubifs_read_node: bad node type (255 but expected 9)                                                                                  
    [    3.314666] UBIFS error (ubi0:0 pid 1): ubifs_read_node: bad node at LEB 1091:2952, LEB mapping status 0                                                                     
    [    3.324260] Not a node, first 24 bytes:[    3.327947] 00000000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff                          ............
    ............                                                                                                                                                                    
    [    3.340934] CPU: 0 PID: 1 Comm: swapper Not tainted 4.9.28-geed43d1050 #1                                                                                                    
    [    3.347791] Hardware name: Generic AM33XX (Flattened Device Tree)                                                                                                            
    [    3.353956] Backtrace:                                                                                                                                                       
    [    3.356442] [<c010b790>] (dump_backtrace) from [<c010ba4c>] (show_stack+0x18/0x1c)                                                                                           
    [    3.364064]  r7:00000443 r6:ffffffea r5:00000b88 r4:eee50000                                                                                                                 
    [    3.369781] [<c010ba34>] (show_stack) from [<c03bd930>] (dump_stack+0x24/0x28)                                                                                               
    [    3.377051] [<c03bd90c>] (dump_stack) from [<c034870c>] (ubifs_read_node+0x144/0x28c)                                                                                        
    [    3.384951] [<c03485c8>] (ubifs_read_node) from [<c0351308>] (dbg_old_index_check_init+0x70/0xa8)                                                                            
    [    3.393877]  r10:00000009 r9:00000b88 r8:00000058 r7:00000443 r6:eeded540 r5:eee50000                                                                                        
    [    3.401754]  r4:eee26200                                                                                                                                                     
    [    3.404313] [<c0351298>] (dbg_old_index_check_init) from [<c034df10>] (ubifs_read_master+0x758/0x8e0)                                                                        
    [    3.413584]  r9:00000000 r8:0055c220 r7:00000000 r6:066359a0 r5:eee50690 r4:eee50000                                                                                         
    [    3.421390] [<c034d7b8>] (ubifs_read_master) from [<c03442c0>] (ubifs_mount+0x320/0x16d0)                                                                                    
    [    3.429619]  r10:eee50210 r9:00000002 r8:eee50008 r7:eee50000 r6:eee15940 r5:c0342f0c                                                                                        
    [    3.437508]  r4:eee50828                                                                                                                                                     
    [    3.440060] [<c0343fa0>] (ubifs_mount) from [<c02146a4>] (mount_fs+0x1c/0xac)                                                                                                
    [    3.447258]  r10:00000001 r9:00008001 r8:c0c1b534 r7:c0c1b534 r6:00008001 r5:eee158c0                                                                                        
    [    3.455131]  r4:c0343fa0                                                                                                                                                     
    [    3.457682] [<c0214688>] (mount_fs) from [<c0231f68>] (vfs_kern_mount+0x50/0x11c)                                                                                            
    [    3.465227]  r8:00000000 r7:c0c1b534 r6:00008001 r5:eee158c0 r4:eeded480                                                                                                     
    [    3.471974] [<c0231f18>] (vfs_kern_mount) from [<c02353c4>] (do_mount+0x15c/0xc80)                                                                                           
    [    3.479606]  r9:00008001 r8:00000060 r7:eee15880 r6:eee158c0 r5:00000000 r4:c0c1b534                                                                                         
    [    3.487399] [<c0235268>] (do_mount) from [<c0236274>] (SyS_mount+0x94/0xbc)                                                                                                  
    [    3.494420]  r10:c0b3a868 r9:00008001 r8:00008001 r7:c0986130 r6:00000000 r5:eee15880                                                                                        
    [    3.502281]  r4:eee158c0                                                                                                                                                     
    [    3.504845] [<c02361e0>] (SyS_mount) from [<c0b012a8>] (mount_block_root+0x110/0x26c)                                                                                        
    [    3.512727]  r8:c0b3a858 r7:c0986130 r6:eee27000 r5:efd90d7c r4:eee27000                                                                                                     
    [    3.519471] [<c0b01198>] (mount_block_root) from [<c0b016c4>] (prepare_namespace+0xa4/0x1c8)                                                                                 
    [    3.527973]  r10:00000008 r9:c0b0061c r8:000000ba r7:c0b3a834 r6:00000008 r5:c0b3a868                                                                                        
    [    3.535845]  r4:c0b3a858                                                                                                                                                     
    [    3.538392] [<c0b01620>] (prepare_namespace) from [<c0b00f08>] (kernel_init_freeable+0x1b8/0x1cc)                                                                            
    [    3.547329]  r6:00000008 r5:c0c45f40 r4:c0c45f40                                                                                                                             
    [    3.551975] [<c0b00d50>] (kernel_init_freeable) from [<c07c6e68>] (kernel_init+0x10/0x110)                                                                                   
    [    3.560305]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c07c6e58                                                                                        
    [    3.568192]  r4:00000000                                                                                                                                                     
    [    3.570740] [<c07c6e58>] (kernel_init) from [<c0107d38>] (ret_from_fork+0x14/0x3c)                                                                                           
    [    3.578368]  r5:c07c6e58 r4:00000000                                                                                                                                         
    [    3.582257] List of all partitions:                                                                                                                                          
    [    3.585841] 0100           65536 ram0 [    3.589428]  (driver?)                                                                                                              
    [    3.591829] 0101           65536 ram1 [    3.595447]  (driver?)                                                                                                              
    [    3.597820] 0102           65536 ram2 [    3.601404]  (driver?)                                                                                                              
    [    3.603822] 0103           65536 ram3 [    3.607408]  (driver?)                                                                                                              
    [    3.609800] 0104           65536 ram4 [    3.613399]  (driver?)                                                                                                              
    [    3.615771] 0105           65536 ram5 [    3.619356]  (driver?)                                                                                                              
    [    3.621725] 0106           65536 ram6 [    3.625337]  (driver?)                                                                                                              
    [    3.627709] 0107           65536 ram7 [    3.631293]  (driver?)                                                                                                              
    [    3.633677] 0108           65536 ram8 [    3.637261]  (driver?)                                                                                                              
    [    3.639632] 0109           65536 ram9 [    3.643245]  (driver?)                                                                                                              
    [    3.645618] 010a           65536 ram10 [    3.649289]  (driver?)                                                                                                             
    [    3.651658] 010b           65536 ram11 [    3.655361]  (driver?)                                                                                                             
    [    3.657750] 010c           65536 ram12 [    3.661422]  (driver?)                                                                                                             
    [    3.663805] 010d           65536 ram13 [    3.667477]  (driver?)                                                                                                             
    [    3.669848] 010e           65536 ram14 [    3.673548]  (driver?)                                                                                                             
    [    3.675920] 010f           65536 ram15 [    3.679591]  (driver?)                                                                                                             
    [    3.681968] 1f00             128 mtdblock0 [    3.686001]  (driver?)                                                                                                         
    [    3.688391] 1f01             128 mtdblock1 [    3.692413]  (driver?)                                                                                                         
    [    3.694796] 1f02             128 mtdblock2 [    3.698816]  (driver?)                                                                                                         
    [    3.701186] 1f03             128 mtdblock3 [    3.705234]  (driver?)                                                                                                         
    [    3.707607] 1f04             256 mtdblock4 [    3.711628]  (driver?)                                                                                                         
    [    3.714010] 1f05            1024 mtdblock5 [    3.718031]  (driver?)                                                                                                         
    [    3.720401] 1f06             128 mtdblock6 [    3.724455]  (driver?)                                                                                                         
    [    3.726828] 1f07             128 mtdblock7 [    3.730848]  (driver?)                                                                                                         
    [    3.733229] 1f08            8192 mtdblock8 [    3.737267]  (driver?)                                                                                                         
    [    3.739640] 1f09          251904 mtdblock9 [    3.743674]  (driver?)                                                                                                         
    [    3.746040] No filesystem could mount root, tried: [    3.750757]  ubifs                                                                                                     
    [    3.752773]                                                                                                                                                                  
    [    3.754301] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)                                                                                   
    [    3.762609] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)                                                                          
    [   81.203248] random: crng init done                                                                                                                                           
    
    

  • You are not writing the complete arago-base-tisdk-image-am335x-evm.ubi, you are writing 41Mib out of 145Mib. Its size has increased during the SDK development. Change the 0x2950000 to 0x92c0000.

  • Hi,

     

    I found success to boot Linux from NAND.

    Thank you very much.

     

    Our customer want to know Linux-booting from NAND automatically.

     

    We would appreciate if you tell us recommended way of Linux-booting from NAND automatically.(without typing "run nandboot")

     

    Best regards,

  • => setenv bootcmd run nandboot
    => saveenv
    Command will do the trick.
    But after the saveenv you can see :
    Saving Environment to FAT...
    writing uboot.env
    done
    That means the environment is saved to SD card.
    To save the environment to NAND you must define #define CONFIG_ENV_IS_IN_NAND in <Processor SDK>/board-support/u-boot-<version>/include/configs/am335x_evm.h and recompile the U-Boot (make u-boot from the top Processor SDK directory).
    Then you should see that message while the environment is saving to NAND:
    => saveenv
    Saving Environment to NAND...
    Erasing redundant NAND...
    Erasing at 0x1e0000 -- 100% complete.
    Writing to redundant NAND... OK
    => saveenv
    Saving Environment to NAND...
    Erasing NAND...
    Erasing at 0x1c0000 -- 100% complete.
    Writing to NAND... OK

  • Hi,

     

    I found success to boot Linux from NAND automatically.(without typing "run nandboot")

    Thank you very much. (Your explanation is excellent!)

     

    I will guide to the customer as following procedure.

     1: Edit "am335x_evm.h"

      add    -> #define CONFIG_ENV_IS_IN_NAND

      delete -> #define CONFIG_ENV_IS_IN_FAT

     

     2: Rebuild u-boot & copy to SD card.

        (I also checked NAND related configure in .config file as below.)

       - CONFIG_SPL_NAND_SUPPORT=y

       - CONFIG_NAND_BOOT=y

     

     3: Boot from SD-card & type commands to write u-boot.img to NAND.

         U-Boot# mmc rescan

         U-Boot# fatload mmc 0 0x82000000 u-boot.img

         U-Boot# nand erase.part NAND.u-boot

         U-Boot# nand write 0x82000000 NAND.u-boot

     

    4: Remove SD-card & boot from NAND & type commands for automatically booting from NAND.

         U-Boot# setenv bootcmd run nandboot

         U-Boot# saveenv

    5:I check teraterm console logs as below

    Saving Environment to NAND...

    Erasing redundant NAND...

    Erasing at 0x1e0000 -- 100% complete.

    Writing to redundant NAND... OK

    If you have any comment or notice, please tell us.

     

    Best regards,

  • The procedure you described is correct.
  • Hi,

    Thank you very much for your kindness.
    I really appreciate your help.

    Best regards,