linux/init/main.c 注释

本文深入探讨了Linux内核的初始化过程,包括关键系统调用的实现方式、内存区域的设置以及中断处理等内容。文中详细介绍了如何通过系统调用创建进程、设置环境变量,并初始化必要的硬件资源。

(base) PS H:\bf\0917\betaflight-4.5.2> make TARGET=STM32F405 找不到文件 - *.c warning: CRLF will be replaced by LF in src/main/cli/settings.c. The file will have its original line endings in your working directory. 找不到文件 - *_init.c /usr/bin/make -j ./obj/betaflight_4.5.2_STM32F405.hex make[1]: 进入目录“/h/bf/0917/betaflight-4.5.2” 找不到文件 - *.c warning: CRLF will be replaced by LF in src/main/cli/settings.c. The file will have its original line endings in your working directory. 找不到文件 - *_init.c %% (optimised) ./src/main/pg/gps.c %% (optimised) ./src/main/pg/rx_pwm.c In file included from ./src/main/common/time.h:28, from ./src/main/io/gps.h:27, from ./src/main/pg/gps.c:25: ./src/main/io/gps.h:406:25: error: redefinition of 'gpsConfig' 406 | PG_DECLARE(gpsConfig_t, gpsConfig); | ^~~~~~~~~ ./src/main/pg/pg.h:103:32: note: in definition of macro 'PG_DECLARE' 103 | static inline const _type* _name(void) { return &_name ## _System; }\ | ^~~~~ ./src/main/pg/gps.h:46:25: note: previous definition of 'gpsConfig' was here 46 | PG_DECLARE(gpsConfig_t, gpsConfig); | ^~~~~~~~~ ./src/main/pg/pg.h:103:32: note: in definition of macro 'PG_DECLARE' 103 | static inline const _type* _name(void) { return &_name ## _System; }\ | ^~~~~ ./src/main/io/gps.h:406:25: error: redefinition of 'gpsConfigMutable' 406 | PG_DECLARE(gpsConfig_t, gpsConfig); | ^~~~~~~~~ ./src/main/pg/pg.h:104:26: note: in definition of macro 'PG_DECLARE' 104 | static inline _type* _name ## Mutable(void) { return &_name ## _System; }\ | ^~~~~ ./src/main/pg/gps.h:46:25: note: previous definition of 'gpsConfigMutable' was here 46 | PG_DECLARE(gpsConfig_t, gpsConfig); | ^~~~~~~~~ ./src/main/pg/pg.h:104:26: note: in definition of macro 'PG_DECLARE' 104 | static inline _type* _name ## Mutable(void) { return &_name ## _System; }\ | ^~~~~ %% (optimised) ./src/main/pg/rx_spi.c make[1]: *** [Makefile:439:obj/main/STM32F405/pg/gps.o] 错误 1 make[1]: *** 正在等待未完成的任务.... %% (optimised) ./src/main/pg/rx_spi_cc2500.c make[1]: 离开目录“/h/bf/0917/betaflight-4.5.2” make: *** [Makefile:556:hex] 错误 2 (base) PS H:\bf\0917\betaflight-4.5.2>
09-19
fishros@fishros-linux:~$ sudo apt update 错误:1 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease 403 Forbidden [IP: 101.6.15.130 80] 命中:3 https://mirrors.ustc.edu.cn/ubuntu jammy InRelease 命中:2 https://packages.microsoft.com/repos/code stable InRelease 命中:4 https://mirrors.ustc.edu.cn/ubuntu jammy-updates InRelease 命中:5 https://mirrors.ustc.edu.cn/ubuntu jammy-backports InRelease 命中:6 https://mirrors.ustc.edu.cn/ubuntu jammy-security InRelease 正在读取软件包列表... 完成 E: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/dists/jammy/InRelease 403 Forbidden [IP: 101.6.15.130 80] E: 仓库 “http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy InRelease” 的签名不再生效。 N: 无法安全地用该源进行更新,所以默认禁用该源。 N: 参见 apt-secure(8) 手册以了解仓库创建和用户配置方面的细节。 W: 目标 Packages (main/binary-amd64/Packages) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 Packages (main/binary-all/Packages) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-zh_CN) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-zh) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 Translations (main/i18n/Translation-en) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 DEP-11 (main/dep11/Components-amd64.yml) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 DEP-11 (main/dep11/Components-all.yml) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 DEP-11-icons-small (main/dep11/icons-48x48.tar) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 DEP-11-icons (main/dep11/icons-64x64.tar) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 DEP-11-icons-hidpi (main/dep11/icons-64x64@2.tar) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 CNF (main/cnf/Commands-amd64) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次 W: 目标 CNF (main/cnf/Commands-all) 在 /etc/apt/sources.list.d/ros-fish.list:1 和 /etc/apt/sources.list.d/ros2.list:1 中被配置了多次
最新发布
09-19
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值