I'm trying to port uClinux to my Chinese phone which is an MTK phone based on mt6235 (ARM processor).
Does anyone know where I can get a hardware simulator for this kind of phone?
mt6235 contain MMU. Therefore there is no need to go for uCLinux. Full-featured Linux kernel will run. See http://git.osmocom.org/gitweb?p=linux-mt623x.git
just forwarding some more info from Osmocom regarding linux on mt6235:
http://bb.osmocom.org/trac/wiki/SciphoneDreamG2
http://lists.osmocom.org/pipermail/baseband-devel/2011-February/001344.html
Related
I want to write a driver for sensor which can tell me if my yoga 2 pro is in tablet mode or not.
I read some about writting modules but as far as I know, I need to know address in memory which belongs to this device (hope it's correct), and here is my question.
How can I find information about this address?
Or what should I do to find this address?
Both in Windows and in Android you absolutely don't need to write a driver for this purpose. To identify Tablet/Laptop mode, you need just one sensor - accelerometer. In Windows 8.1 + this functionality is built-in, but in case you wish to build your own application you can use an example from here: https://code.msdn.microsoft.com/windowsapps/Accelerometer-Sensor-Sample-22982671
In Android, you have a Java API to all sensors:
https://developer.android.com/guide/topics/sensors/sensors_overview.html
However if you have a custom Linux installed on your Yoga, there indeed may arise a need to add a driver. As of now, the most useful solution are IIO drivers that are part of Kernel:
http://events.linuxfoundation.org/sites/events/files/slides/lceu15_baluta.pdf
If there aren't already there, you'll have to rebuild a Kernel and include those drivers. If you don't know how to find a device address, you have to learn for a while about Linux Kernel in general. Anyway, some tips:
Sensors are normally defined via USB/HID interface
If you still have your Windows along with Linux, you may go to
Devices Manager and there you can easily reach Sensors and see what
address is used by a driver.
I have experience writing a C program and burning the program into a chip using an IDE provided by the chip manufacturer.
I also heard that there is a concept called SoC, which means an operating system, like Linux, is running on a chip. In this case, I can run my program on the chip just like on a Linux PC.
I don't really know the differences between these two kinds of chips. Are they the same? Can I install Linux on every chip?
And I have to use a chip called Renesas V850 in my work. Which kind of chip is this V850?
SoC is just a marketing term for 'more than a processor on a chip'. It doesn't mean Linux or operating system.
Years ago, each part of a system was on its own chip: processor, serial port, memory, ADC, DAC, etc. You had a PCB and a schematic that tied them all together.
Over time, more and more got integrated into the processor, particularly for application-specific processors and microcontrollers. Today, pretty much only big iron processors like Intel and AMD flagship processors are stand-alone, and even then there's some x86 chip produced that are 'SoC's (like the AMD Geode line, if that's still around). Everything else has USB ports, serial ports, ADCs, DACs, even wireless radios integrated into the same die.
As for 'what is a Renasas v850?' You'd do better to google that and read the product documentation. It isn't an ARM or MIPs core, and it doesn't appear to support the mainline Linux kernel, only μClinux.
The Renesas V850 Wikipedia page states that the Linux kernel support for v850 has been absent since version 2.6.27 (which released in 2008).
Typically, you need to know what group your chip belongs to and to read more about it on Renesas website. They provide all the documentation you may need. There is also a section for application notes and sample code that may also help.
I'm a developing a Windows application for communication with meter devices over serial modems. Some of the devices using half duplex communication. For that reason I'm setting the Windows RtsControl parameter to RTS_CONTROL_TOGGLE, which enables an automatic switch of the RTS line state.
Now I want to port this application to Linux. Is there an function to enable an equivalent feature to the RTS_CONTROL_TOGGLE parameter on a Linux OS?
If there is no such function, does a workaround exist to enable a similar behavior?
I'm assuming you're in user space - so you'll probably end up using an IOCTL. If you're moving from Windows to Linux for serial control I recommend reading The POSIX Serial Programing Guide. The link I give is an example for setting serial values with an IOCTL, you would need to change it to use TIOCM_RTS, TIOCM_CTS, but it gives the right idea.
This bad boy arrived in the post recently. But, didn't have any instructions, CD-ROM or Dev Kit stuff.
Despite lack of instructions, I'm pretty sure we should be able to get it going with DS-5, a JTAG cable and embedded linux. The goal is to get a small web server/site running on it.
It's an UB4020EVB board with SEP 4020 ARM7 chip. Has JTAG, USB and ethernet connections.
Does anyone know a) What hardware kit I need to get it up and running with an OS, and b) if there's any particular JTAG cable we need.
Any help appreciated.
Thanks!
T
Good luck; all the data I can find on this is in Chinese. Apart from that ARM7 is not a good platform for Linux since it lacks an MMU. uCLinux will run without an MMU, but rather misses much of the benefit of using Linux in the first instance.
I plan to learn embedded linux and writing linux device drivers.
I need a dev board where I can,
Build and boot it with a linux distribution.
Write drivers for peripherals in the board.
(In future) Possible port Android to it
Can you suggest a dev kit to help me with this? Cost is not a bar - I am already familiar with linux at user space, I am willingly to spend to get better at the other side.
Thanks
James
How about a BeagleBoard (TI OMAP)? The Beagleboard has an active community and a lot of example projects, including an Android porting project. They're a few versions of Android behind the present day, but that should provide a starting point.
There is a new 25$ and 35$ option called Raspberry PI.
check this http://elinux.org/Android_on_OMAP
Google's Android on TI's ARM based OMAP SoCs / 2.6.23 Linux kernel
I think Armadeus project is for you. It is an open source project, that started in France and that is now expanding. The community is great and the number of peripherals is growing fast. Of course it is based on Linux.
A small company is building the boards. They are based on ARM9 and now ARM11. In the boards you also have a Xilinx FPGA, that open the doors for exciting experiments.
Hope this helps.
JCLL
Some cheap mini2440 linux board sounds like a good start. It can also run Android.
maybe you can have a Virtual Development Board, that is interesting.
Check also the OK6410 at http://www.arm9board.net, it is provided with Linux - 2.6.28 (2.6.36 in a quit near future) with all peripheral drivers and a basic Android system. You'll find it interesting and quit useful.