AM3358: change cpu frequency of AM3358

Part Number: AM3358

Tool/software:

I am using AM3358. And this project uses SDK 6.0.0.7.
I want to change the CPU frequency for testing during use.

However, cpufreq is not visible in sysfs.

root@AptusLx:/sys/devices/system/cpu/cpu0# ls
crash_notes       of_node           subsystem         uevent
crash_notes_size  power             topology

I remember changing the CPU frequency through sysfs before.
However, it is not present in AM3358.
Does AM3358 not support changing cpufreq?
If it can be changed, how?

Regards,
Seungmin Nam.

  • Hi,

    Yes, AM3358 support DVFS. Please ensure your kernel has CPUFREQ config enabled.

    The SDK kernel defconfig "tisdk_am335x-evm_defconfig" enables CPUFREQ.

  • Dear Bin Liu,

    I checked again and the project is using TI SDK v8.2.0.24.
    And the config I use was modified based on am335x-evm.
    I am attaching the config I am using. (config.zip (.config))

    0537.config.zip

    Looking at this config, it looks like CPUFREQ is enabled.

    #
    # CPU Frequency scaling
    #
    CONFIG_CPU_FREQ=y
    CONFIG_CPU_FREQ_GOV_ATTR_SET=y
    CONFIG_CPU_FREQ_GOV_COMMON=y
    CONFIG_CPU_FREQ_STAT=y
    CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
    # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set
    # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
    # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set
    # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set
    CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
    CONFIG_CPU_FREQ_GOV_POWERSAVE=y
    CONFIG_CPU_FREQ_GOV_USERSPACE=y
    CONFIG_CPU_FREQ_GOV_ONDEMAND=y
    CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y


    Do I need to enable other parts more?

    Regards,

    Seungmin Nam.

  • Hi,

    Please double check with tisdk_am335x-evm_defconfig in the SDK kernel to see what else is missing. For example:

    $ grep 'CPUFREQ.*=y' arch/arm/configs/tisdk_am335x-evm_defconfig
    CONFIG_CPUFREQ_DT=y
    CONFIG_CPUFREQ_DT_PLATDEV=y
    CONFIG_ARM_TI_CPUFREQ=y

  • I just checked your config.zip, it seems you already have these options enabled.

    Does the kernel boot log say anything wrong with CPUFREQ?

  • Dear Bin Liu.

    Thank you for checking.
    There is no CPUFREQ wrong log in the bootlog.

    Attached boot log.

    74382.boot.log
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 5.10.100+ (builder@c27c683a60aa) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #44 PREEMPT Mon Jun 17 12:48:59 KST 2024
    [    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: Intellian GMDSS SDT IGT
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9c800000
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fefffff]
    [    0.000000]   HighMem  empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fefffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
    [    0.000000] On node 0 totalpages: 130816
    [    0.000000]   Normal zone: 1022 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 130816 pages, LIFO batch:31
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [    0.000000] pcpu-alloc: [0] 0 
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129794
    [    0.000000] Kernel command line: root=/dev/mmcblk1p15 ro ext4 console=ttyS1,115200n8 v2_apps_part=18 vt.global_cursor_default=0
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 453964K/523264K available (9216K kernel code, 652K rwdata, 3280K rodata, 1024K init, 274K bss, 20148K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] 	Trampoline variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [    0.000000] random: get_random_bytes called from start_kernel+0x288/0x3cc with crng_init=0
    [    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [    0.000010] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000029] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000351] TI gptimer clockevent: 25000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [    0.001239] Console: colour dummy device 80x30
    [    0.001321] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.090423] pid_max: default: 32768 minimum: 301
    [    0.090575] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.090591] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.091291] CPU: Testing write buffer coherency: ok
    [    0.091370] CPU0: Spectre v2: using BPIALL workaround
    [    0.092161] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.092300] rcu: Hierarchical SRCU implementation.
    [    0.092393] EFI services will not be available.
    [    0.092757] devtmpfs: initialized
    [    0.102973] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.103231] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.103256] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [    0.106598] pinctrl core: initialized pinctrl subsystem
    [    0.107554] DMI not present or invalid.
    [    0.108018] NET: Registered protocol family 16
    [    0.110182] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.127305] l3-aon-clkctrl:0000:0: failed to disable
    [    0.128417] thermal_sys: Registered thermal governor 'fair_share'
    [    0.128429] thermal_sys: Registered thermal governor 'bang_bang'
    [    0.128444] thermal_sys: Registered thermal governor 'step_wise'
    [    0.128452] thermal_sys: Registered thermal governor 'user_space'
    [    1.203963] No ATAGs?
    [    1.204000] hw-breakpoint: debug architecture 0x4 unsupported.
    [    2.560409] random: fast init done
    [    4.302998] iommu: Default domain type: Translated 
    [    4.304923] SCSI subsystem initialized
    [    4.305154] usbcore: registered new interface driver usbfs
    [    4.305215] usbcore: registered new interface driver hub
    [    4.305269] usbcore: registered new device driver usb
    [    4.305854] pps_core: LinuxPPS API ver. 1 registered
    [    4.305868] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    4.305891] PTP clock support registered
    [    4.306428] Advanced Linux Sound Architecture Driver Initialized.
    [    4.307502] clocksource: Switched to clocksource dmtimer
    [    4.314933] NET: Registered protocol family 2
    [    4.315168] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    4.316068] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [    4.316100] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    4.316141] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    4.316179] TCP: Hash tables configured (established 4096 bind 4096)
    [    4.316308] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    4.316330] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    4.316461] NET: Registered protocol family 1
    [    4.316976] RPC: Registered named UNIX socket transport module.
    [    4.316994] RPC: Registered udp transport module.
    [    4.317002] RPC: Registered tcp transport module.
    [    4.317008] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    4.318895] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    4.320132] Initialise system trusted keyrings
    [    4.320433] workingset: timestamp_bits=30 max_order=17 bucket_order=0
    [    4.324341] NFS: Registering the id_resolver key type
    [    4.324400] Key type id_resolver registered
    [    4.324409] Key type id_legacy registered
    [    4.325067] Key type cifs.idmap registered
    [    4.325093] ntfs: driver 2.1.32 [Flags: R/O].
    [    4.417018] Key type asymmetric registered
    [    4.417046] Asymmetric key parser 'x509' registered
    [    4.417122] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [    4.417135] io scheduler mq-deadline registered
    [    4.417144] io scheduler kyber registered
    [    4.737241] ti-sysc 48038000.target-module: dts flag should be at module level for ti,no-idle
    [    4.837048] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    4.958108] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [    4.958158] edma 49000000.dma: TI EDMA DMA engine driver
    [    4.969741] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [    4.979999] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    4.983973] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a 8250
    [    4.985369] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 27, base_baud = 3000000) is a 8250
    [    5.632709] printk: console [ttyS1] enabled
    [    5.638357] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 28, base_baud = 3000000) is a 8250
    [    5.648485] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 40, base_baud = 3000000) is a 8250
    [    5.660117] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    5.667794] random: crng init done
    [    5.672643] tilcdc-panel panel: failed to request enable GPIO
    [    5.679097] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    5.689611] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    5.700265] tilcdc 4830e000.lcdc: no encoders/connectors found
    [    5.731204] loop: module loaded
    [    5.737962] CAN device driver interface
    [    5.743259] c_can_platform 481cc000.can: c_can_platform device registered (regs=fd31dd31, irq=43)
    [    5.755693] mdio_bus 4a101000.mdio: mii_bus 4a101000.mdio couldn't get reset GPIO
    [    5.764084] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    5.770592] cpsw 4a100000.ethernet: ALE Table size 1024
    [    5.775932] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    5.783226] cpsw 4a100000.ethernet: Detected MACID = e0:92:8f:72:fc:d0
    [    5.790594] cpsw 4a100000.ethernet: cpsw: Detected MACID = e0:92:8f:72:fc:d2
    [    5.801073] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
    [    5.818582] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
    [    5.829879] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    5.836454] ehci-omap: OMAP-EHCI Host Controller driver
    [    5.842003] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    5.849410] usbcore: registered new interface driver uas
    [    5.854813] usbcore: registered new interface driver usb-storage
    [    5.865898] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    5.871360] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [    5.879017] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    5.887323] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.894599] usb usb1: Product: MUSB HDRC host driver
    [    5.899595] usb usb1: Manufacturer: Linux 5.10.100+ musb-hcd
    [    5.905277] usb usb1: SerialNumber: musb-hdrc.0
    [    5.910453] hub 1-0:1.0: USB hub found
    [    5.914262] hub 1-0:1.0: 1 port detected
    [    5.932183] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    5.938192] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [    5.945772] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
    [    5.954117] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    5.961380] usb usb2: Product: MUSB HDRC host driver
    [    5.966364] usb usb2: Manufacturer: Linux 5.10.100+ musb-hcd
    [    5.972067] usb usb2: SerialNumber: musb-hdrc.1
    [    5.977237] hub 2-0:1.0: USB hub found
    [    5.981122] hub 2-0:1.0: 1 port detected
    [    5.998795] mousedev: PS/2 mouse device common for all mice
    [    6.005429] rotary-encoder rotary1: gray
    [    6.011890] omap_rtc 44e3e000.rtc: char device (253:0)
    [    6.011922] omap_rtc 44e3e000.rtc: registered as rtc0
    [    6.017049] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
    [    6.026146] i2c /dev entries driver
    [    6.031140] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    6.040306] sdhci: Secure Digital Host Controller Interface driver
    [    6.046528] sdhci: Copyright(c) Pierre Ossman
    [    6.053085] sdhci-pltfm: SDHCI platform and OF driver helper
    [    6.060516] ledtrig-cpu: registered to indicate activity on CPUs
    [    6.068388] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    6.074430] omap-aes 53500000.aes: will run requests pump with realtime priority
    [    6.116363] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    6.122783] omap-sham 53100000.sham: will run requests pump with realtime priority
    [    6.153457] usbcore: registered new interface driver usbhid
    [    6.159471] usbhid: USB HID core driver
    [    6.168172] davinci-mcasp 48038000.mcasp: IRQ common not found
    [    6.176051] NET: Registered protocol family 17
    [    6.180922] can: controller area network core
    [    6.185413] NET: Registered protocol family 29
    [    6.189966] can: raw protocol
    [    6.192977] can: broadcast manager protocol
    [    6.197205] can: netlink gateway - max_hops=1
    [    6.201828] 8021q: 802.1Q VLAN Support v1.8
    [    6.206122] Key type dns_resolver registered
    [    6.210592] omap_voltage_late_init: Voltage driver support not added
    [    6.217561] Loading compiled-in X.509 certificates
    [    6.225013] mmc1: new high speed MMC card at address 0001
    [    6.238602] mmcblk1: mmc1:0001 HAG4a2 14.7 GiB 
    [    6.243447] mmcblk1boot0: mmc1:0001 HAG4a2 partition 1 31.9 MiB
    [    6.250660] mmcblk1boot1: mmc1:0001 HAG4a2 partition 2 31.9 MiB
    [    6.256865] mmcblk1rpmb: mmc1:0001 HAG4a2 partition 3 4.00 MiB, chardev (245:0)
    [    6.265265] OMAP GPIO hardware version 0.1
    [    6.276858]  mmcblk1: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 >
    [    6.298282] sgtl5000 0-000a: sgtl5000 revision 0x11
    [    6.322942] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
    [    6.359744] tps65218-pwrbutton: Failed to locate of_node [id: -2]
    [    6.366174] tps65218-gpio: Failed to locate of_node [id: -2]
    [    6.377861] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    6.388853] tilcdc-panel panel: found enable GPIO
    [    6.394064] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    6.404599] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    6.416473] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    6.469682] Console: switching to colour frame buffer device 128x37
    [    6.492506] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
    [    6.557546] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    6.568876] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver SMSC LAN8710/LAN8720
    [    6.578161] davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver SMSC LAN8710/LAN8720
    [    6.588333] rotary-encoder rotary1: gray
    [    6.593319] input: rotary1 as /devices/platform/rotary1/input/input0
    [    6.602750] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [    6.612975] sdhci-omap 48060000.mmc: Got CD GPIO
    [    6.618026] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
    [    6.641646] cfg80211: Loading compiled-in X.509 certificates for regulatory database
    [    6.650173] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
    [    7.049950] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
    [    7.056692] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
    [    7.065806] ALSA device list:
    [    7.068882] cfg80211: failed to load regulatory.db
    [    7.073789]   #0: Gmdss-Sgtl5000-Audio
    [    7.083510] EXT4-fs (mmcblk1p15): mounted filesystem with ordered data mode. Opts: (null)
    [    7.092038] VFS: Mounted root (ext4 filesystem) readonly on device 179:15.
    [    7.100959] devtmpfs: mounted
    [    7.105599] Freeing unused kernel memory: 1024K
    [    7.118019] Run /sbin/init as init process
    [    7.122137]   with arguments:
    [    7.122143]     /sbin/init
    [    7.122147]     ext4
    [    7.122151]   with environment:
    [    7.122155]     HOME=/
    [    7.122159]     TERM=linux
    [    7.122163]     v2_apps_part=18
    [    7.262219] systemd[1]: System time before build time, advancing clock.
    [    7.290136] systemd[1]: systemd 244 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    7.312567] systemd[1]: Detected architecture arm.
    [    7.349170] systemd[1]: Set hostname to <AptusLx>.
    [    7.359180] systemd[1]: Initializing machine ID from random generator.
    [    7.366079] systemd[1]: Installed transient /etc/machine-id file.
    [    7.702676] systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
    [    7.711957] systemd[1]: Binding to IPv6 address not available since kernel does not support IPv6.
    [    7.727415] systemd[1]: /lib/systemd/system/pcscd.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/pcscd/pcscd.comm \xe2\x86\x92 /run/pcscd/pcscd.comm; please update the unit file accordingly.
    [    7.880310] systemd[1]: getty.target: Wants dependency dropin /etc/systemd/system/getty.target.wants/getty@tty1.service is not a symlink, ignoring.
    [    8.056832] systemd[1]: system-serial\x2dgetty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    8.070425] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    8.080461] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [    8.118780] systemd[1]: Created slice system-syslog\x2dng.slice.
    [    8.158535] systemd[1]: Created slice User and Session Slice.
    [    8.198283] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [    8.238137] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [    8.278201] systemd[1]: Reached target Paths.
    [    8.317838] systemd[1]: Reached target Remote File Systems.
    [    8.357780] systemd[1]: Reached target Slices.
    [    8.387811] systemd[1]: Reached target Swap.
    [    8.420666] systemd[1]: Listening on RPCbind Server Activation Socket.
    [    8.457880] systemd[1]: Reached target RPC Port Mapper.
    [    8.508179] systemd[1]: Listening on Process Core Dump Socket.
    [    8.548364] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [    8.597321] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    8.606874] systemd[1]: Listening on Journal Socket (/dev/log).
    [    8.648858] systemd[1]: Listening on Journal Socket.
    [    8.688856] systemd[1]: Listening on udev Control Socket.
    [    8.728535] systemd[1]: Listening on udev Kernel Socket.
    [    8.768579] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
    [    8.780842] systemd[1]: Mounting /dev/mqueue...
    [    8.803052] systemd[1]: Mounting Kernel Debug File System...
    [    8.852902] systemd[1]: Mounting Temporary Directory (/tmp)...
    [    8.898560] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
    [    8.916368] systemd[1]: Starting RPC Bind...
    [    8.925254] systemd[163]: rpcbind.service: Failed to execute command: No such file or directory
    [    8.972074] systemd[1]: Starting Journal Service...
    [    9.001905] systemd[1]: Starting Load Kernel Modules...
    [    9.043813] Goodix-TS 1-005d: supply AVDD28 not found, using dummy regulator
    [    9.061934] systemd[1]: Starting Remount Root and Kernel File Systems...
    [    9.078119] Goodix-TS 1-005d: supply VDDIO not found, using dummy regulator
    [    9.122165] systemd[1]: Starting udev Coldplug all Devices...
    [    9.159842] EXT4-fs (mmcblk1p15): re-mounted. Opts: (null)
    [    9.169295] Goodix-TS 1-005d: ID 911, version: 1060
    [    9.204863] systemd[1]: Mounted /dev/mqueue.
    [    9.230111] systemd[1]: Mounted Kernel Debug File System.
    [    9.240748] Goodix-TS 1-005d: The firmware[Ver 0x43] don't have to be updated: All data values are same
    [    9.277980] Goodix-TS 1-005d: Skipped to write config data
    [    9.299137] systemd[1]: Mounted Temporary Directory (/tmp).
    [    9.308918] input: Goodix Capacitive TouchScreen as /devices/platform/ocp/48000000.interconnect/48000000.interconnect:segment@0/4802a000.target-module/4802a000.i2c/i2c-1/1-005d/input/input1
    [    9.378967] systemd[1]: rpcbind.service: Main process exited, code=exited, status=203/EXEC
    [    9.389156] systemd[1]: rpcbind.service: Failed with result 'exit-code'.
    [    9.415955] systemd[1]: Failed to start RPC Bind.
    [    9.498949] systemd[1]: Started Journal Service.
    [    9.738429] systemd-journald[164]: Received client request to flush runtime journal.
    [   21.361871] EXT4-fs (mmcblk1p9): mounted filesystem with ordered data mode. Opts: (null)
    [   23.447013] c_can_platform 481cc000.can can0: setting BTR=2f04 BRPE=0000
    [   25.384384] EXT4-fs (mmcblk1p10): mounted filesystem with ordered data mode. Opts: (null)
    [   25.412492] ext4 filesystem being mounted at /usr/local/config supports timestamps until 2038 (0x7fffffff)
    [   25.529177] EXT4-fs (mmcblk1p11): mounted filesystem with ordered data mode. Opts: (null)
    [   25.639975] EXT4-fs (mmcblk1p12): mounted filesystem with ordered data mode. Opts: (null)
    [   25.751223] EXT4-fs (mmcblk1p18): INFO: recovery required on readonly filesystem
    [   25.767527] EXT4-fs (mmcblk1p18): write access will be enabled during recovery
    [   25.808048] EXT4-fs (mmcblk1p18): recovery complete
    [   25.814647] EXT4-fs (mmcblk1p18): mounted filesystem with ordered data mode. Opts: (null)
    [   25.968153] EXT4-fs (mmcblk1p13): mounted filesystem with ordered data mode. Opts: (null)
    [   32.870809] net eth1: initializing cpsw version 1.12 (0)
    [   32.988456] SMSC LAN8710/LAN8720 4a101000.mdio:07: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:07, irq=POLL)
    [   33.074240] 8021q: adding VLAN 0 to HW filter on device eth1
    [   33.418176] cpsw 4a100000.ethernet: initializing cpsw version 1.12 (0)
    [   33.588737] SMSC LAN8710/LAN8720 4a101000.mdio:01: attached PHY driver [SMSC LAN8710/LAN8720] (mii_bus:phy_addr=4a101000.mdio:01, irq=POLL)
    [   33.664998] 8021q: adding VLAN 0 to HW filter on device eth0
    [  514.977568] hrtimer: interrupt took 70000 ns
    [62243.250981] EXT4-fs (mmcblk1p18): re-mounted. Opts: (null)
    [62243.277882] ext4 filesystem being remounted at /usr/local/apps supports timestamps until 2038 (0x7fffffff)
    

    And I download

    And I downloaded kernel 5.10.100 from git.
    URL: git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git
    But tisdk_am335x-evm_defconfig is not visible.

    Please tell me where I can check tisdk_am335x-evm_defconfig.

    Regards,
    Seungmin Nam.

  • tisdk_am335x-evm_defconfig is kernel defconfig, provided in the kernel source directory in the Processor SDK:

    https://www.ti.com/tool/PROCESSOR-SDK-AM335X

  • Dear Bin Liu,

    Have you reviewed the attached bootlog?
    I couldn't find any particular issues in the defconfig.
    Is there any way to further enable debugging logs or check for additional methods?

    Regards,

    Seungmin Nam.

  • tisdk_am335x-evm_defconfig is kernel defconfig, provided in the kernel source directory in the Processor SDK:

    Have you tried to build the kernel with this defconfig? Does cpufreq show up in sysfs with this defconfig?

  • Dear Bin Liu,

    Even if you build the kernel with tisdk_am335x-evm_defconfig, sysfs is not visible.
    Are there more things to consider in other settings?

    And there is a cpufreq folder in sysfs. But there is no content in it.

    root@AptusLx:~# ls /sys/devices/system/cpu/
    cpu0        cpuidle     kernel_max  offline     possible    present
    cpufreq     isolated    modalias    online      power       uevent
    root@AptusLx:~# ls -al /sys/devices/system/cpu/
    cpu0/       cpuidle/    kernel_max  offline     possible    present
    cpufreq/    isolated    modalias    online      power/      uevent
    root@AptusLx:~# ls -al /sys/devices/system/cpu/cpufreq/
    drwxr-xr-x    2 root     intellia         0 Jan  1 00:05 .
    drwxr-xr-x    6 root     intellia         0 Mar 14  2024 ..

    tisdk_am335x-evm_defconfig_kernel_log.log
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 5.10.100-ge4ae63fad39b-dirty (builder@6ef87f901ddf) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 20191025, GNU ld (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 2.33.1.20191209) #4 PREEMPT Tue Jul 2 11:04:06 KST 2024
    [    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: Intellian GMDSS SDT IGT
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] efi: UEFI not found.
    [    0.000000] cma: Reserved 48 MiB at 0x9c800000
    [    0.000000] Zone ranges:
    [    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fefffff]
    [    0.000000]   HighMem  empty
    [    0.000000] Movable zone start for each node
    [    0.000000] Early memory node ranges
    [    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fefffff]
    [    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (sgx neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129666
    [    0.000000] Kernel command line: root=/dev/mmcblk1p15 ro ext4 console=ttyS1,115200n8 v2_apps_part=18 vt.global_cursor_default=0
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
    [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
    [    0.000000] Memory: 452372K/523264K available (10240K kernel code, 695K rwdata, 3408K rodata, 1024K init, 280K bss, 21740K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] rcu: Preemptible hierarchical RCU implementation.
    [    0.000000] rcu:     RCU event tracing is enabled.
    [    0.000000]  Trampoline variant of Tasks RCU enabled.
    [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrupts
    [    0.000000] random: get_random_bytes called from start_kernel+0x30c/0x4c8 with crng_init=0
    [    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [    0.000009] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.000027] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.000373] TI gptimer clockevent: 25000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [    0.001304] Console: colour dummy device 80x30
    [    0.001395] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.090448] pid_max: default: 32768 minimum: 301
    [    0.090618] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.090634] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [    0.091537] CPU: Testing write buffer coherency: ok
    [    0.091621] CPU0: Spectre v2: using BPIALL workaround
    [    0.092512] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.092665] rcu: Hierarchical SRCU implementation.
    [    0.092760] EFI services will not be available.
    [    0.093159] devtmpfs: initialized
    [    0.103481] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.103742] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.103769] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
    [    0.107340] pinctrl core: initialized pinctrl subsystem
    [    0.108388] DMI not present or invalid.
    [    0.108898] NET: Registered protocol family 16
    [    0.111311] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.128990] l3-aon-clkctrl:0000:0: failed to disable
    [    0.130246] thermal_sys: Registered thermal governor 'fair_share'
    [    0.130259] thermal_sys: Registered thermal governor 'bang_bang'
    [    0.130275] thermal_sys: Registered thermal governor 'step_wise'
    [    0.130283] thermal_sys: Registered thermal governor 'user_space'
    [    0.130716] cpuidle: using governor ladder
    [    0.130755] cpuidle: using governor menu
    [    1.237631] No ATAGs?
    [    1.237663] hw-breakpoint: debug architecture 0x4 unsupported.
    [    1.263697] iommu: Default domain type: Translated
    [    1.265757] SCSI subsystem initialized
    [    1.266253] mc: Linux media interface: v0.10
    [    1.266298] videodev: Linux video capture interface: v2.00
    [    1.266410] pps_core: LinuxPPS API ver. 1 registered
    [    1.266421] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    1.266445] PTP clock support registered
    [    1.266510] EDAC MC: Ver: 3.0.0
    [    1.267826] Advanced Linux Sound Architecture Driver Initialized.
    [    1.269248] clocksource: Switched to clocksource dmtimer
    [    1.276819] NET: Registered protocol family 2
    [    1.277054] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [    1.278141] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [    1.278181] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    1.278222] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [    1.278262] TCP: Hash tables configured (established 4096 bind 4096)
    [    1.278382] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    1.278405] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
    [    1.278526] NET: Registered protocol family 1
    [    1.279112] RPC: Registered named UNIX socket transport module.
    [    1.279129] RPC: Registered udp transport module.
    [    1.279136] RPC: Registered tcp transport module.
    [    1.279143] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    1.279163] PCI: CLS 0 bytes, default 64
    [    1.280613] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    1.281920] Initialise system trusted keyrings
    [    1.282355] workingset: timestamp_bits=14 max_order=17 bucket_order=3
    [    1.286020] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [    1.286860] NFS: Registering the id_resolver key type
    [    1.286913] Key type id_resolver registered
    [    1.286922] Key type id_legacy registered
    [    1.287019] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [    1.287031] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [    1.287071] ntfs: driver 2.1.32 [Flags: R/O].
    [    1.287685] Key type asymmetric registered
    [    1.287707] Asymmetric key parser 'x509' registered
    [    1.287760] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
    [    1.287773] io scheduler mq-deadline registered
    [    1.287782] io scheduler kyber registered
    [    1.616218] ti-sysc 48038000.target-module: dts flag should be at module level for ti,no-idle
    [    1.706945] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    1.831391] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [    1.831442] edma 49000000.dma: TI EDMA DMA engine driver
    [    1.844669] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [    1.898952] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
    [    1.903902] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a 8250
    [    1.905793] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 27, base_baud = 3000000) is a 8250
    [    2.493742] random: fast init done
    [    2.584234] printk: console [ttyS1] enabled
    [    2.590437] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 28, base_baud = 3000000) is a 8250
    [    2.601189] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 39, base_baud = 3000000) is a 8250
    [    2.613171] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    2.619748] random: crng init done
    [    2.625977] tilcdc-panel panel: failed to request enable GPIO
    [    2.632478] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    2.643070] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    2.653731] tilcdc 4830e000.lcdc: no encoders/connectors found
    [    2.686895] brd: module loaded
    [    2.697384] loop: module loaded
    [    2.710898] mdio_bus 4a101000.mdio: mii_bus 4a101000.mdio couldn't get reset GPIO
    [    2.719385] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
    [    2.725781] cpsw 4a100000.ethernet: ALE Table size 1024
    [    2.731174] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
    [    2.738419] cpsw 4a100000.ethernet: Detected MACID = e0:92:8f:72:fc:d0
    [    2.745810] cpsw 4a100000.ethernet: cpsw: Detected MACID = e0:92:8f:72:fc:d2
    [    2.755491] i2c /dev entries driver
    [    2.761994] cpuidle: enable-method property 'ti,am3352' found operations
    [    2.769573] sdhci: Secure Digital Host Controller Interface driver
    [    2.775790] sdhci: Copyright(c) Pierre Ossman
    [    2.782879] sdhci-pltfm: SDHCI platform and OF driver helper
    [    2.791024] ledtrig-cpu: registered to indicate activity on CPUs
    [    2.801966] davinci-mcasp 48038000.mcasp: IRQ common not found
    [    2.809765] NET: Registered protocol family 10
    [    2.816602] Segment Routing with IPv6
    [    2.820854] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    2.827578] NET: Registered protocol family 17
    [    2.832689] Key type dns_resolver registered
    [    2.837763] omap_voltage_late_init: Voltage driver support not added
    [    2.845147] Loading compiled-in X.509 certificates
    [    2.863601] OMAP GPIO hardware version 0.1
    [    2.870114] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
    [    2.900906] tps65218-pwrbutton: Failed to locate of_node [id: -2]
    [    2.907368] tps65218-gpio: Failed to locate of_node [id: -2]
    [    2.919456] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [    2.931522] tilcdc-panel panel: found enable GPIO
    [    2.936968] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    2.947744] OF: graph: no port node found in /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [    2.960134] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
    [    2.975188] mmc1: new high speed MMC card at address 0001
    [    2.976121] mmcblk1: mmc1:0001 HAG4a2 14.7 GiB
    [    2.976435] mmcblk1boot0: mmc1:0001 HAG4a2 partition 1 31.9 MiB
    [    2.976715] mmcblk1boot1: mmc1:0001 HAG4a2 partition 2 31.9 MiB
    [    2.976977] mmcblk1rpmb: mmc1:0001 HAG4a2 partition 3 4.00 MiB, chardev (243:0)
    [    2.983520]  mmcblk1: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 p11 p12 p13 p14 p15 p16 p17 p18 p19 p20 >
    [    3.013626] Console: switching to colour frame buffer device 128x37
    [    3.074479] tilcdc 4830e000.lcdc: [drm] fb0: tilcdcdrmfb frame buffer device
    [    3.139266] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [    3.151016] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver SMSC LAN8710/LAN8720
    [    3.160327] davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver SMSC LAN8710/LAN8720
    [    3.173598] ALSA device list:
    [    3.176655]   No soundcards found.
    [    3.187179] EXT4-fs (mmcblk1p15): mounted filesystem with ordered data mode. Opts: (null)
    [    3.195721] VFS: Mounted root (ext4 filesystem) readonly on device 179:15.
    [    3.204796] devtmpfs: mounted
    [    3.209670] Freeing unused kernel memory: 1024K
    [    3.219804] Run /sbin/init as init process
    [    3.368515] systemd[1]: System time before build time, advancing clock.
    [    3.395681] systemd[1]: systemd 244 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR -SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS +ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD -IDN2 -IDN -PCRE2 default-hierarchy=hybrid)
    [    3.418122] systemd[1]: Detected architecture arm.
    
    Welcome to Certus!
    
    [    3.460746] systemd[1]: Set hostname to <AptusLx>.
    [    3.470687] systemd[1]: Initializing machine ID from random generator.
    [    3.477645] systemd[1]: Installed transient /etc/machine-id file.
    [    3.842531] systemd[1]: /lib/systemd/system/pcscd.socket:5: ListenStream= references a path below legacy directory /var/run/, updating /var/run/pcscd/pcscd.comm → /run/pcscd/pcscd.comm; please update the unit file accordingly.
    [    4.005275] systemd[1]: getty.target: Wants dependency dropin /etc/systemd/system/getty.target.wants/getty@tty1.service is not a symlink, ignoring.
    [    4.176261] systemd[1]: system-serial\x2dgetty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
    [    4.189882] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
    [    4.203450] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [  OK  ] Created slice system-serial\x2dgetty.slice.
    [    4.241775] systemd[1]: Created slice system-syslog\x2dng.slice.
    [  OK  ] Created slice system-syslog\x2dng.slice.
    [    4.281490] systemd[1]: Created slice User and Session Slice.
    [  OK  ] Created slice User and Session Slice.
    [    4.320198] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [  OK  ] Started Dispatch Password …ts to Console Directory Watch.
    [    4.360004] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [  OK  ] Started Forward Password R…uests to Wall Directory Watch.
    [    4.400146] systemd[1]: Reached target Paths.
    [  OK  ] Reached target Paths.
    [    4.439655] systemd[1]: Reached target Remote File Systems.
    [  OK  ] Reached target Remote File Systems.
    [    4.479591] systemd[1]: Reached target Slices.
    [  OK  ] Reached target Slices.
    [    4.519617] systemd[1]: Reached target Swap.
    [  OK  ] Reached target Swap.
    [    4.554518] systemd[1]: Listening on RPCbind Server Activation Socket.
    [  OK  ] Listening on RPCbind Server Activation Socket.
    [    4.589678] systemd[1]: Reached target RPC Port Mapper.
    [  OK  ] Reached target RPC Port Mapper.
    [    4.640001] systemd[1]: Listening on Process Core Dump Socket.
    [  OK  ] Listening on Process Core Dump Socket.
    [    4.680228] systemd[1]: Listening on initctl Compatibility Named Pipe.
    [  OK  ] Listening on initctl Compatibility Named Pipe.
    [    4.731425] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
    [    4.741076] systemd[1]: Listening on Journal Socket (/dev/log).
    [  OK  ] Listening on Journal Socket (/dev/log).
    [    4.780729] systemd[1]: Listening on Journal Socket.
    [  OK  ] Listening on Journal Socket.
    [    4.820767] systemd[1]: Listening on udev Control Socket.
    [  OK  ] Listening on udev Control Socket.
    [    4.860393] systemd[1]: Listening on udev Kernel Socket.
    [  OK  ] Listening on udev Kernel Socket.
    [    4.900374] systemd[1]: Condition check resulted in Huge Pages File System being skipped.
    [    4.915685] systemd[1]: Mounting /dev/mqueue...
             Mounting /dev/mqueue...
    [    4.966419] systemd[1]: Mounting Kernel Debug File System...
             Mounting Kernel Debug File System...
    [    5.027395] systemd[1]: Mounting Temporary Directory (/tmp)...
             Mounting Temporary Directory (/tmp)...
    [    5.070135] systemd[1]: Condition check resulted in Create list of static device nodes for the current kernel being skipped.
    [    5.090869] systemd[1]: Starting RPC Bind...
             Starting RPC Bind...
    [    5.102166] systemd[83]: rpcbind.service: Failed to execute command: No such file or directory
    [    5.120811] systemd[1]: Starting Journal Service...
             Starting Journal Service...
    [    5.165529] systemd[1]: Starting Load Kernel Modules...
             Starting Load Kernel Modules...
    [    5.227032] systemd[1]: Starting Remount Root and Kernel File Systems...
             Starting Remount Root and Kernel File Systems...
    [    5.306549] systemd[1]: Starting udev Coldplug all Devices...
    [    5.315281] EXT4-fs (mmcblk1p15): re-mounted. Opts: (null)
             Starting udev Coldplug all Devices...
    [    5.420612] systemd[1]: Mounted /dev/mqueue.
    [  OK  ] Mounted /dev/mqueue.
    [    5.441080] systemd[1]: Mounted Kernel Debug File System.
    [  OK  ] Mounted Kernel Debug File System.
    [    5.471218] systemd[1]: Mounted Temporary Directory (/tmp).
    [  OK  ] Mounted Temporary Directory (/tmp).
    [    5.510823] systemd[1]: rpcbind.service: Main process exited, code=exited, status=203/EXEC
    [    5.541118] systemd[1]: rpcbind.service: Failed with result 'exit-code'.
    [    5.580148] systemd[1]: Failed to start RPC Bind.
    [FAILED] Failed to start RPC Bind.
    See 'systemctl status rpcbind.service' for details.
    [    5.630789] systemd[1]: systemd-modules-load.service: Main process exited, code=exited, status=1/FAILURE
    [    5.661049] systemd[1]: systemd-modules-load.service: Failed with result 'exit-code'.
    [    5.699800] systemd[1]: Failed to start Load Kernel Modules.
    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    [    5.770899] systemd[1]: Started Journal Service.
    [  OK  ] Started Journal Service.
    [  OK  ] Started Remount Root and Kernel File Systems.
             Mounting Kernel Configuration File System...
             Starting Flush Journal to Persistent Storage...
    [    5.973849] systemd-journald[84]: Received client request to flush runtime journal.
             Starting Apply Kernel Variables...
             Starting Create Static Device Nodes in /dev...
    [  OK  ] Mounted Kernel Configuration File System.
    [  OK  ] Started Flush Journal to Persistent Storage.
    [  OK  ] Started Apply Kernel Variables.
    [  OK  ] Started Create Static Device Nodes in /dev.
    [  OK  ] Reached target Local File Systems (Pre).
             Mounting /media/ram...
             Mounting /var/volatile...
             Starting udev Kernel Device Manager...
    [  OK  ] Mounted /media/ram.
    [  OK  ] Mounted /var/volatile.
             Starting Bind mount volatile /var/cache...
             Starting Bind mount volatile /var/lib...
             Starting Bind mount volatile /var/spool...
    [  OK  ] Started udev Kernel Device Manager.
    [  OK  ] Started Bind mount volatile /var/cache.
    [  OK  ] Started Bind mount volatile /var/lib.
    [  OK  ] Started Bind mount volatile /var/spool.
             Starting Load/Save Random Seed...
    [  OK  ] Started Load/Save Random Seed.
    [  OK  ] Created slice system-systemd\x2dbacklight.slice.
             Starting Load/Save Screen …ness of backlight:backlight...
    [  OK  ] Started Load/Save Screen B…htness of backlight:backlight.
    [  OK  ] Started udev Coldplug all Devices.
             Starting udev Wait for Complete Device Initialization...
    [  OK  ] Found device /dev/mmcblk1p1.
    [  OK  ] Started udev Wait for Complete Device Initialization.
    [  OK  ] Found device /dev/mmcblk1p9.
    [  OK  ] Listening on Load/Save RF …itch Status /dev/rfkill Watch.
             Mounting /usr/local/bootconf...
             Mounting /usr/local/system_info...
    [  OK  ] Started Hardware RNG Entropy Gatherer Daemon.
    [   23.297467] EXT4-fs (mmcblk1p9): mounted filesystem with ordered data mode. Opts: (null)
    [  OK  ] Mounted /usr/local/bootconf.
    [  OK  ] Mounted /usr/local/system_info.
    [  OK  ] Reached target Local File Systems.
             Starting Create Volatile Files and Directories...
    [  OK  ] Started Create Volatile Files and Directories.
             Starting Update UTMP about System Boot/Shutdown...
    [  OK  ] Started Update UTMP about System Boot/Shutdown.
    [  OK  ] Reached target System Initialization.
    [  OK  ] Started dhcp leases updater.
    [  OK  ] Started Daily rotation of log files.
    [  OK  ] Started Daily Cleanup of Temporary Directories.
    [  OK  ] Reached target Timers.
    [  OK  ] Listening on D-Bus System Message Bus Socket.
    [  OK  ] Listening on dropbear.socket.
    [  OK  ] Listening on PC/SC Smart Card Daemon Activation Socket.
    [  OK  ] Reached target Sockets.
    [  OK  ] Reached target Basic System.
    [  OK  ] Started D-Bus System Message Bus.
             Starting IPv6 Packet Filtering Framework...
             Starting IPv4 Packet Filtering Framework...
             Starting rc.pvr.service...
             Starting set-can0-bitrate.service...
             Starting System Logger Daemon "default" instance...
             Starting Login Service...
    [  OK  ] Started IPv6 Packet Filtering Framework.
    [  OK  ] Started IPv4 Packet Filtering Framework.
    [  OK  ] Started rc.pvr.service.
    [FAILED] Failed to start set-can0-bitrate.service.
    See 'systemctl status set-can0-bitrate.service' for details.
    [  OK  ] Reached target Network (Pre).
    [  OK  ] Reached target Network.
    [  OK  ] Reached target Network is Online.
             Starting Intellian BIST Application...
             Starting Nginx Server...
    [  OK  ] Started Respond to IPv6 Node Information Queries.
             Starting /etc/rc.local Compatibility...
    [  OK  ] Started Network Router Discovery Daemon.
             Starting Permit User Sessions...
             Starting telnetd.service...
    [  OK  ] Started System Logger Daemon "default" instance.
    [FAILED] Failed to start Nginx Server.
    See 'systemctl status nginx.service' for details.
    [  OK  ] Started Permit User Sessions.
    [  OK  ] Started telnetd.service.
             Starting LSB: network benchmark...
    [  OK  ] Started LSB: network benchmark.
    [  OK  ] Started Login Service.
    [   28.705489] EXT4-fs (mmcblk1p10): mounted filesystem with ordered data mode. Opts: (null)
    [   28.821003] EXT4-fs (mmcblk1p11): mounted filesystem with ordered data mode. Opts: (null)
    [   28.941835] EXT4-fs (mmcblk1p12): mounted filesystem with ordered data mode. Opts: (null)
    [   29.060139] EXT4-fs (mmcblk1p18): mounted filesystem with ordered data mode. Opts: (null)
    [   29.229994] EXT4-fs (mmcblk1p13): mounted filesystem with ordered data mode. Opts: (null)
    [  OK  ] Stopped dhcp leases updater.
             Stopping dhcp leases updater.
    [  OK  ] Started dhcp leases updater.
    [  OK  ] Stopped Daily rotation of log files.
             Stopping Daily rotation of log files.
    [  OK  ] Started Daily rotation of log files.
             Starting Nginx Server...
    [FAILED] Failed to start Intellian BIST Application.
    See 'systemctl status bist.service' for details.
    [  OK  ] Started Nginx Server.
    [  OK  ] Started Intellian User Application.
             Starting Intellian SDT Front Application...
             Starting Intellian System …sources Manager Application...
             Starting Intellian Watchdog Watcher Application...
    [  OK  ] Started /etc/rc.local Compatibility.
    [  OK  ] Started Serial Getty on ttyS1.
    [  OK  ] Reached target Login Prompts.
             Starting Synchronize System and HW clocks...
    [FAILED] Failed to start Synchronize System and HW clocks.
    See 'systemctl status sync-clocks.service' for details.
    
    Intellian AptusLx
    AptusLx login:root
    Password:
    root@AptusLx:~#
    
    root@AptusLx:~# ls /sys/devices/system/cpu/cpufreq/
    root@AptusLx:~# ls /sys/devices/system/cpu/
    cpu0        cpuidle     kernel_max  offline     possible    present
    cpufreq     isolated    modalias    online      power       uevent
    root@AptusLx:~# ls -al /sys/devices/system/cpu/
    cpu0/       cpuidle/    kernel_max  offline     possible    present
    cpufreq/    isolated    modalias    online      power/      uevent
    root@AptusLx:~# ls -al /sys/devices/system/cpu/cpufreq/
    drwxr-xr-x    2 root     intellia         0 Jan  1 00:05 .
    drwxr-xr-x    6 root     intellia         0 Mar 14  2024 ..

    Regards,
    Seungmin Nam.

  • Dear Bin Liu,

    For debugging, I added the debug code to cpufreq-dt.c as shown below and checked.

    <dev_err(&pdev->dev, "failed dt_cpufreq_early_init : %d\n", ret)>


     static int dt_cpufreq_probe(struct platform_device *pdev)
     {
       struct cpufreq_dt_platform_data *data = dev_get_platdata(&pdev->dev);
       int ret, cpu;
    
       dev_info(&pdev->dev, "dt_cpufreq_probe\n");
    
       /* Request resources early so we can return in case of -EPROBE_DEFER */
       for_each_possible_cpu(cpu) {
         ret = dt_cpufreq_early_init(&pdev->dev, cpu);
         if (ret) {
           dev_err(&pdev->dev, "failed dt_cpufreq_early_init : %d\n", ret);
           goto err;
         }
       }
    
       if (data) {
         if (data->have_governor_per_policy)
           dt_cpufreq_driver.flags |= CPUFREQ_HAVE_GOVERNOR_PER_POLICY;
    
         dt_cpufreq_driver.resume = data->resume;
         if (data->suspend)
           dt_cpufreq_driver.suspend = data->suspend;
         if (data->get_intermediate) {
           dt_cpufreq_driver.target_intermediate = data->target_intermediate;
           dt_cpufreq_driver.get_intermediate = data->get_intermediate;
         }
       }
    
       ret = cpufreq_register_driver(&dt_cpufreq_driver);
       if (ret) {
         dev_err(&pdev->dev, "failed register driver: %d\n", ret);
         goto err;
       }
    
       dev_info(&pdev->dev, "dt_cpufreq_probe complete\n");
    
       return 0;
     err:
       dt_cpufreq_release();
       return ret;
     }
    

    An error occurred in dt_cpufreq_early_init as shown below.

    [    6.014174] ti_cpufreq_probe
    [    6.017228] cpu cpu0: CPU freq dt register
    [    6.021611] cpufreq-dt cpufreq-dt: dt_cpufreq_probe
    [    6.026545] cpufreq-dt cpufreq-dt: failed dt_cpufreq_early_init : -517
    ...
    
    [    7.110192] cpufreq-dt cpufreq-dt: dt_cpufreq_probe
    [    7.115148] cpufreq-dt cpufreq-dt: failed dt_cpufreq_early_init : -517
    [    7.138977] cpufreq-dt cpufreq-dt: dt_cpufreq_probe
    [    7.143985] cpufreq-dt cpufreq-dt: failed dt_cpufreq_early_init : -517
    [    7.150847] cpufreq-dt cpufreq-dt: dt_cpufreq_probe
    [    7.155772] cpufreq-dt cpufreq-dt: failed dt_cpufreq_early_init : -517
    ...
    


    Isn't this the cause?

    As a result, dt_cpufreq_probe did not work properly.
    In the end, dt_cpufreq_probe complete was not executed.

    Request you to check.

    Regards,
    Seungmin Nam.

  • Hi,


    Isn't this the cause?

    It likely is the cause.

    I have a queue of work for this week, but will review the code next week to see what could cause this deferred probe.

  • Dear Bin Liu,

    Have you ever done a code review?
    I would like to check on this issue.
    If there is anything else I need to check, please let me know.

    Regards,
    Seungmin Nam.

  • Hi Seungmin,

    Sorry, I haven't got a chance for this yet. I have a deadline due next Monday. I won't get on this until mid/later next week.

  • Dear Bin Liu,

    Have you still got a chance to look at this issue?
    I still want to resolve this issue.

    Please check it out if you get a chance.

    Regards,
    Seungmin Nam.

  • Hi Seungmin,

    Sorry for my delayed response.

    I just checked the function dt_cpufreq_early_init() in cpufreq-dt.c, it has 4 places where could return -EPROBE_DEFER (-517). Can you please add a dev_err() in these places to see which function call failed?