Advertisement

Customize

Psychedelic GNU diary

Hack and bugs from the opensource and electronics.

10/28/08 11:34 pm - crossdev -t avr

Okay here is my struggle with avr-gcc on gentoo. After reading several bugreports you should do:


  • Edit /usr/sbin/crossdev and change line 334 to WITH_DEF_HEADERS="no"

  • Select version of binutils and gcc (as default ones doesn't compile) for example crossdev -t avr --b 2.18.50.0.9 --g 4.1.2

  • Create symlink for linker scripts on x86_64 use ln -s /usr/x86_64-pc-linux-gnu/avr/lib/ldscripts/ /usr/libexec/gcc/avr/ldscripts

Tags: ,

10/8/08 10:36 pm - /etc/mtab should be obsolete on linux

I've been wondering why df and friends was showing clearly bogus information in some situations. Imagine you are about to copy some files to usb flash disc for your friend. You insert it into computer, copy files and do unmount or "safe remove". From this time on, the filesystem doesn't exist anymore in the kernel, but it's still in mtab (till caches are flushed and umount returns from unmount() call) Running df will end up (as it uses stafs()) showing informations about another filesystem (most likely /). And there is /proc/mounts for some time providing the same and all the time correct informations. In my opinion applications on linux should be patched to use /proc/mounts instead.
Tags:
Powered by LiveJournal.com

Advertisement

Customize