I received my CosmosEx 3.0 a while ago and today I finally had the time to have a go with it. As I'm going to use with a TT030 I figured the SCSI interface would be preferable. So time to reconfigure the CosmosEx to use the SCSI interface. I powered it down, changed the DIP switch on the board, and plugged in just the network and power cables.
When powering it on, it got stuck and never booted (waited 5 minutes). I knew that this could happen as the problem seems to be fairly common and described in more detail along with a solution here: https://www.youtube.com/watch?v=JMjCRRTZ3NM
First I verified that the CosmosEx was still operational by switching back to ACSI mode, and it booted just fine.
Back to SCSI mode, and it got stuck again. So, I did what was described in the youtube video.
I connected to the CosmosEx via ssh, but then I discovered that it had no /ce/ce_force_flash.sh file which you're supposed to run.
I figured I had to update the CosmosEx first, so I ran /ce/ce_update.sh.
Code: Select all
root@CosmosEx3:/ce# ./ce_update.sh
Terminating cesuper.sh
Terminating cosmosex not needed, no instance is running
Updating CosmosEx from internet, this will take a while.
DO NOT POWER OFF THE DEVICE!!!
Will try to install missing git
Get:1 http://archive.raspberrypi.org/debian stretch InRelease [25.4 kB]
Get:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease [15.0 kB]
Get:3 http://archive.raspberrypi.org/debian stretch/main armhf Packages [192 kB]
Get:4 http://archive.raspberrypi.org/debian stretch/ui armhf Packages [45.0 kB]
Get:5 http://raspbian.raspberrypi.org/raspbian stretch/main armhf Packages [11.7 MB]
Get:6 http://raspbian.raspberrypi.org/raspbian stretch/contrib armhf Packages [56.9 kB]
Get:7 http://raspbian.raspberrypi.org/raspbian stretch/non-free armhf Packages [98.9 kB]
Fetched 12.1 MB in 18s (641 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-arch git-cvs git-mediawiki
git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 140 not upgraded.
Need to get 4,857 kB of archives.
After this operation, 26.4 MB of additional disk space will be used.
Get:1 http://raspbian.playstar.se/raspbian stretch/main armhf liberror-perl all 0.17024-1 [26.9 kB]
Get:2 http://raspbian.playstar.se/raspbian stretch/main armhf git-man all 1:2.11.0-3+deb9u6 [1,436 kB]
Get:3 http://raspbian.playstar.se/raspbian stretch/main armhf git armhf 1:2.11.0-3+deb9u6 [3,393 kB]
Fetched 4,857 kB in 1s (2,908 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 34710 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u6_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u6) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.11.0-3+deb9u6_armhf.deb ...
Unpacking git (1:2.11.0-3+deb9u6) ...
Setting up git-man (1:2.11.0-3+deb9u6) ...
Setting up liberror-perl (0.17024-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up git (1:2.11.0-3+deb9u6) ...
W: --force-yes is deprecated, use one of the options starting with --allow instead.
git version 2.11.0
doing git pull...
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
doing git fetch...
Initialized empty Git repository in /ce/.git/
remote: Enumerating objects: 137, done.
remote: Counting objects: 100% (137/137), done.
remote: Compressing objects: 100% (120/120), done.
remote: Total 137 (delta 23), reused 84 (delta 7), pack-reused 0
Receiving objects: 100% (137/137), 1.71 MiB | 2.76 MiB/s, done.
Resolving deltas: 100% (23/23), done.
From https://github.com/atarijookie/ce-atari-releases
* [new branch] jessie -> origin/jessie
* [new branch] master -> origin/master
* [new branch] stretch -> origin/stretch
* [new branch] yocto -> origin/yocto
Branch stretch set up to track remote branch stretch from origin.
Switched to a new branch 'stretch'
From https://github.com/atarijookie/ce-atari-releases
* branch stretch -> FETCH_HEAD
Already up-to-date.
XILINX firmware writing script.
Detected XC9572 chip, now will detect if it's ACSI or SCSI
Detected XC9572 chip and SCSI interface, will write firmware
XSVF Player v5.01, Xilinx, Inc.
XSVF file = /ce/update/xlnx2s.xsvf
ERROR: TDO mismatch and exceeded max retries
ERROR at or near XSVF command #382. See line #382 in the XSVF ASCII file.
Execution Time = 157.7 seconds
----------------------------------
>>> Updating Hans - START
Will use serial port: /dev/ttyAMA0
stm32flash - http://stm32flash.googlecode.com/
- with the fix for DS1818
>>> Will flash HANS <<<
Using Parser : Intel HEX
Serial Config: 57600 8E1
read_byte: Success
flash_stm32: stm32.c:90: stm32_read_byte: Assertion `0' failed.
Aborted
----------------------------------
>>> Updating Franz - START
Will use serial port: /dev/ttyAMA0
stm32flash - http://stm32flash.googlecode.com/
- with the fix for DS1818
>>> Will flash FRANZ <<<
Using Parser : Intel HEX
Serial Config: 57600 8E1
read_byte: Success
flash_stm32: stm32.c:90: stm32_read_byte: Assertion `0' failed.
Aborted
>>> Updating Franz - END
----------------------------------
core_freq is ok in /boot/config.txt
Update done, you may start the /ce/ce_start.sh now!
root@CosmosEx3:/ce#
Anyways, the update gave me the missing /ce/ce_force_flash.sh file. Great!
So went ahead and executed ce_force_flash.sh with the following results:
Code: Select all
root@CosmosEx3:/ce# ./ce_force_flash.sh
Forcing writing of flash of all chips!
ce_update.sh started at : Fri 14 Aug 18:16:38 UTC 2020
Terminating cesuper.sh
Terminating cosmosex not needed, no instance is running
Updating CosmosEx from internet, this will take a while.
DO NOT POWER OFF THE DEVICE!!!
git version 2.11.0
git version 2.11.0
doing git pull...
HEAD is now at ec83f84 CR/LF EOL for readme.txt
From https://github.com/atarijookie/ce-atari-releases
* branch stretch -> FETCH_HEAD
Already up-to-date.
XILINX firmware writing script.
Detected XC9572 chip, now will detect if it's ACSI or SCSI
Detected XC9572 chip and ACSI interface, will write firmware
XSVF Player v5.01, Xilinx, Inc.
XSVF file = /ce/update/xlnx2a.xsvf
SUCCESS - Completed XSVF execution.
Execution Time = 46.4 seconds
----------------------------------
>>> Updating Hans - START
Will use serial port: /dev/ttyAMA0
stm32flash - http://stm32flash.googlecode.com/
- with the fix for DS1818
>>> Will flash HANS <<<
Using Parser : Intel HEX
Serial Config: 57600 8E1
read_byte: Success
flash_stm32: stm32.c:90: stm32_read_byte: Assertion `0' failed.
Aborted
----------------------------------
>>> Updating Franz - START
Will use serial port: /dev/ttyAMA0
stm32flash - http://stm32flash.googlecode.com/
- with the fix for DS1818
>>> Will flash FRANZ <<<
Using Parser : Intel HEX
Serial Config: 57600 8E1
read_byte: Success
flash_stm32: stm32.c:90: stm32_read_byte: Assertion `0' failed.
Aborted
>>> Updating Franz - END
----------------------------------
check_and_flash_chips.sh finished
core_freq is ok in /boot/config.txt
Update done, you may start the /ce/ce_start.sh now!
ce_update.sh finished at: Fri 14 Aug 18:17:38 UTC 2020
root@CosmosEx3:/ce#
For some reason the flashing of HANS and FRANZ failed.
Anyways, power cycled the unit to see if it would boot... but it did not.
So I once again connected to the unit via ssh and this is what I found:
Code: Select all
root@192.168.1.101's password:
Linux CosmosEx3 4.14.34-v7+ #1110 SMP Mon Apr 16 15:18:51 BST 2018 armv7l
CosmosEx running on Raspbian Stretch.
To enable USB keyboard in linux console, press:
Left Ctrl + Left Alt + Right Ctrl + Right Alt
root@CosmosEx3:~# cd ..
root@CosmosEx3:/# cd ce
root@CosmosEx3:/ce# ls -l
total 64
drwxr-xr-x 5 root root 4096 Aug 14 18:25 app
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ceboot.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ce_conf.sh
-rwxr-xr-x 1 root root 1104 Oct 16 2016 ce_firstfw.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ce_force_flash.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ce_running.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ce_start.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ce_stop.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 cesuper.sh
-rwxr-xr-x 1 root root 0 Aug 14 18:17 ce_update.sh
-rw-r--r-- 1 root root 263 Aug 14 18:10 cosmosex.service
drwxr-xr-x 2 root root 4096 May 10 2018 firstfw
-rw-r--r-- 1 root root 809 Aug 14 18:10 initd_cosmosex
-rwxr-xr-x 1 root root 0 Aug 14 18:17 install_ffmpeg.sh
-rw-r--r-- 1 root root 35150 Aug 14 18:10 LICENSE
drwxr-xr-x 2 root root 4096 Aug 14 18:25 settings
-rwxr-xr-x 1 root root 0 Aug 14 18:17 time.sh
drwxr-xr-x 2 root root 4096 Aug 14 18:17 update
-rwxr-xr-x 1 root root 0 Aug 14 18:17 whichdistro.sh
root@CosmosEx3:/ce#
Now, I have no clue what to do to get this thing to work. Any suggestions would be most welcome. Until then, I'll put it on a shelf.

Thanks,
Daniel