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.

AM3352: Setting GPIO values using .dts file

Part Number: AM3352


Hello,

I am doing the setup of our design based on am3352 processor.

I use kernel 4.4.19 from TI SDK 03.01.00.06 and compile it with "omap2plus_defconfig" configuration file.

I checked  that some GPIOS are fine by activating them with this source code in the kernel:

   #define GPIO_TO_PIN(bank, gpio)        (32 * (bank) + (gpio))
  #define GPIO_USR_0    GPIO_TO_PIN(2, 20)

    gpio_request(GPIO_USR_0, "mii1_rxd1");
    gpio_direction_output(GPIO_USR_0, 0);
    gpio_set_value_cansleep( GPIO_USR_0, 1);

I want to set initial value to 1 on my .dts file, but it is not working. This is what I added ti my .dts file

    gpio_buttons: gpio_buttons@0 {
        compatible = "gpio-keys";
        #address-cells = <1>;
        #size-cells = <0>;

        switch@1 {
            label = "IO0";
            gpios = <&gpio2 20 GPIO_ACTIVE_HIGH>;
            default-state = "on";
        };
    };

&am33xx_pinmux {
    pinctrl-names = "default";
    pinctrl-0 = <&gpio_keys_def>;

    gpio_keys_def: gpio_keys_def {
        pinctrl-single,pins = <
            0x13c ( PIN_OUTPUT | MUX_MODE7 ) /* (L15) gmii1_rxd1.gpio2_20 */
        >;
    };

Do I need to add anything else in this file? or am I missing something in kernel configuration?

Best regards

  • The software team have been notified. They will respond here.
  • Hi Angel,

    This should work.
    I have just one comment. In TI SDK 03.01.00.06 you should use tisdk_am335x-evm_defconfig file instead of omap2plus_defconfig.

    Best Regards,
    Yordan
  • Hi Yordan,

    I am sorry but it does not work. What else can I do to test it?
    I do not use "tisdk_am335x-evm_defconfig" because when starting the kernel it hangs. Probably some configuration is not compatible with our design, and I should test it first.

    Anyway, Is there a problem if use "omap2plus_defconfig" ?

    When I checked tisdk_am335x-evm_defconfig the kernel hanged at the end of initialization, but GPIO was not set also.

    Best regards
  • Hi Yordan,

    As you suggested I am trying to compile kernel using "tisdk_am335x-evm_defconfig", but as I mentioned the kernel stops at this point:

    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.19-gdb0b54cdad (owzafs@PCOWZAFS) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #1 PREEMPT Fri Dec 23 08:42:40 CET 206
    [ 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] Machine model: Owa4x board
    [ 0.000000] cma: Reserved 24 MiB at 0x9e800000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (neon )
    [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129920
    [ 0.000000] Kernel command line: console=ttyO1,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait
    [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [ 0.000000] Memory: 484700K/524288K available (6551K kernel code, 314K rwdata, 2328K rodata, 268K init, 265K bss, 15012K reserved, 24576K cma-reserved, 0K )
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc08b4004 (8881 kB)
    [ 0.000000] .init : 0xc08b5000 - 0xc08f8000 ( 268 kB)
    [ 0.000000] .data : 0xc08f8000 - 0xc0946b10 ( 315 kB)
    [ 0.000000] .bss : 0xc0946b10 - 0xc0989258 ( 266 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000037] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000048] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000194] clocksource_probe: no matching clocksources found
    [ 0.000371] Console: colour dummy device 80x30
    [ 0.000398] WARNING: Your 'console=ttyO1' has been replaced by 'ttyS1'
    [ 0.000405] This ensures that you still see kernel messages. Please
    [ 0.000410] update your kernel commandline.
    [ 0.000428] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [ 0.089181] pid_max: default: 32768 minimum: 301
    [ 0.089307] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089320] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.090011] Initializing cgroup subsys io
    [ 0.090044] Initializing cgroup subsys memory
    [ 0.090082] Initializing cgroup subsys devices
    [ 0.090098] Initializing cgroup subsys freezer
    [ 0.090113] Initializing cgroup subsys perf_event
    [ 0.090126] Initializing cgroup subsys pids
    [ 0.090157] CPU: Testing write buffer coherency: ok
    [ 0.090555] Setting up static identity map for 0x80008200 - 0x80008258
    [ 0.092710] devtmpfs: initialized
    [ 0.103640] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.117547] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.172877] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.175020] pinctrl core: initialized pinctrl subsystem
    [ 0.176314] NET: Registered protocol family 16
    [ 0.178400] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.209174] cpuidle: using governor ladder
    [ 0.239166] cpuidle: using governor menu
    [ 0.243628] OMAP GPIO hardware version 0.1
    [ 0.250808] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_default, deferring probe
    [ 0.252487] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.297369] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.297697] reg-fixed-voltage fixedregulator@0: Fixed regulator specified with variable voltages
    [ 0.297733] reg-fixed-voltage: probe of fixedregulator@0 failed with error -22
    [ 0.300988] media: Linux media interface: v0.10
    [ 0.301059] Linux video capture interface: v2.00
    [ 0.301107] pps_core: LinuxPPS API ver. 1 registered
    [ 0.301116] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.301143] PTP clock support registered
    [ 0.301195] EDAC MC: Ver: 3.0.0
    [ 0.302319] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.302628] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.303788] clocksource: Switched to clocksource timer1
    [ 0.314719] NET: Registered protocol family 2
    [ 0.315497] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.315555] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.315601] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.315673] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.315693] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.315852] NET: Registered protocol family 1
    [ 0.316243] RPC: Registered named UNIX socket transport module.
    [ 0.316259] RPC: Registered udp transport module.
    [ 0.316267] RPC: Registered tcp transport module.
    [ 0.316274] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.317183] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.319013] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.327249] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.328252] NFS: Registering the id_resolver key type
    [ 0.328323] Key type id_resolver registered
    [ 0.328333] Key type id_legacy registered
    [ 0.328415] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.332096] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [ 0.332128] io scheduler noop registered
    [ 0.332145] io scheduler deadline registered
    [ 0.332322] io scheduler cfq registered (default)
    [ 0.333597] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.396883] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.400964] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [ 0.402132] console [ttyS1] disabled
    [ 0.402215] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
    [ 1.023836] console [ttyS1] enabled
    [ 1.028271] [drm] Initialized drm 1.1.0 20060810
    [ 1.040447] loop: module loaded
    [ 1.046200] libphy: Fixed MDIO Bus: probed
    [ 1.065883] OWA: davinci_mdio_probe ENTER 0
    [ 1.070189] OWA: davinci_mdio_probe_dt ENTER 0
    [ 1.123839] OWA: davinci_mdio_reset, version(0x40070106)
    [ 1.129267] OWA: davinci_mdio_reset, alive(0x2)
    [ 1.133930] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.140053] davinci_mdio 4a101000.mdio: detected phy mask fffffffd
    [ 1.147195] libphy: 4a101000.mdio: probed
    [ 1.151240] davinci_mdio 4a101000.mdio: phy[1]: device 4a101000.mdio:01, driver SMSC LAN8710/LAN8720
    [ 1.160506] OWA: davinci_mdio_probe EXIT 5
    [ 1.165297] OWA: cpsw_phy_sel_probe ENTER
    [ 1.169437] OWA: gmii_sel(0xf9e10650)sma2(0xf9e11320)
    [ 1.174613] OWA: cpsw_phy_sel_probe EXIT 3
    [ 1.179015] cpsw 4a100000.ethernet: Detected MACID = 80:30:dc:52:5e:14
    [ 1.186556] cpsw 4a100000.ethernet: cpsw: Detected MACID = 80:30:dc:52:5e:14
    [ 1.195256] mousedev: PS/2 mouse device common for all mice
    [ 1.201489] i2c /dev entries driver
    [ 1.206102] cpuidle: enable-method property 'ti,am3352' found operations
    [ 1.254485] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.266347] NET: Registered protocol family 10
    [ 1.275564] sit: IPv6 over IPv4 tunneling driver
    [ 1.280985] NET: Registered protocol family 17
    [ 1.285955] Key type dns_resolver registered
    [ 1.290420] omap_voltage_late_init: Voltage driver support not added
    [ 1.300215] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 1.305573] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.313247] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x38
    [ 1.319763] nand: Micron MT29F8G08ABABAWP
    [ 1.323852] nand: 1024 MiB, SLC, erase size: 512 KiB, page size: 4096, OOB size: 224
    [ 1.331717] using OMAP_ECC_BCH16_CODE_HW ECC scheme
    [ 1.336787] 10 ofpart partitions found on MTD device 8000000.nand
    [ 1.342950] Creating 10 MTD partitions on "8000000.nand":
    [ 1.348444] 0x000000000000-0x000000080000 : "NAND.SPL"
    [ 1.353627] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 1.363123] 0x000000080000-0x000000100000 : "NAND.SPL.backup1"
    [ 1.370307] 0x000000100000-0x000000180000 : "NAND.SPL.backup2"
    [ 1.376358] mmc0: new high speed SDHC card at address 0007
    [ 1.382971] mmcblk0: mmc0:0007 SD8GB 7.21 GiB
    [ 1.388163] 0x000000180000-0x000000200000 : "NAND.SPL.backup3"
    [ 1.395746] mmcblk0: p1 p2
    [ 1.399105] 0x000000200000-0x000000280000 : "NAND.u-boot-spl-os"
    [ 1.407061] 0x000000280000-0x000000300000 : "NAND.u-boot"
    [ 1.413621] 0x000000300000-0x000000380000 : "NAND.u-boot-env"
    [ 1.420653] 0x000000380000-0x000000400000 : "NAND.u-boot-env.backup1"
    [ 1.428331] 0x000000400000-0x000001400000 : "NAND.kernel"
    [ 1.435763] 0x000001400000-0x000040000000 : "NAND.file-system"
    [ 1.495705] hctosys: unable to open rtc device (rtc0)
    [ 1.504698] ALSA device list:
    [ 1.507705] No soundcards found.
    [ 1.525325] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 1.533533] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [ 1.543344] devtmpfs: mounted
    [ 1.546728] Freeing unused kernel memory: 268K (c08b5000 - c08f8000)
    [ 1.553308] This architecture does not have kernel memory protection.
    [ 1.765146] random: systemd: uninitialized urandom read (16 bytes read, 8 bits of entropy available)
    [ 1.786662] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
    [ 1.800520] systemd[1]: Detected architecture 'arm'.

    Welcome to Debian GNU/Linux 8 (jessie)!

    [ 1.845949] systemd[1]: Set hostname to <arm>.
    [ 1.964522] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 12 bits of entropy available)
    [ 2.068698] random: systemd: uninitialized urandom read (16 bytes read, 17 bits of entropy available)
    [ 2.078689] random: systemd: uninitialized urandom read (16 bytes read, 17 bits of entropy available)
    [ 2.089157] random: systemd: uninitialized urandom read (16 bytes read, 17 bits of entropy available)
    [ 2.120084] random: systemd: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
    [ 2.130364] random: systemd: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
    [ 2.139887] random: systemd: uninitialized urandom read (16 bytes read, 18 bits of entropy available)
    [ 2.202689] random: systemd: uninitialized urandom read (16 bytes read, 20 bits of entropy available)
    [ 2.212263] random: systemd: uninitialized urandom read (16 bytes read, 20 bits of entropy available)
    [ 2.307726] systemd[1]: Cannot add dependency job for unit dbus.socket, ignoring: Unit dbus.socket failed to load: No such file or directory.
    [ 2.320820] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or .
    [ 2.338482] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
    [ 2.346856] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 2.354684] systemd[1]: Expecting device dev-ttyS1.device...
    Expecting device dev-ttyS1.device...
    [ 2.384108] systemd[1]: Starting Remote File Systems (Pre).
    [ OK ] Reached target Remote File Systems (Pre).
    [ 2.414027] systemd[1]: Reached target Remote File Systems (Pre).
    [ 2.420315] systemd[1]: Starting Encrypted Volumes.
    [ OK ] Reached target Encrypted Volumes.
    [ 2.444010] systemd[1]: Reached target Encrypted Volumes.
    [ 2.449696] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
    [ 2.459357] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
    [ 2.467806] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [ 2.475928] systemd[1]: Starting Paths.
    [ OK ] Reached target Paths.
    [ 2.504017] systemd[1]: Reached target Paths.
    [ 2.508524] systemd[1]: Starting Swap.
    [ OK ] Reached target Swap.
    [ 2.534001] systemd[1]: Reached target Swap.
    [ 2.538423] systemd[1]: Starting Root Slice.
    [ OK ] Created slice Root Slice.
    [ 2.564012] systemd[1]: Created slice Root Slice.
    [ 2.568865] systemd[1]: Starting User and Session Slice.
    [ OK ] Created slice User and Session Slice.
    [ 2.594042] systemd[1]: Created slice User and Session Slice.
    [ 2.599959] systemd[1]: Starting Delayed Shutdown Socket.
    [ OK ] Listening on Delayed Shutdown Socket.
    [ 2.624029] systemd[1]: Listening on Delayed Shutdown Socket.
    [ 2.629936] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
    [ OK ] Listening on /dev/initctl Compatibility Named Pipe.
    [ 2.664026] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ 2.671150] systemd[1]: Starting Journal Socket (/dev/log).
    [ OK ] Listening on Journal Socket (/dev/log).
    [ 2.694025] systemd[1]: Listening on Journal Socket (/dev/log).
    [ 2.700158] systemd[1]: Starting udev Control Socket.
    [ OK ] Listening on udev Control Socket.
    [ 2.724018] systemd[1]: Listening on udev Control Socket.
    [ 2.729621] systemd[1]: Starting udev Kernel Socket.
    [ OK ] Listening on udev Kernel Socket.
    [ 2.754026] systemd[1]: Listening on udev Kernel Socket.
    [ 2.759524] systemd[1]: Starting Journal Socket.
    [ OK ] Listening on Journal Socket.
    [ 2.784025] systemd[1]: Listening on Journal Socket.
    [ 2.789249] systemd[1]: Starting System Slice.
    [ OK ] Created slice System Slice.
    [ 2.814049] systemd[1]: Created slice System Slice.
    [ 2.819215] systemd[1]: Starting File System Check on Root Device...
    Starting File System Check on Root Device...
    [ 2.847506] systemd[1]: Starting system-getty.slice.
    [ OK ] Created slice system-getty.slice.
    [ 2.884246] systemd[1]: Created slice system-getty.slice.
    [ 2.889858] systemd[1]: Starting system-serial\x2dgetty.slice.
    [ OK ] Created slice system-serial\x2dgetty.slice.[ 2.901866] systemd[1]: Created slice system-serial\x2dgetty.slice.

    [ 2.915316] systemd[1]: Starting Increase datagram queue length...
    Starting Increase datagram queue length...
    [ 2.952998] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    Starting Create list of required static device nodes...rrent kernel...
    [ 2.979792] systemd[1]: Mounting Debug File System...
    Mounting Debug File System...
    [ 3.015899] systemd[1]: Starting udev Coldplug all Devices...
    Starting udev Coldplug all Devices...
    [ 3.058002] systemd[1]: Mounting POSIX Message Queue File System...
    Mounting POSIX Message Queue File System...
    [ 3.119582] systemd[1]: Started Set Up Additional Binary Formats.
    [ 3.153232] systemd[1]: Mounted Huge Pages File System.
    [ 3.162176] systemd[1]: Starting Load Kernel Modules...
    Starting Load Kernel Modules...
    [ 3.197740] systemd[1]: Starting Slices.
    [ OK ] Reached target Slices.
    [ 3.224282] systemd[1]: Reached target Slices.
    [ OK ] Mounted POSIX Message Queue File System.
    [ 3.254519] systemd[1]: Mounted POSIX Message Queue File System.
    [ OK ] Mounted Debug File System.
    [ 3.284123] systemd[1]: Mounted Debug File System.
    [ OK ] Started File System Check on Root Device.
    [ 3.314120] systemd[1]: Started File System Check on Root Device.
    [ OK ] Started Increase datagram queue length.
    [ 3.354261] systemd[1]: Started Increase datagram queue length.
    [ OK ] Started Create list of required static device nodes ...current kernel.
    [ 3.384294] systemd[1]: Started Create list of required static device nodes for the current kernel.
    [ OK ] Started Load Kernel Modules.
    [ 3.424354] systemd[1]: Started Load Kernel Modules.
    [ OK ] Started udev Coldplug all Devices.
    [ 3.694096] systemd[1]: Started udev Coldplug all Devices.
    [ 3.838651] systemd[1]: Mounted FUSE Control File System.
    [ 3.844870] systemd[1]: Mounted Configuration File System.
    [ 3.850517] systemd[1]: Starting Apply Kernel Variables...
    Starting Apply Kernel Variables...
    [ 3.878668] systemd[1]: Starting Create Static Device Nodes in /dev...
    Starting Create Static Device Nodes in /dev...
    [ 3.927866] systemd[1]: Starting Syslog Socket.
    [ OK ] Listening on Syslog Socket.
    [ 3.954330] systemd[1]: Listening on Syslog Socket.
    [ 3.959446] systemd[1]: Starting Sockets.
    [ OK ] Reached target Sockets.
    [ 3.970815] systemd[1]: Reached target Sockets.
    [ 3.976441] systemd[1]: Starting Journal Service...
    Starting Journal Service...
    [ OK ] Started Journal Service.
    [ 4.019190] systemd[1]: Started Journal Service.
    Starting Remount Root and Kernel File Systems...
    [ OK ] Started Apply Kernel Variables.
    [ OK ] Started Create Static Device Nodes in /dev.
    Starting udev Kernel Device Manager...
    [ 4.914023] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
    [ OK ] Started Remount Root and Kernel File Systems.
    [ 4.948603] systemd-udevd[112]: starting version 215
    [ 4.953729] systemd-fsck[72]: rootfs: clean, 8670/60928 files, 69941/243456 blocks
    [ OK ] Started udev Kernel Device Manager.
    Starting Copy rules generated while the root was ro...
    Starting Load/Save Random Seed...
    [ OK ] Reached target Local File Systems (Pre).
    [ OK ] Reached target Local File Systems.
    Starting Create Volatile Files and Directories...
    [ OK ] Reached target Remote File Systems.
    Starting Trigger Flushing of Journal to Persistent Storage...
    [ OK ] Started Copy rules generated while the root was ro.
    [ OK ] Started Load/Save Random Seed.
    [ OK ] Started Create Volatile Files and Directories.
    [ 5.600220] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 5.670755] CAN device driver interface
    [ 5.710839] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 5.779913] c_can_platform 481cc000.can: c_can_platform device registered (regs=fa1cc000, irq=162)
    [ OK ] Found device /dev/ttyS1.
    [ 5.958552] omap_hwmod: pruss: _wait_target_ready failed: -16
    [ 6.102055] ti-pruss 4a300000.pruss: couldn't enable pruss
    [ 6.157776] remoteproc0: wkup_m3 is available
    [ 6.162268] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 6.194063] ti-pruss: probe of 4a300000.pruss failed with error -16
    [ 6.200826] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 6.215528] cpsw 4a100000.ethernet rename3: renamed from eth1
    [ 6.271738] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [ 6.279679] systemd-udevd[118]: renamed network interface eth1 to rename3
    [ 6.304178] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 6.389122] remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [ 6.436365] remoteproc0: failed to load am335x-pm-firmware.elf
    [ 6.476920] remoteproc0: powering up wkup_m3
    [ 6.481379] remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [ 6.519161] systemd-journald[106]: Received request to flush runtime journal from PID 1
    [ 6.595847] remoteproc0: request_firmware failed: -2
    [ 6.600956] wkup_m3_ipc 44e11324.wkup_m3_ipc: rproc_boot failed
    [ OK ] Started Trigger Flushing of Journal to Persistent Storage.
    [ 6.769280] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 6.971658] PM: no-rtc available, rtc-only mode disabled.
    Starting Network Time Synchronization...
    Starting Update UTMP about System Boot/Shutdown...
    Starting LSB: Raise network interfaces....
    [ OK ] Started Network Time Synchronization.
    [ OK ] Started Update UTMP about System Boot/Shutdown.
    [ OK ] Started LSB: Raise network interfaces..


    During uBoot setup we had to #undef CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC because we do not use the RTC and this definition did not let uBoot start.

    Now I am thinking that maybe this problem when starting the kernel could be similar. Could you confirm if this RTC is configured in "tisdk_am335x-evm_defconfig"? and if that is the case, how to disable it?

    Best regards
  • Hi Angel,

    Sorry for the delayed response. I was OoO.

    In general there shouldn't be a problem if you use omap2plus_defconfig... But it is used for the omap platforms and it may include features that are not compatible with am335x.

    As for tisdk_am335x_evm_defconfig:
    Could you confirm if this RTC is configured in "tisdk_am335x-evm_defconfig"? and if that is the case, how to disable it?

    Yes, it enables the RTC. In order to disable it, search for RTC in the defconfig file & comment the lines that enable it. Also you should remove the RTC nodes in the dts & dtsi files (both in kernel & u-boot).

    Best Regards,
    Yordan
  • Hello,
    Thanks for your help. Finally it was enough to disable
    /Device Drivers/Real Time Clock/

    Now we are working based on this config file.
    Best regards
  • Thanks for updating the thread.

    Best Regards,
    Yordan