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.

OCTVO-3P-AM335X: boot from NAND I2C,boot device 6

Part Number: OCTVO-3P-AM335X

Our AM335x's sysboot[4:0] is set to 10011b.

When the power is repeatedly turned off and powered on, there will be occasional start-up from NANDI2C.The debug  information shows boot device 6. The information as follow:

I measured the level of each pin of the sysboot with an oscilloscope, and it was all in line with the set value.

What will cause the system to boot from NANDI2C?

The system has printed the SPL information, does it mean that the NAND has been correctly recognized,Just failed when reading boot information from NAND?

  • Hello,
    SYSBOOT[4:0]=10011b => NAND NANDI2C MMC0 UART0

    1/. From "26.1.8.4 NAND" in AM335x TRM
    "Reading NAND Geometry From I2C EEPROM
    ROM supports a special boot mode called NANDI2C to support NAND devices whose geometry cannot be
    detected by the ROM automatically using methods described in the previous section. If this boot mode is
    selected, the ROM code tries to read NAND geometry from an I2C EEPROM. If the read is successful,
    ROM code then proceeds to next steps of NAND boot, beginning with reading bad blocks information."

    2/.
    git.ti.com/gitweb
    #define BOOT_DEVICE_NAND_I2C 0x06

    Best,
    -Hong

  • Hi

    There is only a 1 in 1,000 probability of getting into NANDI2C launch.If there is no NANDI2C used in the boot sequence, it will start normally no matter how many times it is started.

    So I wonder if booting from NANDI2C is because I can't read whatconfiguration from NAND?

    If NAND is not recognized, then why is SPL still being enforced?

  • For SYSBOOT[4:0]=10011b, ROM boot media falls through to NANDI2C when NAND geometry is not recognizable by ROM.

  • Since the SPL has already been implemented, can it be assumed that the NAND has been correctly recognized?

  • If I set the boot suquence to SYSBOOT[4:0]=01011b,or any other sequences that only include NAND but don't include NANDI2C,then AM335X can boot normally everytime. How to explain this?

  • Is the SPL stored in NAND?If so,when it shows SPL information in debug ,can I say the NAND has been recognized correctly?

  • Is the SPL stored in NAND?If so,when it shows SPL information in debug ,can I say the NAND has been recognized correctly?

    Yes, SPL is in NAND, and yes, SPL boots from NAND successfully.

  • Yes, SPL is in NAND, and yes, SPL boots from NAND successfully.

    If so,does it mean the sysboot[4:0] is recognized correctly,and the boot device is NAND? Then why the debug information shows boot device is NANDI2C?

  • There is only a 1 in 1,000 probability of getting into NANDI2C launch

    I thought SPL prints something like "Trying to boot from NAND" for most of time. Then

    Yes, SPL is in NAND, and yes, SPL boots from NAND successfully.

    Best,
    -Hong

  • Then why it can't boot from NAND sometimes?I mean it has read the SPL in NAND,I think the CPU can commuicate with NAND correctly。Then why it can't find boot image in NAND? What impacts it ?

  • Can we add some debug information to the code to see what is affecting the boot sequence?

  • Hello,
    Will you share full boot logs as attachments starting from HW RESET for "booting" and "non-booting" cases?
    Best,
    -Hong

  • Hi 

    The "booting" and "non-booting" logs are as follow.

    When it can't boot from NAND,it will show  "SPL: Un-supported Boot Device - 6!!!".

    booting.log
    =~=~=~=~=~=~=~=~=~=~=~= MobaXterm log 2023.11.15 09:23:12 =~=~=~=~=~=~=~=~=~=~=~=
    
    [2023-11-15 09:23:12]  U-Boot SPL 2011.09 (Oct 09 2023 - 01:19:43)
    [2023-11-15 09:23:12]  Texas Instruments Revision detection unimplemented
    [2023-11-15 09:23:12]  Booting from NAND...
    [2023-11-15 09:23:13]  MT29F8G08
    [2023-11-15 09:23:13]  
    [2023-11-15 09:23:13]  
    [2023-11-15 09:23:13]  U-Boot 2011.09 (Oct 09 2023 - 01:19:43)
    [2023-11-15 09:23:13]  
    [2023-11-15 09:23:13]  I2C:   ready
    [2023-11-15 09:23:13]  DRAM:  128 MiB
    [2023-11-15 09:23:13]  WARNING: Caches not enabled
    [2023-11-15 09:23:13]  Did not find a recognized configuration, assuming General purpose EVM in Profile 0 with Daughter board
    [2023-11-15 09:23:13]  NAND:  HW ECC BCH8 Selected
    [2023-11-15 09:23:13]  ONFI flash detected
    [2023-11-15 09:23:13]  ONFI param page 0 valid
    [2023-11-15 09:23:13]  HW ECC BCH16 Selected
    [2023-11-15 09:23:13]  Detect MT29F8G08
    [2023-11-15 09:23:13]  1024 MiB
    [2023-11-15 09:23:13]  MMC:   OMAP SD/MMC: 0
    [2023-11-15 09:23:13]  *** Warning - bad CRC, using default environment
    [2023-11-15 09:23:14]  
    [2023-11-15 09:23:14]  get pinmux failed
    [2023-11-15 09:23:14]  get lcdtimings failed
    [2023-11-15 09:23:14]  SEL: 0.
    [2023-11-15 09:23:14]  Video : Drawing the logo from nand.
    [2023-11-15 09:23:14]  
    [2023-11-15 09:23:14]  NAND read: device 0 offset 0x600000, size 0x36
    [2023-11-15 09:23:14]   54 bytes read: OK
    [2023-11-15 09:23:14]  
    [2023-11-15 09:23:14]  NAND read: device 0 offset 0x600000, size 0x5e036
    [2023-11-15 09:23:14]   385078 bytes read: OK
    [2023-11-15 09:23:15]  Net:   cpsw
    [2023-11-15 09:23:15]  Hit any key to stop autoboot:  3  2  1  0 
    [2023-11-15 09:23:18]  Booting from nand ...
    [2023-11-15 09:23:18]  
    [2023-11-15 09:23:18]  NAND read: device 0 offset 0xc00000, size 0x500000
    [2023-11-15 09:23:18]   5242880 bytes read: OK
    [2023-11-15 09:23:21]  ## Booting kernel from Legacy Image at 80200000 ...
    [2023-11-15 09:23:21]     Image Name:   Linux-3.2.0-00024-g1daa139
    [2023-11-15 09:23:21]     Image Type:   ARM Linux Kernel Image (uncompressed)
    [2023-11-15 09:23:21]     Data Size:    3911544 Bytes = 3.7 MiB
    [2023-11-15 09:23:21]     Load Address: 80008000
    [2023-11-15 09:23:21]     Entry Point:  80008000
    [2023-11-15 09:23:21]     Verifying Checksum ... OK
    [2023-11-15 09:23:22]     Loading Kernel Image ... OK
    [2023-11-15 09:23:24]  OK
    [2023-11-15 09:23:24]  
    [2023-11-15 09:23:24]  Starting kernel ...
    [2023-11-15 09:23:24]  
    [2023-11-15 09:23:24]  Uncompressing Linux... done, booting the kernel.
    [2023-11-15 09:23:25]  [    0.000000] Linux version 3.2.0-00024-g1daa139 (forlinx@ubuntu) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #1 Mon Oct 9 00:36:28 PDT 2023
    [2023-11-15 09:23:25]  [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [2023-11-15 09:23:25]  [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [2023-11-15 09:23:25]  [    0.000000] Machine: am335xevm
    [2023-11-15 09:23:25]  [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [2023-11-15 09:23:25]  [    0.000000] AM335X ES2.1 (sgx neon )
    [2023-11-15 09:23:25]  [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
    [2023-11-15 09:23:25]  [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,4096 rootfstype=ubifs rootwait=1 screentype=R screensize=480x272-4 calibrate=Y laohua=N
    [2023-11-15 09:23:25]  [    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
    [2023-11-15 09:23:25]  [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
    [2023-11-15 09:23:25]  [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
    [2023-11-15 09:23:25]  [    0.000000] Memory: 128MB = 128MB total
    [2023-11-15 09:23:25]  [    0.000000] Memory: 121784k/121784k available, 9288k reserved, 0K highmem
    [2023-11-15 09:23:25]  [    0.000000] Virtual kernel memory layout:
    [2023-11-15 09:23:25]  [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [2023-11-15 09:23:25]  [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [2023-11-15 09:23:25]  [    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
    [2023-11-15 09:23:25]  [    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
    [2023-11-15 09:23:25]  [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [2023-11-15 09:23:25]  [    0.000000]       .text : 0xc0008000 - 0xc0701000   (7140 kB)
    [2023-11-15 09:23:25]  [    0.000000]       .init : 0xc0701000 - 0xc0744000   ( 268 kB)
    [2023-11-15 09:23:25]  [    0.000000]       .data : 0xc0744000 - 0xc07bbaa8   ( 479 kB)
    [2023-11-15 09:23:25]  [    0.000000]        .bss : 0xc07bbacc - 0xc07ee868   ( 204 kB)
    [2023-11-15 09:23:25]  [    0.000000] NR_IRQS:396
    [2023-11-15 09:23:25]  [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [2023-11-15 09:23:25]  [    0.000000] Total of 128 interrupts on 1 active controller
    [2023-11-15 09:23:25]  [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [2023-11-15 09:23:25]  [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [2023-11-15 09:23:25]  [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [2023-11-15 09:23:25]  [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [2023-11-15 09:23:25]  [    0.000000] Console: colour dummy device 80x30
    [2023-11-15 09:23:25]  [    0.000206] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [2023-11-15 09:23:25]  [    0.056718] pid_max: default: 32768 minimum: 301
    [2023-11-15 09:23:25]  [    0.056861] Security Framework initialized
    [2023-11-15 09:23:25]  [    0.056978] Mount-cache hash table entries: 512
    [2023-11-15 09:23:25]  [    0.057402] CPU: Testing write buffer coherency: ok
    [2023-11-15 09:23:25]  [    0.058230] devtmpfs: initialized
    [2023-11-15 09:23:25]  [    0.078787] omap_hwmod: pruss: failed to hardreset
    [2023-11-15 09:23:25]  [    0.080027] print_constraints: dummy: 
    [2023-11-15 09:23:25]  [    0.080428] NET: Registered protocol family 16
    [2023-11-15 09:23:25]  [    0.082851] OMAP GPIO hardware version 0.1
    [2023-11-15 09:23:25]  [    0.085855] omap_mux_init: Add partition: #1: core, flags: 0
    [2023-11-15 09:23:25]  [    0.088039]  omap_i2c.1: alias fck already exists
    [2023-11-15 09:23:25]  [    0.089287]  omap_hsmmc.0: alias fck already exists
    [2023-11-15 09:23:25]  [    0.089582]  omap_hsmmc.1: alias fck already exists
    [2023-11-15 09:23:25]  [    0.090191]  da8xx_lcdc.0: alias fck already exists
    [2023-11-15 09:23:25]  [    0.090510]  omap_i2c.2: alias fck already exists
    [2023-11-15 09:23:25]  [    0.092218]  d_can.0: alias fck already exists
    [2023-11-15 09:23:25]  [    0.092514]  d_can.1: alias fck already exists
    [2023-11-15 09:23:25]  [    0.094256]  omap2_mcspi.1: alias fck already exists
    [2023-11-15 09:23:25]  [    0.094521]  omap2_mcspi.2: alias fck already exists
    [2023-11-15 09:23:25]  [    0.094841]  edma.0: alias fck already exists
    [2023-11-15 09:23:25]  [    0.094867]  edma.0: alias fck already exists
    [2023-11-15 09:23:25]  [    0.094891]  edma.0: alias fck already exists
    [2023-11-15 09:23:25]  [    0.135962] bio: create slab <bio-0> at 0
    [2023-11-15 09:23:25]  [    0.138595] SCSI subsystem initialized
    [2023-11-15 09:23:25]  [    0.140909] usbcore: registered new interface driver usbfs
    [2023-11-15 09:23:25]  [    0.141284] usbcore: registered new interface driver hub
    [2023-11-15 09:23:25]  [    0.141519] usbcore: registered new device driver usb
    [2023-11-15 09:23:25]  [    0.141874] registerd cppi-dma Intr @ IRQ 17
    [2023-11-15 09:23:25]  [    0.141891] Cppi41 Init Done Qmgr-base(c887a000) dma-base(c8878000)
    [2023-11-15 09:23:25]  [    0.141903] Cppi41 Init Done
    [2023-11-15 09:23:26]  [    0.141934] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [2023-11-15 09:23:26]  [    0.142272] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [2023-11-15 09:23:26]  [    0.143605] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [2023-11-15 09:23:26]  [    0.145402] tps65217 1-0024: TPS65217 ID 0xe version 1.2
    [2023-11-15 09:23:26]  [    0.147533] print_constraints: DCDC1: 900 <--> 1800 mV at 1500 mV 
    [2023-11-15 09:23:26]  [    0.149671] print_constraints: DCDC2: 900 <--> 3300 mV at 1100 mV 
    [2023-11-15 09:23:26]  [    0.151773] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV 
    [2023-11-15 09:23:26]  [    0.153858] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV 
    [2023-11-15 09:23:26]  [    0.155931] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV 
    [2023-11-15 09:23:26]  [    0.158008] print_constraints: LDO3: 1800 <--> 3300 mV at 1800 mV 
    [2023-11-15 09:23:26]  [    0.160118] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV 
    [2023-11-15 09:23:26]  [    0.160912] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [2023-11-15 09:23:26]  [    0.163147] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [2023-11-15 09:23:26]  [    0.164010] Bluetooth: Core ver 2.16
    [2023-11-15 09:23:26]  [    0.164229] NET: Registered protocol family 31
    [2023-11-15 09:23:26]  [    0.164244] Bluetooth: HCI device and connection manager initialized
    [2023-11-15 09:23:26]  [    0.164262] Bluetooth: HCI socket layer initialized
    [2023-11-15 09:23:26]  [    0.164275] Bluetooth: L2CAP socket layer initialized
    [2023-11-15 09:23:26]  [    0.164307] Bluetooth: SCO socket layer initialized
    [2023-11-15 09:23:26]  [    0.164957] cfg80211: Calling CRDA to update world regulatory domain
    [2023-11-15 09:23:26]  [    0.166362] Switching to clocksource gp timer
    [2023-11-15 09:23:26]  [    0.187449] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [2023-11-15 09:23:26]  [    0.187675] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [2023-11-15 09:23:26]  [    0.188047] MUSB0 controller's USBSS revision = 4ea20800
    [2023-11-15 09:23:26]  [    0.188086] musb0: Enabled SW babble control
    [2023-11-15 09:23:26]  [    0.189137] musb-hdrc musb-hdrc.0: USB OTG mode controller at c883e000 using DMA, IRQ 18
    [2023-11-15 09:23:26]  [    0.189322] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [2023-11-15 09:23:26]  [    0.189673] MUSB1 controller's USBSS revision = 4ea20800
    [2023-11-15 09:23:26]  [    0.189704] musb1: Enabled SW babble control
    [2023-11-15 09:23:26]  [    0.190191] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [2023-11-15 09:23:26]  [    0.190297] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [2023-11-15 09:23:26]  [    0.190456] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [2023-11-15 09:23:26]  [    0.190475] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [2023-11-15 09:23:26]  [    0.190491] usb usb1: Product: MUSB HDRC host driver
    [2023-11-15 09:23:26]  [    0.190504] usb usb1: Manufacturer: Linux 3.2.0-00024-g1daa139 musb-hcd
    [2023-11-15 09:23:26]  [    0.190518] usb usb1: SerialNumber: musb-hdrc.1
    [2023-11-15 09:23:26]  [    0.191612] hub 1-0:1.0: USB hub found
    [2023-11-15 09:23:26]  [    0.191648] hub 1-0:1.0: 1 port detected
    [2023-11-15 09:23:26]  [    0.192349] musb-hdrc musb-hdrc.1: USB Host mode controller at c884a800 using DMA, IRQ 19
    [2023-11-15 09:23:26]  [    0.192849] NET: Registered protocol family 2
    [2023-11-15 09:23:26]  [    0.193083] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [2023-11-15 09:23:26]  [    0.193495] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
    [2023-11-15 09:23:26]  [    0.193600] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [2023-11-15 09:23:26]  [    0.193666] TCP: Hash tables configured (established 4096 bind 4096)
    [2023-11-15 09:23:26]  [    0.193681] TCP reno registered
    [2023-11-15 09:23:26]  [    0.193697] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [2023-11-15 09:23:26]  [    0.193725] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [2023-11-15 09:23:26]  [    0.193946] NET: Registered protocol family 1
    [2023-11-15 09:23:26]  [    0.194247] RPC: Registered named UNIX socket transport module.
    [2023-11-15 09:23:26]  [    0.194265] RPC: Registered udp transport module.
    [2023-11-15 09:23:26]  [    0.194275] RPC: Registered tcp transport module.
    [2023-11-15 09:23:26]  [    0.194286] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [2023-11-15 09:23:26]  [    0.194543] NetWinder Floating Point Emulator V0.97 (double precision)
    [2023-11-15 09:23:26]  [    0.194794] omap-gpmc omap-gpmc: GPMC revision 6.0
    [2023-11-15 09:23:26]  [    0.202423] VFS: Disk quotas dquot_6.5.2
    [2023-11-15 09:23:26]  [    0.202499] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [2023-11-15 09:23:26]  [    0.203178] msgmni has been set to 237
    [2023-11-15 09:23:26]  [    0.206830] alg: No test for stdrng (krng)
    [2023-11-15 09:23:26]  [    0.206916] io scheduler noop registered
    [2023-11-15 09:23:26]  [    0.206930] io scheduler deadline registered
    [2023-11-15 09:23:26]  [    0.207043] io scheduler cfq registered (default)
    [2023-11-15 09:23:26]  [    0.209621] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel
    [2023-11-15 09:23:26]  [    0.210651] LCD Clock: 300000000 Divider: 30 PixClk: 10000000
    [2023-11-15 09:23:26]  [    0.216584] Console: switching to colour frame buffer device 60x34
    [2023-11-15 09:23:26]  [    0.221978] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [2023-11-15 09:23:26]  [    0.963003] console [ttyO0] enabled
    [2023-11-15 09:23:26]  [    0.967498] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [2023-11-15 09:23:26]  [    0.975509] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [2023-11-15 09:23:26]  [    0.983530] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [2023-11-15 09:23:26]  [    0.991488] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [2023-11-15 09:23:26]  [    0.999451] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [2023-11-15 09:23:26]  [    1.019335] brd: module loaded
    [2023-11-15 09:23:26]  [    1.028694] loop: module loaded
    [2023-11-15 09:23:26]  [    1.032491] i2c-core: driver [tsl2550] using legacy suspend method
    [2023-11-15 09:23:26]  [    1.039045] i2c-core: driver [tsl2550] using legacy resume method
    [2023-11-15 09:23:26]  [    1.045858] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [2023-11-15 09:23:26]  [    1.057432] mtdoops: mtd device (mtddev=name/number) must be supplied
    [2023-11-15 09:23:26]  [    1.064871] omap2-nand driver initializing
    [2023-11-15 09:23:26]  [    1.069315] info->phys_base 8000000
    [2023-11-15 09:23:26]  [    1.073049] ONFI flash detected
    [2023-11-15 09:23:26]  [    1.076511] ONFI param page 0 valid
    [2023-11-15 09:23:26]  [    1.080196] NAND device: Manufacturer ID: 0x01, Chip ID: 0xd3 (AMD S34ML08G3)
    [2023-11-15 09:23:26]  [    1.087717] omap2-nand: detected x8 NAND flash 
    [2023-11-15 09:23:26]  [    1.092501] Page size 4096 Select ECC BCH16
    [2023-11-15 09:23:26]  [    1.096914] Nand ECC BCH16 HW
    [2023-11-15 09:23:26]  [    1.100285] Creating 8 MTD partitions on "omap2-nand.0":
    [2023-11-15 09:23:26]  [    1.105894] 0x000000000000-0x000000200000 : "SPL"
    [2023-11-15 09:23:26]  [    1.113036] 0x000000200000-0x000000400000 : "SPL.backup1"
    [2023-11-15 09:23:26]  [    1.120740] 0x000000400000-0x000000600000 : "SPL.backup2"
    [2023-11-15 09:23:26]  [    1.128450] 0x000000600000-0x000000800000 : "SPL.backup3"
    [2023-11-15 09:23:26]  [    1.136106] 0x000000800000-0x000000a00000 : "U-Boot"
    [2023-11-15 09:23:26]  [    1.143377] 0x000000a00000-0x000000c00000 : "U-Boot Env"
    [2023-11-15 09:23:26]  [    1.151023] 0x000000c00000-0x000001400000 : "Kernel"
    [2023-11-15 09:23:26]  [    1.159712] 0x000001400000-0x000040000000 : "File System"
    [2023-11-15 09:23:26]  [    1.395826] OneNAND driver initializing
    [2023-11-15 09:23:26]  [    1.400793] UBI: attaching mtd7 to ubi0
    [2023-11-15 09:23:26]  [    1.404841] UBI: physical eraseblock size:   262144 bytes (256 KiB)
    [2023-11-15 09:23:26]  [    1.411472] UBI: logical eraseblock size:    253952 bytes
    [2023-11-15 09:23:26]  [    1.417161] UBI: smallest flash I/O unit:    4096
    [2023-11-15 09:23:26]  [    1.422108] UBI: sub-page size:              1024
    [2023-11-15 09:23:26]  [    1.427067] UBI: VID header offset:          4096 (aligned 4096)
    [2023-11-15 09:23:26]  [    1.433384] UBI: data offset:                8192
    [2023-11-15 09:23:26]  [   10.591097] UBI: max. sequence number:       14
    [2023-11-15 09:23:36]  [   10.620503] UBI: attached mtd7 to ubi0
    [2023-11-15 09:23:36]  [   10.624461] UBI: MTD device name:            "File System"
    [2023-11-15 09:23:36]  [   10.630293] UBI: MTD device size:            1004 MiB
    [2023-11-15 09:23:36]  [   10.635611] UBI: number of good PEBs:        4016
    [2023-11-15 09:23:36]  [   10.640567] UBI: number of bad PEBs:         0
    [2023-11-15 09:23:36]  [   10.645237] UBI: number of corrupted PEBs:   0
    [2023-11-15 09:23:36]  [   10.649919] UBI: max. allowed volumes:       128
    [2023-11-15 09:23:36]  [   10.654771] UBI: wear-leveling threshold:    4096
    [2023-11-15 09:23:36]  [   10.659725] UBI: number of internal volumes: 1
    [2023-11-15 09:23:36]  [   10.664397] UBI: number of user volumes:     1
    [2023-11-15 09:23:36]  [   10.669076] UBI: available PEBs:             0
    [2023-11-15 09:23:36]  [   10.673748] UBI: total number of reserved PEBs: 4016
    [2023-11-15 09:23:36]  [   10.678980] UBI: number of PEBs reserved for bad PEB handling: 40
    [2023-11-15 09:23:36]  [   10.685385] UBI: max/mean erase counter: 1/0
    [2023-11-15 09:23:36]  [   10.689882] UBI: image sequence number:  1626913035
    [2023-11-15 09:23:36]  [   10.695106] UBI: background thread "ubi_bgt0d" started, PID 669
    [2023-11-15 09:23:36]  [   10.718204] CAN device driver interface
    [2023-11-15 09:23:36]  [   10.722241] CAN bus driver for Bosch D_CAN controller 1.0
    [2023-11-15 09:23:36]  [   10.736768] d_can d_can.0: device registered (irq=52, irq_obj=53)
    [2023-11-15 09:23:36]  [   10.751770] d_can d_can.1: device registered (irq=55, irq_obj=56)
    [2023-11-15 09:23:36]  [   11.776427] mcp251x spi2.1: MCP251x didn't enter in conf mode after reset
    [2023-11-15 09:23:37]  [   11.783672] mcp251x spi2.1: Probe failed
    [2023-11-15 09:23:37]  [   11.787831] mcp251x spi2.1: probe failed
    [2023-11-15 09:23:37]  [   11.863182] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [2023-11-15 09:23:37]  [   11.869713] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
    [2023-11-15 09:23:37]  [   11.900308] davinci_mdio.0: probed
    [2023-11-15 09:23:37]  [   11.903896] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver SMSC LAN8710/LAN8720
    [2023-11-15 09:23:37]  [   11.920529] PPP generic driver version 2.4.2
    [2023-11-15 09:23:37]  [   11.933353] PPP BSD Compression module registered
    [2023-11-15 09:23:37]  [   11.938327] PPP Deflate Compression module registered
    [2023-11-15 09:23:37]  [   11.951663] usbcore: registered new interface driver zd1201
    [2023-11-15 09:23:37]  [   11.973389] usbcore: registered new interface driver asix
    [2023-11-15 09:23:37]  [   11.979297] usbcore: registered new interface driver cdc_ether
    [2023-11-15 09:23:37]  [   11.993390] usbcore: registered new interface driver cdc_eem
    [2023-11-15 09:23:37]  [   11.999564] usbcore: registered new interface driver dm9601
    [2023-11-15 09:23:37]  [   12.005479] cdc_ncm: 04-Aug-2011
    [2023-11-15 09:23:37]  [   12.016858] usbcore: registered new interface driver cdc_ncm
    [2023-11-15 09:23:37]  [   12.030759] GobiNet: Quectel_WCDMA&LTE_Linux&Android_GobiNet_Driver_V1.3.0
    [2023-11-15 09:23:37]  [   12.053776] usbcore: registered new interface driver GobiNet
    [2023-11-15 09:23:37]  [   12.059746] Initializing USB Mass Storage driver...
    [2023-11-15 09:23:37]  [   12.072969] usbcore: registered new interface driver usb-storage
    [2023-11-15 09:23:37]  [   12.079313] USB Mass Storage support registered.
    [2023-11-15 09:23:37]  [   12.100180] usbcore: registered new interface driver usbserial
    [2023-11-15 09:23:37]  [   12.106317] usbserial: USB Serial Driver core
    [2023-11-15 09:23:37]  [   12.118847] USB Serial support registered for GSM modem (1-port)
    [2023-11-15 09:23:37]  [   12.133327] usbcore: registered new interface driver option
    [2023-11-15 09:23:37]  [   12.139213] option: v0.7.2:USB Driver for GSM modems
    [2023-11-15 09:23:37]  [   12.152404] USB Serial support registered for Vizzini USB serial port
    [2023-11-15 09:23:37]  [   12.167217] usbcore: registered new interface driver vizzini
    [2023-11-15 09:23:37]  [   12.173172] USB Driver for Vizzini USB serial port: v.1.1
    [2023-11-15 09:23:37]  [   12.186851]  gadget: Mass Storage Function, version: 2009/09/11
    [2023-11-15 09:23:37]  [   12.193082]  gadget: Number of LUNs=1
    [2023-11-15 09:23:37]  [   12.196955]  lun0: LUN: removable file: (no medium)
    [2023-11-15 09:23:37]  [   12.202115]  gadget: Mass Storage Gadget, version: 2009/09/11
    [2023-11-15 09:23:37]  [   12.208178]  gadget: userspace failed to provide iSerialNumber
    [2023-11-15 09:23:37]  [   12.214321]  gadget: g_mass_storage ready
    [2023-11-15 09:23:37]  [   12.218567] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [2023-11-15 09:23:37]  [   12.224214] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [2023-11-15 09:23:37]  [   12.232137] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [2023-11-15 09:23:37]  [   12.239300] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [2023-11-15 09:23:37]  [   12.246910] usb usb2: Product: MUSB HDRC host driver
    [2023-11-15 09:23:37]  [   12.252132] usb usb2: Manufacturer: Linux 3.2.0-00024-g1daa139 musb-hcd
    [2023-11-15 09:23:37]  [   12.259097] usb usb2: SerialNumber: musb-hdrc.0
    [2023-11-15 09:23:37]  [   12.288368] hub 2-0:1.0: USB hub found
    [2023-11-15 09:23:37]  [   12.292342] hub 2-0:1.0: 1 port detected
    [2023-11-15 09:23:37]  [   12.313568] mousedev: PS/2 mouse device common for all mice
    [2023-11-15 09:23:37]  [   12.327985] <<-GTP-INFO->> GTP driver installing...
    [2023-11-15 09:23:37]  [   12.341568] usbcore: registered new interface driver usbtouchscreen
    [2023-11-15 09:23:37]  [   12.348335] [wds tsc probe]x.min=140,x.max=3946,y.min=319,y.max=3865,x.inverted=0,y.inverted=1
    [2023-11-15 09:23:37]  [   12.373426] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
    [2023-11-15 09:23:37]  [   12.397588] rtc-ds1307: probe of 2-0068 failed with error -5
    [2023-11-15 09:23:37]  [   12.411679] forlinx rx8010_probe
    [2023-11-15 09:23:37]  [   12.461850] rtc-rx8010 2-0032: Frequency stop was detected, probably due to a supply voltage drop
    [2023-11-15 09:23:37]  [   12.471207] rtc-rx8010 2-0032: Update timer was detected
    [2023-11-15 09:23:37]  [   12.492349] rtc-rx8010 2-0032: bad conditions detected, resetting date
    [2023-11-15 09:23:37]  [   12.593051] rtc-rx8010 2-0032: rtc core: registered rx8010 as rtc0
    [2023-11-15 09:23:38]  [   12.607549] i2c /dev entries driver
    [2023-11-15 09:23:38]  [   12.619877] Linux video capture interface: v2.00
    [2023-11-15 09:23:38]  [   12.632985] usbcore: registered new interface driver uvcvideo
    [2023-11-15 09:23:38]  [   12.639051] USB Video Class driver (1.1.1)
    [2023-11-15 09:23:38]  [   12.652155] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [2023-11-15 09:23:38]  [   12.666512] Bluetooth: Broadcom Blutonium firmware driver ver 1.2
    [2023-11-15 09:23:38]  [   12.673155] usbcore: registered new interface driver bcm203x
    [2023-11-15 09:23:38]  [   12.679132] Bluetooth: Generic Bluetooth USB driver ver 0.6
    [2023-11-15 09:23:38]  [   12.700794] usbcore: registered new interface driver btusb
    [2023-11-15 09:23:38]  [   12.730967] cpuidle: using governor ladder
    [2023-11-15 09:23:38]  [   12.743677] cpuidle: using governor menu
    [2023-11-15 09:23:38]  [   12.829519] usbcore: registered new interface driver usbhid
    [2023-11-15 09:23:38]  [   12.835427] usbhid: USB HID core driver
    [2023-11-15 09:23:38]  [   12.848152] tiadc tiadc: attached adc driver
    [2023-11-15 09:23:38]  [   12.887891] ALSA device list:
    [2023-11-15 09:23:38]  [   12.891020]   No soundcards found.
    [2023-11-15 09:23:38]  [   12.894600] oprofile: hardware counters not available
    [2023-11-15 09:23:38]  [   12.899933] oprofile: using timer interrupt.
    [2023-11-15 09:23:38]  [   12.904589] Netfilter messages via NETLINK v0.30.
    [2023-11-15 09:23:38]  [   12.909703] nf_conntrack version 0.5.0 (1902 buckets, 7608 max)
    [2023-11-15 09:23:38]  [   12.916263] ctnetlink v0.93: registering with nfnetlink.
    [2023-11-15 09:23:38]  [   12.953877] xt_time: kernel timezone is -0000
    [2023-11-15 09:23:38]  [   12.958758] ip_tables: (C) 2000-2006 Netfilter Core Team
    [2023-11-15 09:23:38]  [   12.964575] ipt_CLUSTERIP: ClusterIP Version 0.8 loaded successfully
    [2023-11-15 09:23:38]  [   12.971363] arp_tables: (C) 2002 David S. Miller
    [2023-11-15 09:23:38]  [   12.976330] TCP cubic registered
    [2023-11-15 09:23:38]  [   12.979917] NET: Registered protocol family 10
    [2023-11-15 09:23:38]  [   12.985508] Mobile IPv6
    [2023-11-15 09:23:38]  [   12.988135] IPv6 over IPv4 tunneling driver
    [2023-11-15 09:23:38]  [   13.002371] NET: Registered protocol family 17
    [2023-11-15 09:23:38]  [   13.007141] can: controller area network core (rev 20090105 abi 8)
    [2023-11-15 09:23:38]  [   13.013805] NET: Registered protocol family 29
    [2023-11-15 09:23:38]  [   13.018545] can: raw protocol (rev 20090105)
    [2023-11-15 09:23:38]  [   13.023036] can: broadcast manager protocol (rev 20090105 t)
    [2023-11-15 09:23:38]  [   13.060265] Bluetooth: RFCOMM TTY layer initialized
    [2023-11-15 09:23:38]  [   13.065409] Bluetooth: RFCOMM socket layer initialized
    [2023-11-15 09:23:38]  [   13.070838] Bluetooth: RFCOMM ver 1.11
    [2023-11-15 09:23:38]  [   13.074785] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [2023-11-15 09:23:38]  [   13.080381] Bluetooth: BNEP filters: protocol multicast
    [2023-11-15 09:23:38]  [   13.085876] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [2023-11-15 09:23:38]  [   13.092594] Registering the dns_resolver key type
    [2023-11-15 09:23:38]  [   13.097665] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [2023-11-15 09:23:38]  [   13.105735] ThumbEE CPU extension supported.
    [2023-11-15 09:23:38]  [   13.110313] mux: Failed to setup hwmod io irq -22
    [2023-11-15 09:23:38]  [   13.116010] Power Management for AM33XX family
    [2023-11-15 09:23:38]  [   13.120964] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [2023-11-15 09:23:38]  [   13.127707] Copied the M3 firmware to UMEM
    [2023-11-15 09:23:38]  [   13.132095] Cortex M3 Firmware Version = 0x181
    [2023-11-15 09:23:38]  [   13.197319] clock: disabling unused clocks to save power
    [2023-11-15 09:23:38]  [   13.213217] Detected MACID=54:45:38:3f:aa:79
    [2023-11-15 09:23:38]  [   13.227236] cpsw: Detected MACID = 54:45:38:3f:aa:7b
    [2023-11-15 09:23:38]  [   13.242752] input: gpio-keys as /devices/platform/gpio-keys/input/input1
    [2023-11-15 09:23:38]  [   13.289799] rtc-rx8010 2-0032: setting system clock to 1970-01-01 00:00:00 UTC (0)
    [2023-11-15 09:23:38]  [   13.635388] UBIFS: recovery needed
    [2023-11-15 09:23:39]  [   14.553276] UBIFS: recovery completed
    [2023-11-15 09:23:39]  [   14.557193] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [2023-11-15 09:23:39]  [   14.563515] UBIFS: file system size:   1004634112 bytes (981088 KiB, 958 MiB, 3956 LEBs)
    [2023-11-15 09:23:39]  [   14.572042] UBIFS: journal size:       9404416 bytes (9184 KiB, 8 MiB, 38 LEBs)
    [2023-11-15 09:23:39]  [   14.579741] UBIFS: media format:       w4/r0 (latest is w4/r0)
    [2023-11-15 09:23:40]  [   14.585876] UBIFS: default compressor: lzo
    [2023-11-15 09:23:40]  [   14.590192] UBIFS: reserved for root:  0 bytes (0 KiB)
    [2023-11-15 09:23:40]  [   14.598702] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [2023-11-15 09:23:40]  [   14.606634] devtmpfs: mounted
    [2023-11-15 09:23:40]  [   14.610233] Freeing init memory: 268K
    [2023-11-15 09:23:40]  
    INIT: version 2.88 booting
    
    [2023-11-15 09:23:40]  Starting udev
    [2023-11-15 09:23:42]  [   18.128507] udev[819]: starting version 164
    [2023-11-15 09:23:43]  Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    [2023-11-15 09:23:45]  bootlogd.
    [2023-11-15 09:23:45]  Configuring network interfaces... [   21.499096] net eth0: CPSW phy found : id is : 0x7c0f1
    [2023-11-15 09:23:46]  [   21.520841] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [2023-11-15 09:23:46]  done.
    [2023-11-15 09:23:47]  hwclock: settimeofday: Invalid argument
    [2023-11-15 09:23:47]  
    INIT: Entering runlevel: 5
    
    [2023-11-15 09:23:47]  Starting system message bus: dbus.
    [2023-11-15 09:23:48]  Starting telnet daemon.
    [2023-11-15 09:23:48]  Starting inetd daemon.
    [2023-11-15 09:23:48]  hwclock: settimeofday: Invalid argument
    [2023-11-15 09:23:48]  Starting syslogd/klogd: done
    [2023-11-15 09:23:48]  /etc/rc5.d/S97matrix-gui: line 45: /home/root/loop.sh: No such file or directory
    [2023-11-15 09:23:48]  xres = 480, yres = 272
    [2023-11-15 09:23:49]  Stopping Bootlog daemon: bootlogd.
    [2023-11-15 09:23:51]  
    [2023-11-15 09:23:52]   _____   _____   _____    _       _   __   _  __    __
    [2023-11-15 09:23:52]  |  ___| /  _  \ |  _  \  | |     | | |  \ | | \ \  / /
    [2023-11-15 09:23:52]  | |__   | | | | | |_| |  | |     | | |   \| |  \ \/ /
    [2023-11-15 09:23:52]  |  __|  | | | | |  _  /  | |     | | | |\   |   }  {
    [2023-11-15 09:23:52]  | |     | |_| | | | \ \  | |___  | | | | \  |  / /\ \
    [2023-11-15 09:23:52]  |_|     \_____/ |_|  \_\ |_____| |_| |_|  \_| /_/  \_\
    [2023-11-15 09:23:52]  ok335x login: [   3
    non-booting.log
    =~=~=~=~=~=~=~=~=~=~=~= MobaXterm log 2023.11.15 09:25:03 =~=~=~=~=~=~=~=~=~=~=~=
      
    [2023-11-15 09:25:42]  U-Boot SPL 2011.09 (Oct 09 2023 - 01:19:43)
    [2023-11-15 09:25:42]  Texas Instruments Revision detection unimplemented
    [2023-11-15 09:25:42]  SPL: Un-supported Boot Device - 6!!!
    [2023-11-15 09:25:42]  ### ERROR ### Please RESET the board ###
    [2023-11-15 09:25:42]  
    [2023-11-15 09:25:45]  U-Boot SPL 2011.09 (Oct 09 2023 - 01:19:43)
    [2023-11-15 09:25:45]  Texas Instruments Revision detection unimplemented
    [2023-11-15 09:25:45]  SPL: Un-supported Boot Device - 6!!!
    [2023-11-15 09:25:45]  ### ERROR ### Please RESET the board ###
    [2023-11-15 09:25:45]  

  • Hello,
    - From the "booting" log, NAND boot looks fine.
    - From the "non-booting" log, ROM loading/booting SPL looks ok, but from "NANDI2C" boot mode, which is listed as unsupported boot mode by SPL as shown in the log "SPL: Un-supported Boot Device - 6!!!". This could be caused by HW etc... It is possible to modify SPL code to treat "NANDI2C" as normal NAND boot mode, but you'll be on your own to try it out as the SDK you're using is from 2011...
    Best,
    -Hong

  • This could be caused by HW etc...

    What will cause this?Can you enumerate the possible options?

    It is possible to modify SPL code to treat "NANDI2C" as normal NAND boot mode

    Actually we did so,and it can boot from NAND.But we still want to know what will cause this .

    And we ran into another problem,the debug information shows CCC,that means the CPU can't find any boot device .We measure the sysboot[4:0] pin when it print CCC,and it is right.So,another question,what will cause this ?Tthe CPU issue or what other? 

  • Hello,
    As noted in my previous reply, the issue looks to me related with the HW board.
    Let me loop in my colleague for his input.
    Best,
    -Hong

  • It appears the SPL is read by the NAND, and then the failures occurs.  This means that the ROM is reading the NAND correctly, but something goes wrong when the NAND is read in SPL. 

    -Does this happen on multiple boards?

    -can you send schematic of the NAND portion interfacing with the processor?

    -did you change the NAND driver in SPL in any way?

    Regards,

    James

      

  • Hi,

    We didn‘t modify the NAND driver in the SPL

    Analyze from the source code below arch/arm/cpu/armv7/omap-common/spl.c

    void board_init_r(gd_t *id, ulong dummy)
    {
    u32 boot_device;
    debug(">>spl:board_init_r()\n");
    
    timer_init();
    i2c_init(CONFIG_SYS_I2C_SPEED, CONFIG_SYS_I2C_SLAVE);
    
    #ifdef CONFIG_SPL_BOARD_INIT
    spl_board_init();
    #endif
    
    boot_device = omap_boot_device();

    arch/arm/cpu/armv7/ti81xx/board.c 

    u32 omap_boot_device(void)
    {
            return ti81xx_boot_device;
    }
    

    arch/arm/cpu/armv7/ti81xx/lowlevel_init.S

    #ifdef CONFIG_SPL_BUILD
            ldr     r4, =ti81xx_boot_device
            ldr     r5, [r0, #BOOT_DEVICE_OFFSET]
            and     r5, r5, #BOOT_DEVICE_MASK
            str     r5, [r4]
    #endif

    boot_device = 6 is from rom register ro,so why SPL is read by the NAND,However, the ROM conducts the wrong value to boot_device

  • Hi

    Xiongwei is our software engineer,and he  has some questions about this issue, please answer them.Thank you.

  • Hi 

    Xiongwei is our software engineer,and he  has some questions about this issue, please answer them.Thank you.

  • Based on your investigation, it appears SPL is reading the register which latches in the SYSBOOT pins.  Can you add some debug code which dumps the CONTROL_STATUS register at 0x44e10040, before and after the failures?  For some reason, this register seems to be changing.

    Regards,

    James

  • I add some debug code to dump the CONTROL_STATUS register at 0x44e10040,here are the results:MMC boot

    boot from nand

    boot from i2cnand

    boot_device 8 is boot from mmc

    boot_deivce 5 is boot from nand

    boot_device 6 is boot from i2cnand, but the value of the CONTROL_STATUS register is same,

    so why the ROM conducts the wrong value to boot_device?

    Looking forward to hearing from you,thank you.

  • - From the "booting" log, NAND boot looks fine.
    - From the "non-booting" log, ROM loading/booting SPL looks ok, but from "NANDI2C" boot mode, which is listed as unsupported boot mode by SPL as shown in the log "SPL: Un-supported Boot Device - 6!!!". This could be caused by HW etc... It is possible to modify SPL code to treat "NANDI2C" as normal NAND boot mode, but you'll be on your own to try it out as the SDK you're using is from 2011...

    I'd propose the workaround as we discussed earlier
    "...modify SPL code to treat "NANDI2C" as normal NAND boot mode..."
    Best,
    -Hong