Hello Guest

Author Topic: RZX-50 (Ritmix) and flashing from ingenic firmware to Neogeox  (Read 1348 times)

admin

  • Administrator
  • Jr. Member
  • *****
  • Posts: 63
    • View Profile
RZX-50 (Ritmix) and flashing from ingenic firmware to Neogeox
« on: January 03, 2013, 09:28:58 am »
Apparently the hardware for the Russian Ritmix is quite similar.
Similar enough that their userspace menu software displays perfectly and navigates using the controls on the NeoGeo X.

Ritmix firmware available here - http://www.ritmixrussia.ru/static/downloads/FW/RZX/RZX-50/RZX-50_fw_121126.rar


This should be useful for those looking to code -
https://github.com/frantony/opendingux-rzx50-buildscripts

Also (from ACK)

The summary of how to do it is the following, and this only works on 32bit winxp or 32bit win7.

- download and decompress ftp://ftp.ingenic.cn/3sw/JZ4770/01LinuxBsp/20110729/burn/usb_boot_burn-jz4770-20111025.rar
- open device manager in windows (makes it easier to see when the device is detected)
- with the ngx powered off, press and hold the start button and plug into your computer
- this will cause an unknown JZ4770 boot device to show up in device manager
- manually install the drivers that are from the rar
- unplug the ngx
- start USBbootTool.exe
- with the ngx powered off, press and hold the start button and plug into your computer

If you want to just do a full recovery, just pick your full internal sd image backup file for uboot.bin then click the checkbox to the left of uboot.bin. This should write it out to the internal sd card of the ngx, progress bar is at the bottom.

The USBbootTool.exe supports being able to write different files to different offsets within the internal sd card, these can be adjusted in tool_cfg/LinuxFileCfg.ini. The default one that you see when you start the tool is

Code:
[File1]
FileName=uboot.bin            
StartPage=0
NandOption=2

[File2]
FileName=uImage             
StartPage=8192
NandOption=2

[File3]
FileName=filesystem
StartPage=24576
NandOption=2
The StartPage value * 512 represents where the file will be written to the internal sd card. So you can define your own offsets for where a specific file should be written, and not have to write out an entire image each time.

The full image replacement works with uboot.bin because its starting point is 0.

----

And

You need to make an image that contains the ngx's uboot and kernel and the RZX-50's userspace (rootfs/appfs/cfgfs). That by itself should make it bootable, but you will want to make the following changes to the userspace first.

Edit all dmenu.ini files (2x on appfs, 1x on cfgfs) and change ipen_rus to ipen_eng. This will make the menus english.

edit /etc/inittab on rootfs and add the following line

Code:
::respawn:/bin/udc_monitor
Then create a /bin/udc_monitor file on the rootfs (make sure to chmod 755) with the following in it

Code:
#!/bin/sh

# translate between ngx's way of handling udc and rzx
while [ 1 ];do
  USB_STATE=`cat /sys/devices/platform/musb_hdrc.0/uh_cable`

  if [ $USB_STATE == "usb" ]; then
    if [ ! -f /dev/udc_cable ]; then
     touch /dev/udc_cable
   fi
  else
    if [ -f /dev/udc_cable ]; then
      rm -f /dev/udc_cable;
    fi
  fi
  sleep 3
done
« Last Edit: January 03, 2013, 09:42:52 am by admin »