User Tools

Site Tools


how_to_mod_the_c64_mini_to_add_extra_games

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
how_to_mod_the_c64_mini_to_add_extra_games [2019/02/07 13:33]
– [Preparing your Comms Software] added missing "UART-Adapter-COM.png" pic (from Nick-forum) crispin
how_to_mod_the_c64_mini_to_add_extra_games [2019/02/10 21:54] (current)
– [Midnight Commander] crispin
Line 77: Line 77:
  
 In case of using UART connection more often, opening and closing housing of Mini could become cumbersome. Some users drilled a hole in housing because of that. Instead of getting wires floating around, there could be more practical solution: to fit standard 2.5 or 3.5mm audio jack at housing. It is more elegant solution, but it require drilling of small hole and soldering panel mount jack. For that solution you will need FTDI / UART cable with audio plug, panel mount jack and short 3-pin wire. In case of using UART connection more often, opening and closing housing of Mini could become cumbersome. Some users drilled a hole in housing because of that. Instead of getting wires floating around, there could be more practical solution: to fit standard 2.5 or 3.5mm audio jack at housing. It is more elegant solution, but it require drilling of small hole and soldering panel mount jack. For that solution you will need FTDI / UART cable with audio plug, panel mount jack and short 3-pin wire.
-Wire should have female pin header connector at one side; this will be attached to soldered pin header at board. Other side should be soldered to panel jack. Instead of connector, wires could be soldered directly to board. But if you do it that way, then you will need to unscrew panel board audio jack, in case that you need to put board away from housing.\\ {{::uart-audiojack.jpg?400|}}{{::audiojack25.jpg?400|}}\\+Wire should have female pin header connector at one side; this will be attached to soldered pin header at board. Other side should be soldered to panel jack. //Instead of connector, wires could be soldered directly to board. But if you do it that way, then you will need to unscrew panel board audio jack, in case that you need to put board away from housing.//\\ {{::uart-audiojack.jpg?400|}}{{::audiojack25.jpg?400|}}\\
   *Ready made FTDI>TTL 2.5 / 3.5 mm 3 pin stereo jack cable:   *Ready made FTDI>TTL 2.5 / 3.5 mm 3 pin stereo jack cable:
   *https://www.delock.com/produkte/G_83789/merkmale.html   *https://www.delock.com/produkte/G_83789/merkmale.html
Line 194: Line 194:
 ==== Preparing your Comms Software ==== ==== Preparing your Comms Software ====
 === Windows === === Windows ===
-The COM port of your adapter (COM1, COM2, .... COM9) and Speed 115200. Under "Devices and Printers" you can see what kind of COM port the adapter uses ,port. +The COM port of your adapter (COM1, COM2, .... COM9) and Speed 115200. Under "Devices and Printers" you can see what kind of COM port the adapter uses ,port.\\ 
- +{{::UART-Adapter-COM.png?nolink|}}\\
-{{::UART-Adapter-COM.png?nolink|}} +
 In my case it is port COM9 ... Attention, if you later use another USB port then the COM port will change. In my case it is port COM9 ... Attention, if you later use another USB port then the COM port will change.
  
Line 228: Line 226:
 **''sudo cu -s 115200 -l /dev/ttyUSB0''**\\ **''sudo cu -s 115200 -l /dev/ttyUSB0''**\\
 If it is still denied, for Ubuntu / Linux Mint you have to enter\\ If it is still denied, for Ubuntu / Linux Mint you have to enter\\
-**''sudo usermod --append --groups dialout myusername''**, then log out and log in again (replace "myusername" with your own username).\\ For other distros, check [[http://linux-sunxi.org/UART#Troubleshooting_.2F_device_file_permissions|troubleshooting]] dedicated section from link above.+**''sudo usermod --append --groups dialout myusername''**, then log out and log in again (replace "myusername" with your own username).\\ From now on it should work, without sudo.\\ For other distros, check [[http://linux-sunxi.org/UART#Troubleshooting_.2F_device_file_permissions|troubleshooting]] dedicated section from link above.
 ==== Getting into the U-boot prompt ==== ==== Getting into the U-boot prompt ====
  
Line 241: Line 239:
 If you end up with the following message, then it has not worked. If you end up with the following message, then it has not worked.
  
-{{:boot-nein.png?nolink&400|}}+{{:boot-nein.png?nolink&670|}}
  
 If you see this message, then it worked. If you see this message, then it worked.
  
-{{::boot-ok.jpg?nolink&400|}}+{{::boot-ok.jpg?nolink&665|}}
  
 ==== Setting the root password ==== ==== Setting the root password ====
  
-Now you need the root login and set your own password. Then you can also log in without interruption on the c64 mini as root.+Now you need the root login and set your own password. Then you can also log in without interruption on the c64 mini as root.\\ 
 +Mind you, while waiting for new password, cursor will disappear: it will **not** blink, nor you will see what you type. it is common security measure of Linux (and most other Unixoids). Your machine is not frozen. When you press enter, "''Retype password:''" will occur - retype it, press enter and continue.\\ 
 +Hint: commands that needs to be entered to terminal could be copy&pasted line by line from below. ctrl+c is keyboard shortcut for "copy" at Windows and Linux; ctrl+v is "paste" for Windows, ctrl+shift+v for paste into Linux terminal. alt+tab is for switching between windows at Windows and Linux, as usual.
  
-Here is what you need to do step by step:+Here is what you need to dostep by step:
  
-  * **setenv nand_root /dev/sda**  +  * **''setenv console ${console} ramfs''**  
-  * **boot** +  * **''boot''** 
-  * **insmod /lib/modules/3.4.39/nand.ko** +  * **''insmod /lib/modules/3.4.39/nand.ko''** 
-  * **mount /dev/nandb /mnt** +  * **''mount /dev/nandb /mnt''** 
-  * **passwd**+  * **''passwd''**
   * (Type in a password ) [ The cursor does not move, the input is masked]   * (Type in a password ) [ The cursor does not move, the input is masked]
   * (confirm password again) [ The cursor does not move, the input is masked]    * (confirm password again) [ The cursor does not move, the input is masked] 
-  * **mv /mnt/etc/shadow /mnt/etc/shadow.old** +  * **''mv /mnt/etc/shadow /mnt/etc/shadow.old''** 
-  * **cp /etc/shadow /mnt/etc** +  * **''cp /etc/shadow /mnt/etc''** 
-  * **umount /mnt**+  * **''umount /mnt''** 
 + 
 + 
 +UPDATE: "**setenv console ${console} ramfs**" is used instead "**setenv nand_root /dev/sda**"; both works, but according to [[http://thec64community.online/post/1898/thread|this]] post at community forum, this is better way to do it:\\ 
 +//"instead of doing the 'setenv nand_root /dev/sda' a better way is to do 'setenv console ${console} ramfs'. This uses the 'official' way supported by the boot script to get to the command prompt instead of failing to mount the root disk. It adds the 'ramfs' parameter to the boot arguments (by adding it to the console parameter which in itself gets added to the bootargs paramter). If the boot script sees this 'ramfs' paramter it will stop and not try to mount and run from the nand_root."// (thanks jj)\\ 
 +Other variant is left below, for historical reasons. 
  
 Here is the entire text Here is the entire text
Line 306: Line 312:
  
 Then restart the C64 mini and log in with login : root and the password you set. Now you have root access to the c64 Mini :) Then restart the C64 mini and log in with login : root and the password you set. Now you have root access to the c64 Mini :)
 +
 +==== Useful hints ====
 +When you enter Mini's file system, you will find your self at mounted **/root** sub-folder, not a real root!
 +It could be confusing, because **''ls''** will not show you common file-system "tree".\\
 +To quickly get out of it, type\\
 +**''cd ..''**\\
 +
 +To see where are you at file system, enter this to show you more informative command line prompt:\\
 +**''PS1="\w $ "''**
 +
 +==== Linux login/logout - quick reminder of session procedure ====
 +**''stty -F /dev/ttyUSB0 -crtscts''**\\
 +**''cu -s 115200 -l /dev/ttyUSB0''**\\
 + 
 +login (root), password\\
 +**''mount /tmp/usbdrive/sda1 /mnt''**\\
 +**''mount -o remount, rw /''**\\
 + 
 +DO WHAT YOU NEED, THEN\\
 + 
 +**''mount -o remount, ro /''**\\
 +**''umount /mnt''**\\
 +**''poweroff''**\\
 +
 +==== Midnight Commander ====
 +For easier and faster manipulation with files and browsing through Mini's file system, using of MC is recommended. \\ This is [[https://en.wikipedia.org/wiki/Category:Orthodox_file_managers|dual panel file manager]], in style of "[[https://en.wikipedia.org/wiki/Total_Commander|Total Commander / Windows Commander]]", "[[https://en.wikipedia.org/wiki/Double_Commander|Double Commander]]", "Norton Commander" (DOS) or "File Manager" of old Windows version (WfW3.11). \\  It is recommended to utilise "learn" abilities of MC, to adjust MC to Mini's keyboard assignment and, more importantly, adapt yourself to using MC commands (function keys, mostly). More about it at community forum: http://thec64community.online/post/2332/thread \\
 +**Quick procedure:**
 +  * Download MC [[https://mega.nz/#!tssSzAKZ!UKrYBrFkE1ni99Qw9qYZAgmlYvS8tQEPcmiQF2b07HI|here]], put it at USB stick
 +  * connect Mini usual way (procedure above), if you didn't already
 +  * FIRST BACKUP YOUR NANDB (see below how), if you didn't already
 +  * **''zcat /tmp/ramfs/midnight\ commander.cpio.gz | cpio -i''**
 +
 +**''mc''** to start MC. **F10**, **alt+0** or **esc+10** to exit (F10 usually don't work, initially).\\
 +Reminder and useful tips for using MC [[http://thec64community.online/post/2341|here]] and [[http://thec64community.online/post/2332|here]] (from community forum link, right above)
  
 ==== Backing up NAND memory and existing games ==== ==== Backing up NAND memory and existing games ====
Line 519: Line 559:
 Wish you a lot of fun and success :wave your hand: Wish you a lot of fun and success :wave your hand:
  
-Marcel (Translated,some words changed by Spannernick. Wikification and further refinements by Gurce)+Marcel (Translated, some words changed by Spannernick. Wikification and further refinements by Gurce, Crispin)
  
 ==== Changing the carousel music ==== ==== Changing the carousel music ====
how_to_mod_the_c64_mini_to_add_extra_games.1549571629.txt.gz · Last modified: 2019/02/07 13:33 by crispin