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.

Unable to mount NOR flash (mtd) partition.

Part Number: AM62P

Tool/software:

Hi, 

Once after the kernel and file system are up, I can see the mtd partitions under /proc/mtd/ . 

But, mtd partitions are not listed when I run the df command or mount command. 

Following mount command also fails. 

#mount -t jffs2 /dev/mtdblock2 /mnt/testdir

Regards, 

Prabhu

  • The query has been assigned to the expert. Please expect a response within a day or two.

    Thanks!

  • Once after the kernel and file system are up, I can see the mtd partitions under /proc/mtd/

    Can you provide the output of `ls -al /dev/mtd*`?

    Also, can you pls attach a complete Kernel log.

    Following mount command also fails. 

    #mount -t jffs2 /dev/mtdblock2 /mnt/testdir

    How does it fail (log)?

    Regards, Andreas

  • Output for 

    mount -t jffs2 /dev/mtdblock2 /mnt/test

    tried other types of file system. 

    That is also failed with the following output. 

    output for 

    #ls /dev/mtd* 

    output for 

    #mount 

    Output for 

    #df 

    mkfs commands available on the target. 

    Regards, 

    Prabhu

  • Dmesg log is also attached. Taken just after the kernel and file system are up. 

    0434.dmesg.log
    dmesg
    [    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
    [    0.000000] Linux version 6.1.83-ti-gc1c2f1971fbf (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP PREEMPT Mon May 13 20:19:51 UTC 2024
    [    0.000000] Machine model: Visteon AM62P5 Toyota Pre-sample A
    [    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002800000 (options '')
    [    0.000000] printk: bootconsole [ns16550a0] enabled
    [    0.000000] efi: UEFI not found.
    [    0.000000] OF: reserved mem: failed to allocate memory for node 'linux,cma': size 576 MiB
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c800000, size 1 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-dma-memory@9c800000, compatible id shared-dma-pool
    [    0.000000] Reserved memory: created DMA memory pool at 0x000000009c900000, size 30 MiB
    [    0.000000] OF: reserved mem: initialized node r5f-memory@9c900000, compatible id shared-dma-pool
    [    0.000000] Zone ranges:
    [    0.000000]   DMA      [mem 0x0000000080000000-0x00000000bfffffff]
    [    0.000000]   DMA32    empty
    [    0.000000]   Normal   empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009c7fffff]
    [    0.000000]   node   0: [mem 0x000000009c800000-0x000000009e6fffff]
    [    0.000000]   node   0: [mem 0x000000009e700000-0x000000009e77ffff]
    [    0.000000]   node   0: [mem 0x000000009e780000-0x000000009fffffff]
    [    0.000000]   node   0: [mem 0x00000000a0000000-0x00000000bfffffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x00000000bfffffff]
    [    0.000000] cma: Reserved 32 MiB at 0x00000000bcc00000
    [    0.000000] psci: probing for conduit method from DT.
    [    0.000000] psci: PSCIv1.1 detected in firmware.
    [    0.000000] psci: Using standard PSCI v0.2 function IDs
    [    0.000000] psci: Trusted OS migration not required
    [    0.000000] psci: SMC Calling Convention v1.5
    [    0.000000] percpu: Embedded 20 pages/cpu s41448 r8192 d32280 u81920
    [    0.000000] pcpu-alloc: s41448 r8192 d32280 u81920 alloc=20*4096
    [    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
    [    0.000000] Detected VIPT I-cache on CPU0
    [    0.000000] CPU features: detected: GIC system register CPU interface
    [    0.000000] CPU features: detected: ARM erratum 845719
    [    0.000000] alternatives: applying boot alternatives
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 258048
    [    0.000000] Kernel command line: console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000 root=/dev/mmcblk0p1 rw rootfstype=ext4 rootwait
    [    0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 918336K/1048576K available (12096K kernel code, 1270K rwdata, 4076K rodata, 2048K init, 438K bss, 97472K reserved, 32768K cma-reserved)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu: 	RCU event tracing is enabled.
    [    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] 	Tracing variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
    [    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
    [    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
    [    0.000000] GICv3: GIC: Using split EOI/Deactivate mode
    [    0.000000] GICv3: 256 SPIs implemented
    [    0.000000] GICv3: 0 Extended SPIs implemented
    [    0.000000] Root IRQ handler: gic_handle_irq
    [    0.000000] GICv3: GICv3 features: 16 PPIs
    [    0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000001880000
    [    0.000000] ITS [mem 0x01820000-0x0182ffff]
    [    0.000000] GIC: enabling workaround for ITS: Socionext Synquacer pre-ITS
    [    0.000000] ITS@0x0000000001820000: Devices Table too large, reduce ids 20->19
    [    0.000000] ITS@0x0000000001820000: allocated 524288 Devices @82400000 (flat, esz 8, psz 64K, shr 0)
    [    0.000000] ITS: using cache flushing for cmd queue
    [    0.000000] GICv3: using LPI property table @0x0000000081840000
    [    0.000000] GIC: using cache flushing for LPI property table
    [    0.000000] GICv3: CPU0: using allocated LPI pending table @0x0000000081850000
    [    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (phys).
    [    0.000000] clocksource: arch_sys_counter: mask: 0x3ffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
    [    0.000000] sched_clock: 58 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
    [    0.000261] Console: colour dummy device 80x25
    [    0.000304] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
    [    0.000315] pid_max: default: 32768 minimum: 301
    [    0.000361] LSM: Security Framework initializing
    [    0.000461] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [    0.000473] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
    [    0.001885] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.001900] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.001961] cblist_init_generic: Setting adjustable number of callback queues.
    [    0.001966] cblist_init_generic: Setting shift to 2 and lim to 1.
    [    0.002104] rcu: Hierarchical SRCU implementation.
    [    0.002109] rcu: 	Max phase no-delay instances is 1000.
    [    0.002325] Platform MSI: msi-controller@1820000 domain created
    [    0.002469] PCI/MSI: /bus@f0000/interrupt-controller@1800000/msi-controller@1820000 domain created
    [    0.002644] EFI services will not be available.
    [    0.002850] smp: Bringing up secondary CPUs ...
    [    0.003402] Detected VIPT I-cache on CPU1
    [    0.003489] GICv3: CPU1: found redistributor 1 region 0:0x00000000018a0000
    [    0.003504] GICv3: CPU1: using allocated LPI pending table @0x0000000081860000
    [    0.003551] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]
    [    0.004197] Detected VIPT I-cache on CPU2
    [    0.004269] GICv3: CPU2: found redistributor 2 region 0:0x00000000018c0000
    [    0.004283] GICv3: CPU2: using allocated LPI pending table @0x0000000081870000
    [    0.004313] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]
    [    0.004853] Detected VIPT I-cache on CPU3
    [    0.004923] GICv3: CPU3: found redistributor 3 region 0:0x00000000018e0000
    [    0.004934] GICv3: CPU3: using allocated LPI pending table @0x0000000081880000
    [    0.004961] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]
    [    0.005024] smp: Brought up 1 node, 4 CPUs
    [    0.005038] SMP: Total of 4 processors activated.
    [    0.005043] CPU features: detected: 32-bit EL0 Support
    [    0.005048] CPU features: detected: CRC32 instructions
    [    0.005100] CPU: All CPU(s) started at EL2
    [    0.005104] alternatives: applying system-wide alternatives
    [    0.006307] devtmpfs: initialized
    [    0.012659] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
    [    0.012688] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
    [    0.013767] pinctrl core: initialized pinctrl subsystem
    [    0.014272] DMI not present or invalid.
    [    0.014809] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [    0.015815] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
    [    0.016037] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
    [    0.016129] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
    [    0.016196] audit: initializing netlink subsys (disabled)
    [    0.016336] audit: type=2000 audit(0.016:1): state=initialized audit_enabled=0 res=1
    [    0.016725] thermal_sys: Registered thermal governor 'step_wise'
    [    0.016731] thermal_sys: Registered thermal governor 'power_allocator'
    [    0.016769] cpuidle: using governor menu
    [    0.016899] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
    [    0.016980] ASID allocator initialised with 65536 entries
    [    0.026621] platform 30200000.dss: Fixed dependency cycle(s) with /display
    [    0.026679] platform display: Fixed dependency cycle(s) with /bus@f0000/dss@30200000
    [    0.027046] KASLR disabled due to lack of seed
    [    0.033292] HugeTLB: registered 1.00 GiB page size, pre-allocated 0 pages
    [    0.033305] HugeTLB: 0 KiB vmemmap can be freed for a 1.00 GiB page
    [    0.033311] HugeTLB: registered 32.0 MiB page size, pre-allocated 0 pages
    [    0.033315] HugeTLB: 0 KiB vmemmap can be freed for a 32.0 MiB page
    [    0.033320] HugeTLB: registered 2.00 MiB page size, pre-allocated 0 pages
    [    0.033323] HugeTLB: 0 KiB vmemmap can be freed for a 2.00 MiB page
    [    0.033328] HugeTLB: registered 64.0 KiB page size, pre-allocated 0 pages
    [    0.033332] HugeTLB: 0 KiB vmemmap can be freed for a 64.0 KiB page
    [    0.034515] k3-chipinfo 43000014.chipid: Family:AM62PX rev:SR1.0 JTAGID[0x0bb9d02f] Detected
    [    0.034993] iommu: Default domain type: Translated 
    [    0.034999] iommu: DMA domain TLB invalidation policy: strict mode 
    [    0.035019] Einstein_gpios_pins_init
    [    0.035303] SCSI subsystem initialized
    [    0.035419] libata version 3.00 loaded.
    [    0.035589] usbcore: registered new interface driver usbfs
    [    0.035620] usbcore: registered new interface driver hub
    [    0.035643] usbcore: registered new device driver usb
    [    0.035928] pps_core: LinuxPPS API ver. 1 registered
    [    0.035933] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.035945] PTP clock support registered
    [    0.036050] EDAC MC: Ver: 3.0.0
    [    0.036774] omap-mailbox 29000000.mailbox: omap mailbox rev 0x66fca100
    [    0.036844] omap-mailbox 29010000.mailbox: no available mbox devices found
    [    0.036879] omap-mailbox 29020000.mailbox: no available mbox devices found
    [    0.036912] omap-mailbox 29030000.mailbox: no available mbox devices found
    [    0.037212] FPGA manager framework
    [    0.037285] Advanced Linux Sound Architecture Driver Initialized.
    [    0.038065] clocksource: Switched to clocksource arch_sys_counter
    [    0.038262] VFS: Disk quotas dquot_6.6.0
    [    0.038297] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
    [    0.043635] NET: Registered PF_INET protocol family
    [    0.043916] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
    [    0.044977] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
    [    0.045000] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.045012] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    0.045072] TCP bind hash table entries: 8192 (order: 6, 262144 bytes, linear)
    [    0.045274] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.045381] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
    [    0.045414] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
    [    0.045558] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [    0.045973] RPC: Registered named UNIX socket transport module.
    [    0.045982] RPC: Registered udp transport module.
    [    0.045986] RPC: Registered tcp transport module.
    [    0.045989] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.045997] NET: Registered PF_XDP protocol family
    [    0.046011] PCI: CLS 0 bytes, default 64
    [    0.046700] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
    [    0.048030] Initialise system trusted keyrings
    [    0.048235] workingset: timestamp_bits=46 max_order=18 bucket_order=0
    [    0.052259] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    0.052785] NFS: Registering the id_resolver key type
    [    0.052814] Key type id_resolver registered
    [    0.052818] Key type id_legacy registered
    [    0.052871] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    0.052877] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    0.088025] Key type asymmetric registered
    [    0.088035] Asymmetric key parser 'x509' registered
    [    0.088080] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
    [    0.088219] io scheduler mq-deadline registered
    [    0.088226] io scheduler kyber registered
    [    0.091000] pinctrl-single 4084000.pinctrl: 34 pins, size 136
    [    0.091541] pinctrl-single f4000.pinctrl: 171 pins, size 684
    [    0.097014] Serial: 8250/16550 driver, 12 ports, IRQ sharing enabled
    [    0.101711] panel-simple display: supply power not found, using dummy regulator
    [    0.101876] ------------[ cut here ]------------
    [    0.101882] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/panel/panel-simple.c:616 panel_simple_probe+0x2fc/0x3b0
    [    0.101903] Modules linked in:
    [    0.101913] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.1.83-ti-gc1c2f1971fbf #1
    [    0.101921] Hardware name: Visteon AM62P5 Toyota Pre-sample A (DT)
    [    0.101926] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [    0.101934] pc : panel_simple_probe+0x2fc/0x3b0
    [    0.101944] lr : panel_simple_probe+0xdc/0x3b0
    [    0.101953] sp : ffff8000093ebaf0
    [    0.101956] x29: ffff8000093ebb70 x28: 0000000000000000 x27: ffff800008ff00c8
    [    0.101969] x26: ffff800009076060 x25: ffff800009076078 x24: 0000000000000000
    [    0.101980] x23: ffff800009382a38 x22: ffff800008c9e510 x21: ffff0000028b9410
    [    0.101992] x20: ffff000001aae280 x19: 0000000000000007 x18: ffffffffffffffff
    [    0.102004] x17: 616c756765722079 x16: 6d6d756420676e69 x15: ffff00000182ea1c
    [    0.102015] x14: 0000000000000000 x13: 00302e726f74616c x12: 756765723a726f74
    [    0.102027] x11: 2d2d302e726f7461 x10: 0000000000060280 x9 : 0000000000000004
    [    0.102038] x8 : 0101010101010101 x7 : 7f7f7f7f7f7f7f7f x6 : fefefeff666d686c
    [    0.102050] x5 : 8080808000000000 x4 : 0000000000000000 x3 : ffff800009390f50
    [    0.102061] x2 : 0000000000000000 x1 : 0000000000000046 x0 : 00000000ffffffcc
    [    0.102074] Call trace:
    [    0.102078]  panel_simple_probe+0x2fc/0x3b0
    [    0.102088]  panel_simple_platform_probe+0x34/0x4c
    [    0.102098]  platform_probe+0x68/0xe0
    [    0.102108]  really_probe+0xbc/0x2dc
    [    0.102115]  __driver_probe_device+0x78/0x114
    [    0.102122]  driver_probe_device+0xd8/0x15c
    [    0.102129]  __driver_attach+0x94/0x19c
    [    0.102136]  bus_for_each_dev+0x74/0xd4
    [    0.102142]  driver_attach+0x24/0x30
    [    0.102149]  bus_add_driver+0x154/0x20c
    [    0.102155]  driver_register+0x78/0x130
    [    0.102162]  __platform_driver_register+0x28/0x34
    [    0.102170]  panel_simple_init+0x24/0x64
    [    0.102181]  do_one_initcall+0x54/0x1d0
    [    0.102189]  kernel_init_freeable+0x218/0x284
    [    0.102199]  kernel_init+0x24/0x130
    [    0.102209]  ret_from_fork+0x10/0x20
    [    0.102217] ---[ end trace 0000000000000000 ]---
    [    0.102269] ------------[ cut here ]------------
    [    0.102273] WARNING: CPU: 0 PID: 1 at drivers/gpu/drm/panel/panel-simple.c:621 panel_simple_probe+0x30c/0x3b0
    [    0.102287] Modules linked in:
    [    0.102292] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G        W          6.1.83-ti-gc1c2f1971fbf #1
    [    0.102299] Hardware name: Visteon AM62P5 Toyota Pre-sample A (DT)
    [    0.102302] pstate: a0000005 (NzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
    [    0.102309] pc : panel_simple_probe+0x30c/0x3b0
    [    0.102318] lr : panel_simple_probe+0xdc/0x3b0
    [    0.102327] sp : ffff8000093ebaf0
    [    0.102331] x29: ffff8000093ebb70 x28: 0000000000000000 x27: ffff800008ff00c8
    [    0.102343] x26: ffff800009076060 x25: ffff800009076078 x24: 0000000000000000
    [    0.102354] x23: ffff800009382a38 x22: ffff800008c9e510 x21: ffff0000028b9410
    [    0.102366] x20: ffff000001aae280 x19: 0000000000000007 x18: ffffffffffffffff
    [    0.102377] x17: 616c756765722079 x16: 6d6d756420676e69 x15: ffff00000182ea1c
    [    0.102389] x14: 0000000000000000 x13: 00302e726f74616c x12: 756765723a726f74
    [    0.102400] x11: 2d2d302e726f7461 x10: 0000000000060280 x9 : 0000000000000004
    [    0.102412] x8 : 0101010101010101 x7 : 7f7f7f7f7f7f7f7f x6 : fefefeff666d686c
    [    0.102423] x5 : 8080808000000000 x4 : 0000000000000000 x3 : ffff800009390f50
    [    0.102434] x2 : 00000000ffffeff0 x1 : 00000000fffffffa x0 : 000000000000100a
    [    0.102446] Call trace:
    [    0.102448]  panel_simple_probe+0x30c/0x3b0
    [    0.102458]  panel_simple_platform_probe+0x34/0x4c
    [    0.102468]  platform_probe+0x68/0xe0
    [    0.102476]  really_probe+0xbc/0x2dc
    [    0.102482]  __driver_probe_device+0x78/0x114
    [    0.102489]  driver_probe_device+0xd8/0x15c
    [    0.102496]  __driver_attach+0x94/0x19c
    [    0.102503]  bus_for_each_dev+0x74/0xd4
    [    0.102509]  driver_attach+0x24/0x30
    [    0.102515]  bus_add_driver+0x154/0x20c
    [    0.102521]  driver_register+0x78/0x130
    [    0.102528]  __platform_driver_register+0x28/0x34
    [    0.102536]  panel_simple_init+0x24/0x64
    [    0.102544]  do_one_initcall+0x54/0x1d0
    [    0.102551]  kernel_init_freeable+0x218/0x284
    [    0.102559]  kernel_init+0x24/0x130
    [    0.102566]  ret_from_fork+0x10/0x20
    [    0.102573] ---[ end trace 0000000000000000 ]---
    [    0.107899] loop: module loaded
    [    0.108781] megasas: 07.719.03.00-rc1
    [    0.111511] tun: Universal TUN/TAP device driver, 1.6
    [    0.112095] VFIO - User Level meta-driver version: 0.3
    [    0.112710] usbcore: registered new interface driver usb-storage
    [    0.113162] i2c_dev: i2c /dev entries driver
    [    0.114401] sdhci: Secure Digital Host Controller Interface driver
    [    0.114412] sdhci: Copyright(c) Pierre Ossman
    [    0.114573] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.115079] ledtrig-cpu: registered to indicate activity on CPUs
    [    0.115219] SMCCC: SOC_ID: ARCH_SOC_ID not implemented, skipping ....
    [    0.115512] usbcore: registered new interface driver usbhid
    [    0.115517] usbhid: USB HID core driver
    [    0.116245] optee: probing for conduit method.
    [    0.116274] optee: revision 4.1 (012cdca4)
    [    0.116517] optee: dynamic shared memory is enabled
    [    0.116736] optee: initialized driver
    [    0.117906] Initializing XFRM netlink socket
    [    0.117937] NET: Registered PF_PACKET protocol family
    [    0.118006] Key type dns_resolver registered
    [    0.118382] registered taskstats version 1
    [    0.118405] Loading compiled-in X.509 certificates
    [    0.126181] ti-sci 44043000.system-controller: ABI: 3.1 (firmware rev 0x0009 '9.2.7--v09.02.07 (Kool Koala)')
    [    0.159910] ti-sci-intr 4210000.interrupt-controller: Interrupt Router 5 domain created
    [    0.160043] ti-sci-intr bus@f0000:interrupt-controller@a00000: Interrupt Router 3 domain created
    [    0.160241] ti-sci-inta 48000000.interrupt-controller: Interrupt Aggregator domain 28 created
    [    0.160479] ti-sci-inta 4e400000.interrupt-controller: Interrupt Aggregator domain 200 created
    [    0.161047] ti-udma 485c0100.dma-controller: Number of rings: 82
    [    0.162859] ti-udma 485c0100.dma-controller: Channels: 48 (bchan: 18, tchan: 12, rchan: 18)
    [    0.165015] ti-udma 485c0000.dma-controller: Number of rings: 150
    [    0.168382] ti-udma 485c0000.dma-controller: Channels: 35 (tchan: 20, rchan: 15)
    [    0.170096] ti-udma 4e230000.dma-controller: Number of rings: 6
    [    0.170489] ti-udma 4e230000.dma-controller: Channels: 6 (bchan: 0, tchan: 0, rchan: 6)
    [    0.171473] printk: console [ttyS2] disabled
    [    0.171534] 2800000.serial: ttyS2 at MMIO 0x2800000 (irq = 248, base_baud = 3000000) is a 8250
    [    0.171600] printk: console [ttyS2] enabled
    [    0.171605] printk: bootconsole [ns16550a0] disabled
    [    0.172482] 2840000.serial: ttyS4 at MMIO 0x2840000 (irq = 249, base_baud = 3000000) is a 8250
    [    0.175614] [drm] Initialized tidss 1.0.0 20180215 for 30200000.dss on minor 0
    [    0.179374] Console: switching to colour frame buffer device 240x45
    [    0.205789] tidss 30200000.dss: [drm] fb0: tidssdrmfb frame buffer device
    [    0.207924] spi-nor spi0.0: mx25uw12845g (16384 Kbytes)
    [    0.208012] 3 fixed-partitions partitions found on MTD device fc40000.spi.0
    [    0.208021] Creating 3 MTD partitions on "fc40000.spi.0":
    [    0.208027] 0x000000000000-0x000000080000 : "SBL_STAGE1"
    [    0.209140] 0x000000080000-0x000000100000 : "SBL_STAGE2"
    [    0.210097] 0x000000100000-0x000000200000 : "DM_APP"
    [    0.213896] mmc0: CQHCI version 5.10
    [    0.255158] mmc0: SDHCI controller on fa10000.mmc [fa10000.mmc] using ADMA 64-bit
    [    0.328761] mmc0: Command Queue Engine enabled
    [    0.328830] mmc0: new HS400 MMC card at address 0001
    [    0.331080] mmcblk0: mmc0:0001 8GUF4R 7.28 GiB 
    [    0.337375]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16
    [    0.339493] mmcblk0boot0: mmc0:0001 8GUF4R 31.9 MiB 
    [    0.340438] mmcblk0boot1: mmc0:0001 8GUF4R 31.9 MiB 
    [    0.341252] mmcblk0rpmb: mmc0:0001 8GUF4R 4.00 MiB, chardev (240:0)
    [    1.122968] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    1.123274] debugfs: Directory 'pd:244' with parent 'pm_genpd' already present!
    [    1.130051] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    1.130165] debugfs: Directory 'pd:182' with parent 'pm_genpd' already present!
    [    1.139230] ALSA device list:
    [    1.139248]   No soundcards found.
    [    1.143756] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Quota mode: none.
    [    1.144283] VFS: Mounted root (ext4 filesystem) on device 179:1.
    [    1.146154] devtmpfs: mounted
    [    1.146823] Freeing unused kernel memory: 2048K
    [    1.146930] Run /sbin/init as init process
    [    1.146937]   with arguments:
    [    1.146940]     /sbin/init
    [    1.146942]   with environment:
    [    1.146945]     HOME=/
    [    1.146948]     TERM=linux
    [    1.225408] pvrsrvkm: loading out-of-tree module taints kernel.
    [    1.240197] PVR_K:  135: Device: fd80000.gpu
    [    1.241078] PVR_K:  135: Read BVNC 36.53.104.796 from HW device registers
    [    1.241122] PVR_K:  135: RGX Device registered BVNC 36.53.104.796 with 1 core in the system
    [    1.241718] [drm] Initialized pvr 23.3.6512818 20170530 for fd80000.gpu on minor 1
    [    1.293741] systemd[1]: System time before build time, advancing clock.
    [    1.320200] systemd[1]: systemd 250.5+ running in system mode (+PAM -AUDIT -SELINUX -APPARMOR +IMA -SMACK +SECCOMP -GCRYPT -GNUTLS -OPENSSL +ACL +BLKID -CURL -ELFUTILS -FIDO2 -IDN2 -IDN -IPTC +KMOD -LIBCRYPTSETUP +LIBFDISK -PCRE2 -PWQUALITY -P11KIT -QRENCODE -BZIP2 -LZ4 -XZ -ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP +SYSVINIT default-hierarchy=hybrid)
    [    1.321024] systemd[1]: Detected architecture arm64.
    [    1.375206] systemd[1]: Hostname set to <am62pxx-einstein>.
    [    1.914695] systemd[1]: Configuration file /etc/systemd/system/vmf.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    1.944564] systemd[1]: Configuration file /etc/systemd/system/dlt-daemon.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    1.945625] systemd[1]: Configuration file /etc/systemd/system/display-static-image.service is marked executable. Please remove executable permission bits. Proceeding anyway.
    [    2.014150] systemd[1]: Queued start job for default target Multi-User System.
    [    2.061633] systemd[1]: Created slice Slice /system/getty.
    [    2.063631] systemd[1]: Created slice Slice /system/modprobe.
    [    2.065303] systemd[1]: Created slice Slice /system/serial-getty.
    [    2.066793] systemd[1]: Created slice User and Session Slice.
    [    2.067164] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    2.067419] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    2.067744] systemd[1]: Reached target Path Units.
    [    2.067850] systemd[1]: Reached target Remote File Systems.
    [    2.067928] systemd[1]: Reached target Slice Units.
    [    2.068037] systemd[1]: Reached target Swaps.
    [    2.068656] systemd[1]: Listening on Syslog Socket.
    [    2.068991] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    2.069653] systemd[1]: Listening on Journal Audit Socket.
    [    2.070029] systemd[1]: Listening on Journal Socket (/dev/log).
    [    2.070548] systemd[1]: Listening on Journal Socket.
    [    2.071156] systemd[1]: Listening on Network Service Netlink Socket.
    [    2.071740] systemd[1]: Listening on udev Control Socket.
    [    2.072097] systemd[1]: Listening on udev Kernel Socket.
    [    2.072460] systemd[1]: Listening on User Database Manager Socket.
    [    2.076146] systemd[1]: Mounting Huge Pages File System...
    [    2.080274] systemd[1]: Mounting POSIX Message Queue File System...
    [    2.084802] systemd[1]: Mounting Kernel Debug File System...
    [    2.085445] systemd[1]: Kernel Trace File System was skipped because of a failed condition check (ConditionPathExists=/sys/kernel/tracing).
    [    2.090238] systemd[1]: Mounting Temporary Directory /tmp...
    [    2.095261] systemd[1]: Starting Create List of Static Device Nodes...
    [    2.100086] systemd[1]: Starting Load Kernel Module configfs...
    [    2.104683] systemd[1]: Starting Load Kernel Module drm...
    [    2.108589] configfs: exports duplicate symbol config_group_find_item (owned by kernel)
    [    2.109791] systemd[1]: Starting Load Kernel Module fuse...
    [    2.110200] systemd[1]: File System Check on Root Device was skipped because of a failed condition check (ConditionPathIsReadWrite=!/).
    [    2.116602] systemd[1]: Starting Journal Service...
    [    2.118381] systemd[1]: Load Kernel Modules was skipped because all trigger condition checks failed.
    [    2.119933] fuse: init (API version 7.37)
    [    2.123329] systemd[1]: Starting Generate network units from Kernel command line...
    [    2.128045] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    2.133102] systemd[1]: Starting Apply Kernel Variables...
    [    2.138165] systemd[1]: Starting Coldplug All udev Devices...
    [    2.146666] systemd[1]: Mounted Huge Pages File System.
    [    2.147445] systemd[1]: Mounted POSIX Message Queue File System.
    [    2.148234] systemd[1]: Mounted Kernel Debug File System.
    [    2.149116] systemd[1]: Mounted Temporary Directory /tmp.
    [    2.163853] EXT4-fs (mmcblk0p1): re-mounted. Quota mode: none.
    [    2.167282] systemd[1]: Finished Create List of Static Device Nodes.
    [    2.174593] systemd[1]: modprobe@drm.service: Deactivated successfully.
    [    2.175578] systemd[1]: Finished Load Kernel Module drm.
    [    2.179085] systemd[1]: modprobe@fuse.service: Deactivated successfully.
    [    2.180066] systemd[1]: Finished Load Kernel Module fuse.
    [    2.181728] systemd[1]: Finished Generate network units from Kernel command line.
    [    2.183555] systemd[1]: modprobe@configfs.service: Deactivated successfully.
    [    2.184473] systemd[1]: Finished Load Kernel Module configfs.
    [    2.186000] systemd[1]: Finished Remount Root and Kernel File Systems.
    [    2.186894] systemd[1]: Reached target Preparation for Network.
    [    2.191240] systemd[1]: Mounting FUSE Control File System...
    [    2.195828] systemd[1]: Mounting Kernel Configuration File System...
    [    2.197518] systemd[1]: Rebuild Hardware Database was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
    [    2.197910] systemd[1]: Platform Persistent Storage Archival was skipped because of a failed condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
    [    2.198324] systemd[1]: Create System Users was skipped because of a failed condition check (ConditionNeedsUpdate=/etc).
    [    2.203920] systemd[1]: Starting Create Static Device Nodes in /dev...
    [    2.207762] systemd[1]: Mounted FUSE Control File System.
    [    2.216090] systemd[1]: Finished Apply Kernel Variables.
    [    2.220727] systemd[1]: Mounted Kernel Configuration File System.
    [    2.240201] systemd[1]: Finished Create Static Device Nodes in /dev.
    [    2.240689] systemd[1]: Reached target Preparation for Local File Systems.
    [    2.244360] audit: type=1334 audit(1651167745.948:2): prog-id=5 op=LOAD
    [    2.244687] audit: type=1334 audit(1651167745.948:3): prog-id=6 op=LOAD
    [    2.264928] systemd[1]: Starting Rule-based Manager for Device Events and Files...
    [    2.265533] systemd[1]: Started Journal Service.
    [    2.297664] systemd-journald[163]: Received client request to flush runtime journal.
    [    2.610110] random: crng init done
    [    2.676423] PVR_K:  143: RGX Firmware image 'rgx.fw.36.53.104.796' loaded
    [    2.692560] PVR_K:  143: Shader binary image 'rgx.sh.36.53.104.796' loaded
    [    2.846318] rtc-ti-k3 2b1f0000.rtc: Clock rate 32552 is not 32768! Could misbehave!
    [    2.862725] rtc-ti-k3 2b1f0000.rtc: registered as rtc0
    [    2.863212] rtc-ti-k3 2b1f0000.rtc: setting system clock to 1970-01-01T00:00:03 UTC (3)
    [    2.866897] systemd-journald[163]: Time jumped backwards, rotating.
    [    2.900251] platform 78000000.r5f: R5F core may have been powered on by a different host, programmed state (0) != actual state (1)
    [    2.913631] platform 78000000.r5f: configured R5F for IPC-only mode
    [    2.913776] platform 78000000.r5f: assigned reserved memory node r5f-dma-memory@9c800000
    [    2.914555] remoteproc remoteproc0: 78000000.r5f is available
    [    2.914638] remoteproc remoteproc0: attaching to 78000000.r5f
    [    2.914731] platform 78000000.r5f: R5F core initialized in IPC-only mode
    [    2.914738] remoteproc remoteproc0: remote processor 78000000.r5f is now attached
    [    3.291286] dwc3 31100000.usb: Configuration mismatch. dr_mode forced to gadget
    [    3.335623] usbcore: exports duplicate symbol cdc_parse_cdc_header (owned by kernel)
    [    3.395850] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode. Quota mode: none.
    [    3.401093] EXT4-fs (mmcblk0p5): mounted filesystem with ordered data mode. Quota mode: none.
    [    3.417486] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode. Quota mode: none.
    [    3.800966] systemd-journald[163]: Oldest entry in /run/log/journal/63effb0abed54a408d903ac0f06915be/system.journal is older than the configured file retention duration (1month), suggesting rotation.
    [    3.800999] systemd-journald[163]: /run/log/journal/63effb0abed54a408d903ac0f06915be/system.journal: Journal header limits reached or header out-of-date, rotating.
    [    3.888709] audit: type=1334 audit(1651168941.900:4): prog-id=7 op=LOAD
    [    3.889125] audit: type=1334 audit(1651168941.900:5): prog-id=8 op=LOAD
    [    8.458172] audit: type=1334 audit(1651168946.468:6): prog-id=9 op=LOAD
    [    8.459089] audit: type=1334 audit(1651168946.472:7): prog-id=10 op=LOAD
    [    8.825001] audit: type=1006 audit(1651168946.836:8): pid=272 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
    [    8.825035] audit: type=1300 audit(1651168946.836:8): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffde502a40 a2=1 a3=ffff9d0f6020 items=0 ppid=1 pid=272 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="(systemd)" exe="/lib/systemd/systemd" key=(null)
    [    8.825047] audit: type=1327 audit(1651168946.836:8): proctitle="(systemd)"
    [    8.852917] audit: type=1334 audit(1651168946.864:9): prog-id=11 op=LOAD
    [    8.852948] audit: type=1300 audit(1651168946.864:9): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=ffffe5ce6f60 a2=78 a3=0 items=0 ppid=1 pid=272 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=1 comm="systemd" exe="/lib/systemd/systemd" key=(null)
    [    8.852960] audit: type=1327 audit(1651168946.864:9): proctitle="(systemd)"
    [    8.852973] audit: type=1334 audit(1651168946.864:10): prog-id=11 op=UNLOAD
    [    8.853088] audit: type=1334 audit(1651168946.864:11): prog-id=12 op=LOAD
    root@am62pxx-einstein@18:03:31:~# 
    root@am62pxx-einstein@18:03:36:~# 
    root@am62pxx-einstein@18:03:36:~# 

    Regards, 

    Prabhu

  • Thanks for the additional info, will review first thing next week.

    Regards, Andreas

  • Hi Prabhu,

    so reviewing what you sent I see evidence in several places that the Kernel is aware of the following (and only those) flash regions/partitions:

    [ 0.208027] 0x000000000000-0x000000080000 : "SBL_STAGE1"
    [ 0.209140] 0x000000080000-0x000000100000 : "SBL_STAGE2"
    [ 0.210097] 0x000000100000-0x000000200000 : "DM_APP"

    ...which get exposed to the system through /dev/mtd*{0,1,2}

    All these are raw partitions, containing straight binary firmware images. There is no filesystem associated with those partitions, hence mounting those won't work.

    If you want to access these raw-data containing partitions you should use the character device for this. For example, to see the contents of the partition that holds "SBL_STAGE1" you would do this (on my system it's all 0xff - erased)

    root@am62pxx-evm:~# hexdump -C /dev/mtd0 | head
    00000000  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
    *
    00080000

    I suppose you are using an SBL-based bootflow, using the bootloader from the MCU+ SDK. If you want to have a filesystem on your flash you need to edit the device tree file to define additional partition(s), which you can then format with a specific filesystem (using `mkfs.xxxx`), and then you can mount them.

    Regards, Andreas