Skip to content

Commit

Permalink
Finish DuoS EMMC Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishwaldo committed Jun 1, 2024
1 parent 60bf893 commit 5e5f1a6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion configs/common/patches/u-boot/0001-enable-distroboot.patch
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ index 12cdefac84..de5219eb49 100644
+ #define CONFIG_BOOTCOMMAND SHOWLOGOCMD "run distro_bootcmd || run sdboot || run sdbootauto"
#else
- #define CONFIG_BOOTCOMMAND SHOWLOGOCMD "cvi_update || run norboot || run nandboot ||run emmcboot"
+ #define CONFIG_BOOTCOMMAND SHOWLOGOCMD "run distro_bootcmd || cvi_update || run norboot || run nandboot ||run emmcboot"
+ #define CONFIG_BOOTCOMMAND SHOWLOGOCMD "cvi_update || run distro_bootcmd || run norboot || run nandboot ||run emmcboot"
#endif

#if defined(CONFIG_NAND_SUPPORT)
Expand Down
3 changes: 1 addition & 2 deletions configs/duos/dts/cv181x_milkv_duos_sd.dts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
/dts-v1/;
#include "cv181x_base_riscv.dtsi"
#include "cv181x_asic_bga.dtsi"
//#include "cv181x_asic_sd.dtsi"
#include "cv181x_asic_emmc.dtsi"
#include "cv181x_asic_sd.dtsi"
#include "cv181x_default_memmap.dtsi"

#include "dt-bindings/leds/common.h"
Expand Down
1 change: 1 addition & 0 deletions configs/duos/u-boot/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ CONFIG_DEFAULT_DEVICE_TREE="cv181x_asic"
CONFIG_IDENT_STRING=" cvitek_cv181x"
CONFIG_ARCH_RV64I=y
CONFIG_RISCV_SMODE=y
CONFIG_TARGET_CVITEK_CV181X=y
CONFIG_DISTRO_DEFAULTS=y
# CONFIG_ANDROID_BOOT_IMAGE is not set
CONFIG_FIT=y
Expand Down
2 changes: 1 addition & 1 deletion configs/settings.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
KERNELREV="1"
KERNELREV="2"
FSBLVERSION=1.0.0
PACKAGES="ca-certificates debian-archive-keyring dosfstools binutils file tree sudo bash-completion u-boot-menu openssh-server network-manager dnsmasq-base libpam-systemd ppp libengine-pkcs11-openssl iptables systemd-timesyncd vim usbutils parted exfatprogs systemd-sysv i2c-tools net-tools ethtool avahi-utils sudo gnupg rsync gpiod u-boot-tools libubootenv-tool"

Expand Down
7 changes: 4 additions & 3 deletions scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ _PACKAGES = $(patsubst "%,%,$(patsubst %",%,$(PACKAGES)))


$(info $(blue)Board: $(BOARD)$(reset))
$(info $(blue)Storage: $(STORAGE_TYPE)$(reset))
$(info $(blue)Image Addons: $(IMAGE_ADDITIONS)$(reset))
$(info $(blue)Packages: $(_PACKAGES)$(reset))

Expand All @@ -37,8 +38,8 @@ NPROCS := $(shell nproc)
$(BUILDDIR)/linux-prepare-checkout-stamp:
@echo "$(COLOUR_GREEN)Checking out Kernel for $(BOARD)$(END_COLOUR)"
@mkdir -p $(BUILDDIR)
@git clone -b sg200x-dev --depth 1 https://github.com/sophgo/linux_5.10.git /build/kernel
@cd $(BUILDDIR)/kernel && git checkout 25faa0d
@git clone -b sg200x-dev --depth 5 https://github.com/sophgo/linux_5.10.git /build/kernel
@cd $(BUILDDIR)/kernel && git checkout 8b8fbf8
@touch $@

$(BUILDDIR)/linux-prepare-patch-stamp: $(BUILDDIR)/linux-prepare-checkout-stamp
Expand Down Expand Up @@ -203,7 +204,7 @@ $(BUILDDIR)/image-prepare-stamp:

$(BUILDDIR)/image-addons-stamp: $(BUILDDIR)/image-prepare-stamp $(BUILDDIR)/fsbl-package-stamp $(BUILDDIR)/linux-compile-stamp $(addon-targets)
@echo "$(COLOUR_GREEN)Copying Deb files for installation on $(BOARD)$(END_COLOUR)"
@cp /output/cvitek-fsbl-$(BOARD)-*.deb /rootfs/tmp/install/;
@cp /output/cvitek-fsbl-$(BOARD)-*.deb /rootfs/tmp/install/
@cp /output/linux-image-$(BOARD)-*.deb /rootfs/tmp/install/
@cp /output/linux-headers-*.deb /rootfs/tmp/install/
@cp /output/linux-libc-dev*.deb /rootfs/tmp/install/
Expand Down

0 comments on commit 5e5f1a6

Please sign in to comment.