sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
730 stars 1.4k forks source link

Need to move linux kernel repo pointer in branch 201904 #3331

Open caizhenghui-juniper opened 5 years ago

caizhenghui-juniper commented 5 years ago

Description src/sonic-linux-kernel is pointing to old commit, need to move to latest one since the kernel version in the repo is not available from Debian download site.

Steps to reproduce the issue:

  1. trying to build any platform package with kernel procurement mode = build.

Describe the results you received: --2019-08-12 15:23:44-- http://security-cdn.debian.org/debian-security/pool/updates/main/l/linux/linux_4.9.168-1+deb9u3.dsc http://security-cdn.debian.org/debian-security/pool/updates/main/l/linux/linux_4.9.168-1+deb9u3.dsc

Resolving security-cdn.debian.org (security-cdn.debian.org)... 199.232.36.204, 2a04:4e42:46::204

Connecting to security-cdn.debian.org (security-cdn.debian.org)|199.232.36.204|:80... connected.

HTTP request sent, awaiting response... 404 Not Found

2019-08-12 15:23:46 ERROR 404: Not Found.

Makefile:59: recipe for target '/sonic/target/debs/stretch/linux-headers-4.9.0-9-2-common_4.9.168-1+deb9u3_all.deb' failed

make[1]: *** [/sonic/target/debs/stretch/linux-headers-4.9.0-9-2-common_4.9.168-1+deb9u3_all.deb] Error 8

make[1]: Leaving directory '/sonic/src/sonic-linux-kernel'

Describe the results you expected: should get the package from sonic storage site.

Additional information you deem important (e.g. issue happens only occasionally):

**Output of `show version`:**

```
(paste your output here)
```

**Attach debug file `sudo generate_dump`:**

```
(paste your output here)
```
MichelMoriniaux commented 5 years ago

@yxieca can you do the same you did for master and 201811 for branch 201904 ?

yxieca commented 5 years ago

@stcheng is the 201904 branch master :-)

MichelMoriniaux commented 5 years ago

sorry for that @yxieca :-) @stcheng can we cherry-pick or advance to commit 1d9c691 the sonic-linux-kernel submodule?

Rancho333 commented 5 years ago

I modify file rules/linux-kernel.mk like that:

KERNEL_SUBVERSION = 1+deb9u5

And it works!

Rancho333 commented 5 years ago

But I got a error after modify.

error: patch failed: debian/changelog:1
error: debian/changelog: patch does not apply
stg import: Diff does not apply cleanly
Rancho333 commented 5 years ago

Ha, I delete the changelog.path from file src/sonic-linux-kernel/patch/preconfig/series. Kernel compile successfully!