Jakub Ladman | 8 Jan 19:44
Picon

device node problem

Hello friends,

please be patient with my stupid question.

I have switched my embedded gentoo system to udev and now i have trouble with 
one device driver.

This is lincan from http://sourceforge.net/projects/ocera

it is a character device with major 91 and minor 0 and 1 numbers, if i use 
mknod i can have functional device nodes, but after reboot udev discards it.

I am googling any manual to udev, that may help me, but i understand it not.
Can't find how to write rule to make node from major minor numbers.

Can anybody write me, what to do?

Thank You

Jakub Ladman

Mike Frysinger | 10 Jan 13:16
Picon
Favicon
Gravatar

Re: device node problem

On Thursday 08 January 2009 13:44:32 Jakub Ladman wrote:
> please be patient with my stupid question.
>
> I have switched my embedded gentoo system to udev and now i have trouble
> with one device driver.
>
> This is lincan from http://sourceforge.net/projects/ocera
>
> it is a character device with major 91 and minor 0 and 1 numbers, if i use
> mknod i can have functional device nodes, but after reboot udev discards
> it.
>
> I am googling any manual to udev, that may help me, but i understand it
> not. Can't find how to write rule to make node from major minor numbers.

udev doesnt "discard" device nodes.  Gentoo by default runs a fs out of ram 
for /dev so anything created there is lost after a reboot.  if the device 
driver isnt triggering userspace to create a device node, then most likely it 
is broken and needs fixing.

you can add a simple `mknod` statement to your /etc/conf.d/local (or 
local.start).

you can use `udevadm monitor` to see the events the driver is sending to 
userspace when you load the module.  for more info though, you really should 
ask on the udev mailing lists as this question really isnt embedded related.
-mike
Christopher Friedt | 15 Jan 18:13
Picon
Gravatar

the Gentoo Penguin in its natural habitat

Hi everyone,

This clip is completely unrelated to embedded - I just thought some of
you might find it  ... inspirational ;-)
http://vaiprime.visibleassets.com/~cfriedt/HappyGentoo.wmv

More info about the Gentoo Penguin:
http://en.wikipedia.org/wiki/Gentoo_penguin

"[Gentoo penguins] are the fastest underwater swimming penguins,
reaching speeds of 36 km/h"

Cheers,

Chris

PS: sorry for the nasty video format

Christopher Friedt | 15 Jan 21:15
Picon
Gravatar

Re: GenOM (Gentoo on Openmoko)

Hi Zuber

On Tue, Oct 28, 2008 at 6:06 AM,  <zuber@...> wrote:
> to help during compilation. But the big problem is the configure script,
> it takes ages to complete.

One reason you might have noticed that configure takes a really long
time to execute on an embedded computer, is that you're running
configure on the '/' filesystem.

Configure is constantly creating and deleting files, basically 1 for
each test it performs, which can be really slow on many block devices
(particularly flash).

These days, when I emerge, either on my desktop or on an ARM board, I
always try to do it in /tmp, which I've mounted as tmpfs (i.e. ram).

However, for big builds, you run the risk of over-allocating ram,
which can crash linux.

I wouldn't try this for perl, in any case, unless the embedded device
has a few hundred MB of ram, but for smaller packages that need to be
natively compiled (i.e. bash) it works very well.

Cheers

Chris

PS: lf you still want to try compiling in RAM,
mount -t tmpfs none /tmp
(Continue reading)

Bob Paddock | 17 Jan 01:18
Picon

Re: the Gentoo Penguin in its natural habitat



On Thu, Jan 15, 2009 at 12:13 PM, Christopher Friedt <chrisfriedt-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

More info about the Gentoo Penguin:
http://en.wikipedia.org/wiki/Gentoo_penguin

"[Gentoo penguins] are the fastest underwater swimming penguins,
reaching speeds of 36 km/h"

Live pictures updated every 15 minutes:

http://www.martingrund.de/pinguine/pinguincam1.htm




--
http://www.wearablesmartsensors.com/
http://www.softwaresafety.net/
http://www.designer-iii.com/
http://www.unusualresearch.com/
Jakub Ladman | 20 Jan 17:37
Picon

how to get arm-elf-gcc-3.4.3

Hello,

I need for some project, based and only supported on gcc-3.4.3, this version 
of arm-elf compiler toolchain.

The author provided binary toolchain, but it is absolutely incompatible with 
gentoo directory structure.
I think i may run it in chroot environment, but then i will not be able to use 
it from my gui-ide (i use eclipse).

I made lot of attempts with crossdev to build this toolchain, but i can't 
catch the versions combination, whith which i can succeed.

I have functional crossdev originated toolchains with gcc 4.1.2 and 4.2.4, but 
the projects linkerscripts seems to be uncompatible with any of these.
Or some differencies with memory alignment or so.

Please can somebody help me?
Thank you

Jakub Ladman

Jakub Ladman | 20 Jan 19:29
Picon

Re: how to get arm-elf-gcc-3.4.3

Now i have 3.4.6-r2 and seems to work ok.
Everything what i must do was:
ln -s /usr/arm-elf /usr/arm-elf/usr

I hope, my 4.1.2 and 4.2.4 compilers will not stop working.

JL
Dne Tuesday 20 of January 2009 17:37:59 Jakub Ladman napsal(a):
> Hello,
>
> I need for some project, based and only supported on gcc-3.4.3, this
> version of arm-elf compiler toolchain.
>
> The author provided binary toolchain, but it is absolutely incompatible
> with gentoo directory structure.
> I think i may run it in chroot environment, but then i will not be able to
> use it from my gui-ide (i use eclipse).
>
> I made lot of attempts with crossdev to build this toolchain, but i can't
> catch the versions combination, whith which i can succeed.
>
> I have functional crossdev originated toolchains with gcc 4.1.2 and 4.2.4,
> but the projects linkerscripts seems to be uncompatible with any of these.
> Or some differencies with memory alignment or so.
>
> Please can somebody help me?
> Thank you
>
> Jakub Ladman


Gmane