<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<div dir="auto"><span dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">Hi Greg,</span></div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
Sorry for the late reply, and the rude action before. I' m not quite familiar with the email rules, I will pay attention to it.</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
What I'm trying to do is to become a kernel developer, especially a driver developer. Maybe this is a more general object and lacks of clear steps. So I want to learn about the work flow ofkernel development to decompose the object.</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
And, I think, maybe the first step is to catch up with a branch of kernel source, for which I setup a raspi to track the kernel source daily with the help of crontab, and compile the kernel when there is a new commit and send an email to get a notification.
 Next, I should develop on the specific branch, and learn how to submit a patch to kernel.</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
But now, I'm confused that there so many branches in linux kernel source and other linux distribution source such as raspberrypi/linux.git, and I only know about how to submit a patch to kernel from kernel documents or kernelnewbies or other websites. Can I
 just work on a specific platform and submit a patch to kernel?</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
I currently work on i.mx6 platform and have a raspi4b for learning. Based on the linux SDK from board supplier, l developed some camera drivers. The SDK contains a dirty 4.1.15 kernel source, a uboot, anda prebuild rootfs archive. and the SDK is not controlled
 by a git, it's just an archive.</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
Supposed now, I know how to submit a patch to which branch, is therep any tests need to be run before I submit? or is there a requirement for writing a test program to test my driver first?</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
Could you give me some advices on what should I do next, or is l going toward a wrong direction?</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
Thanks in advance,</div>
<div dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">
<br>
</div>
<span dir="auto" style="font-family:-apple-system, HelveticaNeue;background-color:white">chen.</span>
<div dir="auto" id="mail-editor-reference-message-container"><br>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" style="font-size: 11pt;"><strong>发件人:</strong> Greg KH <greg@kroah.com><br>
<strong>发送时间:</strong> 2022年5月18日星期三 23:17<br>
<strong>收件人:</strong> chen.mingzheng <chen.mingzheng@outlook.com><br>
<strong>抄送:</strong> kernelnewbies@kernelnewbies.org <kernelnewbies@kernelnewbies.org><br>
<strong>主题:</strong> Re: How to track the source tree of kernel<br>
</div>
<br>
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from text --><font size="2"><span style="font-size:11pt;">
<div class="PlainText">On Wed, May 18, 2022 at 10:47:59PM +0800, chen.mingzheng wrote:<br>
> Hi Guys,<br>
> <br>
> Sorry to bother you all. I'm just starting learning linux with a rpi4b. I<br>
> found the raspi source tree have many branches, which are different from the<br>
> kernel source tree, which also have many branches. I want to know how should<br>
> I track the source code. should I track all branches from the remote repo,<br>
> or just stick to a specific branch? How did you do so that you can catch up<br>
> to lastest kernel?<br>
<br>
It all depends on what you want to do as to what tree/branch to work off<br>
of and to track.<br>
<br>
So, what exactly do you want to do?<br>
<br>
thanks,<br>
<br>
greg k-h<br>
</div>
</span></font><br>
</div>
</body>
</html>