Author Topic: Same processor?  (Read 1931 times)

The Shadow Beast

  • Guest
Same processor?
« on: September 25, 2011, 02:16:35 pm »
If two systems have the same processor and one ran Dingux, can you port/install Dingux into another? (For example, hypothetical systems "Iroha" and "Nihohe" have the same processor. Iroha can run Dingux. Can you use the Dingux designed for Iroha and install such into Nihohe?)


  • * Moderator
  • Posts: 2381
Re: Same processor?
« Reply #1 on: September 25, 2011, 03:12:20 pm »
Depends what you mean by "Dingux". If you mean the kernel, then unless they have almost identical hardware, you won't be able to just run the kernel compiled for one device on the second device. This is because you have different hardware like LCD screen, keyboard layout and so on, and you would need new drivers for them. You also need a custom bootloader for each device that can be flashed to the proper space in NAND and read the kernel image from the correct location on the storage media (NAND/SD/etc.). Perhaps some more advanced developer can explain this in greater detail, I lack the proper knowledge beyond this point :)

Another story is the userland. Binaries compiled for one device should be compatible with the other, as long as they are linked dynamically and both devices have a similar, compatible library set. A good example is DDA320 vs DTA380 vs Ben Nanonote.
« Last Edit: September 25, 2011, 03:17:23 pm by zear »


  • Posts: 319
Re: Same processor?
« Reply #2 on: September 25, 2011, 05:28:45 pm »
What do you mean with "processor" exactly? The Dingoo uses the JZ4740, which is a system on chip (SoC). This means both the CPU (the actual processor) and a lot of peripherals (LCD controller, sound processor, SD controller, memory controller etc) integrated into a single chip.

If another system uses the JZ4740, Dingux could be ported to it. But it does require some customization, since for example the GPIO (general purpose input/output) pins will be connected differently. On the A320 these GPIO pins are used for things like the buttons, the LCD backlight and powering on/off various external peripherals. The Dingoo A320 and the Ben NanoNote now use a single source repository (qi-kernel) for both devices, but the kernel configuration is different and there are two device-specific source files. Still, the vast majority of source code is shared.

Like zear said, for user space (applications) it is easier to be compatible. Especially if applications use standard interfaces as much as possible, which is one of the goals we have with OpenDingux.

The Shadow Beast

  • Guest
Re: Same processor?
« Reply #3 on: September 28, 2011, 02:41:39 pm »
I knew that there were going to be adjustments necessary...
Thank you so much.


Post a new topic