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.

官方SDK,正常编译后,系统启动,但是没有加载任何内核模块,怎么回事呢

Other Parts Discussed in Thread: TPS65217

安装下面的步骤编译内核和内核模块,并安装到rootfs下面,正常启动系统,但是系统没有加载任何内核模块,怎么回事呢

  • 进入系统后使用lsmod,没有任何东西,为啥启动没有加载内核模块呢?
  • 使用那个版本的SDK?
  • ls /lib/modules 看看有东西吗
  • 请问使用的是哪种boot mode? 启动log信息是什么?
  • 官方最新linux RT SDK
  • 从tf卡启动的,busybox做的文件系统,内核模块已经安装到目录了。
    启动信息:
    Starting kernel ...

    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Linux version 4.19.38-rt19-g1224cd679e (user-000@user-000) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #44 PREEMPT RT Tue Sep 3 16:45:48 CST 2019
    [ 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 Flight Controler
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] cma: Reserved 48 MiB at 0x9d000000
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (sgx neon)
    [ 0.000000] random: get_random_bytes called from start_kernel+0xa0/0x410 with crng_init=0
    [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 130048
    [ 0.000000] Kernel command line: console=ttyS0,115200n8 root=PARTUUID=c599bb8c-02 rw rootfstype=ext4 rootwait
    [ 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: 461776K/524288K available (5120K kernel code, 168K rwdata, 1576K rodata, 1024K init, 208K bss, 13360K reserved, 49152K cma-reserved, 0K highmem)
    [ 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 : 0x(ptrval) - 0x(ptrval) (6112 kB)
    [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
    [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 169 kB)
    [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 209 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] rcu: Preemptible hierarchical RCU implementation.
    [ 0.000000] rcu: RCU priority boosting: priority 1 delay 500 ms.
    [ 0.000000] No expedited grace period (rcu_normal_after_boot).
    [ 0.000000] Tasks RCU enabled.
    [ 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] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000020] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000039] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000048] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000374] timer_probe: no matching timers found
    [ 0.000503] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [ 0.058719] pid_max: default: 32768 minimum: 301
    [ 0.058982] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.058996] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.059818] CPU: Testing write buffer coherency: ok
    [ 0.059887] CPU0: Spectre v2: using BPIALL workaround
    [ 0.060999] Setting up static identity map for 0x80100000 - 0x80100060
    [ 0.061496] rcu: Hierarchical SRCU implementation.
    [ 0.064305] devtmpfs: initialized
    [ 0.076319] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.076828] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.076860] futex hash table entries: 256 (order: 1, 8192 bytes)
    [ 0.080854] pinctrl core: initialized pinctrl subsystem
    [ 0.082212] NET: Registered protocol family 16
    [ 0.085839] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.111815] l4_wkup_cm:clk:0010:0: failed to disable
    [ 0.174605] OMAP GPIO hardware version 0.1
    [ 0.190990] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.206691] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.209054] pps_core: LinuxPPS API ver. 1 registered
    [ 0.209074] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.209110] EDAC MC: Ver: 3.0.0
    [ 0.210317] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.211928] clocksource: Switched to clocksource timer1
    [ 0.214199] NET: Registered protocol family 2
    [ 0.215120] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 7168 bytes)
    [ 0.215167] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.215255] TCP bind hash table entries: 4096 (order: 4, 98304 bytes)
    [ 0.215511] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.215668] UDP hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.215727] UDP-Lite hash table entries: 256 (order: 2, 16384 bytes)
    [ 0.216780] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.218671] Initialise system trusted keyrings
    [ 0.219287] workingset: timestamp_bits=30 max_order=17 bucket_order=0
    [ 0.226626] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.238851] Key type asymmetric registered
    [ 0.238882] Asymmetric key parser 'x509' registered
    [ 0.238998] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
    [ 0.239018] io scheduler noop registered
    [ 0.239030] io scheduler deadline registered
    [ 0.239279] io scheduler cfq registered (default)
    [ 0.239294] io scheduler mq-deadline registered
    [ 0.239306] io scheduler kyber registered
    [ 0.241633] pinctrl-single 44e10800.pinmux: 142 pins, size 568
    [ 0.245270] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
    [ 0.248558] console [ttyS0] disabled
    [ 0.248724] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud = 3000000) is a 8250
    [ 0.766066] console [ttyS0] enabled
    [ 0.770725] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 31, base_baud = 3000000) is a 8250
    [ 0.780463] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 32, base_baud = 3000000) is a 8250
    [ 0.790200] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 33, base_baud = 3000000) is a 8250
    [ 0.799893] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 34, base_baud = 3000000) is a 8250
    [ 0.809599] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 35, base_baud = 3000000) is a 8250
    [ 0.833645] brd: module loaded
    [ 0.847292] loop: module loaded
    [ 0.855908] CAN device driver interface
    [ 0.861167] c_can_platform 481cc000.can: c_can_platform device registered (regs=(ptrval), irq=41)
    [ 0.871285] c_can_platform 481d0000.can: c_can_platform device registered (regs=(ptrval), irq=42)
    [ 0.882289] omap_rtc 44e3e000.rtc: registered as rtc0
    [ 0.887675] i2c /dev entries driver
    [ 0.891880] __power_supply_register: Expected proper parent device for 'test_ac'
    [ 0.899493] __power_supply_register: Expected proper parent device for 'test_battery'
    [ 0.907729] __power_supply_register: Expected proper parent device for 'test_usb'
    [ 0.915947] cpu cpu0: OPP-v2 not supported, cpufreq-dt will attempt to use legacy tables.
    [ 0.924833] sdhci: Secure Digital Host Controller Interface driver
    [ 0.931048] sdhci: Copyright(c) Pierre Ossman
    [ 0.936469] omap_gpio 481ae000.gpio: Could not set line 14 debounce to 200000 microseconds (-22)
    [ 0.945308] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 0.950854] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
    [ 0.985148] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
    [ 1.018270] sdhci-pltfm: SDHCI platform and OF driver helper
    [ 1.021806] mmc0: host does not support reading read-only switch, assuming write-enable
    [ 1.023679] mmc0: new high speed SDHC card at address 0001
    [ 1.027524] mmcblk0: mmc0:0001 EB1QT 29.8 GiB
    [ 1.030889] mmcblk0: p1 p2
    [ 1.055577] NET: Registered protocol family 17
    [ 1.060108] can: controller area network core (rev 20170425 abi 9)
    [ 1.066529] NET: Registered protocol family 29
    [ 1.071045] can: raw protocol (rev 20170425)
    [ 1.073797] mmc1: new high speed MMC card at address 0001
    [ 1.081424] can: broadcast manager protocol (rev 20170425 t)
    [ 1.082776] mmcblk1: mmc1:0001 004G60 3.69 GiB
    [ 1.083443] mmcblk1boot0: mmc1:0001 004G60 partition 1 2.00 MiB
    [ 1.084089] mmcblk1boot1: mmc1:0001 004G60 partition 2 2.00 MiB
    [ 1.084418] mmcblk1rpmb: mmc1:0001 004G60 partition 3 512 KiB, chardev (247:0)
    [ 1.086213] mmcblk1: p1 p2
    [ 1.120756] can: netlink gateway (rev 20170425) max_hops=1
    [ 1.126626] omap_voltage_late_init: Voltage driver support not added
    [ 1.134110] Loading compiled-in X.509 certificates
    [ 1.193457] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 1.198908] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.205940] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
    [ 1.211743] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [ 1.227160] random: fast init done
    [ 1.263393] EXT4-fs (mmcblk0p2): warning: mounting fs with errors, running e2fsck is recommended
    [ 1.276139] EXT4-fs (mmcblk0p2): recovery complete
    [ 1.286761] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 1.295004] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [ 1.310782] devtmpfs: mounted
    [ 1.315847] Freeing unused kernel memory: 1024K
    [ 1.320843] Run /sbin/init as init process
    /etc/init.d/rcS: line 5: can't create /proc/sys/kernel/hotplug: nonexistent directory

    Processing /etc/profile... Done
  • 如果要启动加载内核模块,那要在用户启动脚本里写加载相关的脚本吗
  • 这个文件夹下看看那有没有KO 文件,手动看看能不能加载进去