Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding trimmed kernel falcon configuration patch #73

Open
wants to merge 1 commit into
base: yocto_5
Choose a base branch
from

Conversation

UtsavAgarwalADI
Copy link
Contributor

@UtsavAgarwalADI UtsavAgarwalADI commented Jan 7, 2025

Trimming down kernel for faster falcon boot

Kernel now takes ~1s to initialize before interactive shell

[2025-01-08 18:32:18.695] Starting kernel ...
[2025-01-08 18:32:18.695]
[2025-01-08 18:32:18.739] Booting Linux on physical CPU 0x0000000000 [0x412fd050]
[2025-01-08 18:32:18.739] Linux version 5.15.168-yocto-falcon-154892-g7b82bccfe946-dirty (utsav@blackbox) (aarch64-linux-gnu-gcc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, GNU ld (GNU Binutils for Ubuntu) 2.38) #490 SMP PREEMPT Wed Jan 8 18:27:12 GMT 2025
[2025-01-08 18:32:18.740] Machine model: ADI 64-bit SC598 SOM EZ Kit
[2025-01-08 18:32:18.740] earlycon: adi_uart0 at MMIO 0x0000000031003000 (options '')
[2025-01-08 18:32:18.740] printk: bootconsole [adi_uart0] enabled
[2025-01-08 18:32:18.740] efi: UEFI not found.
[2025-01-08 18:32:18.740] Reserved memory: created DMA memory pool at 0x0000000020084000, size 0 MiB
[2025-01-08 18:32:18.788] OF: reserved mem: initialized node vdev0buffer@20084000, compatible id shared-dma-pool
[2025-01-08 18:32:18.789] Reserved memory: created DMA memory pool at 0x00000000200a8000, size 0 MiB
[2025-01-08 18:32:18.789] OF: reserved mem: initialized node vdev0buffer@200A8000, compatible id shared-dma-pool
[2025-01-08 18:32:18.789] NUMA: No NUMA configuration found
[2025-01-08 18:32:18.789] NUMA: Faking a node at [mem 0x0000000020040000-0x000000009dffffff]
[2025-01-08 18:32:18.789] NUMA: NODE_DATA [mem 0x9df5bf00-0x9df5dfff]
[2025-01-08 18:32:18.789] Zone ranges:
[2025-01-08 18:32:18.789]   DMA      [mem 0x0000000020040000-0x000000009dffffff]
[2025-01-08 18:32:18.839]   DMA32    empty
[2025-01-08 18:32:18.839]   Normal   empty
[2025-01-08 18:32:18.839] Movable zone start for each node
[2025-01-08 18:32:18.839] Early memory node ranges
[2025-01-08 18:32:18.839]   node   0: [mem 0x0000000020040000-0x000000002007ffff]
[2025-01-08 18:32:18.840]   node   0: [mem 0x0000000090000000-0x000000009dffffff]
[2025-01-08 18:32:18.840] Initmem setup node 0 [mem 0x0000000020040000-0x000000009dffffff]
[2025-01-08 18:32:18.840] On node 0, zone DMA: 64 pages in unavailable ranges
[2025-01-08 18:32:18.840] On node 0, zone DMA: 32640 pages in unavailable ranges
[2025-01-08 18:32:18.840] On node 0, zone DMA: 8192 pages in unavailable ranges
[2025-01-08 18:32:18.840] percpu: Embedded 26 pages/cpu s66528 r8192 d31776 u106496
[2025-01-08 18:32:18.883] Detected VIPT I-cache on CPU0
[2025-01-08 18:32:18.883] CPU features: detected: GIC system register CPU interface
[2025-01-08 18:32:18.883] CPU features: detected: Virtualization Host Extensions
[2025-01-08 18:32:18.883] CPU features: detected: Qualcomm erratum 1009, or ARM erratum 1286807, 2441009
[2025-01-08 18:32:18.883] CPU features: detected: ARM errata 1165522, 1319367, or 1530923
[2025-01-08 18:32:18.883] alternatives: patching kernel code
[2025-01-08 18:32:18.883] Built 1 zonelists, mobility grouping on.  Total pages: 56511
[2025-01-08 18:32:18.883] Policy zone: DMA
[2025-01-08 18:32:18.883] Kernel command line: earlycon=adi_uart,0x31003000 console=ttySC0,115200 vmalloc=512M cadence-quadspi.ospi_id=0 cadence-quadspi.ospi_mode=spi
[2025-01-08 18:32:18.934] Unknown kernel command line parameters "vmalloc=512M", will be passed to user space.
[2025-01-08 18:32:18.934] Dentry cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[2025-01-08 18:32:18.934] Inode-cache hash table entries: 16384 (order: 5, 131072 bytes, linear)
[2025-01-08 18:32:18.935] mem auto-init: stack:off, heap alloc:off, heap free:off
[2025-01-08 18:32:18.935] Memory: 212040K/229632K available (4160K kernel code, 570K rwdata, 904K rodata, 1216K init, 217K bss, 17592K reserved, 0K cma-reserved)
[2025-01-08 18:32:18.935] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[2025-01-08 18:32:18.979] trace event string verifier disabled
[2025-01-08 18:32:18.979] rcu: Preemptible hierarchical RCU implementation.
[2025-01-08 18:32:18.979] rcu:  RCU event tracing is enabled.
[2025-01-08 18:32:18.979] rcu:  RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=1.
[2025-01-08 18:32:18.979]       Trampoline variant of Tasks RCU enabled.
[2025-01-08 18:32:18.979] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[2025-01-08 18:32:18.979] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[2025-01-08 18:32:18.980] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[2025-01-08 18:32:18.980] GICv3: GIC: Using split EOI/Deactivate mode
[2025-01-08 18:32:19.023] GICv3: 384 SPIs implemented
[2025-01-08 18:32:19.023] GICv3: 384 SPIs implemented                                                                                                                                                                                                 [56/1881][2025-01-08 18:32:19.023] GICv3: 0 Extended SPIs implemented
[2025-01-08 18:32:19.023] GICv3: Distributor has no Range Selector support
[2025-01-08 18:32:19.023] Root IRQ handler: 0xffff8000080100a4
[2025-01-08 18:32:19.023] GICv3: 16 PPIs implemented
[2025-01-08 18:32:19.023] GICv3: CPU0: found redistributor 0 region 0:0x0000000031240000
[2025-01-08 18:32:19.024] arch_timer: cp15 timer(s) running at 31.25MHz (phys).
[2025-01-08 18:32:19.024] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xe6a171046, max_idle_ns: 881590405314 ns
[2025-01-08 18:32:19.024] sched_clock: 56 bits at 31MHz, resolution 32ns, wraps every 4398046511088ns
[2025-01-08 18:32:19.068] clocksource: cs_adi_gptimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 15290083572 ns
[2025-01-08 18:32:19.068] sched_clock: 32 bits at 125MHz, resolution 8ns, wraps every 17179869180ns
[2025-01-08 18:32:19.069] Console: colour dummy device 80x25
[2025-01-08 18:32:19.069] Calibrating delay loop (skipped), value calculated using timer frequency.. 62.50 BogoMIPS (lpj=125000)
[2025-01-08 18:32:19.069] pid_max: default: 4096 minimum: 301
[2025-01-08 18:32:19.069] Mount-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[2025-01-08 18:32:19.069] Mountpoint-cache hash table entries: 512 (order: 0, 4096 bytes, linear)
[2025-01-08 18:32:19.069] rcu: Hierarchical SRCU implementation.
[2025-01-08 18:32:19.112] EFI services will not be available.
[2025-01-08 18:32:19.112] smp: Bringing up secondary CPUs ...
[2025-01-08 18:32:19.112] smp: Brought up 1 node, 1 CPU
[2025-01-08 18:32:19.112] SMP: Total of 1 processors activated.
[2025-01-08 18:32:19.112] CPU features: detected: 32-bit EL0 Support
[2025-01-08 18:32:19.112] CPU features: detected: Data cache clean to the PoU not required for I/D coherence
[2025-01-08 18:32:19.112] CPU features: detected: CRC32 instructions
[2025-01-08 18:32:19.112] CPU features: detected: RCpc load-acquire (LDAPR)
[2025-01-08 18:32:19.113] CPU features: detected: LSE atomic instructions
[2025-01-08 18:32:19.113] CPU features: detected: Speculative Store Bypassing Safe (SSBS)
[2025-01-08 18:32:19.163] CPU: All CPU(s) started at EL2
[2025-01-08 18:32:19.163] devtmpfs: initialized
[2025-01-08 18:32:19.163] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[2025-01-08 18:32:19.163] futex hash table entries: 16 (order: -2, 1024 bytes, linear)
[2025-01-08 18:32:19.163] pinctrl core: initialized pinctrl subsystem
[2025-01-08 18:32:19.163] DMI not present or invalid.
[2025-01-08 18:32:19.163] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[2025-01-08 18:32:19.163] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[2025-01-08 18:32:19.164] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[2025-01-08 18:32:19.201] thermal_sys: Registered thermal governor 'step_wise'
[2025-01-08 18:32:19.201] cpuidle: using governor menu
[2025-01-08 18:32:19.201] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[2025-01-08 18:32:19.201] ASID allocator initialised with 65536 entries
[2025-01-08 18:32:19.201] Serial: AMBA PL011 UART driver
[2025-01-08 18:32:19.251] ACPI: Interpreter disabled.
[2025-01-08 18:32:19.251] iommu: Default domain type: Translated
[2025-01-08 18:32:19.251] iommu: DMA domain TLB invalidation policy: strict mode
[2025-01-08 18:32:19.251] i2c-adi-twi 31001400.twi: ADI on-chip I2C TWI Controller, regs_base@(____ptrval____)
[2025-01-08 18:32:19.251] gpio-496 (led1-en): hogged as output/high
[2025-01-08 18:32:19.251] gpio-497 (led2-en): hogged as output/high
[2025-01-08 18:32:19.251] gpio-498 (led3-en): hogged as output/high
[2025-01-08 18:32:19.251] gpio-499 (~spi2d2-d3-en): hogged as output/low
[2025-01-08 18:32:19.251] gpio-500 (~spi2flash-cs): hogged as output/low
[2025-01-08 18:32:19.251] gpio-501 (~uart0-en): hogged as output/low
[2025-01-08 18:32:19.251] gpio-502 (~uart0-flow-en): hogged as output/high
[2025-01-08 18:32:19.303] gpio-504 (emmc-en): hogged as output/low
[2025-01-08 18:32:19.303] gpio-505 (emmc-som-en): hogged as output/high
[2025-01-08 18:32:19.303] gpio-480 (eeprom-en): hogged as output/low
[2025-01-08 18:32:19.303] gpio-481 (pushbutton-en): hogged as output/high
[2025-01-08 18:32:19.303] gpio-482 (~microsd-spi): hogged as output/high
[2025-01-08 18:32:19.304] gpio-483 (~ftdi-usb-en): hogged as output/low
[2025-01-08 18:32:19.303] gpio-482 (~microsd-spi): hogged as output/high
[2025-01-08 18:32:19.304] gpio-483 (~ftdi-usb-en): hogged as output/low
[2025-01-08 18:32:19.304] gpio-484 (~can-en): hogged as output/high
[2025-01-08 18:32:19.304] gpio-486 (adau1962-en): hogged as output/low
[2025-01-08 18:32:19.304] gpio-487 (adau1979-en): hogged as output/low
[2025-01-08 18:32:19.304] gpio-488 (octal-spi-cs-en): hogged as output/low
[2025-01-08 18:32:19.361] gpio-489 (~spdif-digital-en): hogged as output/high
[2025-01-08 18:32:19.361] gpio-490 (~spdif-optical-en): hogged as output/high
[2025-01-08 18:32:19.361] gpio-491 (audio-jack-sel): hogged as output/high
[2025-01-08 18:32:19.361] gpio-492 (~mlb-en): hogged as output/high
[2025-01-08 18:32:19.361] gpio-493 (~eth1-en): hogged as output/low
[2025-01-08 18:32:19.361] gpio-494 (~eth1-reset): hogged as output/low
[2025-01-08 18:32:19.361] gpio-495 (~gige-reset): hogged as output/high
[2025-01-08 18:32:19.361] i2c-adi-twi 31001600.twi: ADI on-chip I2C TWI Controller, regs_base@(____ptrval____)
[2025-01-08 18:32:19.361] clocksource: Switched to clocksource arch_sys_counter
[2025-01-08 18:32:19.377] pnp: PnP ACPI: disabled
[2025-01-08 18:32:19.407] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[2025-01-08 18:32:19.407] Unpacking initramfs...
[2025-01-08 18:32:19.423] workingset: timestamp_bits=42 max_order=16 bucket_order=0
[2025-01-08 18:32:19.444] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[2025-01-08 18:32:19.444] io scheduler mq-deadline registered
[2025-01-08 18:32:19.472] io scheduler kyber registered
[2025-01-08 18:32:19.472] adi-dma 31022000.dma: Creating new peripheral DMA controller instance
[2025-01-08 18:32:19.514] adi-dma 31023000.dma: Creating new peripheral DMA controller instance
[2025-01-08 18:32:19.514] adi-dma 3109a000.dma: Creating new MDMA controller instance
[2025-01-08 18:32:19.606] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[2025-01-08 18:32:19.606] ADI serial driver
[2025-01-08 18:32:19.606] adi-uart4 31003000.uart: Serial probe
[2025-01-08 18:32:19.606] 31003000.uart: ttySC0 at MMIO 0x0 (irq = 23, base_baud = 7812500) is a ADI-UART4
[2025-01-08 18:32:19.606] printk: console [ttySC0] enabled
[2025-01-08 18:32:19.606] printk: console [ttySC0] enabled
[2025-01-08 18:32:19.606] printk: bootconsole [adi_uart0] disabled
[2025-01-08 18:32:19.606] printk: bootconsole [adi_uart0] disabled
[2025-01-08 18:32:19.606] cacheinfo: Unable to detect cache hierarchy for CPU 0
[2025-01-08 18:32:19.607] VFIO - User Level meta-driver version: 0.3
[2025-01-08 18:32:19.607] i2c_dev: i2c /dev entries driver
[2025-01-08 18:32:19.607] adsp-sru-ctrl 310ca000.sru-ctrl-dai1: Started without extended selection codes (SC573, SC584, SC589)
[2025-01-08 18:32:19.640] clk: Disabling unused clocks
[2025-01-08 18:32:19.656] Freeing initrd memory: 2768K
[2025-01-08 18:32:19.679] Freeing unused kernel memory: 1216K
[2025-01-08 18:32:19.679] Run /init as init process
[2025-01-08 18:32:19.774] mount: mount
[2025-01-08 18:32:19.775]          Analog Initial Ram Filesystem
[2025-01-08 18:32:19.775]                 www.analog.com
[2025-01-08 18:32:19.775]               www.yoctoproject.org
[2025-01-08 18:32:19.775]
[2025-01-08 18:32:19.775] Analog [Initramfs]: Preparing Operating System....
[2025-01-08 18:32:19.775] Analog [Initramfs]: Mounting Root File System...
[2025-01-08 18:32:19.775] ing tmpfs on /dev/shm failed: Invalid argument
[2025-01-08 18:32:19.775] Analog [Initramfs]: No root device found, dropping to getty
[2025-01-08 18:32:19.775] udhcpc: socket: Function not implemented
[2025-01-08 18:32:19.886]
[2025-01-08 18:32:19.886] adsp-sc598-som-ezkit login: root
[2025-01-08 18:37:37.880] Password:
[2025-01-08 18:37:38.711] ~ # uname -a
[2025-01-08 18:37:41.173] Linux adsp-sc598-som-ezkit 5.15.168-yocto-falcon-154892-g7b82bccfe946-dirty #490 SMP PREEMPT Wed Jan 8 18:27:12 GMT 2025 aarch64 GNU/Linux

Trimming down kernel for faster falcon boot

Signed-off-by: Utsav Agarwal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant