Create /boot/uImage symlink to the current kernel image
PATCH 1/1 Create /boot/uImage symlink to the current kernel image
Hi,
A while ago, the kernel naming have been changed to include $(DATE)
which makes it annoying to keep track. This patch adds an option to the Advanced Kernel option to create an /boot/uImage symbolic link to the built kernel. Please consider applying, this really improves usability, if this naming scheme is to be kept.
Kind Regards,
Thiago A. Correa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-uImage-symlink.patch
Type: text/x-patch
Size: 1237 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20080103/1edff06a/attachment.bin
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/1 Create /boot/uImage symlink to the currentkernel image
Hi,
Maybe someone might want to have more than one kernel in /boot if they are different versions (but would be awkward to get it, since would require make menuconfig; make; make menuconfig again to change settings then make once again). For different platforms doesn't make sense, since the system wouldn't boot. You can't have different busybox on the same filesystem. Besides why would you keep 2 kernels with different and incompatible binaries?
About the u-boot scripts, it is equaly bad to have to reflash u-boot all the time, whenever I try some different kernel setting or I want to rebuild everything from scratch. An STK1000 owner for instance might just use an USB Card Reader and not have a JTAG MKii.
This uImage linking is optional, while the naming is imposed.
Regards,
Thiago A. Correa
Quoted 27 lines · Ulf Samuelsson
| Hi, | | A while ago, the kernel naming have been changed to include $(DATE) | which makes it annoying to keep track. This patch adds an option to | the Advanced Kernel option to create an /boot/uImage symbolic link to | the built kernel. Please consider applying, this really improves | usability, if this naming scheme is to be kept. | | Kind Regards, | Thiago A. Correa |Maybe,
How do you store three different kernels in "/boot", if they have the same name? This could be for three different architectures, or three different versions.The AT91 U-Boot makes it real easy to use the long kernel names.
If you generate an autoscript for U-boot then it will be as easy to do for other architectures as well.Best Regards
Ulf Samuelsson
PATCH 1/1 Create /boot/uImage symlink to the currentkernel image
In reply to Thiago A. Corrêa| Hi, | | A while ago, the kernel naming have been changed to include $(DATE) | which makes it annoying to keep track. This patch adds an option to | the Advanced Kernel option to create an /boot/uImage symbolic link to | the built kernel. Please consider applying, this really improves | usability, if this naming scheme is to be kept. | | Kind Regards, | Thiago A. Correa |
Looking at your patch, I see that we are talking about two different things. There is a feature to copy the linux kernel to /tftpboot directory, which I thought you were referring to, but If you want the kernel inside the root file system, then would it not make more sense to do:
- cp -dpf $(LINUX26_KERNEL) $(TARGET_DIR)/boot/$(LINUX26_KERNEL_NAME)
+ cp -dpf $(LINUX26_KERNEL) $(TARGET_DIR)/boot/$(BR2_PACKAGE_LINUX_FORMAT)
where BR2_PACKAGE_LINUX_FORMAT could be
uImage, bzImage, vmlinux etc.
Best Regards
Ulf Samuelsson
PATCH 1/1 Create /boot/uImage symlink to the currentkernel image
Quoted 23 lines · Ulf Samuelsson
| Hi, | | A while ago, the kernel naming have been changed to include $(DATE) | which makes it annoying to keep track. This patch adds an option to | the Advanced Kernel option to create an /boot/uImage symbolic link to | the built kernel. Please consider applying, this really improves | usability, if this naming scheme is to be kept. | | Kind Regards, | Thiago A. Correa |Looking at your patch, I see that we are talking about two different things. There is a feature to copy the linux kernel to /tftpboot directory, which I thought you were referring to, but If you want the kernel inside the root file system, then would it not make more sense to do:
(quoted diff) +1
-1- cp -dpf $(LINUX26_KERNEL) $(TARGET_DIR)/boot/$(LINUX26_KERNEL_NAME) + cp -dpf $(LINUX26_KERNEL) $(TARGET_DIR)/boot/$(BR2_PACKAGE_LINUX_FORMAT)
Quoted 6 lines
where
BR2_PACKAGE_LINUX_FORMATcould be
uImage, bzImage, vmlinux etc.Best Regards
Ulf Samuelsson
Yes, that was the previous behavior, although perhaps not exactly the same code, I haven't checked the svn logs to see how it was before. Anyway, since I'm not sure why it changed in the first place, I suggested the symlinking as an option.
Regards,
Thiago A. Correa