embedded-linux

Tool to visualize the device tree file (dtb) used by the Linux kernel?

不想你离开。 提交于 2019-12-02 23:06:06
I am looking for a tool which can graphically represent the hardware device tree used in linux kernel. I am trying to understand linux kernel for particular arm chipset. It would be a really useful tool to have. TheCodeArtist You can try the Component inspector tool. It is part of QorIQ Configuration Suite which is a plugin for Eclipse. Download here . (Requires registration. Free to download.) Personally as i am on the cmd-line most of the time, and quite addicted to vi , i find its built-in code folding capabilities are somewhat sufficient as long as the dts is properly indented. Setup hot

Does a memory address point to a byte of information?

走远了吗. 提交于 2019-12-02 21:15:23
问题 The following is an excerpt from DTS file. linux/arch/powerpc/boot/dts/[board_name].dts memory { device_type = "memory"; reg = <0x00000000 0x40000000>; // 1GB at 0 }; The embedded device has 1 GB of memory. 0x40000000=1073741824 in decimal. The only way i get 1 GB is when i calculate 1073741824 as bytes. Which means 1073741824 bytes = 1GB. So does this mean 0x00000000 points to a byte of data in RAM? In other words, every byte in RAM has an address. Why is that so? What do we read a block of

How to create a defconfig file from a .config?

余生颓废 提交于 2019-12-02 19:16:42
I have done make menuconfig for a board defconfig and modified few configurations. When I select save, a new .config was created in the Kernel top directory. I want to create new defconfig for this .config file created. Can I copy the .config as a new defconfig and copy to arch/arm/configs/ ? $ cp .config arch/arm/configs/board_new_defconfig 0andriy I think you have to do just one command and use the created file as you want to. % make savedefconfig % cp defconfig arch/arm/configs/my_cool_defconfig To get all possible targets just run % make help As noted by Adam Miller followed by Jeremy ,

How to interpret /proc/mounts?

て烟熏妆下的殇ゞ 提交于 2019-12-02 19:07:04
When i do the following. "cat /proc/mounts". tmpfs /export/ftp/import tmpfs rw,relatime,size=102400k 0 0 tmpfs /export/ftp/export tmpfs rw,relatime,size=10240k,mode=755 0 0 The documentation of embedded device said that import and export are located in DRAM However in other equipment ubi18_0 /nvdata1/temporary-download ubifs rw,sync 0 0 ubi18_0 /export/ftp/import ubifs rw,sync 0 0 ubi18_0 /export/http/import ubifs rw,sync 0 0 tmpfs /export/ftp/export tmpfs rw,size=10240k,mode=755 0 0 The documentation of embedded device said that import is located in NAND and export are located in DRAM. I

how to know the Interrupt/GPIO number for a specific pin in linux

有些话、适合烂在心里 提交于 2019-12-02 17:45:46
i'm doing a project in which i need to handle an interrupt in Linux. the board i'm using is an ARM9Board based on the s3c6410 MCU by Samsung (arm 11 processor) and it has the following I/O interface : as the image shows i have EINTx pins for external interrupts and GPxx pins as GPIO pins and i don't mind using any of them but i don't have their numbers ! For EINTx pins : when i call int request_irq(unsigned int irq, void (*handler)(int, struct pt_regs *), unsigned long flags, const char *device); i need the interrupt number to pass it as the first paramter of the function , so how can i get

Error building mono in scratchbox [duplicate]

微笑、不失礼 提交于 2019-12-02 17:28:43
问题 This question already has answers here : Cross compile mono for arm (2 answers) Closed 5 years ago . I tried to compile mono for arm in scratchbox on Ubuntu 11.10. But when I make install I got an error message. [sbox-ARMEL:~] ./configure --enable-minimal=profiler,debug,logging,soft_debug --with-tls=--with-tls=__thread --with-monotouch=no --without-mcs-docs --disable-mono-debugger CFLAGS=-DARM_FPU_NONE --disable-mcs-build [sbox-ARMEL:~] make [sbox-ARMEL:~] make install I get this error: make

Tips for learning embedded linux [closed]

一笑奈何 提交于 2019-12-02 16:57:05
I want to learn the basics of embedded linux. To do this I am assuming that I need to go and buy some sort of hardware board and have the linux kernel code. I have no idea where to start with this and any tips/pointers would be most welcome. Ideally I would like people to point out a full system (e.g. this "board kit with linux" with these "manuals" are very good). Also cost is a factor as I am doing this personally not as a business : ) Thanks very much, Code You will need: 1 - Boards: I started with a beagleboard . A new beaglebone black is available now. There's a large support community

Modifying framebuffer (/dev/graphics/fb0) parameters using a Loadable Kernel Module

£可爱£侵袭症+ 提交于 2019-12-02 15:19:21
问题 Problem: I have to configure various LCD displays to be used by Android Platform. Almost in all cases there are no electrical specifications freely available for LCD displays on interest. But through experience and reverse engineering the parameters can be guessed reasonably well. I am trying to use Loadable Kernel Modules to fine tune the display parameters (any other suggestions are welcome too). Please find the relevant information below. HW: Atmel SAMA5D31-EK (ARM 5 processor) SW: Andriod

GUI Development in Linux [closed]

早过忘川 提交于 2019-12-02 14:30:38
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Wondering what are tools out there and which is better to use in GUI development that supports ARM and X86 arch applications. thanks in advance, T3nG 回答1: The Qt framework should work well for this. 回答2: Take a look on the Qt Creator IDE. It's has free(LGPL) version. 回答3: OpenMoko Freerunner¹ is ARM-based and it

Implementing an update/upgrade system for embedded Linux devices

ぃ、小莉子 提交于 2019-12-02 14:01:06
I have an application that runs on an embedded Linux device and every now and then changes are made to the software and occasionally also to the root file system or even the installed kernel. In the current update system the contents of the old application directory are simply deleted and the new files are copied over it. When changes to the root file system have been made the new files are delivered as part of the update and simply copied over the old ones. Now, there are several problems with the current approach and I am looking for ways to improve the situation: The root file system of the