• Recent
  • Wiki
  • Github
  • 百度网盘
  • Onedrive
  • Official
  • Shop
  • Register
  • Login
  • Register
  • Login
  • Search
  • Recent
  • Wiki
  • Github
  • 百度网盘
  • Onedrive
  • Official
  • Shop

Ubuntu 22.04 桌面版本 内核编译

Ubuntu
2
3
495
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • 大法师
    大法师 last edited by 大法师 Sep 29, 2022, 6:24 AM Sep 27, 2022, 3:58 AM

    环境补充安装:

    sudo ln -sf /usr/bin/python2 /usr/bin/python
    sudo apt install flex bison
    

    可选执行

    sudo dpkg-reconfigure dash
    

    (注意弹框选择No)

    测试代码下载与编译

    ubuntu@coolpi:~$ mkdir test
    ubuntu@coolpi:~$ cd test/
    ubuntu@coolpi:~/test$ git clone https://gitee.com/yanyitech/coolpi-kernel.git
    正克隆到 'coolpi-kernel'...
    remote: Enumerating objects: 88605, done.
    remote: Counting objects: 100% (88605/88605), done.
    remote: Compressing objects: 100% (75148/75148), done.
    

    ...

    查看远程仓库

    ubuntu@coolpi:~/test/$ git remote -v
    origin	https://gitee.com/yanyitech/coolpi-kernel.git (fetch)
    origin	https://gitee.com/yanyitech/coolpi-kernel.git (push)
    

    编译

    ubuntu@coolpi:~/test/$ ./build-kernel.sh
    

    截图 2022-09-27 04-08-47.png

    修改内核配置

    ubuntu@coolpi:~/test/$ make ARCH=arm64 menuconfig
    

    截图 2022-09-27 04-16-38.png

    jack@cool-pi.com

    H 1 Reply Last reply Nov 25, 2022, 7:48 AM Reply Quote 1
    • topic:timeago_later,2 months
    • H
      haiting2022 @大法师 last edited by Nov 25, 2022, 7:48 AM

      @大法师 make ARCH=arm64 savedefconfig 保存修改后的配置 然后cp defconfig 到arch/arm64/config

      1 Reply Last reply Reply Quote 0
      • 大法师
        大法师 last edited by Nov 25, 2022, 9:12 AM

        cp defconfig arch/arm64/configs/rk3588s_cp4b_defconfig

        jack@cool-pi.com

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        1 out of 3
        • First post
          1/3
          Last post