Skip to content

Commit

Permalink
Support Dongshan-NezhaSTU boards(riscv 64d for aw-ol d1/d1s)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebug8 committed Jan 16, 2022
0 parents commit 9298987
Show file tree
Hide file tree
Showing 49 changed files with 15,122 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/br-external-riscv-aw-ol.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Auto Build AW-OL D1/D1S Buildroot system.

on:
push:
tags:
- '*'

jobs:
build-all:
runs-on: ubuntu-20.04
strategy:
matrix:
config: [nezha-d1_defconfig ]
steps:
- uses: actions/checkout@v2
with:
path: buildroot-external-DongshanNezhaSTU

- uses: actions/checkout@v2
with:
repository: 100askTeam/buildroot_aw-ol
ref: master
path: buildroot

- name: Install buildroot dependencies
run: sudo apt install debianutils sed make binutils build-essential gcc g++ bash patch gzip bzip2 perl tar cpio unzip rsync file bc git mtools android-tools-mkbootimg

- name: Configure Buildroot
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-DongshanNezhaSTU O=../output ${{ matrix.config }}

- name: Build Buildroot
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-DongshanNezhaSTU O=../output

- name: Build toolchain
run: make -C buildroot BR2_EXTERNAL=../buildroot-external-DongshanNezhaSTU O=../output sdk

- name: Compress sdcard.img
run: gzip -9 output/images/sdcard.img

- run: tar -czvf ${{ matrix.config }}.tar.gz output/images/*

- name: Store images
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.config }}
path: ${{ matrix.config }}.tar.gz

- run: ls -la

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
${{ matrix.config }}.tar.gz
- run: ls -la

2 changes: 2 additions & 0 deletions Config.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source "$BR2_EXTERNAL_D1_PATH/package/lvgl-desktop/Config.in"
source "$BR2_EXTERNAL_D1_PATH/package/myir-hmi-gui/Config.in"
Binary file not shown.
9 changes: 9 additions & 0 deletions board/aw-ol/d1/Allwinner-tools/boot_package.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[package]
;item=Item_TOC_name, Item_filename,
;item=scp, scp.fex
item=opensbi, fw_jump.bin
item=u-boot, u-boot-sun20iw1p1.bin
item=dtb, board.dtb
;item=logo, bootlogo.bmp.lzma
;item=shutdowncharge, bempty.bmp.lzma
;item=androidcharge, battery_charge.bmp.lzma
Binary file added board/aw-ol/d1/Allwinner-tools/dragonsecboot
Binary file not shown.
15 changes: 15 additions & 0 deletions board/aw-ol/d1/Allwinner-tools/env.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#kernel command arguments
console=ttyS0,115200
root_partition=rootfs
boot_partition=boot
keybox_list=widevine,ec_key,ec_cert1,ec_cert2,ec_cert3,rsa_key,rsa_cert1,rsa_cert2,rsa_cert3
#set kernel cmdline if boot.img or recovery.img has no cmdline we will use this
bootargs=earlyprintk=sunxi-uart,0x02500000 clk_ignore_unused initcall_debug=0 console=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p4 init=/sbin/init partitions=ext4 cma=8M gpt=1
#uboot system env config
bootdelay=1
kernel=boot.img
mmc_boot_part=3
mmc_dev=0
boot_check=sunxi_card0_probe;mmcinfo;mmc part
boot_mmc=fatload mmc ${mmc_dev}:${mmc_boot_part} 45000000 ${kernel}; bootm 45000000
bootcmd=run boot_check boot_mmc
Binary file added board/aw-ol/d1/Allwinner-tools/env.fex
Binary file not shown.
1 change: 1 addition & 0 deletions board/aw-ol/d1/Allwinner-tools/ramdisk.img
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ramdisk.img
Loading

0 comments on commit 9298987

Please sign in to comment.