我正在尝试使用自己的U-Boot构建来在Jetson TK1板上启动Linux.当我们推动验证启动时,我使用平面图像树(统一内核映像,设备树blob,...)来描述我的系统.U-Boot可以加载ITB文件并尝试启动内核,但系统会在此消息后挂起.
我假设这是因为没有引导参数传递给内核(原始启动添加了参数的加载)但我对如何将参数传递给内核有点傻眼.我尝试设置bootargs环境变量,但这并没有改变这种情况.
使用ITB文件时如何将内核参数传递给内核?
命令行参数(取自示例extlinux.conf的APPEND命令):
console=ttyS0,115200n8 console=tty1 no_console_suspend=1
lp0_vec=2064@0xf46ff000 video=tegrafb mem=1862M@2048M memtype=255 ddr_die=2048M@2048M
section=256M pmuboard=0x0177:0x0000:0x02:0x43:0x00 vpr=151M@3945M tsec=32M@3913M
otf_key=c75e5bb91eb3bd947560357b64422f85 usbcore.old_scheme_first=1 core_edp_mv=1150
core_edp_ma=4000 tegraid=40.1.1.0.0 debug_uartport=lsport,3 power_supply=Adapter
audio_codec=rt5640 modem_id=0 android.kerneltype=normal usb_port_owner_info=0
fbcon=map:1 commchip_id=0 usb_port_owner_info=0 lane_owner_info=6 emc_max_dvfs=0
touch_id=0@0 tegra_fbmem=32899072@0xad012000 board_info=0x0177:0x0000:0x02:0x43:0x00
root=/dev/mmcblk0p1 rw rootwait tegraboot=sdmmc gpt
Run Code Online (Sandbox Code Playgroud)
ITS文件的内容:
/dts-v1/;
/ {
description = "Simple image with single Linux kernel and FDT blob";
#address-cells = <1>;
images {
kernel@1 {
description = "Vanilla Linux kernel";
data = /incbin/("./zImage");
type = "kernel";
arch = "arm";
os = "linux"; …Run Code Online (Sandbox Code Playgroud) 我正在尝试在Windows应用程序中使用FFMpeg库.我使用MingW-w64编译带有静态库的FFMpeg,其架构一次使用x86,一次使用x86_64.目前我正在尝试将32位x86库与我的VS2008应用程序链接起来.这些库被添加到库路径中,VS不会抱怨无法加载.a文件.
但是我得到了几个未解决的符号错误,如ait_rtp_receiver.lib(ait_decoder_lib.obj):错误LNK2001:未解析的外部符号_av_free
我将FFMpeg头文件导入为extern C,我可以看到.a中没有前导下划线的符号.我怎样才能使Mingw-w64的gcc和VS编译器套件的名称相同?