Forum | Documentation | Website | Blog

Skip to content

buildroot: pocketbeagle: fix image build

Vaishnav Achath requested to merge github/fork/vaishnavachath/master into master

The built image starts up but gets stuck later, suspecting issue with mmc driver

switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
reading uEnv.txt
218 bytes read in 4 ms (52.7 KiB/s)
gpio: pin 55 (gpio 55) value is 1
Loaded environment from /uEnv.txt
Importing environment from mmc ...
Checking if uenvcmd is set ...
gpio: pin 56 (gpio 56) value is 1
Running uenvcmd ...
reading /zImage
9921024 bytes read in 625 ms (15.1 MiB/s)
loading /am335x-pocketbeagle.dtb ...
reading /am335x-pocketbeagle.dtb
170322 bytes read in 17 ms (9.6 MiB/s)
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffd3000, end 8ffff951 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.59 (vaishnav@spectre) (arm-buildroot-linux-uclibcgnueabihf-gcc.br_real (Buildroot 2020.08) 9.3.0, GNU ld (GNU Binutils) 2.33.1) #1 SMP PREEMPT Mon Sep 6 22:12:55 IST 2021
[    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: TI AM335x PocketBeagle
[    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-0x000000009fdfffff]
[    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 21 pages/cpu s54540 r8192 d23284 u86016
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 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: 444772K/522240K available (15360K kernel code, 1723K rwdata, 4024K rodata, 1024K init, 393K bss, 28316K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x30/0x3d0 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 49547 entries in 97 pages
[    0.000000] ftrace: allocated 97 pages with 3 groups
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu: 	RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[    0.000000] 	Trampoline variant of Tasks RCU enabled.
[    0.000000] 	Rude variant of Tasks RCU enabled.
[    0.000000] 	Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=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] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000033] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000458] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.002174] Console: colour dummy device 80x30
[    0.002217] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.002228] This ensures that you still see kernel messages. Please
[    0.002237] update your kernel commandline.
[    0.002301] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.048524] pid_max: default: 32768 minimum: 301
[    0.048858] LSM: Security Framework initializing
[    0.048963] Yama: becoming mindful.
[    0.049149] AppArmor: AppArmor initialized
[    0.049170] TOMOYO Linux initialized
[    0.049287] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.049307] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050759] CPU: Testing write buffer coherency: ok
[    0.050860] CPU0: Spectre v2: using BPIALL workaround
[    0.051309] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.053012] Setting up static identity map for 0x80100000 - 0x80100060
[    0.053270] rcu: Hierarchical SRCU implementation.
[    0.054875] EFI services will not be available.
[    0.055276] smp: Bringing up secondary CPUs ...
[    0.055298] smp: Brought up 1 node, 1 CPU
[    0.055313] SMP: Total of 1 processors activated (995.32 BogoMIPS).
[    0.055325] CPU: All CPU(s) started in SVC mode.
[    0.056194] devtmpfs: initialized
[    0.087333] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.087826] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.087865] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.091823] pinctrl core: initialized pinctrl subsystem
[    0.093322] DMI not present or invalid.
[    0.093966] NET: Registered protocol family 16
[    0.098164] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.142687] l3-aon-clkctrl:0000:0: failed to disable
[    0.143487] audit: initializing netlink subsys (disabled)
[    0.145072] thermal_sys: Registered thermal governor 'fair_share'
[    0.145089] thermal_sys: Registered thermal governor 'bang_bang'
[    0.145107] thermal_sys: Registered thermal governor 'step_wise'
[    0.145119] thermal_sys: Registered thermal governor 'user_space'
[    0.145130] thermal_sys: Registered thermal governor 'power_allocator'
[    0.145963] cpuidle: using governor ladder
[    0.146035] cpuidle: using governor menu
[    0.152614] audit: type=2000 audit(0.132:1): state=initialized audit_enabled=0 res=1
[    1.032557] random: fast init done
[    6.366935] hw-breakpoint: debug architecture 0x4 unsupported.
[    6.421634] Kprobes globally optimized
[    6.434524] raid6: skip pq benchmark and using algorithm neonx8
[    6.434559] raid6: using neon recovery algorithm
[    6.441493] iommu: Default domain type: Translated 
[    6.446315] SCSI subsystem initialized
[    6.447157] usbcore: registered new interface driver usbfs
[    6.447268] usbcore: registered new interface driver hub
[    6.447343] usbcore: registered new device driver usb
[    6.449012] mc: Linux media interface: v0.10
[    6.449085] videodev: Linux video capture interface: v2.00
[    6.449275] pps_core: LinuxPPS API ver. 1 registered
[    6.449290] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.449319] PTP clock support registered
[    6.450816] Advanced Linux Sound Architecture Driver Initialized.
[    6.451724] NetLabel: Initializing
[    6.451747] NetLabel:  domain hash size = 128
[    6.451757] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    6.451862] NetLabel:  unlabeled traffic allowed by default
[    6.453197] clocksource: Switched to clocksource dmtimer
[    7.571722] VFS: Disk quotas dquot_6.6.0
[    7.571858] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.573130] AppArmor: AppArmor Filesystem Enabled
[    7.587283] NET: Registered protocol family 2
[    7.587544] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    7.589095] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    7.589271] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    7.589326] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    7.589390] TCP: Hash tables configured (established 4096 bind 4096)
[    7.589552] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    7.589591] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    7.589873] NET: Registered protocol family 1
[    7.591073] RPC: Registered named UNIX socket transport module.
[    7.591096] RPC: Registered udp transport module.
[    7.591107] RPC: Registered tcp transport module.
[    7.591118] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.591140] NET: Registered protocol family 44
[    7.593535] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    7.599937] Initialise system trusted keyrings
[    7.600480] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    7.608602] zbud: loaded
[    7.612511] NFS: Registering the id_resolver key type
[    7.612581] Key type id_resolver registered
[    7.612596] Key type id_legacy registered
[    7.612764] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    7.612782] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    7.613412] fuse: init (API version 7.32)
[    7.708362] xor: automatically using best checksumming function   neon      
[    7.708399] Key type asymmetric registered
[    7.708413] Asymmetric key parser 'x509' registered
[    7.708513] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    7.708870] io scheduler mq-deadline registered
[    8.719859] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
[    9.004578] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    9.052580] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
[    9.390006] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    9.390062] edma 49000000.dma: TI EDMA DMA engine driver
[    9.414151] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    9.416015] gpio-of-helper ocp:cape-universal: Failed to get gpio property of 'P1_02'
[    9.416045] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[    9.439478] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    9.445018] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a 8250
[   10.293657] printk: console [ttyS0] enabled
[   10.300101] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 28, base_baud = 3000000) is a 8250
[   10.311140] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 29, base_baud = 3000000) is a 8250
[   10.322206] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 42, base_baud = 3000000) is a 8250
[   10.336282] omap_rng 48310000.rng: Random Number Generator ver. 20
[   10.342947] random: crng init done
[   10.468702] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.476759] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.487544] libphy: Fixed MDIO Bus: probed
[   10.495346] usbcore: registered new interface driver smsc95xx
[   10.504269] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
[   10.518921] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
[   10.536162] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.543127] ehci-platform: EHCI generic platform driver
[   10.549445] ehci-omap: OMAP-EHCI Host Controller driver
[   10.557391] usbcore: registered new interface driver uas
[   10.562920] usbcore: registered new interface driver usb-storage
[   10.569039] usbcore: registered new interface driver ums-alauda
[   10.575058] usbcore: registered new interface driver ums-cypress
[   10.581183] usbcore: registered new interface driver ums-datafab
[   10.587300] usbcore: registered new interface driver ums_eneub6250
[   10.593580] usbcore: registered new interface driver ums-freecom
[   10.599678] usbcore: registered new interface driver ums-isd200
[   10.605695] usbcore: registered new interface driver ums-jumpshot
[   10.611881] usbcore: registered new interface driver ums-karma
[   10.617801] usbcore: registered new interface driver ums-onetouch
[   10.623998] usbcore: registered new interface driver ums-realtek
[   10.630098] usbcore: registered new interface driver ums-sddr09
[   10.636108] usbcore: registered new interface driver ums-sddr55
[   10.642115] usbcore: registered new interface driver ums-usbat
[   10.651880] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[   10.657389] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[   10.665326] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[   10.673667] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.680947] usb usb1: Product: MUSB HDRC host driver
[   10.685958] usb usb1: Manufacturer: Linux 5.10.59 musb-hcd
[   10.691492] usb usb1: SerialNumber: musb-hdrc.0
[   10.697064] hub 1-0:1.0: USB hub found
[   10.701060] hub 1-0:1.0: 1 port detected
[   10.712668] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[   10.718478] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[   10.726568] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[   10.734943] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.742228] usb usb2: Product: MUSB HDRC host driver
[   10.747239] usb usb2: Manufacturer: Linux 5.10.59 musb-hcd
[   10.752773] usb usb2: SerialNumber: musb-hdrc.1
[   10.758339] hub 2-0:1.0: USB hub found
[   10.762322] hub 2-0:1.0: 1 port detected
[   10.781905] omap_rtc 44e3e000.rtc: registered as rtc0
[   10.787135] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[   10.798033] i2c /dev entries driver
[   10.803642] Driver for 1-wire Dallas network protocol.
[   10.815066] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[   10.822974] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[   10.831515] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[   10.842417] cpuidle: enable-method property 'ti,am3352' found operations
[   10.851626] ledtrig-cpu: registered to indicate activity on CPUs
[   10.859229] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[   10.865591] omap-aes 53500000.aes: will run requests pump with realtime priority
[   10.877071] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[   10.883655] omap-sham 53100000.sham: will run requests pump with realtime priority
[   10.898130] hid: raw HID events driver (C) Jiri Kosina
[   10.904525] usbcore: registered new interface driver usbhid
[   10.910312] usbhid: USB HID core driver
[   10.914806] remoteproc remoteproc0: wkup_m3 is available
[   10.936257] drop_monitor: Initializing network drop monitor service
[   10.943856] NET: Registered protocol family 10
[   10.954075] Segment Routing with IPv6
[   10.958228] mip6: Mobile IPv6
[   10.961570] NET: Registered protocol family 17
[   10.966541] Key type dns_resolver registered
[   10.971030] mpls_gso: MPLS GSO support
[   10.975123] ThumbEE CPU extension supported.
[   10.979563] Registering SWP/SWPB emulation handler
[   10.984431] omap_voltage_late_init: Voltage driver support not added
[   10.991993] registered taskstats version 1
[   10.996222] Loading compiled-in X.509 certificates
[   11.001255] zswap: loaded using pool lzo/zbud
[   11.006554] Key type ._fscrypt registered
[   11.010719] Key type .fscrypt registered
[   11.014695] Key type fscrypt-provisioning registered
[   11.024005] Btrfs loaded, crc32c=crc32c-generic
[   11.028836] AppArmor: AppArmor sha1 policy hashing enabled
[   11.060838] OMAP GPIO hardware version 0.1
[   11.090107] tps65217-pmic: Failed to locate of_node [id: -1]
[   11.108116] tps65217-bl: Failed to locate of_node [id: -1]
[   11.115501] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
[   11.123026] input: tps65217_pwr_but as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0b000.target-module/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[   11.141709] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[   11.147755] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[   11.162879] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name='P1_02'
[   11.170613] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name='P1_04'
[   11.178339] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name='P1_06'
[   11.185962] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name='P1_08'
[   11.193544] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name='P1_10'
[   11.201111] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name='P1_12'
[   11.208685] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name='P1_20'
[   11.216259] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name='P1_26'
[   11.223838] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name='P1_28'
[   11.231623] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name='P1_29'
[   11.239248] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name='P1_30'
[   11.246966] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name='P1_31'
[   11.254626] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name='P1_32'
[   11.262296] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name='P1_33'
[   11.269964] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name='P1_34'
[   11.277639] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name='P1_35'
[   11.285348] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name='P1_36'
[   11.293027] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name='P2_01'
[   11.300701] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name='P2_02'
[   11.308365] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name='P2_03'
[   11.316019] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name='P2_04'
[   11.323686] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name='P2_05'
[   11.331348] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name='P2_06'
[   11.339015] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name='P2_07'
[   11.346683] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name='P2_08'
[   11.354337] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name='P2_09'
[   11.361996] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name='P2_10'
[   11.369679] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name='P2_11'
[   11.377370] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name='P2_17'
[   11.385042] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name='P2_18'
[   11.392698] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name='P2_19'
[   11.400393] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name='P2_20'
[   11.408070] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name='P2_22'
[   11.415733] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name='P2_24'
[   11.423396] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name='P2_25'
[   11.431056] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name='P2_27'
[   11.438749] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name='P2_28'
[   11.446410] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name='P2_29'
[   11.454070] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name='P2_30'
[   11.461744] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name='P2_31'
[   11.469419] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name='P2_32'
[   11.477082] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name='P2_33'
[   11.484766] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name='P2_34'
[   11.492442] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name='P2_35'
[   11.499914] gpio-of-helper ocp:cape-universal: ready
[   11.515377] ALSA device list:
[   11.519045]   No soundcards found.
[   11.523302] Waiting for root device /dev/mmcblk0p2...
[   41.961383] vmmcsd_fixed: disabling

Merge request reports