chenjing
80473f0975
fix: bootargs解析与rootfs挂载解耦,并支持自定义bootargs参数
...
1、bootargs解析与rootfs挂载进行解耦;
2、支持开发者自定义bootargs参数,内核存储bootargs中所有参数;
3、开发者可获取bootargs中的参数内容,并自行解析。
close #I41CL8
Change-Id: If384476714854ba0cf64eb70b785eb26737dd3d2
Signed-off-by: chenjing <chenjing139@huawei.com>
2021-07-20 11:48:31 +08:00
qidechun
cb17fa50ed
feat: 给开发者提供系统信息导出Hidumper工具。
...
给开发者提供系统信息DUMP机制,帮助开发者观察系统功能状态,发现潜在问题。
Close #I3NN7D
Signed-off-by: qidechun <qidechun@huawei.com>
2021-07-14 14:49:58 +08:00
Guangyao Ma
09c491ca1f
fix: 修改默认窗口宽度到400
...
由于内核暂不支持tty,窗口默认宽度写死的为80。在流水线中,往往有时候需要更宽的
窗口宽度。在tty支持动态获取和设置大小之前,先调整大小为400。
re #I40LQX
Signed-off-by: Guangyao Ma <guangyao.ma@outlook.com>
Change-Id: Ic21a8b7098f47b7d608762678eebb7b8ecb67ce4
2021-07-14 14:41:40 +08:00
qidechun
a195aac9fb
feat: add blackbox for liteos_a
...
1、在内核增加BlackBox核心框架,对外提供模块回调接口注册和故障处理接口。
2、增加默认的系统模块适配层,处理通用内核态和用户态故障日志抓取和保存。
3、BBOX特性默认关闭,若想使用此特性,请在内核配置文件中增加如下编译选项:
LOSCFG_BLACKBOX=y
LOSCFG_SAVE_EXCINFO=y
LOSCFG_SAVE_EXCINFO可以帮助抓取更多的故障日志。
4、若已经打开BBOX特性,想快速验证此特性,请添加如下编译选项:
LOSCFG_HIDUMPER=y
Close #I406NP
Signed-off-by: qidechun <qidechun@huawei.com>
2021-07-14 09:37:35 +08:00
openharmony_ci
d7387508e3
!402 消除编译告警
...
Merge pull request !402 from x_xiny/master
2021-07-09 08:37:20 +00:00
x_xiny
e4ff04586f
fix:消除编译告警
...
【背景】
消除编译告警
【修改方案】
消除编译告警
re #I3ZC1R
Change-Id: I594d0f57e4cbbdb246a6bef1c978a38228123a34
Signed-off-by: x-xiny <1301913191@qq.com>
Change-Id: I1d75cdcdcf9d06ec28e541cdfea77300da7c6bb1
2021-07-08 20:30:33 +08:00
Denny
55e5e29005
回退 'Pull Request !401 : 【DFX子系统】【BBoxDetector】LiteOS_A死机重启维测框架'
2021-07-07 10:29:43 +08:00
qidechun
425975e481
feat: add blackbox for liteos_a
...
1、在内核增加BlackBox核心框架,对外提供模块回调接口注册和故障处理接口。
2、增加默认的系统模块适配层,处理通用内核态和用户态故障日志抓取和保存。
Close #I3NN7V
Signed-off-by: qidechun <qidechun@huawei.com>
2021-07-06 07:49:59 +08:00
openharmony_ci
003810284c
!384 对内核中menuconfig开关的宏使用#ifdef/#ifndef来做预编译判断
...
Merge pull request !384 from boxi/upload
2021-07-01 07:11:13 +00:00
boxi
4e4f2d6d7e
refactor: 对LiteOS_a内核中menuconfig开关的宏使用#ifdef/#ifndef做预编译处理
...
LiteOS_a中有部分配置宏进行了重复冗余定义,导致当头文件未被包含时,极易引入错误,
故对menuconfig配置宏进行统一处理,均使用#ifdef/#ifndef作为预编译判断方式
Close #I3YEGS
Change-Id: Ife6db770cc66de1d6199a4f3ba3950e9bfd0e71a
Signed-off-by: boxi <lewis.liulei@huawei.com>
2021-07-01 09:08:18 +08:00
Guangyao Ma
1d952a254a
fix: 设置qemu默认userfs大小/修改qemu驱动目录
...
驱动目录位置不合理,需要调整到/device/qemu/drivers下面
close #I3XW96 #I3XWXD
Change-Id: Ied6b90d2d0631c99f2209f5b72bbd12cdff6b1d5
Signed-off-by: Guangyao Ma <guangyao.ma@outlook.com>
2021-06-26 15:38:19 +08:00
chenjing
2e2b14205f
fix: userfs分区的起始地址与大小改为通过bootargs配置
...
在内核解析bootargs参数时,加入对userAddr与userSize两个字段的解析。
1、如果bootargs中配置了userAddr与userSize,则使用配置值划分storage分区。
2、如果bootargs中未配置这两个字段,则storage分区默认紧接在rootfs分区后。
close #I3XNEY
Signed-off-by: chenjing <chenjing139@huawei.com>
Change-Id: Iba63ccd7fc3f7efc1d726c4b38beee5df1d64122
2021-06-24 15:03:53 +08:00
mucor
73a777777e
fix: remove redundant headfile
...
1.remove redundant headfile in kernel, such as:
compiler.h;debug.h;automount.h;inode.h;syslog.h;net.h;
2.split fs.h to file.h and driver.h
3.move vnode.h and path_cache.h to vfs/include
4.remove redundant interface and defines
close: #I3RTNR
Signed-off-by: mucor <mucorwang@gmail.com>
2021-06-19 17:32:47 +08:00
openharmony_ci
4e269d7071
!304 mmc驱动代码上库
...
Merge pull request !304 from liangxuewu/MMC_DRIVER_PRJECT
2021-06-09 20:46:02 +08:00
YOUR_NAME
44ce696904
fix: 内核态在console初始化完成后,使用printf无法正常打印
...
printf实现流程上会调用cmd为TIOCGWINSZ的ioctl命令,该命令的实现
在console层ConsoleGetWinSize函数中,而此函数copy结果时使用函数
LOS_ArchCopyToUser,由于该过程在内核态,导致LOS_ArchCopyToUser失败,
从而引发printf无法正常打印的问题。
close: #I3UG00
Signed-off-by: zhangfanfan <zhangfanfan2@huawei.com>
Change-Id: I3e85f682429cbe30842206842ddb2a8388ec8412
2021-06-08 20:01:39 +08:00
lzl
6352d6e1da
kernel adapter
...
Signed-off-by: lzl <sucer_fater@163.com>
2021-06-08 09:07:04 +00:00
openharmony_ci
1a3f3f54e7
!302 fix: Codex告警清零
...
Merge pull request !302 from Far/master
2021-06-08 08:48:48 +08:00
Far
b5370af822
fix: codex clean
...
1. 修复可能对NULL指针解引用的场景
2. 将不修改内容的指针入参修改为const
3. 对getpgrp的返回值进行校验后再使用
4. 修复了局部变量未初始化的问题
Close #I3UOFN
Signed-off-by: Far <yesiyuan2@huawei.com>
2021-06-07 17:08:02 +08:00
Caoruihong
744b2021b2
chore: add a mini config for qemu arm virt
...
support turn off as many features as possible.
current only libc and posix and bsd can not be turned off.
Signed-off-by: Caoruihong <crh.cao@huawei.com>
Change-Id: I1e97570c67593207a56dc11f357eca4b4a018bfd
2021-06-05 17:40:22 +08:00
openharmony_ci
e59693e7fa
!278 修复开机概率挂死
...
Merge pull request !278 from Zhaotianyu/0603initframework_fix
2021-06-03 14:50:39 +08:00
openharmony_ci
db38464778
!282 fix: 修复MagicKey数组越界访问
...
Merge pull request !282 from MGY917/master
2021-06-03 11:52:17 +08:00
Guangyao Ma
071cd6268a
fix: 修复MagicKey数组越界访问
...
closes #I3U4N9
Signed-off-by: Guangyao Ma <guangyao.ma@outlook.com>
Change-Id: Ic4c4c7442cd381d03d2e40a51655a17299c4c250
2021-06-03 11:11:21 +08:00
arvinzzz
2e82c361f7
fix: 修复开机概率挂死
...
close:#I3SWY2
Change-Id: Ied2a5828ffb682903e291dab4088020033d79230
Signed-off-by: arvinzzz <fcykztyu@163.com>
2021-06-03 09:43:27 +08:00
openharmony_ci
25f1051d7a
!269 修复启动框架debug模式编译问题
...
Merge pull request !269 from Zhaotianyu/0526initframework_fix
2021-06-02 16:50:35 +08:00
arvinzzz
4c024159a9
fix: 修复启动框架debug模式下-Werror=maybe-uninitialized告警以及符号链接不进镜像的隐患
...
close: #I3T5HR
Change-Id: I2e2452d59c82726614fb78d1177d3f0f03d6e315
Signed-off-by: arvinzzz <fcykztyu@163.com>
Change-Id: I7f0b44c15a296bd8d15f0bf1fbdde60f67bb0a6c
2021-06-02 09:31:51 +08:00
zhangfanfan2
0ea476b974
fix: 关闭jffs和fat后,rootfs配置也被相应关闭,导致nand介质的rootfs不可用。
...
close: #I3SBYN
2021-05-21 17:41:30 +08:00
arvinzzz
d2f2679071
fix: Delete useless 'exc interaction' macros and function declarations.
...
close: #I3SDKY
Change-Id: I5ed9356ce2b55b6e07c3f192cdbc4a4f6fbfaa58
2021-05-21 15:10:05 +08:00
arvinzzz
8cde768588
refactor: Refactored the kernel boot process and added a init framework
...
close: #I3I768
Change-Id: I4f801df4abe1a9afdf43391c28276e96a5e81513
2021-05-20 16:45:43 +08:00
lnlan
b27264b9f3
add testsuites/kernel to build
...
Change-Id: Ia14a3413b6c974771cef2e147083c7748abd1c59
2021-05-11 11:42:41 +08:00
openharmony_ci
6012acb509
!218 fix: console compile bug fix
...
Merge pull request !218 from MGY917/master
2021-05-07 12:52:39 +08:00
Guangyao Ma
f8441a0cde
fix: console compile bug fix
...
Change-Id: I4c895bf7278b50d7ddf65e9556d77221b0c7ca32
2021-05-07 11:38:07 +08:00
openharmony_ci
f375e50f2d
!133 feat: introduce mksh toybox to rootfs
...
Merge pull request !133 from MGY917/master
2021-05-07 10:31:08 +08:00
openharmony_ci
27ab6247a6
!216 fix telnet
...
Merge pull request !216 from 野生毛霉君/master
2021-05-06 20:46:12 +08:00
openharmony_ci
be4d8e74cc
!201 系统异常信息保存到存储介质中的功能从shell依赖中剥离
...
Merge pull request !201 from zhangfanfan2/master
2021-05-06 20:44:32 +08:00
mucor
e03370f6ef
fix:telnet not work
...
add open in console dev init process
Change-Id: Ibf9801462d6de231001f094d4e75f01cad50da1f
2021-05-06 19:54:42 +08:00
Guangyao Ma
41c7689dfa
feat: introduce mksh toybox to rootfs
...
Change-Id: I0a6e6f2962ca6904c858898eb93a5b2f93e85b69
2021-05-06 19:20:35 +08:00
YOUR_NAME
d846035f3e
feature:the feature of saving system exception information to the
...
storage medium is separated from the shell module.
Change-Id: Id56939001d70bb92d9cc02bd7c9f55ca8b61cf5b
2021-05-06 15:18:15 +08:00
JING
4b0e47fd03
修复/userdata分区擦除后无法挂载的问题
...
issue#I3O8IF的修改中,将fat无法识别的格式错误码由ENOENT改为ENOTSUP。此处修改有遗漏,造成无fat格式的userdata分区无法挂载。
2021-04-29 20:09:06 +08:00
boxi
46b63f7153
feat: Add /dev/quickstart to support synchronous communication between processes in user mode startup.
...
Add /dev/quickstart to support synchronous communication between processes in user mode startup.
Support ioctl cmd:
QUICKSTART_LISTEN,QUICKSTART_STAGE1,QUICKSTART_STAGE2,QUICKSTART_STAGE3,QUICKSTART_UNREGISTER only for init process;
QUICKSTART_NOTIFY for other app process.
Close #I3OHO5
Change-Id: If6a56123be93a5bc6b6d1069abda8d872b15fae1
2021-04-28 19:42:06 +08:00
boxi
e28e06b08f
fix: Provide a separate configuration macro for boot environment in RAM.
2021-04-26 20:15:46 +08:00
boxi
bc67393a67
fix: Provide a separate configuration macro for boot environment in RAM.
2021-04-26 19:55:31 +08:00
boxi
f13b90e430
fix: Provide a separate configuration macro for boot environment in RAM.
...
Provide a separate configuration macro for boot environment in RAM.
Depends on: Need to copy boot environment data to the specified ram by boot.
Closes #I3OADR
Change-Id: Ie36a92c0a44f245482d1602c3a6851395944776d
2021-04-26 19:39:52 +08:00
openharmony_ci
e93ff481bb
!172 【轻量级 PR】:expand HILOG_BUFFER to reduce the probability of hilog loss
...
Merge pull request !172 from shenchenkai/N/A
2021-04-22 20:17:23 +08:00
shenchenkai
84f1519486
expand HILOG_BUFFER to reduce the probability of hilog loss
2021-04-21 16:54:40 +08:00
JING
da6ca200fb
update kernel/common/los_rootfs.c.
2021-04-21 15:57:15 +08:00
JING
55f84a2ead
/userdata目录若已存在,仍然挂载
2021-04-21 14:58:39 +08:00
Caoruihong
7e73c929a2
remove __cplusplus guards in .c files
...
Change-Id: I052d930d54e63179b17b77f02c107a015f3cfc3f
2021-04-19 18:28:25 +08:00
openharmony_ci
7332c00077
!139 FATFS及mmcblk 性能优化
...
Merge pull request !139 from ysy4tc3/dev
2021-04-15 19:19:51 +08:00
Far
beca52b61b
Feature: Fatfs scandir format and mmcblk read/write optimization
...
1. Bcache block with high mem address is after lower mem address in RCU list when initing bcache.
2. Format will clear the bcache before writing the FAT.
3. The fatfs_readdir use the bcache writing block to reduce the chance of data switching out
4. Add performance analysing macron switch
Change-Id: I8fbc48418509d2e660d725d2c265266e931c26f8
2021-04-15 14:49:43 +08:00
Caoruihong
d2197c801f
use -include option instead of including menuconfig manually
...
Change-Id: Ie48b96fe9c8ab036d7234b56a169d6668171a895
2021-04-14 17:56:48 +08:00
arvinzzz
13451e9d10
IssueNo:#I3HGTM
...
Description:Fix limits.h & Adjust some macro definition positions.
Feature or Bugfix:Bugfix
Binary Source:NA
Change-Id: Ia53c1b4b83f60862ac24c5c14a87883fe0af6db0
2021-04-09 10:44:13 +08:00
arvinzzz
9fc6241057
Description: Fix the problem that the actual implementation of the function does not match the description.
...
Change-Id: Icdbc0182efc023734ccbe7e80b1926d64a18d01c
2021-04-06 22:35:13 +08:00
openharmony_ci
be5e5fdf42
!112 修复代码段及只读段在uncache映射区域可以篡改的漏洞
...
Merge pull request !112 from JerryH/mmu
2021-04-01 09:51:59 +08:00
YOUR_NAME
c959d43684
IssueNo:#I3E0F2
...
Description:Delete VM to support only kernel mode.
Sig:liteos_a
Feature or Bugfix:Feature
Binary Source:No
Change-Id: Ie1029c8fbc0c1b85c138663933118d2d148b7769
2021-03-31 16:14:54 +08:00
laokz
349c1e46de
QEMU arm platform: get 'bootargs' from flash; fix code style
...
Change-Id: I94175fa89a61f4f08d9f921203bedfc2dd9e53e4
2021-03-30 23:07:22 +08:00
openharmony_ci
7387d410bf
!100 解决kernel/liteos_a仓下关闭fat,编译不过的问题
...
Merge pull request !100 from li_zan/master
2021-03-29 12:06:31 +08:00
li_zan
2e47684d15
change config for fs2
2021-03-29 10:19:58 +08:00
openharmony_ci
23c2c270b8
!98 内核支持syscall关闭
...
Merge pull request !98 from zhangfanfan2/master
2021-03-27 09:58:48 +08:00
YOUR_NAME
b1be50cdb9
[Desc] Support to close syscall.
...
Change-Id: I6f7c469e96da9cc89c5c33bf7a9afe19625e175f
2021-03-26 20:12:50 +08:00
li_zan
b75c5f3cca
change config for fs
2021-03-26 19:36:58 +08:00
li_zan
195172e655
change config for fs
2021-03-26 17:00:15 +08:00
wangchenyang
d970750808
Description:vfs refactoring
...
Feature or Bugfix:Feature
Binary Source:Huawei
PrivateCode(Yes/No):Yes
Change-Id: I175d2648bc6f9078c34de2c0a5c93fda10b86c47
ChangeID:13306388
2021-03-19 13:22:46 +08:00
mamingshuai
73a7b66116
update openharmony 1.0.1
2021-03-11 18:43:57 +08:00
laokz
9404c9971d
add QEMU arm 'virt' CFI flash support, enable rootfs and user-space app
2021-02-05 23:10:05 +08:00
Zbigniew Bodek
fab70c738d
Remove redundant extern SystemInit
...
Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I3c93fd703eb184d946f25a7f6be3c70124b469c1
2020-12-31 19:28:58 +08:00
openharmony_ci
58da2cb0c2
!33 OpenHarmony LiteOS-A QEMU support
...
Merge pull request !33 from WojciechZmuda/qemu-arm-dev
2020-12-31 18:21:58 +08:00
likailong
3dd32b9901
Description: add protect flag to resource task
...
Reviewed-by: shenwei and zhangfanfan
2020-12-26 10:43:04 +08:00
zhangfanfan2
3b883d3828
解决系统异常时,由于console打印问题,导致系统异常信息不能输出的问题。
2020-12-25 10:10:40 +08:00
laokz
a706de2fad
fix hilog, vm_syscall etc. typos
2020-12-08 18:00:32 +08:00
Zbigniew Bodek
cef02d9340
Add stub for fetching bootargs for Qemu ARM virt
...
Currently unused but when rootfs is enabled
we should get this error and quickly narrow down
where to add proper bootargs handling.
Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: Ie8d96fc3b6ad7cc33abe67530ca8ff9526b46855
2020-11-17 23:07:01 +08:00
Zbigniew Bodek
e559c86d77
Workaround missing machine_resource_init in BSD initialization
...
BSD compatibility is not optional for the kernel to build, however
platform dependent portion of this configuration, machine_resource_init(),
which is called by nexus_init() is implemented only in the platform
specific library for HiSilicon chips (libhi35xx_bsp.a).
Workaround lack of this library, so that the kernel can be built
for other platforms as well, by excluding it from the compilation.
This change should be removed as soon as the appropriate function
is implemented for other platforms.
Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I66f15b167b9769f17820f5f0edb7ae8b0ebc9246
2020-11-17 23:07:01 +08:00
Zbigniew Bodek
850a566916
Workaround linking problem caused by missing SystemInit during build
...
During LiteOS consolidation, system_init.o object that contains
SystemInit() doesn't exist yet as it is being built later
and linked in ./vendor directory when OHOS_Image is created.
This is not the case when building for HiSilicon platforms as
SystemInit is provided for them in precompiled libraries.
Workaround this issue by creating "weak" function in LiteOS
that will be replaced by the "strong" symbol from ./vendor
in linking phase of the OHOS_Image.
Signed-off-by: Zbigniew Bodek <zbigniew.bodek@huawei.com>
Change-Id: I39f327a350722a3e41a370ee93ba3b734c5681b0
2020-11-17 23:07:01 +08:00
Caoruihong
63bd69267a
drop unnecessary executable file permission mode
...
Change-Id: Ia6c1f6302407a707b3ec9b805f4c92d8a7970b86
2020-10-13 16:37:25 +08:00
wenjun
6df931fc98
add OpenHarmony 1.0 baseline
2020-09-08 17:22:24 +08:00