This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

OCTVO-3P-AM335X: Unable to access end devices through GPIO in 6.1 LTS kernel

Part Number: OCTVO-3P-AM335X
Other Parts Discussed in Thread: AM3352, TPS65217

Tool/software:

We have  an Octovo AM335X SOC  on which we are trying to upgrade the Linux LTS kernel from 5.4 to 6.1. We did some basic testing and found that GPIO functionality was not working properly with 6.1 LTS. 

We are unable toggle the GPIO pins 

we are unable to access/control hardware such as LEDs which are connected through GPIO pins. we have tried accessing the hardware both through sysfs interface and libgpio interface but we could not.

 while using SYSFS interface, we found that values of GPIO pins in SYSFS are changing when we write to the pins (using commands like "echo 1/0 > gpioxxx") but the LEDs are not changing their state. 
.
we realized that gpio mapping is changed in the Linux kernel from 5.4.200 to 6.1-LTS, and to accommodate this change, we modified the GPIO mapping in the DTS file by changing "gpio1" to "gpio2" so that the mappings of the gpio pins stay same as they were in 5.4.200 kernel. After making this change we tried access the LED connected to the same gpio chipset (gpio1) but we are not able to get the expected output.

 we want to confirm that the new mappings for the gpio pins are correct, also we want to find out if there are any other issues in the 6.1 kernel that are preventing us from accessing the hardware via gpio pins. 

In dts four Led`s are mapped to GPIO chipset 1, but after device boot up we saw that this led are mapped  to chipset 0.

in dts file :-  gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;

Below are device logs-


gpiochip0: GPIOs 512-543, parent: platform/4804c000.gpio, gpio-0-31:
gpio-533 ( |beaglebone:green:usr) out lo
gpio-534 ( |beaglebone:green:usr) out lo
gpio-535 ( |beaglebone:green:usr) out hi
gpio-536 ( |beaglebone:green:usr) out lo
gpio-539 ( |enable ) out lo

gpiochip1: GPIOs 544-575, parent: platform/481ac000.gpio, gpio-32-63:

We request your help in resolving this issue. Please do let us know if you need any specific log files.

  • Hello,

    e modified the GPIO mapping in the DTS file by changing "gpio1" to "gpio2"

    Can you explain this change? It might be calling a different GPIO module rather than the updated gpiochip number.

    Can you also provide the full output of 'cat /sys/kernel/debug/gpio'?


    Best Regards,

    Anshu

  • Hi Anshu,

    in  am335x-osd3358-sm-red.dts file  leds are mapped to gpio1 as below mentioned.

    led2 {
    label = "beaglebone:green:usr0";
    gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
    linux,default-trigger = "heartbeat";
    default-state = "off";
    };

    led3 {
    label = "beaglebone:green:usr1";
    gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
    linux,default-trigger = "mmc0";
    default-state = "off";
    };

    led4 {
    label = "beaglebone:green:usr2";
    gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
    linux,default-trigger = "cpu0";
    default-state = "off";
    };

    led5 {
    label = "beaglebone:green:usr3";
    gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
    linux,default-trigger = "mmc1";
    default-state = "off";
    };

    After device boot up the out of /sys/kernel/debug/gpio is 

    root@next-gen-router:~# cat /sys/kernel/debug/gpio
    gpiochip0: GPIOs 0-31, parent: platform/4804c000.gpio, gpio-0-31:
    gpio-21 ( |beaglebone:green:usr) out lo
    gpio-22 ( |beaglebone:green:usr) out lo
    gpio-23 ( |beaglebone:green:usr) out hi
    gpio-24 ( |beaglebone:green:usr) out lo
    gpio-27 ( |enable ) out lo

    gpiochip1: GPIOs 32-63, parent: platform/481ac000.gpio, gpio-32-63:

    gpiochip2: GPIOs 64-95, parent: platform/481ae000.gpio, gpio-64-95:
    gpio-68 ( |sysfs ) out lo

    gpiochip3: GPIOs 96-127, parent: platform/44e07000.gpio, gpio-96-127:
    gpio-102 ( |cd ) in hi IRQ ACTIVE LOW

    So , my question is in dtb file leds are mapped to gpio1 chipset ( gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>) but in device output shows the led are mapped to gpio0 chip.

    So why it is mapping the wrongly?

    Then we change the gpio1 to gpio2 as below mentioned in dts file.
    gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>) to gpios = <&gpio2 22 GPIO_ACTIVE_HIGH

    The output of /sys/kernel/debug/gpio is

    it mapped led to chipset gpio1 

  • This was not observed in 5.4.200 LTS kernel but it was observed in 6.1 LTS kernel.

  • Hi Vicky,

    Can you provide a full bootlog? Since GPIO0 was assigned to gpiochip3, I think there would be an error regarding a failure to assign GPIO0.

    Thanks,

    Anshu

  • Hi Anshu , please find boot log below

    U-Boot 2020.10-g050acee119 (Oct 05 2020 - 15:15:32 +0000)

    CPU : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM: 512 MiB
    WDT: Started with servicing (60s timeout)
    NAND: 0 MiB
    MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
    Loading Environment from FAT... Loading Environment from MMC... *** Warning - bad CRC, using default environment

    <ethaddr> not set. Validating first E-fuse MAC
    Net: Could not get PHY for ethernet@4a100000: addr 0
    eth2: ethernet@4a100000, eth3: usb_ether
    SPL boot device is 9
    Boot index value is 0x30
    Booting backup image
    Hit any key to stop autoboot: 0
    syntax error
    syntax error
    ## Error: "init_console" not defined
    switch to partitions #0, OK
    mmc1(part 0) is current device
    mmc dev set to eMMC
    SD/MMC found on device 0
    NextGen Router
    booting from eMMC
    switch to partitions #0, OK
    mmc1(part 0) is current device
    SD/MMC found on device 1
    19354112 bytes read in 3275 ms
    Starting zImage Verification ...
    loading file /backup/signature_zImage.bin

    64 bytes read in 2 ms (31.3 KiB/s)
    Loading pubkey from secure element
    read_slot_data fun called
    zImage Verification successful -L2
    (5.6 MiB/s)
    95022 bytes read in 18 msloading file /backup/signature_kerneldtb.bin

    64 bytes read in 2 ms (31.3 KiB/s)
    read_slot_data fun called
    DTB Verification success L2
    (5 MiB/s)
    ## Flattened Device Tree blob at 88000000
    Booting using the fdt blob at 0x88000000
    Loading Device Tree to 8ffe5000, end 8ffff32d ... OK


    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 6.1.92 (oe-user@oe-host) (arm-poky-linux-gnueabi-gcc (GCC) 11.4.0, GNU ld (GNU Binutils) 2.38.20220708) #1 SMP Sat May 25 14:21:36 UTC 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: Octavo Systems OSD3358-SM-RED
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] efi: UEFI not found.
    [ 0.000000] cma: Reserved 64 MiB at 0x9b800000
    [ 0.000000] Zone ranges:
    [ 0.000000] DMA [mem 0x0000000080000000-0x000000009fdfffff]
    [ 0.000000] Normal empty
    [ 0.000000] HighMem empty
    [ 0.000000] Movable zone start for each node
    [ 0.000000] Early memory node ranges
    [ 0.000000] node 0: [mem 0x0000000080000000-0x000000009fdfffff]
    [ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fdfffff]
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (sgx neon)
    [ 0.000000] percpu: Embedded 16 pages/cpu s34580 r8192 d22764 u65536
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129540
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=PARTUUID=d3490ea4-03 rw rootfstype=ext4 rootwait
    [ 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: 416000K/522240K available (15360K kernel code, 2478K rwdata, 6276K rodata, 10240K init, 429K bss, 40704K reserved, 65536K cma-reserved, 0K highmem)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] trace event string verifier disabled
    [ 0.000000] rcu: Hierarchical RCU implementation.
    [ 0.000000] rcu: RCU event tracing is enabled.
    [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=1.
    [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
    [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
    [ 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] rcu: srcu_init: Setting srcu_struct sizes based on contention.
    [ 0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
    [ 0.000003] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000026] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000953] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
    [ 0.005741] Console: colour dummy device 80x30
    [ 0.005785] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.005793] This ensures that you still see kernel messages. Please
    [ 0.005797] update your kernel commandline.
    [ 0.005846] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.091055] CPU: Testing write buffer coherency: ok
    [ 0.091128] CPU0: Spectre v2: using BPIALL workaround
    [ 0.091138] pid_max: default: 32768 minimum: 301
    [ 0.091327] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.091346] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
    [ 0.092424] CPU0: thread -1, cpu 0, socket -1, mpidr 0
    [ 0.093310] Setting up static identity map for 0x80300000 - 0x803000ac
    [ 0.095891] rcu: Hierarchical SRCU implementation.
    [ 0.095908] rcu: Max phase no-delay instances is 1000.
    [ 0.101253] EFI services will not be available.
    [ 0.101531] smp: Bringing up secondary CPUs ...
    [ 0.101541] smp: Brought up 1 node, 1 CPU
    [ 0.101551] SMP: Total of 1 processors activated (996.14 BogoMIPS).
    [ 0.101562] CPU: All CPU(s) started in SVC mode.
    [ 0.102225] devtmpfs: initialized
    [ 0.116399] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.116682] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.116713] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
    [ 0.121913] pinctrl core: initialized pinctrl subsystem
    [ 0.126978] DMI not present or invalid.
    [ 0.127831] NET: Registered PF_NETLINK/PF_ROUTE protocol family
    [ 0.130349] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.133911] thermal_sys: Registered thermal governor 'step_wise'
    [ 0.134074] cpuidle: using governor menu
    [ 0.151807] No ATAGs?
    [ 0.151830] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.157159] Serial: AMBA PL011 UART driver
    [ 0.186932] iommu: Default domain type: Translated
    [ 0.186946] iommu: DMA domain TLB invalidation policy: strict mode
    [ 0.187713] SCSI subsystem initialized
    [ 0.191723] usbcore: registered new interface driver usbfs
    [ 0.191778] usbcore: registered new interface driver hub
    [ 0.191835] usbcore: registered new device driver usb
    [ 0.192835] pps_core: LinuxPPS API ver. 1 registered
    [ 0.192848] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.192870] PTP clock support registered
    [ 0.193030] EDAC MC: Ver: 3.0.0
    [ 0.202538] vgaarb: loaded
    [ 0.203139] clocksource: Switched to clocksource dmtimer
    [ 0.216788] NET: Registered PF_INET protocol family
    [ 0.217075] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
    [ 0.218175] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
    [ 0.218214] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
    [ 0.218230] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
    [ 0.218273] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
    [ 0.218373] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.218486] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
    [ 0.218513] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
    [ 0.218673] NET: Registered PF_UNIX/PF_LOCAL protocol family
    [ 0.223717] RPC: Registered named UNIX socket transport module.
    [ 0.223732] RPC: Registered udp transport module.
    [ 0.223737] RPC: Registered tcp transport module.
    [ 0.223742] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.223755] PCI: CLS 0 bytes, default 64
    [ 0.225152] Initialise system trusted keyrings
    [ 0.244322] workingset: timestamp_bits=30 max_order=17 bucket_order=0
    [ 0.251109] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.252150] NFS: Registering the id_resolver key type
    [ 0.252216] Key type id_resolver registered
    [ 0.252223] Key type id_legacy registered
    [ 0.252335] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
    [ 0.252358] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
    [ 0.252398] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.281657] Key type asymmetric registered
    [ 0.281682] Asymmetric key parser 'x509' registered
    [ 0.281919] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 0.281932] io scheduler mq-deadline registered
    [ 0.281940] io scheduler kyber registered
    [ 0.498510] Serial: 8250/16550 driver, 5 ports, IRQ sharing enabled
    [ 0.502545] SuperH (H)SCI(F) driver initialized
    [ 0.503395] msm_serial: driver initialized
    [ 0.503410] STMicroelectronics ASC driver initialized
    [ 0.504921] STM32 USART driver initialized
    [ 0.575702] brd: module loaded
    [ 0.598907] loop: module loaded
    [ 0.609253] tun: Universal TUN/TAP device driver, 1.6
    [ 0.636077] CAN device driver interface
    [ 0.637120] bgmac_bcma: Broadcom 47xx GBit MAC driver loaded
    [ 0.637757] e1000e: Intel(R) PRO/1000 Network Driver
    [ 0.637764] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
    [ 0.637878] igb: Intel(R) Gigabit Ethernet Network Driver
    [ 0.637886] igb: Copyright (c) 2007-2014 Intel Corporation.
    [ 0.640589] PPP generic driver version 2.4.2
    [ 0.660916] pegasus: Pegasus/Pegasus II USB Ethernet driver
    [ 0.661048] usbcore: registered new interface driver pegasus
    [ 0.661124] usbcore: registered new interface driver asix
    [ 0.661164] usbcore: registered new interface driver ax88179_178a
    [ 0.661204] usbcore: registered new interface driver cdc_ether
    [ 0.661248] usbcore: registered new interface driver smsc75xx
    [ 0.661292] usbcore: registered new interface driver smsc95xx
    [ 0.661326] usbcore: registered new interface driver net1080
    [ 0.661362] usbcore: registered new interface driver cdc_subset
    [ 0.661395] usbcore: registered new interface driver zaurus
    [ 0.661491] usbcore: registered new interface driver cdc_ncm
    [ 0.665195] usbcore: registered new interface driver usb-storage
    [ 0.669115] i2c_dev: i2c /dev entries driver
    [ 0.716136] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
    [ 0.716161] softdog: soft_reboot_cmd=<not set> soft_active_on_boot=0
    [ 0.716843] device-mapper: uevent: version 1.0.3
    [ 0.717347] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
    [ 0.721755] cpuidle: enable-method property 'ti,am3352' found operations
    [ 0.723864] sdhci: Secure Digital Host Controller Interface driver
    [ 0.723882] sdhci: Copyright(c) Pierre Ossman
    [ 0.725327] Synopsys Designware Multimedia Card Interface Driver
    [ 0.726570] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 0.756606] ledtrig-cpu: registered to indicate activity on CPUs
    [ 0.759298] usbcore: registered new interface driver usbhid
    [ 0.759320] usbhid: USB HID core driver
    [ 0.765960] ipip: IPv4 and MPLS over IPv4 tunneling driver
    [ 0.766649] IPv4 over IPsec tunneling driver
    [ 0.767704] NET: Registered PF_INET6 protocol family
    [ 0.784998] Segment Routing with IPv6
    [ 0.785068] In-situ OAM (IOAM) with IPv6
    [ 0.785156] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [ 0.785976] NET: Registered PF_PACKET protocol family
    [ 0.786038] can: controller area network core
    [ 0.786109] NET: Registered PF_CAN protocol family
    [ 0.786119] can: raw protocol
    [ 0.786129] can: broadcast manager protocol
    [ 0.786140] can: netlink gateway - max_hops=1
    [ 0.786854] Key type dns_resolver registered
    [ 0.787040] ThumbEE CPU extension supported.
    [ 0.787062] Registering SWP/SWPB emulation handler
    [ 0.787566] omap_voltage_late_init: Voltage driver support not added
    [ 0.789584] Loading compiled-in X.509 certificates
    [ 0.904043] platform 44e10800.pinmux: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@10000/scm@0/pinmux@800/pinmux-clkout2-pin
    [ 0.905482] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 0.921451] ti-sysc: probe of 44e31000.target-module failed with error -16
    [ 1.060041] ti-sysc: probe of 48040000.target-module failed with error -16
    [ 1.093356] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
    [ 1.231458] OMAP GPIO hardware version 0.1
    [ 1.314977] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
    [ 1.322985] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
    [ 1.347069] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
    [ 1.386599] platform 4830e000.lcdc: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/hdmi-encoder@70
    [ 1.398007] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
    [ 1.398391] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
    [ 1.505906] omap_rng 48310000.rng: Random Number Generator ver. 20
    [ 1.523281] random: crng init done
    [ 1.581228] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
    [ 1.581597] mdio_bus 4a101000.mdio: MDIO device at address 4 is missing.
    [ 1.582006] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
    [ 1.582021] cpsw-switch 4a100000.switch: ALE Table size 1024
    [ 1.582136] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
    [ 1.582151] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
    [ 1.582238] cpsw-switch 4a100000.switch: Detected MACID = 98:5d:ad:62:12:aa
    [ 1.583924] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
    [ 1.595847] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
    [ 1.595884] edma 49000000.dma: TI EDMA DMA engine driver
    [ 1.778990] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 1.787787] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
    [ 1.801612] l3-aon-clkctrl:0000:0: failed to disable
    [ 1.814435] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 35, base_baud = 3000000) is a 8250
    [ 3.499658] printk: console [ttyS0] enabled
    [ 3.533869] tps65217-pmic: Failed to locate of_node [id: -1]
    [ 3.547005] tps65217-bl: Failed to locate of_node [id: -1]
    [ 3.558430] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 3.564247] platform 4830e000.lcdc: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/hdmi-encoder@70
    [ 3.577949] i2c 0-0070: Fixed dependency cycle(s) with /ocp/interconnect@48000000/segment@300000/target-module@e000/lcdc@0
    [ 3.590188] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 3.608014] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
    [ 3.616881] sdhci-omap 48060000.mmc: Got CD GPIO
    [ 3.621827] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
    [ 3.637967] clk: Disabling unused clocks
    [ 3.643380] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
    [ 3.651481] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
    [ 3.659648] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
    [ 3.719960] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
    [ 3.729336] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
    [ 3.782451] Freeing unused kernel image (initmem) memory: 10240K
    [ 3.791732] Run /init as init process
    [ 3.844699] mmc1: new high speed MMC card at address 0001
    [ 3.855369] mmcblk1: mmc1:0001 W62704 3.56 GiB
    [ 3.873377] mmcblk1: p1 p2 p3 p4 < p5 p6 p7 p8 >
    [ 3.884101] mmcblk1boot0: mmc1:0001 W62704 2.00 MiB
    [ 3.898880] mmcblk1boot1: mmc1:0001 W62704 2.00 MiB
    [ 3.914420] mmcblk1rpmb: mmc1:0001 W62704 512 KiB, chardev (236:0)
    [ 4.215974] udevd[158]: starting version 3.2.10
    [ 4.234870] udevd[159]: starting eudev-3.2.10
    [ 10.029582] ext3: Unknown parameter 'umask'
    [ 10.074994] ext2: Unknown parameter 'umask'
    [ 10.079285] ext4: Unknown parameter 'umask'
    [ 10.107082] squashfs: Unknown parameter 'umask'
    [ 10.302611] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Quota mode: disabled.
    [ 10.313004] EXT4-fs (mmcblk1p5): mounted filesystem with ordered data mode. Quota mode: disabled.
    [ 10.347840] EXT4-fs (mmcblk1p3): mounted filesystem with ordered data mode. Quota mode: disabled.
    [ 10.370231] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 10.419858] EXT4-fs (mmcblk1p6): recovery complete
    [ 10.464861] EXT4-fs (mmcblk1p6): mounted filesystem with ordered data mode. Quota mode: disabled.
    Secure boot disabled in rootfs
    Checking mount index
    mount index is 0x30
    Backup rootfs will be mounted
    [ 11.864078] EXT4-fs (mmcblk1p2): unmounting filesystem.
    [ 11.886854] EXT4-fs (mmcblk1p3): unmounting filesystem.
    [ 11.909526] EXT4-fs (mmcblk1p5): unmounting filesystem.
    INIT: version 3.01 booting
    Mount encrypted partition
    [ 37.106961] cryptd: max_cpu_qlen set to 1000
    [ 37.358288] EXT4-fs (dm-0): recovery complete
    [ 37.363631] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Quota mode: disabled.
    [ 62.116467] EXT4-fs (dm-1): recovery complete
    [ 62.121805] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Quota mode: disabled.
    Encrypted partition mounted succesfully
    Starting udev
    [ 62.390002] udevd[688]: starting version 3.2.10
    [ 62.468397] udevd[689]: starting eudev-3.2.10
    [ 63.073326] tda998x 0-0070: Error -121 writing to cec:0xff
    [ 63.175196] tda998x 0-0070: set_page 000a err -121
    [ 63.185879] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
    [ 63.194756] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
    [ 63.243538] tda998x 0-0070: set_page 000a err -121
    [ 63.322503] tda998x 0-0070: set_page 0001 err -121
    [ 63.350029] tda998x 0-0070: set_page 0001 err -121
    [ 63.411351] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
    [ 63.420258] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
    [ 63.443406] tda998x 0-0070: set_page 0200 err -121
    [ 63.480953] tda998x 0-0070: set_page 0201 err -121
    [ 63.492941] tda998x 0-0070: set_page 0202 err -121
    [ 63.540097] tda998x 0-0070: set_page 0203 err -121
    [ 63.595364] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [ 63.600762] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [ 63.628962] tda998x 0-0070: set_page 0204 err -121
    [ 63.642953] tda998x 0-0070: set_page 0205 err -121
    [ 63.687018] tda998x 0-0070: set_page 020e err -121
    [ 63.743705] hub 1-0:1.0: USB hub found
    [ 63.754674] tda998x 0-0070: set_page 0211 err -121
    [ 63.783372] hub 1-0:1.0: 1 port detected
    [ 63.822802] tda998x 0-0070: set_page 0207 err -121
    [ 63.864023] tda998x 0-0070: set_page 0208 err -121
    [ 63.871524] tda998x 0-0070: set_page 0209 err -121
    [ 63.916601] tda998x 0-0070: set_page 020a err -121
    [ 63.945259] tda998x 0-0070: set_page 0206 err -121
    [ 63.976564] tda998x 0-0070: set_page 0027 err -121
    [ 64.024038] tda998x 0-0070: set_page 0000 err -121
    [ 64.028948] tda998x 0-0070: failed to read version: -121
    [ 64.034378] tda998x: probe of 0-0070 failed with error -121
    [ 65.542312] EXT4-fs (mmcblk1p6): re-mounted. Quota mode: disabled.
    sysctl: cannot stat /proc/sys/net/ipv4/tcp_syncookies: No such file or directory
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    Fri Mar 9 21:17:46 UTC 2018
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    [ 66.337940] using random self ethernet address
    [ 66.342449] using random host ethernet address
    [ 66.347949] usb0: HOST MAC 3e:ea:5d:f1:f4:3a
    [ 66.352266] usb0: MAC ba:1c:55:fa:8e:0f
    [ 66.356249] using random self ethernet address
    [ 66.360716] using random host ethernet address
    [ 66.365309] g_ether gadget.0: Ethernet Gadget, version: Memorial Day 2008
    [ 66.372137] g_ether gadget.0: g_ether ready
    INIT: Entering runlevel: 5 not found in modules.dep
    Mount encrypted partition
    Device app already exists.
    [ 66.581235] ext4 filesystem being mounted at /app supports timestamps until 2038 (0x7fffffff)
    mount: mounting /dev/mapper/app on /app failed: Device or resource busy
    Device app_data already exists.
    mount: mounting /dev/mapper/app_data on /app_data failed: Device or resource busy
    Encrypted partition mounted succesfully
    Configuring network interfaces... udhcpc: started, v1.35.0
    [ 66.891252] cpsw-switch 4a100000.switch: starting ndev. mode: dual_mac
    [ 66.907933] cpsw-switch 4a100000.switch: phy "/ocp/interconnect@4a000000/segment@0/target-module@100000/switch@0/mdio@1000/ethernet-phy@4" not found on slave 0
    udhcpc: broadcasting discover
    udhcpc: broadcasting discover
    udhcpc: broadcasting discover
    udhcpc: no lease, failing
    ifup: failed to bring up eth0
    Starting OpenBSD Secure Shell server: sshd
    done.
    Starting chronyd: done
    hwclock: can't open '/dev/misc/rtc': No such file or directory
    start app
    DHCP entry not found
    Stopping chronyd: done
    Starting chronyd: done
    modprobe: module ip_tables not found in modules.dep
    iptables v1.8.9 (legacy): can't initialize iptables table `filter': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    Starting syslogd/klogd: done
    Starting watchdog daemon...done
    Starting crond: OK
    Starting web server: apache2.
    modprobe: module option.ko not found in modules.dep

    Poky (Yocto Project Reference Distro) 4.0.15 next-gen-router /dev/ttyS0

    next-gen-router login:

  • Hi Vicky,

    According to the omap-gpio.c driver, the bootlogs would have returned an error "Could not register gpio chip". The only error for GPIO0 relates to debouncing but that doesn't impact assignment. https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/drivers/gpio/gpio-omap.c

    Please be aware, TI recommends using the U-Boot version and Linux Kernel version within the same release.https://software-dl.ti.com/processor-sdk-linux/esd/AM335X/09_01_00_001/exports/docs/devices/AM335X/linux/Release_Specific_Release_Notes.html#release-09-01-00

    TI cannot provide an expected behavior when there is a mix & match of component versions and support that TI can provide is limited.

    Best Regards,

    Anshu