Skip to content

Commit 88e1474

Browse files
authored
Merge pull request #24 from xqyjlj/update
更新工具链等软件包,更新prebuilt内核二进制(EXT4系统)
2 parents 9df857e + a5cdfb2 commit 88e1474

47 files changed

Lines changed: 648 additions & 250 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ build/
22
.xmake/
33
rootfs/
44
.vscode/
5+
private/

apps/cpp/main.cpp

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* Copyright (c) 2006-2018, RT-Thread Development Team
3+
*
4+
* SPDX-License-Identifier: GPL-2.0
5+
*
6+
* Change Logs:
7+
* Date Author Notes
8+
* 2020-10-20 Bernard The first version
9+
*/
10+
11+
#include <iostream>
12+
using namespace std;
13+
14+
int main()
15+
{
16+
cout << "Hello, World!" << endl;
17+
return 0;
18+
}

apps/cpp/xmake.lua

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
-- Licensed under the Apache License, Version 2.0 (the "License");
2+
-- You may not use this file except in compliance with the License.
3+
-- You may obtain a copy of the License at
4+
--
5+
-- http://www.apache.org/licenses/LICENSE-2.0
6+
--
7+
-- Unless required by applicable law or agreed to in writing, software
8+
-- distributed under the License is distributed on an "AS IS" BASIS,
9+
-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10+
-- See the License for the specific language governing permissions and
11+
-- limitations under the License.
12+
--
13+
-- Copyright (C) 2022-2023 RT-Thread Development Team
14+
--
15+
-- @author zhouquan
16+
-- @file xmake.lua
17+
--
18+
-- Change Logs:
19+
-- Date Author Notes
20+
-- ------------ ---------- -----------------------------------------------
21+
-- 2023-03-10 zhouquan initial version
22+
--
23+
add_rules("mode.debug", "mode.release")
24+
25+
target("cpp")
26+
do
27+
add_rules("rt.cpp")
28+
add_files("*.cpp")
29+
end
30+
target_end()

prebuilt/qemu-vexpress-a9/qemu-nographic.bat

Lines changed: 0 additions & 6 deletions
This file was deleted.
-897 KB
Binary file not shown.

prebuilt/qemu-virt64-aarch64-ext4/README.md

Lines changed: 0 additions & 149 deletions
This file was deleted.

prebuilt/qemu-virt64-aarch64-ext4/qemu.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.
-890 KB
Binary file not shown.
916 KB
Binary file not shown.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
3+
# @author zhouquan
4+
# @file run.sh
5+
#
6+
# Change Logs:
7+
# Date Author Notes
8+
# ------------ ---------- -----------------------------------------------
9+
# 2023-01-12 zhouquan initial version
10+
#
11+
12+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
13+
14+
qemu-system-aarch64 \
15+
-M virt,gic-version=2 \
16+
-cpu cortex-a53 \
17+
-m 128M \
18+
-kernel ${script_dir}/rtthread.bin \
19+
-nographic \
20+
-drive if=none,file=${script_dir}/ext4.img,format=raw,id=blk0 \
21+
-device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \
22+
-netdev user,id=net0,hostfwd=tcp::8080-:80 \
23+
-device virtio-net-device,netdev=net0,bus=virtio-mmio-bus.1 \
24+
-device virtio-serial-device \
25+
-chardev socket,host=127.0.0.1,port=43211,server=on,wait=off,telnet=on,id=console0 \
26+
-device virtserialport,chardev=console0

0 commit comments

Comments
 (0)