Radxa Zero Slarm64 (aarch64 unofficial slackware)

kernel 5.13.8
wifi is not working yet

slarm64-current-aarch64-server-radxa_zero-5.13.8-build-20210807.img.zst
slarm64-current-aarch64-server-radxa_zero-5.13.8-build-20210807.img.zst.sha256

1 Like

@Mara what version of Zero did you get as my 512mb has a different wifi/bt chip than what is working on my 2gb Zero.

I will be downloading that ASAP as been really impressed with Twister but for me need a lighter ‘server’ image really as the desktop is really bloat for use I have.

PS I have been wondering about an OC but looking at the voltage table the pmic reg looks like its pretty much at the max which has surprised me.
So maybe freq can be increased as very little headroom with volts but also someone was mentioning about low power use so also maybe a underclock?

Saying this as with Slarm can you specify dtsi in some form of easy config?

PS is it just me struggling with SD boot as can get my eMMC version running but still struggling with SD but will give it another try.

my version is 4/32 wifi ap6256
dtsi

regarding u-boot, until I rewrote the bootloader in eMMC from the card, it started.

Yeah still puzzled at sd only versions but have eMMC one that i will try, many thanks.

Cool is it possible to have a config with different DTS /DTSI say with different clock speeds?
Also should the ethernet be removed as looks like its a remnant from the s905x2 dts original

I shall have a look at slackware as it will be a 1st even though its been around for a long time.
I quite like arch and it surprises me manjaro doesn’t trickle down but support is quite limited unlike what you guys seem to be doing with Slarm

just make patches with the necessary settings and apply during assembly (let’s turn it off as .disabled)

there is a working version of U-Boot 2021.10-rc1-00269-g8f07f5376a2-dirty (Aug 07 2021 - 23:34:58 +0300) radxazero
built based on https://github.com/angerman/meson64-tools.git
and writing to eMMC

I prob could mara but was thinking firstly to use the ‘herd’ so we share the same and those who are only comfortable with a config declaration can also use.

I will have a look at Slarm as going to redo some benchmarks as Twister OS almost filled the whole 16GB eMMC.
Twister OS is 5.12.0 and works with the AP6256 and guess must be using a revision but can work with a usb ethernet I have for now.

I much prefer working with a server base to make a JEOS for whatever application I am working with so will give it a download and give Slarm a go.

for wifi to work I will make legacy on kernel 5.10.y, also add crux-arm it is minimal.

Cool maybe for the best as even though it works on 5.12 after a apt-get update (think it was that) I get an error message about wifi settings even though wifi seems to work.
5.10 was the last LTS so makes total sense.

slarm64-current-aarch64-server-radxa_zero-5.13.9-build-20210812.img.zst
slarm64-current-aarch64-server-radxa_zero-5.13.9-build-20210812.img.zst.sha256
slarm64-current-aarch64-xfce-radxa_zero-5.13.9-build-20210812.img.zst
slarm64-current-aarch64-xfce-radxa_zero-5.13.9-build-20210812.img.zst.sha256

fixed wifi

[    5.878926] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    8.133724] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    8.189724] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3

# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether b0:02:47:93:6e:55 brd ff:ff:ff:ff:ff:ff

updated loader 2021.10-rc1

bl2_stage_init 0x01
bl2_stage_init 0x81
hw id: 0x0001 - pwm id 0x00
bl2_stage_init 0xc0
bl2_stage_init 0x02

L0:00000000
L1:00000703
L2:00008067
L3:04000000
S1:00000000
B2:00002000
B1:e0f83180

TE: 81517

BL2 Built : 15:21:48, Aug 28 2019. g12a g1bf2b53 - luan.yuan@droid15-sz

Board ID = 2
Set cpu clk to 24M
Set clk81 to 24M
CPU clk: 1200 MHz
Set clk81 to 166.6M
eMMC boot @ 0
sw8 s
DDR driver_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 15:21:45
board id: 2
Load FIP HDR from eMMC, src: 0x00010200, des: 0xfffd0000, size: 0x00004000, part: 0
fw parse done
Load ddrfw from eMMC, src: 0x00060200, des: 0xfffd0000, size: 0x0000c000, part: 0
Load ddrfw from eMMC, src: 0x00038200, des: 0xfffd0000, size: 0x00004000, part: 0
PIEI prepare done
fastboot data load
00000000
emmc switch 1 ok
ddr saved addr:00016000
Load ddr parameter from eMMC, src: 0x02c00000, des: 0xfffd0000, size: 0x00001000, part: 0
00000000
emmc switch 0 ok
fastboot data verify
verify result: 265
Cfg max: 2, cur: 1. Board id: 255. Force loop cfg
LPDDR4 probe
ddr clk to 792MHz
Load ddrfw from eMMC, src: 0x0003c200, des: 0xfffd0000, size: 0x0000c000, part: 0

dmc_version 0000
Check phy result
INFO : End of CA training
INFO : End of initialization
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read enable training
INFO : End of fine write leveling
INFO : End of Write leveling coarse delay
INFO : Training has run successfully!
Check phy result
INFO : End of initialization
INFO : End of read dq deskew training
INFO : End of MPR read delay center optimization
INFO : End of write delay center optimization
INFO : End of read delay center optimization
INFO : End of max read latency training
INFO : Training has run successfully!
1D training succeed
Load ddrfw from eMMC, src: 0x00048200, des: 0xfffd0000, size: 0x0000c000, part: 0
Check phy result
INFO : End of initialization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D read delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : End of 2D write delay Voltage center optimization
INFO : Training has run successfully!

channel==0
RxClkDly_Margin_A0==236 ps 12
TxDqDly_Margin_A0==236 ps 12
RxClkDly_Margin_A1==236 ps 12
TxDqDly_Margin_A1==236 ps 12
TrainedVREFDQ_A0==74
TrainedVREFDQ_A1==74
VrefDac_Margin_A0==24
DeviceVref_Margin_A0==40
VrefDac_Margin_A1==23
DeviceVref_Margin_A1==40


channel==1
RxClkDly_Margin_A0==236 ps 12
TxDqDly_Margin_A0==236 ps 12
RxClkDly_Margin_A1==236 ps 12
TxDqDly_Margin_A1==236 ps 12
TrainedVREFDQ_A0==74
TrainedVREFDQ_A1==74
VrefDac_Margin_A0==24
DeviceVref_Margin_A0==40
VrefDac_Margin_A1==25
DeviceVref_Margin_A1==40

 dwc_ddrphy_apb_wr((0<<20)|(2<<16)|(0<<12)|(0xb0):0004 

soc_vref_reg_value 0x 00000015 00000016 00000014 00000015 00000016 00000015 00000015 00000016 00000016 00000014 00000015 00000016 00000014 00000016 00000017 00000016 00000017 00000017 00000018 00000015 00000015 00000018 00000017 00000017 00000014 00000015 00000017 00000015 00000015 00000017 00000014 00000015 dram_vref_reg_value 0x 00000061
2D training succeed
aml_ddr_fw_vesion: LPDDR4_PHY_V_0_1_18 build time: Aug 28 2019 13:53:31
auto size-- 65535DDR cs0 size: 2048MB
DDR cs1 size: 2048MB
DMC_DDR_CTRL: 00e00024DDR size: 3928MB
cs0 DataBus test pass
cs1 DataBus test pass
cs0 AddrBus test pass
cs1 AddrBus test pass

100bdlr_step_size ps== 444
result report
boot times 0Enable ddr reg access
00000000
emmc switch 3 ok
Authentication key not yet programmed
get rpmb counter error 0x00000007
00000000
emmc switch 0 ok
Load FIP HDR from eMMC, src: 0x00010200, des: 0x01700000, size: 0x00004000, part: 0
Load BL3X from eMMC, src: 0x0006c200, des: 0x0175c000, size: 0x000a0000, part: 0
bl2z: ptr: 05129330, size: 00001e40
0.0;M3 CHK:0;cm4_sp_mode 0
MVN_1=0x00000000
MVN_2=0x00000000
[Image: g12a_v1.1.3390-6ac5299 2019-09-26 14:09:46 luan.yuan@droid15-sz]
OPS=0x30
ring efuse init
28 0b 30 00 01 21 11 00 00 14 35 39 53 42 56 50 
[1.023858 Inits done]
secure task start!
high task start!
low task start!
run into bl31
NOTICE:  BL31: v1.3(release):4fc40b1
NOTICE:  BL31: Built : 15:57:33, May 22 2019
NOTICE:  BL31: G12A normal boot!
NOTICE:  BL31: BL33 decompress pass
ERROR:   Error initializing runtime service opteed_fast


U-Boot 2021.10-rc1-meson-g12a (Aug 08 2021 - 12:45:25 +0300) radxazero

Model: Radxa Zero
SoC:   Amlogic Meson G12A (Unknown) Revision 28:b (30:2)
DRAM:  3.8 GiB
MMC:   sd@ffe03000: 0, sd@ffe05000: 1, mmc@ffe07000: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial@3000
Out:   serial@3000
Err:   serial@3000
Net:   Net Initialization Skipped
No ethernet found.
** Bad device specification :1 logo **
Couldn't find partition :1 logo.bmp
Can't set block device
Hit any key to stop autoboot:  0 
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc1 is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
4238 bytes read in 3 ms (1.3 MiB/s)
## Executing script at 08000000
85 bytes read in 2 ms (41 KiB/s)
71993 bytes read in 9 ms (7.6 MiB/s)
26003968 bytes read in 2299 ms (10.8 MiB/s)
libfdt fdt_getprop(): FDT_ERR_NOTFOUND
9298183 bytes read in 824 ms (10.8 MiB/s)
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (gzip compressed)
   Data Size:    9298119 Bytes = 8.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 04080000
   Booting using the fdt blob at 0x4080000
   Loading Ramdisk to 3f721000, end 3ffff0c7 ... OK
   Loading Device Tree to 000000003f6a7000, end 000000003f720fff ... OK

Starting kernel ...
1 Like

You prob has it somewhere but what user/password for xcfe ?

the root user will ask you to create a password at login.

I have just got the login helper on screen without a default user.
its asking for user / password.

tried root/password
root/blank

thanks, this part needs to be tested, try to go to the console CTRL+ALT+F1 and log in there, after setting the password, try to go to xfce

Cool apols Mara as total noob with slackware I don’t even know what the package manager is?

But can say wifi is working even though used usb ethernet

Treat me kindly :slight_smile: how do I install glmark2 or is it a compile job?

As see what it posts.

Also its up to date mainline which is great.
I have a blank eMMC with the bootloader and it loaded from SD.
Have you managed a SD only version as haven’t had chance to test yet.

I corrected the transfer script to eMMC in the current version, it does not support transfer.

regarding packages
pkgtools
slackpkg

1 Like

I am going to hate this for a short while until I get up to speed.
I know what I want to do but don’t know the command but things look good

Whats the slackware method to add a user to sudoers?

lols apols your going to hate this as much as me!

usually in /etc/sudoers.d/users.conf

Just SU and edit with nano then

PS its telling me current is the dev version with slackpkg

Is that correct?

When selecting a mirror

yes it is current which is constantly updated