|
Post by spannernick on Oct 31, 2018 11:36:41 GMT
It uses Linux as its base,we all know that but not what version,it's called Buildroot,its for embedded systems, Its version 2016.11.2-00029-gc33e21cde-dirty and its build date is 02 November 2016, it's a slimdown version of Linux so it could fit on the Nand. Here is the development board they used,its a A20-OLinuXIno-LIME.thats was made in 2010(same specs as the CubieBoard2, that was made in 2012.) video of the Prototype in 2016
Here is a video of the64 UI running on a Cubieboard 2.
The OS is called on the CubieBoard2: cb-a20-lubuntu-desktop-card-v105.img and info about it is here,you can download the image here.its the same one that the Armiga uses to boot the Armiga UI with the list of games you can play and that.
Not sure how big the NAND is in TheC64 Mini but is probably 256MB not 4GB.
I posted this cause I thought it was interesting and nice to know what firmware on TheC64 Mini.
Will be putting a video up in a minute so you can see it can be done with a Cubieboard 2, if you fix the bug it has.If you have any ideas why this is happening please post the solution in this thread. It needs the whole of the firmware flashed from TheC64 Mini to the Cubieboard2 for it to work properly,it missing lib files so that why the64 program crashes.
You can download the source here,Thanks goes to Retro Games and swingflip
Have a nice day now,ya hear...
|
|
|
Post by deerwings on Oct 31, 2018 13:44:28 GMT
Well, 'Firmware' refers to software that is embedded into a non-volatile flash memory. It can contain essential boot files as well as essential operating system files.
As far as the OS is concerned, it is a flavor of Linux, but so is a vast number of other embedded devices as well. Raspbian, for example, is a fork of ARM Debian Linux which is used on the Raspberry Pi. I think 'Lubuntu' might be a fork of Debian as well, but Arm Embedded Debian Linux can be so tiny, you can boot it from a 1.44MB floppy drive if you need to. It just wouldn't be extraordinarily useful.
There are better ways to identify what flavor of Linux it's using, I think that's been less of a concern so much as how to read and write to/from the Nand Flash to allow a custom kernel and custom Linux to be written via firmware files. But still good information!
Edit: Just to be correct, with uname -a, here is what is reported. Though I don't know if it makes any difference.
Linux redquarkone 3.4.39 #157 SMP PREEMPT Sat Jun 9 17:17:09 BST 2018 armv7l GNU/Linux
|
|
|
Post by spannernick on Oct 31, 2018 19:36:36 GMT
Lubuntu is a version Ubuntu just with LDXE and Ubuntu uses Unity,Ubuntu uses Debian as its source,Mint use Ubuntu as its source. I almost go TheC64 Mini Carousel working on my Cubieboard2... just need to find a way to shut down LDXE and get it to boot into Commandline. Init base system Load shaders Setup display init joysticks Init sound Failed to attach mixer Can't use sound: Device or resource busy Failed to init channel Sound failed cause LDXE is using it.
|
|
|
Post by popcorn on Oct 31, 2018 20:23:19 GMT
Weeks ago i tried to execute the c64mini executables on my retropie/raspbian raspberry module without any luck! I had messages about missing libraries..
|
|
|
Post by spannernick on Oct 31, 2018 23:58:50 GMT
Found out my audio,Alsa is not working,no sound coming out of HDMI port and if I try and play a wav file it don't play and don't move,seconds on player are not moving,so sort that out tomorrow..
|
|
|
Post by spannernick on Nov 4, 2018 11:12:36 GMT
I try Debian and loads more files missing,it didn't even get pasted "Init base system" came up with a GL error about EGL. The only one that it gets this far is with ubuntu so it differently Ubuntu they are using for the Linux firmware as the base. I wish I knew what this meant.. "Failed to attach mixer Can't use sound: Device or resource busy Failed to init channel" Could it be a group then maybe the64 has to be in a group like sound group or something,I am taking this... "Group in Linux Linux groups are a mechanism to manage a collection of computer system users. All Linux users have a user ID and a group ID and a unique numerical identification number called a userid (UID) and a groupid (GID) respectively"...? I know its uses Alsa because Vice can only use that on Linux so is asking for a sound card and not finding it,it looks like,I have look on Google but its a known error and it depends what hardware it looking for,but I can't see it cos it don't say... Alsa is working fine,tested it with the Gnome player and it played Matt Gray's tune.. Anyone can help,I have a feeling if I get past the sound problem it will work and the Carousel will come up....almost there..
|
|
|
Post by spannernick on Nov 8, 2018 17:02:08 GMT
I got it working....YYEEESSSS.. It was missing Pulseaudio that why it "Failed to attach mixer" It has some bugs at the moment but it ran and then crashed but the joystick works and move left and right on the games...wow I think I need to type "sudo the64" so it has admin rights. Here's a picture to prove it. If your wondering why..2 reasons really.. One.. To see if can be done. Two.. You have network on the Armiga so you can connect to it by FTP so you can transfer games easier than using USB and Uart. I just now have to find a way to stop the desktop cos its running behind the UI,sorting out the sound cause it not work at the moment. Maybe alsa and pulseAudio is clashing now,but it never worked,well I got the sound working the other day but still had the "Failed to attach mixer" so it was a guess,I thought maybe it thinks there is no mixer. Anyone know about Lubuntu 12.10 thats what its running on,I don't know everything about Linux or Ubuntu. This is the UI version. I could update this with the latest update of the firmware but not yet,one thing at a time. I did wonder if I could get it to work on a Linux system on a PC but it wouldn't work,that why I am using my Armiga(Cubieboard2) cos its the closest you get to TheC64 Mini Main board,it has the same GPU and CPU.I am using my Armiga.. wow.. so I got TheC64 Mini to work on Armiga.. This is not perfect yet,none of the games work yet,when you highlight a game and press fire,it's just comes up with a black screen at the moment.I need to get the64 app to run at boot time and get it to reconise the sound device properly.The UI is working only,thats a start.. Once I get it all working I will post a how to so if anyone else wants to try it,It funny having TheC64 Mini with network... maybe be able to connect to a BBS on it now,internet.. ...??
|
|
|
Post by jj0 on Nov 8, 2018 20:14:51 GMT
I got it working....YYEEESSSS.. <snip> I just now have to find a way to stop the desktop cos its running behind the UI,sorting out the sound cause it not work at the moment. Nice work . Also, interesting way to work around your 'no-serial' issue on your Mini. What version of Ubuntu are you using? I'm not 100% sure but to disable the GUI: systemctl set-default multi-user.target To enable the GUI again: systemctl set-default graphical.target As root.
|
|
|
Post by darbyram on Nov 8, 2018 22:41:50 GMT
I got it working....YYEEESSSS.. It was missing Pulseaudio that why it "Failed to attach mixer" It has some bugs at the moment but it ran and then crashed but the joystick works and move left and right on the games...wow I think I need to type "sudo the64" so it has admin rights. Here's a picture to prove it. If your wondering why..2 reasons really.. One.. To see if can be done. Two.. You have network on the Armiga so you can connect to it by FTP so you can transfer games easier than using USB and Uart. I just now have to find a way to stop the desktop cos its running behind the UI,sorting out the sound cause it not work at the moment. Maybe alsa and pulseAudio is clashing now,but it never worked,well I got the sound working the other day but still had the "Failed to attach mixer" so it was a guess,I thought maybe it thinks there is no mixer. Anyone know about Lubuntu 12.10 thats what its running on,I don't know everything about Linux or Ubuntu. This is the UI version. I could update this with the latest update of the firmware but not yet,one thing at a time. I did wonder if I could get it to work on a Linux system on a PC but it wouldn't work,that why I am using my Armiga(Cubieboard2) cos its the closest you get to TheC64 Mini Main board,it has the same GPU and CPU.I am using my Armiga.. wow.. so I got TheC64 Mini to work on Armiga.. This is not perfect yet,none of the games work yet,when you highlight a game and press fire,it's just comes up with a black screen at the moment.I need to get the64 app to run at boot time and get it to reconise the sound device properly.The UI is working only,thats a start.. Once I get it all working I will post a how to so if anyone else wants to try it,It funny having TheC64 Mini with network... maybe be able to connect to a BBS on it now,internet.. ...?? Great work ;-)
|
|
|
Post by spannernick on Nov 8, 2018 23:02:49 GMT
Thanks i try that. it's Lunbuntu 12.10. I need to know the name of the Home directory user cos if I run it with sudo the64 comes up with this just were it Init sound it says "Home Directory /Home/linaro not ours.. I am able to run it with just the64 but if i start to move the yellow square box around the near the edge of the screen it crashes and says on terminal "Failed to re-mount RW" so it looks like in needs full rights to work properly.Its getting there... Picture of terminal,sorry about the pic I am using a HDMI to AV adapter so I can capture it through my PC.
|
|
|
Post by deerwings on Nov 8, 2018 23:54:56 GMT
Sounds like something without access to mount is trying to 'mount -o rw,remount /' for whatever reason, which should only be a problem if the file system is not already in rw state.
|
|
|
Post by jj0 on Nov 9, 2018 6:36:47 GMT
If the 'sudo the64' error message says "home directory /home/linaro not ours" then the username is 'linaro'. This is probably the default username if you use Lubuntu? To get around this you can either run as real root (by using 'sudo su' to change into root, then the home directory will be /root) or maybe change the owner of /home/linaro to root while keeping it accessible for 'linaro' as well (chown root:linaro /home/linaro). But that last option might break other stuff, you can change it back again with chown linaro:linaro /home/linaro). Being root will also help with the 'Failed to re-mount RW' error as only root is allowed to mount devices.
|
|
|
Post by spannernick on Nov 9, 2018 10:52:54 GMT
Thanks for all the help jj0.. Sorry to ask but what's your real name,so I can call you that instead of jj0,if you don't mind of course..? One thing I wanted to ask,does the TheC64 Mini firmware have a Home directory,if it does and it should, what's its name cause the copy of the firmware don't have a Home folder,maybe it don't have one cause its using root as it's user..?? Looking at the A20-OLinuXIno-LIME developing board they used,it has all the same features that the CubieBoard2 has like Sata drive,Power connector,NAND and so on,just notice the A20-OLinuXIno-LIME board was made in 2010 not 2012 so it came out before CB2 that came in 2012.so the board is 8 years old.CubieBoard 6 is out now.Using old tech on new devices..
|
|
|
Post by spannernick on Nov 9, 2018 16:27:09 GMT
OK I do need help,right I tried sudo su and its can't find alsa (sound) and failed to attach mixer,next I tried sudo chown root:linaro /home/linaro and it can't find mixer so can't find alsa again and comes up with home directory /home/linaro not ours,so it looks like it can't find alsa when its root,how do I fix Alsa so it works with root...? Alsa is not working from my HDMI too,only sound I can get if I pick Sunxi-CODEC (my headphone jack)If I pick Sunxi-sndhdmi no sound ,I tested the sound with the GNOME Player,Sound don't work on the UI too but you can see it loading alsa on the commandline so it knows alsa there cause if the UI can't find it,it comes up with "failed to attach mixer" and UI don't run. dam thing.. its like a child, you got to figure out what it wants,so it plays nice.. This is where I got the Lubuntu from dl.cubieboard.org/software/a20-cubieboard/lubuntu/ its called cb-a20-lubuntu-desktop-card-v105.img.gz It dose say in Terminal: Welcome to Linaro 13.04 (GNU/Linux 3.4.43+ armv71) when you login. I have tried others but this is the only one that got this far.Properly If I could get a complete copy of the OS of TheC64 Mini ,it would have to have every file and folder, I might be able to copy it to a sd card,that how this boots up like the Raspberry PI it uses sd cards and .img of Linux OSes or you can copy NAN images to NAND,Mine don't have NAND it had a sd card there instead.
|
|
|
Post by spannernick on Nov 10, 2018 13:19:26 GMT
Here is the output text from the Terminal while TheC64 Mini UI Carousel is running,you can see it more clearly now.. *** INIT canvas->draw_buffer to 23b9478 Loading system file `/usr/lib/vice/C64/kernal'. C64MEM: Kernal rev #3. Loading system file `/usr/lib/vice/C64/basic'. Loading system file `/usr/lib/vice/C64/chargen'. Loading system file `/usr/lib/vice/PRINTER/mps803'. Palette: Loading palette `/usr/lib/vice/PRINTER/mps803.vpl'. Loading system file `/usr/lib/vice/PRINTER/nl10-cbm'. Palette: Loading palette `/usr/lib/vice/PRINTER/mps803.vpl'. NL10: Printer driver initialized. Loading system file `/usr/lib/vice/DRIVES/dos1541'. Loading system file `/usr/lib/vice/DRIVES/d1541II'. Loading system file `/usr/lib/vice/DRIVES/dos1570'. Loading system file `/usr/lib/vice/DRIVES/dos1571'. Loading system file `/usr/lib/vice/DRIVES/dos1581'. Loading system file `/usr/lib/vice/DRIVES/dos2000'. Loading system file `/usr/lib/vice/DRIVES/dos4000'. Loading system file `/usr/lib/vice/DRIVES/dos2031'. Loading system file `/usr/lib/vice/DRIVES/dos2040'. Loading system file `/usr/lib/vice/DRIVES/dos3040'. Loading system file `/usr/lib/vice/DRIVES/dos4040'. Loading system file `/usr/lib/vice/DRIVES/dos1001'. Drive: Finished loading ROM images. Setting min_cycles to 2955744 fb_width = 504 fb_height = 312 fb_width = 504 fb_height = 312 Sound: Available sound devices: alsa dummy fs dump wav voc iff aiff soundmovie Keyboard: Loading keymap `/usr/lib/vice/C64/x11_sym.vkm'. Main CPU: RESET. Keyboard: Loading keymap `/usr/lib/vice/C64/theC64-sym-UK.vkm'. Keyboard: Loading keymap `/usr/lib/vice/C64/theC64-sym-COMMON.vkm'. Sound: Opened device `alsa', speed 44100Hz, fragment size 23ms, buffer size 1021ms, stereo reSID: MOS6581, filter on, sampling rate 44100Hz - fast Drive 8: RESET. Palette: Loading palette `/usr/lib/vice/C64/theC64-palette.vpl'. Failed to re-mount RW Received signal 11 (SIGSEGV), exiting. Sound: Closing device `alsa' *** glibc detected *** the64: double free or corruption (out): 0xbeab1108 *** Aborted
|
|
|
Post by jj0 on Nov 10, 2018 15:39:42 GMT
- Fixing alsa when you are root I'm not so sure, try to login as root instead of the standard user and try to get audio working. E.g. do something like 'aplay -l' to see if it sees any audio devices. Or if it exists, copy /home/linaro/.asoundcfg to /root. And check out this Alsa page.
- Allowing non-root to remount / as rw (even though it already is)... Maybe create a shell script also called mount that does nothing but return 'success', in /home/linaro:
#cat >/home/linaro/mount #!/bin/bash exit 0 <CTRL>-D #chmod a+x /home/linaro/mount And then make sure that this is found by the64 before the standard mount command" by adding the directoryit's in to the PATH only for the64:
#PATH=/home/linaro:$PATH <your full path to the the64 file>the64
|
|
|
Post by spannernick on Nov 10, 2018 23:09:29 GMT
|
|
|
Post by jj0 on Nov 11, 2018 6:45:43 GMT
|
|
|
Post by spannernick on Nov 11, 2018 12:32:02 GMT
I have sorted out the re-mount RW now,it not coming up no more.. its was some of the UI files and folders I copied over,there had user:linaro and group:linaro ,had to change both of them to root.
|
|
|
Post by spannernick on Nov 11, 2018 12:51:56 GMT
I didn't know about this,I don't know the inner workings of Linux only able to customize it and change this and that,so will this put it into commandline only and close the GUI..? Well the only way I find out is typing in the command.. I let you know how it goes,thanks for the help so far.. (Oh I found something out,how it loads a game from the carousel,when you highlight a game and press fire to start it,it copies the game from .vsf.gz and uncompresses it and copies it to 'tmp' and calls the game file snapshot then mounts the file and autostarts the game file from there.You can see what it's doing from Terminal when you run a game,but it don't run it cos it comes up with the same error,Received signal 11 (SIGSEGV), exiting. we will get there in the end.)
|
|
|
Post by spannernick on Nov 11, 2018 15:07:21 GMT
Just tried 'systemctl set-default multi-user.target' in LXTerminal and it says "bash: systemctl: command not found" so there is no program with that name in the bin folder..?? askubuntu.com/questions/988266/systemctl-command-not-found-on-ubuntu-16-04Trusty (14.04) and older: You are out of luck. Ubuntu repositories do not provide the systemd binaries for versions before Utopic, despite the fact that their sources do generate the files. You can learn more about this in this answer. It must have Upstart then because this is Lubuntu 12.04(this is Ubuntu 21.04,it has the L at the beginning of its name because it uses LXDE Desktop GUI and not Unity so its really LXDE Ubuntu 12.04.). I have found autogetty in etc/default/autogetty where it boots the login bin/login,might be able to get it to boot the64 program (UI) there.and it might stop the longin as well.But have to make a backup of the sd card before doing this. Just changed the hostname to RedQuark One ... that must be the beta name for TheC64 Mini. cos the name is nothing to do with Linux,looked on Google just to check,they could of called it the from Redhat,I get it now,it uses U Boot to boot in to console mode so it can boot the 64 program (UI) and has some of the linux OS in there so it can run the libraries it need for the program to work like the Libc library.well it made with it. I will do a step by step guide and share the sd card as a img file and be able to use w32 disk imager when I am done sorting it out.
|
|
|
Post by jj0 on Nov 11, 2018 18:34:47 GMT
If you're not on systemd but on Upstart then you have to set the runlevel to single user I think, see this. Or maybe this.
|
|
|
Post by spannernick on Nov 13, 2018 16:32:32 GMT
If you're not on systemd but on Upstart then you have to set the runlevel to single user I think, see this. Or maybe this. Could you do me a favor and make a back of your files cos I have files missing,I need a copy the whole NAND,shame you can't copy it to a img file. You could zip it up, and when you are ready. Thanks for your help so far jj0..
|
|
|
Post by spannernick on Nov 14, 2018 0:13:32 GMT
Here is the video of the UI on the CubieBoard2 ,its on the first post too.
|
|
|
Post by spannernick on Nov 14, 2018 12:23:19 GMT
|
|
|
Post by jj0 on Nov 14, 2018 17:32:40 GMT
Here is the video of the UI on the CubieBoard2 ,its on the first post too. It's real! Makes me wish I bought a Cubieboard2 instead of an OlinuXino-LIME.
|
|
|
Post by spannernick on Nov 15, 2018 12:09:39 GMT
Here is the video of the UI on the CubieBoard2 ,its on the first post too. It's real! Makes me wish I bought a Cubieboard2 instead of an OlinuXino-LIME. Have you tried to get the firmware running on it..? Oh is the main board based on the OlinuXino-LIME not OlinuXino-LIME2..? If so will have to change some things in the first post,no probs,easy to fix.. I got a Cubieboard2 cause I wanted to use the Armiga Firmware with it,I have that too if you want it,if your interested.? The UI is better than TheC64 Mini only because all the features are there,like change and swap disks and one button for Virtual Keyboard and one for Virtual Mouse,like the Virtual Mouse now that was a good idea. Very weird how they use the same type of board and both have licence from Cloanto,thats because of the C64 Kernel and roms and Amiga Kickstarts,Cloanto have the Licenses for them.It's weird how they have it for the C64 Kernel,well it cos of C64 Forever but I thought the C64 Kernel was free.I probably think that cos of them been in Vice and CCS64,(love CCS64,like how the settings look like they are apart of the C64 Emulator.)
|
|
|
Post by spannernick on Nov 15, 2018 19:30:01 GMT
Here is the video of the UI on the CubieBoard2 ,its on the first post too. It's real! Makes me wish I bought a Cubieboard2 instead of an OlinuXino-LIME. I know why it's doing it,its memory,I just changed the permissions to the covers and screens and there are no images up now but the UI is moving left and right like should do,so need to close everything that using memory now to get everything working.Thank god need a break from this now.. Do anyone know a command to see whats running ..? I have stopped lightDM before,thats the desktop but did chear the memory.so something eles is running on here too.
|
|
|
Post by jj0 on Nov 15, 2018 23:06:52 GMT
To see what's running use 'top'. But check the permissions on the game pictures, maybe they're not quite right? Do you see any errors from the the64 program?
|
|
|
Post by spannernick on Nov 15, 2018 23:53:55 GMT
only this.. Received signal 11 (SIGSEGV), exiting. Sound: Closing device `alsa' *** glibc detected *** the64: double free or corruption (out): 0xbe913108 *** Aborted If all the images are put back,then it errors out The OS is 4GB and the CubieBoard has 1GB Ram. linux-sunxi.org/Cubieboard2
|
|