board: rename all to uncap, add uboot d1 support
This commit is contained in:
parent
0aae1ac500
commit
e15217d83b
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@ -13,6 +13,6 @@ jobs:
|
||||
SSH_PRIVATE_KEY: ${{ secrets.GITEE_RSA_PRIVATE_KEY }}
|
||||
with:
|
||||
# 注意替换为你的 GitHub 源仓库地址
|
||||
source-repo: git@github.com:YuzukiHD/Buildroot-YuzukiSBC.git
|
||||
source-repo: git@github.com:yuzukihd/Buildroot-YuzukiSBC.git
|
||||
# 注意替换为你的 Gitee 目标仓库地址
|
||||
destination-repo: git@gitee.com:GloomyGhost/Buildroot-YuzukiSBC.git
|
||||
|
||||
16
README.md
16
README.md
@ -1,8 +1,8 @@
|
||||
# Buildroot Package for YuzukiHD Devices and More Devices
|
||||
# Buildroot Package for yuzukihd Devices and More Devices
|
||||
|
||||
[Documentation](https://yuzukihd.gloomyghost.com/Buildroot-YuzukiSBC/#/) —
|
||||
[Releases](https://github.com/YuzukiHD/Buildroot-YuzukiSBC/releases) —
|
||||
[License](https://github.com/YuzukiHD/Buildroot-YuzukiSBC/blob/master/LICENSE)
|
||||
[Releases](https://github.com/yuzukihd/Buildroot-YuzukiSBC/releases) —
|
||||
[License](https://github.com/yuzukihd/Buildroot-YuzukiSBC/blob/master/LICENSE)
|
||||
|
||||
Mirror: https://gitee.com/GloomyGhost/Buildroot-YuzukiSBC
|
||||
|
||||
@ -15,11 +15,11 @@ Mirror: https://gitee.com/GloomyGhost/Buildroot-YuzukiSBC
|
||||
|
||||
| Vender | Device | Chip | U-Boot | Linux | Defconfig |
|
||||
| -------- | ----------- | ------- | ------- | ------- | --------- |
|
||||
| YuzukiHD | YuzukiRuler | F1C200s | 2020.07 | 5.4.180 | YuzukiHD_YuzukiRuler_defconfig |
|
||||
| YuzukiHD | YuzukiCore F1 | F1C200s | 2020.07 | 5.4.180 | YuzukiHD_YuzukiCore_F1_defconfig |
|
||||
| Sipeed | lichee nano | F1C100s | 2020.07 | 5.4.180 | Sipeed_lichee_nano_defconfig |
|
||||
| Sipeed | lichee zero | V3s | 2020.07 | 5.4.180 | Sipeed_lichee_zero_defconfig |
|
||||
| AWOL | nezha | D1 | smaeul,u-boot | smaeul,linux | aw-ol_nezha_defconfig |
|
||||
| YuzukiHD | YuzukiRuler | F1C200s | 2020.07 | 5.4.180 | yuzukihd_yuzukiruler_defconfig |
|
||||
| YuzukiHD | YuzukiCore F1 | F1C200s | 2020.07 | 5.4.180 | yuzukihd_yuzukicore_f1_defconfig |
|
||||
| Sipeed | lichee nano | F1C100s | 2020.07 | 5.4.180 | sipeed_lichee_nano_defconfig |
|
||||
| Sipeed | lichee zero | V3s | 2020.07 | 5.4.180 | sipeed_lichee_zero_defconfig |
|
||||
| awol | nezha | D1 | tina,uboot 2018 | smaeul,linux | awol_nezha_defconfig |
|
||||
|
||||
## Documents
|
||||
|
||||
|
||||
@ -5,4 +5,4 @@ environment:
|
||||
install:
|
||||
- sh: sudo apt-get install rsync wget unzip build-essential git bc swig libncurses-dev libpython3-dev libssl-dev python3-distutils -y
|
||||
build_script:
|
||||
- sh: "cd buildroot\nmake YuzukiHD_YuzukiRuler_defconfig \nmake\nmake clean\nmake Sipeed_lichee_zero_defconfig\nmake"
|
||||
- sh: "cd buildroot\nmake yuzukihd_yuzukiruler_defconfig \nmake\nmake clean\nmake sipeed_lichee_zero_defconfig\nmake"
|
||||
@ -1,57 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start uMTPrd....
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting uMTPrd: "
|
||||
mount none /sys/kernel/config -t configfs
|
||||
mkdir /sys/kernel/config/usb_gadget/g1
|
||||
cd /sys/kernel/config/usb_gadget/g1
|
||||
mkdir configs/c.1
|
||||
mkdir functions/ffs.mtp
|
||||
mkdir strings/0x409
|
||||
mkdir configs/c.1/strings/0x409
|
||||
|
||||
echo 0x0100 > idProduct
|
||||
echo 0x1D6B > idVendor
|
||||
|
||||
echo "Sipeed" > strings/0x409/manufacturer
|
||||
echo "Lichee Nano" > strings/0x409/product
|
||||
|
||||
echo "Conf 1" > configs/c.1/strings/0x409/configuration
|
||||
echo 120 > configs/c.1/MaxPower
|
||||
ln -s functions/ffs.mtp configs/c.1
|
||||
mkdir /dev/ffs-mtp
|
||||
mount -t functionfs mtp /dev/ffs-mtp
|
||||
start-stop-daemon -S -q -m -b -p /var/run/umtprd.pid -x /usr/sbin/umtprd
|
||||
sleep 1
|
||||
ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/g1/UDC
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping uMTPrd: "
|
||||
echo > /sys/kernel/config/usb_gadget/g1/UDC
|
||||
start-stop-daemon -K -q -p /var/run/umtprd.pid -x /usr/sbin/umtprd
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@ -1,57 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Start uMTPrd....
|
||||
#
|
||||
|
||||
start() {
|
||||
printf "Starting uMTPrd: "
|
||||
mount none /sys/kernel/config -t configfs
|
||||
mkdir /sys/kernel/config/usb_gadget/g1
|
||||
cd /sys/kernel/config/usb_gadget/g1
|
||||
mkdir configs/c.1
|
||||
mkdir functions/ffs.mtp
|
||||
mkdir strings/0x409
|
||||
mkdir configs/c.1/strings/0x409
|
||||
|
||||
echo 0x0100 > idProduct
|
||||
echo 0x1D6B > idVendor
|
||||
|
||||
echo "YuzukiHD" > strings/0x409/manufacturer
|
||||
echo "YuzukiRuler" > strings/0x409/product
|
||||
|
||||
echo "Conf 1" > configs/c.1/strings/0x409/configuration
|
||||
echo 120 > configs/c.1/MaxPower
|
||||
ln -s functions/ffs.mtp configs/c.1
|
||||
mkdir /dev/ffs-mtp
|
||||
mount -t functionfs mtp /dev/ffs-mtp
|
||||
start-stop-daemon -S -q -m -b -p /var/run/umtprd.pid -x /usr/sbin/umtprd
|
||||
sleep 1
|
||||
ls /sys/class/udc/ > /sys/kernel/config/usb_gadget/g1/UDC
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
stop() {
|
||||
printf "Stopping uMTPrd: "
|
||||
echo > /sys/kernel/config/usb_gadget/g1/UDC
|
||||
start-stop-daemon -K -q -p /var/run/umtprd.pid -x /usr/sbin/umtprd
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
start
|
||||
;;
|
||||
stop)
|
||||
stop
|
||||
;;
|
||||
restart|reload)
|
||||
stop
|
||||
sleep 1
|
||||
start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
exit 1
|
||||
esac
|
||||
|
||||
exit $?
|
||||
@ -0,0 +1,179 @@
|
||||
/{
|
||||
clocks {
|
||||
compatible = "allwinner,clk-init";
|
||||
device_type = "clocks";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
reg = <0x0 0x03001000 0x0 0x1000>, /*cpux space*/
|
||||
<0x0 0x07010000 0x0 0x400>, /*cpus space*/
|
||||
<0x0 0x07000000 0x0 0x4>;
|
||||
|
||||
clk_hosc: hosc {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-clock";
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "hosc";
|
||||
};
|
||||
clk_pll_periph0: pll_periph0 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
assigned-clock-rates = <600000000>;
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_periph0";
|
||||
};
|
||||
clk_pll_periph1: pll_periph1 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
assigned-clock-rates = <600000000>;
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_periph1";
|
||||
};
|
||||
clk_pll_gpu: pll_gpu {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_gpu";
|
||||
};
|
||||
clk_pll_video0x4: pll_video0x4 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_video0x4";
|
||||
};
|
||||
clk_pll_video1x4: pll_video1x4 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_video1x4";
|
||||
};
|
||||
clk_pll_video2: pll_video2 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
assigned-clocks = <&clk_pll_video2>;
|
||||
assigned-clock-rates = <336000000>;
|
||||
clock-output-names = "pll_video2";
|
||||
};
|
||||
clk_pll_de: pll_de {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_de";
|
||||
};
|
||||
clk_pll_periph0x2: pll_periph0x2 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-factor-clock";
|
||||
clocks = <&clk_pll_periph0>;
|
||||
clock-mult = <2>;
|
||||
clock-div = <1>;
|
||||
clock-output-names = "pll_periph0x2";
|
||||
};
|
||||
clk_periph32k: periph32k {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-factor-clock";
|
||||
clocks = <&clk_pll_periph0>;
|
||||
clock-mult = <2>;
|
||||
clock-div = <36621>;
|
||||
clock-output-names = "periph32k";
|
||||
};
|
||||
clk_pll_video0: pll_video0 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-factor-clock";
|
||||
clocks = <&clk_pll_video0x4>;
|
||||
clock-mult = <1>;
|
||||
clock-div = <4>;
|
||||
clock-output-names = "pll_video0";
|
||||
};
|
||||
clk_de: de {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clocks = <&clk_de>;
|
||||
assigned-clock-parents = <&clk_pll_periph0x2>;
|
||||
assigned-clock-rates = <300000000>;
|
||||
clock-output-names = "de";
|
||||
};
|
||||
clk_ee: ee {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_pll_periph0x2>;
|
||||
assigned-clock-rates = <300000000>;
|
||||
assigned-clocks = <&clk_ee>;
|
||||
clock-output-names = "ee";
|
||||
};
|
||||
clk_panel: panel {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_pll_video2>;
|
||||
assigned-clock-rates = <30000000>;
|
||||
assigned-clocks = <&clk_panel>;
|
||||
clock-output-names = "panel";
|
||||
};
|
||||
clk_dpss_top: dpss_top {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "dpss_top";
|
||||
};
|
||||
clk_tcon_lcd: tcon_lcd {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "tcon_lcd";
|
||||
assigned-clocks = <&clk_tcon_lcd>;
|
||||
assigned-clock-parents = <&clk_pll_video0x4>;
|
||||
};
|
||||
clk_tcon_tv: tcon_tv {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "tcon_tv";
|
||||
assigned-clocks = <&clk_tcon_tv>;
|
||||
assigned-clock-parents = <&clk_pll_video1x4>;
|
||||
};
|
||||
clk_hdmi: hdmi {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_pll_video0>;
|
||||
assigned-clocks = <&clk_hdmi>;
|
||||
clock-output-names = "hdmi";
|
||||
};
|
||||
clk_hdmi_slow: hdmi_slow {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_hosc>;
|
||||
assigned-clocks = <&clk_hdmi_slow>;
|
||||
clock-output-names = "hdmi_slow";
|
||||
};
|
||||
clk_hdmi_cec: hdmi_cec {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_periph32k>;
|
||||
assigned-clocks = <&clk_hdmi_cec>;
|
||||
clock-output-names = "hdmi_cec";
|
||||
};
|
||||
|
||||
clk_lvds: lvds {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "lvds";
|
||||
};
|
||||
clk_lvds1: lvds1 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "lvds1";
|
||||
};
|
||||
|
||||
clk_mipi_host0: mipi_host0 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clocks = <&clk_mipi_host0>;
|
||||
assigned-clock-parents = <&clk_pll_periph0>;
|
||||
assigned-clock-rates = <150000000>;
|
||||
clock-output-names = "mipi_host0";
|
||||
};
|
||||
|
||||
clk_csi_top: csi_top {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "csi_top";
|
||||
};
|
||||
};
|
||||
};
|
||||
@ -0,0 +1,179 @@
|
||||
/*
|
||||
* Allwinner Technology CO., Ltd. sun20iw1p1 soc board.
|
||||
*
|
||||
* soc board support.
|
||||
*/
|
||||
|
||||
&platform {
|
||||
eraseflag = <1>;
|
||||
next_work = <3>;
|
||||
debug_mode = <1>;
|
||||
};
|
||||
|
||||
&target {
|
||||
boot_clock = <1008>; /*CPU boot frequency, Unit: MHz*/
|
||||
storage_type = <0xffffffff>; /*boot medium, 0-nand, 1-card0, 2-card2, -1(defualt)auto scan*/
|
||||
burn_key = <1>; /*1:support burn key; 0:not support burn key*/
|
||||
dragonboard_test = <0>; /*1:support card boot dragonboard; 0:not support card boot dragonboard*/
|
||||
};
|
||||
|
||||
|
||||
&charger0 {
|
||||
pmu_safe_vol = <3500>;
|
||||
};
|
||||
|
||||
|
||||
&twi6 {
|
||||
clock-frequency = <200000>;
|
||||
pinctrl-0 = <&s_twi0_pins_a>;
|
||||
no_suspend = <1>;
|
||||
twi_drv_used = <1>;
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&sdc0_pins_a {
|
||||
allwinner,pins = "PF0", "PF1", "PF2",
|
||||
"PF3", "PF4", "PF5";
|
||||
allwinner,function = "sdc0";
|
||||
allwinner,muxsel = <2>;
|
||||
allwinner,drive = <3>;
|
||||
allwinner,pull = <1>;
|
||||
pins = "PF0", "PF1", "PF2",
|
||||
"PF3", "PF4", "PF5";
|
||||
function = "sdc0";
|
||||
drive-strength = <30>;
|
||||
bias-pull-up;
|
||||
power-source = <3300>;
|
||||
};
|
||||
|
||||
&sdc0_pins_b {
|
||||
pins = "PF0", "PF1", "PF2",
|
||||
"PF3", "PF4", "PF5";
|
||||
function = "sdc0";
|
||||
drive-strength = <30>;
|
||||
bias-pull-up;
|
||||
power-source = <1800>;
|
||||
};
|
||||
|
||||
&sdc0_pins_c {
|
||||
pins = "PF0", "PF1", "PF2",
|
||||
"PF3", "PF4", "PF5";
|
||||
function = "gpio_in";
|
||||
|
||||
};
|
||||
|
||||
|
||||
&sdc2_pins_a {
|
||||
allwinner,pins = "PC2", "PC3", "PC4",
|
||||
"PC5", "PC6", "PC7";
|
||||
allwinner,function = "sdc2";
|
||||
allwinner,muxsel = <3>;
|
||||
allwinner,drive = <3>;
|
||||
allwinner,pull = <1>;
|
||||
pins = "PC2", "PC3", "PC4",
|
||||
"PC5", "PC6", "PC7";
|
||||
function = "sdc2";
|
||||
drive-strength = <30>;
|
||||
bias-pull-up;
|
||||
|
||||
};
|
||||
|
||||
&sdc2_pins_b {
|
||||
pins = "PC2", "PC3", "PC4",
|
||||
"PC5", "PC6", "PC7";
|
||||
function = "gpio_in";
|
||||
};
|
||||
|
||||
|
||||
|
||||
&nand0_pins_a {
|
||||
allwinner,pins = "PC0", "PC1", "PC2", "PC5",
|
||||
"PC8", "PC9", "PC10", "PC11",
|
||||
"PC12", "PC13", "PC14", "PC15",
|
||||
"PC16";
|
||||
allwinner,pname= "nand0_we", "nand0_ale","nand0_cle", "nand0_nre",
|
||||
"nand0_d0", "nand0_d1", "nand0_d2", "nand0_d3",
|
||||
"nand0_d4", "nand0_d5", "nand0_d6", "nand0_d7",
|
||||
"nand0_ndqs";
|
||||
allwinner,function = "nand0";
|
||||
allwinner,muxsel = <2>;
|
||||
allwinner,drive = <1>;
|
||||
allwinner,pull = <0>;
|
||||
};
|
||||
|
||||
&nand0_pins_b {
|
||||
allwinner,pins = "PC4", "PC6", "PC03", "PC07";
|
||||
allwinner,pname= "nand0_ce0", "nand0_rb0", "nand0_ce1", "nand0_rb1";
|
||||
allwinner,function = "nand0";
|
||||
allwinner,muxsel = <2>;
|
||||
allwinner,drive = <1>;
|
||||
allwinner,pull = <1>; /* only RB&CE should be pulled up */
|
||||
};
|
||||
|
||||
&nand0_pins_c {
|
||||
allwinner,pins = "PC0", "PC1", "PC2", "PC3",
|
||||
"PC4", "PC5", "PC6", "PC7",
|
||||
"PC8", "PC9", "PC10", "PC11",
|
||||
"PC12", "PC13", "PC14", "PC15",
|
||||
"PC16";
|
||||
allwinner,function = "io_disabled";
|
||||
allwinner,muxsel = <7>;
|
||||
allwinner,drive = <1>;
|
||||
allwinner,pull = <0>;
|
||||
};
|
||||
|
||||
&card0_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
|
||||
/* reg = <0x0 0x2 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
|
||||
device_type = "card0_boot_para";
|
||||
card_ctrl = <0x0>;
|
||||
card_high_speed = <0x1>;
|
||||
card_line = <0x4>;
|
||||
pinctrl-0 = <&sdc0_pins_a>;
|
||||
};
|
||||
|
||||
&card2_boot_para { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
|
||||
/* reg = <0x0 0x3 0x0 0x0>; [> Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value <] */
|
||||
device_type = "card2_boot_para";
|
||||
card_ctrl = <0x2>;
|
||||
card_high_speed = <0x1>;
|
||||
card_line = <0x4>;
|
||||
pinctrl-0 = <&sdc2_pins_a>;
|
||||
sdc_ex_dly_used = <0x2>;
|
||||
sdc_tm4_hs200_max_freq = <150>;
|
||||
sdc_tm4_hs400_max_freq = <100>;
|
||||
};
|
||||
&gpio_bias { /* Avoid dtc compiling warnings. @TODO: Developer should modify this to the actual value */
|
||||
device_type = "gpio_bias";
|
||||
};
|
||||
|
||||
&nand0 {
|
||||
compatible = "allwinner,sun20iw1-nand";
|
||||
device_type = "nand0";
|
||||
//reg = <0x0 0x04011000 0x0 0x1000>;/* nand0 */
|
||||
pinctrl-names = "default", "sleep";
|
||||
pinctrl-0 = <&nand0_pins_a &nand0_pins_b>;
|
||||
pinctrl-1 = <&nand0_pins_c>;
|
||||
nand0_regulator1 = "vcc-nand";
|
||||
nand0_regulator2 = "none";
|
||||
nand0_cache_level = <0x55aaaa55>;
|
||||
nand0_flush_cache_num = <0x55aaaa55>;
|
||||
nand0_capacity_level = <0x55aaaa55>;
|
||||
nand0_id_number_ctl = <0x55aaaa55>;
|
||||
nand0_print_level = <0x55aaaa55>;
|
||||
nand0_p0 = <0x55aaaa55>;
|
||||
nand0_p1 = <0x55aaaa55>;
|
||||
nand0_p2 = <0x55aaaa55>;
|
||||
nand0_p3 = <0x55aaaa55>;
|
||||
chip_code = "sun20iw1";
|
||||
status = "disabled";
|
||||
};
|
||||
|
||||
&aliases {
|
||||
nand0 = &nand0;
|
||||
twi6 = &twi6;
|
||||
disp = &disp;
|
||||
lcd0 = &lcd0;
|
||||
lcd1 = &lcd1;
|
||||
eink = &eink;
|
||||
spi0 = &spi0;
|
||||
};
|
||||
@ -1,191 +1,9 @@
|
||||
/*
|
||||
* Allwinner Technology CO., Ltd. sun20iw1p1 platform
|
||||
*
|
||||
* modify base on juno.dts
|
||||
*/
|
||||
/dts-v1/;
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include "sun20iw1p1-clk.dtsi"
|
||||
#include <dt-bindings/thermal/thermal.h>
|
||||
|
||||
/ {
|
||||
clocks {
|
||||
compatible = "allwinner,clk-init";
|
||||
device_type = "clocks";
|
||||
#address-cells = <2>;
|
||||
#size-cells = <2>;
|
||||
ranges;
|
||||
reg = <0x0 0x03001000 0x0 0x1000>, /*cpux space*/
|
||||
<0x0 0x07010000 0x0 0x400>, /*cpus space*/
|
||||
<0x0 0x07000000 0x0 0x4>;
|
||||
|
||||
clk_hosc: hosc {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-clock";
|
||||
clock-frequency = <24000000>;
|
||||
clock-output-names = "hosc";
|
||||
};
|
||||
clk_pll_periph0: pll_periph0 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
assigned-clock-rates = <600000000>;
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_periph0";
|
||||
};
|
||||
clk_pll_periph1: pll_periph1 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
assigned-clock-rates = <600000000>;
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_periph1";
|
||||
};
|
||||
clk_pll_gpu: pll_gpu {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_gpu";
|
||||
};
|
||||
clk_pll_video0x4: pll_video0x4 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_video0x4";
|
||||
};
|
||||
clk_pll_video1x4: pll_video1x4 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_video1x4";
|
||||
};
|
||||
clk_pll_video2: pll_video2 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
assigned-clocks = <&clk_pll_video2>;
|
||||
assigned-clock-rates = <336000000>;
|
||||
clock-output-names = "pll_video2";
|
||||
};
|
||||
clk_pll_de: pll_de {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,pll-clock";
|
||||
lock-mode = "new";
|
||||
clock-output-names = "pll_de";
|
||||
};
|
||||
clk_pll_periph0x2: pll_periph0x2 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-factor-clock";
|
||||
clocks = <&clk_pll_periph0>;
|
||||
clock-mult = <2>;
|
||||
clock-div = <1>;
|
||||
clock-output-names = "pll_periph0x2";
|
||||
};
|
||||
clk_periph32k: periph32k {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-factor-clock";
|
||||
clocks = <&clk_pll_periph0>;
|
||||
clock-mult = <2>;
|
||||
clock-div = <36621>;
|
||||
clock-output-names = "periph32k";
|
||||
};
|
||||
clk_pll_video0: pll_video0 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,fixed-factor-clock";
|
||||
clocks = <&clk_pll_video0x4>;
|
||||
clock-mult = <1>;
|
||||
clock-div = <4>;
|
||||
clock-output-names = "pll_video0";
|
||||
};
|
||||
clk_de: de {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clocks = <&clk_de>;
|
||||
assigned-clock-parents = <&clk_pll_periph0x2>;
|
||||
assigned-clock-rates = <300000000>;
|
||||
clock-output-names = "de";
|
||||
};
|
||||
clk_ee: ee {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_pll_periph0x2>;
|
||||
assigned-clock-rates = <300000000>;
|
||||
assigned-clocks = <&clk_ee>;
|
||||
clock-output-names = "ee";
|
||||
};
|
||||
clk_panel: panel {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_pll_video2>;
|
||||
assigned-clock-rates = <30000000>;
|
||||
assigned-clocks = <&clk_panel>;
|
||||
clock-output-names = "panel";
|
||||
};
|
||||
clk_dpss_top: dpss_top {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "dpss_top";
|
||||
};
|
||||
clk_tcon_lcd: tcon_lcd {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "tcon_lcd";
|
||||
assigned-clocks = <&clk_tcon_lcd>;
|
||||
assigned-clock-parents = <&clk_pll_video0x4>;
|
||||
};
|
||||
clk_tcon_tv: tcon_tv {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "tcon_tv";
|
||||
assigned-clocks = <&clk_tcon_tv>;
|
||||
assigned-clock-parents = <&clk_pll_video1x4>;
|
||||
};
|
||||
clk_hdmi: hdmi {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_pll_video0>;
|
||||
assigned-clocks = <&clk_hdmi>;
|
||||
clock-output-names = "hdmi";
|
||||
};
|
||||
clk_hdmi_slow: hdmi_slow {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_hosc>;
|
||||
assigned-clocks = <&clk_hdmi_slow>;
|
||||
clock-output-names = "hdmi_slow";
|
||||
};
|
||||
clk_hdmi_cec: hdmi_cec {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clock-parents = <&clk_periph32k>;
|
||||
assigned-clocks = <&clk_hdmi_cec>;
|
||||
clock-output-names = "hdmi_cec";
|
||||
};
|
||||
|
||||
clk_lvds: lvds {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "lvds";
|
||||
};
|
||||
clk_lvds1: lvds1 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "lvds1";
|
||||
};
|
||||
|
||||
clk_mipi_host0: mipi_host0 {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
assigned-clocks = <&clk_mipi_host0>;
|
||||
assigned-clock-parents = <&clk_hosc>;
|
||||
clock-output-names = "mipi_host0";
|
||||
};
|
||||
|
||||
clk_csi_top: csi_top {
|
||||
#clock-cells = <0>;
|
||||
compatible = "allwinner,periph-clock";
|
||||
clock-output-names = "csi_top";
|
||||
};
|
||||
};
|
||||
|
||||
model = "sun20iw1";
|
||||
compatible = "allwinner,riscv", "arm,sun20iw1p1";
|
||||
#address-cells = <2>;
|
||||
@ -366,6 +184,24 @@ clocks {
|
||||
allwinner,pull = <0>;
|
||||
};
|
||||
|
||||
dsi2lane_pins_a: dsi2lane@0 {
|
||||
allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5";
|
||||
allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5";
|
||||
allwinner,function = "dsi2lane";
|
||||
allwinner,muxsel = <4>;
|
||||
allwinner,drive = <3>;
|
||||
allwinner,pull = <0>;
|
||||
};
|
||||
|
||||
dsi2lane_pins_b: dsi2lane@1 {
|
||||
allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5";
|
||||
allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5";
|
||||
allwinner,function = "dsi2lane_suspend";
|
||||
allwinner,muxsel = <15>;
|
||||
allwinner,drive = <1>;
|
||||
allwinner,pull = <0>;
|
||||
};
|
||||
|
||||
dsi4lane_pins_a: dsi4lane@0 {
|
||||
allwinner,pins = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9";
|
||||
allwinner,pname = "PD0", "PD1", "PD2", "PD3", "PD4", "PD5", "PD6", "PD7", "PD8", "PD9";
|
||||
@ -397,10 +233,9 @@ clocks {
|
||||
};
|
||||
|
||||
spi0_pins_a: spi0@0 {
|
||||
allwinner,pins = "PC2", "PC4", "PC5",
|
||||
"PC7", "PC6";
|
||||
allwinner,pins = "PC2", "PC4", "PC5";
|
||||
allwinner,pname = "spi0_sclk", "spi0_mosi",
|
||||
"spi0_miso", "spi0_hold", "spi0_wp";
|
||||
"spi0_miso";
|
||||
allwinner,function = "spi0";
|
||||
allwinner,muxsel = <2>;
|
||||
allwinner,drive = <1>;
|
||||
@ -408,8 +243,9 @@ clocks {
|
||||
};
|
||||
|
||||
spi0_pins_b: spi0@1 {
|
||||
allwinner,pins = "PC3";
|
||||
allwinner,pname = "spi0_cs0";
|
||||
allwinner,pins = "PC3", "PC7", "PC6";
|
||||
allwinner,pname = "spi0_cs0", "spi0_hold",
|
||||
"spi0_wp";
|
||||
allwinner,function = "spi0";
|
||||
allwinner,muxsel = <2>;
|
||||
allwinner,drive = <1>;
|
||||
@ -528,8 +364,8 @@ clocks {
|
||||
compatible = "spi-nand";
|
||||
spi-max-frequency=<0x5F5E100>;
|
||||
reg = <0x0>;
|
||||
spi-rx-bus-width=<0x01>;
|
||||
spi-tx-bus-width=<0x01>;
|
||||
spi-rx-bus-width=<0x04>;
|
||||
spi-tx-bus-width=<0x04>;
|
||||
status="disabled";
|
||||
};
|
||||
spi_board0 {
|
||||
@ -629,7 +465,7 @@ clocks {
|
||||
interrupts = <GIC_PPI 9 0xf04>; /* GIC Maintenence IRQ */
|
||||
interrupt-parent = <&gic>;
|
||||
};
|
||||
|
||||
aliases:aliases@45100000 {
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
@ -3,8 +3,9 @@
|
||||
*
|
||||
* soc board support.
|
||||
*/
|
||||
/dts-v1/;
|
||||
|
||||
#include "sun20i-d1-uboot.dtsi"
|
||||
#include "sun20iw1p1-soc-system.dtsi"
|
||||
|
||||
&platform {
|
||||
eraseflag = <1>;
|
||||
@ -0,0 +1,43 @@
|
||||
From 132c4ad2bbd95cd2138465ea7f3fbb53bad141bb Mon Sep 17 00:00:00 2001
|
||||
From: YuzukiTsuru <gloomyghost@gloomyghost.com>
|
||||
Date: Sun, 27 Mar 2022 22:38:47 +0800
|
||||
Subject: [PATCH] add support for buildroot
|
||||
|
||||
---
|
||||
Makefile | 6 +++---
|
||||
1 file changed, 3 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 4647e1a..f628988 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -980,7 +980,7 @@ endif
|
||||
|
||||
BOARD_DTS_EXIST = $(shell if [ -f $(DTS_PATH)/$(BOARD_DTS_NAME).dts ]; then echo yes; else echo no; fi;)
|
||||
|
||||
-DEVICE_BOARD_DTS_EXIST = $(shell if [ -f $(LICHEE_BOARD_CONFIG_DIR)/uboot-board.dts ]; then echo yes; else echo no; fi;)
|
||||
+DEVICE_BOARD_DTS_EXIST = $(shell if [ -f $(LICHEE_BOARD_CONFIG_DIR)/sun20i-d1-nezha-uboot.dts ]; then echo yes; else echo no; fi;)
|
||||
|
||||
DTS_WARNNING_SKIP := -W no-unit_address_vs_reg \
|
||||
-W no-unit_address_format \
|
||||
@@ -988,7 +988,7 @@ DTS_WARNNING_SKIP := -W no-unit_address_vs_reg \
|
||||
-W no-pwms_property
|
||||
ifeq (x$(DEVICE_BOARD_DTS_EXIST), xyes)
|
||||
# add depend on external dts, make sure dts in uboot up to date
|
||||
-dts/dt.dtb: $(LICHEE_BOARD_CONFIG_DIR)/uboot-board.dts
|
||||
+dts/dt.dtb: $(LICHEE_BOARD_CONFIG_DIR)/sun20i-d1-nezha-uboot.dts
|
||||
endif
|
||||
|
||||
all: $(ALL-y) cfg
|
||||
@@ -1010,7 +1010,7 @@ dtbs: dts/dt.dtb
|
||||
dts/dt.dtb: u-boot
|
||||
|
||||
ifeq (x$(DEVICE_BOARD_DTS_EXIST), xyes)
|
||||
- @-cp -v $(LICHEE_BOARD_CONFIG_DIR)/uboot-board.dts $(DTS_PATH)/.board-uboot.dts
|
||||
+ @-cp -v $(LICHEE_BOARD_CONFIG_DIR)/sun20i-d1-nezha-uboot.dts $(DTS_PATH)/.board-uboot.dts
|
||||
else
|
||||
ifeq (x$(BOARD_DTS_EXIST),xyes)
|
||||
@-cp -v $(DTS_PATH)/$(BOARD_DTS_NAME).dts $(DTS_PATH)/.board-uboot.dts
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
From cf43277db894443dcf49314e24f4b6ddb4132333 Mon Sep 17 00:00:00 2001
|
||||
From: YuzukiTsuru <gloomyghost@gloomyghost.com>
|
||||
Date: Sun, 27 Mar 2022 23:09:00 +0800
|
||||
Subject: [PATCH 2/2] fix uboot disable dtc selfbuilt
|
||||
|
||||
---
|
||||
scripts/Makefile | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/scripts/Makefile b/scripts/Makefile
|
||||
index ce641b9..e27308a 100644
|
||||
--- a/scripts/Makefile
|
||||
+++ b/scripts/Makefile
|
||||
@@ -19,4 +19,4 @@ build_docproc: $(obj)/docproc
|
||||
|
||||
# Let clean descend into subdirs
|
||||
subdir- += basic kconfig
|
||||
-#subdir-$(CONFIG_DTC) += dtc
|
||||
+subdir-$(CONFIG_DTC) += dtc
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@ -0,0 +1,192 @@
|
||||
From 53cf6809ff8bc28f09a7c55041752a7238928c67 Mon Sep 17 00:00:00 2001
|
||||
From: YuzukiTsuru <gloomyghost@gloomyghost.com>
|
||||
Date: Sun, 27 Mar 2022 23:08:29 +0800
|
||||
Subject: [PATCH 1/2] fix uboot support for buildroot dts file
|
||||
|
||||
---
|
||||
Makefile | 109 ++++---------------------------------------------------
|
||||
1 file changed, 8 insertions(+), 101 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f628988..f036d42 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
-SHELL:=/bin/bash
|
||||
+
|
||||
VERSION = 2018
|
||||
PATCHLEVEL = 05
|
||||
SUBLEVEL =
|
||||
@@ -83,18 +83,7 @@ else
|
||||
Q = @
|
||||
endif
|
||||
|
||||
-buildconfig = ../../../.buildconfig
|
||||
-ifeq ($(buildconfig), $(wildcard $(buildconfig)))
|
||||
- LICHEE_BUSSINESS=$(shell cat $(buildconfig) | grep -w "LICHEE_BUSSINESS" | awk -F= '{printf $$2}')
|
||||
- LICHEE_CHIP_CONFIG_DIR=$(shell cat $(buildconfig) | grep -w "LICHEE_CHIP_CONFIG_DIR" | awk -F= '{printf $$2}')
|
||||
- LICHEE_ARCH=$(shell cat $(buildconfig) | grep -w "LICHEE_ARCH" | awk -F= '{printf $$2}')
|
||||
- LICHEE_IC=$(shell cat $(buildconfig) | grep -w "LICHEE_IC" | awk -F= '{printf $$2}')
|
||||
- LICHEE_CHIP=$(shell cat $(buildconfig) | grep -w "LICHEE_CHIP" | awk -F= '{printf $$2}')
|
||||
- LICHEE_BOARD=$(shell cat $(buildconfig) | grep -w "LICHEE_BOARD" | awk -F= '{printf $$2}')
|
||||
- LICHEE_PLAT_OUT=$(shell cat $(buildconfig) | grep -w "LICHEE_PLAT_OUT" | awk -F= '{printf $$2}')
|
||||
- LICHEE_BOARD_CONFIG_DIR=$(shell cat $(buildconfig) | grep -w "LICHEE_BOARD_CONFIG_DIR" | awk -F= '{printf $$2}')
|
||||
- export LICHEE_BUSSINESS LICHEE_CHIP_CONFIG_DIR LICHEE_IC LICHEE_ARCH LICHEE_CHIP LICHEE_BOARD LICHEE_PLAT_OUT LICHEE_BOARD_CONFIG_DIR
|
||||
-endif
|
||||
+LICHEE_BOARD_CONFIG_DIR=$(objtree)
|
||||
|
||||
# If the user is running make -s (silent mode), suppress echoing of
|
||||
# commands
|
||||
@@ -265,34 +254,14 @@ ifeq (x$(config_check), xyes)
|
||||
endif
|
||||
endif
|
||||
|
||||
-#########################################################################
|
||||
-RISCV_PATH=riscv64-linux-x86_64-20200528
|
||||
-riscv_toolchain_check=$(shell if [ ! -d ../tools/toolchain/$(RISCV_PATH) ]; then echo yes; else echo no; fi;)
|
||||
-ifeq (x$(riscv_toolchain_check), xyes)
|
||||
-$(info Prepare riscv toolchain ...);
|
||||
-$(shell mkdir -p ../tools/toolchain/$(RISCV_PATH) || exit 1)
|
||||
-$(shell tar --strip-components=1 -xf ../tools/toolchain/$(RISCV_PATH).tar.xz -C ../tools/toolchain/$(RISCV_PATH) || exit 1)
|
||||
-endif
|
||||
-arm_toolchain_check=$(shell if [ ! -d ../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi ]; then echo yes; else echo no; fi;)
|
||||
-ifeq (x$(arm_toolchain_check), xyes)
|
||||
-$(info Prepare arm toolchain ...);
|
||||
-$(shell mkdir -p ../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi || exit 1)
|
||||
-$(shell tar --strip-components=1 -xf ../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi.tar.xz -C ../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi || exit 1)
|
||||
-endif
|
||||
-
|
||||
-
|
||||
ifeq (x$(CONFIG_RISCV), xy)
|
||||
-CROSS_COMPILE := $(srctree)/../tools/toolchain/$(RISCV_PATH)/bin/riscv64-unknown-linux-gnu-
|
||||
-DTS_PATH := $(PWD)/arch/riscv/dts
|
||||
+DTS_PATH := $(objtree)/arch/riscv/dts
|
||||
endif
|
||||
|
||||
ifeq (x$(CONFIG_ARM), xy)
|
||||
-CROSS_COMPILE := $(srctree)/../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-
|
||||
-DTS_PATH := $(PWD)/arch/arm/dts
|
||||
+DTS_PATH := $(objtree)/arch/arm/dts
|
||||
endif
|
||||
|
||||
-CROSS_COMPILE ?= $(srctree)/../tools/toolchain/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-
|
||||
-DTS_PATH ?= $(PWD)/arch/arm/dts
|
||||
|
||||
#######################################################################
|
||||
# set default to nothing for native builds
|
||||
@@ -809,10 +778,6 @@ PLATFORM_LIBS += drivers/sunxi_flash/nand/$(CONFIG_SYS_CONFIG_NAME)/libnand-$(CO
|
||||
endif
|
||||
endif
|
||||
|
||||
-ifeq ($(CONFIG_SUNXI_ARM_SOFT_FP),y)
|
||||
-PLATFORM_LIBS+=arch/arm/lib/soft_fp_from_gcc/soft_fp_from_gcc
|
||||
-endif
|
||||
-
|
||||
ifdef CONFIG_CC_COVERAGE
|
||||
KBUILD_CFLAGS += --coverage
|
||||
PLATFORM_LIBGCC += -lgcov
|
||||
@@ -968,28 +933,12 @@ quiet_cmd_cfgcheck = CFGCHK $2
|
||||
cmd_cfgcheck = $(srctree)/scripts/check-config.sh $2 \
|
||||
$(srctree)/scripts/config_whitelist.txt $(srctree)
|
||||
|
||||
-BOARD_DTS_NAME = $(LICHEE_IC)-$(LICHEE_BOARD)-board
|
||||
-
|
||||
-ifneq (x$(TARGET_BOARD), x)
|
||||
-BOARD_DTS_NAME := $(TARGET_BOARD)
|
||||
-LICHEE_TARGET_BOARD_EXIT=$(shell if [[ "$(TARGET_BOARD)" == *-board* ]]; then echo yes; else echo no; fi;)
|
||||
-ifeq (x$(LICHEE_TARGET_BOARD_EXIT), xno)
|
||||
-BOARD_DTS_NAME := $(BOARD_DTS_NAME)-board
|
||||
-endif
|
||||
-endif
|
||||
-
|
||||
-BOARD_DTS_EXIST = $(shell if [ -f $(DTS_PATH)/$(BOARD_DTS_NAME).dts ]; then echo yes; else echo no; fi;)
|
||||
-
|
||||
-DEVICE_BOARD_DTS_EXIST = $(shell if [ -f $(LICHEE_BOARD_CONFIG_DIR)/sun20i-d1-nezha-uboot.dts ]; then echo yes; else echo no; fi;)
|
||||
-
|
||||
+BOARD_DTS_EXIST=$(shell if [ -f $(DTS_PATH)/$(LICHEE_IC)-$(LICHEE_BOARD)-board.dts ]; then echo yes; else echo no; fi;)
|
||||
+DEVICE_BOARD_DTS_EXIST=$(shell if [ -f $(LICHEE_BOARD_CONFIG_DIR)/uboot-board.dts ]; then echo yes; else echo no; fi;)
|
||||
DTS_WARNNING_SKIP := -W no-unit_address_vs_reg \
|
||||
-W no-unit_address_format \
|
||||
-W no-simple_bus_reg \
|
||||
-W no-pwms_property
|
||||
-ifeq (x$(DEVICE_BOARD_DTS_EXIST), xyes)
|
||||
-# add depend on external dts, make sure dts in uboot up to date
|
||||
-dts/dt.dtb: $(LICHEE_BOARD_CONFIG_DIR)/sun20i-d1-nezha-uboot.dts
|
||||
-endif
|
||||
|
||||
all: $(ALL-y) cfg
|
||||
ifeq ($(CONFIG_DM_I2C_COMPAT)$(CONFIG_SANDBOX),y)
|
||||
@@ -1008,20 +957,10 @@ PHONY += dtbs
|
||||
dtbs: dts/dt.dtb
|
||||
@:
|
||||
dts/dt.dtb: u-boot
|
||||
-
|
||||
-ifeq (x$(DEVICE_BOARD_DTS_EXIST), xyes)
|
||||
- @-cp -v $(LICHEE_BOARD_CONFIG_DIR)/sun20i-d1-nezha-uboot.dts $(DTS_PATH)/.board-uboot.dts
|
||||
-else
|
||||
-ifeq (x$(BOARD_DTS_EXIST),xyes)
|
||||
- @-cp -v $(DTS_PATH)/$(BOARD_DTS_NAME).dts $(DTS_PATH)/.board-uboot.dts
|
||||
-else
|
||||
- @-cp -v $(DTS_PATH)/$(CONFIG_SYS_CONFIG_NAME)-common-board.dts $(DTS_PATH)/.board-uboot.dts
|
||||
-endif
|
||||
-endif
|
||||
+ @-cp -v $(DTS_PATH)/sun20i-d1-nezha-uboot.dts $(DTS_PATH)/.board-uboot.dts
|
||||
$(Q)$(MAKE) $(build)=dts dtbs
|
||||
$(DTC) $(DTS_WARNNING_SKIP) -I dtb -O dts $(DTS_PATH)/$(CONFIG_DEFAULT_DEVICE_TREE).dtb > u-boot-dtb.dts
|
||||
|
||||
-
|
||||
quiet_cmd_copy = COPY $@
|
||||
cmd_copy = cp $< $@
|
||||
|
||||
@@ -1054,29 +993,6 @@ TARGET_BIN_DIR ?= device/config/chips/$(TARGET_PLATFORM)/bin
|
||||
|
||||
u-boot-$(CONFIG_SYS_CONFIG_NAME).bin: u-boot.bin
|
||||
@cp -v $< $@
|
||||
-ifeq ($(CONFIG_SUNXI_NOR_IMG),y)
|
||||
-ifeq ($(TARGET_BUILD_VARIANT),tina)
|
||||
- @cp -v $@ $(objtree)/../../../$(TARGET_BIN_DIR)/u-boot-spinor-$(CONFIG_SYS_CONFIG_NAME).bin;
|
||||
-else
|
||||
- @-if [ "x$(LICHEE_BUSSINESS)" != "x" ];then \
|
||||
- cp -v $@ $(LICHEE_CHIP_CONFIG_DIR)/$(LICHEE_BUSSINESS)/bin/u-boot-spinor-$(CONFIG_SYS_CONFIG_NAME).bin; \
|
||||
- else \
|
||||
- cp -v $@ $(LICHEE_CHIP_CONFIG_DIR)/bin/u-boot-spinor-$(CONFIG_SYS_CONFIG_NAME).bin;\
|
||||
- fi
|
||||
- @-cp -v $@ $(LICHEE_PLAT_OUT)/u-boot-spinor-$(CONFIG_SYS_CONFIG_NAME).bin;
|
||||
-endif
|
||||
-else
|
||||
-ifeq ($(TARGET_BUILD_VARIANT),tina)
|
||||
- @cp -v $@ $(objtree)/../../../$(TARGET_BIN_DIR)/$@
|
||||
-else
|
||||
- @-if [ "x$(LICHEE_BUSSINESS)" != "x" ];then\
|
||||
- cp -v $@ $(LICHEE_CHIP_CONFIG_DIR)/$(LICHEE_BUSSINESS)/bin/$@; \
|
||||
- else \
|
||||
- cp -v $@ $(LICHEE_CHIP_CONFIG_DIR)/bin/$@; \
|
||||
- fi
|
||||
- @-cp -v $@ $(LICHEE_PLAT_OUT)/$@;
|
||||
-endif
|
||||
-endif
|
||||
|
||||
%.imx: %.bin
|
||||
$(Q)$(MAKE) $(build)=arch/arm/mach-imx $@
|
||||
@@ -1529,16 +1445,7 @@ include/config/uboot.release: include/config/auto.conf FORCE
|
||||
# version.h and scripts_basic is processed / created.
|
||||
|
||||
# Listed in dependency order
|
||||
-PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3 cfg
|
||||
-
|
||||
-CLEAN_FILES += board/sunxi/sunxi_challenge.c
|
||||
-board/sunxi/sunxi_challenge.c:
|
||||
- @echo " prepare sunxi_challenge..."
|
||||
- @dd if=/dev/urandom of=sunxi_challenge bs=128 count=1 > /dev/null 2>&1
|
||||
- @xxd -c 8 -i sunxi_challenge > board/sunxi/sunxi_challenge.c
|
||||
- @sed -i '/^unsigned/i __attribute__((__used__))' board/sunxi/sunxi_challenge.c
|
||||
- @rm sunxi_challenge
|
||||
-prepare: board/sunxi/sunxi_challenge.c
|
||||
+PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
|
||||
|
||||
# prepare3 is used to check if we are building in a separate output directory,
|
||||
# and if so do:
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@ -0,0 +1,34 @@
|
||||
From 7238dd81bf9236ae145f5033fdfb76e5126563a2 Mon Sep 17 00:00:00 2001
|
||||
From: YuzukiTsuru <gloomyghost@gloomyghost.com>
|
||||
Date: Sun, 27 Mar 2022 23:26:42 +0800
|
||||
Subject: [PATCH] fix No rule to make target sunxi_challenge
|
||||
|
||||
---
|
||||
Makefile | 11 ++++++++++-
|
||||
1 file changed, 10 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index f036d42..59fd48e 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1445,7 +1445,16 @@ include/config/uboot.release: include/config/auto.conf FORCE
|
||||
# version.h and scripts_basic is processed / created.
|
||||
|
||||
# Listed in dependency order
|
||||
-PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3
|
||||
+PHONY += prepare archprepare prepare0 prepare1 prepare2 prepare3 cfg
|
||||
+
|
||||
+CLEAN_FILES += board/sunxi/sunxi_challenge.c
|
||||
+board/sunxi/sunxi_challenge.c:
|
||||
+ @echo " prepare sunxi_challenge..."
|
||||
+ @dd if=/dev/urandom of=sunxi_challenge bs=128 count=1 > /dev/null 2>&1
|
||||
+ @xxd -c 8 -i sunxi_challenge > board/sunxi/sunxi_challenge.c
|
||||
+ @sed -i '/^unsigned/i __attribute__((__used__))' board/sunxi/sunxi_challenge.c
|
||||
+ @rm sunxi_challenge
|
||||
+prepare: board/sunxi/sunxi_challenge.c
|
||||
|
||||
# prepare3 is used to check if we are building in a separate output directory,
|
||||
# and if so do:
|
||||
--
|
||||
2.17.1
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#include "suniv-f1c100s-linux.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Sipeed Lichee Nano";
|
||||
model = "sipeed Lichee Nano";
|
||||
compatible = "allwinner,suniv-f1c100s";
|
||||
|
||||
chosen {
|
||||
@ -15,7 +15,7 @@ storage "/" "rootfs" "rw"
|
||||
|
||||
# Set the USB manufacturer string
|
||||
|
||||
manufacturer "Sipeed"
|
||||
manufacturer "sipeed"
|
||||
|
||||
# Set the USB Product string
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#include "suniv-f1c100s-linux.dtsi"
|
||||
|
||||
/ {
|
||||
model = "YuzukiHD YuzukiRuler";
|
||||
model = "yuzukihd yuzukiruler";
|
||||
compatible = "allwinner,suniv-f1c200s", "allwinner,suniv-f1c100s";
|
||||
|
||||
chosen {
|
||||
@ -6,7 +6,7 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
model = "YuzukiHD YuzukiRuler";
|
||||
model = "yuzukihd yuzukiruler";
|
||||
compatible = "allwinner,suniv-f1c100s", "allwinner,suniv";
|
||||
|
||||
aliases {
|
||||
@ -15,11 +15,11 @@ storage "/" "rootfs" "rw"
|
||||
|
||||
# Set the USB manufacturer string
|
||||
|
||||
manufacturer "YuzukiHD"
|
||||
manufacturer "yuzukihd"
|
||||
|
||||
# Set the USB Product string
|
||||
|
||||
product "YuzukiRuler"
|
||||
product "yuzukiruler"
|
||||
|
||||
# Set the USB Serial number string
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
#include "suniv-f1c100s-linux.dtsi"
|
||||
|
||||
/ {
|
||||
model = "YuzukiHD YuzukiRuler";
|
||||
model = "yuzukihd yuzukiruler";
|
||||
compatible = "allwinner,suniv-f1c200s", "allwinner,suniv-f1c100s";
|
||||
|
||||
chosen {
|
||||
@ -6,7 +6,7 @@
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
|
||||
/ {
|
||||
model = "YuzukiHD YuzukiRuler";
|
||||
model = "yuzukihd yuzukiruler";
|
||||
compatible = "allwinner,suniv-f1c100s", "allwinner,suniv";
|
||||
|
||||
aliases {
|
||||
@ -15,11 +15,11 @@ storage "/" "rootfs" "rw"
|
||||
|
||||
# Set the USB manufacturer string
|
||||
|
||||
manufacturer "YuzukiHD"
|
||||
manufacturer "yuzukihd"
|
||||
|
||||
# Set the USB Product string
|
||||
|
||||
product "YuzukiRuler"
|
||||
product "yuzukiruler"
|
||||
|
||||
# Set the USB Serial number string
|
||||
|
||||
@ -367,7 +367,7 @@ BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/Tina-Linux/tina-d1x-u-boot-
|
||||
BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="origin/master"
|
||||
BR2_TARGET_UBOOT_PATCH="board/allwinner-generic/sun20i-d1/patch/uboot"
|
||||
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/AWOL/configs/uboot.defconfig"
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/awol/configs/uboot.defconfig"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
|
||||
@ -7,9 +7,9 @@ BR2_PACKAGE_HOST_GDB=y
|
||||
BR2_PACKAGE_HOST_GDB_TUI=y
|
||||
BR2_PACKAGE_HOST_GDB_SIM=y
|
||||
BR2_TARGET_GENERIC_HOSTNAME="lichee-nano"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Sipeed Lichee Nano"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to sipeed Lichee Nano"
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_ROOTFS_OVERLAY="board/allwinner-generic/suniv-generic/rootfs board/allwinner-generic/suniv-f1c100s/rootfs board/Sipeed/lichee-nano/rootfs"
|
||||
BR2_ROOTFS_OVERLAY="board/allwinner-generic/suniv-generic/rootfs board/allwinner-generic/suniv-f1c100s/rootfs board/sipeed/lichee-nano/rootfs"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/allwinner-generic/suniv-generic/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TARGET_UBOOT_SPL_NAME}"
|
||||
BR2_LINUX_KERNEL=y
|
||||
@ -17,9 +17,9 @@ BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.4.180"
|
||||
BR2_LINUX_KERNEL_PATCH="board/allwinner-generic/suniv-f1c100s/patch/linux"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/Sipeed/lichee-nano/config/linux/linux_Sipeed_lichee_nano_defconfig"
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/sipeed/lichee-nano/config/linux/linux_sipeed_lichee_nano_defconfig"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/linux/suniv-f1c100s-linux.dtsi board/Sipeed/lichee-nano/dts/suniv-linux.dts"
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/linux/suniv-f1c100s-linux.dtsi board/sipeed/lichee-nano/dts/suniv-linux.dts"
|
||||
BR2_PACKAGE_GDB=y
|
||||
BR2_PACKAGE_FB_TEST_APP=y
|
||||
BR2_PACKAGE_UMTPRD=y
|
||||
@ -39,11 +39,11 @@ BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.07"
|
||||
BR2_TARGET_UBOOT_PATCH="board/allwinner-generic/suniv-f1c100s/patch/u-boot"
|
||||
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE=board/Sipeed/lichee-nano/config/uboot/uboot_Sipeed_lichee_nano_defconfig"
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE=board/sipeed/lichee-nano/config/uboot/uboot_sipeed_lichee_nano_defconfig"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/uboot/suniv-f1c100s-uboot.dtsi board/Sipeed/lichee-nano/dts/suniv-uboot.dts"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/uboot/suniv-f1c100s-uboot.dtsi board/sipeed/lichee-nano/dts/suniv-uboot.dts"
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
@ -13,11 +13,11 @@ BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/allwinner-generic/sun8i-generic/genimage.c
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.4.180"
|
||||
BR2_LINUX_KERNEL_PATCH="board/Sipeed/lichee-zero/patch/linux/"
|
||||
BR2_LINUX_KERNEL_PATCH="board/sipeed/lichee-zero/patch/linux/"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/Sipeed/lichee-zero/config/linux/linux_Sipeed_lichee_zero_defconfig"
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/sipeed/lichee-zero/config/linux/linux_sipeed_lichee_zero_defconfig"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/sun8i-v3s/linux/dts/sun8i-v3s-linux.dtsi board/Sipeed/lichee-zero/dts/sun8i-v3s-licheepi-zero-linux.dts"
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/sun8i-v3s/dts/linux/sun8i-v3s-linux.dtsi board/sipeed/lichee-zero/dts/sun8i-v3s-licheepi-zero-linux.dts"
|
||||
BR2_PACKAGE_HTOP=y
|
||||
BR2_TARGET_ROOTFS_EXT2=y
|
||||
BR2_TARGET_ROOTFS_EXT2_4=y
|
||||
@ -25,17 +25,17 @@ BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.07"
|
||||
BR2_TARGET_UBOOT_PATCH="board/Sipeed/lichee-zero/patch/uboot"
|
||||
BR2_TARGET_UBOOT_PATCH="board/sipeed/lichee-zero/patch/uboot"
|
||||
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/Sipeed/lichee-zero/config/uboot/uboot_Sipeed_lichee_zero_defconfig"
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/sipeed/lichee-zero/config/uboot/uboot_sipeed_lichee_zero_defconfig"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
|
||||
BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/sun8i-v3s/dts/uboot/sun8i-v3s-uboot.dtsi board/Sipeed/lichee-zero/dts/sun8i-v3s-licheepi-zero-uboot.dts"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/sun8i-v3s/dts/uboot/sun8i-v3s-uboot.dtsi board/sipeed/lichee-zero/dts/sun8i-v3s-licheepi-zero-uboot.dts"
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/Sipeed/lichee-zero/script/bootcmd"
|
||||
BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/sipeed/lichee-zero/script/bootcmd"
|
||||
@ -6,20 +6,20 @@ BR2_GCC_ENABLE_LTO=y
|
||||
BR2_PACKAGE_HOST_GDB=y
|
||||
BR2_PACKAGE_HOST_GDB_TUI=y
|
||||
BR2_PACKAGE_HOST_GDB_SIM=y
|
||||
BR2_TARGET_GENERIC_HOSTNAME="YuzukiCore-F1"
|
||||
BR2_TARGET_GENERIC_HOSTNAME="yuzukicore-f1"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Yuzuki Core F1"
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_ROOTFS_OVERLAY="board/YuzukiHD/YuzukiCore-F1/rootfs board/allwinner-generic/suniv-f1c100s/rootfs"
|
||||
BR2_ROOTFS_OVERLAY="board/yuzukihd/yuzukicore-f1/rootfs board/allwinner-generic/suniv-f1c100s/rootfs"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/allwinner-generic/suniv-generic/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TARGET_UBOOT_SPL_NAME}"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.4.180"
|
||||
BR2_LINUX_KERNEL_PATCH="board/allwinner-generic/suniv-f1c100s/patch/linux board/YuzukiHD/YuzukiCore-F1/patch/linux"
|
||||
BR2_LINUX_KERNEL_PATCH="board/allwinner-generic/suniv-f1c100s/patch/linux board/yuzukihd/yuzukicore-f1/patch/linux"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/YuzukiHD/YuzukiCore-F1/config/linux/linux_YuzukiHD_YuzukiCore-F1_defconfig"
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/yuzukihd/yuzukicore-f1/config/linux/linux_yuzukihd_yuzukicore-f1_defconfig"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/linux/suniv-f1c100s-linux.dtsi board/YuzukiHD/YuzukiCore-F1/dts/suniv-linux.dts"
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/linux/suniv-f1c100s-linux.dtsi board/yuzukihd/yuzukicore-f1/dts/suniv-linux.dts"
|
||||
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
BR2_PACKAGE_GDB=y
|
||||
BR2_PACKAGE_FB_TEST_APP=y
|
||||
@ -38,13 +38,13 @@ BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.07"
|
||||
BR2_TARGET_UBOOT_PATCH="board/allwinner-generic/suniv-f1c100s/patch/uboot board/YuzukiHD/YuzukiCore-F1/patch/uboot"
|
||||
BR2_TARGET_UBOOT_PATCH="board/allwinner-generic/suniv-f1c100s/patch/uboot board/yuzukihd/yuzukicore-f1/patch/uboot"
|
||||
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/YuzukiHD/YuzukiCore-F1/config/uboot/uboot_YuzukiHD_YuzukiCore-F1_defconfig"
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/yuzukihd/yuzukicore-f1/config/uboot/uboot_yuzukihd_yuzukicore-f1_defconfig"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/uboot/suniv-f1c100s-uboot.dtsi board/YuzukiHD/YuzukiCore-F1/dts/suniv-uboot.dts"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/uboot/suniv-f1c100s-uboot.dtsi board/yuzukihd/yuzukicore-f1/dts/suniv-uboot.dts"
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
@ -6,20 +6,20 @@ BR2_GCC_ENABLE_LTO=y
|
||||
BR2_PACKAGE_HOST_GDB=y
|
||||
BR2_PACKAGE_HOST_GDB_TUI=y
|
||||
BR2_PACKAGE_HOST_GDB_SIM=y
|
||||
BR2_TARGET_GENERIC_HOSTNAME="YuzukiRuler"
|
||||
BR2_TARGET_GENERIC_HOSTNAME="yuzukiruler"
|
||||
BR2_TARGET_GENERIC_ISSUE="Welcome to Yuzuki Ruler"
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
|
||||
BR2_ROOTFS_OVERLAY="board/YuzukiHD/YuzukiRuler/rootfs board/allwinner-generic/suniv-f1c100s/rootfs"
|
||||
BR2_ROOTFS_OVERLAY="board/yuzukihd/yuzukiruler/rootfs board/allwinner-generic/suniv-f1c100s/rootfs"
|
||||
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/allwinner-generic/suniv-generic/scripts/genimage.sh"
|
||||
BR2_ROOTFS_POST_SCRIPT_ARGS="${BR2_TARGET_UBOOT_SPL_NAME}"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.4.180"
|
||||
BR2_LINUX_KERNEL_PATCH="board/allwinner-generic/suniv-f1c100s/patch/linux board/YuzukiHD/YuzukiRuler/patch/linux"
|
||||
BR2_LINUX_KERNEL_PATCH="board/allwinner-generic/suniv-f1c100s/patch/linux board/yuzukihd/yuzukiruler/patch/linux"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/YuzukiHD/YuzukiRuler/config/linux/linux_YuzukiHD_YuzukiRuler_defconfig"
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/yuzukihd/yuzukiruler/config/linux/linux_yuzukihd_yuzukiruler_defconfig"
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/linux/suniv-f1c100s-linux.dtsi board/YuzukiHD/YuzukiRuler/dts/suniv-linux.dts"
|
||||
BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/linux/suniv-f1c100s-linux.dtsi board/yuzukihd/yuzukiruler/dts/suniv-linux.dts"
|
||||
BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
|
||||
BR2_PACKAGE_GDB=y
|
||||
BR2_PACKAGE_FB_TEST_APP=y
|
||||
@ -38,13 +38,13 @@ BR2_TARGET_UBOOT=y
|
||||
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2020.07"
|
||||
BR2_TARGET_UBOOT_PATCH="board/allwinner-generic/suniv-f1c100s/patch/uboot board/YuzukiHD/YuzukiRuler/patch/uboot"
|
||||
BR2_TARGET_UBOOT_PATCH="board/allwinner-generic/suniv-f1c100s/patch/uboot board/yuzukihd/yuzukiruler/patch/uboot"
|
||||
BR2_TARGET_UBOOT_USE_CUSTOM_CONFIG=y
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/YuzukiHD/YuzukiRuler/config/uboot/uboot_YuzukiHD_YuzukiRuler_defconfig"
|
||||
BR2_TARGET_UBOOT_CUSTOM_CONFIG_FILE="board/yuzukihd/yuzukiruler/config/uboot/uboot_yuzukihd_yuzukiruler_defconfig"
|
||||
BR2_TARGET_UBOOT_NEEDS_DTC=y
|
||||
BR2_TARGET_UBOOT_SPL=y
|
||||
BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/uboot/suniv-f1c100s-uboot.dtsi board/YuzukiHD/YuzukiRuler/dts/suniv-uboot.dts"
|
||||
BR2_TARGET_UBOOT_CUSTOM_DTS_PATH="board/allwinner-generic/suniv-f1c100s/dts/uboot/suniv-f1c100s-uboot.dtsi board/yuzukihd/yuzukiruler/dts/suniv-uboot.dts"
|
||||
BR2_PACKAGE_HOST_DOSFSTOOLS=y
|
||||
BR2_PACKAGE_HOST_GENIMAGE=y
|
||||
BR2_PACKAGE_HOST_MTOOLS=y
|
||||
@ -1,14 +1,14 @@
|
||||
<h1 align="center">Buildroot for YuzukiSBC</h1>
|
||||
<p align="center">Open Source development package for for YuzukiHD Boards and more boards</p>
|
||||
<p align="center">Open Source development package for for yuzukihd Boards and more boards</p>
|
||||
|
||||
# Support Lists
|
||||
| Vender | Device | Chip | U-Boot | Linux | Defconfig |
|
||||
| -------- | ----------- | ------- | ------- | ------- | --------- |
|
||||
| YuzukiHD | YuzukiRuler | F1C200s | 2020.07 | 5.4.180 | YuzukiHD_YuzukiRuler_defconfig |
|
||||
| YuzukiHD | YuzukiCore F1 | F1C200s | 2020.07 | 5.4.180 | YuzukiHD_YuzukiCore_F1_defconfig |
|
||||
| Sipeed | lichee nano | F1C100s | 2020.07 | 5.4.180 | Sipeed_lichee_nano_defconfig |
|
||||
| Sipeed | lichee zero | V3s | 2020.07 | 5.4.180 | Sipeed_lichee_zero_defconfig |
|
||||
| AWOL | nezha | D1 | smaeul,u-boot | smaeul,linux | aw-ol_nezha_defconfig |
|
||||
| yuzukihd | yuzukiruler | F1C200s | 2020.07 | 5.4.180 | yuzukihd_yuzukiruler_defconfig |
|
||||
| yuzukihd | YuzukiCore F1 | F1C200s | 2020.07 | 5.4.180 | yuzukihd_YuzukiCore_F1_defconfig |
|
||||
| sipeed | lichee nano | F1C100s | 2020.07 | 5.4.180 | sipeed_lichee_nano_defconfig |
|
||||
| sipeed | lichee zero | V3s | 2020.07 | 5.4.180 | sipeed_lichee_zero_defconfig |
|
||||
| awol | nezha | D1 | smaeul,u-boot | smaeul,linux | aw-ol_nezha_defconfig |
|
||||
|
||||
|
||||
# Install
|
||||
@ -24,7 +24,7 @@ sudo apt install python3-distutils
|
||||
## Download Buildroot BSP
|
||||
**Notice: Root permission is not necessery for download or extract.**
|
||||
```shell
|
||||
git clone https://github.com/YuzukiHD/Buildroot-YuzukiSBC
|
||||
git clone https://github.com/yuzukihd/Buildroot-YuzukiSBC
|
||||
cd Buildroot-YuzukiSBC
|
||||
```
|
||||
|
||||
@ -45,7 +45,7 @@ make *Defconfig Name*
|
||||
|
||||
eg.
|
||||
|
||||
make YuzukiHD_YuzukiRuler_defconfig
|
||||
make yuzukihd_yuzukiruler_defconfig
|
||||
```
|
||||
|
||||
### Regular build
|
||||
|
||||
@ -18,7 +18,7 @@
|
||||
<script>
|
||||
window.$docsify = {
|
||||
name: 'Buildroot for YuzukiSBC',
|
||||
repo: 'YuzukiHD/Buildroot-YuzukiSBC',
|
||||
repo: 'yuzukihd/Buildroot-YuzukiSBC',
|
||||
loadSidebar: false,
|
||||
}
|
||||
</script>
|
||||
|
||||
@ -17,7 +17,7 @@ sudo apt install python3-distutils
|
||||
### Download BSP
|
||||
**Notice: Root permission is not necessery for download or extract.**
|
||||
```shell
|
||||
git clone https://github.com/YuzukiHD/Buildroot-YuzukiSBC
|
||||
git clone https://github.com/yuzukihd/Buildroot-YuzukiSBC
|
||||
```
|
||||
|
||||
## Make the first build
|
||||
@ -30,7 +30,7 @@ Do not use `sudo`
|
||||
|
||||
**Generally, you only need to apply it once.**
|
||||
```shell
|
||||
make YuzukiHD_YuzukiRuler_defconfig
|
||||
make yuzukihd_yuzukiruler_defconfig
|
||||
```
|
||||
|
||||
### Regular build
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user