kernel_version=4.XY-Z 是什么?

kernel_version=4.XY-Z 是什么?

我正在关注关联 创建可启动 SD 卡。我卡在了kernel_version=4.X.Y-Z

我该如何处理这整件事呢:

-----------------------------
Script Complete
eewiki.net: [user@localhost:~$ export kernel_version=4.X.Y-Z]
-----------------------------

接下来,我不太明白这一点:

Copy and paste that "export kernel_version=4.X.Y-Z" exactly as shown in your own build/desktop environment....

什么是构建/桌面环境?我是否使用这个:

export kernel_version=4.X.Y-Z 

或者这个('uname -r'给我这个--> 4.10.0-42-generic):

export kernel_version=4.10.0-42-generic

接下来,我遇到了一个问题(使用uname所示的内核之后):

sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/

它抱怨道:

tar: ./*-*-*-armhf-*/armhf-rootfs-*.tar: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now

我做错了什么?提前谢谢你。

于是我搜索计算机,找到了这个文件:

/home/administrator/ti-linux-kernel-dev/debian-9.3-minimal-armhf-2017-12-09/armhf-rootfs-debian-stretch.tar

因此,我将命令更改为:

sudo tar xfvp /home/administrator/ti-linux-kernel-dev/debian-9.3-minimal-armhf-2017-12-09/armhf-rootfs-debian-stretch.tar -C /media/rootfs/

此命令执行。我想我做得对吗?

答案1

好的,最后./build_kernel.sh有这个输出:

-----------------------------
'arch/arm/boot/zImage' -> '/home/administrator/bb-kernel/deploy/4.9.73-bone-rt-r9.zImage'
'.config' -> '/home/administrator/bb-kernel/deploy/config-4.9.73-bone-rt-r9'
-rwxr-xr-x 1 root root 8.4M Jan  1 00:06 /home/administrator/bb-kernel/deploy/4.9.73-bone-rt-r9.zImage
-----------------------------
Building modules archive...
Compressing 4.9.73-bone-rt-r9-modules.tar.gz...
-rw-r--r-- 1 root root 20M Jan  1 00:06 /home/administrator/bb-kernel/deploy/4.9.73-bone-rt-r9-modules.tar.gz
-----------------------------
Building firmware archive...
Compressing 4.9.73-bone-rt-r9-firmware.tar.gz...
-rw-r--r-- 1 root root 1.2M Jan  1 00:06 /home/administrator/bb-kernel/deploy/4.9.73-bone-rt-r9-firmware.tar.gz
-----------------------------
Building dtbs archive...
Compressing 4.9.73-bone-rt-r9-dtbs.tar.gz...
-rw-r--r-- 1 root root 487K Jan  1 00:06 /home/administrator/bb-kernel/deploy/4.9.73-bone-rt-r9-dtbs.tar.gz
-----------------------------
Script Complete
eewiki.net: [user@localhost:~$ export kernel_version=4.9.73-bone-rt-r9]
-----------------------------

所以export kernel_version=4.9.73-bone-rt-r9才对。

相关内容