* [Buildroot] [PATCH v5 2/3] configs/lichee_rv: new defconfig
2022-12-14 22:15 [Buildroot] [PATCH v5 1/3] package/rtl8723ds-bt: new package Angelo Compagnucci
@ 2022-12-14 22:15 ` Angelo Compagnucci
2022-12-15 22:00 ` Indrek Kruusa
2022-12-14 22:15 ` [Buildroot] [PATCH v5 3/3] configs/lichee_rv_dock: " Angelo Compagnucci
2022-12-15 21:52 ` [Buildroot] [PATCH v5 1/3] package/rtl8723ds-bt: new package Indrek Kruusa
2 siblings, 1 reply; 6+ messages in thread
From: Angelo Compagnucci @ 2022-12-14 22:15 UTC (permalink / raw)
To: buildroot; +Cc: indrek.kruusa, Angelo Compagnucci
Lichee RV - Nezha CM is a compute module with modular design, equipped
with Allwinner D1 chip (based on T-Head XuanTie C906 core), 512MB DDR3
RAM.
Board support is based on the nezha defconfig already available in
buildroot.
https://wiki.sipeed.com/hardware/en/lichee/RV/RV.html
https://linux-sunxi.org/Sipeed_Lichee_RV
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
v5:
* Fixing typos in readme (Indrek Kruusa)
v4:
* bump to latest kernel/uboot/opensbi as for the nezha defconfig
board/sipeed/lichee_rv/genimage.cfg | 19 +++++++++++
.../overlay/boot/extlinux/extlinux.conf | 4 +++
board/sipeed/lichee_rv/readme.txt | 26 +++++++++++++++
configs/sipeed_lichee_rv_defconfig | 33 +++++++++++++++++++
4 files changed, 82 insertions(+)
create mode 100644 board/sipeed/lichee_rv/genimage.cfg
create mode 100644 board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
create mode 100644 board/sipeed/lichee_rv/readme.txt
create mode 100644 configs/sipeed_lichee_rv_defconfig
diff --git a/board/sipeed/lichee_rv/genimage.cfg b/board/sipeed/lichee_rv/genimage.cfg
new file mode 100644
index 0000000000..d5df41203d
--- /dev/null
+++ b/board/sipeed/lichee_rv/genimage.cfg
@@ -0,0 +1,19 @@
+# Minimal SD card image for the sipeed Lichee RV
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ in-partition-table = false
+ image = "u-boot-sunxi-with-spl.bin"
+ offset = 8K
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ bootable = "true"
+ offset = 1M
+ }
+}
diff --git a/board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf b/board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
new file mode 100644
index 0000000000..91b2298628
--- /dev/null
+++ b/board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
@@ -0,0 +1,4 @@
+label linux
+ kernel /boot/Image
+ # use devicetree from u-boot
+ append console=ttyS0,115200 root=/dev/mmcblk0p1 ro rootwait
diff --git a/board/sipeed/lichee_rv/readme.txt b/board/sipeed/lichee_rv/readme.txt
new file mode 100644
index 0000000000..24e8141851
--- /dev/null
+++ b/board/sipeed/lichee_rv/readme.txt
@@ -0,0 +1,26 @@
+Lichee RV
+===============
+
+Lichee RV - Nezha CM is a compute module with modular design, equipped
+with Allwinner D1 chip (based on T-Head XuanTie C906 core), 512MB DDR3 RAM.
+It can boot from TF card or SD-NAND, uses two sets of M.2 b key 67 pin
+connectors to route all IO, making it convient for wide use and easy to replace.
+
+How to build
+============
+
+$ make sipeed_lichee_rv_defconfig
+$ make
+
+How to write the SD card
+========================
+
+Once the build process is finished you will have an image called "sdcard.img"
+in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an SD card with "dd":
+
+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX
+
+Connect a TTL UART to the debug connector, insert the microSD card and
+plug in a USB-C cable to the PWR connector to boot the system.
diff --git a/configs/sipeed_lichee_rv_defconfig b/configs/sipeed_lichee_rv_defconfig
new file mode 100644
index 0000000000..f9782f870b
--- /dev/null
+++ b/configs/sipeed_lichee_rv_defconfig
@@ -0,0 +1,33 @@
+BR2_riscv=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0=y
+BR2_ROOTFS_OVERLAY="board/sipeed/lichee_rv/overlay"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/sipeed/lichee_rv/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,smaeul,linux,ca67838d84af4c9f85d06311c9e98e1adf46308f)/linux-ca67838d84af4c9f85d06311c9e98e1adf46308f.tar.gz"
+BR2_LINUX_KERNEL_DEFCONFIG="nezha"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun20i-d1-lichee-rv"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_OPENSBI=y
+BR2_TARGET_OPENSBI_CUSTOM_VERSION=y
+BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE="1.1"
+BR2_TARGET_OPENSBI_PLAT="generic"
+# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,smaeul,u-boot,528ae9bc6c55edd3ffe642734b4132a8246ea777)/uboot-528ae9bc6c55edd3ffe642734b4132a8246ea777.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="lichee_rv_dock"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_NEEDS_OPENSBI=y
+# BR2_TARGET_UBOOT_FORMAT_BIN is not set
+BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
+BR2_PACKAGE_HOST_GENIMAGE=y
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [Buildroot] [PATCH v5 2/3] configs/lichee_rv: new defconfig
2022-12-14 22:15 ` [Buildroot] [PATCH v5 2/3] configs/lichee_rv: new defconfig Angelo Compagnucci
@ 2022-12-15 22:00 ` Indrek Kruusa
0 siblings, 0 replies; 6+ messages in thread
From: Indrek Kruusa @ 2022-12-15 22:00 UTC (permalink / raw)
To: Angelo Compagnucci; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 5688 bytes --]
Kontakt Angelo Compagnucci (<angelo@amarulasolutions.com>) kirjutas
kuupäeval N, 15. detsember 2022 kell 00:15:
> Lichee RV - Nezha CM is a compute module with modular design, equipped
> with Allwinner D1 chip (based on T-Head XuanTie C906 core), 512MB DDR3
> RAM.
> Board support is based on the nezha defconfig already available in
> buildroot.
>
> https://wiki.sipeed.com/hardware/en/lichee/RV/RV.html
> https://linux-sunxi.org/Sipeed_Lichee_RV
>
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
>
Reviewed-by: Indrek Kruusa <indrek.kruusa@gmail.com>
I also did a clean build for 'sipeed_lichee_rv_defconfig' and booted the
image on the Lichee RV dock without issues. Therefore:
Tested-by: Indrek Kruusa <indrek.kruusa@gmail.com>
> ---
> v5:
> * Fixing typos in readme (Indrek Kruusa)
> v4:
> * bump to latest kernel/uboot/opensbi as for the nezha defconfig
>
> board/sipeed/lichee_rv/genimage.cfg | 19 +++++++++++
> .../overlay/boot/extlinux/extlinux.conf | 4 +++
> board/sipeed/lichee_rv/readme.txt | 26 +++++++++++++++
> configs/sipeed_lichee_rv_defconfig | 33 +++++++++++++++++++
> 4 files changed, 82 insertions(+)
> create mode 100644 board/sipeed/lichee_rv/genimage.cfg
> create mode 100644
> board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
> create mode 100644 board/sipeed/lichee_rv/readme.txt
> create mode 100644 configs/sipeed_lichee_rv_defconfig
>
> diff --git a/board/sipeed/lichee_rv/genimage.cfg
> b/board/sipeed/lichee_rv/genimage.cfg
> new file mode 100644
> index 0000000000..d5df41203d
> --- /dev/null
> +++ b/board/sipeed/lichee_rv/genimage.cfg
> @@ -0,0 +1,19 @@
> +# Minimal SD card image for the sipeed Lichee RV
> +
> +image sdcard.img {
> + hdimage {
> + }
> +
> + partition u-boot {
> + in-partition-table = false
> + image = "u-boot-sunxi-with-spl.bin"
> + offset = 8K
> + }
> +
> + partition rootfs {
> + partition-type = 0x83
> + image = "rootfs.ext4"
> + bootable = "true"
> + offset = 1M
> + }
> +}
> diff --git a/board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
> b/board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
> new file mode 100644
> index 0000000000..91b2298628
> --- /dev/null
> +++ b/board/sipeed/lichee_rv/overlay/boot/extlinux/extlinux.conf
> @@ -0,0 +1,4 @@
> +label linux
> + kernel /boot/Image
> + # use devicetree from u-boot
> + append console=ttyS0,115200 root=/dev/mmcblk0p1 ro rootwait
> diff --git a/board/sipeed/lichee_rv/readme.txt
> b/board/sipeed/lichee_rv/readme.txt
> new file mode 100644
> index 0000000000..24e8141851
> --- /dev/null
> +++ b/board/sipeed/lichee_rv/readme.txt
> @@ -0,0 +1,26 @@
> +Lichee RV
> +===============
> +
> +Lichee RV - Nezha CM is a compute module with modular design, equipped
> +with Allwinner D1 chip (based on T-Head XuanTie C906 core), 512MB DDR3
> RAM.
> +It can boot from TF card or SD-NAND, uses two sets of M.2 b key 67 pin
> +connectors to route all IO, making it convient for wide use and easy to
> replace.
> +
> +How to build
> +============
> +
> +$ make sipeed_lichee_rv_defconfig
> +$ make
> +
> +How to write the SD card
> +========================
> +
> +Once the build process is finished you will have an image called
> "sdcard.img"
> +in the output/images/ directory.
> +
> +Copy the bootable "sdcard.img" onto an SD card with "dd":
> +
> + $ sudo dd if=output/images/sdcard.img of=/dev/sdX
> +
> +Connect a TTL UART to the debug connector, insert the microSD card and
> +plug in a USB-C cable to the PWR connector to boot the system.
> diff --git a/configs/sipeed_lichee_rv_defconfig
> b/configs/sipeed_lichee_rv_defconfig
> new file mode 100644
> index 0000000000..f9782f870b
> --- /dev/null
> +++ b/configs/sipeed_lichee_rv_defconfig
> @@ -0,0 +1,33 @@
> +BR2_riscv=y
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0=y
> +BR2_ROOTFS_OVERLAY="board/sipeed/lichee_rv/overlay"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/sipeed/lichee_rv/genimage.cfg"
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
> +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call
> github,smaeul,linux,ca67838d84af4c9f85d06311c9e98e1adf46308f)/linux-ca67838d84af4c9f85d06311c9e98e1adf46308f.tar.gz"
> +BR2_LINUX_KERNEL_DEFCONFIG="nezha"
> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun20i-d1-lichee-rv"
> +BR2_LINUX_KERNEL_INSTALL_TARGET=y
> +BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_4=y
> +# BR2_TARGET_ROOTFS_TAR is not set
> +BR2_TARGET_OPENSBI=y
> +BR2_TARGET_OPENSBI_CUSTOM_VERSION=y
> +BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE="1.1"
> +BR2_TARGET_OPENSBI_PLAT="generic"
> +# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set
> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
> +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call
> github,smaeul,u-boot,528ae9bc6c55edd3ffe642734b4132a8246ea777)/uboot-528ae9bc6c55edd3ffe642734b4132a8246ea777.tar.gz"
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="lichee_rv_dock"
> +BR2_TARGET_UBOOT_NEEDS_DTC=y
> +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
> +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
> +BR2_TARGET_UBOOT_NEEDS_OPENSBI=y
> +# BR2_TARGET_UBOOT_FORMAT_BIN is not set
> +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
> +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
> +BR2_PACKAGE_HOST_GENIMAGE=y
> --
> 2.34.1
>
>
[-- Attachment #1.2: Type: text/html, Size: 7050 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH v5 3/3] configs/lichee_rv_dock: new defconfig
2022-12-14 22:15 [Buildroot] [PATCH v5 1/3] package/rtl8723ds-bt: new package Angelo Compagnucci
2022-12-14 22:15 ` [Buildroot] [PATCH v5 2/3] configs/lichee_rv: new defconfig Angelo Compagnucci
@ 2022-12-14 22:15 ` Angelo Compagnucci
2022-12-15 22:09 ` Indrek Kruusa
2022-12-15 21:52 ` [Buildroot] [PATCH v5 1/3] package/rtl8723ds-bt: new package Indrek Kruusa
2 siblings, 1 reply; 6+ messages in thread
From: Angelo Compagnucci @ 2022-12-14 22:15 UTC (permalink / raw)
To: buildroot; +Cc: indrek.kruusa, Angelo Compagnucci
Lichee RV Dock is a RISC-V Linux development kits with high integration,
small size and affordable price designed for opensource developer.
https://wiki.sipeed.com/hardware/en/lichee/RV/Dock.html
Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
---
v5:
* Fixing typos in readme (Indrek Kruusa)
v4:
* Bump to the latest kernel/uboot/opensbi as per nezha defconfig
v3:
* Use kernel config fragment to enable RTL8723DS-BT driver
* Use mdev to let the system load device drivers modules at boot
(rtl8723ds wifi and bluetooth)
board/sipeed/lichee_rv_dock/genimage.cfg | 19 ++++++++
board/sipeed/lichee_rv_dock/linux.fragment | 7 +++
.../overlay/etc/network/interfaces | 6 +++
.../overlay/etc/wpa_supplicant.conf | 8 ++++
board/sipeed/lichee_rv_dock/readme.txt | 45 +++++++++++++++++++
configs/sipeed_lichee_rv_dock_defconfig | 41 +++++++++++++++++
6 files changed, 126 insertions(+)
create mode 100644 board/sipeed/lichee_rv_dock/genimage.cfg
create mode 100644 board/sipeed/lichee_rv_dock/linux.fragment
create mode 100644 board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
create mode 100644 board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
create mode 100644 board/sipeed/lichee_rv_dock/readme.txt
create mode 100644 configs/sipeed_lichee_rv_dock_defconfig
diff --git a/board/sipeed/lichee_rv_dock/genimage.cfg b/board/sipeed/lichee_rv_dock/genimage.cfg
new file mode 100644
index 0000000000..38078f0ae3
--- /dev/null
+++ b/board/sipeed/lichee_rv_dock/genimage.cfg
@@ -0,0 +1,19 @@
+# Minimal SD card image for the sipeed Lichee RV dock
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition u-boot {
+ in-partition-table = false
+ image = "u-boot-sunxi-with-spl.bin"
+ offset = 8K
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext4"
+ bootable = "true"
+ offset = 1M
+ }
+}
diff --git a/board/sipeed/lichee_rv_dock/linux.fragment b/board/sipeed/lichee_rv_dock/linux.fragment
new file mode 100644
index 0000000000..10016889ab
--- /dev/null
+++ b/board/sipeed/lichee_rv_dock/linux.fragment
@@ -0,0 +1,7 @@
+CONFIG_BT=y
+CONFIG_BT_HCIUART=m
+CONFIG_BT_HCIUART_SERDEV=y
+CONFIG_BT_HCIUART_3WIRE=y
+CONFIG_BT_HCIUART_RTL=y
+CONFIG_SERIAL_DEV_BUS=y
+CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
diff --git a/board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces b/board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
new file mode 100644
index 0000000000..89e7d74aff
--- /dev/null
+++ b/board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
@@ -0,0 +1,6 @@
+auto lo
+iface lo inet loopback
+
+auto wlan0
+iface wlan0 inet dhcp
+wpa-conf /etc/wpa_supplicant.conf
diff --git a/board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf b/board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
new file mode 100644
index 0000000000..b43292b0a7
--- /dev/null
+++ b/board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
@@ -0,0 +1,8 @@
+ap_scan=1
+
+network={
+ ssid="YOURSSID"
+ scan_ssid=1
+ key_mgmt=WPA-PSK
+ psk="YOURPASSWD"
+}
diff --git a/board/sipeed/lichee_rv_dock/readme.txt b/board/sipeed/lichee_rv_dock/readme.txt
new file mode 100644
index 0000000000..05e1e8d43b
--- /dev/null
+++ b/board/sipeed/lichee_rv_dock/readme.txt
@@ -0,0 +1,45 @@
+Lichee RV dock
+===============
+
+Lichee RV Dock is a RISC-V Linux development kits with high integration, small
+size and affordable price designed for opensource developer. It's equipped with
+HDMI interface and it supports many screen by its screen convert board. It's
+also equipped with many peripherals, including a UAB-A port, 2.4G Wifi-BT module,
+an analog microphone and a speaker jack interface.
+
+How to build
+============
+
+$ make sipeed_lichee_rv_dock_defconfig
+$ make
+
+Wifi
+==========
+
+Edit board/sipeed/lichee_rv/overlay_dock/etc/wpa_supplicant.conf or
+/etc/wpa_supplicant.conf once connected to the board:
+
+* Replace YOURSSID with your AP ssid
+* Replace YOURPASSWD with your AP password
+
+Bluetooth
+==========
+
+To make the device discoverable and pairable, once connected to the board:
+
+* bluetoothctl power on
+* bluetoothctl discoverable yes
+* bluetoothctl pairable yes
+
+How to write the SD card
+========================
+
+Once the build process is finished you will have an image called "sdcard.img"
+in the output/images/ directory.
+
+Copy the bootable "sdcard.img" onto an SD card with "dd":
+
+ $ sudo dd if=output/images/sdcard.img of=/dev/sdX
+
+Connect a TTL UART to the debug connector, insert the microSD card and
+plug in a USB-C cable to the PWR connector to boot the system.
diff --git a/configs/sipeed_lichee_rv_dock_defconfig b/configs/sipeed_lichee_rv_dock_defconfig
new file mode 100644
index 0000000000..7c8c6788fa
--- /dev/null
+++ b/configs/sipeed_lichee_rv_dock_defconfig
@@ -0,0 +1,41 @@
+BR2_riscv=y
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0=y
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
+BR2_ROOTFS_OVERLAY="board/sipeed/lichee_rv/overlay board/sipeed/lichee_rv_dock/overlay"
+BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
+BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/sipeed/lichee_rv_dock/genimage.cfg"
+BR2_LINUX_KERNEL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
+BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,smaeul,linux,ca67838d84af4c9f85d06311c9e98e1adf46308f)/linux-ca67838d84af4c9f85d06311c9e98e1adf46308f.tar.gz"
+BR2_LINUX_KERNEL_DEFCONFIG="nezha"
+BR2_LINUX_KERNEL_DTS_SUPPORT=y
+BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun20i-d1-lichee-rv-dock"
+BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/sipeed/lichee_rv_dock/linux.fragment"
+BR2_LINUX_KERNEL_INSTALL_TARGET=y
+BR2_PACKAGE_RTL8723DS=y
+BR2_PACKAGE_RTL8723DS_BT=y
+BR2_PACKAGE_BLUEZ5_UTILS=y
+BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
+BR2_PACKAGE_WPA_SUPPLICANT=y
+BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y
+BR2_TARGET_ROOTFS_EXT2=y
+BR2_TARGET_ROOTFS_EXT2_4=y
+# BR2_TARGET_ROOTFS_TAR is not set
+BR2_TARGET_OPENSBI=y
+BR2_TARGET_OPENSBI_CUSTOM_VERSION=y
+BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE="1.1"
+BR2_TARGET_OPENSBI_PLAT="generic"
+# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set
+BR2_TARGET_UBOOT=y
+BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
+BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call github,smaeul,u-boot,528ae9bc6c55edd3ffe642734b4132a8246ea777)/uboot-528ae9bc6c55edd3ffe642734b4132a8246ea777.tar.gz"
+BR2_TARGET_UBOOT_BOARD_DEFCONFIG="lichee_rv_dock"
+BR2_TARGET_UBOOT_NEEDS_DTC=y
+BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
+BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
+BR2_TARGET_UBOOT_NEEDS_OPENSBI=y
+# BR2_TARGET_UBOOT_FORMAT_BIN is not set
+BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
+BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
+BR2_PACKAGE_HOST_GENIMAGE=y
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [Buildroot] [PATCH v5 3/3] configs/lichee_rv_dock: new defconfig
2022-12-14 22:15 ` [Buildroot] [PATCH v5 3/3] configs/lichee_rv_dock: " Angelo Compagnucci
@ 2022-12-15 22:09 ` Indrek Kruusa
0 siblings, 0 replies; 6+ messages in thread
From: Indrek Kruusa @ 2022-12-15 22:09 UTC (permalink / raw)
To: Angelo Compagnucci; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 7887 bytes --]
Kontakt Angelo Compagnucci (<angelo@amarulasolutions.com>) kirjutas
kuupäeval N, 15. detsember 2022 kell 00:15:
> Lichee RV Dock is a RISC-V Linux development kits with high integration,
> small size and affordable price designed for opensource developer.
>
> https://wiki.sipeed.com/hardware/en/lichee/RV/Dock.html
>
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
> ---
> v5:
> * Fixing typos in readme (Indrek Kruusa)
> v4:
> * Bump to the latest kernel/uboot/opensbi as per nezha defconfig
> v3:
> * Use kernel config fragment to enable RTL8723DS-BT driver
> * Use mdev to let the system load device drivers modules at boot
> (rtl8723ds wifi and bluetooth)
>
> board/sipeed/lichee_rv_dock/genimage.cfg | 19 ++++++++
> board/sipeed/lichee_rv_dock/linux.fragment | 7 +++
> .../overlay/etc/network/interfaces | 6 +++
> .../overlay/etc/wpa_supplicant.conf | 8 ++++
> board/sipeed/lichee_rv_dock/readme.txt | 45 +++++++++++++++++++
> configs/sipeed_lichee_rv_dock_defconfig | 41 +++++++++++++++++
> 6 files changed, 126 insertions(+)
> create mode 100644 board/sipeed/lichee_rv_dock/genimage.cfg
> create mode 100644 board/sipeed/lichee_rv_dock/linux.fragment
> create mode 100644
> board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
> create mode 100644
> board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
> create mode 100644 board/sipeed/lichee_rv_dock/readme.txt
> create mode 100644 configs/sipeed_lichee_rv_dock_defconfig
>
> diff --git a/board/sipeed/lichee_rv_dock/genimage.cfg
> b/board/sipeed/lichee_rv_dock/genimage.cfg
> new file mode 100644
> index 0000000000..38078f0ae3
> --- /dev/null
> +++ b/board/sipeed/lichee_rv_dock/genimage.cfg
> @@ -0,0 +1,19 @@
> +# Minimal SD card image for the sipeed Lichee RV dock
> +
> +image sdcard.img {
> + hdimage {
> + }
> +
> + partition u-boot {
> + in-partition-table = false
> + image = "u-boot-sunxi-with-spl.bin"
> + offset = 8K
> + }
> +
> + partition rootfs {
> + partition-type = 0x83
> + image = "rootfs.ext4"
> + bootable = "true"
> + offset = 1M
> + }
> +}
> diff --git a/board/sipeed/lichee_rv_dock/linux.fragment
> b/board/sipeed/lichee_rv_dock/linux.fragment
> new file mode 100644
> index 0000000000..10016889ab
> --- /dev/null
> +++ b/board/sipeed/lichee_rv_dock/linux.fragment
> @@ -0,0 +1,7 @@
> +CONFIG_BT=y
> +CONFIG_BT_HCIUART=m
> +CONFIG_BT_HCIUART_SERDEV=y
> +CONFIG_BT_HCIUART_3WIRE=y
> +CONFIG_BT_HCIUART_RTL=y
> +CONFIG_SERIAL_DEV_BUS=y
> +CONFIG_SERIAL_DEV_CTRL_TTYPORT=y
> diff --git a/board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
> b/board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
> new file mode 100644
> index 0000000000..89e7d74aff
> --- /dev/null
> +++ b/board/sipeed/lichee_rv_dock/overlay/etc/network/interfaces
> @@ -0,0 +1,6 @@
> +auto lo
> +iface lo inet loopback
> +
> +auto wlan0
> +iface wlan0 inet dhcp
> +wpa-conf /etc/wpa_supplicant.conf
> diff --git a/board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
> b/board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
> new file mode 100644
> index 0000000000..b43292b0a7
> --- /dev/null
> +++ b/board/sipeed/lichee_rv_dock/overlay/etc/wpa_supplicant.conf
> @@ -0,0 +1,8 @@
> +ap_scan=1
> +
> +network={
> + ssid="YOURSSID"
> + scan_ssid=1
> + key_mgmt=WPA-PSK
> + psk="YOURPASSWD"
> +}
> diff --git a/board/sipeed/lichee_rv_dock/readme.txt
> b/board/sipeed/lichee_rv_dock/readme.txt
> new file mode 100644
> index 0000000000..05e1e8d43b
> --- /dev/null
> +++ b/board/sipeed/lichee_rv_dock/readme.txt
> @@ -0,0 +1,45 @@
> +Lichee RV dock
> +===============
> +
> +Lichee RV Dock is a RISC-V Linux development kits with high integration,
> small
> +size and affordable price designed for opensource developer. It's
> equipped with
> +HDMI interface and it supports many screen by its screen convert board.
> It's
> +also equipped with many peripherals, including a UAB-A port, 2.4G Wifi-BT
> module,
> +an analog microphone and a speaker jack interface.
> +
> +How to build
> +============
> +
> +$ make sipeed_lichee_rv_dock_defconfig
> +$ make
> +
> +Wifi
> +==========
> +
> +Edit board/sipeed/lichee_rv/overlay_dock/etc/wpa_supplicant.conf or
>
No, this mistake in the path is not fixed.
But I did a clean build for 'sipeed_lichee_rv_dock_defconfig' and booted it
on the Lichee RV dock without issues. So you can add:
Tested-by: Indrek Kruusa <indrek.kruusa@gmail.com>
> +/etc/wpa_supplicant.conf once connected to the board:
> +
> +* Replace YOURSSID with your AP ssid
> +* Replace YOURPASSWD with your AP password
> +
> +Bluetooth
> +==========
> +
> +To make the device discoverable and pairable, once connected to the board:
> +
> +* bluetoothctl power on
> +* bluetoothctl discoverable yes
> +* bluetoothctl pairable yes
> +
> +How to write the SD card
> +========================
> +
> +Once the build process is finished you will have an image called
> "sdcard.img"
> +in the output/images/ directory.
> +
> +Copy the bootable "sdcard.img" onto an SD card with "dd":
> +
> + $ sudo dd if=output/images/sdcard.img of=/dev/sdX
> +
> +Connect a TTL UART to the debug connector, insert the microSD card and
> +plug in a USB-C cable to the PWR connector to boot the system.
> diff --git a/configs/sipeed_lichee_rv_dock_defconfig
> b/configs/sipeed_lichee_rv_dock_defconfig
> new file mode 100644
> index 0000000000..7c8c6788fa
> --- /dev/null
> +++ b/configs/sipeed_lichee_rv_dock_defconfig
> @@ -0,0 +1,41 @@
> +BR2_riscv=y
> +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0=y
> +BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
> +BR2_ROOTFS_OVERLAY="board/sipeed/lichee_rv/overlay
> board/sipeed/lichee_rv_dock/overlay"
> +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/sipeed/lichee_rv_dock/genimage.cfg"
> +BR2_LINUX_KERNEL=y
> +BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
> +BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call
> github,smaeul,linux,ca67838d84af4c9f85d06311c9e98e1adf46308f)/linux-ca67838d84af4c9f85d06311c9e98e1adf46308f.tar.gz"
> +BR2_LINUX_KERNEL_DEFCONFIG="nezha"
> +BR2_LINUX_KERNEL_DTS_SUPPORT=y
> +BR2_LINUX_KERNEL_INTREE_DTS_NAME="allwinner/sun20i-d1-lichee-rv-dock"
>
> +BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/sipeed/lichee_rv_dock/linux.fragment"
> +BR2_LINUX_KERNEL_INSTALL_TARGET=y
> +BR2_PACKAGE_RTL8723DS=y
> +BR2_PACKAGE_RTL8723DS_BT=y
> +BR2_PACKAGE_BLUEZ5_UTILS=y
> +BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y
> +BR2_PACKAGE_WPA_SUPPLICANT=y
> +BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y
> +BR2_TARGET_ROOTFS_EXT2=y
> +BR2_TARGET_ROOTFS_EXT2_4=y
> +# BR2_TARGET_ROOTFS_TAR is not set
> +BR2_TARGET_OPENSBI=y
> +BR2_TARGET_OPENSBI_CUSTOM_VERSION=y
> +BR2_TARGET_OPENSBI_CUSTOM_VERSION_VALUE="1.1"
> +BR2_TARGET_OPENSBI_PLAT="generic"
> +# BR2_TARGET_OPENSBI_INSTALL_JUMP_IMG is not set
> +BR2_TARGET_UBOOT=y
> +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
> +BR2_TARGET_UBOOT_CUSTOM_TARBALL=y
> +BR2_TARGET_UBOOT_CUSTOM_TARBALL_LOCATION="$(call
> github,smaeul,u-boot,528ae9bc6c55edd3ffe642734b4132a8246ea777)/uboot-528ae9bc6c55edd3ffe642734b4132a8246ea777.tar.gz"
> +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="lichee_rv_dock"
> +BR2_TARGET_UBOOT_NEEDS_DTC=y
> +BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
> +BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
> +BR2_TARGET_UBOOT_NEEDS_OPENSBI=y
> +# BR2_TARGET_UBOOT_FORMAT_BIN is not set
> +BR2_TARGET_UBOOT_FORMAT_CUSTOM=y
> +BR2_TARGET_UBOOT_FORMAT_CUSTOM_NAME="u-boot-sunxi-with-spl.bin"
> +BR2_PACKAGE_HOST_GENIMAGE=y
> --
> 2.34.1
>
>
[-- Attachment #1.2: Type: text/html, Size: 9294 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH v5 1/3] package/rtl8723ds-bt: new package
2022-12-14 22:15 [Buildroot] [PATCH v5 1/3] package/rtl8723ds-bt: new package Angelo Compagnucci
2022-12-14 22:15 ` [Buildroot] [PATCH v5 2/3] configs/lichee_rv: new defconfig Angelo Compagnucci
2022-12-14 22:15 ` [Buildroot] [PATCH v5 3/3] configs/lichee_rv_dock: " Angelo Compagnucci
@ 2022-12-15 21:52 ` Indrek Kruusa
2 siblings, 0 replies; 6+ messages in thread
From: Indrek Kruusa @ 2022-12-15 21:52 UTC (permalink / raw)
To: Angelo Compagnucci; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 4326 bytes --]
Kontakt Angelo Compagnucci (<angelo@amarulasolutions.com>) kirjutas
kuupäeval N, 15. detsember 2022 kell 00:15:
> This package install the required firmware for enabling the
> Bluetooth device embedded in the RTL8723DS chip.
> The driver is included in Linux main tree and can be enabled
> with the BT_HCIUART_RTL symbol.
>
> Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
>
I did the clean build + boot testing with Lichee RV dock
(sipeed_lichee_rv_dock_defconfig) which is using this package. From the log:
Starting mdev... OK
[ 7.044734] Bluetooth: HCI UART driver ver 2.3
[ 7.050998] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 7.805105] Bluetooth: hci0: RTL: examining hci_ver=08 hci_rev=000d
lmp_ver=08 lmp_subver=8723
[ 7.817938] Bluetooth: hci0: RTL: rom_version status=0 version=2
[ 7.824105] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723ds_fw.bin
[ 8.073287] 8723ds: loading out-of-tree module taints kernel.
[ 8.085577] Bluetooth: hci0: RTL: loading rtl_bt/rtl8723ds_config.bin
[ 8.117338] Bluetooth: hci0: RTL: cfg_sz 47, total sz 30775
[ 8.637554] Bluetooth: hci0: RTL: fw version 0xaa6c133b
Initializing random number generator: OK
Saving random seed: OK
Starting system message bus: done
If that counts as a test from patch perspective then:
Tested-by: Indrek Kruusa <indrek.kruusa@gmail.com>
> ---
> v3:
> * Simplified package (Thomas, Yann)
> * Package now only installs firmware (Thomas, Yann)
>
> package/Config.in | 1 +
> package/rtl8723ds-bt/Config.in | 6 ++++++
> package/rtl8723ds-bt/rtl8723ds-bt.hash | 2 ++
> package/rtl8723ds-bt/rtl8723ds-bt.mk | 17 +++++++++++++++++
> 4 files changed, 26 insertions(+)
> create mode 100644 package/rtl8723ds-bt/Config.in
> create mode 100644 package/rtl8723ds-bt/rtl8723ds-bt.hash
> create mode 100644 package/rtl8723ds-bt/rtl8723ds-bt.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 914c3584e9..999feae08a 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -585,6 +585,7 @@ endmenu
> source "package/rtl8192eu/Config.in"
> source "package/rtl8723bu/Config.in"
> source "package/rtl8723ds/Config.in"
> + source "package/rtl8723ds-bt/Config.in"
> source "package/rtl8812au-aircrack-ng/Config.in"
> source "package/rtl8821au/Config.in"
> source "package/sane-backends/Config.in"
> diff --git a/package/rtl8723ds-bt/Config.in
> b/package/rtl8723ds-bt/Config.in
> new file mode 100644
> index 0000000000..0a604310c0
> --- /dev/null
> +++ b/package/rtl8723ds-bt/Config.in
> @@ -0,0 +1,6 @@
> +config BR2_PACKAGE_RTL8723DS_BT
> + bool "rtl8723ds-bt"
> + help
> + rtl8723ds UART attached Bluetooth module firmware.
> +
> + https://github.com/wsyco/RTL8723DS_BT_Linux
> diff --git a/package/rtl8723ds-bt/rtl8723ds-bt.hash
> b/package/rtl8723ds-bt/rtl8723ds-bt.hash
> new file mode 100644
> index 0000000000..1ec4e350f9
> --- /dev/null
> +++ b/package/rtl8723ds-bt/rtl8723ds-bt.hash
> @@ -0,0 +1,2 @@
> +# Locally computed
> +sha256 9e70a981946abeeb6437d9a27d8437cea15aa4df72f8d56ded0ae28af484d2f4
> rtl8723ds-bt-14cedf3a9fec1aa8c500fa52f3e3acc433cbcf08.tar.gz
> diff --git a/package/rtl8723ds-bt/rtl8723ds-bt.mk b/package/rtl8723ds-bt/
> rtl8723ds-bt.mk
> new file mode 100644
> index 0000000000..efd0a5bae9
> --- /dev/null
> +++ b/package/rtl8723ds-bt/rtl8723ds-bt.mk
> @@ -0,0 +1,17 @@
>
> +################################################################################
> +#
> +# rtl8723ds-bt
> +#
>
> +################################################################################
> +
> +RTL8723DS_BT_VERSION = 14cedf3a9fec1aa8c500fa52f3e3acc433cbcf08
> +RTL8723DS_BT_SITE = $(call
> github,wsyco,RTL8723DS_BT_Linux,$(RTL8723DS_BT_VERSION))
> +RTL8723DS_BT_LICENSE = PROPRIETARY
> +
> +define RTL8723DS_BT_INSTALL_TARGET_CMDS
> + mkdir -p $(TARGET_DIR)/lib/firmware/rtl_bt/
> + cp $(@D)/8723D/rtl8723d_fw
> $(TARGET_DIR)/lib/firmware/rtl_bt/rtl8723ds_fw.bin
> + cp $(@D)/8723D/rtl8723d_config
> $(TARGET_DIR)/lib/firmware/rtl_bt/rtl8723ds_config.bin
> +endef
> +
> +$(eval $(generic-package))
> --
> 2.34.1
>
>
[-- Attachment #1.2: Type: text/html, Size: 5729 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread