marcan changed the topic of #asahi-alt to: Asahi Linux: porting Linux to Apple Silicon macs | User-contributed/unofficial distribution ports | Logs: https://alx.sh/l/asahi-alt
L1Q has quit [Quit: Leaving]
<m1n1m4[m]>
no worries, thanks for the answers!
<m1n1m4[m]>
<mps> "and I have this https://arvanta..." <- i was looking recently for this link on this list of links of your site https://arvanta.net/alpine/ , and could not find it.
<m1n1m4[m]>
thanks again for your help!
<m1n1m4[m]>
oh, sorry it is there, "setting XFCE4 in qemu VM on Alpine Linux 3.12-stable" ...
<m1n1m4[m]>
i see by the notes that i missed some steps.... Thanks again
<m1n1m4[m]>
<m1n1m4[m]> "i see by the notes that i missed..." <- By running setup-xorg-base, i get the OK message and the byte count of the transfer, but after i get these two errors:
<m1n1m4[m]>
*rc-update service 'mdev' is not in the runlevel 'sysinit'
<m1n1m4[m]>
*rc-service: exec format error
<m1n1m4[m]>
Do you want me to debug it deeper? Is there a log? Thanks
<m1n1m4[m]>
Another question, how do i get dd to show progress on alpine-asahi?
<mps>
m1n1m4[m]: alpine basic tools are busybox applets, so dd is simple one and doesn't have progress option
<mps>
re: exec format error, looks like rc-service not from aarch64 but other architecture
<m1n1m4[m]>
<mps> "m1n1m4!: also https://wiki...." <- i confirm, got a clean install and i have XFCE4 running!
<m1n1m4[m]>
BUT... i had to uninstall libudev-zero and re-run the setup-xorg-base, then all went smooth.
<m1n1m4[m]>
Second thing: was using iwd for wifi at install with internet and i think that the setup of xfce changed it to some sort of network manager that i do not have control. How can i change it back to iwd?
<m1n1m4[m]>
Thanks again!!!
<mps>
I guess lightdm requires udev
<m1n1m4[m]>
UPDATE: after checking the issues of running network manager over iwd here: ( https://wiki.alpinelinux.org/wiki/NetworkManager ) i think it is better to stop using iwd and just configure the wpa_s etc...
<mps>
ah, actually setup-xorg-base require udev
<mps>
iwd is better on M1
<m1n1m4[m]>
mps: yes, and udev is not compatible with libudev-zero
<mps>
you can have wpa_s and iwd installed at same time, and chose which one to use
<m1n1m4[m]>
mps: Perfect, i just want iwd, simple and if possible purge wpa_s ...
<mps>
and you can remove network manager
<mps>
NM is a mess
<m1n1m4[m]>
yes, please, how do i do that?
<m1n1m4[m]>
mps: exactly my experience also!
<mps>
for iwd there is iwgtk pkg, gui
<mps>
apk del $network_manager_pkg_name
<m1n1m4[m]>
cool but i have to disable the networkmanager service first no?
<mps>
apk del network-manager-applet
<mps>
apk info | grep network-manager
<mps>
and remove all them
<m1n1m4[m]>
nice!
<mps>
rc-update will show services which runs on boot
<m1n1m4[m]>
ehe, i read the handbook but did not get there... Sorry
<m1n1m4[m]>
i mean... I did but forgot...
<mps>
alpine is more like hackers distro and not for users who want 'install and set by clickety'
<m1n1m4[m]>
😂
<m1n1m4[m]>
right!
<mps>
and my guides is extreme ones to minimalism
<m1n1m4[m]>
is there a way using apk to detect the dependencies of network-manager and list them so that i can test removing them?
<m1n1m4[m]>
but only those...
<mps>
apk info -r network-manager-applet
<m1n1m4[m]>
mps: now that is PERFECT!
<mps>
apk info -h will tell
<mps>
but apk will remove deps automatically if some dependant pkgs are not installed manually or pinned
<m1n1m4[m]>
mps: yes i agree on this Alpine philosophy, i am always upset with the bloated stuff
<m1n1m4[m]>
for example, i do not have a printer, and i always get cups, it is anoying...
<mps>
m1n1m4[m]: you could probably get more exhaustive info on #alpine-linux IRC channel on OFTC
<m1n1m4[m]>
ehehehe
<mps>
there are a lot more people with alpine experience
<mps>
but I'm not there, because some people likes to babble to much
<m1n1m4[m]>
<mps> "m1n1m4!: you could probably..." <- yes yes good, i am at that room, good idea, but i think i have enough to solve this
<mps>
m1n1m4[m]: did you installed on internal nvme with btrfs as root filesystem?
<m1n1m4[m]>
mps: yes, pretty simple, i followed your guide and formatted nvme linux partition with btrfs before the "install nvme" step i think.
<m1n1m4[m]>
<mps> "there are a lot more people with..." <- yes, i see, but in this case having M1 experience, as a beta user, i think here is better.
<m1n1m4[m]>
just one thing, because i have to reboot to comeback here, since matrix on phone is just to complex, so i try to take all the info at one time
<m1n1m4[m]>
so i will disable the network manager service then how do i get iwd back to work, because i cannot even see the device with iwctl
<mps>
rc-update add iwd
<m1n1m4[m]>
on iwctl: device list, i get nothing
<mps>
check if dbus and iwd running
<mps>
there is gomuks matrix text mode client on alpine
<mps>
there is also element but I don't know how to use it
<mps>
oh, and weechat irc client with matrix plugin could work
<m1n1m4[m]>
OK so rebooting to fix this already 2 and a half day adventure... I am happy with the result, because i am learning a lot, which is great.
<m1n1m4[m]>
mps: element is text mode also?
<mps>
no, it is gui
<m1n1m4[m]>
mps: OK, thanks!
<m1n1m4[m]>
rebooting now!
Catyre_ has quit [Remote host closed the connection]
Catyre has joined #asahi-alt
<m1n1m4[m]>
OK so, great the command line interface of rc-update show
<m1n1m4[m]>
very simple and quick to understand
<m1n1m4[m]>
i disabled networking, hostname and chronyd ( because they are network related ) . Enabled iwd. rebooted but the thing is, i think modprobe for loading the brcmf ( wifi drivers ) is constantly echoing on the screen messages. The drivers it is using are a fallback to some generic raspberry thing. It should be associated with BCM4378/3 that i find on the nvme install.
<m1n1m4[m]>
so maybe i have to reverse the process ( unload the kernel module ) and reinstall the firmware.
<m1n1m4[m]>
came here to check how to unload the brcmf kernel module
<mps>
rmmom brcmfmac
<mps>
rmmod*
<mps>
hostname could be left in boot
<mps>
it just sets hostname
<m1n1m4[m]>
since the wifi is not working i have to come here for internet and apk seems to need net too
<m1n1m4[m]>
anyway things are moving...
<j`ey>
yes apk downloads packages, so needs internet!
<m1n1m4[m]>
yes!
<mps>
did you installed firmware on nvme root FS
<m1n1m4[m]>
mps: i am using only USB
<m1n1m4[m]>
not nvme
<m1n1m4[m]>
to have a separate visual env when i need it
<m1n1m4[m]>
mps: yes i did, iwd was working before the install of the xfce4
<m1n1m4[m]>
all was cool
<mps>
ok, did you removed /etc/modprobe.d/blacklist-brcmfmac.conf
<m1n1m4[m]>
that is how i used apk to be able to install it
<mps>
brcmfmac modules shows some msgs on boot but this are irrelevant for work
<mps>
m1n1m4[m]: could you check with rc-update is the dbus enabled
<mps>
and iwd
<m1n1m4[m]>
mps: before installing setup-xorg-base, i followed your guide and all worked. I had the firmware installed on USB and iwd just started at boot with the correct wifi connection and i had internet right away.( I have an .img of that that i backed up before any changes )
<mps>
could you paste 'rc-update' output
<mps>
and does 'ip l' shows wlan0
<m1n1m4[m]>
Also the guide of installing the XFCE4 desktop worked, but then it replaced iwd with networking and this is the situation i am now trying to revert back to iwd.
<mps>
yes, I don't have networking in rc-update list
<m1n1m4[m]>
mps: on iwctl ( device list ) is empty, i do not see wlan0. The driver somehow is not the correct one so it was lost whith the desktop install.
<mps>
and 'ip l'
<m1n1m4[m]>
i will check after reboot
<mps>
does it show wlan0
<m1n1m4[m]>
mps: i will check after reboot, but i am constantly having a message on the screen ( 2 lines ) something starting with brcmfmac failed to load driver and the second message also starting with brcmfmac says it loaded some fallback driver arduino or something, not the correct one i said above.
<mps>
hm, didn't had this problem
<m1n1m4[m]>
*BCM4378/3
<m1n1m4[m]>
and this BCM... is correctly loaded when i boot with this system on nvme, so the name comes from there
<m1n1m4[m]>
and i could see the difference
<m1n1m4[m]>
mps: i can make a video or something, i am making a USB install with mba 2020
<mps>
no, BCM4378/3 is variant of brcmfmac driver, it is ok
<m1n1m4[m]>
yes, that is the correct one
<m1n1m4[m]>
but it loads a fallback driver
<m1n1m4[m]>
on the USB, it used to load that one BCM$#&*/#
<m1n1m4[m]>
sorry BCM4378/3
<m1n1m4[m]>
after the install of xfce and after reboot it lost it
<j`ey>
are you sure you didnt do anything else in the mean time?
<j`ey>
if you can get a picture/video of the actual messages that would help
<mps>
m1n1m4[m]: lsmod | grep brcm
<m1n1m4[m]>
<j`ey> "if you can get a picture/video..." <- yes will try that, thanks
<m1n1m4[m]>
<mps> "m1n1m4!: lsmod | grep brcm" <- great and to disable it i will check this: Module Loading
<m1n1m4[m]>
'/etc/init.d/modules' loads all modules specified in '/etc/modules' and '/(etc|run|usr/lib|lib)/modules-load.d/*.conf'
<m1n1m4[m]>
<j`ey> "if you can get a picture/video..." <- i am totally sure that iwd was working well, then i installed xfce and, i think it replaced it by networking service and wpa_... and i lost internet
<m1n1m4[m]>
<mps> "m1n1m4!: lsmod | grep brcm" <- and what is the command to unload the module if i need to?
<mps>
m1n1m4[m]: please, could you write messages without quote/reply in matrix
<m1n1m4[m]>
yes mps , sure
<mps>
m1n1m4[m]: could you tell what `uname -a` shows
<m1n1m4[m]>
mps: yes i will once i reboot
<m1n1m4[m]>
if i need to unload a module what is the command? i was thinking of unloading brcf and reinstall the wifi driver then load it again
<mps>
rmmod module_name
<m1n1m4[m]>
mps: PERFECT! brb!!!
<mps>
brcmfmac is driver
<mps>
you don't need to install anything
<m1n1m4[m]>
ok, thanks
<mps>
it is included in kernel pkg
<mps>
(also I will become budhist monk :) )
<m1n1m4[m]>
yes but on your alpine install tutorial, after installing you do modprobe of it
<m1n1m4[m]>
mps: ahahahahahahaha good!
<j`ey>
thats just a terminology issue, modprobe is loading a driver, not installing it
<mps>
m1n1m4[m]: modprobe is needed only on first boot after installing wifi firmware
<mps>
after remove of /etc/modprobe.d/blacklist-brcmfmac.conf file on next reboots module will be loaded automatically
<m1n1m4[m]>
<mps> "after remove of /etc/modprobe.d..." <- i checked this file, it was not there
<m1n1m4[m]>
sorry , @mps: i checked the blacklist file, it was not there
<mps>
m1n1m4[m]: dmesg looks ok
<mps>
it is same as in my case
<j`ey>
those fallback messages are ok, it's just looking for the right firmware
<j`ey>
hm actually "Falling back to sysfs fallbac" this looks wrong.. i think you dont have the firmware
<j`ey>
m1n1m4[m]: check /lib/firmware/brcm
<j`ey>
hm weird, the good boot had that message too.
<m1n1m4[m]>
j`ey: i do! it is there and iwd was working before the install of xfce4... So how can he not find it?
<m1n1m4[m]>
mps: which dmesg looks good? the one that does not find the driver?
<m1n1m4[m]>
so i could not unload the brcm, i will now try the config files on /module-load.d/.cfg
<m1n1m4[m]>
the output of lsmod is supposed to not show all processes? is it possible to force it to show who is using the module?
<j`ey>
it doesnt show processes
<m1n1m4[m]>
i heard something about ptrace some time ago, could it work?
<j`ey>
lsmod just shows the modules that are loaded into the kernel
<m1n1m4[m]>
but it shows a number
<m1n1m4[m]>
24 in the case of ipv6
<m1n1m4[m]>
i did ps -ef | grep 24
<m1n1m4[m]>
tried to kill it ( it is a root process ) kill -9 24 and i could not
<m1n1m4[m]>
ps -ef | grep 24 after and it still was there
<mps>
m1n1m4[m]: this is number of other modules which uses it
<m1n1m4[m]>
another curious thing, is the kvm supposed to work by default after installing xfce?
<j`ey>
kvm should work with or without xfce
<mps>
kvm is kernel driver, and it works
<m1n1m4[m]>
mps: yes but in the case of ipv6 it shows the number 24 but no module name
<j`ey>
m1n1m4[m]: yes thats fine
<m1n1m4[m]>
j`ey: but is it needed if i do not use it? KVM, i mean
<j`ey>
no its not needed
<j`ey>
but theres probably no need to disable it
<m1n1m4[m]>
j`ey: perfect, then i will disable it because it could be blocking the brfcm
<m1n1m4[m]>
no?
<m1n1m4[m]>
since it uses network resources
<j`ey>
no
<m1n1m4[m]>
j`ey: OK thanks
<j`ey>
im not sure why you think that
<j`ey>
but if you really want: kvm-arm.mode=none on your kernel command line
<m1n1m4[m]>
j`ey: because i use kvm to remotely manage a VPN on a host
<j`ey>
uh
<j`ey>
kvm is a virtual machine thing
<m1n1m4[m]>
and i use the browser. KVM is on the server
<mps>
KVM, Keyboard Virtual?
<m1n1m4[m]>
j`ey: to see the boot process, when you restart, you need KVM. no?
<m1n1m4[m]>
Kernel Virtual Machine
<mps>
KVM, Keyboard Virtual Monitor?
<mps>
VNC?
<j`ey>
m1n1m4[m]: KVM is only used if you qemu or something like that
<m1n1m4[m]>
mps: Kernel Virtual Machine, it's on OVH and it is a direct console to the server remotely
<j`ey>
thats got nothing to do with your m1 though
<m1n1m4[m]>
j`ey: i am only suggesting it might have hold on some handle of the network somehow not allowing me to unload the brmcf module
<j`ey>
it doesnt
<m1n1m4[m]>
j`ey: OK thanks
<m1n1m4[m]>
it was a wild guess :D
<m1n1m4[m]>
OK if all seems nice for you guys i will go check the modules *.config files
<m1n1m4[m]>
and comment out the brmcf thing :D
<m1n1m4[m]>
brb
<mps>
m1n1m4[m]: your dmesg shows that all ok with modules
<m1n1m4[m]>
THANKS!!!
<mps>
you should investigate processes state
<m1n1m4[m]>
mps: how do i do that?
<m1n1m4[m]>
syslog messages?
<m1n1m4[m]>
for which processes?
<m1n1m4[m]>
those that use brmcf?
<m1n1m4[m]>
i mean brcmfmac
<m1n1m4[m]>
:D
<mps>
ps afx
<j`ey>
m1n1m4[m]: can you double check the /lib/firmware directory on the usb stick?
<mps>
look for iwd on output
<j`ey>
maybe it got corrupt or something?
<m1n1m4[m]>
great! i will do both
<mps>
hmm, I didn't carefully look at dmesg, sorry
<mps>
as j`ey says looks like firmware is messed somehow
<m1n1m4[m]>
OK, brb!
<m1n1m4[m]>
OK so, i tried to reinstall the drivers although they were at the same place, nothing changed
<mps>
m1n1m4[m]: which drivers?
<mps>
you mean firmware?
<m1n1m4[m]>
mps: exactly, sorry. Then i compared the services from both systems
<m1n1m4[m]>
and what i can think could have changed this behavior was the change from libdev-zero to udev. Does it make any sense? is there a way i can test this deeper?
<mps>
hm, try this 'rm -rf /lib/firmware/brcm/' and then install firmware again
<mps>
no, driver is loaded but can't find firmware, from your dmesg output
<m1n1m4[m]>
I mean setup-xorg-base conflicted with libdev-zero. i uninstalled it, re-run and the install continued nice
<m1n1m4[m]>
mps: i just did that
<m1n1m4[m]>
remember it stopped working out of the blue and i did not change it before...
<m1n1m4[m]>
iwd was working, i used it to get the xfce4 packages
<mps>
libudev-zero is unrelated to this
<m1n1m4[m]>
but after reboot stopped working
<m1n1m4[m]>
mps: OK i will rm -rf /lib/firmwae/brcm then reboot
<m1n1m4[m]>
then i will reinstall it
<mps>
did you by chance installed some firmware by apk tool
<m1n1m4[m]>
nope
<mps>
aha, ok
<m1n1m4[m]>
mesa-dry-gallium ??
<mps>
you don't need to reboot after remove /lib/firmware/brcm
<m1n1m4[m]>
i installed the packages on the guide for xorg
<mps>
you can install firmware right after removing previous
<m1n1m4[m]>
well that i just did...
<m1n1m4[m]>
but i will redo
<mps>
mesa-dri-gallium is unrelated
<m1n1m4[m]>
mps: OK, if that does not work i can reinstall all of it and record all the steps
<m1n1m4[m]>
it would be nice to have this working
<m1n1m4[m]>
thanks for your help
<m1n1m4[m]>
brb
<mps>
after you install firmware use 'ls -l /lib/firmware/brcm' to look is it installed
<m1n1m4[m]>
i will ls it to a file before and after.
<j`ey>
it doesnt seem to be searching for brcmfmac4378b1-pcie.apple,shikoku.bin ..
<j`ey>
m1n1m4[m]: in your firmware folder can you copy brcmfmac4378b1-pcie.apple,shikoku.bin to brcmfmac4378b1-pcie.apple,shikoku-RASP-m-6.11-X3.bin
<m1n1m4[m]>
good idea!
<m1n1m4[m]>
ahahahah
<m1n1m4[m]>
nice
<mps>
yes, something is wrong with firmare
<mps>
firmware*
<j`ey>
ok I dont think I see the sysfs in dmesg because I have CONFIG_FW_LOADER_USER_HELPER=n
<j`ey>
oh.. is this the issue where it takes a long time to boot because I just noticed that the time between the last 2 firmware messages was 61seconds
<j`ey>
so you might have to wait 10minutes or so, and then it may come up
<j`ey>
mps: you didnt have any trouble with that option, im not sure why, but it looks like it might be the issue
<steev>
interesting that it doesn't fall back to the more generic version
<j`ey>
it will.. in 10mins
<steev>
:D
<j`ey>
Ive been meaning to rename my firmware to the most specific one, so it doesnt have those messages in dmesg :D
<j`ey>
and I cant get on the internet 0.00001s faster
<steev>
yeah, i need to do that with some of my other brcmfmac devices as well
Catyre_ has joined #asahi-alt
<m1n1m4[m]>
j`ey: OK, on the brcm folder i found bins that i think are related to locations, they do not have specification of RASP or pcie. What i found was a txt maybe differentating them.
<j`ey>
try copy like I said
<j`ey>
or just left it boot for 10mins or so and see if it eventually loads
<m1n1m4[m]>
j`ey: it doesn work
Catyre has quit [Ping timeout: 480 seconds]
<j`ey>
which bit?
<m1n1m4[m]>
j`ey: the boot is quite fast, but as you see in the dmesg he keeps giving me the messages ( 2 at a time ) of failure
<j`ey>
yes but how long have you left it?
<m1n1m4[m]>
j`ey: in the folder there is no *RASP*.bin
<j`ey>
have you let it sit for a while after booting
<m1n1m4[m]>
but before installing xfce it was immediate...
<m1n1m4[m]>
and i had internet right away
<j`ey>
maybe related to eudev actually, because thats how I think the sysfs callback stuff works
<m1n1m4[m]>
i have a USB bin file that i backed up before the change ( dd =
<j`ey>
either let it sit for 10mins after boot, or try:
<m1n1m4[m]>
dd if=/dev/sda of=USB.backup.bin
<j`ey>
brcmfmac4378b1-pcie.apple,shikoku.bin to
<j`ey>
< j`ey> m1n1m4[m]: in your firmware folder can you copy
<m1n1m4[m]>
OK, the fw copy did work, in dmesg i have a new error
<m1n1m4[m]>
however iwctl does not show wlan0 on device list
<m1n1m4[m]>
i can make available an img of the /dev/sda
<mps>
m1n1m4[m]: does 'ip l' shows it
<m1n1m4[m]>
to be reproducible, maybe
<m1n1m4[m]>
mps: will try that, brb
<m1n1m4[m]>
exit
<j`ey>
that error is a flakey one, so just shows up at random "error at soc_component_read_no_lock on cs42l42.2-0048 for register: [0x00001101] -6"
<j`ey>
(should be fixed a later version of the kernel)
<m1n1m4[m]>
mps: it does not show
<m1n1m4[m]>
j`ey: great news that the error is known
<mps>
m1n1m4[m]: I don't have idea why that happens
<m1n1m4[m]>
the usb key image has 5GB for root, so it might be possible to install some >magic tools< to debug the thing no?
<mps>
hm, I think I created it with 200MB size
<m1n1m4[m]>
yes, i extended it
<mps>
ah
<m1n1m4[m]>
to be able to allocate xfce, firefox, and calc and writer
<mps>
you can compress it with xz or zstd and upload somewhere?
<m1n1m4[m]>
yes
<m1n1m4[m]>
i normally use 7z, just because i am used to
<mps>
that's ok
<m1n1m4[m]>
perfect i will compress it max compression
<m1n1m4[m]>
OK as soon as the dump from the usb is done ( 7GB ) i will compress and send a link to download via we transfer ( no email needed ). Is it OK?
<mps>
uh I don't use wetransfer
<m1n1m4[m]>
no need install or login or anything just to click on the link and it downloads
<m1n1m4[m]>
on your behalf
<m1n1m4[m]>
it is like firefox send
<mps>
you don't have option to upload it on some web server
<m1n1m4[m]>
unfortunately not right now
<m1n1m4[m]>
well i can give you a tmp ssh login, yes
<mps>
hm, then don't do it with wetransfer (I'm against this service)
<m1n1m4[m]>
better like that?
<m1n1m4[m]>
on a server
<m1n1m4[m]>
mps: OK, ssh then.
<mps>
but you can easily install web server on that same server
<mps>
instead of ssh access
<m1n1m4[m]>
hmmm
<m1n1m4[m]>
i can use password for the file if that is the problem with wetransfer or use any other service. The server itself is from a place i volunteer and ssh is already in place. I create a user and then delete it. I would not like to touch the config or change the software there. You understand?
<m1n1m4[m]>
OK i can upload it to proton drive and share a link from there, is it OK?
<m1n1m4[m]>
the file is 283MB
<m1n1m4[m]>
let me know if it is OK with you, will eat something now.
<m1n1m4[m]>
thank you all for the help
<m1n1m4[m]>
been "bughunting" for 3 days now, will go eat something.