-
Notifications
You must be signed in to change notification settings - Fork 48
WIP: Pinecube #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sonicpp
wants to merge
2
commits into
ccrisan:main
Choose a base branch
from
sonicpp:pinecube
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+190
−0
Open
WIP: Pinecube #79
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| BOOT_BIN=( | ||
| "${BINARIES_DIR}/u-boot-sunxi-with-spl.bin@16" | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| setenv bootargs console=ttyS0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait rw | ||
|
|
||
| fatload mmc 0 ${loadaddr} uEnv.txt | ||
| env import -t ${loadaddr} ${filesize} | ||
|
|
||
| if test -n "${initrd}"; then | ||
| setenv bootargs "${bootargs} initrd=${initrd}" | ||
| fatload mmc 0 ${ramdisk_addr_r} ${initrd} | ||
| setenv initrd_size ${filesize} | ||
| fi | ||
|
|
||
| fatload mmc 0 ${kernel_addr_r} ${kernel} | ||
| fatload mmc 0 ${fdt_addr_r} ${fdt} | ||
|
|
||
| echo "Boot args: ${bootargs}" | ||
| if test -n "${initrd}"; then | ||
| echo "Initrd size is ${initrd_size}" | ||
| bootz ${kernel_addr_r} ${ramdisk_addr_r}:${initrd_size} ${fdt_addr_r} | ||
| else | ||
| bootz ${kernel_addr_r} - ${fdt_addr_r} | ||
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| cp ${BINARIES_DIR}/rootfs.cpio.gz ${BOARD_DIR}/initrd.gz |
Binary file not shown.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| CONFIG_WIRELESS=y | ||
| CONFIG_CFG80211=y # For rtl8189es out-of-tree driver | ||
| CONFIG_BLK_DEV_LOOP=y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| OS_AP="wlan0" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| #!/bin/sh | ||
|
|
||
| cat /boot/uEnv.txt | grep -v initrd > /boot/uEnv.txt.new | ||
| mv /boot/uEnv.txt.new /boot/uEnv.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| pinecube |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/bin/bash | ||
|
|
||
| echo "initrd=initrd.gz" >> /boot/uEnv.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| #!/bin/sh | ||
|
|
||
| cp ${BINARIES_DIR}/zImage ${BOOT_DIR} | ||
| cp ${BINARIES_DIR}/sun8i-s3-pinecube.dtb ${BOOT_DIR} | ||
| cp ${BINARIES_DIR}/boot.scr ${BOOT_DIR} | ||
|
|
||
| cp ${BOARD_DIR}/initrd.gz ${BOOT_DIR} | ||
| cp ${BOARD_DIR}/uEnv.txt ${BOOT_DIR} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| kernel=zImage | ||
| fdt=sun8i-s3-pinecube.dtb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| BR2_arm=y | ||
| BR2_cortex_a7=y | ||
| BR2_ARM_FPU_NEON_VFPV4=y | ||
| BR2_CCACHE=y | ||
| BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-pinecube" | ||
| BR2_OPTIMIZE_2=y | ||
| BR2_TOOLCHAIN_EXTERNAL=y | ||
| BR2_TARGET_OPTIMIZATION="-pipe" | ||
| BR2_TARGET_GENERIC_HOSTNAME="pinecube" | ||
| BR2_TARGET_GENERIC_ISSUE="Welcome to PINECUBE" | ||
| BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y | ||
| BR2_TARGET_TZ_INFO=y | ||
| BR2_ROOTFS_OVERLAY="board/common/overlay board/pinecube/overlay" | ||
| BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh" | ||
| BR2_LINUX_KERNEL=y | ||
| BR2_LINUX_KERNEL_CUSTOM_VERSION=y | ||
| BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.15" | ||
| BR2_LINUX_KERNEL_DEFCONFIG="sunxi" | ||
| BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/pinecube/kernel-extra.config" | ||
| BR2_LINUX_KERNEL_DTS_SUPPORT=y | ||
| BR2_LINUX_KERNEL_INTREE_DTS_NAME="sun8i-s3-pinecube" | ||
| BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y | ||
| BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox.config" | ||
| BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y | ||
| BR2_PACKAGE_ALSA_UTILS=y | ||
| BR2_PACKAGE_ALSA_UTILS_APLAY=y | ||
| BR2_PACKAGE_GZIP=y | ||
| BR2_PACKAGE_JQ=y | ||
| BR2_PACKAGE_E2FSPROGS=y | ||
| BR2_PACKAGE_NTFS_3G=y | ||
| BR2_PACKAGE_B43_FIRMWARE=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_7010=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9170=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_ATHEROS_9271=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8797=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_MWIFIEX_USB8897=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_MEDIATEK_MT7601U=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT61=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT73=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_RTL_87XX=y | ||
| BR2_PACKAGE_LINUX_FIRMWARE_RTL_88XX=y | ||
| BR2_PACKAGE_RNG_TOOLS=y | ||
| BR2_PACKAGE_RTL8189ES=y | ||
| BR2_PACKAGE_USB_MODESWITCH_DATA=y | ||
| BR2_PACKAGE_CA_CERTIFICATES=y | ||
| BR2_PACKAGE_LIBSSH2=y | ||
| BR2_PACKAGE_LIBFUSE=y | ||
| BR2_PACKAGE_LIBCURL=y | ||
| BR2_PACKAGE_LIBCURL_CURL=y | ||
| BR2_PACKAGE_LIBCAP=y | ||
| BR2_PACKAGE_PCRE=y | ||
| BR2_PACKAGE_PCRE_UCP=y | ||
| BR2_PACKAGE_SEMVER_SORT=y | ||
| BR2_PACKAGE_AUTOSSH=y | ||
| BR2_PACKAGE_CHRONY=y | ||
| BR2_PACKAGE_CRDA=y | ||
| BR2_PACKAGE_DHCP=y | ||
| BR2_PACKAGE_DHCP_CLIENT=y | ||
| # BR2_PACKAGE_IFUPDOWN_SCRIPTS is not set | ||
| BR2_PACKAGE_IPTABLES=y | ||
| BR2_PACKAGE_IW=y | ||
| BR2_PACKAGE_NET_TOOLS=y | ||
| BR2_PACKAGE_NETCAT=y | ||
| BR2_PACKAGE_NTP=y | ||
| BR2_PACKAGE_NTP_SNTP=y | ||
| # BR2_PACKAGE_NTP_NTPD is not set | ||
| BR2_PACKAGE_OPENSSH=y | ||
| BR2_PACKAGE_PPPD=y | ||
| BR2_PACKAGE_WIRELESS_TOOLS=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT_EAP=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT_WPS=y | ||
| BR2_PACKAGE_WPA_SUPPLICANT_CLI=y | ||
| BR2_PACKAGE_BASH=y | ||
| BR2_PACKAGE_LOGROTATE=y | ||
| BR2_PACKAGE_TAR=y | ||
| BR2_PACKAGE_UTIL_LINUX_BINARIES=y | ||
| BR2_PACKAGE_UTIL_LINUX_PARTX=y | ||
| BR2_PACKAGE_NANO=y | ||
| BR2_TARGET_UBOOT=y | ||
| BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y | ||
| BR2_TARGET_UBOOT_CUSTOM_VERSION=y | ||
| BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.01" | ||
| BR2_TARGET_UBOOT_BOARD_DEFCONFIG="pinecube" | ||
| BR2_TARGET_UBOOT_NEEDS_DTC=y | ||
| BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y | ||
| BR2_TARGET_UBOOT_NEEDS_OPENSSL=y | ||
| BR2_TARGET_UBOOT_SPL=y | ||
| BR2_TARGET_UBOOT_SPL_NAME="u-boot-sunxi-with-spl.bin" | ||
| BR2_PACKAGE_HOST_UBOOT_TOOLS=y | ||
| BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT=y | ||
| BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT_SOURCE="board/pinecube/boot.cmd" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| BR2_arm=y | ||
| BR2_cortex_a7=y | ||
| BR2_ARM_FPU_NEON_VFPV4=y | ||
| BR2_CCACHE=y | ||
| BR2_CCACHE_DIR="$(TOPDIR)/.buildroot-ccache-pinecube-initramfs" | ||
| BR2_OPTIMIZE_2=y | ||
| BR2_TOOLCHAIN_EXTERNAL=y | ||
| BR2_TARGET_OPTIMIZATION="-pipe" | ||
| BR2_TARGET_GENERIC_HOSTNAME="pinecube" | ||
| BR2_TARGET_GENERIC_ISSUE="Welcome to PINECUBE" | ||
| BR2_ROOTFS_OVERLAY="board/common/overlay-initramfs board/pinecube/overlay-initramfs" | ||
| BR2_PACKAGE_BUSYBOX_CONFIG="board/common/busybox_initramfs.config" | ||
| BR2_PACKAGE_UTIL_LINUX=y | ||
| BR2_PACKAGE_UTIL_LINUX_LIBBLKID=y | ||
| BR2_TARGET_ROOTFS_CPIO=y | ||
| BR2_TARGET_ROOTFS_CPIO_GZIP=y | ||
| # BR2_TARGET_ROOTFS_TAR is not set |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| config BR2_PACKAGE_RTL8189ES | ||
| bool "rtl8189es" | ||
| depends on BR2_LINUX_KERNEL | ||
| help | ||
| Wireless driver rtl8189es. | ||
|
|
||
| https://github.com/jwrdegoede/rtl8189ES_linux.git | ||
|
|
||
| comment "rtl8189es needs a Linux kernel to be built" | ||
| depends on !BR2_LINUX_KERNEL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| # Locally calculated | ||
| sha256 74325014c1a8503b3a7e48ad06997baddad8c1dae86bb79f4368532cc3e75fb2 rtl8189es-39c17661136da48f8e9c644194dce6a7f5076896.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ################################################################################ | ||
| # | ||
| # rtl8189es | ||
| # | ||
| ################################################################################ | ||
|
|
||
| RTL8189ES_VERSION = 39c17661136da48f8e9c644194dce6a7f5076896 | ||
| RTL8189ES_SITE = $(call github,jwrdegoede,rtl8189ES_linux,$(RTL8189ES_VERSION)) | ||
| RTL8189ES_LICENSE = GPL-2.0 | ||
|
|
||
| RTL8189ES_MODULE_MAKE_OPTS = \ | ||
| CONFIG_RTL8189ES=m \ | ||
| KVER=$(LINUX_VERSION_PROBED) \ | ||
| KSRC=$(LINUX_DIR) | ||
|
|
||
| $(eval $(kernel-module)) | ||
| $(eval $(generic-package)) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure the AP interface name here sould be
wlan0? Generally, the kernel will usewlan0to identify the Wi-Fi network card and generate anap0interface.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not 100 % sure how AP should work. With default settings (
ap0), it fails with following lines:When I change it to
wlan0, it works. rtl8189es is out-of-tree driver, so who knows what behavior we can expect.I also see driver logging following lines (among many others) - maybe it fails to generate
ap0interface?[ 25.790226] RTW: cfg80211_rtw_add_virtual_intf(phy0) name:ap0, type:3
[ 25.796709] RTW: WARN adapter pool empty!
[ 25.800840] RTW: cfg80211_rtw_add_virtual_intf(phy0) wdev:00000000, ret:-19