LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 01-07-2010, 11:01 PM   #1
rjeyakodi
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Rep: Reputation: 0
Thumbs up problem in linux porting


problem in linux porting

--------------------------------------------------------------------------------

hai I want to port uClinux in my LPC2129 board(ARM 7).It was successfull with standard kit (embedded artist so dim board )
I want to know what are the essential hardware enhancements to be made to support the porting

spec of my lpc2129 board
cpu =arm 7
crystal freq==12 MHZ.
on chip RAM = 16 KB
onchip flash =256 kB
uart port = 2 ports(16c550 supported)
spi,i2c supported
can = 2 ports
gpio ports
port1 =20 pins approx
port 0 = 32 pins


spec of embedded artists so dimm board
Philips ARM7TDMI LPC2292 microcontroller with 256 KByte program Flash, 16
Kbyte SRAM, external bus interface, and 2 CAN channels.
• External 64 Mbit (8 Mbyte) RAM and 16 Mbit FLASH (2 Mbyte)
• 10Mbps Ethernet interface (ENC28J60) connected to SPI bus
• 14.745600 MHz crystal for maximum execution speed and standard serial bit rates
− Phase-locked loop (PLL) multiplies frequency with four; about 60 MHz
• ESD protected RS232 interface for UART channel #0
− Can be used for ISP program download
• 64 Kbit I2C E2PROM for storing non-volatile parameters
• 40 pos connector for Bluetooth module from connectBlue
 
Old 01-08-2010, 03:39 AM   #2
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,309

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
I am wondering if you unsderstand 'porting' as I would. Porting takes source code for one system and installs it on another (usually non compatible) system. You don't need any hardware. You need software, and a compiling environment. You cannot start with binaries.

Go back to source code. The lpc2129 will not have source code for any of the drivers for the so dimm bioard.
Have you seen Google's Android? Complete development environment, etc and now several variants (e.g. cyanogenmod). My Android is an arm v6 compatible device running cyanogenmod-4.2.4. We're at a few hundred mhz. Compiling with any uclibc based system is challenging. Debian also do an arm port
 
Old 01-09-2010, 02:29 AM   #3
rjeyakodi
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
In the standard kit there were many provisions to download the image files (kernel and filesystem) using ethernet and mmc card.since the size of image files itself was around 10 MB,which can not fit into onchip flash of 256 kb,so the files are booted through mmc cards
glad it was working .

I am sure in the similar way the images for lpc2129 can also be compiled .Now how do i transfer this image file.(images are files required for the os to work) for lpc2129 board where i do not have any ports other than uart.yet we can extend the board for mmc card also.
hence i am not sure to start a project with out knowing whether board can work as such or it requires any external interfacing like mmc or ehernet.
 
Old 01-09-2010, 04:31 AM   #4
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,309

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Compiling means using a compiler (gcc or similar) with a libc, kernel headers, includes, etc. and building the source code for a particular system.
I think you want to _load_ the lpc2129 board with some software in the hope it will work. If the uart is all you have, use that.
There are many ways to load data into boards at chip level, but they require an electronic workshop usually. I presume there is software in there. Can you not use that to 'update itself'?
 
Old 01-09-2010, 01:56 PM   #5
rjeyakodi
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
yes i am using uClibc for compiling.

how is it possible to port the image files which are generally extending in terms of MBs together.(around 8 MB) over the chip of 64kb flash.

I beleive i need mmc card or similar setup need to be made on my 2129 board(like the standard board)
 
Old 01-10-2010, 03:29 AM   #6
business_kid
Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 6,309

Rep: Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552Reputation: 552
Quote:
Originally Posted by rjeyakodi View Post
yes i am using uClibc for compiling.

how is it possible to port the image files which are generally extending in terms of MBs together.(around 8 MB) over the chip of 64kb flash.

I beleive i need mmc card or similar setup need to be made on my 2129 board(like the standard board)
With some sort of OS or BIOS that the board would have, you could load it via the uart. Otherwise, hand it to a hardware techie and tell him what you want. At the hardware level, there's programmers, and the like, there's also edge connections or points on the board for some units which are "In Circuit Programmable" to have an IēC connection attached.

In short, what has the lpc board got loaded already?
 
Old 01-11-2010, 03:17 AM   #7
rjeyakodi
LQ Newbie
 
Registered: Jun 2009
Posts: 7

Original Poster
Rep: Reputation: 0
loading........?.software or the board spec. anyways . the board suppors in circuit programming.as you said in the standard board we used u-boot loader to boot the uClinux .Is that with the same boot loader and modifying my harware (modifications can be done only by adding add-ons for mmc card or anything like that)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Porting C Program to Linux & Problem with Size of ICMP Packet SeymourButts Programming 11 01-15-2010 08:06 AM
problem in linux porting rjeyakodi Linux - Hardware 0 01-05-2010 10:35 PM
Problem with LCD when porting linux 2.6.28.rc4 on MV6410 (ARM-S3c6410) huymq85 Linux - Kernel 0 05-30-2009 12:29 AM
urgent porting problem vrdhananjay Programming 2 01-13-2005 02:49 PM


All times are GMT -5. The time now is 02:00 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration