Building with Buildroot and Assisting Others

Hello,

While building with Buildroot to help a fellow enthusiast, I came across an issue that some is probably more qualified to handle:


U-Boot 2022.04 (Apr 25 2022 - 16:40:10 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... 
<ethaddr> not set. Validating first E-fuse MAC
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Hit any key to stop autoboot:  0 
=> env default -f -a
## Resetting to default environment
=> saveenv
Saving Environment to FAT... OK
=> 
U-Boot SPL 2022.04 (Apr 25 2022 - 16:40:10 -0500)
Trying to boot from MMC1


U-Boot 2022.04 (Apr 25 2022 - 16:40:10 -0500)

CPU  : AM335X-GP rev 2.0
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... OK
<ethaddr> not set. Validating first E-fuse MAC
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found /extlinux/extlinux.conf
Retrieving file: /extlinux/extlinux.conf
1:      buildroot
Retrieving file: /zImage
append: console=ttyO0,115200 root=/dev/sdg2 rootwait
Retrieving file: /am335x-boneblack.dtb
Kernel image @ 0x82000000 [ 0x000000 - 0x618c48 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe5000, end 8ffff202 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.15.35 (fork@done) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 10.3.1 20210621, GNU ld (GNU Toolchain for the A-profile Architecture 10.3-2021.07 (arm-10.29)) 2.36.1.20210621) #1 SMP Mon Apr 25 16:47:23 CDT 2022
[    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 BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] cma: Reserved 16 MiB at 0x9e800000
[    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.0 (sgx neon)
[    0.000000] percpu: Embedded 16 pages/cpu s33740 r8192 d23604 u65536
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129412
[    0.000000] Kernel command line: console=ttyO0,115200 root=/dev/sdg2 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: 484816K/522240K available (10240K kernel code, 1026K rwdata, 2236K rodata, 1024K init, 246K bss, 21040K reserved, 16384K cma-reserved, 0K highmem)
[    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=2 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] random: get_random_bytes called from start_kernel+0x460/0x6d0 with crng_init=0
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000002] 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.000427] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.002140] Console: colour dummy device 80x30
[    0.002191] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.002203] This ensures that you still see kernel messages. Please
[    0.002211] update your kernel commandline.
[    0.002258] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
[    0.090541] pid_max: default: 32768 minimum: 301
[    0.090713] LSM: Security Framework initializing
[    0.090882] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.090905] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.092143] CPU: Testing write buffer coherency: ok
[    0.092222] CPU0: Spectre v2: using BPIALL workaround
[    0.092574] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.093429] Setting up static identity map for 0x80100000 - 0x80100078
[    0.093633] rcu: Hierarchical SRCU implementation.
[    0.094162] smp: Bringing up secondary CPUs ...
[    0.094181] smp: Brought up 1 node, 1 CPU
[    0.094193] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[    0.094206] CPU: All CPU(s) started in SVC mode.
[    0.094887] devtmpfs: initialized
[    0.108979] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.109300] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.109337] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.110949] pinctrl core: initialized pinctrl subsystem
[    0.112656] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.115320] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.115869] audit: initializing netlink subsys (disabled)
[    0.116935] thermal_sys: Registered thermal governor 'fair_share'
[    0.116954] thermal_sys: Registered thermal governor 'step_wise'
[    0.116969] thermal_sys: Registered thermal governor 'user_space'
[    0.117324] cpuidle: using governor menu
[    0.132214] No ATAGs?
[    0.132252] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.139628] Kprobes globally optimized
[    0.139914] audit: type=2000 audit(0.110:1): state=initialized audit_enabled=0 res=1
[    0.145737] iommu: Default domain type: Translated 
[    0.145761] iommu: DMA domain TLB invalidation policy: strict mode 
[    0.146960] vgaarb: loaded
[    0.147480] SCSI subsystem initialized
[    0.148121] pps_core: LinuxPPS API ver. 1 registered
[    0.148140] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.148170] PTP clock support registered
[    0.149450] clocksource: Switched to clocksource dmtimer
[    0.196212] VFS: Disk quotas dquot_6.6.0
[    0.196340] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.766524] NET: Registered PF_INET protocol family
[    0.766785] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.767730] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.767786] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.767834] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.767897] TCP: Hash tables configured (established 4096 bind 4096)
[    0.768030] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.768063] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.768223] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.769202] RPC: Registered named UNIX socket transport module.
[    0.769235] RPC: Registered udp transport module.
[    0.769244] RPC: Registered tcp transport module.
[    0.769253] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.769272] PCI: CLS 0 bytes, default 64
[    0.770746] Initialise system trusted keyrings
[    0.771608] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.772757] NFS: Registering the id_resolver key type
[    0.772823] Key type id_resolver registered
[    0.772835] Key type id_legacy registered
[    0.772884] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.773486] Key type asymmetric registered
[    0.773510] Asymmetric key parser 'x509' registered
[    0.773580] io scheduler mq-deadline registered
[    0.773597] io scheduler kyber registered
[    0.776980] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[    0.791182] brd: module loaded
[    0.798179] loop: module loaded
[    0.799026] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.801403] i2c_dev: i2c /dev entries driver
[    0.802261] cpuidle: enable-method property 'ti,am3352' found operations
[    0.802645] sdhci: Secure Digital Host Controller Interface driver
[    0.802662] sdhci: Copyright(c) Pierre Ossman
[    0.802821] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.803051] ledtrig-cpu: registered to indicate activity on CPUs
[    0.803624] Initializing XFRM netlink socket
[    0.803808] NET: Registered PF_INET6 protocol family
[    0.805210] Segment Routing with IPv6
[    0.805271] In-situ OAM (IOAM) with IPv6
[    0.805369] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    0.806148] NET: Registered PF_PACKET protocol family
[    0.806196] NET: Registered PF_KEY protocol family
[    0.806299] Key type dns_resolver registered
[    0.806376] ThumbEE CPU extension supported.
[    0.806396] Registering SWP/SWPB emulation handler
[    0.806887] omap_voltage_late_init: Voltage driver support not added
[    0.807210] SmartReflex Class3 initialized
[    0.807861] Loading compiled-in X.509 certificates
[    0.839191] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    0.867701] OMAP GPIO hardware version 0.1
[    0.879338] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    0.905135] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    0.959457] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    0.961667] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    0.962095] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[    0.962123] cpsw-switch 4a100000.switch: ALE Table size 1024
[    0.962232] cpsw-switch 4a100000.switch: cpts: overflow check period 500 (jiffies)
[    0.962253] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
[    0.962348] cpsw-switch 4a100000.switch: Detected MACID = c8:a0:30:ac:e1:13
[    0.963863] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
[    0.972847] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    0.972905] edma 49000000.dma: TI EDMA DMA engine driver
[    0.990440] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    0.997407] l3-aon-clkctrl:0000:0: failed to disable
[    0.999250] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 18, base_baud = 3000000) is a 8250
[    1.867646] printk: console [ttyS0] enabled
[    1.900110] tps65217-pmic: Failed to locate of_node [id: -1]
[    1.909747] random: fast init done
[    1.916783] tps65217-bl: Failed to locate of_node [id: -1]
[    1.925266] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    1.931215] i2c 0-0070: Fixing up cyclic dependency with 4830e000.lcdc
[    1.938061] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    1.945414] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    1.954251] sdhci-omap 48060000.mmc: Got CD GPIO
[    1.959180] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    1.972203] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    2.006906] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    2.015519] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    2.023826] Waiting for root device /dev/sdg2...
[    2.059318] mmc0: new SDHC card at address 0001
[    2.065031] mmcblk0: mmc0:0001 SD16G 14.6 GiB 
[    2.072578]  mmcblk0: p1 p2
[    2.106381] mmc1: new high speed MMC card at address 0001
[    2.112974] mmcblk1: mmc1:0001 MMC02G 1.79 GiB 
[    2.121386] mmcblk1boot0: mmc1:0001 MMC02G 1.00 MiB 
[    2.128480] mmcblk1boot1: mmc1:0001 MMC02G 1.00 MiB 
[    2.135319] mmcblk1rpmb: mmc1:0001 MMC02G 128 KiB, chardev (250:0)
[  131.349485] random: crng init done

If you can see where I took a wrong turn, please jump in.

Seth

your extlinux.conf has /dev/sdg2… should be /dev/mmcblk0p2…

Regards,

2 Likes

Hello @RobertCNelson ,

Sir, you are right. I just got to sign in. So, that is done. Now, time to party!

Seth

P.S. And by party, I mean add some nifty build additions.