henrikstengaard / hstwb-installer

A set of scripts to automate installation of Amiga OS, Kickstart roms and packages to new or existing Amiga HDF files
https://hstwb.firstrealize.com
MIT License
100 stars 7 forks source link

Installer not working on Amibian 1.5 #31

Closed beltoft closed 2 years ago

beltoft commented 4 years ago

Installer not working on new Amibian 1.5

Amibian dont have dialog command installed as default but can be installet via apt-get

next problem that i couldn't fix dir /home/amibian/amibian/amiberry/conf don't exist as conf file now are stored in ~/Amiga/conf

henrikstengaard commented 4 years ago

Amibian 1.5 is only available as beta or closed behind donations. I don't have it at the moment.

But I'm going to make the paths configurable to support it

beltoft commented 4 years ago

I can provide a copy of 1.5 if it will speed up the development

henrikstengaard commented 4 years ago

That would certainly help and ensure it works with your setup. I will delete it after adding Amibian 1.5 support, then updating to latest HstWB Installer will include this. You can reach me at (removed) if needed

beltoft commented 4 years ago

Shared with you on Google drive. Let me know if you got it

henrikstengaard commented 4 years ago

@beltoft I got a shared Amibian15 folder, but it's empty

beltoft commented 4 years ago

was out of space. should be there now

henrikstengaard commented 4 years ago

got it, thanks. I will take a look at it

henrikstengaard commented 4 years ago

Great news, I got almost everything updated to work with Amibian 1.5. Thanks again for providing the image, it really helped to me adding support and testing it works.

The only parts that aren't working yet are "Edit network settings, "Force Audio to HDMI" and "Force Audio to Jack" in Amibian setup menu.

The rest should be working and I have added installation of Dialog as well.

I need to do some more testing and tweaking to make it part of next HstWB Installer release.

You can help test by checking out a new amibian-15 branch with following steps assuming you have already installed HstWB Installer as described here https://github.com/henrikstengaard/hstwb-installer/wiki/HstWB-Installer-for-Amibian:

  1. cd ~/hstwb-installer
  2. git reset --hard
  3. git pull
  4. git checkout amibian-15
  5. ./launcher/amibian/install.sh
henrikstengaard commented 4 years ago

Note: I haven't been able to start HstWB Installer with JIT enabled for CPU. I'm not sure if this is related to issues with latest version of Amiberry included with Amibian v1.5 or some incompatibility with Kickstart v3.1.4 for A1200.

JIT worked fine with Amiberry and Chips UAE4ARM included with Amibian v1.4.1001.

Until now you probably need to avoid using JIT and stick to 25Mhz or fastest CPU speed, which means that installation process in HstWB Installer is really slow ... like really slow.

beltoft commented 4 years ago

Did you update both amibian and amiberry? I Know there's been some bug fixes since the release. Maybe it will fix the jit problem. I will try to get time to test it today

henrikstengaard commented 4 years ago

I didn't update Amibian or Amiberry. There might be updates that solves JIT. I will try that later today as well

beltoft commented 4 years ago

I couldn't try it out today as I only have an 8GB sd card and there's not enough free space on it to download hstwb image.

I will get a bigger one tomorrow and then test

søn. 23. feb. 2020 16.03 skrev Henrik Nørfjand Stengaard < notifications@github.com>:

I didn't update Amibian or Amiberry. There might be updates that solves JIT. I will try that later today as well

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/henrikstengaard/hstwb-installer/issues/31?email_source=notifications&email_token=ACAMCDPLTYPEZKVA4T2HFEDREKF3FA5CNFSM4KYJVSW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMV54YQ#issuecomment-590077538, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAMCDLBX6YBU2VALH4TDT3REKF3FANCNFSM4KYJVSWQ .

henrikstengaard commented 4 years ago

@beltoft ahh, right. Installing HstWB Installer image requires 2GB disk space on your micro SD card, so a 16GB+ sized one is recommended.

I did further testing today and JIT works perfect after updating Amiberry to latest v3.1.2 even with CPU Speed set to Turbo. I installed Amiga OS 3.1.4 with update 3.1.4.1, ClassicWB FULL without any issues. Amiberry was updated by pulling latest source code and compile it.

beltoft commented 4 years ago

Im testing it out now wth a 64gb sdcard and it's running. However i keep getting error in the amiga installation: Volume AmigaOsDir is write protected If I make the AmigaOsDir volume read/write it won't detect any OS files

I can just press cancel and it will continue but its annoying

When the installer starts it asks me to insert a WB disk in any floppy device even though i have the wb3.9 iso file. If i insert the WB adf files it will just start the wb3.1 install

beltoft commented 4 years ago

I can't get it to detect the amigaos3.9.iso in amigaosdir:

filename and hash is ok so i don't understand why the installer won't find it

henrikstengaard commented 4 years ago

@beltoft I haven't tested much Amiga OS 3.9 installation using Amibian and Amiberry. HstWB Installer uses a device driver with in the emulator to mount the iso file virtually and this requires it's read/write to work. It could be a simple configuration issue.

I will do some testing with Amiga OS 3.9 iso on Amibian and reproduce the same issues to find a workable solution.

henrikstengaard commented 4 years ago

I have been battling this issue back and forth over the last days with some improvement. Amiberry configurations have updated with read/write access to "amigaos" directory, which should fix the issue with mounting Amiga OS 3.9 iso by HstWB Installer.

However I haven't been able to test it successfully as I did an Amibian update and after this USB sticks are no longer automatically mounted. When I try to mount USB sticks manually, they are read only as amibian user and read/write as root.

Either I have to revert back to a clean Amibian 1.5 and retry or I need to update HstWB Installer to shadow copy "amigaos" directory to a temp directory.

I don't like any of those solutions and would prefer to get Amibian 1.5 to properly automount USB sticks with read/write again.

beltoft commented 4 years ago

I reformatted my SD card and started over. updated amibian and amiberry and then started launcher.sh.but now the installer won't find my USB with the selfinstaller files. it is mounted at /media/usb. What to do?

and you're right it is mounted as root so no write permission... I'll ask the developer to fix it

beltoft commented 4 years ago

if you need r/w on usb to move on add these 2 lines to /etc/usbmount/usbmount.conf overwrite the lines already in the conf file.

MOUNTOPTIONS="sync,noexec,nodev,noatime,nodiratime,nosuid,users,rw" FS_MOUNTOPTIONS="-fstype=vfat,umask=000"

I asked the developer of amibian to add it in a future update

beltoft commented 4 years ago

But even if the usb drive now is R/W hstwb installer still can't find the selfinstaller files. Where does the script look for the files? the usb is mounted in /media/usb

henrikstengaard commented 4 years ago

Thanks for the tip about USB rw.

It looks for the self install files in /media/hstwb-self-install or /media/hstwb-installer. You can use HstWB menu and select Setup, HstWB Installer and Find HstWB Self Install. This iterates through /media mountpoints for ones containing hstwb-self-install.txt. The /media/hstwb symlink to the found mountpoints.

Please give that a try.

beltoft commented 4 years ago

nope. it's not found even though i'm looking right at the txt file in /media/usb. strange part is that it found it in the first version i tried out

henrikstengaard commented 4 years ago

Do you know if the USB stick/disk is mounted? What happens if you type "lsblk"?

beltoft commented 4 years ago

Lsblk tells me sda is mounted at /media/usb0

I don't have execute permission on the usb. Only rw. Could that have something to do with it

beltoft commented 4 years ago

if i hold "Find selfinstaller" i can see that its searching but it looks like is only look in /boot and not in /media

henrikstengaard commented 4 years ago

I have made some changes to detection method in find HstWB self install. Have you tried updating by typing "cd ~/hstwb-installer" and "git pull"?

beltoft commented 4 years ago

Did a pull and it says already up to date. So maybe there's an error in the detection?

beltoft commented 4 years ago

I'm trying to go through what you have made and i can see that find self install is looking in the variable $usbmediapath but it doesn't looks like that variable is containing anything or if it is then it's the first fat32 partition it finds: /boot

I haven't been able to find where $usbmediapath is declared yet but im suspecting this is where the detection bug is

beltoft commented 4 years ago

Ok I think I've found the bug in find-hstwb-self-install.sh the line lsblk --list --paths --noheadings --output name,fstype,size,state,mountpoint | grep -e "vfat" -e "/media/" | awk '{print $4}' shoud be changed to lsblk --list --paths --noheadings --output name,fstype,size,state,mountpoint | grep -e "vfat" -e "/media/" | awk '{print $5}'

because the output of the lsblk command is /dev/sda vfat 14.4G running /media/usb1 /dev/mmcblk0p1 vfat 256M /boot

on the usb drive it have an extra column saying running and that was what in the output when using ` | awk '{print $4}'``

henrikstengaard commented 4 years ago

@beltoft Nice, thanks. I will change it and push the change to fix it

beltoft commented 4 years ago

Maybe investigate this a bit more because this change was working when I used my usb pen drive however not when I use my usb ssd disk

henrikstengaard commented 4 years ago

I did change the USB detection from finding mounted devices that starts with /media/usb to any FAT32/16 device, so it will include boot in it's checking mounted devices. This must have caused detection issue.

beltoft commented 4 years ago

Probably. And just forget what I said about my ssd not being detected. It's not fat formatted

beltoft commented 4 years ago

Ok I've run the installer without problems. Everything seems to work just fine. 3.9 iso was detected and all installed as it should. I've found out why USB drives was read only and fixed it and asked the developer of amibian to add the fix to next update. So I think you can close this issue :)

spikemorrissey commented 4 years ago

Hi, I would love this to work with Amibian 1.5 . Henrik, when do you think you will be able to update the installer please given that beltoft says he has managed to run the installer without problems?

spikemorrissey commented 4 years ago

I have not been able to get it to work. I tried the new amibian branch but got 'ERROR: HstWB Installer root "" doesn't exist'

cja2173 commented 4 years ago

I too am having a problem with the 1.5 manual install. When I run the HstWB Image Setup cmd file I get the following: I don't understand what I am doing wrong. Also what is the correct loacation and name so 3.9 iso file is found during run? must it be mounted like AmigaForever.iso? HstWBImageSetupCmderrorlog

spikemorrissey commented 4 years ago

I did change the USB detection from finding mounted devices that starts with /media/usb to any FAT32/16 device, so it will include boot in it's checking mounted devices. This must have caused detection issue.

Hi Henrik,

Have you managed to fully resolve the issue please? I and many others are eagerly awaiting to use your installer with Amibian 1.5 Thank you!

henrikstengaard commented 4 years ago

@spikemorrissey I'm going to see if I can get Amibian 1.5 support in a more stable state over the next days

henrikstengaard commented 4 years ago

I too am having a problem with the 1.5 manual install. When I run the HstWB Image Setup cmd file I get the following: I don't understand what I am doing wrong. Also what is the correct loacation and name so 3.9 iso file is found during run? must it be mounted like AmigaForever.iso? HstWBImageSetupCmderrorlog

From your screenshot an error occured due to WinUAE not being present in Windows registry. That's a bug I need to fix. But other than that it looks good from all the files it has detected. You seems to have Amiga OS 3.9 iso and boing bags, Amiga OS 3.1.4 and 3.1 adf files. Kickstart roms are also present, so I would expect that USB stick to work.

Have you tried installing HstWB Installer with it?

henrikstengaard commented 4 years ago

I have not been able to get it to work. I tried the new amibian branch but got 'ERROR: HstWB Installer root "" doesn't exist'

Could you please try running "rm -Rf ~/.hstwb-installer" and try installing again?

It the error still occurs afterwards, please try running "cat ~/.hstwb-installer/config.sh" and report back contents of this file.

henrikstengaard commented 4 years ago

I have added a fix to usbmount.conf, which is applied during installation running install.sh. This solved my R/W issue with USB devices attached, but I still have to manually mount USB devices. For some reason USB devices aren't mounted automatically.

Mounting USB devices can be done manually by typing "hstwb", press enter and select System, Mount FAT32 devices. Afterwards HstWB, Setup, HstWB Installer, Find HstWB Self Install should detect attached USB device with HstWB self install files.

spikemorrissey commented 4 years ago

Thank you for the reply. I managed to get the install going but despite having all the required files in the amigaos directory, the installer comes up with the the following message -

[Image.jpeg] Get Outlook for iOShttps://aka.ms/o0ukef

spikemorrissey commented 4 years ago

IMG_5428

spikemorrissey commented 4 years ago

Sorry the image is the wrong way round! I am installing on a raspberry pi 4 running Amibian 1.5

henrikstengaard commented 4 years ago

Strange it doesn't detect any valid iso or adf files.

I need more details about the files in amigaos directory you're trying to use.

From shell could you please run commands "ls -l /media/hstwb-self-install/amigaos" and "find /media/hstwb-self-install/amigaos -type f -exec md5sum '{}' \;" and attach screenshot of those?

Those two commands will list file details and md5 checksums of files you have in amigaos directory.

spikemorrissey commented 4 years ago

How do I get into shell please as the raspberry pi just goes into a continuous loop of the install process?

henrikstengaard commented 4 years ago

If you press F12 and quit Amiberry, then it should get you back a shell.

cja2173 commented 4 years ago

Henrik, Thanks for deciphering the red portion.  I have been working on getting the full games library so I have not yet installed the stick. 

In an unrelated question I was wondering if you were considering adding midi support to the Amiberry emulator running under Amibian? I have no concept of how much work it would be so I can understand if you are not if it is horrendous.  I have posted some notes on the board relating a Linux midi tool that works with the Alsa packagehoping that it would help you find a solution.

In any event, thank you for your efforts and the code you have written. I came back for a second support contribution when I saw how good Amibian was.    On 4/2/2020 3:35:24 AM, Henrik Nørfjand Stengaard notifications@github.com wrote: @spikemorrissey [https://github.com/spikemorrissey] I'm going to see if I can get Amibian 1.5 support in a more stable state over the next days — You are receiving this because you commented. Reply to this email directly, view it on GitHub [https://github.com/henrikstengaard/hstwb-installer/issues/31#issuecomment-607674298], or unsubscribe [https://github.com/notifications/unsubscribe-auth/ANTJBZVBL2XEMSMQCNODAEDRKQ53ZANCNFSM4KYJVSWQ].

spikemorrissey commented 4 years ago

l

Strange it doesn't detect any valid iso or adf files.

I need more details about the files in amigaos directory you're trying to use.

From shell could you please run commands "ls -l /media/hstwb-self-install/amigaos" and "find /media/hstwb-self-install/amigaos -type f -exec md5sum '{}' ;" and attach screenshot of those?

Those two commands will list file details and md5 checksums of files you have in amigaos directory.

Thanks so much for helping, I would love to get this working! - The first command produced a result, the second command just brought up a prompt. Please see attached screenshot IMG_5430