

Johan S
-
Posts
4 -
Joined
-
Last visited
Reputation Activity
-
Johan S reacted to Nick A in How to install armbian in h618?
Hi Johan,
Try the firmware from https://github.com/LibreELEC/brcmfmac_sdio-firmware
brcmfmac4334-sdio.txt
brcmfmac4334-sdio.bin
Rename brcmfmac4334-sdio.bin to brcmfmac4334-sdio.transpeed,8k618-t.bin or create a link.
copy the files into your /lib/firmware/brcm/ directory.
-
Johan S reacted to Nick A in How to install armbian in h618?
Hi Kazekami, It's not so simple. First you would need a working DTS and u-boot defconfig for your box. You can use mine and modify it with your box settings.
OrangePi-Zero2 uses the same wifi/bt aw859a chip. You can borrow code off that board to get WIFI to work.
https://github.com/orangepi-xunlong/linux-orangepi/blob/orange-pi-6.1-sun50iw9/arch/arm64/boot/dts/allwinner/sun50i-h616-orangepi-zero2.dts
https://github.com/warpme/minimyth2/blob/master/script/kernel/linux-6.10/files/0641-arm64-dts-allwinner-h616-OrangePI-Zero23-enable-ths-hdmi-audio.patch
Your GPIO might be a different value. You can find the correct settings in your android dts.
"reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */"
reg_vcc33_wifi: vcc33-wifi { /* Always on 3.3V regulator for WiFi and BT */ compatible = "regulator-fixed"; regulator-name = "vcc33-wifi"; regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; regulator-always-on; vin-supply = <®_vcc5v>; }; reg_vcc_wifi_io: vcc-wifi-io { /* Always on 1.8V/300mA regulator for WiFi and BT IO */ compatible = "regulator-fixed"; regulator-name = "vcc-wifi-io"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; regulator-always-on; vin-supply = <®_vcc33_wifi>; }; wifi_pwrseq: wifi-pwrseq { compatible = "mmc-pwrseq-simple"; clocks = <&rtc 1>; clock-names = "osc32k-out"; reset-gpios = <&pio 6 18 GPIO_ACTIVE_LOW>; /* PG18 */ post-power-on-delay-ms = <200>; }; . . . &mmc1 { vmmc-supply = <®_vcc33_wifi>; vqmmc-supply = <®_vcc_wifi_io>; mmc-pwrseq = <&wifi_pwrseq>; bus-width = <4>; non-removable; mmc-ddr-1_8v; status = "okay"; };
You would need to create patches for your box. Make your changes to both u-boot and kernel sun50i-h618-transpeed-8k618-t.dts.
git clone https://github.com/NickAlilovic/build.git
cd build
./compile.sh
In the choose board menu click on "Show CSC/WIP/EOS/TVB" option then choose "transpeed-8k618-t". Choose "bleeding edge", "bookworm", server or desktop doesn't matter. Any desktop environment. Any software.
(After the kernel patches are applied and kernel starts to build)
ctrl C
Create patches for u-boot:
cd cache/sources/u-boot-worktree/u-boot/v2024.01
sudo git add .
(For the first line patch title you can put "test" and the second line patch description put "test". Doesn't matter right now.)
sudo git commit --signoff
sudo pico arch/arm/dts/sun50i-h618-transpeed-8k618-t.dts
sudo git status
sudo git add arch/arm/dts/sun50i-h618-transpeed-8k618-t.dts
sudo git commit --signoff
(Remember the first line patch title and the second line patch description.)
sudo git format-patch v2024.01
Create patches for kernel:
cd ~/build/cache/sources/kernel-sunxi64-6.7/
sudo git add .
(For the first line patch title you can put "test" and the second line patch description put "test". Doesn't matter right now.)
sudo git commit --signoff
sudo pico arch/arm64/boot/dts/allwinner/sun50i-h618-transpeed-8k618-t.dts
sudo git status
sudo git add arch/arm64/boot/dts/allwiner/sun50i-h618-transpeed-8k618-t.dts
sudo git commit --signoff
(Remember the first line patch title and the second line patch description.)
sudo git format-patch -1 kernel-sunxi64-6.7
Patch directories:
u-boot
~/build/patch/u-boot/u-boot-sunxi/
kernel
~/build/patch/kernel/archive/sunxi-6.7/patches.armbian/
Kernel patches config ( mines (-) before the patch name disables the patch)
Add your new kernel patch to the bottom of these two files.
~/build/patch/kernel/archive/sunxi-6.7/series.armbian
~/build/patch/kernel/archive/sunxi-6.7/series.conf
Armbian board config:
# Allwinner H618 quad core 4GB RAM SoC WiFi USB BOARD_NAME="Transpeed 8k618-t" BOARDFAMILY="sun50iw9" BOARD_MAINTAINER="Nick A" BOOTCONFIG="transpeed-8k618-t_defconfig" OVERLAY_PREFIX="sun50i-h616" BOOT_LOGO="desktop" KERNEL_TARGET="current,edge" FORCE_BOOTSCRIPT_UPDATE="yes" function post_family_tweaks__station_m2() { display_alert "$BOARD" "Installing board tweaks" "info" cp -R $SRC/packages/blobs/station/firmware/brcm/* $SDCARD/lib/firmware/brcm return 0 }
If you need to add wifi or bluetooth firmware. Add your firmware to /build/packages/blobs/station/firmware and make changes to the bottom copy command.
sudo pico ~/build/config/boards/transpeed-8k618-t.wip
Firmware for aw859a chip may already be in the armbian build.
https://github.com/warpme/minimyth2/blob/master/script/firmware/aw859a-firmware/Makefile
-
Johan S reacted to Nick A in How to install armbian in h618?
I created a patch using my Armbian build. If you want to compile an image yourself you need to copy this patch into the /build/patch/u-boot/u-boot-sunxi folder.
Here's an image you can test.
https://github.com/NickAlilovic/build/releases/download/v20240716/Armbian-20240716-unofficial_24.5.0-trunk_Transpeed-8k618-t_bookworm_edge_6.7.12_xfce_desktop_Secure_Boot.img.tar.xz
configs-Transpeed-8K618-T-Add-Transpeed-Secure-Boot.patch
From fc6da5681853bdf61ef403dd47a8bc9e5451a6d7 Mon Sep 17 00:00:00 2001 From: Nick Alilovic <nickalilovic@gmail.com> Date: Tue, 23 Jul 2024 00:45:46 -0400 Subject: [PATCH 1/1] configs: Transpeed-8K618-T: Add Transpeed Secure Boot Add Secure Boot Signed-off-by: Nick Alilovic <nickalilovic@gmail.com> --- configs/transpeed-8k618-t_defconfig | 1 + root_key.pem | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 root_key.pem diff --git a/configs/transpeed-8k618-t_defconfig b/configs/transpeed-8k618-t_defconfig index ef7559bf68..5e65c2fa72 100644 --- a/configs/transpeed-8k618-t_defconfig +++ b/configs/transpeed-8k618-t_defconfig @@ -29,3 +29,4 @@ CONFIG_AXP313_POWER=y CONFIG_AXP_DCDC3_VOLT=1360 CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y +CONFIG_SPL_IMAGE_TYPE_SUNXI_TOC0=y diff --git a/root_key.pem b/root_key.pem new file mode 100644 index 0000000000..892a10ef90 --- /dev/null +++ b/root_key.pem @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCWZ7G39E+RCi+9 +B48yiD4GxnfqNzvlXOxAd+GHQuKbgynXZd5pIuNHt3ewhZTHZkdHxuO9liqX9MmU +8OhiG+Skww2LzHPPi/eLeN4vCt/waXkjFrkblkhNzB3c6MejKdiz9sfw8oeOFX1S +teP/MJBoRaj6Hexj5g/oCspU+KFfv0cOBcWuq4vZwPJ6+U44IBi7EGleShGHNhBI +xQEyvNaDLWoDCPGLrjRM0DrIbUpzEntk9KJ0z+3Th8O/FtvlW21atolIVr5F96Pw +EEv3CDUHrY+IvK0z+IwNhnYo99kMPi5djB6vviz4In530JQ+OdPxhi4cQY3Yw9wx +Sm8EFaRRAgMBAAECggEAEaEcZ+k7VU8aGuBStNPa31zui9XHD8KlT4YtuXbJzHwi +kKSYXf7woISdAyQZNQkkREHICn4aRn7zDOHy/yLxWS2ivhbsITDxBlhXxLBT4OBg +ClCcyGLEXVgWTQE8+z9Jrwh3VaL76BfVPXdj/tKwroQxwwV0Yp5CEYsIPc75zVjW +Y2tppJL9XlTfKXTSo7FAxJmjkTC8QGPSHgMglR5FOfZ/D3Nj4KV4LV1gHCkICKUy +c2jklHISy8S6/pvgpWb50TKArEhbN6uAKQBNb74ZsChKJ9h9aof/vjH/8Ab1rwUJ +g91lpkR3mEefTjJTW1JOuoT49Y3lfWmkRVh75GiCsQKBgQDUo3uMcy9VdbbmY9Gt +2JuhbSvwR/dOHZJoXvtlNYVJ+1JvavExBy2u31cYsK/2SH/Upc8AXS6H02dXbnC3 +wjlUFi21Xi7/PCQM8TUz05km3+9qOkDYw53EBBBnCdjawBpDgcUSkoZGU+ltBzcR +sj0nsmI29DjwfYHXhofnlfI52QKBgQC1E2Q0hGfk3YUtfzTjDJCfd3gs6QYGQGeT +49jvnsbYsnz9vsK4Ao2skN8nBhSefDJR8h2X+7tRXEefQB2Hy/+9qoiuoVzPJGWD +IiHjeVJDoEqA2Q483UhZ+OPjUGFDTI7O/j1A1HkEBKswdJpKlGVygdoXYaieUAfz +Sb+dCYf7OQKBgQCWkE/aSnE4vQpOJl4BEABbFFdpYzvcpxnVJ3Qw3O3NTdS4Keww +wBl72o7sX6eo5vsE0oc5hcF90ZY6FWxg4XkAblfdNZxng+ku9NisIuct3KDFAgyK +sDCU7B/FJfbUJfQy2r91gCTtxVripZo7wI6G/kuHB/UNbIE04AB5XfZPOQKBgAGw +K5f9wAY3Nn2lGPYg8Nw7vegVSBQY155eWnBpd4sfpuCqvZ//jhiUxS/U865ClCmF +a1c2ZpmslZJbg6r3cOvwwhN2t6nKuhON5uj7AZRV0zv+Sg6xNXJ5So6c+jspZI9z +eVi4YmRyMrJh8+pMFeIKaeEb7PmE334aKuoo45apAoGBAKNp7ssXgU4Ma7cUr7+L +TKGBNVsMZyM3T2qsXJjFY1f90+lwp7TlNQGVMPOSOHxyINWkuLNgAgetlhavnc0S +0l+SbSaO6SfnHfQWBFPEJfol8V/Xa4rcVP7fGxQn4phYnk14N09xKIQa24Mi2Xa5 +9G0C2VOB8Yz6OWcQZELs0uFp +-----END PRIVATE KEY----- -- 2.34.1
-
Johan S reacted to Nick A in How to install armbian in h618?
Hi Hayat,
If you can boot Miniarch then you can boot Armbian. You just need to port over the vontar.dts and defconfig for u-boot and kernel from Miniarch to my Armbian build. I posted the steps in the previous page. I don't have a vontar box so I can't help you with testing. Plus I'm too busy with work right now.
https://github.com/warpme/minimyth2/blob/master/script/bootloaders/u-boot-h616/files/160-add-vontar-h618-defconfig.patch
https://github.com/warpme/minimyth2/blob/master/script/kernel/linux-6.10/files/0647-arm64-dts-allwinner-h618-add-vontar-h618-TVbox.patch
https://github.com/NickAlilovic/build