Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: AT91SAM9260-EK device special files
PostPosted: Mon Dec 03, 2007 4:41 pm 
Offline

Joined: Tue Nov 20, 2007 6:59 pm
Posts: 2
Location: USA
Hello,

I have the TimeSys Linux distribution running on the AT91SAM9260-EK. It uses udev, which creates 643 device special files under /dev. Obviously, most of those do not represent actual devices, but it appears to work.

I also have uClibc Buildroot created Linux/BusyBox running on the same board. It does not use udev. The minimal RFS generated by Buildroot includes 109 files under /dev. However, those files are not device special files, they are just regular files that do not operate as an interface to the device drivers. After I discovered that, I used mknod to create /dev/ttyS0 and a couple of other device special files so I could get the board to boot.

I don't like the udev overkill (643 files for mostly non-existent devices, which also slows the boot process), and I don't like the idea of having to individually discover the required mknod command for each actual device if I don't use udev. Does anyone (Atmel?) publish a list of actual device special files with major and minor numbers that are complete and correct for the AT91SAM9260-EK? It seems like every uClibc Buildroot developer would need such a list for their specific target board.

Alternatively, is there something I don't know about uClibc Buildroot such that I could have created a correct set of device special files by configuring something in make menuconfig for the AT91SAM9260-EK?

Thanks.

Jim


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 03, 2007 11:01 pm 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
Jim,
take a look at MAKEDEV package, it may well enlight you ;-)

BTW I wonder why you are using uClinux with a MMU-able cpu

_________________
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 03, 2007 11:58 pm 
Offline

Joined: Tue Nov 20, 2007 6:59 pm
Posts: 2
Location: USA
Marco,

Thanks, I will explore MAKEDEV.

I am using uClibc, but that is not the same as uClinux without MMU support, correct?

I use uClibc/Buildroot to build Linux and the RFS for the AT91SAM9260DFC.

If I then use the generated cross-tools to build a simple test program that dereferences a NULL pointer, I get the expected 'Segmentation fault'. That confirms the MMU is operating, right?

Please let me know if I have misunderstood the capabilities of uClibc/Buildroot generated Linux for the AT91SAM9260, and it only supports MMU-less operation. My assumption is that I can use uClibc and BusyBox for small footprint and still benefit from the protection of the MMU on the AT91SAM9260.

Thanks.

Jim


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 04, 2007 9:36 am 
Offline
User avatar

Joined: Wed May 12, 2004 6:59 pm
Posts: 161
Location: Bergamo, Italia
yep :-)

uCLibc s a C library for developing embedded Linux systems. It is much smaller than the GNU C Library, but nearly all applications supported by glibc also work perfectly with uClibc.

_________________
Marco Cavallini
Koan s.a.s. - Bergamo - ITALIA
Embedded and Real-Time Software Engineering
- Atmel Third Party Consultant
Tel. +39-(0)35-255.235 - Fax +39-178-223.9748
http://www.KoanSoftware.com | http://www.KaeilOS.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: