https://linux-sunxi.org/api.php?action=feedcontributions&user=Hansliss&feedformat=atomlinux-sunxi.org - User contributions [en]2024-03-29T09:02:46ZUser contributionsMediaWiki 1.35.8https://linux-sunxi.org/index.php?title=Retro_Games_Ltd_RGL001&diff=23768Retro Games Ltd RGL0012020-11-25T20:57:35Z<p>Hansliss: </p>
<hr />
<div>{{Infobox Board<br />
| image = [[File:C64MiniOuterCase.JPG|250px]]<br />
| manufacturer = Retro Games Ltd<br />
| dimensions = 105''mm'' x 205''mm'' x 35''mm''<br />
| release_date = February 2018<br />
| website = http://thec64.com<br />
| soc = [[A20]] @ {{Edit|X}}Ghz<br />
| dram = 512 DDR3 @ {{Edit|xxx}}MHz<br />
| nand = 2/4/8/16GB<br />
| power = DC 5V @ 1A<br />
| video = HDMI (Type A- full)<br />
| audio = HDMI<br />
| storage = Internal<br />
| headers = UART, VCC (Unpopulated but drilled)<br />
}}<br />
<br />
{{Remove_only_when_finished|This page needs to be properly filled according to the [[New_Device_howto |New Device Howto]] and the [[New_Device_page|New Device Page guide]].}}<br />
<br />
<br />
= Identification =<br />
<br />
On the back of the device, the following is printed:<br />
<pre>The C64 Mini<br />
RGL001</pre><br />
<br />
The PCB has the following silkscreened on it:<br />
<pre>THEC64 V1.0<br />
Retro Games Ltd 2018</pre><br />
<br />
Under Settings->System, you will find:<br />
* Build: theC64-1.0.1-argent<br />
* Build Date: 02-01-2018 19:08:23<br />
<br />
= Sunxi support =<br />
<br />
== Current status ==<br />
<br />
Unknown<br />
== Images ==<br />
<br />
{{Remove|Optional. Add MANUFACTURER DEVICE specific sunxi ROM images here. E.g. a livesuit image or some other linux image which uses linux-sunxi code. Do not put non-sunxi images here, they should live under [[#See_also|See also]]. If no sunxi based images are available, this section can be removed.}}<br />
<br />
== HW-Pack ==<br />
<br />
{{Remove|Optional. Add MANUFACTURER DEVICE sunxi HW-pack specifics here. When empty, this section can be removed.}}<br />
<br />
== BSP ==<br />
<br />
{{Remove|Optional. Add MANUFACTURER DEVICE sunxi BSP specifics here. When empty, this section can be removed.}}<br />
<br />
== Manual build ==<br />
<br />
You can build things for yourself by following our [[Manual_build_howto | Manual build howto]] and by choosing from the configurations available below.<br />
<br />
=== U-Boot ===<br />
<br />
==== Sunxi/Legacy U-Boot ====<br />
<br />
Use the ''{{Edit|MANUFACTURER_DEVICE}}'' build target.<br />
<br />
==== Mainline U-Boot ====<br />
<br />
Use the ''{{Edit|MANUFACTURER_DEVICE}}'' build target.<br />
<br />
=== Linux Kernel ===<br />
<br />
==== Sunxi/Legacy Kernel ====<br />
<br />
Use the [https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/SOC/MANUFACTURER_DEVICE.fex ''{{Edit|MANUFACTURER_DEVICE.fex}}''] file.<br />
<br />
==== Mainline kernel ====<br />
<br />
Use the ''{{Edit|FAMILY-CHIP-DEVICE.dtb}}'' device-tree binary.<br />
<br />
= Tips, Tricks, Caveats =<br />
<br />
There is a remote button that will start FEL mode, located underneath the device manufacturer's sticker, allowing you to enter FEL without disassembling the case.<br />
<br />
== Obtaining a root shell ==<br />
<br />
Root shell can be obtained by using the UART: <br />
Connect the UART and establish a terminal session. Insert a USB thumb drive in either of the two USB host ports. It doesn't matter what is on the thumb drive, as long as it has a mountable filesystem (FAT is fine). Power on the board while continuously sending 's' via the serial console to interrupt u-boot.<br />
<br />
At the u-boot prompt, the process is as follows:<br />
<pre><br />
redquark#setenv nand_root /dev/sda<br />
redquark#boot<br />
read boot or recovery all<br />
[ 48.085]sunxi flash read :offset 1000000, 11549075 bytes OK<br />
[ 48.100]ready to boot<br />
[ 48.103][mmc]: MMC Device 2 not found<br />
[ 48.107][mmc]: mmc not find,so not exit<br />
NAND_UbootExit<br />
NB1 : NAND_LogicExit<br />
[ 48.111]<br />
Starting kernel ...<br />
<br />
[ 0.991847] rtc_hw_init(416) err: set clksrc to external losc failed! rtc time will be wrong<br />
[ 1.001419] sunxi_rtc_gettime(34): err, losc_err_flag is 1<br />
[ 1.076451] [hdmi]hdmi module init<br />
[ 1.082448] ##fb init:w=1280,h=720,fbmode=0<br />
[ 1.099610] sunxi_rtc_gettime(34): err, losc_err_flag is 1<br />
[ 1.105737] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock<br />
root=/dev/sda<br />
wait /dev/sda ready<br />
wait /dev/sda ready<br />
wait /dev/sda ready<br />
wait /dev/sda ready<br />
[ 4.953983] sd 0:0:0:0: [sda] No Caching mode page present<br />
[ 4.960123] sd 0:0:0:0: [sda] Assuming drive cache: write through<br />
[ 4.984607] sd 0:0:0:0: [sda] No Caching mode page present<br />
[ 4.990741] sd 0:0:0:0: [sda] Assuming drive cache: write through<br />
[ 5.014615] sd 0:0:0:0: [sda] No Caching mode page present<br />
[ 5.020950] sd 0:0:0:0: [sda] Assuming drive cache: write through<br />
e2fsck /dev/sda return 8<br />
mount /dev/sda return 255<br />
<br />
/ # insmod /lib/modules/3.4.39/nand.ko <br />
/ # mount /dev/nandb /mnt<br />
[ 65.852040] EXT4-fs (nandb): couldn't mount as ext3 due to feature incompatibilities<br />
[ 65.944133] EXT4-fs (nandb): couldn't mount as ext2 due to feature incompatibilities<br />
/ # passwd<br />
Changing password for root<br />
New password: <br />
Retype password: <br />
Password for root changed by root<br />
/ # mv /mnt/etc/shadow /mnt/etc/shadow.old<br />
/ # cp /etc/shadow /mnt/etc<br />
/ # umount /mnt<br />
/ # <br />
</pre><br />
<br />
Power off the board and boot normally. You should be able to log in as root using the password you set.<br />
<br />
== Default root password ==<br />
<br />
The default root password for the TheC64 (Mini and full size) as well as the The VIC 20 is "chuckpeddle".<br />
<br />
== FEL mode ==<br />
<br />
FEL can be entered by holding the remote button or the on board button labeled UBOOT. It can also be entered using the serial console by sending "2" on boot.<br />
<br />
== Board observations ==<br />
<br />
There is a button on the board marked "Recovery" however it seems to have no effect.<br />
There is are many unpopulated solder pads including an SD card slot and second DRAM chip. The resistors are also unpopulated.<br />
<br />
= Adding a serial port ('''voids warranty''') =<br />
<br />
[[File:C64MiniUART.JPG|thumb|240px]]<br />
<br />
The UART is very easy to interface. It has standard 0.01" American pin spacing and is already drilled. You can use standard header pins or a JST connector. <br />
<br />
Pins are, in order from top to bottom as per photo; 3.3v, Rx, Tx, GND<br />
<br />
In this photo, the customer has already added the UART pins. The board mounts upside down so the pins were placed on the reverse side to allow ease of access.<br />
<br />
See [[UART|UART howto]]<br />
<br />
== Device disassembly ==<br />
<br />
There is no need to remove or damage the device manufacturer's sticker unless you wish to access the u-boot switch without disassembling the case. The four screws are located under the friction pads.<br />
<br />
== Locating the UART ==<br />
<br />
The UART is immediately West of the processor and very easy to see.<br />
<br />
= Pictures =<br />
<br />
<gallery><br />
File:C64MiniBoardLower.JPG<br />
File:C64MiniBoardTop.JPG <br />
</gallery><br />
<br />
= See also =<br />
<br />
{{Remove|Add some nice to have links here. This includes related devices, and external links.}}<br />
<br />
== Manufacturer images ==<br />
<br />
In early April 2018 the company released a firmware update. It is only 2554418 bytes in size. binwalk reports the following:<br />
<br />
<pre>DECIMAL HEXADECIMAL DESCRIPTION<br />
--------------------------------------------------------------------------------<br />
48 0x30 ELF, 32-bit LSB executable, ARM, version 1 (SYSV)<br />
200340 0x30E94 SHA256 hash constants, little endian<br />
407696 0x63890 SHA256 hash constants, little endian<br />
516732 0x7E27C SHA256 hash constants, little endian<br />
519698 0x7EE12 Unix path: /proc/sys/crypto/fips_enabled<br />
647825 0x9E291 Copyright string: "Copyright (C) 2000-2016 Free Software Foundation, Inc."<br />
647880 0x9E2C8 Copyright string: "Copyright (C) 2012-2016 g10 Code GmbH"<br />
647918 0x9E2EE Copyright string: "Copyright (C) 2013-2016 Jussi Kivilinna"<br />
647980 0x9E32C SHA256 hash constants, little endian<br />
668100 0xA31C4 CRC32 polynomial table, little endian<br />
683952 0xA6FB0 Copyright string: "Copyright 2003, 2004, 2010, 2013, 2014, 2015, 2016 g10 Code GmbH"<br />
</pre><br />
<br />
<br />
[[Category:Devices]]</div>Hanslisshttps://linux-sunxi.org/index.php?title=Retro_Games_Ltd_RGL001&diff=23690Retro Games Ltd RGL0012020-11-17T10:24:43Z<p>Hansliss: </p>
<hr />
<div>{{Infobox Board<br />
| image = [[File:C64MiniOuterCase.JPG|250px]]<br />
| manufacturer = Retro Games Ltd<br />
| dimensions = 105''mm'' x 205''mm'' x 35''mm''<br />
| release_date = February 2018<br />
| website = http://thec64.com<br />
| soc = [[A20]] @ {{Edit|X}}Ghz<br />
| dram = 512 DDR3 @ {{Edit|xxx}}MHz<br />
| nand = 2/4/8/16GB<br />
| power = DC 5V @ 1A<br />
| video = HDMI (Type A- full)<br />
| audio = HDMI<br />
| storage = Internal<br />
| headers = UART, VCC (Unpopulated but drilled)<br />
}}<br />
<br />
{{Remove_only_when_finished|This page needs to be properly filled according to the [[New_Device_howto |New Device Howto]] and the [[New_Device_page|New Device Page guide]].}}<br />
<br />
<br />
= Identification =<br />
<br />
On the back of the device, the following is printed:<br />
<pre>The C64 Mini<br />
RGL001</pre><br />
<br />
The PCB has the following silkscreened on it:<br />
<pre>THEC64 V1.0<br />
Retro Games Ltd 2018</pre><br />
<br />
Under Settings->System, you will find:<br />
* Build: theC64-1.0.1-argent<br />
* Build Date: 02-01-2018 19:08:23<br />
<br />
= Sunxi support =<br />
<br />
== Current status ==<br />
<br />
Unknown<br />
== Images ==<br />
<br />
{{Remove|Optional. Add MANUFACTURER DEVICE specific sunxi ROM images here. E.g. a livesuit image or some other linux image which uses linux-sunxi code. Do not put non-sunxi images here, they should live under [[#See_also|See also]]. If no sunxi based images are available, this section can be removed.}}<br />
<br />
== HW-Pack ==<br />
<br />
{{Remove|Optional. Add MANUFACTURER DEVICE sunxi HW-pack specifics here. When empty, this section can be removed.}}<br />
<br />
== BSP ==<br />
<br />
{{Remove|Optional. Add MANUFACTURER DEVICE sunxi BSP specifics here. When empty, this section can be removed.}}<br />
<br />
== Manual build ==<br />
<br />
You can build things for yourself by following our [[Manual_build_howto | Manual build howto]] and by choosing from the configurations available below.<br />
<br />
=== U-Boot ===<br />
<br />
==== Sunxi/Legacy U-Boot ====<br />
<br />
Use the ''{{Edit|MANUFACTURER_DEVICE}}'' build target.<br />
<br />
==== Mainline U-Boot ====<br />
<br />
Use the ''{{Edit|MANUFACTURER_DEVICE}}'' build target.<br />
<br />
=== Linux Kernel ===<br />
<br />
==== Sunxi/Legacy Kernel ====<br />
<br />
Use the [https://github.com/linux-sunxi/sunxi-boards/blob/master/sys_config/SOC/MANUFACTURER_DEVICE.fex ''{{Edit|MANUFACTURER_DEVICE.fex}}''] file.<br />
<br />
==== Mainline kernel ====<br />
<br />
Use the ''{{Edit|FAMILY-CHIP-DEVICE.dtb}}'' device-tree binary.<br />
<br />
= Tips, Tricks, Caveats =<br />
<br />
There is a remote button that will start FEL mode, located underneath the device manufacturer's sticker, allowing you to enter FEL without disassembling the case.<br />
<br />
== Obtaining a root shell ==<br />
<br />
Root shell can be obtained by using the UART: <br />
Connect the UART and establish a terminal session. Insert a USB thumb drive in either of the two USB host ports. It doesn't matter what is on the thumb drive, as long as it has a mountable filesystem (FAT is fine). Power on the board while continuously sending 's' via the serial console to interrupt u-boot.<br />
<br />
At the u-boot prompt, the process is as follows:<br />
<pre><br />
redquark#setenv nand_root /dev/sda<br />
redquark#boot<br />
read boot or recovery all<br />
[ 48.085]sunxi flash read :offset 1000000, 11549075 bytes OK<br />
[ 48.100]ready to boot<br />
[ 48.103][mmc]: MMC Device 2 not found<br />
[ 48.107][mmc]: mmc not find,so not exit<br />
NAND_UbootExit<br />
NB1 : NAND_LogicExit<br />
[ 48.111]<br />
Starting kernel ...<br />
<br />
[ 0.991847] rtc_hw_init(416) err: set clksrc to external losc failed! rtc time will be wrong<br />
[ 1.001419] sunxi_rtc_gettime(34): err, losc_err_flag is 1<br />
[ 1.076451] [hdmi]hdmi module init<br />
[ 1.082448] ##fb init:w=1280,h=720,fbmode=0<br />
[ 1.099610] sunxi_rtc_gettime(34): err, losc_err_flag is 1<br />
[ 1.105737] sunxi-rtc sunxi-rtc: hctosys: unable to read the hardware clock<br />
root=/dev/sda<br />
wait /dev/sda ready<br />
wait /dev/sda ready<br />
wait /dev/sda ready<br />
wait /dev/sda ready<br />
[ 4.953983] sd 0:0:0:0: [sda] No Caching mode page present<br />
[ 4.960123] sd 0:0:0:0: [sda] Assuming drive cache: write through<br />
[ 4.984607] sd 0:0:0:0: [sda] No Caching mode page present<br />
[ 4.990741] sd 0:0:0:0: [sda] Assuming drive cache: write through<br />
[ 5.014615] sd 0:0:0:0: [sda] No Caching mode page present<br />
[ 5.020950] sd 0:0:0:0: [sda] Assuming drive cache: write through<br />
e2fsck /dev/sda return 8<br />
mount /dev/sda return 255<br />
<br />
/ # insmod /lib/modules/3.4.39/nand.ko <br />
/ # mount /dev/nandb /mnt<br />
[ 65.852040] EXT4-fs (nandb): couldn't mount as ext3 due to feature incompatibilities<br />
[ 65.944133] EXT4-fs (nandb): couldn't mount as ext2 due to feature incompatibilities<br />
/ # passwd<br />
Changing password for root<br />
New password: <br />
Retype password: <br />
Password for root changed by root<br />
/ # mv /mnt/etc/shadow /mnt/etc/shadow.old<br />
/ # cp /etc/shadow /mnt/etc<br />
/ # umount /mnt<br />
/ # <br />
</pre><br />
<br />
Power off the board and boot normally. You should be able to log in as root using the password you set.<br />
<br />
== Default root password ==<br />
<br />
The default root password for the TheC64 (Mini and full size) is "chuckpeddle".<br />
<br />
== FEL mode ==<br />
<br />
FEL can be entered by holding the remote button or the on board button labeled UBOOT. It can also be entered using the serial console by sending "2" on boot.<br />
<br />
== Board observations ==<br />
<br />
There is a button on the board marked "Recovery" however it seems to have no effect.<br />
There is are many unpopulated solder pads including an SD card slot and second DRAM chip. The resistors are also unpopulated.<br />
<br />
= Adding a serial port ('''voids warranty''') =<br />
<br />
[[File:C64MiniUART.JPG|thumb|240px]]<br />
<br />
The UART is very easy to interface. It has standard 0.01" American pin spacing and is already drilled. You can use standard header pins or a JST connector. <br />
<br />
Pins are, in order from top to bottom as per photo; 3.3v, Rx, Tx, GND<br />
<br />
In this photo, the customer has already added the UART pins. The board mounts upside down so the pins were placed on the reverse side to allow ease of access.<br />
<br />
See [[UART|UART howto]]<br />
<br />
== Device disassembly ==<br />
<br />
There is no need to remove or damage the device manufacturer's sticker unless you wish to access the u-boot switch without disassembling the case. The four screws are located under the friction pads.<br />
<br />
== Locating the UART ==<br />
<br />
The UART is immediately West of the processor and very easy to see.<br />
<br />
= Pictures =<br />
<br />
<gallery><br />
File:C64MiniBoardLower.JPG<br />
File:C64MiniBoardTop.JPG <br />
</gallery><br />
<br />
= See also =<br />
<br />
{{Remove|Add some nice to have links here. This includes related devices, and external links.}}<br />
<br />
== Manufacturer images ==<br />
<br />
In early April 2018 the company released a firmware update. It is only 2554418 bytes in size. binwalk reports the following:<br />
<br />
<pre>DECIMAL HEXADECIMAL DESCRIPTION<br />
--------------------------------------------------------------------------------<br />
48 0x30 ELF, 32-bit LSB executable, ARM, version 1 (SYSV)<br />
200340 0x30E94 SHA256 hash constants, little endian<br />
407696 0x63890 SHA256 hash constants, little endian<br />
516732 0x7E27C SHA256 hash constants, little endian<br />
519698 0x7EE12 Unix path: /proc/sys/crypto/fips_enabled<br />
647825 0x9E291 Copyright string: "Copyright (C) 2000-2016 Free Software Foundation, Inc."<br />
647880 0x9E2C8 Copyright string: "Copyright (C) 2012-2016 g10 Code GmbH"<br />
647918 0x9E2EE Copyright string: "Copyright (C) 2013-2016 Jussi Kivilinna"<br />
647980 0x9E32C SHA256 hash constants, little endian<br />
668100 0xA31C4 CRC32 polynomial table, little endian<br />
683952 0xA6FB0 Copyright string: "Copyright 2003, 2004, 2010, 2013, 2014, 2015, 2016 g10 Code GmbH"<br />
</pre><br />
<br />
<br />
[[Category:Devices]]</div>Hansliss