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.

AM3352: 基于linux-3.2.0-m335x-t.tar.bz2,配置 Linux 内核系统和交叉编译ARM版本内核报错

Part Number: AM3352

CHK include/linux/version.h
CHK include/generated/utsrelease.h
make[1]: “include/generated/mach-types.h”已是最新。
CALL scripts/checksyscalls.sh
sed: 无法读取 scripts/../arch/x86/include/asm/unistd_32.h: 没有那个文件或目录
CHK include/generated/compile.h
CC arch/arm/mach-omap2/board-ldp.o
arch/arm/mach-omap2/board-ldp.c: In function ‘omap_ldp_init’:
arch/arm/mach-omap2/board-ldp.c:425:23: error: ‘nand_default_timings’ undeclared (first use in this function)
arch/arm/mach-omap2/board-ldp.c:425:23: note: each undeclared identifier is reported only once for each function it appears in
scripts/Makefile.build:305: recipe for target 'arch/arm/mach-omap2/board-ldp.o' failed
make[1]: *** [arch/arm/mach-omap2/board-ldp.o] Error 1
Makefile:948: recipe for target 'arch/arm/mach-omap2' failed
make: *** [arch/arm/mach-omap2] Error 2

  • 检查一下编译环境和配置是否正确,确保所有必要的文件和变量都被正确引入吧

  • Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    am335x_opp_update: physical regulator not present for core(-22)
    drivers/video/logo/flash_logo.c-86:can't find logo in mtd4
    mtdoops: mtd device (mtddev=name/number) must be supplied
    sr_init: platform driver register failed
    UBIFS error (pid 1): ubifs_is_mapped: ubi_is_mapped failed for LEB 0, error -9
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
    Backtrace:
    [<c0017db8>] (dump_backtrace+0x0/0x10c) from [<c0408ef8>] (dump_stack+0x18/0x1c)
    r6:00008001 r5:c04ed270 r4:c069cc88 r3:c0659e0c
    [<c0408ee0>] (dump_stack+0x0/0x1c) from [<c04090f4>] (panic+0x64/0x194)
    [<c0409090>] (panic+0x0/0x194) from [<c0588c88>] (mount_block_root+0x174/0x228)
    r3:00000004 r2:00000000 r1:cf01df68 r0:c04ed270
    r7:c05b6f60
    [<c0588b14>] (mount_block_root+0x0/0x228) from [<c0588fa4>] (prepare_namespace+0x94/0x1c0)
    [<c0588f10>] (prepare_namespace+0x0/0x1c0) from [<c05888fc>] (kernel_init+0xf4/0x120)
    r5:c0636e1c r4:c0636e1c
    [<c0588808>] (kernel_init+0x0/0x120) from [<c0040f88>] (do_exit+0x0/0x65c)
    r5:c0588808 r4:00000000

    在TF烧录完毕后,启动内核时报这个错了,

  • 检查一下设备硬件连接、内核配置吧,看着像配置错了

  • 这个是一个只读的文件系统。在正常执行完 mount -t debugfs none /sys/kernel/debug 命令后,可以成功挂载debugfs ,然后 执行echo 0 > /sys/kernel/debug/musb-hdrc.0/softconnect 报错Permission denied,原因就是因为系统sys目录只读,尝试适应wr命令也不行,请问如何解决呢?