Using https://yadi.sk/d/ZMQW85B-P6QejA provided by @uropb. I can boot from a sd card with a usb stick attached to my x96 air usb3 slot.
But if I use my ssd usb3 stick it won’t boot linux, just goes to android. My usb ssd is one the problematic that needs to be ignored the uas. In my laptop i can mount it by adding a .conf file to /etc/modprobe.d with this commands
echo options usb-storage quirks=152d:0562:u | sudo tee /etc/modprobe.d/blacklist_uas_152d.conf
sudo update-initramfs -u
I read that is possible to use as root partition this kind of ssd by adding usb-storage.quirks=152d:0562:u to /boot/cmdline.txt with the raspberrypi. So i was wondering if is possible to have similar approach with manjaro arm for tv boxes
Here is the same problem with odroid xu4, and how it is solved [Solved] UAS problem with Seagate disk and enclosure - ODROID
I think I manged to make it work.
I had this usb-storage.quirks=152d:0562:u (usb-storage.quirks=idVendor:idProduct:u) in extlinux.conf like this
root=LABEL=ROOT_MNJRO rootflags=data=writeback rw console=ttyAML0,115200n8 console=tty0 no_console_suspend consoleblank=0 fsck.fix=yes fsck.repair=yes net.ifnames=0 usb-storage.quirks=152d:0562:u bootsplash.bootfile=bootsplash-themes/manjaro/bootsplash
then I did
sudo mkinitcpio -p linux-vim
then reboot
dmesg | grep usb
and now I get
New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 257.539259] usb 2-1: Product: External
[ 257.542930] usb 2-1: Manufacturer: JMicron
[ 257.546983] usb 2-1: SerialNumber: 201210430000402
[ 257.552722] usb 2-1: UAS is ignored for this device, using usb-storage instead
[ 257.558948] usb-storage 2-1:1.0: USB Mass Storage device detected
[ 257.565279] usb-storage 2-1:1.0: Quirks match for vid 152d pid 0562: 800000
[ 257.572040] scsi host0: usb-storage 2-1:1.0
[ 258.290646] usbcore: registered new interface driver uas
Now Iḿ going to try this image using the ssd as root partition
Update
I can now use ssd with manjaro on my x96 air, but booting from a sd card and using the ssd as root still fails (boots in android). Maybe its needed to set a delay because the ssd card is slow and doesn’t get detected?
@spikerguy Here comes the source for rtl8822cs wifi driver dkms package (as written before this is just the rtl8723cs package adapted to rtl8822cs).
Info: I have built the package this morning and for testing I have transfered it to a second Manjaro image on sd card which still had kernel 5.10.5. I was able to install the package and successfully activate internal wifi. Everything working well after a reboot.
Then I upgraded to 5.10.8 kernel and driver was automatically rebuilt. Again, everything working well after a reboot.
Ill pkg this but I’d like you to use git and host it on git for other distros to reuse it. That way you will get the hang of using git.
“Come for the OS, Stay for the community”
Ill do the same on manjaros git
Compiling
Looks good. I cannot test if it works but all looks good.
Sorry I need help, how can I do a similar thing in manjaro arm?
Create a directory /etc/initramfs-tools/scripts/local-block
Create an executable script in that directory with these contents:
delay=20
echo Sleeping for ${delay} seconds to allow disk to be found...
sleep ${delay}
"update-initramfs -u" to incorporate the new script into the ramdisk.
Yes this seem to work fine with a usb stick connected. @uropb Can you share the source for this ? I am testing it with emmc and it doesn’t seem to work with emmc as it cannot find emmc at all.
Using label but something wasn’t working (maybe because i was copying only the boot partition to the sd card with disk restore image, now i used a full image with etcher)
I will try and report back, but the main reason for using a ssd is that I’m fed up of slowly killing sd and usb cards (1 sd card and a usb stick in the last 2 days)
Oh Ok, IDK which one you have been using but I have only faced this issue after using the sd cards for months after writing multiple images on it during every release.
Anyways finally you have found a solution for it. I have been testing emmc installer script and I have the updated version of it but the u-boot.ext doesn’t support emmc boot, so need a new u-boot.ext
I already have my home assistant installed in manjaro minimal version … the operating system running on SD Card and waiting for @spikerguy to tell me when it has a version that I can try to transfer the operating system from the SD Card to the EMMC memory.
just lost my sound output
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SM1X96MAXPLUS [SM1-X96-MAX-PLUS], device 0: fe.dai-link-0 () []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SM1X96MAXPLUS [SM1-X96-MAX-PLUS], device 1: fe.dai-link-1 () []
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: SM1X96MAXPLUS [SM1-X96-MAX-PLUS], device 2: fe.dai-link-2 (*) []
Subdevices: 1/1
Subdevice #0: subdevice #0
I tried to edit /usr/bin/g12a_sound.sh But I don’t have such file
So now sound points to dummy output
Can someone pass me the g12a_sound.sh so I can see if works?
@spikerguy, I have been using this for_linux-vim-5101.tar u-boot.ext and for me it does not boot up if a USB stick or USB HDD is connected to another USB port on Beelink GT King Pro.
With a new install of manjaro, and trying to use unstable repo to install rtl8822cs package. I’m getting this error.
DKMS make.log for rtl8822cs-2020.11.20 for kernel 5.10.8-1-MANJARO-ARM (aarch64)
ter 02 fev 2021 10:35:29 WET
/bin/sh: linha 1: bc: comando não encontrado
make ARCH=arm64 CROSS_COMPILE= -C /lib/modules/5.10.8-1-MANJARO-ARM/build/ M=/var/lib/dkms/rtl8822cs/2020.11.20/build modules
make[1]: a entrar na pasta “/usr/lib/modules/5.10.8-1-MANJARO-ARM/build”
/bin/sh: linha 1: bc: comando não encontrado
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_cmd.o
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_security.o
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_io.o
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_debug.o
/var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_debug.c: In function ‘dump_drv_version’:
/var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_debug.c:49:62: error: macro “DATE” might prevent reproducible builds [-Werror=date-time]
49 | RTW_PRINT_SEL(sel, “build time: %s %s\n”, DATE, TIME);
| ^
In file included from /var/lib/dkms/rtl8822cs/2020.11.20/build/include/drv_types.h:60,
from /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_debug.c:17:
/var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_debug.c:49:44: error: macro “TIME” might prevent reproducible builds [-Werror=date-time]
49 | RTW_PRINT_SEL(sel, “build time: %s %s\n”, DATE, TIME);
| ^~~~~~~~
/var/lib/dkms/rtl8822cs/2020.11.20/build/include/rtw_debug.h:224:25: note: in definition of macro ‘RTW_PRINT_SEL’
224 | _seqdump(sel, fmt, ##arg) /rtw_warn_on(1)/;
| ^~~
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_ioctl_query.o
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_ioctl_set.o
CC [M] /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_ieee80211.o
cc1: some warnings being treated as errors
make[2]: *** [scripts/Makefile.build:279: /var/lib/dkms/rtl8822cs/2020.11.20/build/core/rtw_debug.o] Erro 1
make[2]: *** A aguardar por trabalhos não terminados…
make[1]: *** [Makefile:1805: /var/lib/dkms/rtl8822cs/2020.11.20/build] Erro 2
make[1]: a sair da pasta “/usr/lib/modules/5.10.8-1-MANJARO-ARM/build”
make: *** [Makefile:2296: modules] Erro 2